/*! For license information please see main.2534388c.chunk.js.LICENSE.txt */ (this["webpackJsonpce-manager-portal-app"]=this["webpackJsonpce-manager-portal-app"]||[]).push([[0],{102:function(e,t,i){"use strict";i.d(t,"c",(function(){return a})),i.d(t,"e",(function(){return n})),i.d(t,"b",(function(){return o})),i.d(t,"a",(function(){return s})),i.d(t,"d",(function(){return l}));var r=i(136),a=function(e){return{type:r.a,payload:e}},n=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}}},1026: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"}')},1027: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"}')},1028: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"}')},1029: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"}')},103:function(e,t,i){"use strict";i.d(t,"a",(function(){return n})),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),a={reportTokens:null,reportFilters:null,reportSavedFilters:null,selectedReport:null,selectedSavedFilter:null,userFavoriteReports:null,previousPage:null},n=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"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(46),c=i(28),d=i.n(c),u=i(230);function h(){h=function(){return e};var e={},t=Object.prototype,i=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",n=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 a=t&&t.prototype instanceof u?t:u,n=Object.create(a.prototype),o=new C(r||[]);return n._invoke=function(e,t,i){var r="suspendedStart";return function(a,n){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw n;return j()}for(i.method=a,i.arg=n;;){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),n}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 p(){}function v(){}var f={};s(f,a,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(x([])));y&&y!==t&&i.call(y,a)&&(f=y);var g=v.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(a,n){function o(){return new t((function(r,o){!function r(a,n,o,s){var l=c(e[a],e,n);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)}(a,n,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 a=r.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):a:(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[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r=0;--a){var n=this.tryEntries[a],o=n.completion;if("root"===n.tryLoc)return r("end");if(n.tryLoc<=this.prev){var s=i.call(n,"catchLoc"),l=i.call(n,"finallyLoc");if(s&&l){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&i.call(a,"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 a=r.arg;O(i)}return a}}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 p=d.a.create(),v=null!=="https://rpt.mm.micronapps.com"?"https://rpt.mm.micronapps.com":"";p.interceptors.request.use(function(){var e=Object(l.a)(h().mark((function e(t){var i,r,a;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=u.a.getState().reports.reportTokens,r=i.token,a=i.tenantId,null!==r&&(t.headers={access_token:r,current_tenant:a}),e.abrupt("return",t);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),p.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(35),y=i(360),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(v,"/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 p.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(v,"/api/report/loadFilter"),data:{reportKey:{key:e}}};return p.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,a){var n=a().reports.selectedReport;return function(e,t){var i;switch(t){case"xlsx":i="".concat(v,"/api/export/excel");break;case"docx":i="".concat(v,"/api/export/word");break;default:i="".concat(v,"/api/export/").concat(t)}var r={method:"POST",url:i,data:e,responseType:"blob",headers:{"Content-Type":"application/json",Accept:"application/octet-stream"}};return p.request(r).catch((function(e){throw e})).then((function(e){return e.data}))}(e,t).then((function(e){var r,a=window.URL.createObjectURL(new Blob([e],{type:"application/".concat(t)})),o=i||(null===n||void 0===n||null===(r=n.name)||void 0===r?void 0:r.replace(/\s/g,"")),s=document.createElement("a");return s.href=a,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))}))}}},1030: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"}')},1041:function(e,t,i){"use strict";(function(e){var r=i(8),a=i(0),n=i.n(a),o=i(1),s=i(1042);t.a=function(t){var i=t.open,l=t.isLoading,c=t.reportData,d=t.reportingYear,u=t.onClose,h=Object(a.useState)(!1),p=Object(r.a)(h,2),v=p[0],f=p[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,T=function(){return n.a.createElement(n.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,n.a.createElement(o.Box,{style:{width:"80%",margin:"0 auto"},key:"reportData"},n.a.createElement(o.Table,{style:{backgroundColor:v?"#FFFFFF":"#FAFAFA"},className:m.coursesTable},n.a.createElement(o.TableRow,null,n.a.createElement(o.TableCell,{colSpan:12,style:{textAlign:"center",borderStyle:"solid",borderWidth:"thin",borderBottom:"none"}},n.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",fontSize:"21px"}},"REPORT OF CONTINUING EDUCATION ATTENDANCE"),n.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",fontSize:"21px"}},"FOR CALENDAR YEAR"," ".concat(d)))),n.a.createElement(o.TableRow,null,n.a.createElement(o.TableCell,{colSpan:7,style:{textAlign:"left",borderLeftStyle:"solid",borderLeftWidth:"thin",borderRight:"none",borderTop:"none",borderBottom:"none"}},n.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",fontSize:"16px"}},"MAIL TO: Nebraska Board of Public Accountancy (NBPA)"),n.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")),n.a.createElement(o.TableCell,{colSpan:5,style:{textAlign:"left",borderRightStyle:"solid",borderRightWidth:"thin",borderTop:"none",borderLeft:"none",borderBottom:"none"}},n.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",fontSize:"16px"}},"DEADLINE: JANUARY 31"),n.a.createElement(o.Typography,{variant:"body1"},"\xa0"))),n.a.createElement(o.TableRow,null,n.a.createElement(o.TableCell,{colSpan:12,style:{textAlign:"center",borderStyle:"solid",borderWidth:"thin",borderTop:"none",borderBottom:"none"}},n.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."),n.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."))),n.a.createElement(o.TableRow,null,n.a.createElement(o.TableCell,{colSpan:12,style:{borderStyle:"solid",borderWidth:"thin",borderTop:"none",borderBottom:"none"}})),n.a.createElement(o.TableRow,null,n.a.createElement(o.TableCell,{colSpan:5,style:{borderLeft:"solid",borderTop:"solid",borderBottom:"solid",textAlign:"left"}},n.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",fontSize:"16px"}},"Certificate #:"),n.a.createElement("br",null),n.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",fontSize:"16px"}},"Name:"," ".concat(e.name)),n.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",fontSize:"16px"}},"Address:"," ".concat(e.address)),n.a.createElement("br",null),n.a.createElement("br",null),n.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",fontSize:"16px"}},"Email:"," ".concat(e.email))),n.a.createElement(o.TableCell,{colSpan:7,style:{borderRight:"solid",borderTop:"solid",borderBottom:"solid",textAlign:"left"}},n.a.createElement("br",null),"\xa0",n.a.createElement("br",null),"\xa0",n.a.createElement("br",null),n.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",fontSize:"16px"}},"Employer:"," ".concat(e.firmName)),n.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",fontSize:"16px"}},"Phone:"," ".concat(e.phone)),n.a.createElement("br",null),n.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",fontSize:"16px"}},"BIRTH YEAR:"," ".concat(e.birthYear)))),n.a.createElement(o.TableRow,null,n.a.createElement(o.TableCell,{colSpan:12,style:{textAlign:"left",borderStyle:"solid",borderWidth:"thin",borderTop:"none",borderBottom:"none"}},n.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."),n.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.)"))),n.a.createElement(o.TableRow,null,n.a.createElement(o.TableCell,{colSpan:2,style:{borderLeftStyle:"solid",borderLeftWidth:"thin",borderTop:"none",borderRight:"none",borderBottom:"none"}}),n.a.createElement(o.TableCell,{colSpan:10,style:{textAlign:"left",borderRightStyle:"solid",borderRightWidth:"thin",borderTop:"none",borderLeft:"none",borderBottom:"none"}},n.a.createElement(o.Typography,{variant:"body1",weight:"regular",style:{textDecoration:"underline",fontSize:"14px"}},"*Approved by the NBPA via Program Qualification"),n.a.createElement(o.Typography,{variant:"body1",weight:"regular",style:{textDecoration:"underline",fontSize:"14px"}},"Form or NASBA Approved Sponsor - www.nasba.org"))),n.a.createElement(o.TableRow,{className:m.coursesTableHead},n.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"top",backgroundColor:"#EDEDED",width:"1.32in"}},n.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",textAlign:"center",fontSize:"13px"}},"PROGRAM SPONSOR")),n.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"top",backgroundColor:"#EDEDED",width:"2.1in"}},n.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",textAlign:"center",fontSize:"13px"}},"TITLE")),n.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"top",backgroundColor:"#EDEDED",width:"0.88in"}},n.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",textAlign:"center",fontSize:"13px"}},"DATES")),n.a.createElement(o.TableCell,{colSpan:2,align:"center",style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"top",backgroundColor:"#EDEDED"}},n.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",textAlign:"center",fontSize:"13px"}},"FORMAL HOURS")),n.a.createElement(o.TableCell,{colSpan:6,align:"center",style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"top",backgroundColor:"#EDEDED"}},n.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",textAlign:"center",fontSize:"13px"}},"HOURS")),n.a.createElement(o.TableCell,{align:"center",style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"top",backgroundColor:"#EDEDED",width:"0.83in"}},n.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",textAlign:"center",fontSize:"13px"}},"Total Earned"))),n.a.createElement(o.TableRow,{className:m.coursesTableHead},n.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin",backgroundColor:"#DDEBF7",width:"1.32in"}}),n.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin",backgroundColor:"#DDEBF7",width:"2.1in"}}),n.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin",backgroundColor:"#DDEBF7",width:"0.88in"}}),n.a.createElement(o.TableCell,{align:"center",style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"top",backgroundColor:"#DDEBF7",width:"0.46in"}},n.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",textAlign:"center",fontSize:"13px"}},"F")),n.a.createElement(o.TableCell,{align:"center",style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"top",backgroundColor:"#DDEBF7",width:"0.51in"}},n.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",textAlign:"center",fontSize:"13px"}},"PD")),n.a.createElement(o.TableCell,{align:"center",style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"top",backgroundColor:"#DDEBF7",width:"0.45in"}},n.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",textAlign:"center",fontSize:"13px"}},"S")),n.a.createElement(o.TableCell,{align:"center",style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"top",backgroundColor:"#DDEBF7",width:"0.45in"}},n.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",textAlign:"center",fontSize:"13px"}},"C")),n.a.createElement(o.TableCell,{align:"center",style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"top",backgroundColor:"#DDEBF7",width:"0.45in"}},n.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",textAlign:"center",fontSize:"13px"}},"TC")),n.a.createElement(o.TableCell,{align:"center",style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"top",backgroundColor:"#DDEBF7",width:"0.45in"}},n.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",textAlign:"center",fontSize:"13px"}},"I")),n.a.createElement(o.TableCell,{align:"center",style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"top",backgroundColor:"#DDEBF7",width:"0.45in"}},n.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",textAlign:"center",fontSize:"13px"}},"P")),n.a.createElement(o.TableCell,{align:"center",style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"top",backgroundColor:"#DDEBF7",width:"0.45in"}},n.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",textAlign:"center",fontSize:"13px"}},"E")),n.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 n.a.createElement(o.TableRow,{key:e.sessionId},n.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"top",width:"1.32in"}},n.a.createElement(o.Typography,{variant:"body1",weight:"regular",style:{fontSize:"13px"}},e.providerName)),n.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"top",width:"2.1in"}},n.a.createElement(o.Typography,{variant:"body1",weight:"regular",style:{fontSize:"13px"}},"".concat(e.title).concat(e.isNasbaApproved?"*":""))),n.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"center",width:"0.88in"}},n.a.createElement(o.Typography,{variant:"body1",weight:"regular",style:{fontSize:"13px"}},e.completionDate)),n.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"center"}},n.a.createElement(o.Typography,{variant:"body1",weight:"regular",style:{textAlign:"right",fontSize:"13px"}},e.fCredits)),n.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"center"}},n.a.createElement(o.Typography,{variant:"body1",weight:"regular",style:{textAlign:"right",fontSize:"13px"}},e.pdCredits)),n.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"center"}},n.a.createElement(o.Typography,{variant:"body1",weight:"regular",style:{textAlign:"right",fontSize:"13px"}},e.sCredits)),n.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"center"}},n.a.createElement(o.Typography,{variant:"body1",weight:"regular",style:{textAlign:"right",fontSize:"13px"}},e.cCredits)),n.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"center"}},n.a.createElement(o.Typography,{variant:"body1",weight:"regular",style:{textAlign:"right",fontSize:"13px"}},e.tcCredits)),n.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"center"}},n.a.createElement(o.Typography,{variant:"body1",weight:"regular",style:{textAlign:"right",fontSize:"13px"}},e.iCredits)),n.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"center"}},n.a.createElement(o.Typography,{variant:"body1",weight:"regular",style:{textAlign:"right",fontSize:"13px"}},e.pCredits)),n.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"center"}},n.a.createElement(o.Typography,{variant:"body1",weight:"regular",style:{textAlign:"right",fontSize:"13px"}},e.eCredits)),n.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"center",width:"0.83in"}},n.a.createElement(o.Typography,{variant:"body1",weight:"regular",style:{textAlign:"right",fontSize:"13px"}},e.earned)))})):n.a.createElement(o.TableRow,null,n.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin",width:"1.32in"}}),n.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin",width:"2.1in"}}),n.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin",width:"0.88in"}}),n.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin"}}),n.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin"}}),n.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin"}}),n.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin"}}),n.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin"}}),n.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin"}}),n.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin"}}),n.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin"}}),n.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin",width:"0.83in"}})),n.a.createElement(o.TableRow,null,n.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin",backgroundColor:"#EDEDED",width:"1.32in"}}),n.a.createElement(o.TableCell,{colSpan:2,align:"left",style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"top",backgroundColor:"#EDEDED"}},n.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",fontSize:"13px"}},"TOTAL")),n.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"top",textAlign:"right",backgroundColor:"#EDEDED"}},n.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",textAlign:"right",fontSize:"13px",backgroundColor:"#EDEDED"}},g)),n.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"top",textAlign:"right",backgroundColor:"#EDEDED"}},n.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",textAlign:"right",fontSize:"13px",backgroundColor:"#EDEDED"}},b)),n.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"top",textAlign:"right",backgroundColor:"#EDEDED"}},n.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",textAlign:"right",fontSize:"13px",backgroundColor:"#EDEDED"}},S)),n.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"top",textAlign:"right",backgroundColor:"#EDEDED"}},n.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",textAlign:"right",fontSize:"13px",backgroundColor:"#EDEDED"}},E)),n.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"top",textAlign:"right",backgroundColor:"#EDEDED"}},n.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",textAlign:"right",fontSize:"13px",backgroundColor:"#EDEDED"}},I)),n.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"top",textAlign:"right",backgroundColor:"#EDEDED"}},n.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",textAlign:"right",fontSize:"13px",backgroundColor:"#EDEDED"}},O)),n.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"top",textAlign:"right",backgroundColor:"#EDEDED"}},n.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",textAlign:"right",fontSize:"13px",backgroundColor:"#EDEDED"}},C)),n.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"top",textAlign:"right",backgroundColor:"#EDEDED"}},n.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",textAlign:"right",fontSize:"13px",backgroundColor:"#EDEDED"}},x)),n.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"top",textAlign:"right",backgroundColor:"#EDEDED",width:"0.83in"}},n.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",textAlign:"right",fontSize:"13px",backgroundColor:"#EDEDED"}},y))),n.a.createElement(o.TableRow,null,n.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin",width:"1.32in"}}),n.a.createElement(o.TableCell,{colSpan:2,align:"left",style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"top"}},n.a.createElement(o.Typography,{variant:"body1",weight:"regular",style:{fontSize:"13px"}},"Personal Development Allowed")),n.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none"}}),n.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none",padding:"2px 2px",verticalAlign:"top",textAlign:"right"}},n.a.createElement(o.Typography,{variant:"body1",weight:"regular",style:{textAlign:"right",fontSize:"13px"}},"16")),n.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none"}}),n.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none"}}),n.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none"}}),n.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none"}}),n.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none"}}),n.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none"}}),n.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none",width:"0.83in"}})),n.a.createElement(o.TableRow,null,n.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none",width:"1.32in"}}),n.a.createElement(o.TableCell,{colSpan:2,align:"left",style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"top"}},n.a.createElement(o.Typography,{variant:"body1",weight:"regular",style:{fontSize:"13px"}},"Personal Development in YR 1")),n.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none"}}),n.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none",padding:"2px 2px",verticalAlign:"top",textAlign:"right"}},n.a.createElement(o.Typography,{variant:"body1",weight:"regular",style:{textAlign:"right",fontSize:"13px"}},e.yearOnePDCredits)),n.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none"}}),n.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none"}}),n.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none"}}),n.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none"}}),n.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none"}}),n.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none"}}),n.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none",width:"0.83in"}})),n.a.createElement(o.TableRow,null,n.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none",width:"1.32in"}}),n.a.createElement(o.TableCell,{colSpan:2,align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none",padding:"2px 2px",verticalAlign:"top"}},n.a.createElement(o.Typography,{variant:"body1",weight:"regular",style:{fontSize:"13px"}},"Personal Development in YR 2")),n.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none"}}),n.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none",padding:"2px 2px",verticalAlign:"top",textAlign:"right"}},n.a.createElement(o.Typography,{variant:"body1",weight:"regular",style:{textAlign:"right",fontSize:"13px"}},e.yearTwoPDCredits)),n.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none"}}),n.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none"}}),n.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none"}}),n.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none"}}),n.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none"}}),n.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none"}}),n.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none",width:"0.83in"}})),n.a.createElement(o.TableRow,null,n.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none",backgroundColor:"#EDEDED",width:"1.32in"}}),n.a.createElement(o.TableCell,{colSpan:2,align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none",padding:"2px 2px",verticalAlign:"top",backgroundColor:"#EDEDED"}},n.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",fontSize:"13px"}},"TOTAL REPORTABLE HOURS")),n.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none",padding:"2px 2px",verticalAlign:"top",textAlign:"right",backgroundColor:"#EDEDED"}},n.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",textAlign:"right",fontSize:"13px"}},g)),n.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none",padding:"2px 2px",verticalAlign:"top",textAlign:"right",backgroundColor:"#EDEDED"}},n.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",fontSize:"13px"}},j)),n.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none",padding:"2px 2px",verticalAlign:"top",textAlign:"right",backgroundColor:"#EDEDED"}},n.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",textAlign:"right",fontSize:"13px"}},S)),n.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none",padding:"2px 2px",verticalAlign:"top",textAlign:"right",backgroundColor:"#EDEDED"}},n.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",textAlign:"right",fontSize:"13px"}},E)),n.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none",padding:"2px 2px",verticalAlign:"top",textAlign:"right",backgroundColor:"#EDEDED"}},n.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",textAlign:"right",fontSize:"13px"}},I)),n.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none",padding:"2px 2px",verticalAlign:"top",textAlign:"right",backgroundColor:"#EDEDED"}},n.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",textAlign:"right",fontSize:"13px"}},O)),n.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none",padding:"2px 2px",verticalAlign:"top",textAlign:"right",backgroundColor:"#EDEDED"}},n.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",textAlign:"right",fontSize:"13px"}},C)),n.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",borderBottom:"none",padding:"2px 2px",verticalAlign:"top",textAlign:"right",backgroundColor:"#EDEDED"}},n.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",textAlign:"right",fontSize:"13px"}},x)),n.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"}},n.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",textAlign:"right",fontSize:"13px"}},w))),n.a.createElement(o.TableRow,null,n.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin",width:"1.32in"}}),n.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin",width:"2.1in"}}),n.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin",width:"0.88in"}}),n.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin"}}),n.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin"}}),n.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin"}}),n.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin"}}),n.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin"}}),n.a.createElement(o.TableCell,{style:{borderStyle:"solid",borderWidth:"thin"}}),n.a.createElement(o.TableCell,{colSpan:2,align:"left",style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"top"}},n.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",fontSize:"13px"}},"TOTAL HOURS")),n.a.createElement(o.TableCell,{align:"left",style:{borderStyle:"solid",borderWidth:"thin",padding:"2px 2px",verticalAlign:"top",width:"0.83in"}},n.a.createElement(o.Typography,{variant:"body1",style:{fontWeight:"bold",textAlign:"right",fontSize:"13px"}},y))),n.a.createElement(o.TableRow,null,n.a.createElement(o.TableCell,{colSpan:12,style:{textAlign:"left",borderWidth:"thin",borderStyle:"solid",borderTop:"none",borderBottom:"none",wordWrap:"break-word"}},n.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",n.a.createElement("br",null),"approval or disapproval. I agree to retain all documentation relating to the above programs and to maintain records substantiating the",n.a.createElement("br",null),"continuing education credit claims for six years. I understand that providing false or misleading information on this report could be",n.a.createElement("br",null),"grounds for disciplinary action under Section 1.137 of the Public Accountancy Act."))),n.a.createElement(o.TableRow,null,n.a.createElement(o.TableCell,{colSpan:4,style:{textAlign:"left",borderLeftWidth:"thin",borderLeftStyle:"solid",borderTop:"none",borderBottom:"none",borderRight:"none"}},n.a.createElement(o.Typography,{variant:"body1",weight:"regular"},"_______________________________________"),n.a.createElement(o.Typography,{variant:"body1",weight:"regular",style:{fontSize:"14px"}},"Date")),n.a.createElement(o.TableCell,{colSpan:8,style:{textAlign:"right",borderRightWidth:"thin",borderRightStyle:"solid",borderTop:"none",borderBottom:"none",borderLeft:"none"}},n.a.createElement(o.Typography,{variant:"body1",weight:"regular"},"_______________________________________"),n.a.createElement(o.Box,{mr:6.375},n.a.createElement(o.Typography,{variant:"body1",weight:"regular",style:{fontSize:"14px"}},"Signature of Applicant for Permit")))),n.a.createElement(o.TableRow,null,n.a.createElement(o.TableCell,{colSpan:12,style:{textAlign:"center",borderWidth:"thin",borderStyle:"solid",borderTop:"none"}},n.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.")))),n.a.createElement("br",null))})))};return n.a.createElement(n.a.Fragment,null,l?n.a.createElement(o.Backdrop,{open:l},n.a.createElement(o.CircularProgress,{color:"secondary"})):c&&c.length>0&&n.a.createElement(o.Dialog,{open:i,onClose:u,maxWidth:"lg",fullWidth:!0},n.a.createElement(o.Grid,{container:!0,spacing:"form",style:{marginLeft:"-16px"}},n.a.createElement(o.Grid,{item:!0,xs:10}),n.a.createElement(o.Grid,{item:!0,xs:2,alignment:"center-right",stretchContent:!0},n.a.createElement(o.Box,{mt:5,mr:5},n.a.createElement(o.Button,{loading:v,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 "),a=document.createElement("a");a.download="Nebraska CPE - Continuing Education Attendance.xls",a.href="data:application/vnd.ms-excel;base64,"+e.from("\ufeff".concat(r)).toString("base64"),a.click(),f(!1)}()},variant:"contained",color:"primary",size:"small"},"Download"))),n.a.createElement(o.Grid,{item:!0,xs:12}),n.a.createElement(o.Grid,{item:!0,xs:12,stretchContent:!0,id:"report",style:{width:"100px",margin:"0 auto"}},n.a.createElement(o.Box,{ml:4,mr:3},n.a.createElement(T,null))))))}}).call(this,i(49).Buffer)},1042:function(e,t,i){"use strict";var r=i(17),a=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=a},1043:function(e,t,i){"use strict";(function(e){var r=i(0),a=i.n(r),n=i(18),o=i(1),s=i(133),l=i(1044),c=Object(n.b)(null,(function(e){return{resetPermissionSets:function(){return e(Object(l.a)(null))}}}));t.a=c(Object(s.a)((function(t){var i,n=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),n(),localStorage.clear())}),[c,n]),a.a.createElement(o.Backdrop,{open:!0},a.a.createElement(o.CircularProgress,{color:"secondary",variant:"indeterminate"}))})))}).call(this,i(107))},1044:function(e,t,i){"use strict";i(515);var r=i(208);i.d(t,"a",(function(){return r.b}));i(252),i(251)},1058:function(e,t,i){e.exports=i(1786)},1063:function(e,t,i){},121:function(e,t,i){"use strict";i.d(t,"a",(function(){return r})),i.d(t,"d",(function(){return a})),i.d(t,"c",(function(){return n})),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",a="SET_PORTAL_CAL_SESSION_REQUEST_BODY",n="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"},129: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 p})),i.d(t,"d",(function(){return v})),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(185),a=i(15),n=i(7),o=i(35),s=(i(517),i(151)),l=function(e){return{type:s.e,payload:e}},c=function(e){return{type:s.c,payload:e}},d=(i(171),i(188)),u=function(e){return function(t){return a.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 a.W.set(void 0,n.j.fromJS(e))}},p=function(e,t){return function(){var i=!1;return a.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}))}},v=function(e){return function(){return a.W.clear(e,void 0)}},f=function(e){return function(){return a.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)),a.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)),a.o.getAll(void 0).then((function(t){null!==t&&e(c(t))})).catch((function(){e(c(null))})))}))}},y=function(){return function(e){return a.ab.getUserPreferences(void 0).then((function(e){return e})).catch((function(t){e(Object(o.b)(t))}))}},g=function(e){return function(t){return a.ab.changePassword(void 0,n.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"),a.ab.updatePreferences(void 0,n.He.fromJS(e)).then((function(e){var a,n;return i.dateFormat=null!==(a=""!==e.dateFormat?e.dateFormat:s.dateFormat)&&void 0!==a?a:"",i.timezone=null!==(n=""!==e.timezone?e.timezone:s.timezone)&&void 0!==n?n:"",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 a.Q.updateSecurityUserEmailVerification(void 0,new n.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}))}}},133:function(e,t,i){"use strict";var r=i(328);i.d(t,"a",(function(){return r.a}))},134:function(e,t,i){"use strict";i(518);var r=i(261);i.d(t,"d",(function(){return r.c}));i(172);var a=i(523);i.d(t,"a",(function(){return a.a})),i.d(t,"b",(function(){return a.b})),i.d(t,"c",(function(){return a.c}))},135:function(e,t,i){"use strict";i.d(t,"a",(function(){return a})),i.d(t,"b",(function(){return n})),i.d(t,"c",(function(){return o}));var r=i(209),a=function(e){return{type:r.a,payload:e}},n=function(e){return{type:r.b,payload:e}},o=function(e){return{type:r.c,payload:e}}},136:function(e,t,i){"use strict";i.d(t,"a",(function(){return r})),i.d(t,"f",(function(){return a})),i.d(t,"e",(function(){return n})),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",a="SET_SELECTED_LEARNINGPLAN",n="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 a.a})),i.d(t,"b",(function(){return a.b})),i.d(t,"c",(function(){return a.e})),i.d(t,"d",(function(){return a.f})),i.d(t,"h",(function(){return a.l})),i.d(t,"e",(function(){return a.h})),i.d(t,"f",(function(){return a.i})),i.d(t,"i",(function(){return n.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,a=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],n=Math.floor(Math.log(e)/Math.log(i));return"".concat(parseFloat((e/Math.pow(i,n)).toFixed(r))," ").concat(a[n])},a=i(41),n=i(520),o=(i(1046),i(0),i(1),i(32)),s=i(325)},144:function(e,t,i){"use strict";i.d(t,"d",(function(){return r})),i.d(t,"a",(function(){return a})),i.d(t,"e",(function(){return n})),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",a="SET_AUTHENTICATED_USER",n="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 g})),i.d(t,"b",(function(){return b})),i.d(t,"c",(function(){return S})),i.d(t,"e",(function(){return E})),i.d(t,"f",(function(){return I})),i.d(t,"h",(function(){return O})),i.d(t,"i",(function(){return C})),i.d(t,"k",(function(){return x})),i.d(t,"j",(function(){return j})),i.d(t,"l",(function(){return w})),i.d(t,"m",(function(){return T})),i.d(t,"n",(function(){return P})),i.d(t,"q",(function(){return A})),i.d(t,"s",(function(){return N})),i.d(t,"o",(function(){return k})),i.d(t,"p",(function(){return D})),i.d(t,"r",(function(){return L})),i.d(t,"t",(function(){return J})),i.d(t,"u",(function(){return F})),i.d(t,"v",(function(){return B})),i.d(t,"w",(function(){return R})),i.d(t,"x",(function(){return U})),i.d(t,"A",(function(){return G})),i.d(t,"y",(function(){return M})),i.d(t,"z",(function(){return q})),i.d(t,"B",(function(){return z})),i.d(t,"C",(function(){return W})),i.d(t,"D",(function(){return V})),i.d(t,"E",(function(){return _})),i.d(t,"F",(function(){return Y})),i.d(t,"G",(function(){return $})),i.d(t,"H",(function(){return H})),i.d(t,"I",(function(){return K})),i.d(t,"J",(function(){return Q})),i.d(t,"K",(function(){return Z})),i.d(t,"L",(function(){return X})),i.d(t,"M",(function(){return ee})),i.d(t,"O",(function(){return te})),i.d(t,"Q",(function(){return ie})),i.d(t,"R",(function(){return re})),i.d(t,"S",(function(){return ae})),i.d(t,"T",(function(){return ne})),i.d(t,"U",(function(){return oe})),i.d(t,"V",(function(){return se})),i.d(t,"ab",(function(){return le})),i.d(t,"g",(function(){return ce})),i.d(t,"d",(function(){return de})),i.d(t,"N",(function(){return ue})),i.d(t,"P",(function(){return he})),i.d(t,"W",(function(){return pe})),i.d(t,"Y",(function(){return ve})),i.d(t,"X",(function(){return fe})),i.d(t,"Z",(function(){return me}));var r=i(46),a=i(139),n=i(354),o=i(28),s=i.n(o),l=i(156),c=i(76),d=i(230),u=i(33);function h(){h=function(){return e};var e={},t=Object.prototype,i=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",n=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 a=t&&t.prototype instanceof u?t:u,n=Object.create(a.prototype),o=new C(r||[]);return n._invoke=function(e,t,i){var r="suspendedStart";return function(a,n){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw n;return j()}for(i.method=a,i.arg=n;;){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),n}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 p(){}function v(){}var f={};s(f,a,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(x([])));y&&y!==t&&i.call(y,a)&&(f=y);var g=v.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(a,n){function o(){return new t((function(r,o){!function r(a,n,o,s){var l=c(e[a],e,n);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)}(a,n,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 a=r.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):a:(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[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r=0;--a){var n=this.tryEntries[a],o=n.completion;if("root"===n.tryLoc)return r("end");if(n.tryLoc<=this.prev){var s=i.call(n,"catchLoc"),l=i.call(n,"finallyLoc");if(s&&l){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&i.call(a,"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 a=r.arg;O(i)}return a}}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 p=s.a.create(),v=function(e,t){return e.substring(0,t.length)},f=function(e){return/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(e)?e:""};p.interceptors.request.use(function(){var e=Object(r.a)(h().mark((function e(t){var i,r,o;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(l.a)();case 2:return i=e.sent,a.default.configure(i),e.next=6,n.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"),a=v(e,"/report/compliance"),n=v(e,"/invite"),o=v(e,"/certificate"),s=v(e,"/evaluation"),l=v(e,"/decline-evaluation"),c=v(e,"/materials"),d=v(e,"/announcement"),h=v(e,"/session"),p=v(e,"/registration"),m=v(e,"/schedule/registration"),y=v(e,"/learning-plan"),g=e.split("/"),b="",S="session-link";"/schedule/registration"===m&&(S="schedule-link",b=g[3]),"/learning-plan"===y&&(S="learning-plan-link",b=g[2]),"/registration"===p&&(S="session-link",b=g[2]);var E,I=f(b),O=["session-link","schedule-link","learning-plan-link"].includes(E=S)?E:"";if("/registration"!==p&&"/schedule/registration"!==m&&"/learning-plan"!==y||""===I||""===O)"/signout"!==window.location.pathname&&"/login"!==window.location.pathname&&"/signin"!==window.location.pathname&&"/activate"!==window.location.pathname&&"/users/admin"!==window.location.pathname&&"/attendance-sheet"!==t&&"/report/transcript"!==i&&"/report/learning-plans"!==r&&"/report/compliance"!==a&&"/invite"!==n&&"/certificate"!==o&&"/evaluation"!==s&&"/decline-evaluation"!==l&&"/materials"!==c&&"/announcement"!==d&&"/session"!==h&&(window.location.href="/signout?expire=true");else{var C=encodeURIComponent(Object(u.a)(I)),x=encodeURIComponent(Object(u.a)(O));window.location.href="/signout?guid=".concat(C,"&type=").concat(x,"&expire=true")}return 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)}}()),p.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 m=p,y=i(7),g=new y.b("https://api.cem.micronapps.com",m),b=(new y.c("https://api.cem.micronapps.com",m),new y.d("https://api.cem.micronapps.com",m)),S=(new y.l("https://api.cem.micronapps.com",m),new y.m("https://api.cem.micronapps.com",m)),E=new y.s("https://api.cem.micronapps.com",m),I=new y.t("https://api.cem.micronapps.com",m),O=new y.x("https://api.cem.micronapps.com",m),C=new y.y("https://api.cem.micronapps.com",m),x=(new y.z("https://api.cem.micronapps.com",m),new y.A("https://api.cem.micronapps.com",m),new y.E("https://api.cem.micronapps.com",m)),j=new y.D("https://api.cem.micronapps.com",m),w=new y.F("https://api.cem.micronapps.com",m),T=new y.G("https://api.cem.micronapps.com",m),P=(new y.I("https://api.cem.micronapps.com",m),new y.J("https://api.cem.micronapps.com",m)),A=new y.Eb("https://api.cem.micronapps.com",m),N=new y.Gb("https://api.cem.micronapps.com",m),k=(new y.kb("https://api.cem.micronapps.com",m),new y.lb("https://api.cem.micronapps.com",m)),D=(new y.mb("https://api.cem.micronapps.com",m),new y.Db("https://api.cem.micronapps.com",m)),L=new y.Fb("https://api.cem.micronapps.com",m),J=(new y.Jb("https://api.cem.micronapps.com",m),new y.Kb("https://api.cem.micronapps.com",m),new y.Mb("https://api.cem.micronapps.com",m),new y.Nb("https://api.cem.micronapps.com",m),new y.Ob("https://api.cem.micronapps.com",m),new y.Pb("https://api.cem.micronapps.com",m)),F=(new y.Qb("https://api.cem.micronapps.com",m),new y.Rb("https://api.cem.micronapps.com",m),new y.Sb("https://api.cem.micronapps.com",m),new y.Tb("https://api.cem.micronapps.com",m)),B=(new y.Ub("https://api.cem.micronapps.com",m),new y.Vb("https://api.cem.micronapps.com",m),new y.H("https://api.cem.micronapps.com",m)),R=(new y.Wb("https://api.cem.micronapps.com",m),new y.md("https://api.cem.micronapps.com",m)),U=new y.nd("https://api.cem.micronapps.com",m),G=(new y.od("https://api.cem.micronapps.com",m),new y.td("https://api.cem.micronapps.com",m)),M=new y.qd("https://api.cem.micronapps.com",m),q=new y.sd("https://api.cem.micronapps.com",m),z=new y.vd("https://api.cem.micronapps.com",m),W=new y.xd("https://api.cem.micronapps.com",m),V=new y.zd("https://api.cem.micronapps.com",m),_=(new y.Bd("https://api.cem.micronapps.com",m),new y.Cd("https://api.cem.micronapps.com",m)),Y=new y.Ed("https://api.cem.micronapps.com",m),$=new y.Fd("https://api.cem.micronapps.com",m),H=(new y.r("https://api.cem.micronapps.com",m),new y.Jd("https://api.cem.micronapps.com",m)),K=new y.Ld("https://api.cem.micronapps.com",m),Q=new y.Nd("https://api.cem.micronapps.com",m),Z=new y.Od("https://api.cem.micronapps.com",m),X=new y.Qd("https://api.cem.micronapps.com",m),ee=new y.Rd("https://api.cem.micronapps.com",m),te=(new y.Vd("https://api.cem.micronapps.com",m),new y.Wd("https://api.cem.micronapps.com",m),new y.Xd("https://api.cem.micronapps.com",m),new y.ae("https://api.cem.micronapps.com",m)),ie=(new y.ce("https://api.cem.micronapps.com",m),new y.de("https://api.cem.micronapps.com",m)),re=new y.je("https://api.cem.micronapps.com",m),ae=new y.ne("https://api.cem.micronapps.com",m),ne=new y.qe("https://api.cem.micronapps.com",m),oe=new y.se("https://api.cem.micronapps.com",m),se=new y.te("https://api.cem.micronapps.com",m),le=(new y.Pd("https://api.cem.micronapps.com",m),new y.Pe("https://api.cem.micronapps.com",m),new y.Qe("https://api.cem.micronapps.com",m)),ce=(new y.a("https://api.cem.micronapps.com",m),new y.v("https://api.cem.micronapps.com",m)),de=new y.q("https://api.cem.micronapps.com",m),ue=(new y.k("https://api.cem.micronapps.com",m),new y.Ud("https://api.cem.micronapps.com",m)),he=new y.be("https://api.cem.micronapps.com",m),pe=new y.Ie("https://api.cem.micronapps.com",m),ve=new y.Le("https://api.cem.micronapps.com",m),fe=new y.Je("https://api.cem.micronapps.com",m),me=new y.Oe("https://api.cem.micronapps.com",m)},151:function(e,t,i){"use strict";i.d(t,"b",(function(){return r})),i.d(t,"d",(function(){return a})),i.d(t,"e",(function(){return n})),i.d(t,"a",(function(){return o})),i.d(t,"c",(function(){return s}));var r="SET_COUNTRIES",a="SET_STATES",n="SET_TIMEZONES",o="SET_COUNTIES",s="SET_DATE_FORMATS"},1528:function(e,t){},1530:function(e,t){},1541:function(e,t){},1543:function(e,t){},156:function(e,t,i){"use strict";i.d(t,"b",(function(){return v}));var r=i(46),a=i(185),n=i(139),o=i(28),s=i.n(o),l=i(321);function c(){c=function(){return e};var e={},t=Object.prototype,i=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",n=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 a=t&&t.prototype instanceof h?t:h,n=Object.create(a.prototype),o=new C(r||[]);return n._invoke=function(e,t,i){var r="suspendedStart";return function(a,n){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw n;return j()}for(i.method=a,i.arg=n;;){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),n}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 p(){}function v(){}var f={};s(f,a,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(x([])));y&&y!==t&&i.call(y,a)&&(f=y);var g=v.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(a,n){function o(){return new t((function(r,o){!function r(a,n,o,s){var l=d(e[a],e,n);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)}(a,n,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 a=r.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):a:(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[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r=0;--a){var n=this.tryEntries[a],o=n.completion;if("root"===n.tryLoc)return r("end");if(n.tryLoc<=this.prev){var s=i.call(n,"catchLoc"),l=i.call(n,"finallyLoc");if(s&&l){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&i.call(a,"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 a=r.arg;O(i)}return a}}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)),p=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)}}(),v=function(){var e,t=null!==(e=a.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=a.a.getItem("config"))){e.next=7;break}r=o,e.next=9;break;case 7:return e.next=9,p().then((function(e){r.region=e.data.region,r.poolId=e.data.poolId,r.clientId=e.data.clientId,r.authUrl=e.data.url,a.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",n.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},1570:function(e,t){},1572:function(e,t){},1573:function(e,t){},1578:function(e,t){},1580:function(e,t){},1599:function(e,t){},16:function(e,t,i){"use strict";i.d(t,"c",(function(){return a})),i.d(t,"a",(function(){return n})),i.d(t,"b",(function(){return o}));var r=i(227),a=function(){return{type:r.b,payload:null}},n=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}}},1611:function(e,t){},1614:function(e,t){},165:function(e,t,i){"use strict";var r=i(0),a=i.n(r),n=i(18),o=i(1),s=i(201),l=i(16),c=i(26),d=i.n(c),u=function(e){var t=e.open,i=e.message,r=e.title,n=e.onClose,s=e.OnConfirm,l=e.onCancel,u=e.warning;return a.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 n()}))},a.a.createElement(c.DialogHeader,{id:"confirmation-dialog-title",colorMode:"light",titleBar:{title:r}}),a.a.createElement(c.DialogBody,{maxWidth:!1},i,u&&a.a.createElement(o.Alert,{type:"warning",variant:"outlined"},u)),a.a.createElement(c.DialogFooter,null,a.a.createElement(o.Button,{onClick:function(){return l()},color:"default",variant:"outlined",fullWidth:!0},"No"),a.a.createElement(o.Button,{onClick:function(){return s(),void n()},color:"primary",variant:"contained",autoFocus:!0,fullWidth:!0},"Yes")))};t.a=function(e){return Object(n.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,n=t.confirm,s=t.closeConfirm,l=t.children;return a.a.createElement(a.a.Fragment,null,i&&i.message&&a.a.createElement(o.Snackbar,{message:i.message,open:null!==i,onClose:r,type:i.variant,action:i.action}),n&&a.a.createElement(u,{open:null!=n,title:n.title,message:n.message,OnConfirm:n.OnConfirm,onClose:function(){n.onClose&&n.onClose(),s()},onCancel:function(){n.onCancel&&n.onCancel(),s()}}),a.a.createElement(e,t,l))}))}},1709:function(e,t){},171:function(e,t,i){"use strict";i(511);var r=i(102);i.d(t,"f",(function(){return r.c}));i(136);var a=i(183);i.d(t,"a",(function(){return a.a})),i.d(t,"b",(function(){return a.d})),i.d(t,"c",(function(){return a.e})),i.d(t,"d",(function(){return a.h})),i.d(t,"e",(function(){return a.i}))},172:function(e,t,i){"use strict";i.d(t,"a",(function(){return r})),i.d(t,"b",(function(){return a})),i.d(t,"d",(function(){return n})),i.d(t,"c",(function(){return o}));var r="SET_FIRM",a="SET_FIRM_NAME",n="SET_PASSWORD_POLICY",o="SET_LEARNING_SETTINGS"},173:function(e,t,i){"use strict";i.d(t,"a",(function(){return r})),i.d(t,"d",(function(){return a})),i.d(t,"c",(function(){return n})),i.d(t,"b",(function(){return o}));var r="SET_BRANDING",a="SET_ROLE_COURSE_FILTER",n="SET_ROLE_CALENDAR_FILTER",o="SET_IS_INITIAL_LOAD"},174:function(e,t,i){"use strict";i.d(t,"n",(function(){return a})),i.d(t,"o",(function(){return n})),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 p})),i.d(t,"d",(function(){return v})),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(62),a=function(e){return{type:r.o,payload:e}},n=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}},p=function(e){return{type:r.e,payload:e}},v=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}}},176:function(e,t,i){"use strict";i.d(t,"c",(function(){return r})),i.d(t,"a",(function(){return a})),i.d(t,"e",(function(){return n})),i.d(t,"d",(function(){return o})),i.d(t,"b",(function(){return s}));var r="SET_COURSE_DETAIL_LOADING",a="SET_COURSE_DETAIL",n="SET_COURSE_SESSIONS_LOADING",o="SET_COURSE_SESSIONS",s="SET_COURSE_DETAIL_FAVORITE"},177:function(e,t,i){"use strict";i.d(t,"a",(function(){return r})),i.d(t,"b",(function(){return a})),i.d(t,"c",(function(){return n})),i.d(t,"d",(function(){return o})),i.d(t,"e",(function(){return s}));var r="SET_EVALUATIONS",a="SET_EVALUATION_QUESTION_TYPES",n="SET_EVALUATION_REQEUST_BODY",o="SET_FORM_NUMBER_EXCLUDES",s="SET_FORM_NUMBER_STYLES"},1786:function(e,t,i){"use strict";i.r(t);var r=i(0),a=i.n(r),n=i(50),o=i.n(n),s=(i(1063),i(18)),l=i(46),c=i(8),d=i(54),u=i(291),h=i(1),p=i(673),v=i(7),f=i(1026),m=i(1027),y=i(1028),g=i(1029),b=i(1030);var S=i(251),E=function(e){var t=Object(r.useState)(!1),i=Object(c.a)(t,2),a=i[0],n=i[1],o=Object(s.c)((function(e){return e.permissionSets})).userPermissionSets;return Object(r.useEffect)((function(){(o&&o.includes(e)||e===v.Kd.NotSet)&&n(!0)}),[e,n,o]),a},I=i(156),O=i(76),C=i(129),x=i(20),j=i.n(x),w=i(73),T=i.n(w),P=i(80),A=i.n(P),N=i(14),k=i(33),D=i(12),L=i(349),J=i(42),F=Object(J.makeStyles)((function(){return Object(J.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 B(e){var t=e.columns,i=e.data,n=e.width,o=e.isResizing,s=F(),l=n/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(D.a)(Object(D.a)({},t),{},{maxWidth:n-e}):Object(D.a)(Object(D.a)({},t),{},{minWidth:l*t.width})}))}),[t,n,o,l]),d=Object(L.useTable)({columns:c||[],data:i,width:n,isResizing:o},L.useBlockLayout,L.useResizeColumns),u=d.getTableProps,h=d.getTableBodyProps,p=d.headerGroups,v=d.rows,f=d.prepareRow;return a.a.createElement("table",Object.assign({className:s.table},u()),a.a.createElement("thead",null,p.map((function(e){return a.a.createElement("tr",e.getHeaderGroupProps(),e.headers.map((function(e){return a.a.createElement("th",Object.assign({className:s.th},e.getHeaderProps({style:{minWidth:e.minWidth,width:e.width}})),a.a.createElement("span",null,e.render("Header")),o&&a.a.createElement("div",Object.assign({},e.getResizerProps(),{className:s.resizer}),"\u22ee"))})))}))),a.a.createElement("tbody",h(),v.map((function(e){return f(e),a.a.createElement("tr",Object.assign({},e.getRowProps(),{className:s.tr}),e.cells.map((function(e){return a.a.createElement("td",Object.assign({className:s.td},e.getCellProps({style:{minWidth:e.column.minWidth,width:e.column.width}})),e.render("Cell"))})))}))))}var R,U=i(15),G=i(16),M=function(e){return function(t){return U.d.getById(e,void 0).then((function(e){return e})).catch((function(e){var i;throw t(Object(G.a)({message:null!==(i=e.detail)&&void 0!==i?i:"Retrieval error",variant:"error"})),e}))}},q=function(e){return function(t){return U.d.getSessionFormDetails(e,void 0).then((function(e){return e})).catch((function(e){t(Object(G.b)(e))}))}},z=i(17),W=Object(z.makeStyles)((function(e){var t=e.spacing;return Object(z.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}}})})),V=Object(s.b)((function(){return{}}),(function(e){return{getAttendanceForm:function(t){return e(M(t))},getSessionDetails:function(t){return e(q(t))}}})),_=Object(d.o)(V((function(e){var t,i,n,o,l,d,u,p,f,m,y,g,b,S,E,I,O=e.getAttendanceForm,C=e.getSessionDetails,j=e.match,w=W(),P=j.params,D=P.sessionId,L=P.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})),R=Object(r.useState)(),U=Object(c.a)(R,2),G=U[0],M=U[1],q=Object(r.useState)(),z=Object(c.a)(q,2),V=z[0],_=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(+D).then((function(e){var t;M(e),K(null!==(t=null===e||void 0===e?void 0:e.sessionParticipants)&&void 0!==t?t:[])}))}),[C,D]),Object(r.useEffect)((function(){_(void 0),0!==+L?O(+L).then((function(e){if(void 0!==e)if(_(e),null===e||void 0===e?void 0:e.includeInstructorSignatureOnFirstRow){var t,i,r,a,n=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!n.includes(null!==(t=e.userId)&&void 0!==t?t:0)}));K((null!==(a=null===G||void 0===G?void 0:G.sessionInstructors)&&void 0!==a?a:[]).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})):_(void 0)}),[L,O,G]),Object(r.useEffect)((function(){if(V&&G){var e=Array();if(void 0!==(null===V||void 0===V?void 0:V.blankSignatureLinesNumber)){var t,i=null!==(t=null===V||void 0===V?void 0:V.blankSignatureLinesNumber)&&void 0!==t?t:0;Array.from({length:i},(function(e,t){return t+1})).forEach((function(t){var i=new v.he;i.sessionParticipantId=t,e.push(i)})),ee(e)}}else ee(void 0)}),[V,G]);var te=null!==(t=(null===V||void 0===V?void 0:V.information)&&(null===V||void 0===V?void 0:V.information.filter((function(e){return 1===e.column&&!0===e.includeForDisplay}))))&&void 0!==t?t:[],ie=null!==(i=(null===V||void 0===V?void 0:V.information)&&(null===V||void 0===V?void 0:V.information.filter((function(e){return 2===e.column&&!0===e.includeForDisplay}))))&&void 0!==i?i:[],re=null!==(n=(null===V||void 0===V?void 0:V.columns)&&V.columns.filter((function(e){return!0===e.includeForDisplay})))&&void 0!==n?n:[],ae=(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,ne=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!==(p=null===G||void 0===G?void 0:G.timeZone)&&void 0!==p?p:"",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:"-",pe=se&&se!==oe?"".concat(oe," - ").concat(se):oe,ve=""===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 v.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===V||void 0===V?void 0:V.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 v.n.Email:r="".concat(null===i||void 0===i?void 0:i.email);break;default:r=""}return a.a.createElement("div",{key:"".concat(e.type,"_data_row_cell"),style:{overflowWrap:"break-word"}},""!==r&&e.type===v.n.Name&&(null===i||void 0===i?void 0:i.isInstructor)?a.a.createElement(h.Typography,{style:{fontWeight:500,color:"black"}},r," ",a.a.createElement("i",null,"(Instructor)")):a.a.createElement(a.a.Fragment,null,e.type===v.n.LicenseDetails&&(null===i||void 0===i?void 0:i.userLicenseDetails)&&(null===i||void 0===i?void 0:i.userLicenseDetails.length)>0?a.a.createElement(a.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 a.a.createElement(h.Column,{key:"".concat(e.type,"_data_row_cell_").concat(t.licenseId)},a.a.createElement(h.Typography,{style:{fontWeight:500,color:"black"}},a.a.createElement("span",{dangerouslySetInnerHTML:{__html:"".concat(t.licenseName,": ").concat(""!==t.barNumber?Object(k.a)(t.barNumber):"-")}})))})))):a.a.createElement(h.Typography,{style:{fontWeight:500,color:"black"}},r)))}}}(e)})),be=H.concat(null!==X&&void 0!==X?X:[]);return a.a.createElement(h.Box,{margin:"20px auto",maxWidth:"1100px"},a.a.createElement(h.Grid,{container:!0,spacing:"card"},a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center-right",alignItems:"flex-end",alignContent:"flex-end",className:w.printButton},a.a.createElement(h.Box,{width:"100%",textAlign:"right"},a.a.createElement(h.Button,{onClick:function(){return window.print(),!1},variant:"contained",color:"primary",size:"small"},"Print")))),a.a.createElement(a.a.Fragment,null,void 0===V||void 0===G||void 0===X?a.a.createElement(h.Backdrop,{open:!0},a.a.createElement(h.CircularProgress,{color:"secondary"})):a.a.createElement(h.Box,{className:w.pageName},a.a.createElement(h.Box,{className:w.elementSpacing},a.a.createElement(h.Widget,null,a.a.createElement(h.Box,{ml:2,mr:2,mb:2,mt:2},a.a.createElement(A.a,{title:""}),a.a.createElement(T.a,{dense:!0},a.a.createElement(h.Grid,{container:!0,spacing:void 0},(null===V||void 0===V?void 0:V.headerIncludeFirmLogo)&&!Object(x.isEmpty)(F)&&a.a.createElement(h.Grid,{item:!0,xs:12,alignContent:"center",alignItems:"center",alignment:"center"},a.a.createElement("img",{src:F,alt:"Logo",width:"260px",height:"60px"})),a.a.createElement(h.Grid,{item:!0,xs:12,alignContent:"center",alignItems:"center",alignment:"center"},a.a.createElement(h.Typography,{variant:"h5",color:"default",align:"center"},(null===V||void 0===V?void 0:V.isSystem)?J:null===V||void 0===V?void 0:V.headerFirmName)),a.a.createElement(h.Grid,{item:!0,xs:12,alignContent:"center",alignItems:"center",alignment:"center"},a.a.createElement(h.Typography,{variant:"h6",color:"default",align:"center"},null===V||void 0===V?void 0:V.headerTitle)),!Object(x.isEmpty)(null===V||void 0===V?void 0:V.headerText)&&a.a.createElement(h.Grid,{item:!0,xs:12,alignContent:"center",alignItems:"center",alignment:"center"},a.a.createElement(h.TextEditorView,{model:Object(k.a)(null!==(E=null===V||void 0===V?void 0:V.headerText)&&void 0!==E?E:"")}))))))),a.a.createElement(h.Box,{className:w.elementSpacing},a.a.createElement(h.Widget,null,a.a.createElement(h.Box,{ml:2,mr:2,mb:2,mt:2},a.a.createElement(A.a,{title:""}),a.a.createElement(T.a,{dense:!0,disableGutters:!0},a.a.createElement(h.Box,{ml:2,mr:2},a.a.createElement(h.Grid,{container:!0,spacing:void 0,alignContent:"center"},a.a.createElement(h.Hidden,{mdDown:0===te.length||0===ie.length},a.a.createElement(h.Grid,{item:!0,lg:1,xl:1})),a.a.createElement(h.Grid,{item:!0,xs:0===ie.length?12:6,lg:0===ie.length?12:5},a.a.createElement(h.Grid,{container:!0,spacing:void 0},te.map((function(e){var t=e.column,i=e.label,r=e.type,n="";switch(r){case v.o.Title:n=null!==ae&&void 0!==ae?ae:"";break;case v.o.Format:n=ne;break;case v.o.Instructor:n=fe.length>0?fe.join(", "):"-";break;case v.o.Credits:n="[No Credits]";break;default:n=""}return a.a.createElement(a.a.Fragment,{key:"".concat(r,"_").concat(t)},a.a.createElement(h.Grid,{item:!0,xs:6,alignment:"top-right"},a.a.createElement(h.Typography,null,a.a.createElement("b",null,i,": "))),a.a.createElement(h.Grid,{item:!0,xs:6,className:w.data},a.a.createElement(a.a.Fragment,null,r===v.o.Credits&&(null===me||void 0===me?void 0:me.length)>0?a.a.createElement(a.a.Fragment,null,me&&me.map((function(e){var t,i,r="",n="",o=e&&e.licenseStatus===v.Dd.Pending,s=e&&e.licenseStatus===v.Dd.Denied;return a.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&&(n=n.concat("(".concat(e.propertyLabel,") "))),"Participatory"===e.propertyLabel&&(n=n.concat("(".concat(e.propertyLabel,") ")))})),a.a.createElement(h.Row,null,a.a.createElement(h.Typography,{style:{fontWeight:500,color:"black"}},a.a.createElement("span",{dangerouslySetInnerHTML:{__html:"".concat(e.name,": ").concat(""!==r?"".concat(r.slice(0,-2)," ").concat(""!==n?" - ".concat(n):""):"[No Credits]")}}),o&&a.a.createElement(h.Typography,{component:"span"},a.a.createElement("i",null,"(Pending)")),s&&a.a.createElement(h.Typography,{component:"span"},a.a.createElement("i",null,"(Denied)")))))}))):a.a.createElement(h.Box,{maxWidth:"350px"},a.a.createElement(h.Typography,{style:{fontWeight:500,color:"black"}},n)))))})))),a.a.createElement(h.Grid,{item:!0,xs:0===te.length?12:6,lg:0===te.length?12:5},a.a.createElement(h.Grid,{container:!0,spacing:void 0},ie.map((function(e){var t=e.column,i=e.label,r=e.type,n="";switch(r){case v.o.Date:n=pe;break;case v.o.Location:n=ue;break;case v.o.Time:n=ve;break;case v.o.Room:n=he;break;default:n=""}return a.a.createElement(a.a.Fragment,{key:"".concat(r,"_").concat(t)},a.a.createElement(h.Grid,{item:!0,xs:6,alignment:"top-right"},a.a.createElement(h.Typography,null,a.a.createElement("b",null,i,": "))),a.a.createElement(h.Grid,{item:!0,xs:6,className:w.data},a.a.createElement(h.Box,{maxWidth:"350px"},a.a.createElement(h.Typography,{style:{fontWeight:500,color:"black"}},n))))})))),a.a.createElement(h.Hidden,{mdDown:0===te.length||0===ie.length},a.a.createElement(h.Grid,{item:!0,lg:1,xl:1})))))))),a.a.createElement(h.Box,{className:w.elementSpacing},a.a.createElement(B,{data:be,columns:ge,width:1100,isResizing:!0})),!Object(x.isEmpty)(null===V||void 0===V?void 0:V.footerText)&&a.a.createElement(h.Box,{className:w.elementSpacing,textAlign:"center"},a.a.createElement(h.TextEditorView,{model:Object(k.a)(null!==(I=null===V||void 0===V?void 0:V.footerText)&&void 0!==I?I:"")})))),void 0!==V&&void 0!==G&&void 0!==X&&a.a.createElement(h.Grid,{container:!0,spacing:"card",className:w.card},a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center"},a.a.createElement(h.Column,{crossAxisAlignment:"center"},a.a.createElement(h.Box,{mt:3,mb:1},a.a.createElement(h.Typography,{variant:"caption"},a.a.createElement("b",null,"Micron Systems, Inc."))),a.a.createElement(h.Row,null,a.a.createElement(h.Box,{mr:1,mt:1},a.a.createElement(h.Typography,{variant:"caption"},"Generated by")),a.a.createElement("img",{alt:"",width:"125",height:"30",src:"../../../../images/cemanager-logo.png"})),a.a.createElement(h.Box,{mb:3,mt:1},a.a.createElement(h.Typography,{variant:"caption"},"on ",Object(N.c)(new Date,"MMMM DD, YYYY")))))))}))),Y=Object(z.makeStyles)((function(e){var t=e.spacing;return Object(z.createStyles)({printButton:{"@media print":{display:"none !important"}},boxProp:{marginTop:t(1),marginBottom:t(1),"@media print":{breakAfter:"always !important",pageBreakAfter:"always !important"}}})})),$=i(30),H=i.n($),K=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},Q=9999,Z=100,X=101,ee=149,te=227,ie=228,re=239,ae=240,ne=262,oe=333,se=322,le=381,ce=397,de=405,ue=411,he=446,pe=469,ve=481,fe=490,me=660,ye=661,ge=666,be=676,Se=679,Ee=1,Ie=2,Oe=3,Ce=4,xe=5,je=6,we=7,Te=8,Pe=9,Ae=1,Ne=1,ke=2,De=3,Le=4,Je=10,Fe=11,Be=12,Re="Live Faculty In Room",Ue="Live Video/Audio Format",Ge="Recorded Video/Audio Format",Me=1,qe=2,ze=4,We=5,Ve=4,_e=5,Ye=6,$e=7,He=8,Ke={PCAMID:5,PCAMReApprovalDate:6,FinancialHardship:9},Qe={RequestInNYYearEndReport:6,SelectNYLocation:7,AverageFee:8,FinancialHardship:9},Ze=17,Xe=1,et=2,tt=3,it=4,rt=1,at=2,nt=3,ot=4,st=5,lt=6,ct=7,dt=8,ut=1,ht=1,pt=2,vt=3,ft=18,mt=19,yt=20,gt=21,bt=3,St=4,Et=5,It=6,Ot=7,Ct=8,xt=9,jt=10,wt=11,Tt=12,Pt=13,At=14,Nt=22,kt=23,Dt=24,Lt=25,Jt=26,Ft=27,Bt=28,Rt=29,Ut=30,Gt=31,Mt=32,qt=33,zt=Object(J.makeStyles)((function(e){return Object(J.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"}})})),Wt=function(e){var t,i,r,n,o,s,l,c,d,u,p,f,m,y,g,b=e.certificate,S=e.isInstructor,E=e.licenseId,I=e.sessionDetails,O=e.userId,C=zt(),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)?H()(null===I||void 0===I?void 0:I.startDate).format("MMMM DD, YYYY"):"",T=(null===I||void 0===I?void 0:I.endDate)?H()(null===I||void 0===I?void 0:I.endDate).format("MMMM DD, YYYY"):"",P=T&&T!==w?"".concat(w," - ").concat(T):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!==(n=null===I||void 0===I||null===(o=I.location)||void 0===o?void 0:o.city)&&void 0!==n?n:"",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}))),M=(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}))),q=S?G:M,z="".concat(q.firstName," ").concat((null===b||void 0===b?void 0:b.includeMiddleName)?"".concat(q.middleName):""," ").concat(q.lastName),W="".concat((null===b||void 0===b?void 0:b.includeBarNumber)&&null!==(d=null===q||void 0===q?void 0:q.licenseBarNumber)&&void 0!==d?d:""),V=null===q||void 0===q?void 0:q.caLawParticipatory,_=null===q||void 0===q||null===(u=q.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===X})),r=(null===i||void 0===i?void 0:i.licenseStatus)===v.Dd.Pending,a=(null===i||void 0===i?void 0:i.licenseStatus)===v.Dd.Denied,n=i&&i.expirationDate&&null!==i.expirationDate&&Object(N.d)(i.expirationDate)<=Object(N.d)(q.completionDate);return r||a||n?"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})))),K=Y(null===_||void 0===_||null===(p=_.find((function(e){return e.creditId===Ee})))||void 0===p?void 0:p.value),Q=Y(null===_||void 0===_||null===(f=_.find((function(e){return e.creditId===Oe})))||void 0===f?void 0:f.value),Z=Y(null===_||void 0===_||null===(m=_.find((function(e){return e.creditId===Ie})))||void 0===m?void 0:m.value),ee=Y(null===_||void 0===_||null===(y=_.find((function(e){return e.creditId===xe})))||void 0===y?void 0:y.value),te=q.completionDate?H()(q.completionDate).format("MMMM DD, YYYY"):"",ie=(null===I||void 0===I?void 0:I.isIndividualSessionDateAllowed)?te:P;return a.a.createElement(h.Box,{maxWidth:900,margin:"0 auto",className:C.divDetails},a.a.createElement(h.Box,{style:{width:"100%",alignItems:"center"}},a.a.createElement(h.Table,{id:"tblCACertificate2014",className:C.tblCACertificate2014},a.a.createElement(h.TableBody,null,a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:C.table,style:{padding:0}},a.a.createElement(h.Box,{className:C.infoContainer,style:{padding:"16px 0px"}},a.a.createElement(h.Typography,{className:C.textheader},"CERTIFICATE OF"," ".concat(S?"INSTRUCTION":"ATTENDANCE"," FOR CALIFORNIA MCLE"))),a.a.createElement(h.Box,{className:C.tableInfoBox},a.a.createElement(h.Row,{mainAxisAlignment:"center",crossAxisAlignment:"middle"},a.a.createElement(h.Box,{className:C.textBold,style:{display:"flex"}},"Sections 1 and 2\xa0",a.a.createElement(h.Typography,{className:C.textUnderline},"must"),"\xa0be completed by Provider"))),a.a.createElement(h.Box,{className:C.infoContainer,style:{padding:"16px 0px"}},a.a.createElement(h.Box,{className:C.infoLabel},a.a.createElement(h.Typography,{className:C.numberedLabel},"1. PROVIDER INFORMATION (please print)")),a.a.createElement(h.Typography,{className:C.infoLabelDescription})),a.a.createElement(h.Box,{className:C.infoContainer,style:{padding:"4px 0px 4px 16px"}},a.a.createElement(h.Typography,{className:C.infoLabel},"Provider Name:"),a.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)),a.a.createElement(h.Box,{className:C.infoContainer,style:{padding:"4px 0px 4px 16px"}},a.a.createElement(h.Typography,{className:C.infoLabel},"Provider Number:"),a.a.createElement(h.Typography,{className:C.infoDescription},null!==(g=null===b||void 0===b?void 0:b.licenseProviderNumber)&&void 0!==g?g:"")),a.a.createElement(h.Box,{className:C.infoContainer,style:{padding:"4px 0px 4px 16px"}},a.a.createElement(h.Typography,{className:C.infoLabel},"Title of Activity:"),a.a.createElement(h.Typography,{className:C.infoDescription},j)),a.a.createElement(h.Box,{className:C.infoContainer,style:{padding:"4px 0px 4px 16px"}},a.a.createElement(h.Box,{className:C.divStyle},a.a.createElement(h.Typography,{className:C.infoLabel},"Date(s) of Activity:"),a.a.createElement(h.Typography,{className:C.infoDescription},ie)),a.a.createElement(h.Box,{className:C.divStyle},a.a.createElement(h.Typography,{className:C.infoLabel},"Time of Activity:"),a.a.createElement(h.Typography,{className:C.infoDescription},L))),a.a.createElement(h.Box,{className:C.infoContainer,style:{padding:"4px 0px 4px 16px"}},a.a.createElement(h.Typography,{className:C.infoLabel},"Location of Activity (City/State):"),a.a.createElement(h.Typography,{className:C.infoDescription},(null===b||void 0===b?void 0:b.includeLocation)&&!Object(x.isEmpty)(U)?U:"Not Applicable")),a.a.createElement(h.Box,{className:C.infoContainer,style:{padding:"16px 0px"}},a.a.createElement(h.Box,{className:C.infoLabel},a.a.createElement(h.Typography,{className:C.numberedLabel},"2. ACTIVITY INFORMATION")),a.a.createElement(h.Typography,{className:C.infoLabelDescription})),a.a.createElement(h.Box,{className:C.infoLabel,style:{padding:"4px 0px 4px 16px"}},"This Activity qualifies for:",a.a.createElement(h.Box,{className:C.divStyle,style:{padding:"4px 16px"}},a.a.createElement(h.Box,{className:C.divCheckbox},a.a.createElement(h.Typography,{className:C.checkBox},!0===V&&a.a.createElement(h.SystemIcon,{icon:"Check",size:"xs",className:C.systemIcon})),a.a.createElement(h.Typography,{className:C.checkboxMarginLeft},"Participatory Credit")),a.a.createElement(h.Box,{className:C.divCheckbox},a.a.createElement(h.Typography,{className:C.checkBox},!1===V&&a.a.createElement(h.SystemIcon,{icon:"Check",size:"xs",className:C.systemIcon})),a.a.createElement(h.Typography,{className:C.checkboxMarginLeft},"Self-study Credit")))),a.a.createElement(h.Box,{style:{padding:"4px 0px 4px 16px"}},"Total California MCLE Credit Hours for the above activity:",a.a.createElement(h.Typography,{className:C.creditDescription},"0"===$?"":$),", including",a.a.createElement("br",null),"the following sub-field credits:",a.a.createElement(h.Box,{style:{padding:"4px 16px"}},a.a.createElement(h.Box,{className:C.divCheckbox},a.a.createElement(h.Typography,{className:C.checkBox},"0"!==K&&a.a.createElement(h.SystemIcon,{icon:"Check",size:"xs",className:C.systemIcon})),a.a.createElement(h.Typography,{className:C.checkboxMarginLeft},"Legal Ethics:",a.a.createElement(h.Typography,{className:C.creditDescription},"0"===K?"":K))),a.a.createElement(h.Box,{className:C.divCheckbox},a.a.createElement(h.Typography,{className:C.checkBox},"0"!==Q&&a.a.createElement(h.SystemIcon,{icon:"Check",size:"xs",className:C.systemIcon})),a.a.createElement(h.Typography,{className:C.checkboxMarginLeft},"Recognition and Elimination of Bias:",a.a.createElement(h.Typography,{className:C.creditDescription},"0"===Q?"":Q))),a.a.createElement(h.Box,{className:C.divCheckbox},a.a.createElement(h.Typography,{className:C.checkBox},"0"!==ee&&a.a.createElement(h.SystemIcon,{icon:"Check",size:"xs",className:C.systemIcon})),a.a.createElement(h.Typography,{className:C.checkboxMarginLeft},"Implicit Bias:",a.a.createElement(h.Typography,{className:C.creditDescription},"0"===ee?"":ee))),a.a.createElement(h.Box,{className:C.divCheckbox},a.a.createElement(h.Typography,{className:C.checkBox},"0"!==Z&&a.a.createElement(h.SystemIcon,{icon:"Check",size:"xs",className:C.systemIcon})),a.a.createElement(h.Typography,{className:C.checkboxMarginLeft},"Competence Issues:",a.a.createElement(h.Typography,{className:C.creditDescription},"0"===Z?"":Z))))),a.a.createElement(h.Box,{className:C.infoContainer,style:{padding:"16px 0px"}},a.a.createElement(h.Typography,{className:C.infoLabel},a.a.createElement(h.Box,{className:C.infoContainer},a.a.createElement(h.Typography,{className:C.textBold},"Provider Signature")," (authorized representative):")),a.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)&&a.a.createElement("img",{alt:"signature",src:null===b||void 0===b?void 0:b.signatureUrl,width:200,height:25,className:C.image}))),a.a.createElement(h.Box,{className:C.tableInfoBox},a.a.createElement(h.Row,{mainAxisAlignment:"center",crossAxisAlignment:"middle"},a.a.createElement(h.Box,{className:C.textBold,style:{display:"flex"}},"Section 3 is to be completed by the Attorney\xa0",a.a.createElement(h.Typography,{className:C.textUnderline},"after"),"\xa0participation in the above-referenced activity"))),a.a.createElement(h.Box,{className:C.infoContainer,style:{padding:"16px 0px"}},a.a.createElement(h.Box,{className:C.infoLabel},a.a.createElement(h.Typography,{className:C.numberedLabel},"3. ATTORNEY INFORMATION (please print)")),a.a.createElement(h.Typography,{className:C.infoLabelDescription})),a.a.createElement(h.Box,{className:C.infoContainer,style:{padding:"4px 0px 4px 16px"}},a.a.createElement(h.Typography,{className:C.infoLabel},"Name of Attorney:"),a.a.createElement(h.Typography,{className:C.infoDescription},z)),a.a.createElement(h.Box,{className:C.infoContainer,style:{padding:"4px 0px 4px 16px"}},a.a.createElement(h.Typography,{className:C.infoLabel},"Attorney California State Bar Number:"),a.a.createElement(h.Typography,{className:C.infoNumberDescription},W)),a.a.createElement(h.Box,{className:C.infoContainer,style:{padding:"4px 0px 4px 16px"}},a.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 ",a.a.createElement("br",null),"therefore entitled to claim the California MCLE credit hours noted above.")),a.a.createElement(h.Box,{className:C.infoContainer,style:{padding:"4px 0px 4px 16px"}},a.a.createElement(h.Typography,{className:C.infoLabel},"Attorney Signature:"),a.a.createElement(h.Box,{className:C.infoDescription},(null===b||void 0===b?void 0:b.includeParticipantSignature)&&!Object(x.isEmpty)(null===q||void 0===q?void 0:q.signatureUrl)&&a.a.createElement("img",{alt:"signature",src:null===q||void 0===q?void 0:q.signatureUrl,width:200,height:25,className:C.image}))))))),a.a.createElement("br",null),a.a.createElement("br",null),a.a.createElement(h.Box,{className:C.tdAlignEnd},a.a.createElement(h.Typography,{className:C.footer},"MCLE Certificate of Attendance 2022-08"))))},Vt=Object(J.makeStyles)((function(){return Object(J.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"}}})})),_t=function(e){var t,i,r,n,o,s,l,c,d,u,p,f,m,y,g,b,S,E,I,O,C,j,w=e.certificate,T=e.isInstructor,P=e.licenseId,A=e.sessionDetails,k=e.userId,D=e.isAttendance,L=Vt(),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)?H()(null===A||void 0===A?void 0:A.startDate).format("MMMM DD, YYYY"):"",B=(null===A||void 0===A?void 0:A.endDate)?H()(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):"",M=null!==(t=null===A||void 0===A?void 0:A.timeZone)&&void 0!==t?t:"",q=""===U&&""===G?"":G?"".concat(U," ").concat(G," ").concat(null===M?"":M):"".concat(U," ").concat(null===M?"":M),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!==(n=null===A||void 0===A||null===(o=A.location)||void 0===o?void 0:o.city)&&void 0!==n?n:"",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 K=(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}))),Q=(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=T?K:Q,ee="".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),te="".concat((null===w||void 0===w?void 0:w.includeBarNumber)&&null!==(p=null===Z||void 0===Z?void 0:Z.licenseBarNumber)&&void 0!==p?p:""),ie=null===Z||void 0===Z?void 0:Z.caLawParticipatory,re=Z.completionDate?H()(Z.completionDate).format("MMMM DD, YYYY"):"",ae=(null===A||void 0===A?void 0:A.isIndividualSessionDateAllowed)?re:R,ne=!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())?ne=!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())||(ne=!1);var oe,se,le,ce,de,ue,he,pe,ve,fe=null===Z||void 0===Z||null===(f=Z.userLicenseCreditValues)||void 0===f?void 0:f.filter((function(e){return e.licenseId===P})),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===X})),r=(null===i||void 0===i?void 0:i.licenseStatus)===v.Dd.Pending,a=(null===i||void 0===i?void 0:i.licenseStatus)===v.Dd.Denied,n=i&&i.expirationDate&&null!==i.expirationDate&&Object(N.d)(i.expirationDate)<=Object(N.d)(Z.completionDate);return r||a||n?"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===Ce})))||void 0===m?void 0:m.value),se=me(null===fe||void 0===fe||null===(y=fe.find((function(e){return e.creditId===Ee})))||void 0===y?void 0:y.value),le=me(null===fe||void 0===fe||null===(g=fe.find((function(e){return e.creditId===Oe})))||void 0===g?void 0:g.value),ce=me(null===fe||void 0===fe||null===(b=fe.find((function(e){return e.creditId===xe})))||void 0===b?void 0:b.value),de=me(null===fe||void 0===fe||null===(S=fe.find((function(e){return e.creditId===je})))||void 0===S?void 0:S.value),ue=me(null===fe||void 0===fe||null===(E=fe.find((function(e){return e.creditId===we})))||void 0===E?void 0:E.value),he=me(null===fe||void 0===fe||null===(I=fe.find((function(e){return e.creditId===Te})))||void 0===I?void 0:I.value),pe=me(null===fe||void 0===fe||null===(O=fe.find((function(e){return e.creditId===Pe})))||void 0===O?void 0:O.value),ve=me(Object(x.sum)(null===fe||void 0===fe||null===(C=fe.filter((function(e){return e.creditId!==Ie})))||void 0===C?void 0:C.map((function(e){return e.value})))),a.a.createElement(h.Box,{maxWidth:"900px",margin:"0 auto",className:L.divDetails},a.a.createElement(h.Box,{style:{alignItems:"center"}},a.a.createElement(h.Table,null,a.a.createElement(h.TableBody,null,a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:L.table},a.a.createElement(h.Box,{style:{padding:"16px 0px 20px 0px"}},a.a.createElement(h.Typography,{className:L.titleHeader},"California MCLE"),a.a.createElement(h.Typography,{className:L.titleHeader},"Certificate of\xa0",a.a.createElement(h.Typography,{variant:"body1",className:L.blueText},(void 0===D?ne:D)?"Attendance":"Completion"))),a.a.createElement(h.Box,{className:L.infoContainer,style:{padding:"4px 0px 4px 14px"}},a.a.createElement(h.Box,{className:L.divStyle},a.a.createElement(h.Typography,{className:L.infoLabel},"Provider Name:\xa0"),a.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,")"):_)),a.a.createElement(h.Box,{className:L.divStyle,style:{maxWidth:"245px"}},a.a.createElement(h.Typography,{className:L.infoLabel},"Provider No:\xa0"),a.a.createElement(h.Typography,{className:L.infoNumberDescription},null!==(j=null===w||void 0===w?void 0:w.licenseProviderNumber)&&void 0!==j?j:""))),a.a.createElement(h.Box,{className:L.infoContainer,style:{padding:"4px 0px 4px 14px"}},a.a.createElement(h.Typography,{className:L.infoLabel},"Title of Activity:\xa0"),a.a.createElement(h.Typography,{className:L.infoDescription},J)),a.a.createElement(h.Box,{className:L.infoContainer,style:{padding:"4px 0px 4px 14px"}},a.a.createElement(h.Typography,{className:L.infoLabel},"Location of Activity\xa0",a.a.createElement(h.Typography,{variant:"body1",className:L.blackSmallText},"(",a.a.createElement("i",null,"City, State/Country/Remote"),")"),":\xa0"),a.a.createElement(h.Typography,{className:L.infoDescription},(null===w||void 0===w?void 0:w.includeLocation)&&!Object(x.isEmpty)($)?$:"Not Applicable",", ",Y)),a.a.createElement(h.Box,{className:L.infoContainer,style:{padding:"4px 0px 4px 14px"}},a.a.createElement(h.Typography,{className:L.infoLabel},"Date & Time of the Activity:\xa0"),a.a.createElement(h.Typography,{className:L.infoDescription},ae," ",q)),a.a.createElement(h.Box,{className:L.infoContainer,style:{padding:"20px 13px"}},a.a.createElement(h.Typography,{className:L.infoParagraph,style:{fontSize:"14pt"}},"Minimum Continuing Legal Education (MCLE) Credit Hours Awarded for the Above Activity")),a.a.createElement(h.Box,{className:L.infoContainer,style:{justifyContent:"center"}},a.a.createElement("table",{className:L.creditTable},a.a.createElement("tr",{className:L.creditTableHeader+" "+((void 0===D?ne:D)?L.creditTableRowAttendaceColors:L.creditTableRowCompletionColors)},a.a.createElement("td",null,"Credit Type"),a.a.createElement("td",null,"Credit",a.a.createElement("br",null),"Hours")),a.a.createElement("tr",{className:L.creditTableRowCols},a.a.createElement("td",null,"General MCLE"),a.a.createElement("td",null,oe)),a.a.createElement("tr",{className:L.creditTableRowCols},a.a.createElement("td",null,"Legal Ethics"),a.a.createElement("td",null,se)),a.a.createElement("tr",{className:L.creditTableRowCols},a.a.createElement("td",null,"Recognition & Elimination of Bias"),a.a.createElement("td",null,le)),a.a.createElement("tr",{className:L.creditTableRowCols},a.a.createElement("td",null,"Implicit Bias"),a.a.createElement("td",null,ce)),a.a.createElement("tr",{className:L.creditTableRowCols},a.a.createElement("td",null,"Prevention & Detection Competence"),a.a.createElement("td",null,de)),a.a.createElement("tr",{className:L.creditTableRowCols},a.a.createElement("td",null,"Wellness Competence"),a.a.createElement("td",null,ue)),a.a.createElement("tr",{className:L.creditTableRowCols},a.a.createElement("td",null,"Technology in the Practice of Law"),a.a.createElement("td",null,he)),a.a.createElement("tr",{className:L.creditTableRowCols},a.a.createElement("td",null,"Civility in the Legal Profession"),a.a.createElement("td",null,pe)),a.a.createElement("tr",{className:L.creditTableRowTotal},a.a.createElement("td",null,"Total"),a.a.createElement("td",null,ve)))),a.a.createElement(h.Box,{className:L.infoContainer,style:{padding:"20px 24px"}},a.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")),a.a.createElement(h.Box,{className:L.infoContainer,style:{justifyContent:"space-between"}},a.a.createElement("div",{className:L.licenseeNameField},Object(x.isEmpty)(ee)?a.a.createElement("div",{style:{marginTop:"25px"}}):ee,a.a.createElement("div",{className:L.signatureFieldLabel},"Name of CA Licensee\xa0",a.a.createElement("span",{className:L.blackSmallText},"(",a.a.createElement("i",null,"print name"),")"))),a.a.createElement("div",{className:L.barNumberField},Object(x.isEmpty)(te)?a.a.createElement("div",{style:{marginTop:"25px"}}):te,a.a.createElement("div",{className:L.signatureFieldLabel},"CA Bar Number")),a.a.createElement("div",{className:L.signatureField},Object(x.isEmpty)(null===Z||void 0===Z?void 0:Z.signatureUrl)?a.a.createElement("div",{style:{marginTop:"25px"}}):a.a.createElement("img",{alt:"signature",src:null===Z||void 0===Z?void 0:Z.signatureUrl,width:200,height:20,className:L.image}),a.a.createElement("div",{className:L.signatureFieldLabel},"Signature of CA Licensee")))))))))},Yt=Object(z.makeStyles)((function(){return Object(z.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"}})})),$t=function(e){var t,i,r,n,o,s,l,c,d,u,p,f,m,y,g,b,S,E,I,O,C,j=e.certificate,w=e.isInstructor,T=e.licenseId,P=e.sessionDetails,A=e.userId,k=Yt(),D=(null===P||void 0===P?void 0:P.title)!==(null===P||void 0===P?void 0:P.courseTitle)?"".concat(null===P||void 0===P?void 0:P.courseTitle," (").concat(null===P||void 0===P?void 0:P.title,")"):null===P||void 0===P?void 0:P.courseTitle,L=(null===P||void 0===P?void 0:P.startDate)?H()(null===P||void 0===P?void 0:P.startDate).format("MMMM DD, YYYY"):"",J=(null===P||void 0===P?void 0:P.endDate)?H()(null===P||void 0===P?void 0:P.endDate).format("MMMM DD, YYYY"):"",F=J&&J!==L?"".concat(L," - ").concat(J):L,B=null!==(t=null===P||void 0===P||null===(i=P.location)||void 0===i?void 0:i.city)&&void 0!==t?t:"",R=null!==(r=null===P||void 0===P||null===(n=P.location)||void 0===n?void 0:n.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===P||void 0===P?void 0:P.sessionInstructors)&&(null===P||void 0===P?void 0:P.sessionInstructors.find((function(e){return e.userId===A}))):(null===P||void 0===P?void 0:P.sessionParticipants)&&(null===P||void 0===P?void 0:P.sessionParticipants.find((function(e){return e.userId===A})))).lastName)&&void 0!==o?o:"",M="".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:""),q=C.completionDate?H()(C.completionDate).format("MMMM DD, YYYY"):"",z=(null===P||void 0===P?void 0:P.isIndividualSessionDateAllowed)?q:F,W=function(e){var t,i=null===P||void 0===P||null===(t=P.sessionLicenses)||void 0===t?void 0:t.find((function(e){return e.licenseId===T})),r=(null===i||void 0===i?void 0:i.licenseStatus)===v.Dd.Pending,a=(null===i||void 0===i?void 0:i.licenseStatus)===v.Dd.Denied,n=i&&i.expirationDate&&null!==i.expirationDate&&Object(N.d)(i.expirationDate)<=Object(N.d)(C.completionDate);return r||a||n?"0":e&&e>0?Number.isInteger(e)?e.toFixed(1):parseFloat(e.toFixed(4)).toString():"0"},V=null===P||void 0===P||null===(c=P.sessionLicenses)||void 0===c||null===(d=c.find((function(e){return e.licenseId===T})))||void 0===d?void 0:d.sessionLicenseCredits,_=null!==(u=null===P||void 0===P||null===(p=P.approvalCodes)||void 0===p||null===(f=p.find((function(e){return e.licenseId===T})))||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===T})),$=W(Object(x.sum)(null===V||void 0===V?void 0:V.map((function(e){return e.creditValue})))),K=W(Object(x.sum)(null===V||void 0===V||null===(g=V.filter((function(e){return e.creditId===ut})))||void 0===g?void 0:g.map((function(e){return e.creditValue})))),Q=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===ut})))||void 0===b?void 0:b.map((function(e){return e.value}))));return a.a.createElement(h.Box,{style:{border:"5px double #000000"},maxWidth:"900px",margin:"0 auto",className:k.divDetails},a.a.createElement(h.Box,{style:{alignItems:"center"}},a.a.createElement(h.Table,{id:"tblCertificate",style:{width:"100%",pageBreakAfter:"auto",display:"block",margin:"25px",marginRight:"25px"}},a.a.createElement(h.TableBody,null,a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{textAlign:"center",padding:0,border:"none"}},a.a.createElement(h.Box,{className:k.divHeader},a.a.createElement(h.Typography,{className:k.h1Header},"Colorado Supreme Court ",a.a.createElement("br",null),"Office of Continuing Legal & Judicial Education ",a.a.createElement("br",null),"1300 Broadway, Suite 510 ",a.a.createElement("br",null),"Denver, CO 80203 ",a.a.createElement("br",null),"(303) 928-7771 ",a.a.createElement("br",null),a.a.createElement(h.Typography,{className:k.desc,style:{textDecoration:"underline",fontWeight:"bold"}},"www.coloradosupremecourt.us")),a.a.createElement(h.Typography,{className:k.h3Header},"NOTICE OF ACCREDITATION")))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{textAlign:"left",padding:0,border:"none"}},a.a.createElement(h.Typography,{className:k.pHeader},"The Board has accredited the following continuing legal education seminar under Rule 260:"))),a.a.createElement(h.TableRow,{className:k.certificateDataHeader},a.a.createElement(h.TableCell,{width:"25%",className:k.certificatedataTDHeader},"NAME OF SEMINAR"),a.a.createElement(h.TableCell,{width:"20%",className:k.certificatedataTDHeader},"LOCATION"),a.a.createElement(h.TableCell,{width:"20%",className:k.certificatedataTDHeader},"DATE"),a.a.createElement(h.TableCell,{width:"16%",className:k.certificatedataTDHeader},"SPONSOR"),a.a.createElement(h.TableCell,{width:"10%",className:k.certificatedataTDHeader},"GENERAL",a.a.createElement("br",null)," CREDITS"),a.a.createElement(h.TableCell,{width:"9%",className:k.certificatedataTDHeader},"ETHICS",a.a.createElement("br",null)," CREDITS")),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{width:"100%"})),a.a.createElement(h.TableRow,{className:k.certificateDataHeader},a.a.createElement(h.TableCell,{width:"25%",className:k.certificatedataTD},D),a.a.createElement(h.TableCell,{width:"20%",className:k.certificatedataTD},(null===j||void 0===j?void 0:j.includeLocation)?U:""),a.a.createElement(h.TableCell,{width:"20%",className:k.certificatedataTD},z),a.a.createElement(h.TableCell,{width:"16%",className:k.certificatedataTD},null!==(S=null===P||void 0===P?void 0:P.provider)&&void 0!==S?S:""),a.a.createElement(h.TableCell,{width:"10%",className:k.certificatedataTD},$),a.a.createElement(h.TableCell,{width:"9%",className:k.certificatedataTD},K)),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{textAlign:"justify",padding:0,border:"none"}},a.a.createElement(h.Typography,{className:k.desc},a.a.createElement("br",null),"Colorado attorneys and judges who attend the entire seminar may claim the credits indicated. If any Ethics Credits are ",a.a.createElement("br",null)," indicated, they may be claimed by attending those parts of seminar indicated below the seminar's name. Ethics credits are",a.a.createElement("br",null)," NOT IN ADDITION TO General Credits. General and Ethics Credits are NOT added to or subtracted from each other. This",a.a.createElement("br",null),"accreditation is awarded provided the sponsor permits the Board's staff to attend the seminar, gives every Colorado attorney",a.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",a.a.createElement("br",null)," attending Colorado attorneys and judges; and delivers the executed forms to the Board within 10 days after the seminar.",a.a.createElement("br",null),a.a.createElement("br",null),"Date Reviewed: _________________",a.a.createElement("br",null),a.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",a.a.createElement("br",null)," CLE Transcripts. You can access the online entry of Affidavits by visiting http://www.cletrack.com. Click on CLE Transcripts,",a.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.",a.a.createElement("br",null),a.a.createElement("br",null),a.a.createElement(h.Typography,{className:k.desc,style:{fontWeight:"bold"}},"DO NOT CLAIM THESE CREDITS ON ANY OTHER AFFIDAVIT"),a.a.createElement("br",null),"CERTIFICATION OF ".concat(w?"INSTRUCTION":"ATTENDANCE",": "),"By signing below I certify that I am entitled to claim:"))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{textAlign:"justify",padding:0,border:"none"}},a.a.createElement(h.Box,{className:k.lineText,style:{textAlign:"center",marginTop:"20px"}},a.a.createElement(h.Typography,{className:k.creditDescription},Q),"\xa0General Credits \xa0",a.a.createElement(h.Typography,{className:k.creditDescription},Z),"\xa0Ethics Credits"))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:k.styleNoWrap,style:{textAlign:"justify",padding:0,border:"none"}},a.a.createElement(h.Box,{className:k.divStyle,style:{marginTop:"20px"}},a.a.createElement(h.Box,{className:k.barNumberContainer},a.a.createElement(h.Box,{className:k.barNumberLabel,style:{minWidth:"90px"}},"ATTY NUMBER"),a.a.createElement(h.Box,{className:k.styleFlexWithBorder},(null===j||void 0===j?void 0:j.includeBarNumber)&&M)),a.a.createElement(h.Box,{className:k.nameContainer},a.a.createElement(h.Box,{className:k.nameLabel},"LAST NAME (print):"),a.a.createElement(h.Box,{className:k.styleFlexWithBorder},G))))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:k.styleNoWrap,style:{textAlign:"justify",padding:0,border:"none"}},a.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"}},a.a.createElement(h.Box,{className:k.signatureContainer},a.a.createElement(h.Box,{className:k.signatureLabel,style:{minWidth:"90px"}},"SIGNATURE"),a.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)&&a.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"}}))),a.a.createElement(h.Box,{className:k.dateContainer},a.a.createElement(h.Box,{className:k.dateLabel},"DATE"),a.a.createElement(h.Box,{className:k.styleFlexWithBorder,style:{whiteSpace:"pre-wrap"}}))))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{textAlign:"justify",padding:0,display:"flex",border:"none"}},a.a.createElement(h.Box,{className:k.lineText,style:{marginTop:"20px",textAlign:"left",display:"flex"}},a.a.createElement(h.Typography,{className:k.desc,style:{fontWeight:"bold"}},"COURSE ID:"),a.a.createElement(h.Typography,{className:k.courseIdDescription},_)))))),a.a.createElement("br",null),a.a.createElement("br",null),a.a.createElement("br",null),a.a.createElement("br",null)))},Ht=i(683),Kt=i(1799),Qt=Object(Ht.a)((function(){return Object(Kt.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"}}})})),Zt=function(e){var t,i,r,n,o,s,l,c,d,u,p,f,m,y,g,b,S,E,I,O=e.certificate,C=e.isInstructor,j=e.licenseId,w=e.sessionDetails,T=e.userId,P=Qt(),A=(null===w||void 0===w?void 0:w.title)!==(null===w||void 0===w?void 0:w.courseTitle)?"".concat(null===w||void 0===w?void 0:w.courseTitle," (").concat(null===w||void 0===w?void 0:w.title,")"):null===w||void 0===w?void 0:w.courseTitle,D=null!==(t=null===w||void 0===w?void 0:w.courseFormat)&&void 0!==t?t:"",L=(null===w||void 0===w?void 0:w.startDate)?H()(null===w||void 0===w?void 0:w.startDate).format("MMMM DD, YYYY"):"",J=(null===w||void 0===w?void 0:w.endDate)?H()(null===w||void 0===w?void 0:w.endDate).format("MMMM DD, YYYY"):"",F=(null===w||void 0===w?void 0:w.startTime)?null===w||void 0===w?void 0:w.startTime:"",B=(null===w||void 0===w?void 0:w.endTime)&&(null===w||void 0===w?void 0:w.endTime)!==(null===w||void 0===w?void 0:w.startTime)?" - ".concat(null===w||void 0===w?void 0:w.endTime):"",R=null!==(i=null===w||void 0===w?void 0:w.timeZone)&&void 0!==i?i:"",U=J&&J!==L?"".concat(L," - ").concat(J):L,G=""===F&&""===B?"-":B?"".concat(F," ").concat(B," ").concat(null===R?"":R):"".concat(F," ").concat(null===R?"":R),M=C?null!==(r=null===w||void 0===w||null===(n=w.sessionInstructors)||void 0===n?void 0:n.filter((function(e){return e.userId===T})))&&void 0!==r?r:[]:null!==(o=null===w||void 0===w?void 0:w.sessionInstructors)&&void 0!==o?o:[],q=null===M||void 0===M?void 0:M.map((function(e){return"".concat(e.firstName).concat((null===O||void 0===O?void 0:O.includeMiddleName)&&!Object(x.isEmpty)(e.middleName)?" ".concat(e.middleName," "):" ").concat(e.lastName)})),z=null!==(s=null===w||void 0===w||null===(l=w.location)||void 0===l?void 0:l.name)&&void 0!==s?s:"",W=null!==(c=null===w||void 0===w||null===(d=w.location)||void 0===d?void 0:d.city)&&void 0!==c?c:"",V=null!==(u=null===w||void 0===w||null===(p=w.location)||void 0===p?void 0:p.state)&&void 0!==u?u:"",_="On-demand"===(null!==(f=null===w||void 0===w?void 0:w.formatCategory)&&void 0!==f?f:""),Y=null!==(m=null===w||void 0===w?void 0:w.provider)&&void 0!==m?m:"",$="";$=Object(x.isEmpty)(W)&&Object(x.isEmpty)(V)?"".concat(z):"".concat(z," ").concat((null===O||void 0===O?void 0:O.includeCity)||(null===O||void 0===O?void 0:O.includeState)?"(".concat((null===O||void 0===O?void 0:O.includeCity)?W:"").concat((null===O||void 0===O?void 0:O.includeState)&&!Object(x.isEmpty)(V)?(null===O||void 0===O?void 0:O.includeCity)&&!Object(x.isEmpty)(W)?", ".concat(V):V:"",")"):""),I=C?(null===w||void 0===w?void 0:w.sessionInstructors)&&(null===w||void 0===w?void 0:w.sessionInstructors.find((function(e){return e.userId===T}))):(null===w||void 0===w?void 0:w.sessionParticipants)&&(null===w||void 0===w?void 0:w.sessionParticipants.find((function(e){return e.userId===T})));var K="".concat(I.firstName," ").concat((null===O||void 0===O?void 0:O.includeMiddleName)?"".concat(I.middleName):""," ").concat(I.lastName),Q=null!==(y=I.licenseBarNumber)&&void 0!==y?y:"",Z=Object(x.uniq)(null===(g=I)||void 0===g||null===(b=g.userLicenseCreditValues)||void 0===b?void 0:b.map((function(e){return e.licenseId}))),X=I.completionDate?H()(I.completionDate).format("MMMM DD, YYYY"):"",ee=(null===w||void 0===w?void 0:w.isIndividualSessionDateAllowed)?X:U,te=I.completionDate?H()(I.completionDate).format("LT"):"-",ie=_?te:G,re=function(){if(0!==j){var e,t,i,r,n,o,s,l,c,d,u,p,f,m,y=null!==(e=null===w||void 0===w||null===(t=w.approvalCodes)||void 0===t||null===(i=t.find((function(e){return e.licenseId===j})))||void 0===i?void 0:i.propertyValue)&&void 0!==e?e:"",g=null!==(r=I.userLicenseCreditValues&&(null===(n=I.userLicenseCreditValues[0])||void 0===n?void 0:n.licenseName))&&void 0!==r?r:"",b=j===se?null!==(o=null===(s=I)||void 0===s||null===(l=s.userLicenseCreditValues)||void 0===l||null===(c=l.find((function(e){return e.creditId===Ae})))||void 0===c?void 0:c.value)&&void 0!==o?o:0:Object(x.sum)(null===(d=I.userLicenseCreditValues)||void 0===d?void 0:d.map((function(e){return e.value}))),S=null===w||void 0===w||null===(u=w.sessionLicenses)||void 0===u?void 0:u.find((function(e){return e.licenseId===j})),E=(null===S||void 0===S?void 0:S.licenseStatus)===v.Dd.Pending,C=(null===S||void 0===S?void 0:S.licenseStatus)===v.Dd.Denied,T=S&&S.expirationDate&&null!==S.expirationDate&&Object(N.d)(S.expirationDate)<=Object(N.d)(I.completionDate),P=function(e){return e&&e>0?Number.isInteger(e)?e.toFixed(1):parseFloat(e.toFixed(4)).toString():"0"},A=j===ge&&(null===(p=I)||void 0===p||null===(f=p.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 a.a.createElement(h.Column,{crossAxisAlignment:"center",mainAxisAlignment:"middle"},a.a.createElement(h.Typography,{variant:"subtitle1",color:"inherit",weight:"bold"},a.a.createElement("b",null,g)),(null===O||void 0===O?void 0:O.includeApprovalCode)&&!Object(x.isEmpty)(y)&&a.a.createElement(h.Row,null,a.a.createElement(h.Typography,{variant:"subtitle2",color:"inherit",weight:"bold"},a.a.createElement("b",null,"Approval Code:")),a.a.createElement(h.Box,{ml:1},a.a.createElement(h.Typography,{variant:"subtitle2",color:"inherit"},y))),!T&&!E&&!C&&(null===(m=I.userLicenseCreditValues)||void 0===m?void 0:m.filter((function(e){return 0!==e.value})).map((function(e){return a.a.createElement(h.Row,{key:e.creditId},a.a.createElement(h.Typography,{variant:"subtitle2",color:"inherit",weight:"bold"},P(e.value)),a.a.createElement(h.Box,{ml:1},a.a.createElement(h.Typography,{variant:"subtitle2",color:"inherit"},e.creditName)))}))),j!==oe&&a.a.createElement(h.Typography,{variant:"subtitle2",color:"inherit"},"For a total of ",a.a.createElement("b",null,T||E||C?(0).toFixed(1):P(b))," ","Credits"),j===ge&&a.a.createElement(h.Typography,{variant:"subtitle2",color:"inherit"},A))}var k=0;return a.a.createElement(a.a.Fragment,null,Z.length>7?a.a.createElement("span",{style:{textAlign:"center"}},Z.map((function(e){var t,i,r,n,o,s,l,c,d,u,p,f,m,y,g,b;k+=1;var S=null!==(t=null===w||void 0===w||null===(i=w.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:"",E=null!==(n=null===(o=I)||void 0===o||null===(s=o.userLicenseCreditValues)||void 0===s?void 0:s.filter((function(t){return t.licenseId===e}))[0].licenseName)&&void 0!==n?n:"",C=null===(l=I)||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)})),j=null===(u=I)||void 0===u||null===(p=u.userLicensePropertyValues)||void 0===p?void 0:p.find((function(t){return t.licenseId===e&&"Reciprocal"===t.propertyLabel&&!0===t.valueBit})),T=e===fe&&(null===(f=I)||void 0===f||null===(m=f.userLicensePropertyValues)||void 0===m?void 0:m.find((function(e){return 3===e.propertyId&&!0===e.valueBit})))?" (Transitional)":"",P=e===ge&&(null===(y=I)||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===w||void 0===w||null===(b=w.sessionLicenses)||void 0===b?void 0:b.find((function(t){return t.licenseId===e})),D=(null===A||void 0===A?void 0:A.licenseStatus)===v.Dd.Pending,L=(null===A||void 0===A?void 0:A.licenseStatus)===v.Dd.Denied,J=A&&A.expirationDate&&null!==A.expirationDate&&Object(N.d)(A.expirationDate)<=Object(N.d)(I.completionDate);return a.a.createElement("span",{key:e},a.a.createElement(h.Typography,{variant:"caption",color:"inherit",display:"inline"},a.a.createElement("b",null,E.toUpperCase()),a.a.createElement(a.a.Fragment,null,"".concat(C&&0===C.length||J||L?" 0 Credits":" ".concat(null===C||void 0===C?void 0:C.join(", ")).concat(T).concat(P)).concat(Object(x.isEmpty)(S)||!0!==(null===O||void 0===O?void 0:O.includeApprovalCode)?"":" (Approval Code: ".concat(S,")")).concat(D?" (Pending)":"").concat(void 0!==j?" (Reciprocal)":"").concat(k!==Z.length?", ":""))))}))):a.a.createElement(h.Column,{crossAxisAlignment:"center",mainAxisAlignment:"middle"},Z.map((function(e){var t,i,r,n,o,s,l,c,d,u,p,f,m,y,g,b;k+=1;var S=null!==(t=null===w||void 0===w||null===(i=w.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:"",E=null!==(n=null===(o=I)||void 0===o||null===(s=o.userLicenseCreditValues)||void 0===s?void 0:s.filter((function(t){return t.licenseId===e}))[0].licenseName)&&void 0!==n?n:"",C=null===(l=I)||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)})),j=null===(u=I)||void 0===u||null===(p=u.userLicensePropertyValues)||void 0===p?void 0:p.find((function(t){return t.licenseId===e&&"Reciprocal"===t.propertyLabel&&!0===t.valueBit})),T=e===fe&&(null===(f=I)||void 0===f||null===(m=f.userLicensePropertyValues)||void 0===m?void 0:m.find((function(e){return 3===e.propertyId&&!0===e.valueBit})))?" (Transitional)":"",P=e===ge&&(null===(y=I)||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===w||void 0===w||null===(b=w.sessionLicenses)||void 0===b?void 0:b.find((function(t){return t.licenseId===e})),D=(null===A||void 0===A?void 0:A.licenseStatus)===v.Dd.Pending,L=(null===A||void 0===A?void 0:A.licenseStatus)===v.Dd.Denied,J=A&&A.expirationDate&&null!==A.expirationDate&&Object(N.d)(A.expirationDate)<=Object(N.d)(I.completionDate);return a.a.createElement(h.Expanded,{key:e,maxWidth:700},a.a.createElement(h.Typography,{variant:"caption",color:"inherit",align:"center"},a.a.createElement("b",null,E.toUpperCase()),a.a.createElement(a.a.Fragment,null,"".concat(C&&0===C.length||J||L?" 0 Credits":" ".concat(null===C||void 0===C?void 0:C.join(", ")).concat(T).concat(P)).concat(Object(x.isEmpty)(S)||!0!==(null===O||void 0===O?void 0:O.includeApprovalCode)?"":" (Approval Code: ".concat(S,")")).concat(D?" (Pending)":"").concat(void 0!==j?" (Reciprocal)":"").concat(k!==Z.length?";":""))))}))))};return a.a.createElement(h.Box,{style:{border:"5px double #BDBDBD"},maxWidth:"855px",margin:"0 auto"},a.a.createElement(h.Box,{className:P.divDetails},a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center"},a.a.createElement(h.Box,{mt:4,mb:2},a.a.createElement(h.Column,{crossAxisAlignment:"center",mainAxisAlignment:"middle"},(null===O||void 0===O?void 0:O.includeFirmName)&&a.a.createElement(h.Typography,{variant:"h6",color:"inherit",align:"center",style:{letterSpacing:"0.25em",overflowWrap:"anywhere",whiteSpace:"pre-wrap"}},Y),(null===O||void 0===O?void 0:O.includeFirmLogo)&&!Object(x.isEmpty)(null===O||void 0===O?void 0:O.firmLogoUrl)&&a.a.createElement(h.Grid,{item:!0,xs:12,alignContent:"center",alignItems:"center",alignment:"center"},a.a.createElement("img",{src:null===O||void 0===O?void 0:O.firmLogoUrl,alt:"Logo",width:"320px",height:"80px"})),0!==(null===O||void 0===O?void 0:O.locationId)&&a.a.createElement(h.Typography,{variant:"subtitle2",color:"inherit",align:"center",style:{letterSpacing:"0.15em",overflowWrap:"anywhere",whiteSpace:"pre-wrap"}},-1===(null===O||void 0===O?void 0:O.locationId)?$:null===O||void 0===O?void 0:O.locationValue)))),a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center"},a.a.createElement(h.Box,{mt:2,mb:2},a.a.createElement(h.Column,{crossAxisAlignment:"center",mainAxisAlignment:"middle"},a.a.createElement(h.Typography,{variant:"h6",color:"inherit",style:{letterSpacing:"0.10em"}},"CERTIFICATE OF ".concat(C?"INSTRUCTION":_?"COMPLETION":"ATTENDANCE")),Z.length>0&&a.a.createElement(h.Typography,{variant:"h6",color:"inherit",style:{letterSpacing:"0.10em"}},(null===O||void 0===O?void 0:O.programName)||"Continuing Education Program")))),a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center"},a.a.createElement(h.Column,{crossAxisAlignment:"center",mainAxisAlignment:"middle"},a.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular",color:"inherit",align:"center",style:{overflowWrap:"anywhere",whiteSpace:"pre-wrap"}},a.a.createElement("u",null,"Course")),a.a.createElement(h.Box,null,a.a.createElement(h.Typography,{variant:"subtitle2",color:"inherit",weight:"bold",align:"center",style:{overflowWrap:"anywhere",whiteSpace:"pre-wrap"}},A)),a.a.createElement(h.Typography,{variant:"subtitle2",color:"inherit",align:"center",style:{overflowWrap:"anywhere",whiteSpace:"pre-wrap"}},"Format: ",D))),!C&&a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center"},a.a.createElement(h.Column,{crossAxisAlignment:"center",mainAxisAlignment:"middle"},a.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular",color:"inherit",align:"center",style:{overflowWrap:"anywhere",whiteSpace:"pre-wrap"}},a.a.createElement("u",null,"".concat(_?"Participant":"Attendee"))),a.a.createElement(h.Typography,{variant:"subtitle2",color:"inherit",weight:"bold",align:"center",style:{overflowWrap:"anywhere",whiteSpace:"pre-wrap"}},K),(null===O||void 0===O?void 0:O.includeBarNumber)&&!Object(x.isEmpty)(Q)&&a.a.createElement(h.Typography,{variant:"subtitle2",color:"inherit",align:"center",style:{overflowWrap:"anywhere",whiteSpace:"pre-wrap"}},"Bar Number: ",Q))),(null===O||void 0===O?void 0:O.includeInstructorName)&&!Object(x.isEmpty)(q)&&a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center"},a.a.createElement(h.Column,{crossAxisAlignment:"center",mainAxisAlignment:"middle"},a.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular",color:"inherit",align:"center",style:{overflowWrap:"anywhere",whiteSpace:"pre-wrap"}},a.a.createElement("u",null,"Instructor")),a.a.createElement(h.Box,{maxWidth:"500px"},a.a.createElement(h.Typography,{variant:"subtitle2",color:"inherit",weight:"bold",align:"center",style:{overflowWrap:"anywhere",whiteSpace:"pre-wrap"}},q.join(", "))))),a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center"},a.a.createElement(h.Column,{crossAxisAlignment:"center",mainAxisAlignment:"middle"},a.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular",color:"inherit",align:"center",style:{overflowWrap:"anywhere",whiteSpace:"pre-wrap"}},a.a.createElement("u",null,"Date ".concat(C?"Taught":_?"Completed":"Attended"))),a.a.createElement(h.Typography,{variant:"subtitle2",color:"inherit",weight:"bold",align:"center",style:{overflowWrap:"anywhere",whiteSpace:"pre-wrap"}},ee),(null===O||void 0===O?void 0:O.includeLocation)&&!Object(x.isEmpty)($)&&a.a.createElement(h.Typography,{variant:"subtitle2",color:"inherit",align:"center",style:{overflowWrap:"anywhere",whiteSpace:"pre-wrap"}},"Location: ",$),(null===O||void 0===O?void 0:O.includeTime)&&a.a.createElement(h.Typography,{variant:"subtitle2",color:"inherit",align:"center",style:{overflowWrap:"anywhere",whiteSpace:"pre-wrap"}},"Time: ",null!==ie&&void 0!==ie?ie:"-"))),a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center"},a.a.createElement(h.Column,{crossAxisAlignment:"center",mainAxisAlignment:"middle"},22!==(null===O||void 0===O?void 0:O.templateId)||C||_?22===(null===O||void 0===O?void 0:O.templateId)&&!C&&_?a.a.createElement(h.TextEditorView,{model:Object(k.a)(void 0!==(null===O||void 0===O?void 0:O.attendeeStatementOndemand)&&null!==(null===O||void 0===O?void 0:O.attendeeStatementOndemand)&&""!==(null===O||void 0===O?void 0:O.attendeeStatementOndemand)?O.attendeeStatementOndemand:'
This document certifies that the Attendee completed 
this program and has earned the following credits:
')}):22===(null===O||void 0===O?void 0:O.templateId)&&C?a.a.createElement(h.TextEditorView,{model:Object(k.a)(void 0!==(null===O||void 0===O?void 0:O.instructorStatement)&&null!==(null===O||void 0===O?void 0:O.instructorStatement)&&""!==(null===O||void 0===O?void 0:O.instructorStatement)?O.instructorStatement:'
This document certifies that the Instructor taught
this program and has earned the following credits:
')}):a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Typography,{variant:"subtitle2",color:"inherit"},"This document certifies that the ".concat(C?"Instructor taught":_?"participant completed":"Attendee participated")),a.a.createElement(h.Typography,{variant:"subtitle2",color:"inherit"},"".concat(C||_?"":"in ","this program ").concat(Z.length>0?"and has earned the following credits:":""))):a.a.createElement(h.TextEditorView,{model:Object(k.a)(void 0!==(null===O||void 0===O?void 0:O.attendeeStatement)&&null!==(null===O||void 0===O?void 0:O.attendeeStatement)&&""!==(null===O||void 0===O?void 0:O.attendeeStatement)?O.attendeeStatement:'
This document certifies that the Attendee participated
in this program and has earned the following credits:
')}))),Z.length>0&&a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center"},a.a.createElement(re,null)),((null===O||void 0===O?void 0:O.includeValidatorSignatureLine)||(null===O||void 0===O?void 0:O.includeParticipantSignature))&&a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.Box,{height:"16px"})),a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement("div",{className:P.infoContainer,style:{justifyContent:"center"}},a.a.createElement("div",{className:P.infoContainer,style:{alignItems:"flex-start"}},(null===O||void 0===O?void 0:O.includeValidatorSignatureLine)&&a.a.createElement("div",{className:P.signatureField,style:{paddingLeft:(null===O||void 0===O?void 0:O.includeParticipantSignature)?"30px":"15px"}},Object(x.isEmpty)(null===O||void 0===O?void 0:O.signatureUrl)?a.a.createElement("div",{style:{width:200,height:32}}):a.a.createElement("img",{alt:"signature",src:null===O||void 0===O?void 0:O.signatureUrl,width:200,height:25,style:{imageRendering:"auto",objectFit:"scale-down"}}),a.a.createElement("div",{className:P.label},null===O||void 0===O?void 0:O.validatorName),a.a.createElement("div",{className:P.titleLabel},null===O||void 0===O?void 0:O.validatorTitle)),(null===O||void 0===O?void 0:O.includeParticipantSignature)&&a.a.createElement("div",{className:P.signatureField,style:{paddingLeft:(null===O||void 0===O?void 0:O.includeValidatorSignatureLine)?"30px":"15px"}},Object(x.isEmpty)(null===(S=I)||void 0===S?void 0:S.signatureUrl)?a.a.createElement("div",{style:{width:200,height:32}}):a.a.createElement("img",{alt:"signature",src:null===(E=I)||void 0===E?void 0:E.signatureUrl,width:200,height:25,style:{imageRendering:"auto",objectFit:"scale-down"}}),a.a.createElement("div",{className:P.label},K),a.a.createElement("div",{className:P.titleLabel},"".concat(C?"Instructor":_?"Participant":"Attendee"))))))),!Object(x.isEmpty)(null===O||void 0===O?void 0:O.accreditedProvider)&&a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center"},a.a.createElement(h.Box,{ml:2,mr:2,mt:2,mb:Object(x.isEmpty)(null===O||void 0===O?void 0:O.additionalText)?4:1},a.a.createElement(h.TextEditorView,{model:Object(k.a)(null===O||void 0===O?void 0:O.accreditedProvider)}))),!Object(x.isEmpty)(null===O||void 0===O?void 0:O.additionalText)&&a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center"},a.a.createElement(h.Box,{ml:2,mr:2,mb:4},a.a.createElement(h.TextEditorView,{model:Object(k.a)(null===O||void 0===O?void 0:O.additionalText)}))))))},Xt=i(58),ei=Object(z.makeStyles)((function(e){e.spacing;return Object(z.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"}}})})),ti=function(e){var t,i,r,n,o,s,l,c,d,u,p,f,m,y,g,b,S,E,I,O,C,j=e.certificate,w=e.isInstructor,T=e.licenseId,P=e.sessionDetails,A=e.userId,k=ei(),D=null!==(t=null===P||void 0===P?void 0:P.courseTitle)&&void 0!==t?t:"",L=null!==(i=null===P||void 0===P?void 0:P.title)&&void 0!==i?i:"",J=(null===P||void 0===P?void 0:P.startDate)?H()(null===P||void 0===P?void 0:P.startDate).format("MMMM DD, YYYY"):"",F=(null===P||void 0===P?void 0:P.endDate)?H()(null===P||void 0===P?void 0:P.endDate).format("MMMM DD, YYYY"):"",B=F&&F!==J?"".concat(J," - ").concat(F):J,R=(null===P||void 0===P?void 0:P.startTime)?null===P||void 0===P?void 0:P.startTime:"",U=(null===P||void 0===P?void 0:P.endTime)&&(null===P||void 0===P?void 0:P.endTime)!==(null===P||void 0===P?void 0:P.startTime)?"".concat(null===P||void 0===P?void 0:P.endTime):"",G=null!==(r=null===P||void 0===P?void 0:P.timeZone)&&void 0!==r?r:"",M=null!==(n=null===P||void 0===P||null===(o=P.location)||void 0===o?void 0:o.name)&&void 0!==n?n:"",q=null!==(s=null===P||void 0===P||null===(l=P.location)||void 0===l?void 0:l.city)&&void 0!==s?s:"",z=null!==(c=null===P||void 0===P||null===(d=P.location)||void 0===d?void 0:d.state)&&void 0!==c?c:"",W=null!==(u=null===P||void 0===P?void 0:P.provider)&&void 0!==u?u:"",V="";V=Object(x.isEmpty)(q)&&Object(x.isEmpty)(z)?"".concat(M):"".concat(M," ").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)?q:"").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)(q)?", ".concat(z):z:"",")"):"");var _=(null===P||void 0===P?void 0:P.sessionInstructors)&&(null===P||void 0===P?void 0:P.sessionInstructors.find((function(e){return e.userId===A}))),Y=(null===P||void 0===P?void 0:P.sessionParticipants)&&(null===P||void 0===P?void 0:P.sessionParticipants.find((function(e){return e.userId===A}))),$=w?_:Y,K="".concat($.firstName," ").concat((null===j||void 0===j?void 0:j.includeMiddleName)?"".concat($.middleName):""," ").concat($.lastName),Q="".concat((null===j||void 0===j?void 0:j.includeBarNumber)&&null!==(p=null===$||void 0===$?void 0:$.licenseBarNumber)&&void 0!==p?p:""),Z=function(e){var t,i=null===P||void 0===P||null===(t=P.sessionLicenses)||void 0===t?void 0:t.find((function(e){return e.licenseId===le})),r=(null===i||void 0===i?void 0:i.licenseStatus)===v.Dd.Pending,a=(null===i||void 0===i?void 0:i.licenseStatus)===v.Dd.Denied,n=i&&i.expirationDate&&null!==i.expirationDate&&Object(N.d)(i.expirationDate)<=Object(N.d)($.completionDate);return r||a||n?"0":e&&e>0?Number.isInteger(e)?e.toFixed(1):parseFloat(e.toFixed(4)).toString():"0"},X=null===P||void 0===P||null===(f=P.sessionLicenses)||void 0===f||null===(m=f.find((function(e){return e.licenseId===le})))||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===T})),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!==Le})).map((function(e){return e.value})))),ae=Z(null===te||void 0===te||null===(g=te.find((function(e){return e.creditId===Ne})))||void 0===g?void 0:g.value),ne=Z(null===te||void 0===te||null===(b=te.find((function(e){return e.creditId===ke})))||void 0===b?void 0:b.value),oe=Z(null===te||void 0===te||null===(S=te.find((function(e){return e.creditId===De})))||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===le})),ce=!1,de=w?function(){if(w){if(null===se||void 0===se?void 0:se.find((function(e){return e.propertyId===Fe&&null!==e.valueChar})))return ce=!0,"PANELIST";if(null===se||void 0===se?void 0:se.find((function(e){return e.propertyId===Je&&null!==e.valueChar})))return ce=!1,"INDIVIDUAL"}return"INDIVIDUAL"}():"",ue=function(e){var t,i=null===P||void 0===P||null===(t=P.sessionLicenses)||void 0===t?void 0:t.find((function(e){return e.licenseId===le})),r=(null===i||void 0===i?void 0:i.licenseStatus)===v.Dd.Pending,a=(null===i||void 0===i?void 0:i.licenseStatus)===v.Dd.Denied,n=i&&i.expirationDate&&null!==i.expirationDate&&Object(N.d)(i.expirationDate)<=Object(N.d)($.completionDate);return r||a||n?"0":e||"0"},he=ue(null===se||void 0===se||null===(I=se.find((function(e){return e.propertyId===Je})))||void 0===I?void 0:I.valueChar),pe=ue(null===se||void 0===se||null===(O=se.find((function(e){return e.propertyId===Fe})))||void 0===O?void 0:O.valueChar),ve=void 0!==(null===se||void 0===se?void 0:se.find((function(e){return e.propertyId===Be})))?ue(null===se||void 0===se||null===(C=se.find((function(e){return e.propertyId===Be})))||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(pe),ye=Object(x.isEmpty)(ve)?6*me:Number(ve),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?H()($.completionDate).format("MMMM DD, YYYY"):"",je=(null===P||void 0===P?void 0:P.isIndividualSessionDateAllowed)?xe:B,we=Number(ie)>=Number(ee);return a.a.createElement(h.Box,{maxWidth:900,margin:"0 auto",style:{width:"100%",alignItems:"center"},className:k.divDetails},a.a.createElement(h.Table,{id:"tblILCertificate",style:{width:"100%",pageBreakAfter:"auto"},className:k.table},a.a.createElement(h.TableBody,{className:w?"":k.styleBorder},a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:k.styleForm4},w?ce?"Form 10a2":"Form 10a1":"Form 4")),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:k.styleTitleForm,style:{padding:0}},a.a.createElement(h.Typography,{className:k.textSize20b},"ILLINOIS ACCREDITED MCLE COURSE"))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:k.styleTitleForm,style:{display:"flex",padding:"3px 14px"}},w&&a.a.createElement(h.Typography,{className:k.textSize12b,style:{margin:"0 auto"}},a.a.createElement(h.Box,{className:k.infoContainer},"TEACHING CERTIFICATE\xa0",!Object(x.isEmpty)(de)&&a.a.createElement(a.a.Fragment,null,"--\xa0",a.a.createElement(h.Typography,{className:k.darkOrange,style:{fontSize:"12pt",fontWeight:"bolder"}},de)))),!w&&a.a.createElement(h.Typography,{className:k.textSize12b,style:{margin:"0 auto"}},"ATTENDANCE CERTIFICATE"))),w&&a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:k.textSize11,style:{textAlign:"left",padding:"3px 14px"}},a.a.createElement(h.Box,{style:{display:"flex"}},ce&&"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",a.a.createElement(h.Typography,{className:k.styleItalic,style:{fontSize:"11pt"}},"795(d)(5)"),", or at a bar or professional"),a.a.createElement(h.Box,{style:{display:"flex"}},"association meeting under MCLE Rule\xa0",a.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).")),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:k.styleTitleUnderlineForm,style:{fontSize:"12.5pt",padding:"14px 14px 0 14px"}},"SECTION A: PROVIDER COMPLETES THIS SECTION")),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:k.styleNoWrap,style:{padding:"0px 15px 0px 30px"}},a.a.createElement(h.Box,{className:k.infoContainer},a.a.createElement(h.Typography,{className:k.infoLabel},"Provider Name:"),a.a.createElement(h.Typography,{className:k.infoDescription},a.a.createElement(h.Box,{className:k.infoContainer},W,"\xa0",(null===j||void 0===j?void 0:j.locationValue)&&a.a.createElement(h.Typography,{className:k.textSize11},"(",null===j||void 0===j?void 0:j.locationValue,")")))))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:k.styleNoWrap,style:{padding:"0px 15px 0px 23px"}},a.a.createElement(h.Box,{className:k.infoContainer},a.a.createElement(h.Typography,{className:k.infoLabel,style:{marginRight:"31px",letterSpacing:"0.19pt"}},"CLE Course/Activity Title:"),a.a.createElement(h.Typography,{className:k.infoDescription},D," ",w||L===D?"":"(".concat(L,")"))))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:k.styleNoWrap,style:{padding:"0px 15px 0px 30px"}},a.a.createElement(h.Box,{className:k.divStyle},a.a.createElement(h.Box,{className:k.divDataContainer},a.a.createElement(h.Typography,{className:k.divDataValue},"Course/Activity Date(s):"),a.a.createElement(h.Typography,{className:k.styleFlexWithBorder},je)),a.a.createElement(h.Box,{className:k.divDataV2Container},a.a.createElement(h.Typography,{className:k.textSize11,style:{paddingRight:"24px",textAlign:"left"}},"Location:"),a.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):""))))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:k.styleNoWrap,style:{padding:"0px 15px 0px 30px"}},a.a.createElement(h.Box,{className:k.divStyle},a.a.createElement(h.Box,{className:k.divDataContainer},a.a.createElement(h.Typography,{className:k.divDataValue},"Attorney Name:"),a.a.createElement(h.Typography,{className:k.styleFlexWithBorder,style:{whiteSpace:"pre-wrap",overflowWrap:"anywhere"}},K)),a.a.createElement(h.Box,{className:k.divDataV2Container,style:{alignItems:"flex-start"}},a.a.createElement(h.Typography,{className:k.textSize11,style:{paddingRight:"24px",textAlign:"left"}},"Attorney ARDC #:"),a.a.createElement(h.Typography,{className:k.styleFlexWithBorderAttNum,style:{paddingRight:"24px",textAlign:"left"}},Q))))),w&&a.a.createElement(a.a.Fragment,null,a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:k.styleNoWrap,style:{padding:"5px 15px 0px 14px"}},a.a.createElement(h.Box,{className:k.infoContainer,style:{alignItems:"flex-end"}},a.a.createElement(h.Typography,{className:k.infoLabel},a.a.createElement(h.Box,{className:k.infoContainer},"Session Title\xa0",a.a.createElement(h.Typography,{className:k.textSize10,style:{fontSize:"8.25pt",paddingTop:"2px"}},"(if different from")))))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:k.styleNoWrap,style:{padding:"0px 15px 0px 42px"}},a.a.createElement(h.Box,{className:k.infoContainer,style:{alignItems:"flex-end"}},a.a.createElement(h.Typography,{className:k.textSize10,style:{fontSize:"8.25pt",paddingBottom:"3px",paddingRight:"11px",marginRight:"14px"}},"Course/Activity Title above):"),a.a.createElement(h.Typography,{className:k.infoDescription},D!==L?L:"")))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:k.styleNoWrap,style:{padding:"0px 15px 0px 15px"}},a.a.createElement(h.Box,{className:k.divStyle},a.a.createElement(h.Box,{className:k.divDataContainer,style:{alignItems:"flex-end"}},a.a.createElement(h.Typography,{className:k.divDataValue},"Session Taught Start Time:"),a.a.createElement(h.Typography,{className:k.styleFlexWithBorder},R)),a.a.createElement(h.Box,{className:k.divDataV2Container,style:{alignItems:"flex-end"}},a.a.createElement(h.Typography,{className:k.textSize11,style:{paddingRight:"24px"}},"Session Taught End Time:"),a.a.createElement(h.Typography,{className:k.styleFlexWithBorder,style:{whiteSpace:"pre-wrap"}},Object(x.isEmpty)(U)?"":"".concat(U," ").concat(G))))))),w&&a.a.createElement(a.a.Fragment,null,a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:k.textSize12,style:{fontWeight:"bolder",padding:"5px 14px"}},"From MCLE TEACHING CREDIT CALCULATION WORKSHEET")),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:k.textSize12,style:{fontWeight:"bolder",padding:"0px 0px 0px 113px"}},"TOTAL MCLE Teaching Credit")),a.a.createElement(h.TableRow,{style:{display:"flex"}},a.a.createElement(h.TableCell,{className:k.textSize11,style:{flex:"85%",padding:"0px 0px 0px 113px"}},"(from CLE Calculation Worksheet, Line 4)"),a.a.createElement(h.TableCell,{style:{flex:"15%",padding:"2px"}},a.a.createElement(h.Typography,{className:k.styleCredit},ie)),a.a.createElement(h.TableCell,{style:{flex:"9%",padding:"2px"}},"\xa0")),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:k.styleNoWrap,style:{padding:"0px 0px 0px 137px"}},a.a.createElement(h.Box,{className:k.infoContainer},a.a.createElement(h.Typography,{className:k.darkOrange,style:{fontSize:"11pt"}},"Including"),"\xa0",a.a.createElement(h.Typography,{className:k.textSize12,style:{fontWeight:"bolder"}},"TOTAL Professional Responsibility Credits")))),a.a.createElement(h.TableRow,{style:{display:"flex"}},a.a.createElement(h.TableCell,{className:k.textSize11,style:{flex:"75%",padding:"0px 0px 0px 137px"}},"(from CLE Calculation Worksheet, Line 4PR)"),a.a.createElement(h.TableCell,{className:k.darkOrange,style:{fontSize:"11pt",flex:"10%",padding:"2px"}},"Including:"),a.a.createElement(h.TableCell,{style:{flex:"15%",padding:"2px"}},a.a.createElement(h.Typography,{className:k.styleCredit},re)),a.a.createElement(h.TableCell,{style:{flex:"9%",padding:"2px"}},"\xa0")),a.a.createElement(h.TableRow,{className:k.styleNoWrap},a.a.createElement(h.TableCell,{className:k.styleNoWrap,style:{padding:"10px 200px 0px 200px"}},a.a.createElement(h.Typography,{className:k.textSize12},"Professional Responsibility Credit Area:"),a.a.createElement(h.Typography,{className:k.textSize11,style:{flex:"1"}},a.a.createElement("img",{alt:"check",src:"0"===ae?"/images/logos/button_uncheck.gif":"/images/logos/button_check.gif"}),"Diversity/Inclusion"),a.a.createElement(h.Typography,{className:k.textSize11,style:{flex:"1"}},a.a.createElement("img",{alt:"check",src:"0"===ne?"/images/logos/button_uncheck.gif":"/images/logos/button_check.gif"}),"Mental Health and Substance Abuse"),a.a.createElement(h.Typography,{className:k.textSize11,style:{flex:"1"}},a.a.createElement("img",{alt:"check",src:"0"===oe?"/images/logos/button_uncheck.gif":"/images/logos/button_check.gif"}),"Other PR Areas"))),a.a.createElement(h.TableRow,{style:{padding:"2px 14px"}},a.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",a.a.createElement("br",null)," Teaching Credit Calculation Worksheet.")),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:k.styleNoWrap,style:{padding:"2px 14px"}},a.a.createElement(h.Box,{className:k.divStyle},a.a.createElement(h.Box,{className:k.signatureContainer},a.a.createElement(h.Typography,{className:k.signatureLabel},"Provider Representative Signature:"),a.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)&&a.a.createElement("img",{alt:"signature",src:null===j||void 0===j?void 0:j.signatureUrl,className:k.signatureSize,style:{imageRendering:"auto"}}))),a.a.createElement(h.Box,{className:k.dateContainer},a.a.createElement(h.Typography,{className:k.dateLabel},"Date:"),a.a.createElement(h.Typography,{className:k.styleFlexWithBorder,style:{whiteSpace:"pre-wrap"}},je))))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{padding:"0 14px"}},a.a.createElement("hr",null))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:k.styleTitleUnderlineForm,style:{fontSize:"12pt"}},"SECTION B: ATTORNEY COMPLETES THIS SECTION")),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{padding:"2px 2px 0px 53px "}},a.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"),a.a.createElement(h.Typography,{className:k.textSize11},a.a.createElement(h.Box,{className:k.infoContainer},"for additional presentations of the same material. MCLE Rule\xa0",a.a.createElement(h.Typography,{className:k.styleItalic,style:{fontSize:"11pt"}},"795(d)(5)"),".")),a.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"),a.a.createElement(h.Typography,{className:k.textSize11},a.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",a.a.createElement(h.Typography,{className:k.styleItalic,style:{fontSize:"11pt"}},"796(f)(1)"),".")),a.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."))),a.a.createElement(h.TableRow,{style:{padding:"2px 14px"}},a.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",a.a.createElement("br",null)," the number of Illinois MCLE credit hours as described above.")),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:k.styleNoWrap},a.a.createElement(h.Box,{className:k.divStyle},a.a.createElement(h.Box,{className:k.signatureContainer},a.a.createElement(h.Typography,{className:k.signatureLabel,style:{minWidth:"123px"}},"Attorney Signature:"),a.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)&&a.a.createElement("img",{alt:"signature",src:null===$||void 0===$?void 0:$.signatureUrl,className:k.signatureSize,style:{imageRendering:"auto",objectFit:"scale-down"}}))),a.a.createElement(h.Box,{className:k.dateContainer},a.a.createElement(h.Typography,{className:k.dateLabel},"Date:"),a.a.createElement(h.Typography,{className:k.styleFlexWithBorder,style:{whiteSpace:"pre-wrap"}})))))),!w&&a.a.createElement(a.a.Fragment,null,a.a.createElement(h.TableRow,{style:{display:"flex",padding:"0 14px"}},a.a.createElement(h.TableCell,{className:k.textSize11,style:{textAlign:"right",padding:"5px 0px 0px 14px"}},"Attorney's participation",a.a.createElement("br",null),"method:"),a.a.createElement(h.TableCell,{style:{width:"17%",height:"0%",textOverflow:"unset"}},a.a.createElement("img",{alt:"circle",src:(null===$||void 0===$?void 0:$.ilLawParticipationMethod)===Re?"/images/logos/shaded_circle.png":"/images/logos/unshaded_circle.png"})),a.a.createElement(h.TableCell,{className:k.textSize11,style:{padding:"14px 0 14px 5px"}},"Live Faculty in Room"),a.a.createElement(h.TableCell,{style:{width:"17%",height:"0%",textOverflow:"unset"}},a.a.createElement("img",{alt:"circle",src:(null===$||void 0===$?void 0:$.ilLawParticipationMethod)===Ue?"/images/logos/shaded_circle.png":"/images/logos/unshaded_circle.png"})),a.a.createElement(h.TableCell,{className:k.textSize11,style:{padding:"5px 0 0 5px"}},"Live Video/ Audio",a.a.createElement("br",null),"Format"),a.a.createElement(h.TableCell,{style:{width:"17%",height:"0%",textOverflow:"unset"}},a.a.createElement("img",{alt:"circle",src:(null===$||void 0===$?void 0:$.ilLawParticipationMethod)===Ge?"/images/logos/shaded_circle.png":"/images/logos/unshaded_circle.png"})),a.a.createElement(h.TableCell,{className:k.textSize11,style:{padding:"5px 0 5px 5px"}},"Recorded Video/Audio",a.a.createElement("br",null),"Format")),a.a.createElement(h.TableRow,{style:{display:"flex"}},a.a.createElement(h.TableCell,{className:k.textSize11,style:{flex:"1 1 32%",padding:"10px 0px 0px 14px"}},"Attorney Attended:"),a.a.createElement(h.TableCell,{style:{width:"9%",height:"0%",padding:"8px 14px 0px 0px",textOverflow:"unset",flex:"1 1 9%"}},a.a.createElement("img",{alt:"circle",src:we?"/images/logos/shaded_circle.png":"/images/logos/unshaded_circle.png"})),a.a.createElement(h.TableCell,{className:k.textSize11,style:{padding:"0px",flex:"1 1 30%"}},"Entire Course",a.a.createElement("br",null),"Attendance"),a.a.createElement(h.TableCell,{style:{width:"9%",height:"0%",padding:"8px 0px 0px 0px",textOverflow:"unset"}},a.a.createElement("img",{alt:"circle",src:we?"/images/logos/unshaded_circle.png":"/images/logos/shaded_circle.png"})),a.a.createElement(h.TableCell,{className:k.textSize11,style:{padding:"0px"}},"Partial Course Attendance (only actual attendance or",a.a.createElement("br",null),"participation earns credit)")),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{padding:"0 14px"}},a.a.createElement("hr",null))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{padding:"2px 53px"}},a.a.createElement(h.Typography,{className:k.textSize11,style:{display:"list-item"}},a.a.createElement(h.Box,{className:k.infoContainer},"Illinois uses a\xa0",a.a.createElement(h.Typography,{className:k.styleItalic,style:{fontSize:"11pt"}},"60"),"-minute hour.")),a.a.createElement(h.Typography,{className:k.textSize11,style:{display:"list-item"}},"Total CLE credit earned must be rounded down to the nearest quarter hour."),a.a.createElement(h.Typography,{className:k.textSize11,style:{display:"list-item"}},"Only actual attendance or participation earns credit."))),a.a.createElement(h.TableRow,{style:{display:"flex",width:"90%",justifySelf:"center"}},a.a.createElement(h.TableCell,{className:k.styleNoWrap,style:{paddingLeft:"65px",paddingBottom:"0px"}},a.a.createElement(h.Typography,{className:k.textSize11,style:{fontWeight:"bolder"}},"TOTAL General Credit:"))),a.a.createElement(h.TableRow,{style:{display:"flex"}},a.a.createElement(h.TableCell,{style:{flex:"85%",padding:"2px"}},"\xa0"),a.a.createElement(h.TableCell,{style:{flex:"15%",padding:"2px"}},a.a.createElement(h.Typography,{className:k.styleCredit},ie)),a.a.createElement(h.TableCell,{style:{flex:"9%",padding:"2px"}},"\xa0")),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:k.styleNoWrap,style:{padding:"0 200px"}},a.a.createElement(h.Typography,{className:k.textSize11,style:{fontWeight:"bolder"}},"Professional Responsibility Credit Breakdown:"),a.a.createElement(h.Box,{className:k.infoContainer},a.a.createElement(h.Typography,{className:k.textSize11,style:{flex:"1"}},"Diversity/Inclusion:"),a.a.createElement(h.Typography,{className:k.styleCredit,style:{minWidth:"45px"}},ae)),a.a.createElement(h.Box,{className:k.infoContainer},a.a.createElement(h.Typography,{className:k.textSize11,style:{flex:"1"}},"Mental Health/Substance Abuse:"),a.a.createElement(h.Typography,{className:k.styleCredit,style:{minWidth:"45px"}},ne)),a.a.createElement(h.Box,{className:k.infoContainer},a.a.createElement(h.Typography,{className:k.textSize11,style:{flex:"1"}},"All other Professional Responsibility areas:"),a.a.createElement(h.Typography,{className:k.styleCredit,style:{minWidth:"45px"}},oe)))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:k.styleNoWrap,style:{padding:"2px 65px"}},a.a.createElement(h.Typography,{className:k.textSize11,style:{fontWeight:"bolder"}},"TOTAL Professional Responsibility Credit:"))),a.a.createElement(h.TableRow,{style:{display:"flex"}},a.a.createElement(h.TableCell,{style:{flex:"85%",padding:"2px"}},"\xa0"),a.a.createElement(h.TableCell,{style:{flex:"15%",padding:"2px"}},a.a.createElement(h.Typography,{className:k.styleCredit},re)),a.a.createElement(h.TableCell,{style:{flex:"9%",padding:"2px"}},"\xa0")),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:k.styleNoWrap,style:{display:"flex",padding:"2px 65px"}},a.a.createElement(h.Typography,{className:k.textSize11,style:{fontWeight:"bolder"}},a.a.createElement(h.Box,{className:k.infoContainer},"TOTAL MCLE CREDIT EARNED,\xa0",a.a.createElement(h.Typography,{className:k.styleItalic,style:{fontSize:"11pt",color:"red"}},"INCLUDING"),"\xa0PROFESSIONAL ",a.a.createElement("br",null)),"RESPONSIBILITY CREDIT:"))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:k.styleNoWrap,style:{padding:"0 65px"}},a.a.createElement(h.Box,{className:k.infoContainer},a.a.createElement(h.Typography,{className:k.textSize11,style:{paddingRight:"194px"}},"(This number cannot be more than the Total General Credits above.)"),a.a.createElement(h.Typography,{className:k.styleCredit,style:{minWidth:"123px"}},ie)))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{padding:"2px 14px"}},a.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"),a.a.createElement(h.Typography,{className:k.textSize11},a.a.createElement(h.Box,{className:k.infoContainer},"in compliance with MCLE Rule\xa0",a.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")),a.a.createElement(h.Typography,{className:k.textSize11},"certificates to attorneys who attended the course."))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:k.styleNoWrap,style:{padding:"2px 14px"}},a.a.createElement(h.Box,{className:k.divStyle},a.a.createElement(h.Box,{className:k.signatureContainer},a.a.createElement(h.Typography,{className:k.signatureLabel},"Provider Representative Signature:"),a.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)&&a.a.createElement("img",{alt:"signature",src:null===j||void 0===j?void 0:j.signatureUrl,className:k.signatureSize,style:{imageRendering:"auto"}}))),a.a.createElement(h.Box,{className:k.dateContainer},a.a.createElement(h.Typography,{className:k.dateLabel},"Date:"),a.a.createElement(h.Typography,{className:k.styleFlexWithBorder,style:{whiteSpace:"pre-wrap"}},je))))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{padding:"0 14px"}},a.a.createElement("hr",null))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:k.styleTitleUnderlineForm,style:{fontSize:"12pt",padding:"0px 14px"}},"SECTION B: ATTORNEY COMPLETES THIS SECTION")),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{padding:"2px 2px 0px 53px "}},a.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",a.a.createElement("br",null)," reporting period ends."),a.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"),a.a.createElement(h.Typography,{className:k.textSize11},a.a.createElement(h.Box,{className:k.infoContainer},"this form. MCLE Rule\xa0",a.a.createElement(h.Typography,{className:k.styleItalic,style:{fontSize:"11pt"}},"796"),"(f)(1).")),a.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."),a.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.",a.a.createElement("br",null),"Report online at"," ",a.a.createElement(Xt.Link,{style:{textDecoration:"underline"},to:"#"},"www.mcleboard.org"),". Providers do not report your credits to the MCLE Board."))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{padding:"2px 14px"}},a.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",a.a.createElement("br",null)," Illinois MCLE credit hours as detailed above."))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:k.styleNoWrap},a.a.createElement(h.Box,{className:k.divStyle},a.a.createElement(h.Box,{className:k.signatureContainer},a.a.createElement(h.Typography,{className:k.signatureLabel,style:{minWidth:"123px"}},"Attorney Signature:"),a.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)&&a.a.createElement("img",{alt:"signature",src:null===$||void 0===$?void 0:$.signatureUrl,className:k.signatureSize,style:{imageRendering:"auto",objectFit:"scale-down"}}))),a.a.createElement(h.Box,{className:k.dateContainer},a.a.createElement(h.Typography,{className:k.dateLabel},"Date:"),a.a.createElement(h.Typography,{className:k.styleFlexWithBorder,style:{whiteSpace:"pre-wrap"}})))))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{textAlign:"right"}},a.a.createElement(h.Typography,{className:k.textSize10},w?"IL MCLE ".concat(ce?"Form 10a2":"Form 10a1"," \u2013 revised 07/01/2017"):"MCLE Board_Revised 07/01/2017"))))),w&&a.a.createElement(h.Table,{className:k.instructorTable},a.a.createElement(h.TableBody,null,a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:k.styleForm4},ce?"Form 10a2":"Form 10a1"," - Worksheet")),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:k.styleTitleForm,style:{padding:0}},a.a.createElement(h.Typography,{className:k.textSize20b},"ILLINOIS ACCREDITED MCLE COURSE"))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:k.styleTitleForm,style:{display:"flex",padding:"3px 14px"}},a.a.createElement(h.Typography,{className:k.textSize12b,style:{margin:"0 auto"}},a.a.createElement(h.Box,{className:k.infoContainer},"TEACHING CLE CALCULATION WORKSHEET\xa0",!Object(x.isEmpty)(de)&&a.a.createElement(a.a.Fragment,null,"--\xa0",a.a.createElement(h.Typography,{className:k.darkOrange,style:{fontSize:"12pt",fontWeight:"bolder"}},de)))))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:k.styleTitleUnderlineForm,style:{fontSize:"12pt",padding:"3px 14px"}},"PROVIDER COMPLETES THIS WORKSHEET")),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{padding:"2px 0px 14px 14px"}},a.a.createElement(h.Typography,{className:k.textSize12b},"Course approved for GENERAL CREDIT: Calculation of MCLE Teaching Credit"))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:k.styleNoWrap,style:{padding:"2px 2px 0px 36px "}},a.a.createElement(h.Typography,{className:k.textSize11},"In Illinois the following requirements apply:"))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:k.styleNoWrap,style:{padding:"2px 2px 0px 53px "}},ce&&a.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",a.a.createElement("br",null),"attorney's Presentation Time. It does not matter if the attorney presented with others who were not Illinois licensed",a.a.createElement("br",null),"attorneys, or that the other teachers were not attorneys."),a.a.createElement(h.Typography,{className:k.textSize11,style:{display:"list-item"}},"Illinois is a 60-minute state."),a.a.createElement(h.Typography,{className:k.textSize11,style:{display:"list-item"}},"Total CLE credit must be rounded down to the nearest quarter hour."),!ce&&a.a.createElement(h.Typography,{className:k.textSize11,style:{display:"list-item"}},"Teacher credit is based on the accredited CLE Presentation Time."),a.a.createElement(h.Typography,{className:k.textSize11,style:{display:"list-item"}},a.a.createElement(h.Box,{className:k.infoContainer},"Teachers\xa0",a.a.createElement(h.Typography,{className:k.styleBold,style:{fontSize:"11pt",fontStyle:ce?"italic":"normal"}},"cannot"),"\xa0earn attendance time for their",ce?" non-presentation time on the panel.":" presentation.")),!ce&&a.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."),ce&&a.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."))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:k.styleNoWrap,style:{padding:"15px 19px 0px 96px"}},a.a.createElement(h.Typography,{className:k.divLabelValue,style:{display:"list-item",listStyleType:"decimal"}},a.a.createElement(h.Typography,{className:k.textSize11b},"Presentation Time (minutes)",ce&&a.a.createElement(a.a.Fragment,null,"Course/Session time divided by number of teachers")),ce?a.a.createElement(h.Typography,{className:k.textSize11},"(Example: if there are 3 teachers, a presentation time of 60 minutes is",a.a.createElement(h.Box,{className:k.infoContainer,style:{justifyContent:"space-between"}},"divided by 3 = 20 minutes)",a.a.createElement(h.Typography,{className:k.divFieldValue,style:{maxWidth:"109px"}},0===ge?"":me))):a.a.createElement(h.Typography,{className:k.textSize11},a.a.createElement(h.Box,{className:k.infoContainer},"(Example:\xa0",a.a.createElement(h.Typography,{className:k.textSize11b},"the course is approved for 1.25 hours of CLE credit."),"\xa0If the course began at"),a.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)",a.a.createElement(h.Typography,{className:k.divFieldValue,style:{maxWidth:"109px"}},0===ge?"":me)))),a.a.createElement(h.Typography,{className:k.divLabelValue,style:{display:"list-item",listStyleType:"decimal"}},a.a.createElement(h.Typography,{className:k.textSize11b},"Preparation Time (minutes): Six times Presentation Time"),ce?a.a.createElement(h.Typography,{className:k.textSize11},a.a.createElement(h.Box,{className:k.infoContainer,style:{justifyContent:"space-between"}},"(Example: Six times 20 minutes = 120 minutes)",a.a.createElement(h.Typography,{className:k.divFieldValue,style:{maxWidth:"109px"}},0===ge?"":ye))):a.a.createElement(h.Typography,{className:k.textSize11},a.a.createElement(h.Box,{className:k.infoContainer,style:{justifyContent:"space-between"}},"(Example: Six times 75 minutes = 450 minutes)",a.a.createElement(h.Typography,{className:k.divFieldValue,style:{maxWidth:"109px"}},0===ge?"":ye)))),a.a.createElement(h.Typography,{className:k.divLabelValue,style:{display:"list-item",listStyleType:"decimal"}},a.a.createElement(h.Typography,{className:k.textSize11b},"Presentation + Preparation Time (minutes)"),ce?a.a.createElement(h.Typography,{className:k.textSize11},a.a.createElement(h.Box,{className:k.infoContainer,style:{justifyContent:"space-between"}},"(Example: 20 minutes Presentation Time + 120 minutes Preparation Time = 140 ",a.a.createElement("br",null),"minutes)",a.a.createElement(h.Typography,{className:k.divFieldValue,style:{maxWidth:"109px"}},0===ge?"":ge))):a.a.createElement(h.Typography,{className:k.textSize11},a.a.createElement(h.Box,{className:k.infoContainer,style:{justifyContent:"space-between"}},"(Example: 75 minutes Presentation Time + 450 minutes Preparation Time = 525 ",a.a.createElement("br",null),"minutes)",a.a.createElement(h.Typography,{className:k.divFieldValue,style:{maxWidth:"109px"}},0===ge?"":ge)))),a.a.createElement(h.Typography,{className:k.divLabelValue,style:{display:"list-item",listStyleType:"decimal"}},a.a.createElement(h.Typography,{className:k.textSize11b},"TOTAL MCLE Teaching Credit ",a.a.createElement("br",null),"Line 3 above divided by 60 and rounded down to nearest quarter hour"),ce?a.a.createElement(h.Typography,{className:k.textSize11},"(Example: 140 minutes divided by 60 minutes = 2.33. If a fraction, round down to",a.a.createElement(h.Box,{className:k.infoContainer,style:{justifyContent:"space-between"}},"nearest quarter hour = 2.25 hours)",a.a.createElement(h.Typography,{className:k.divFieldValue,style:{maxWidth:"109px"}},be))):a.a.createElement(h.Typography,{className:k.textSize11},"(Example: 525 minutes divided by 60 minutes = 8.75. If a fraction, round down to",a.a.createElement(h.Box,{className:k.infoContainer,style:{justifyContent:"space-between"}},"nearest quarter hour = 8.75 hours)",a.a.createElement(h.Typography,{className:k.divFieldValue,style:{maxWidth:"109px"}},be)))))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:k.styleNoWrap},a.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"," ",a.a.createElement("br",null)," PR credit by the Illinois Supreme Court Commission on Professionalism"))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{padding:"2px 58px"}},a.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",a.a.createElement("br",null)," attorney cannot be more than the Total MCLE Teaching Credit above."))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{padding:"14px 120px"}},a.a.createElement(h.Typography,{className:k.textSize12},"This course was approved by the Illinois Supreme Court Commission on Professionalism for:"))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:k.styleNoWrap,style:{padding:"10px 154px 0px 154px"}},a.a.createElement(h.Typography,{className:k.textSize12,style:{flex:"1"}},a.a.createElement("img",{alt:"check",src:"0"===ae?"/images/logos/button_uncheck.gif":"/images/logos/button_check.gif"}),"Diversity and Inclusion"),a.a.createElement(h.Typography,{className:k.textSize12,style:{flex:"1"}},a.a.createElement("img",{alt:"check",src:"0"===ne?"/images/logos/button_uncheck.gif":"/images/logos/button_check.gif"}),"Mental Health and Substance Abuse"),a.a.createElement(h.Typography,{className:k.textSize12,style:{flex:"1"}},a.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)"))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:k.styleNoWrap,style:{padding:"14px 235px"}},a.a.createElement(h.Typography,{className:k.textSize12,style:{letterSpacing:"0.23pt"}},"Separate certificates must be completed for each area of PR credit taught."))),a.a.createElement(h.TableRow,{style:{display:"flex"}},a.a.createElement(h.TableCell,{className:k.tdPRStyle,style:{flex:"10%",padding:"3px 14px 0px 14px"}},a.a.createElement(h.Typography,{className:k.textSize11b},"1PR")),a.a.createElement(h.TableCell,{style:{padding:"3px 14px 0px 14px"}},a.a.createElement(h.Box,{className:k.divStyle},a.a.createElement(h.Box,{className:k.divLabelContainer},a.a.createElement(h.Box,{className:k.divLabelValue},a.a.createElement(h.Typography,{className:k.textSize11b},"Presentation Time PR Credit (minutes)"),ce?a.a.createElement(h.Typography,{className:k.textSize11},"(Example: if 30 minutes of a 60 minute course is approved for professional ",a.a.createElement("br",null),"responsibility, and there are 3 panelist teachers, a presentation time of 30 ",a.a.createElement("br",null),"minutes is divided by 3 = 10 minutes)"):a.a.createElement(h.Typography,{className:k.textSize11},"(Example: if 30 minutes of a 75 minute course is approved for PR,",a.a.createElement("br",null),"the Presentation Time is 30 minutes)"))),a.a.createElement(h.Box,{className:k.divFieldContainer},a.a.createElement(h.Box,{className:k.divFieldValue},"0"===re||0===ge?"":Ee))))),a.a.createElement(h.TableRow,{style:{display:"flex"}},a.a.createElement(h.TableCell,{className:k.tdPRStyle,style:{flex:"10%",padding:"3px 14px 0px 14px"}},a.a.createElement(h.Typography,{className:k.textSize11b},"2PR")),a.a.createElement(h.TableCell,{style:{padding:"3px 14px 0px 14px"}},a.a.createElement(h.Box,{className:k.divStyle},a.a.createElement(h.Box,{className:k.divLabelContainer},a.a.createElement(h.Box,{className:k.divLabelValue},a.a.createElement(h.Typography,{className:k.textSize11b},"Preparation Time PR Credit (minutes): Six times Presentation Time"),ce?a.a.createElement(h.Typography,{className:k.textSize11},"(Example: Six times 10 minutes = 60 minutes)"):a.a.createElement(h.Typography,{className:k.textSize11},"(Example: Six times 30 minutes = 180 minutes)"))),a.a.createElement(h.Box,{className:k.divFieldContainer},a.a.createElement(h.Box,{className:k.divFieldValue},"0"===re||0===ge?"":Ie))))),a.a.createElement(h.TableRow,{style:{display:"flex"}},a.a.createElement(h.TableCell,{className:k.tdPRStyle,style:{flex:"10%",padding:"3px 14px 0px 14px"}},a.a.createElement(h.Typography,{className:k.textSize11b},"3PR")),a.a.createElement(h.TableCell,{style:{padding:"3px 14px 0px 14px"}},a.a.createElement(h.Box,{className:k.divStyle},a.a.createElement(h.Box,{className:k.divLabelContainer},a.a.createElement(h.Box,{className:k.divLabelValue},a.a.createElement(h.Typography,{className:k.textSize11b},"Presentation + Preparation Time (minutes)"),ce?a.a.createElement(h.Typography,{className:k.textSize11},"(Example: 10 minutes Presentation Time + 60 minutes Preparation Time =",a.a.createElement("br",null),"70 minutes)"):a.a.createElement(h.Typography,{className:k.textSize11},"(Example: 30 minutes Presentation Time + 180 minutes Preparation Time =",a.a.createElement("br",null),"210 minutes)"))),a.a.createElement(h.Box,{className:k.divFieldContainer},a.a.createElement(h.Box,{className:k.divFieldValue},"0"===re||0===ge?"":Oe))))),a.a.createElement(h.TableRow,{style:{display:"flex"}},a.a.createElement(h.TableCell,{className:k.tdPRStyle,style:{flex:"10%",padding:"3px 14px 0px 14px"}},a.a.createElement(h.Typography,{className:k.textSize11b},"4PR")),a.a.createElement(h.TableCell,{style:{padding:"3px 14px 0px 14px"}},a.a.createElement(h.Box,{className:k.divStyle},a.a.createElement(h.Box,{className:k.divLabelContainer},a.a.createElement(h.Box,{className:k.divLabelValue},a.a.createElement(h.Typography,{className:k.textSize11b},"TOTAL MCLE PR Teaching Credit",a.a.createElement("br",null),"Line 3PR divided by 60 and rounded down to nearest quarter hour"),ce?a.a.createElement(h.Typography,{className:k.textSize11},"(Example: 70 minutes divided by 60 minutes = 1.16. If a fraction, round down",a.a.createElement("br",null),"to nearest quarter hour = 1.0 hour)"):a.a.createElement(h.Typography,{className:k.textSize11},"(Example: 210 minutes divided by 60 minutes = 3.5. If a fraction, round down",a.a.createElement("br",null),"to nearest quarter hour = 3.5 hour)"))),a.a.createElement(h.Box,{className:k.divFieldContainer},a.a.createElement(h.Box,{className:k.divFieldValue},Ce))))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{textAlign:"right"}},a.a.createElement(h.Typography,{className:k.textSize10},"IL MCLE ",ce?"Form 10a2":"Form 10a1"," \u2013 revised 07/01/2017"))))))},ii=i(41),ri={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)"]},ai={TraditionalLiveClassroomSetting:["College Course","Conference","Group Live","Live Classroom","Mock Trial"],CD:["Audio CD","CD-ROM (audio/video)","Compact Disc (audio only)","Video CD"],Webinar:["Webconference","Webinar"],TeleconferenceVideoconference:["Teleconference","Videoconference","Videoconference Approved for Newly Admitted Attorneys"],DVD:["Digital Video Disc","Digital Video Disc with group participation"],Simulcast:["Live Satellite Broadcast","Live Simultaneous Videoconference","Simultaneous Webcast"],AudiotapeVideotape:["Audiotape","Video Replay (group viewing of videotaped program)","Videotape (for individual viewing)"]},ni={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)"]},oi={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"]},si=Object(z.makeStyles)((function(e){e.spacing;return Object(z.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"}}})})),li=function(e){var t,i,r,n,o,s,l,c,d,u,p,f,m,y,g,b,S,E,I,O,C,j,w,T,P,A,k,D,L,J,F,B=e.certificate,R=e.isInstructor,U=e.licenseId,G=e.sessionDetails,M=e.userId,q=e.isBlank,z=si(),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)?H()(null===G||void 0===G?void 0:G.startDate).format("MMMM DD, YYYY"):"",Y=(null===G||void 0===G?void 0:G.endDate)?H()(null===G||void 0===G?void 0:G.endDate).format("MMMM DD, YYYY"):"",$=Y&&Y!==_?"".concat(_," - ").concat(Y):_,K=(null===G||void 0===G?void 0:G.startTime)?null===G||void 0===G?void 0:G.startTime:"",Q=(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===K||void 0===K?void 0:K.split(" ")[1])&&void 0!==r?r:"").toLowerCase()&&"am"===(null!==(n=null===Q||void 0===Q?void 0:Q.split(" ")[1])&&void 0!==n?n:"").toLowerCase()?Object(ii.d)(null===G||void 0===G?void 0:G.startDate,null===G||void 0===G?void 0:G.endDate,K,Q):Object(ii.k)(K,Q),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!==(p=null===G||void 0===G?void 0:G.provider)&&void 0!==p?p:"",re=null!==(f=null===G||void 0===G?void 0:G.courseFormat)&&void 0!==f?f:"",ae="";ae=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 ne=q?new v.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===M}))),oe=q?new v.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===M}))),se=R?ne:oe,ce="".concat(se.firstName," ").concat((null===B||void 0===B?void 0:B.includeMiddleName)?"".concat(se.middleName):""," ").concat(se.lastName),de="".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===le})),r=(null===i||void 0===i?void 0:i.licenseStatus)===v.Dd.Pending,a=(null===i||void 0===i?void 0:i.licenseStatus)===v.Dd.Denied,n=i&&i.expirationDate&&null!==i.expirationDate&&Object(N.d)(i.expirationDate)<=Object(N.d)(se.completionDate);return r||a||n?"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===le})))||void 0===g?void 0:g.sessionLicenseCredits,pe=null===G||void 0===G||null===(b=G.sessionLicenses)||void 0===b||null===(S=b.find((function(e){return e.licenseId===le})))||void 0===S?void 0:S.sessionLicenseProperties,ve=null!==(E=null===pe||void 0===pe||null===(I=pe.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!==Le})).map((function(e){return e.creditValue})))),ye=ue(null===he||void 0===he||null===(O=he.find((function(e){return e.creditId===Ne})))||void 0===O?void 0:O.creditValue),ge=ue(null===he||void 0===he||null===(C=he.find((function(e){return e.creditId===ke})))||void 0===C?void 0:C.creditValue),be=ue(null===he||void 0===he||null===(j=he.find((function(e){return e.creditId===De})))||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!==Le})).map((function(e){return e.value})))),Oe=ue(null===Se||void 0===Se||null===(T=Se.find((function(e){return e.creditId===Ne})))||void 0===T?void 0:T.value),Ce=ue(null===Se||void 0===Se||null===(P=Se.find((function(e){return e.creditId===ke})))||void 0===P?void 0:P.value),xe=ue(null===Se||void 0===Se||null===(A=Se.find((function(e){return e.creditId===De})))||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===le})),we=R?function(){if(R){if(null===je||void 0===je?void 0:je.find((function(e){return e.propertyId===Fe&&null!==e.valueChar})))return"PANELIST";if(null===je||void 0===je?void 0:je.find((function(e){return e.propertyId===Je&&null!==e.valueChar})))return"INDIVIDUAL"}return"INDIVIDUAL"}():"",Te=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===le})),r=(null===i||void 0===i?void 0:i.licenseStatus)===v.Dd.Pending,a=(null===i||void 0===i?void 0:i.licenseStatus)===v.Dd.Denied,n=i&&i.expirationDate&&null!==i.expirationDate&&Object(N.d)(i.expirationDate)<=Object(N.d)(se.completionDate);return r||a||n?"0.00":e||"0.00"},Pe=Te(null===je||void 0===je||null===(D=je.find((function(e){return e.propertyId===Je})))||void 0===D?void 0:D.valueChar),Ae=Te(null===je||void 0===je||null===(L=je.find((function(e){return e.propertyId===Fe})))||void 0===L?void 0:L.valueChar),Me=void 0!==(null===je||void 0===je?void 0:je.find((function(e){return e.propertyId===Be})))?Te(null===je||void 0===je||null===(J=je.find((function(e){return e.propertyId===Be})))||void 0===J?void 0:J.valueChar):"",qe=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(Pe)+Number(Ae),We=Object(x.isEmpty)(Me)?6*ze:Number(Me),Ve=ze+We,_e=qe(Number(q?fe:Ee)),Ye=Number(Ie)/Number(Ee),$e=Math.round(Ye*ze),He=Math.round(Ye*We),Ke=Math.round(Ye*Ve),Qe=qe(Number(q?me:Ie)),Ze=se.completionDate?H()(se.completionDate).format("MMMM DD, YYYY"):"",Xe=!q&&(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=!!q||Number(Ee)>=Number(fe);return a.a.createElement(h.Box,{maxWidth:900,margin:"0 auto",style:{width:"100%",alignItems:"center"},className:z.divDetails},a.a.createElement(h.Table,{id:"tblILCertificate",style:{width:"100%",pageBreakAfter:"auto"},className:z.table},a.a.createElement(h.TableBody,null,a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:z.styleTitleForm,style:{padding:0}},a.a.createElement(h.Typography,{className:z.textSize25},"ILLINOIS ACCREDITED MCLE"))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:z.styleTitleForm,style:{display:"flex",padding:"0px 8px"}},R&&a.a.createElement(h.Typography,{className:z.textSize14,style:{margin:"0 auto"}},a.a.createElement(h.Box,{className:z.infoContainer},"TEACHING CERTIFICATE\xa0",!Object(x.isEmpty)(we)&&a.a.createElement(a.a.Fragment,null,"-- ",we))),!R&&a.a.createElement(h.Typography,{className:z.textSize18,style:{margin:"0 auto"}},"ATTENDANCE CERTIFICATE"))),R&&a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:z.textSize10,style:{textAlign:"left",padding:"3px 14px"}},a.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), ",a.a.createElement("br",null),"can be issued teaching credit. The MCLE Board also permits issuing teaching credit to Illinois attorneys who teach"),a.a.createElement(h.Box,{style:{display:"flex"}},"at qualified CLE bar meetings under MCLE Rule 795(d)(3). MCLE credit includes: Presentation time plus"," ",a.a.createElement("br",null),"preparation time (six times the presentation time)."))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:z.styleNoWrap,style:{padding:"10px 15px 0px 30px"}},a.a.createElement(h.Box,{className:z.infoContainer},a.a.createElement(h.Typography,{className:z.infoLabel},"Provider Name:"),a.a.createElement(h.Typography,{className:z.infoDescription},a.a.createElement(h.Box,{className:z.infoContainer},ie))))),!R&&a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:z.styleNoWrap,style:{padding:"5px 15px 0px 30px"}},a.a.createElement(h.Box,{className:z.infoContainer},a.a.createElement(h.Typography,{className:z.infoLabel},"Provider Phone Number:"),a.a.createElement(h.Typography,{className:z.infoDescription},a.a.createElement(h.Box,{className:z.infoContainer},et))))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:z.styleNoWrap,style:{padding:"5px 15px 0px 30px"}},a.a.createElement(h.Box,{className:z.infoContainer},a.a.createElement(h.Typography,{className:z.infoLabel},"PCAM Course ID:"),a.a.createElement(h.Typography,{className:z.infoDescription},a.a.createElement(h.Box,{className:z.infoContainer},ve))))),!R&&a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:z.styleNoWrap,style:{padding:"5px 15px 0px 30px"}},a.a.createElement(h.Box,{className:z.infoContainer},a.a.createElement(h.Typography,{className:z.infoLabel},"Credit Type:"),a.a.createElement(h.Typography,{className:z.infoDescription},a.a.createElement(h.Box,{className:z.infoContainer},"Course"))))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:z.styleNoWrap,style:{padding:"5px 15px 0px 30px"}},a.a.createElement(h.Box,{className:z.infoContainer},a.a.createElement(h.Typography,{className:z.infoLabel},"Title:"),a.a.createElement(h.Typography,{className:z.infoDescription},W," ",R||V===W?"":"(".concat(V,")"))))),R&&a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:z.styleNoWrap,style:{padding:"5px 15px 0px 30px"}},a.a.createElement(h.Box,{className:z.infoContainer},a.a.createElement(h.Typography,{className:z.infoLabel},"Credit Type:"),a.a.createElement(h.Typography,{className:z.infoDescription},a.a.createElement(h.Box,{className:z.infoContainer},"Course"))))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:z.styleNoWrap,style:{padding:"5px 15px 0px 30px"}},a.a.createElement(h.Box,{className:z.divStyle},a.a.createElement(h.Box,{className:z.divDataContainer},a.a.createElement(h.Typography,{className:z.divDataValue},"Date:"),a.a.createElement(h.Typography,{className:z.styleFlexWithBorder},Xe)),a.a.createElement(h.Box,{className:z.divDataV2Container},a.a.createElement(h.Typography,{className:z.textSize11,style:{paddingRight:"10px",textAlign:"right"}},"Location:"),a.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(ae):""))))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:z.styleNoWrap,style:{padding:"5px 15px 0px 30px"}},a.a.createElement(h.Box,{className:z.divStyle},a.a.createElement(h.Box,{className:z.divDataContainer},a.a.createElement(h.Typography,{className:z.divDataValue},"Attorney Name:"),a.a.createElement(h.Typography,{className:z.styleFlexWithBorder,style:{whiteSpace:"pre-wrap",overflowWrap:"anywhere"}},ce)),a.a.createElement(h.Box,{className:z.divDataV2Container},a.a.createElement(h.Typography,{className:z.textSize11,style:{paddingRight:"10px",textAlign:"right"}},"ARDC #:"),a.a.createElement(h.Typography,{className:z.styleFlexWithBorder,style:{whiteSpace:"pre-wrap",overflowWrap:"anywhere",textAlign:"left"}},de))))),R&&a.a.createElement(a.a.Fragment,null,a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:z.styleNoWrap,style:{padding:"5px 15px 0px 30px"}},a.a.createElement(h.Box,{className:z.infoContainer},a.a.createElement(h.Typography,{className:z.infoLabel},"Session Title:"),a.a.createElement(h.Typography,{className:z.infoDescription},a.a.createElement(h.Box,{className:z.infoContainer},W!==V?V:W))))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:z.styleNoWrap,style:{padding:"5px 15px 0px 30px"}},a.a.createElement(h.Box,{className:z.infoContainer},a.a.createElement(h.Typography,{className:z.infoLabel},"Session Time Duration:"),a.a.createElement(h.Typography,{className:z.infoDescription},a.a.createElement(h.Box,{className:z.infoContainer},Z)))))),R&&a.a.createElement(a.a.Fragment,null,a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:z.textSize12,style:{fontWeight:"bolder",padding:"5px 14px"}},"From MCLE TEACHING CREDIT CALCULATION WORKSHEET")),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:z.textSize12,style:{fontWeight:"bolder",padding:"0px 0px 0px 73px"}},"TOTAL MCLE Teaching Credit")),a.a.createElement(h.TableRow,{style:{display:"flex"}},a.a.createElement(h.TableCell,{className:z.textSize10,style:{flex:"70%",padding:"0px 0px 0px 73px"}},"(from CLE Calculation Worksheet, Line 4)"),a.a.createElement(h.TableCell,{style:{flex:"30%",padding:"2px"}},a.a.createElement(h.Typography,{className:z.styleCredit10Left},q?fe:Ee))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{padding:"8px"}})),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:z.styleNoWrap,style:{padding:"0px 0px 0px 73px"}},a.a.createElement(h.Box,{className:z.infoContainer},a.a.createElement(h.Typography,{className:z.textSize10,style:{fontWeight:"bolder"}},"Including TOTAL Professional Responsibility Credits")))),a.a.createElement(h.TableRow,{style:{display:"flex"}},a.a.createElement(h.TableCell,{className:z.textSize10,style:{flex:"70%",padding:"0px 0px 0px 73px"}},"(from CLE Calculation Worksheet, Line 4PR)"),a.a.createElement(h.TableCell,{style:{flex:"30%",padding:"2px"}},a.a.createElement(h.Typography,{className:z.styleCredit10Left},q?me:Ie))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:z.styleNoWrap,style:{padding:"10px 95px"}},a.a.createElement(h.Box,{style:{padding:"10px 0px 15px 62px",border:"2px solid",maxWidth:"290px"}},a.a.createElement(h.Box,{className:z.infoContainer,style:{padding:"5px"}},a.a.createElement(h.Typography,{className:z.textSize9,style:{minWidth:"290px"}},"Mental Health / Substance Abuse")),a.a.createElement(h.Box,{className:z.infoContainer,style:{padding:"5px"}},a.a.createElement(h.Typography,{className:z.textSize9,style:{minWidth:"290px"}},"Diversity / Inclusion")),a.a.createElement(h.Box,{className:z.infoContainer,style:{padding:"5px"}},a.a.createElement(h.Typography,{className:z.textSize9,style:{minWidth:"290px"}},"Ethics, Civility, Professionalism"))))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:z.styleNoWrap,style:{padding:"5px 15px 0px 30px"}},a.a.createElement(h.Box,{className:z.divStyle},a.a.createElement(h.Box,{className:z.divDataV3Container},a.a.createElement(h.Typography,{className:z.divDataV2Value,weight:"bold"},"Provider Name:"),a.a.createElement(h.Typography,{className:z.styleFlexWithBorder},ie)),a.a.createElement(h.Box,{className:z.divDataV2Container},a.a.createElement(h.Typography,{className:z.textSize11,style:{paddingRight:"10px",textAlign:"right"}},"Date:"),a.a.createElement(h.Typography,{className:z.styleFlexWithBorder,style:{whiteSpace:"pre-wrap",overflowWrap:"anywhere",textAlign:"left"},weight:"bold"},Xe))))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:z.styleNoWrap,style:{padding:"5px 15px 0px 30px"}},a.a.createElement(h.Box,{className:z.divStyle},a.a.createElement(h.Box,{className:z.divDataContainer},a.a.createElement(h.Typography,{className:z.divDataV2Value,weight:"bold"},"Provider Phone Number:"),a.a.createElement(h.Typography,{className:z.styleFlexWithBorder},et))))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:z.styleTitleUnderlineForm,style:{fontSize:"11pt",padding:"15px 30px 0px 30px"}},"ATTORNEY INFORMATION")),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{padding:"2px 2px 0px 53px "}},a.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",a.a.createElement("br",null)," additional presentations of the same material. MCLE Rule 795(d)(5)."),a.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"),a.a.createElement(h.Typography,{className:z.textSize9},a.a.createElement(h.Box,{className:z.infoContainer},a.a.createElement(h.Typography,null,"audited by the Illinois MCLE Board, you will be required to submit this form. MCLE Rule 796(f)(1)."))),a.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."),a.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",a.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,",a.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.",a.a.createElement("br",null),"reflect your MCLE compliance before the deadlines in MCLE Rule 796. Verify these credits and view your transcript online at",a.a.createElement("br",null),"www.mcleboard.org.")))),!R&&a.a.createElement(a.a.Fragment,null,a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:z.styleNoWrap,style:{padding:"5px 15px 0px 30px"}},a.a.createElement(h.Box,{className:z.infoContainer},a.a.createElement(h.Typography,{className:z.infoLabel},"Attorney's Participation Method:"),a.a.createElement(h.Typography,{className:z.infoDescription},a.a.createElement(h.Box,{className:z.infoContainer},(null===se||void 0===se?void 0:se.ilLawParticipationMethod)===Re||ri.LiveFaculty.includes(re)?"Live Faculty in Room":(null===se||void 0===se?void 0:se.ilLawParticipationMethod)===Ue||ri.LiveVideoAudio.includes(re)?"Live Video/ Audio Format":(null===se||void 0===se?void 0:se.ilLawParticipationMethod)===Ge||ri.RecordedVideoAudio.includes(re)?"Recorded Video/Audio Format":""))))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:z.styleNoWrap,style:{padding:"5px 15px 0px 30px"}},a.a.createElement(h.Box,{className:z.infoContainer},a.a.createElement(h.Typography,{className:z.infoLabel},"Attorney Attended:"),a.a.createElement(h.Typography,{className:z.infoDescription},a.a.createElement(h.Box,{className:z.infoContainer},tt?"Entire Course Attendance":"Partial Course Attendance (only actual attendance or participation earns credit)"))))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{padding:"10px 83px"}},a.a.createElement(h.Typography,{className:z.textSize9,style:{display:"list-item"}},a.a.createElement(h.Box,{className:z.infoContainer},"Illinois uses a\xa0",a.a.createElement(h.Typography,{className:z.styleItalic,style:{fontSize:"9pt"}},"60"),"-minute hour.")),a.a.createElement(h.Typography,{className:z.textSize9,style:{display:"list-item"}},"Total CLE credit earned must be rounded down to the nearest quarter hour."),a.a.createElement(h.Typography,{className:z.textSize9,style:{display:"list-item"}},"Only actual attendance or participation earns credit."))),a.a.createElement(h.TableRow,{style:{display:"flex"}},a.a.createElement(h.TableCell,{style:{flex:"85%",padding:"2px 45px"}},a.a.createElement(h.Typography,{className:z.textSize11,style:{fontWeight:"bolder"}},"TOTAL General Credit:")),a.a.createElement(h.TableCell,{style:{flex:"15%",padding:"2px"}},a.a.createElement(h.Typography,{className:z.styleCredit},q?fe:Ee)),a.a.createElement(h.TableCell,{style:{flex:"9%",padding:"2px"}},"\xa0"))),!R&&a.a.createElement(a.a.Fragment,null,a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:z.styleNoWrap,style:{padding:"2px 45px"}},a.a.createElement(h.Box,{style:{paddingLeft:"20px",backgroundColor:"#F5F5F5",maxWidth:"530px"}},a.a.createElement(h.Box,{className:z.infoContainer,style:{padding:" 8px 5px"}},a.a.createElement(h.Typography,{className:z.textSize10,style:{fontWeight:"bolder"}},"Professional Responsibility Credit ",a.a.createElement("br",null)," Breakdown:")),a.a.createElement(h.Box,{className:z.infoContainer,style:{padding:"5px"}},a.a.createElement(h.Typography,{className:z.textSize10,style:{minWidth:"460px"}},"Mental Health / Substance Abuse:"),a.a.createElement(h.Typography,{className:z.styleCredit10,style:{minWidth:"25px"}},q?ge:Ce)),a.a.createElement(h.Box,{className:z.infoContainer,style:{padding:"5px"}},a.a.createElement(h.Typography,{className:z.textSize10,style:{minWidth:"460px"}},"Diversity / Inclusion:"),a.a.createElement(h.Typography,{className:z.styleCredit10,style:{minWidth:"25px"}},q?ye:Oe)),a.a.createElement(h.Box,{className:z.infoContainer,style:{padding:"5px"}},a.a.createElement(h.Typography,{className:z.textSize10,style:{minWidth:"460px"}},"Ethics, Civility, Professionalism:"),a.a.createElement(h.Typography,{className:z.styleCredit10,style:{minWidth:"25px"}},q?be:xe)))))),!R&&a.a.createElement(a.a.Fragment,null,a.a.createElement(h.TableRow,{style:{display:"flex"}},a.a.createElement(h.TableCell,{style:{flex:"85%",padding:"2px 45px"}},a.a.createElement(h.Typography,{className:z.textSize10,style:{fontWeight:"bolder"}},"Total Professional Responsibility Credit:")),a.a.createElement(h.TableCell,{style:{flex:"15%",padding:"2px"}},a.a.createElement(h.Typography,{className:z.styleCredit},q?me:Ie)),a.a.createElement(h.TableCell,{style:{flex:"9%",padding:"2px"}},"\xa0")),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:z.styleNoWrap,style:{display:"flex",padding:"8px 45px 0px 45px"}},a.a.createElement(h.Typography,{className:z.textSize11,style:{fontWeight:"bolder"}},a.a.createElement(h.Box,{className:z.infoContainer},"TOTAL MCLE CREDIT EARNED,\xa0",a.a.createElement(h.Typography,{className:z.styleItalic,style:{fontWeight:"bold",fontSize:"11pt",color:"red"}},"INCLUDING"),"\xa0PROFESSIONAL RESPONSIBILITY",a.a.createElement("br",null)),"CREDIT:"))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:z.styleNoWrap,style:{padding:"0px 45px 10px 45px"}},a.a.createElement(h.Box,{className:z.infoContainer},a.a.createElement(h.Typography,{className:z.textSize11,style:{fontWeight:"bold",paddingRight:"140px"}},"(This number cannot be more than the Total General Credits above.)"),a.a.createElement(h.Typography,{className:z.styleCredit,style:{minWidth:"123px"}},q?fe:Ee)))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{padding:"5px 45px"}},a.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 ",a.a.createElement("br",null)," requires the provider to maintain an attendance list for three years and issue attendance certificates to attorneys ",a.a.createElement("br",null)," who attended."))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:z.styleTitleUnderlineForm,style:{fontSize:"11pt",padding:"0px 45px"}},"ATTORNEY INFORMATION")),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{padding:"2px 2px 0px 53px "}},a.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",a.a.createElement("br",null)," reporting period ends."),a.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."),a.a.createElement(h.Typography,{className:z.textSize9},a.a.createElement(h.Box,{className:z.infoContainer},a.a.createElement(h.Typography,null,"MCLE Rule 796(f)(1)."))),a.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"),a.a.createElement(h.Typography,{className:z.textSize9},a.a.createElement(h.Box,{className:z.infoContainer},a.a.createElement(h.Typography,null,"professional responsibility credit not to exceed the Total MCLE Credit."))),a.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",a.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",a.a.createElement("br",null),"compliance before the deadlines in MCLE Rule 796. View your transcript online at www.mcleboard.org.")))))),R&&a.a.createElement(h.Table,{className:z.instructorTable},a.a.createElement(h.TableBody,null,a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:z.styleTitleForm,style:{display:"flex",padding:"3px 14px"}},a.a.createElement(h.Typography,{className:z.textSize12b,style:{margin:"0 auto"}},a.a.createElement(h.Box,{className:z.infoContainer},"TEACHING CLE CALCULATION WORKSHEET")))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{padding:"14px 0px 5px 14px"}},a.a.createElement(h.Typography,{className:z.textSize12b},"GENERAL CREDIT: Calculation of MCLE Teaching Credit"))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:z.styleNoWrap,style:{padding:"2px 2px 0px 16px "}},a.a.createElement(h.Typography,{className:z.textSize10},"In Illinois, the following requirements apply:"))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:z.styleNoWrap,style:{padding:"2px 2px 25px 53px "}},a.a.createElement(h.Typography,{className:z.textSize10,style:{display:"list-item",paddingLeft:"15px"}},"Illinois is a 60-minute state."),a.a.createElement(h.Typography,{className:z.textSize10,style:{display:"list-item",paddingLeft:"15px"}},"Total CLE credit is rounded down to the nearest quarter hour."),a.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."),a.a.createElement(h.Typography,{className:z.textSize10,style:{display:"list-item",paddingLeft:"15px"}},"Teachers ",a.a.createElement("b",null,"cannot")," earn attendance time for their presentation."))),a.a.createElement(h.TableRow,{style:{display:"flex"}},a.a.createElement(h.TableCell,{className:z.tdPRStyle,style:{flex:"1%",padding:"3px 2px 8px 2px"}},a.a.createElement(h.Typography,{className:z.textSize10b},"1")),a.a.createElement(h.TableCell,{style:{padding:"3px 14px 8px 14px"}},a.a.createElement(h.Box,{className:z.divStyle},a.a.createElement(h.Box,{className:z.divLabelContainer},a.a.createElement(h.Box,{className:z.divLabelValue},a.a.createElement(h.Typography,{className:z.textSize10b},"Presentation Time (minutes)"))),a.a.createElement(h.Box,{className:z.divFieldContainer},a.a.createElement(h.Box,{className:z.divFieldValue},0===Ve?"0.00":ze))))),a.a.createElement(h.TableRow,{style:{display:"flex"}},a.a.createElement(h.TableCell,{className:z.tdPRStyle,style:{flex:"1%",padding:"3px 2px 8px 2px"}},a.a.createElement(h.Typography,{className:z.textSize10b},"2")),a.a.createElement(h.TableCell,{style:{padding:"3px 14px 8px 14px"}},a.a.createElement(h.Box,{className:z.divStyle},a.a.createElement(h.Box,{className:z.divLabelContainer},a.a.createElement(h.Box,{className:z.divLabelValue},a.a.createElement(h.Typography,{className:z.textSize10b},"Preparation Time (minutes): 6x Presentation Time"))),a.a.createElement(h.Box,{className:z.divFieldContainer},a.a.createElement(h.Box,{className:z.divFieldValue},0===Ve?"0.00":We))))),a.a.createElement(h.TableRow,{style:{display:"flex"}},a.a.createElement(h.TableCell,{className:z.tdPRStyle,style:{flex:"1%",padding:"3px 2px 8px 2px"}},a.a.createElement(h.Typography,{className:z.textSize10b},"3")),a.a.createElement(h.TableCell,{style:{padding:"3px 14px 8px 14px"}},a.a.createElement(h.Box,{className:z.divStyle},a.a.createElement(h.Box,{className:z.divLabelContainer},a.a.createElement(h.Box,{className:z.divLabelValue},a.a.createElement(h.Typography,{className:z.textSize10b},"Presentation + Preparation Time (minutes)"))),a.a.createElement(h.Box,{className:z.divFieldContainer},a.a.createElement(h.Box,{className:z.divFieldValue},0===Ve?"0.00":Ve))))),a.a.createElement(h.TableRow,{style:{display:"flex"}},a.a.createElement(h.TableCell,{className:z.tdPRStyle,style:{flex:"1%",padding:"3px 2px 8px 2px"}},a.a.createElement(h.Typography,{className:z.textSize10b},"4")),a.a.createElement(h.TableCell,{style:{padding:"3px 14px 8px 14px"}},a.a.createElement(h.Box,{className:z.divStyle},a.a.createElement(h.Box,{className:z.divLabelContainer},a.a.createElement(h.Box,{className:z.divLabelValue},a.a.createElement(h.Typography,{className:z.textSize10b},"TOTAL MCLE Teaching Credit ",a.a.createElement("br",null),"Line 3 above divided by 60 and rounded down to nearest quarter hour"))),a.a.createElement(h.Box,{className:z.divFieldContainer},a.a.createElement(h.Box,{className:z.divFieldValue},"0"===_e?"0.00":_e))))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:z.styleNoWrap,style:{padding:"3px 2px 8px 2px"}},a.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",a.a.createElement("br",null)," approved for PR credit by the Illinois Supreme Court Commission on Professionalism"))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{padding:"2px 18px"}},a.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",a.a.createElement("br",null)," teaching attorney cannot be more than the Total MCLE Teaching Credit above."))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:z.styleNoWrap,style:{padding:"20px 105px"}},a.a.createElement(h.Box,{style:{padding:"10px 0px 15px 62px",border:"2px solid",maxWidth:"290px"}},a.a.createElement(h.Box,{className:z.infoContainer,style:{padding:"5px"}},a.a.createElement(h.Typography,{className:z.textSize9,style:{minWidth:"290px"}},"Mental Health / Substance Abuse")),a.a.createElement(h.Box,{className:z.infoContainer,style:{padding:"5px"}},a.a.createElement(h.Typography,{className:z.textSize9,style:{minWidth:"290px"}},"Diversity / Inclusion")),a.a.createElement(h.Box,{className:z.infoContainer,style:{padding:"5px"}},a.a.createElement(h.Typography,{className:z.textSize9,style:{minWidth:"290px"}},"Ethics, Civility, Professionalism"))))),a.a.createElement(h.TableRow,{style:{display:"flex"}},a.a.createElement(h.TableCell,{className:z.tdPRStyle,style:{flex:"5%",padding:"3px 2px 8px 2px"}},a.a.createElement(h.Typography,{className:z.textSize10b},"1PR")),a.a.createElement(h.TableCell,{style:{padding:"3px 14px 8px 14px"}},a.a.createElement(h.Box,{className:z.divStyle},a.a.createElement(h.Box,{className:z.divLabelContainer},a.a.createElement(h.Box,{className:z.divLabelValue},a.a.createElement(h.Typography,{className:z.textSize10b},"Presentation Time PR Credit (minutes)"))),a.a.createElement(h.Box,{className:z.divFieldContainer},a.a.createElement(h.Box,{className:z.divFieldValue},"0"===Ie||0===Ve?"0.00":$e))))),a.a.createElement(h.TableRow,{style:{display:"flex"}},a.a.createElement(h.TableCell,{className:z.tdPRStyle,style:{flex:"5%",padding:"3px 2px 8px 2px"}},a.a.createElement(h.Typography,{className:z.textSize10b},"2PR")),a.a.createElement(h.TableCell,{style:{padding:"3px 14px 8px 14px"}},a.a.createElement(h.Box,{className:z.divStyle},a.a.createElement(h.Box,{className:z.divLabelContainer},a.a.createElement(h.Box,{className:z.divLabelValue},a.a.createElement(h.Typography,{className:z.textSize10b},"Preparation Time PR Credit (minutes): 6x Presentation Time"))),a.a.createElement(h.Box,{className:z.divFieldContainer},a.a.createElement(h.Box,{className:z.divFieldValue},"0"===Ie||0===Ve?"0.00":He))))),a.a.createElement(h.TableRow,{style:{display:"flex"}},a.a.createElement(h.TableCell,{className:z.tdPRStyle,style:{flex:"5%",padding:"3px 2px 8px 2px"}},a.a.createElement(h.Typography,{className:z.textSize10b},"3PR")),a.a.createElement(h.TableCell,{style:{padding:"3px 14px 8px 14px"}},a.a.createElement(h.Box,{className:z.divStyle},a.a.createElement(h.Box,{className:z.divLabelContainer},a.a.createElement(h.Box,{className:z.divLabelValue},a.a.createElement(h.Typography,{className:z.textSize10b},"Presentation + Preparation Time (minutes)"))),a.a.createElement(h.Box,{className:z.divFieldContainer},a.a.createElement(h.Box,{className:z.divFieldValue},"0"===Ie||0===Ve?"0.00":Ke))))),a.a.createElement(h.TableRow,{style:{display:"flex"}},a.a.createElement(h.TableCell,{className:z.tdPRStyle,style:{flex:"5%",padding:"3px 2px 8px 2px"}},a.a.createElement(h.Typography,{className:z.textSize10b},"4PR")),a.a.createElement(h.TableCell,{style:{padding:"3px 14px 8px 14px"}},a.a.createElement(h.Box,{className:z.divStyle},a.a.createElement(h.Box,{className:z.divLabelContainer},a.a.createElement(h.Box,{className:z.divLabelValue},a.a.createElement(h.Typography,{className:z.textSize10b},"TOTAL MCLE PR Teaching Credit",a.a.createElement("br",null),"Line 3PR divided by 60 and rounded down to nearest quarter hour"))),a.a.createElement(h.Box,{className:z.divFieldContainer},a.a.createElement(h.Box,{className:z.divFieldValue},"0"===Qe?"0.00":Qe))))))))},ci=Object(z.makeStyles)((function(){return Object(z.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"}})})),di=function(e){var t,i,r,n,o,s,l,c,d,u,p,f,m,y,g,b,S,E,I,O,C,j,w,T=e.certificate,P=e.isInstructor,A=e.sessionDetails,k=e.userId,D=ci(),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)?H()(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!==(n=null===A||void 0===A||null===(o=A.location)||void 0===o?void 0:o.name)&&void 0!==n?n:"",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:"",M="";M=Object(x.isEmpty)(R)&&Object(x.isEmpty)(U)?"".concat(B):"".concat(B," ").concat((null===T||void 0===T?void 0:T.includeCity)||(null===T||void 0===T?void 0:T.includeState)?"(".concat((null===T||void 0===T?void 0:T.includeCity)?R:"").concat((null===T||void 0===T?void 0:T.includeState)&&!Object(x.isEmpty)(U)?(null===T||void 0===T?void 0:T.includeCity)&&!Object(x.isEmpty)(R)?", ".concat(U):U:"",")"):"");var q=(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=P?q:z;var W,V,_,Y,$,K="".concat((null===T||void 0===T?void 0:T.includeBarNumber)&&null!==(p=null===(f=w)||void 0===f?void 0:f.licenseBarNumber)&&void 0!==p?p:""),Q="".concat(w.firstName," ").concat((null===T||void 0===T?void 0:T.includeMiddleName)?"".concat(null!==(m=w.middleName)&&void 0!==m?m:""):""," ").concat(w.lastName),Z=w.completionDate?H()(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===ue})),r=(null===i||void 0===i?void 0:i.licenseStatus)===v.Dd.Pending,a=(null===i||void 0===i?void 0:i.licenseStatus)===v.Dd.Denied,n=i&&i.expirationDate&&null!==i.expirationDate&&Object(N.d)(i.expirationDate)<=Object(N.d)(w.completionDate);return r||a||n?"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===We})))||void 0===b?void 0:b.value),Y=te(null===ee||void 0===ee||null===(S=ee.find((function(e){return e.creditId===ze})))||void 0===S?void 0:S.value),W=te(null===ee||void 0===ee||null===(E=ee.find((function(e){return e.creditId===Me})))||void 0===E?void 0:E.value),V=te(null===ee||void 0===ee||null===(I=ee.find((function(e){return e.creditId===qe})))||void 0===I?void 0:I.value),_=(parseFloat(W)+parseFloat(V)).toFixed(2),a.a.createElement(h.Box,{maxWidth:920,margin:"0 auto",style:{fontFamily:'"Times New Roman", serif !important'},className:D.divDetails},a.a.createElement(h.Box,{style:{width:"100%",alignItems:"center"}},a.a.createElement(h.Row,{mainAxisAlignment:"center"},a.a.createElement(h.Column,{crossAxisAlignment:"center",mainAxisAlignment:"middle"},a.a.createElement(h.Typography,{variant:"h4"},"KANSAS CONTINUING LEGAL EDUCATION"))),a.a.createElement(h.Row,{mainAxisAlignment:"center"},a.a.createElement(h.Column,{crossAxisAlignment:"stretch"},a.a.createElement(h.Typography,{variant:"body1",style:{fontSize:"15pt",textAlign:"center",paddingRight:"8px"}},"301 SW. 10th Ave.",a.a.createElement("br",null),"www.kscle.org")),a.a.createElement(h.Column,{crossAxisAlignment:"stretch"},a.a.createElement(h.Typography,{variant:"body1",style:{fontSize:"15pt",textAlign:"center",paddingLeft:"8px"}},"Topeka, KS 66612",a.a.createElement("br",null),"7853688201"))),a.a.createElement(h.Box,{style:{paddingTop:"2.4em"}},a.a.createElement(h.Row,{mainAxisAlignment:"start"},a.a.createElement(h.Column,{crossAxisAlignment:"left"},a.a.createElement(h.Typography,{style:{fontSize:"16pt"}},a.a.createElement("b",null,"NOTICE OF ACCREDITATION"))))),a.a.createElement(h.Box,{style:{width:"100%",padding:"5px 0px 5px 0px"}},a.a.createElement(h.Divider,{style:{borderBottom:"3px solid black"}})),a.a.createElement(h.Row,null,a.a.createElement(h.Column,null,a.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:"))),a.a.createElement(h.Box,{style:{paddingTop:"1.2em"}},a.a.createElement(h.Row,null,a.a.createElement("table",{className:D.creditTable},a.a.createElement("tr",{className:D.creditTableRowCols},a.a.createElement("td",null,"PROVIDER ID"),a.a.createElement("td",null,null!==(O=null===T||void 0===T?void 0:T.licenseProviderNumber)&&void 0!==O?O:"")),a.a.createElement("tr",{className:D.creditTableRowCols},a.a.createElement("td",null,"PROVIDER"),a.a.createElement("td",null,G)),a.a.createElement("tr",{className:D.creditTableRowCols},a.a.createElement("td",null,"ACTIVITY"),a.a.createElement("td",null,L)),a.a.createElement("tr",{className:D.creditTableRowCols},a.a.createElement("td",null,"ACTIVITY NO"),a.a.createElement("td",null,F)),a.a.createElement("tr",{className:D.creditTableRowCols},a.a.createElement("td",null,"LOCATION"),a.a.createElement("td",null,M)),a.a.createElement("tr",{className:D.creditTableRowCols},a.a.createElement("td",null,"MAXIMUM CLE HOURS"),a.a.createElement("td",null,$)),a.a.createElement("tr",{className:D.creditTableRowCols},a.a.createElement("td",null,"INCLUDED HOURS"),a.a.createElement("td",null,_," ",a.a.createElement("span",{style:{paddingLeft:"14px"}},"Ethics & Professionalism"))),a.a.createElement("tr",{className:D.creditTableRowCols},a.a.createElement("td",null),a.a.createElement("td",null,Y," ",a.a.createElement("span",{style:{paddingLeft:"14px"}},"Law Practice Management"))),a.a.createElement("tr",{className:D.creditTableRowCols},a.a.createElement("td",null,"DATE"),a.a.createElement("td",null,J))))),a.a.createElement(h.Box,{style:{paddingTop:"2.2em"}},a.a.createElement(h.Row,null,a.a.createElement(h.Column,null,a.a.createElement(h.Typography,{style:{fontSize:"14pt",lineHeight:"normal"}},"Attorneys will execute this affidavit and the sponsor will return the executed documents to Kansas",a.a.createElement("br",null),"Continuing Legal Education (for ",a.a.createElement("b",null,"in-state")," seminars). For ",a.a.createElement("b",null,"out-of-state")," seminars, the attorney is responsible for",a.a.createElement("br",null),"submitting the executed affidavit to Kansas Continuing Legal Education within 30 days after the seminar."))))),a.a.createElement(h.Box,{style:{width:"100%",paddingTop:"1.2em"}},a.a.createElement(h.Row,{mainAxisAlignment:"start"},a.a.createElement(h.Column,{crossAxisAlignment:"left"},a.a.createElement(h.Typography,{style:{fontSize:"16pt"}},a.a.createElement("b",null,"AFFIDAVIT")))),a.a.createElement(h.Box,{style:{width:"100%",padding:"0"}},a.a.createElement(h.Divider,{style:{borderBottom:"2px solid black"}})),a.a.createElement(h.Row,{mainAxisAlignment:"center"},a.a.createElement(h.Column,{crossAxisAlignment:"center"},a.a.createElement(h.Typography,{style:{fontSize:"16pt",fontWeight:"bold"}},"THIS AFFIDAVIT MUST BE SIGNED AND RETURNED TO REGISTER CREDIT."))),a.a.createElement(h.Box,{style:{paddingTop:"1.2em"}},a.a.createElement(h.Row,null,a.a.createElement(h.Column,null,a.a.createElement(h.Typography,{style:{fontSize:"14.6pt",lineHeight:"normal"}},a.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.",a.a.createElement("br",null),a.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 ",a.a.createElement("br",null),"in the spaces below")))),a.a.createElement(h.Box,{style:{paddingTop:"1.2em"}},a.a.createElement(h.Row,null,a.a.createElement(h.Column,null,a.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",a.a.createElement("br",null)," for segments not actually attended could be a violation of Rule 8.4(c) of the Kansas Rules of",a.a.createElement("br",null)," Professional Conduct for Lawyers")))),a.a.createElement(h.Box,{style:{paddingTop:"1.2em"}},a.a.createElement(h.Row,null,a.a.createElement(h.Column,null,a.a.createElement(h.Typography,{style:{fontSize:"14.6pt",lineHeight:"normal"}},a.a.createElement("b",null,"Certification of Attendance:")," By signing below I certify that I actually attended the activity described above",a.a.createElement("br",null)," and am entitled to claim a total of ",a.a.createElement("u",null,"\xa0\xa0",$,"\xa0\xa0")," CLE credit hours, including ",a.a.createElement("u",null,"\xa0\xa0",_,"\xa0\xa0")," ethics & professionalism (EP)",a.a.createElement("br",null)," hours(s) and ",a.a.createElement("u",null,"\xa0\xa0",Y,"\xa0\xa0")," law practice management (LPM) hour(s).")))),a.a.createElement(h.Box,{className:D.infoContainer,style:{justifyContent:"space-between",fontSize:"14pt",marginTop:"28px",paddingTop:"1.2em"}},a.a.createElement("div",{className:D.filedName},Object(x.isEmpty)(Q)?a.a.createElement("div",{style:{marginTop:"28px"}}):Q,a.a.createElement("div",{className:D.signatureFieldLabel},"Attorney Name ")),a.a.createElement("div",{className:D.filedName},Object(x.isEmpty)(null===(C=w)||void 0===C?void 0:C.signatureUrl)?a.a.createElement("div",{style:{marginTop:"28px"}}):a.a.createElement("img",{alt:"signature",src:null===(j=w)||void 0===j?void 0:j.signatureUrl,width:200,height:26,className:D.image}),a.a.createElement("div",{className:D.signatureFieldLabel},"Signature"))),a.a.createElement(h.Box,{className:D.infoContainer,style:{justifyContent:"space-between",fontSize:"14pt",marginTop:"22px"}},a.a.createElement("div",{className:D.filedName},Object(x.isEmpty)(K)?a.a.createElement("div",{style:{marginTop:"28px"}}):K,a.a.createElement("div",{className:D.signatureFieldLabel},"KANSAS SUPREME COURT REG. NO. ",a.a.createElement("b",null,"REQUIRED"))),a.a.createElement("div",{className:D.filedName},X,a.a.createElement("div",{className:D.signatureFieldLabel},"Date"))),a.a.createElement(h.Row,null,a.a.createElement(h.Column,null,a.a.createElement(h.Typography,{style:{fontSize:"14.6pt",lineHeight:"normal",marginTop:"24px"}},"A copy of this affidavit should be included in your personal file."))),a.a.createElement(h.Row,null,a.a.createElement(h.Column,null,a.a.createElement(h.Typography,{style:{fontSize:"14.6pt",lineHeight:"normal",marginTop:"30px"}},"PREPARED FOR:"))),a.a.createElement(h.Row,null,a.a.createElement(h.Column,null,a.a.createElement(h.Typography,{style:{fontSize:"14.6pt",lineHeight:"normal",paddingLeft:"65px",paddingTop:"4px"}},G)))))},ui=Object(z.makeStyles)((function(){return Object(z.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"}(R||(R={}));var hi,pi=function(e){var t,i,r,n,o,s,l,c,d,u,p,f,m=e.certificate,y=e.isInstructor,g=e.licenseId,b=e.sessionDetails,S=e.userId,E=ui(),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)?H()(null===b||void 0===b?void 0:b.startDate).format("MMMM DD, YYYY"):"",j=(null===b||void 0===b?void 0:b.endDate)?H()(null===b||void 0===b?void 0:b.endDate).format("MMMM DD, YYYY"):"",w=j&&j!==C?"".concat(C," - ").concat(j):C,T=null!==(i=null===b||void 0===b||null===(r=b.location)||void 0===r?void 0:r.name)&&void 0!==i?i:"",P=null!==(n=null===b||void 0===b||null===(o=b.location)||void 0===o?void 0:o.city)&&void 0!==n?n:"",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)(P)&&Object(x.isEmpty)(A)?"".concat(T):"".concat(T," ").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)?P:"").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)(P)?", ".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),U="".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:""),G=F.completionDate?H()(F.completionDate).format("MMMM DD, YYYY"):"",M=(null===b||void 0===b?void 0:b.isIndividualSessionDateAllowed)?G:w,q=null!==(u=F.njLawProgramFormat)&&void 0!==u?u:"",z=null===b||void 0===b||null===(p=b.sessionLicenses)||void 0===p||null===(f=p.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(bt),_="true"===W(St),Y="true"===W(Et),$="true"===W(It),K="true"===W(Ot),Q="true"===W(Ct),Z="true"===W(xt),X="true"===W(jt),ee="true"===W(wt),te=W(Nt),ie=W(kt),re=W(Dt),ae=W(Lt),ne=W(Jt),oe=W(Ft),se=W(Bt),le=W(Rt),ce=W(Ut),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):"",pe=void 0!==L?(0).toFixed(2):"",fe=void 0!==L?(0).toFixed(2):"",me=(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)===v.Dd.Pending,Te=(null===je||void 0===je?void 0:je.licenseStatus)===v.Dd.Denied,Pe=je&&je.expirationDate&&null!==je.expirationDate&&Object(N.d)(je.expirationDate)<=Object(N.d)(L.completionDate);if(!we&&!Te&&!Pe){var Ae,Ne,ke=null===(Ae=L.userLicenseCreditValues)||void 0===Ae?void 0:Ae.filter((function(e){return e.licenseId===ve}));he=de(ke,ht),pe=de(ke,pt),fe=de(ke,vt);var De=Object(x.sum)(null===ke||void 0===ke?void 0:ke.map((function(e){return e.value})));me=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===ve}));Ee=ue(Le,ft),Oe=ue(Le,yt),Ie=ue(Le,mt),Ce=ue(Le,gt)}}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)===v.Dd.Pending,Re=(null===Fe||void 0===Fe?void 0:Fe.licenseStatus)===v.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,Me=null===(Ge=J.userLicenseCreditValues)||void 0===Ge?void 0:Ge.filter((function(e){return e.licenseId===ve}));ye=de(Me,ht),ge=de(Me,pt),be=de(Me,vt);var qe=Object(x.sum)(null===Me||void 0===Me?void 0:Me.map((function(e){return e.value})));Se=qe&&qe>0?Number.isInteger(qe)?qe.toFixed(2):parseFloat(qe.toFixed(4)).toString():"0.00"}}return a.a.createElement(h.Box,{maxWidth:900,margin:"20px auto",className:E.divDetails},a.a.createElement(h.Box,{style:{width:"100%",alignItems:"center"}},a.a.createElement(h.Table,{id:"tblNJCertificate",style:{width:"100%",pageBreakAfter:"auto"},className:E.table},a.a.createElement(h.TableBody,null,a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{border:"none"}},a.a.createElement(h.Typography,{style:{fontSize:"16pt",textAlign:"center"},className:E.fontBolder},"New Jersey Continuing Legal Education ",a.a.createElement("br",null),"Certificate of Attendance"))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{padding:"0 16px",border:"none"}},a.a.createElement(h.Typography,{className:E.fontBolder},a.a.createElement(h.Box,{style:{display:"flex"}},"This certificate is issued under\xa0",a.a.createElement(h.Typography,{className:E.fontItalic},"Rule"),"\xa01:42 and\xa0",a.a.createElement(h.Typography,{className:E.fontItalic},"BCLE Reg."),"\xa0301:8 of the Board on Continuing Legal Education.")))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:E.styleNoWrap,style:{paddingTop:"16px",border:"none"}},a.a.createElement(h.Box,{className:E.infoContainer},a.a.createElement(h.Typography,{className:E.infoLabel},"Title of Program:"),a.a.createElement(h.Typography,{className:E.infoDescription},I)))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:E.styleNoWrap,style:{border:"none"}},a.a.createElement(h.Box,{className:E.divStyle},a.a.createElement(h.Box,{className:E.dateContainer},a.a.createElement(h.Typography,{className:E.dateLabel},"Date:"),a.a.createElement(h.Typography,{className:E.styleFlexWithBorder},M)),a.a.createElement(h.Box,{className:E.locationContainer},a.a.createElement(h.Typography,{className:E.locationLabel},"Location:"),a.a.createElement(h.Typography,{className:E.styleFlexWithBorder},(null===m||void 0===m?void 0:m.includeLocation)?D:""))))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{padding:"0 16px",border:"none"}},a.a.createElement(h.Typography,{style:{fontSize:"14pt"}},a.a.createElement(h.Typography,{className:E.otherLabel,style:{marginTop:"10px"}},a.a.createElement(h.Box,{className:E.infoContainer},a.a.createElement(h.Typography,{className:E.infoLabel,style:{marginTop:"0px"}},"Format:")," ","(please check)"))))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{padding:"0 16px",border:"none"}},a.a.createElement(h.Box,{className:E.infoContainer},a.a.createElement(h.Box,{style:{flex:"40%"}},a.a.createElement(h.Box,{style:{display:"flex",alignItems:"center"}},a.a.createElement(h.Typography,{className:E.checkBox},q===R.TraditionalLiveClassroomSetting&&a.a.createElement(h.SystemIcon,{icon:"Check",size:"xs"})),a.a.createElement(h.Typography,{className:E.checkboxLabel},"Traditional live classroom setting"))),a.a.createElement(h.Box,{style:{flex:"25%"}},a.a.createElement(h.Box,{style:{display:"flex",alignItems:"center"}},a.a.createElement(h.Typography,{className:E.checkBox},q===R.CD&&a.a.createElement(h.SystemIcon,{icon:"Check",size:"xs"})),a.a.createElement(h.Typography,{className:E.checkboxLabel},"CD"))),a.a.createElement(h.Box,{style:{flex:"35%"}},a.a.createElement(h.Box,{style:{display:"flex",alignItems:"center"}},a.a.createElement(h.Typography,{className:E.checkBox},q===R.Webinar&&a.a.createElement(h.SystemIcon,{icon:"Check",size:"xs"})),a.a.createElement(h.Typography,{className:E.checkboxLabel},"Webinar")))))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{padding:"0 16px",border:"none"}},a.a.createElement(h.Box,{className:E.infoContainer},a.a.createElement(h.Box,{style:{flex:"40%"}},a.a.createElement(h.Box,{style:{display:"flex",alignItems:"center"}},a.a.createElement(h.Typography,{className:E.checkBox},q===R.TeleconferenceVideoconference&&a.a.createElement(h.SystemIcon,{icon:"Check",size:"xs"})),a.a.createElement(h.Typography,{className:E.checkboxLabel},"Teleconference/Videoconference"))),a.a.createElement(h.Box,{style:{flex:"25%"}},a.a.createElement(h.Box,{style:{display:"flex",alignItems:"center"}},a.a.createElement(h.Typography,{className:E.checkBox},q===R.DVD&&a.a.createElement(h.SystemIcon,{icon:"Check",size:"xs"})),a.a.createElement(h.Typography,{className:E.checkboxLabel},"DVD"))),a.a.createElement(h.Box,{style:{flex:"35%"}},a.a.createElement(h.Box,{style:{display:"flex",alignItems:"center"}},a.a.createElement(h.Typography,{className:E.checkBox},q===R.Other&&a.a.createElement(h.SystemIcon,{icon:"Check",size:"xs"})),a.a.createElement(h.Box,{className:E.infoContainer},a.a.createElement(h.Typography,{className:E.checkboxLabel},"Other:"),a.a.createElement(h.Box,{className:E.otherDescription},q===R.Other&&O))))))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{padding:"0 16px",border:"none"}},a.a.createElement(h.Box,{className:E.infoContainer},a.a.createElement(h.Box,{style:{flex:"40%"}},a.a.createElement(h.Box,{style:{display:"flex",alignItems:"center"}},a.a.createElement(h.Typography,{className:E.checkBox},q===R.Simulcast&&a.a.createElement(h.SystemIcon,{icon:"Check",size:"xs"})),a.a.createElement(h.Typography,{className:E.checkboxLabel},"Simulcast"))),a.a.createElement(h.Box,{style:{flex:"25%"}},a.a.createElement(h.Box,{style:{display:"flex",alignItems:"center"}},a.a.createElement(h.Typography,{className:E.checkBox},q===R.AudiotapeVideotape&&a.a.createElement(h.SystemIcon,{icon:"Check",size:"xs"})),a.a.createElement(h.Typography,{className:E.checkboxLabel},"Audio/Videotape"))),a.a.createElement(h.Box,{style:{flex:"35%"}})))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{padding:"0 16px",border:"none"}},a.a.createElement(h.Box,{style:{fontSize:"14pt",marginTop:"15px"}},a.a.createElement(h.Typography,{className:E.fontBolder},"All credits are calculated on a 50-minute hour.")),a.a.createElement(h.Box,{style:{fontSize:"14pt",fontWeight:"bolder"}},a.a.createElement(h.Box,{className:E.infoContainer},a.a.createElement(h.Typography,{className:E.creditLineText},"Credit for Attendance: Total"," ",a.a.createElement(h.Typography,{className:E.creditDescription},Se)," as indicated below:"))))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{padding:"0 16px",border:"none"}},a.a.createElement(h.Box,{className:E.divCenter,style:{marginLeft:"142px"}},a.a.createElement(h.Typography,null,a.a.createElement(h.Box,{className:E.infoContainer},a.a.createElement(h.Typography,{className:E.line},ge),a.a.createElement(h.Typography,{className:E.lineText},"General credits (excluding Ethics)")),a.a.createElement(h.Box,{className:E.infoContainer},a.a.createElement(h.Typography,{className:E.line},ye),a.a.createElement(h.Typography,{className:E.lineText},"Ethics credits (exclusive of Diversity/Inclusion/Elimination of Bias)")),a.a.createElement(h.Box,{className:E.infoContainer},a.a.createElement(h.Typography,{className:E.line},be),a.a.createElement(h.Typography,{className:E.lineText},"Diversity/Inclusion/Elimination of Bias credits")))))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{padding:"0 16px",border:"none"}},a.a.createElement(h.Box,{className:E.infoContainer},a.a.createElement(h.Typography,{className:E.creditLineText},"Additional Credit for Faculty Participation: Total"," ",a.a.createElement(h.Typography,{className:E.creditDescription},me)," as indicated below:")))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{padding:"0 16px",border:"none"}},a.a.createElement(h.Box,{className:E.infoContainer},a.a.createElement(h.Box,{style:{flex:"20%"}},a.a.createElement(h.Box,{style:{display:"flex",alignItems:"center"}},a.a.createElement(h.Typography,{className:E.checkBox},Ee&&a.a.createElement(h.SystemIcon,{icon:"Check",size:"xs"})),a.a.createElement(h.Typography,{className:E.checkboxLabel},"Speaker"))),a.a.createElement(h.Box,{style:{flex:"25%"}},a.a.createElement(h.Box,{style:{display:"flex",alignItems:"center"}},a.a.createElement(h.Typography,{className:E.checkBox},Ie&&a.a.createElement(h.SystemIcon,{icon:"Check",size:"xs"})),a.a.createElement(h.Typography,{className:E.checkboxLabel},"Panel Member"))),a.a.createElement(h.Box,{style:{flex:"20%"}},a.a.createElement(h.Box,{style:{display:"flex",alignItems:"center"}},a.a.createElement(h.Typography,{className:E.checkBox},Oe&&a.a.createElement(h.SystemIcon,{icon:"Check",size:"xs"})),a.a.createElement(h.Typography,{className:E.checkboxLabel},"Moderator"))),a.a.createElement(h.Box,{style:{flex:"35%"}},a.a.createElement(h.Box,{style:{display:"flex",alignItems:"center"}},a.a.createElement(h.Typography,{className:E.checkBox},Ce&&a.a.createElement(h.SystemIcon,{icon:"Check",size:"xs"})),a.a.createElement(h.Box,{className:E.infoContainer},a.a.createElement(h.Typography,{className:E.checkboxLabel},"Other"),a.a.createElement(h.Typography,{className:E.otherDescription,style:{minWidth:"350px"}}))))))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{padding:"0 16px",border:"none"}},a.a.createElement(h.Box,{className:E.divCenter,style:{marginLeft:"155px"}},a.a.createElement(h.Typography,null,a.a.createElement(h.Box,{className:E.infoContainer},a.a.createElement(h.Typography,{className:E.line},pe),a.a.createElement(h.Typography,{className:E.lineText},"Additional General credits for faculty participation (excluding Ethics)")),a.a.createElement(h.Box,{className:E.infoContainer},a.a.createElement(h.Typography,{className:E.line},he),a.a.createElement(h.Typography,{className:E.lineText},"Additional Ethics credits for faculty participation (exclusive of")),a.a.createElement(h.Box,{className:E.infoContainer},a.a.createElement(h.Typography,{className:E.noLine}),a.a.createElement(h.Typography,{className:E.lineText},"Diversity/Inclusion/Elimination of Bias)")),a.a.createElement(h.Box,{className:E.infoContainer},a.a.createElement(h.Typography,{className:E.line},fe),a.a.createElement(h.Typography,{className:E.lineText},"Additional Diversity/Inclusion/Elimination of Bias credits for faculty")),a.a.createElement(h.Box,{className:E.infoContainer},a.a.createElement(h.Typography,{className:E.noLine}),a.a.createElement(h.Typography,{className:E.lineText},"participation")))))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{padding:"0 16px",border:"none"}},a.a.createElement(h.Box,{style:{fontSize:"14pt",marginTop:"8px"}},a.a.createElement(h.Typography,{className:E.fontBolder},"This program has been approved for New Jersey Newly Admitted Attorney Credits")))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{padding:"0 16px",border:"none"}},a.a.createElement(h.Box,{className:E.divCenter},a.a.createElement(h.Typography,null,a.a.createElement(h.Box,{className:E.infoContainer},a.a.createElement(h.Typography,{className:E.line},V&&te),a.a.createElement(h.Typography,{className:E.lineText},"credits in NJ Basic Estate Administration")),a.a.createElement(h.Box,{className:E.infoContainer},a.a.createElement(h.Typography,{className:E.line},_&&ie),a.a.createElement(h.Typography,{className:E.lineText},"credits in NJ Basic Estate Planning")),a.a.createElement(h.Box,{className:E.infoContainer},a.a.createElement(h.Typography,{className:E.line},Y&&re),a.a.createElement(h.Typography,{className:E.lineText},"credits in NJ Civil or Criminal Trial Preparation")),a.a.createElement(h.Box,{className:E.infoContainer},a.a.createElement(h.Typography,{className:E.line},$&&ae),a.a.createElement(h.Typography,{className:E.lineText},"credits in NJ Family Law Practice")),a.a.createElement(h.Box,{className:E.infoContainer},a.a.createElement(h.Typography,{className:E.line},K&&ne),a.a.createElement(h.Typography,{className:E.lineText},"credits in NJ Real Estate Closing Procedures")),a.a.createElement(h.Box,{className:E.infoContainer},a.a.createElement(h.Typography,{className:E.line},Q&&oe),a.a.createElement(h.Typography,{className:E.lineText},"credits in NJ Trust and Business Accounting")),a.a.createElement(h.Box,{className:E.infoContainer},a.a.createElement(h.Typography,{className:E.line},Z&&se),a.a.createElement(h.Typography,{className:E.lineText},"credits in NJ Landlord/Tenant Practice")),a.a.createElement(h.Box,{className:E.infoContainer},a.a.createElement(h.Typography,{className:E.line},X&&le),a.a.createElement(h.Typography,{className:E.lineText},"credits in NJ Municipal Court Practice")),a.a.createElement(h.Box,{className:E.infoContainer},a.a.createElement(h.Typography,{className:E.line},ee&&ce),a.a.createElement(h.Typography,{className:E.lineText},"credits in NJ Law Office Management")))))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{padding:"10px 16px 0 16px",border:"none"}},a.a.createElement(h.Typography,{className:E.otherLabel,style:{fontSize:"13pt"}},a.a.createElement(h.Typography,{className:E.fontBolder},a.a.createElement(h.Box,{className:E.infoContainer},"Attorneys:\xa0",a.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,",a.a.createElement("br",null)," you certify that you attended the activity described above and are entitled to claim the amount of credits listed."))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:E.styleNoWrap,style:{border:"none"}},a.a.createElement(h.Box,{className:E.infoContainer,style:{fontSize:"14pt",marginTop:"8px"}},a.a.createElement(h.Typography,{className:E.infoLabel},"Name of Attorney:"),a.a.createElement(h.Typography,{className:E.infoDescription},B)))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:E.styleNoWrap,style:{border:"none"}},a.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"}},a.a.createElement(h.Box,{className:E.signatureContainer},a.a.createElement(h.Typography,{className:E.signatureLabel,style:{minWidth:"85px"}},"Signature:"),a.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)&&a.a.createElement("img",{alt:"signature",src:null===F||void 0===F?void 0:F.signatureUrl,className:E.signatureSize,style:{imageRendering:"auto",objectFit:"scale-down"}}))),a.a.createElement(h.Box,{className:E.barNumberContainer},a.a.createElement(h.Typography,{className:E.barNumberLabel},"Attorney ID #:"),a.a.createElement(h.Typography,{className:E.styleFlexWithBorder},U))))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{padding:"0 16px",border:"none"}},a.a.createElement(h.Typography,{className:E.otherLabel},a.a.createElement(h.Box,{style:{display:"flex",fontSize:"13pt",marginTop:"17px"}},a.a.createElement(h.Typography,{className:E.fontBolder},"Providers:"),"\xa0By issuing this certificate, you verify that the attorney named above completed this program.")))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:E.styleNoWrap,style:{border:"none"}},a.a.createElement(h.Box,{className:E.infoContainer},a.a.createElement(h.Typography,{className:E.infoLabel},"Provider:"),a.a.createElement(h.Typography,{className:E.infoDescription},a.a.createElement(h.Box,{style:{display:"flex",whiteSpace:"nowrap"}},k,"\xa0",(null===m||void 0===m?void 0:m.locationValue)&&a.a.createElement(h.Typography,{className:E.otherLabel},"(",null===m||void 0===m?void 0:m.locationValue,")")))))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:E.styleNoWrap,style:{border:"none"}},a.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"}},a.a.createElement(h.Typography,{className:E.infoLabel,style:{alignSelf:"center"}},"Acknowledged by:"),a.a.createElement(h.Box,{className:E.infoDescriptionv2},a.a.createElement(h.Box,{className:E.infoContainer,style:{alignItems:"flex-end"}},a.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)?a.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"}}):a.a.createElement(a.a.Fragment,null,"\xa0"),a.a.createElement(h.Typography,{className:E.labelv2},"(Provider Representative Signature)"))))))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{padding:"0 16px",border:"none"}},a.a.createElement(h.Box,{style:{fontSize:"12pt",display:"flex",borderTop:"#000000 1px solid",marginTop:"15px"}},a.a.createElement(h.Typography,{className:E.otherLabel,style:{flex:1}},"Revised: 11/2020, CN 11388"),a.a.createElement(h.Typography,{className:E.otherLabel,style:{flex:1,justifyContent:"flex-end",display:"flex"}},"page 1 of 1"))))))))},vi="Times New Roman, Garamond, Georgia",fi=Object(z.makeStyles)((function(){return Object(z.createStyles)({table:{fontFamily:vi,height:"100%",width:"100%",alignItems:"center",margin:"0 auto",pageBreakAfter:"auto",tableLayout:"fixed"},cellDefaultStyle:{padding:"0",paddingLeft:"6px",border:"black solid 1px",borderBottom:"0",verticalAlign:"top",textAlign:"left"},innerCellDefaultStyle:{padding:"0",paddingLeft:"6px",border:"0",verticalAlign:"top",textAlign:"left"},cellSideBorders:{paddingLeft:"6px",padding:"0",border:"none",borderLeft:"1px solid black",borderRight:"1px solid black"},headerDefaultStyle:{fontSize:"14pt",textAlign:"center",fontWeight:"bolder",fontFamily:vi},signatureSize:{width:200,height:25},fontDefault:{fontSize:"14pt",fontFamily:vi,overflowWarp:"anywhere"},infoContainer:{display:"flex"},checkBox:{borderTop:"#000000 1px solid",height:"16px",borderRight:"#000000 1px solid",width:"16px",verticalAlign:"middle",borderBottom:"#000000 1px solid",borderLeft:"#000000 1px solid"},line:{borderBottom:"#000000 1px solid",minWidth:"60px",flex:0,whiteSpace:"pre-wrap",textAlign:"center",fontFamily:vi,fontSize:"13pt"},lineText:{fontSize:"13pt",minWidth:"300px",flex:1,whiteSpace:"pre-wrap",textAlign:"left",marginLeft:"10px",overflowWrap:"anywhere",fontFamily:vi},altPreLineText:{fontSize:"13pt",maxWidth:"180px",flex:1,whiteSpace:"pre-wrap",textAlign:"left",marginLeft:"-38px",overflowWrap:"anywhere",fontFamily:vi},preLineText:{fontSize:"13pt",maxWidth:"40px",flex:1,whiteSpace:"pre-wrap",textAlign:"left",marginLeft:"2px",overflowWrap:"anywhere",fontFamily:vi},otherDescription:{borderBottom:"#000000 1px solid",fontSize:"12pt",minWidth:"200px",flex:1,whiteSpace:"pre-wrap",overflowWrap:"anywhere",textAlign:"left",fontFamily:vi},checkboxLabel:{flex:0,fontSize:"12pt",marginRight:"8px",alignItems:"flex-end",fontFamily:vi,marginLeft:"8px"},otherLabel:{flex:0,fontSize:"14pt",marginRight:"8px",alignItems:"flex-end",fontFamily:vi},creditLineText:{fontSize:"13pt",minWidth:"300px",flex:1,fontWeight:"bolder",whiteSpace:"pre-wrap",textAlign:"left",fontFamily:vi},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"}(hi||(hi={}));var mi,yi=function(e){var t,i,r,n,o,s,l,c,d,u,p,f,m,y=e.certificate,g=e.isInstructor,b=e.licenseId,S=e.sessionDetails,E=e.userId,I=fi(),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!==(t=null===S||void 0===S?void 0:S.courseFormat)&&void 0!==t?t:"",j=(null===S||void 0===S?void 0:S.startDate)?H()(null===S||void 0===S?void 0:S.startDate).format("MMMM DD, YYYY"):"",w=(null===S||void 0===S?void 0:S.endDate)?H()(null===S||void 0===S?void 0:S.endDate).format("MMMM DD, YYYY"):"",T=w&&w!==j?"".concat(j," - ").concat(w):j,P=null!==(i=null===S||void 0===S||null===(r=S.location)||void 0===r?void 0:r.name)&&void 0!==i?i:"",A=null!==(n=null===S||void 0===S||null===(o=S.location)||void 0===o?void 0:o.city)&&void 0!==n?n:"",k=null!==(s=null===S||void 0===S||null===(l=S.location)||void 0===l?void 0:l.state)&&void 0!==s?s:"",D=null!==(c=null===S||void 0===S?void 0:S.provider)&&void 0!==c?c:"",L="";L=Object(x.isEmpty)(A)&&Object(x.isEmpty)(k)?"".concat(P):"".concat(P," ").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 J=(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}))),F=(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}))),B=g?J:F,R="".concat(B.firstName," ").concat((null===y||void 0===y?void 0:y.includeMiddleName)?"".concat(null!==(d=B.middleName)&&void 0!==d?d:""):""," ").concat(B.lastName),U="".concat((null===y||void 0===y?void 0:y.includeBarNumber)&&null!==(u=null===B||void 0===B?void 0:B.licenseBarNumber)&&void 0!==u?u:""),G=(null===B||void 0===B?void 0:B.completionDate)?H()(null===B||void 0===B?void 0:B.completionDate).format("MMMM DD, YYYY"):"",M=(null===S||void 0===S?void 0:S.isIndividualSessionDateAllowed)?G:T,q=null!==(p=B.njLawProgramFormat)&&void 0!==p?p:"",z=null===S||void 0===S||null===(f=S.sessionLicenses)||void 0===f||null===(m=f.find((function(e){return e.licenseId===b})))||void 0===m?void 0:m.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(bt),_="true"===W(St),Y="true"===W(Et),$="true"===W(It),K="true"===W(Ot),Q="true"===W(Ct),Z="true"===W(xt),X="true"===W(jt),ee="true"===W(wt),te="true"===W(Tt),ie="true"===W(Pt),re="true"===W(At),ae=W(Nt),ne=W(kt),oe=W(Dt),se=W(Lt),le=W(Jt),ce=W(Ft),de=W(Bt),ue=W(Rt),he=W(Ut),pe=W(Gt),fe=W(Mt),me=W(qt),ye=function(e,t){var i,r,a;return(a=e[0]instanceof v.ie?null===(i=e.find((function(e){return e.creditId===t})))||void 0===i?void 0:i.value:a=null===(r=e.find((function(e){return e.creditId===t})))||void 0===r?void 0:r.creditValue)&&a>0?Number.isInteger(a)?a.toFixed(2):parseFloat(a.toFixed(4)).toString():""},ge=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},be=void 0!==J?(0).toFixed(2):"",Se=void 0!==J?(0).toFixed(2):"",Ee=void 0!==J?(0).toFixed(2):"",Ie=(0).toFixed(2),Oe=void 0!==F?(0).toFixed(2):"",Ce=void 0!==F?(0).toFixed(2):"",xe=void 0!==F?(0).toFixed(2):"",je=(0).toFixed(2),we=!1,Te=!1,Pe=!1,Ae=!1;if(void 0!==J){var Ne,ke=null===S||void 0===S||null===(Ne=S.sessionLicenses)||void 0===Ne?void 0:Ne.find((function(e){return e.licenseId===b})),De=(null===ke||void 0===ke?void 0:ke.licenseStatus)===v.Dd.Pending,Le=(null===ke||void 0===ke?void 0:ke.licenseStatus)===v.Dd.Denied,Je=ke&&ke.expirationDate&&null!==ke.expirationDate&&Object(N.d)(ke.expirationDate)<=Object(N.d)(J.completionDate);if(!De&&!Le&&!Je){var Fe,Be,Re=null===(Fe=J.userLicenseCreditValues)||void 0===Fe?void 0:Fe.filter((function(e){return e.licenseId===ve}));be=ye(Re,ht),Se=ye(Re,pt),Ee=ye(Re,vt);var Ue=Re[0]instanceof v.ie?Object(x.sum)(Re.map((function(e){return e.value}))):Object(x.sum)(Re.map((function(e){return e.creditValue})));Ie=Ue&&Ue>0?Number.isInteger(Ue)?Ue.toFixed(2):parseFloat(Ue.toFixed(4)).toString():"0.00";var Ge=(null===(Be=J.userLicensePropertyValues)||void 0===Be?void 0:Be.filter((function(e){return e.licenseId===ve})))||[];we=ge(Ge,ft),Pe=ge(Ge,yt),Te=ge(Ge,mt),Ae=ge(Ge,gt)}}if(void 0!==F){var Me,qe=null===S||void 0===S||null===(Me=S.sessionLicenses)||void 0===Me?void 0:Me.find((function(e){return e.licenseId===b})),ze=(null===qe||void 0===qe?void 0:qe.licenseStatus)===v.Dd.Pending,We=(null===qe||void 0===qe?void 0:qe.licenseStatus)===v.Dd.Denied,Ve=qe&&qe.expirationDate&&null!==qe.expirationDate&&Object(N.d)(qe.expirationDate)<=Object(N.d)(F.completionDate);if(!ze&&!We&&!Ve){var _e,Ye=null===(_e=F.userLicenseCreditValues)||void 0===_e?void 0:_e.filter((function(e){return e.licenseId===ve}));Oe=g?"":ye(Ye,ht),Ce=g?"":ye(Ye,pt),xe=g?"":ye(Ye,vt);var $e=Ye[0]instanceof v.ie?Object(x.sum)(Ye.map((function(e){return e.value}))):Object(x.sum)(Ye.map((function(e){return e.creditValue})));je=g?"":$e&&$e>0?Number.isInteger($e)?$e.toFixed(2):parseFloat($e.toFixed(4)).toString():"0.00"}}return a.a.createElement(h.Box,{maxWidth:820,margin:"20px auto",className:I.divDetails,style:{display:"table"}},a.a.createElement(h.Table,{className:I.table},a.a.createElement(h.TableBody,null,a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{border:"none",padding:"0"}},a.a.createElement(h.Table,{style:{width:"100%"}},a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{border:"none",padding:"0",width:"40px"}},a.a.createElement("img",{style:{width:"40px"},alt:"NJLogo",src:"/images/logos/NJ2023COA.png"})),a.a.createElement(h.TableCell,{style:{border:"none",padding:"0"}},a.a.createElement(h.Typography,{className:I.headerDefaultStyle,style:{textAlign:"left",paddingLeft:"142px"}},"New Jersey Judiciary - Continuing Legal Education"),a.a.createElement(h.Typography,{style:{fontSize:"21pt",padding:"0",textAlign:"left",paddingLeft:"200px"},className:I.headerDefaultStyle},"Certificate of Attendance")))))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{padding:"0",paddingBottom:"6px",border:"none"}},a.a.createElement(h.Box,{className:I.infoContainer},a.a.createElement(h.Typography,{className:I.fontDefault},"This certificate is issued under\xa0",a.a.createElement("i",null,"Rule"),"\xa01:42 and\xa0",a.a.createElement("i",null,"BCLE Reg.")," 301:8 of the Board on Continuing ",a.a.createElement("br",null)," Legal Education.\xa0",a.a.createElement("b",null,"All credits are calculated on a 50-minute hour."))))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:I.cellDefaultStyle},a.a.createElement(h.Typography,{className:I.otherLabel},a.a.createElement(h.Box,{className:I.infoContainer},"Program Title"),a.a.createElement(h.Box,{className:I.infoContainer},O)))),a.a.createElement(h.TableRow,{style:{border:"1px solid black"}},a.a.createElement(h.TableCell,{style:{padding:"0",border:"0"}},a.a.createElement(h.Table,{style:{width:"100%"}},a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:I.innerCellDefaultStyle,style:{width:"150px",borderRight:"1px solid black"}},a.a.createElement(h.Typography,{className:I.otherLabel,style:{fontSize:"14pt",fontFamily:"Times New Roman, Garamond, Georgia",display:"inline-block",whiteSpace:"pre-wrap"}},a.a.createElement(h.Box,null,"Date Attended"),a.a.createElement(h.Box,null,M.trim()||a.a.createElement(a.a.Fragment,null,"\xa0")))),a.a.createElement(h.TableCell,{className:I.innerCellDefaultStyle},a.a.createElement(h.Typography,{className:I.otherLabel},a.a.createElement(h.Box,null,"Location"),a.a.createElement(h.Box,null,(null===y||void 0===y?void 0:y.includeLocation)?L:a.a.createElement(a.a.Fragment,null,"\xa0")))))))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:I.cellDefaultStyle},a.a.createElement(h.Typography,{className:I.otherLabel,style:{fontSize:"14pt"}},a.a.createElement(h.Box,{className:I.infoContainer},"Format (check all that apply)")))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:I.cellSideBorders},a.a.createElement(h.Box,{className:I.infoContainer},a.a.createElement(h.Box,{style:{flex:"40%"}},a.a.createElement(h.Box,{style:{display:"flex",alignItems:"center"}},a.a.createElement(h.Typography,{className:I.checkBox},(q===hi.TraditionalLiveClassroomSetting||ai.TraditionalLiveClassroomSetting.includes(q))&&a.a.createElement(h.SystemIcon,{icon:"Check",size:"xs"})),a.a.createElement(h.Typography,{className:I.checkboxLabel},"Traditional live classroom setting"))),a.a.createElement(h.Box,{style:{flex:"25%"}},a.a.createElement(h.Box,{style:{display:"flex",alignItems:"center"}},a.a.createElement(h.Typography,{className:I.checkBox},(q===hi.CD||ai.CD.includes(q))&&a.a.createElement(h.SystemIcon,{icon:"Check",size:"xs"})),a.a.createElement(h.Typography,{className:I.checkboxLabel},"CD"))),a.a.createElement(h.Box,{style:{flex:"35%"}},a.a.createElement(h.Box,{style:{display:"flex",alignItems:"center"}},a.a.createElement(h.Typography,{className:I.checkBox},(q===hi.Webinar||ai.Webinar.includes(q))&&a.a.createElement(h.SystemIcon,{icon:"Check",size:"xs"})),a.a.createElement(h.Typography,{className:I.checkboxLabel},"Webinar")))))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:I.cellSideBorders},a.a.createElement(h.Box,{className:I.infoContainer},a.a.createElement(h.Box,{style:{flex:"40%"}},a.a.createElement(h.Box,{style:{display:"flex",alignItems:"center"}},a.a.createElement(h.Typography,{className:I.checkBox},(q===hi.TeleconferenceVideoconference||ai.TeleconferenceVideoconference.includes(q))&&a.a.createElement(h.SystemIcon,{icon:"Check",size:"xs"})),a.a.createElement(h.Typography,{className:I.checkboxLabel},"Teleconference/Videoconference"))),a.a.createElement(h.Box,{style:{flex:"25%"}},a.a.createElement(h.Box,{style:{display:"flex",alignItems:"center"}},a.a.createElement(h.Typography,{className:I.checkBox},(q===hi.DVD||ai.DVD.includes(q))&&a.a.createElement(h.SystemIcon,{icon:"Check",size:"xs"})),a.a.createElement(h.Typography,{className:I.checkboxLabel},"DVD"))),a.a.createElement(h.Box,{style:{flex:"35%"}},a.a.createElement(h.Box,{style:{display:"flex",alignItems:"center"}},a.a.createElement(h.Typography,{className:I.checkBox},q===hi.Other&&a.a.createElement(h.SystemIcon,{icon:"Check",size:"xs"})),a.a.createElement(h.Box,{className:I.infoContainer},a.a.createElement(h.Typography,{className:I.checkboxLabel},"Other:"),a.a.createElement(h.Box,{className:I.otherDescription},q===hi.Other&&C))))))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:I.cellSideBorders},a.a.createElement(h.Box,{className:I.infoContainer},a.a.createElement(h.Box,{style:{flex:"40%"}},a.a.createElement(h.Box,{style:{display:"flex",alignItems:"center"}},a.a.createElement(h.Typography,{className:I.checkBox},q===hi.Simulcast&&a.a.createElement(h.SystemIcon,{icon:"Check",size:"xs"})),a.a.createElement(h.Typography,{className:I.checkboxLabel},"Simulcast"))),a.a.createElement(h.Box,{style:{flex:"25%"}},a.a.createElement(h.Box,{style:{display:"flex",alignItems:"center"}},a.a.createElement(h.Typography,{className:I.checkBox},q===hi.AudiotapeVideotape&&a.a.createElement(h.SystemIcon,{icon:"Check",size:"xs"})),a.a.createElement(h.Typography,{className:I.checkboxLabel},"Audio/Videotape"))),a.a.createElement(h.Box,{style:{flex:"35%"}})))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:I.cellDefaultStyle,style:{paddingBottom:"7px"}},a.a.createElement(h.Box,{style:{fontSize:"14pt",fontWeight:"bolder"},className:I.infoContainer},a.a.createElement(h.Typography,{className:I.creditLineText},"Credit for Attendance:")),a.a.createElement(h.Box,null,a.a.createElement(h.Typography,null,a.a.createElement(h.Box,{className:I.infoContainer},a.a.createElement(h.Typography,{className:I.preLineText},"Total"),a.a.createElement(h.Typography,{className:I.line},je),a.a.createElement(h.Typography,{className:I.lineText},"as indicated below: ")),a.a.createElement(h.Box,{className:I.infoContainer},a.a.createElement(h.Typography,{className:I.preLineText}),a.a.createElement(h.Typography,{className:I.line},Ce),a.a.createElement(h.Typography,{className:I.lineText},"General credits (excluding Ethics)")),a.a.createElement(h.Box,{className:I.infoContainer},a.a.createElement(h.Typography,{className:I.preLineText}),a.a.createElement(h.Typography,{className:I.line},Oe),a.a.createElement(h.Typography,{className:I.lineText},"Ethics credits (exclusive of Diversity/Inclusion/Elimination of Bias)")),a.a.createElement(h.Box,{className:I.infoContainer},a.a.createElement(h.Typography,{className:I.preLineText}),a.a.createElement(h.Typography,{className:I.line},xe),a.a.createElement(h.Typography,{className:I.lineText},"Diversity/Inclusion/Elimination of Bias credits")))))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:I.cellDefaultStyle,style:{paddingBottom:"7px"}},a.a.createElement(h.Box,{className:I.infoContainer},a.a.createElement(h.Typography,{className:I.creditLineText},"Faculty Participation:")),a.a.createElement(h.Box,{className:I.infoContainer},a.a.createElement(h.Box,{style:{flex:"20%"}},a.a.createElement(h.Box,{style:{display:"flex",alignItems:"center"}},a.a.createElement(h.Typography,{className:I.checkBox},we&&a.a.createElement(h.SystemIcon,{icon:"Check",size:"xs"})),a.a.createElement(h.Typography,{className:I.checkboxLabel},"Speaker"))),a.a.createElement(h.Box,{style:{flex:"25%"}},a.a.createElement(h.Box,{style:{display:"flex",alignItems:"center"}},a.a.createElement(h.Typography,{className:I.checkBox},Te&&a.a.createElement(h.SystemIcon,{icon:"Check",size:"xs"})),a.a.createElement(h.Typography,{className:I.checkboxLabel},"Panel Member"))),a.a.createElement(h.Box,{style:{flex:"20%"}},a.a.createElement(h.Box,{style:{display:"flex",alignItems:"center"}},a.a.createElement(h.Typography,{className:I.checkBox},Pe&&a.a.createElement(h.SystemIcon,{icon:"Check",size:"xs"})),a.a.createElement(h.Typography,{className:I.checkboxLabel},"Moderator"))),a.a.createElement(h.Box,{style:{flex:"35%"}},a.a.createElement(h.Box,{style:{display:"flex",alignItems:"center"}},a.a.createElement(h.Typography,{className:I.checkBox},Ae&&a.a.createElement(h.SystemIcon,{icon:"Check",size:"xs"})),a.a.createElement(h.Box,{className:I.infoContainer},a.a.createElement(h.Typography,{className:I.checkboxLabel},"Other:"),a.a.createElement(h.Typography,{className:I.otherDescription}))))),a.a.createElement(h.Box,{style:{marginLeft:"40px"}},a.a.createElement(h.Typography,null,a.a.createElement(h.Box,{className:I.infoContainer},a.a.createElement(h.Typography,{className:I.altPreLineText},"Additional Credit Total"),a.a.createElement(h.Typography,{className:I.line},Ie),a.a.createElement(h.Typography,{className:I.lineText},"as indicated below:")),a.a.createElement(h.Box,{className:I.infoContainer},a.a.createElement(h.Typography,{className:I.line},Se),a.a.createElement(h.Typography,{className:I.lineText},"General credits for faculty participation (excluding Ethics)")),a.a.createElement(h.Box,{className:I.infoContainer},a.a.createElement(h.Typography,{className:I.line},be),a.a.createElement(h.Typography,{className:I.lineText},"Ethics credits for faculty participation (exclusive of Diversity/Inclusion/Elimination of Bias)")),a.a.createElement(h.Box,{className:I.infoContainer},a.a.createElement(h.Typography,{className:I.line},Ee),a.a.createElement(h.Typography,{className:I.lineText},"Diversity/Inclusion/Elimination of Bias credits for faculty participation")))))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:I.cellDefaultStyle,style:{paddingBottom:"7px"}},a.a.createElement(h.Typography,{className:I.fontDefault,style:{fontSize:"14pt",marginTop:"2px"}},"This program has been approved for ",a.a.createElement("b",null,"New Jersey Newly Admitted Attorney Credits:")),a.a.createElement(h.Box,{style:{marginLeft:"40px"}},a.a.createElement(h.Typography,null,a.a.createElement(h.Box,{className:I.infoContainer},a.a.createElement(h.Typography,{className:I.line},V&&ae),a.a.createElement(h.Typography,{className:I.lineText},"credits in NJ Basic Estate Administration")),a.a.createElement(h.Box,{className:I.infoContainer},a.a.createElement(h.Typography,{className:I.line},_&&ne),a.a.createElement(h.Typography,{className:I.lineText},"credits in NJ Basic Estate Planning")),a.a.createElement(h.Box,{className:I.infoContainer},a.a.createElement(h.Typography,{className:I.line},Y&&oe),a.a.createElement(h.Typography,{className:I.lineText},"credits in NJ Civil or Criminal Trial Preparation")),a.a.createElement(h.Box,{className:I.infoContainer},a.a.createElement(h.Typography,{className:I.line},$&&se),a.a.createElement(h.Typography,{className:I.lineText},"credits in NJ Family Law Practice")),a.a.createElement(h.Box,{className:I.infoContainer},a.a.createElement(h.Typography,{className:I.line},K&&le),a.a.createElement(h.Typography,{className:I.lineText},"credits in NJ Real Estate Closing Procedures")),a.a.createElement(h.Box,{className:I.infoContainer},a.a.createElement(h.Typography,{className:I.line},Q&&ce),a.a.createElement(h.Typography,{className:I.lineText},"credits in NJ Trust and Business Accounting Fundamentals")),a.a.createElement(h.Box,{className:I.infoContainer},a.a.createElement(h.Typography,{className:I.line},Z&&de),a.a.createElement(h.Typography,{className:I.lineText},"credits in NJ Landlord/Tenant Practice")),a.a.createElement(h.Box,{className:I.infoContainer},a.a.createElement(h.Typography,{className:I.line},X&&ue),a.a.createElement(h.Typography,{className:I.lineText},"credits in NJ Municipal Court Practice")),a.a.createElement(h.Box,{className:I.infoContainer},a.a.createElement(h.Typography,{className:I.line},ee&&he),a.a.createElement(h.Typography,{className:I.lineText},"credits in NJ Law Office Management")),a.a.createElement(h.Box,{className:I.infoContainer},a.a.createElement(h.Typography,{className:I.line},te&&pe),a.a.createElement(h.Typography,{className:I.lineText},"credits in NJ Administrative Law")),a.a.createElement(h.Box,{className:I.infoContainer},a.a.createElement(h.Typography,{className:I.line},ie&&fe),a.a.createElement(h.Typography,{className:I.lineText},"credits in NJ Labor And Employment Law")),a.a.createElement(h.Box,{className:I.infoContainer},a.a.createElement(h.Typography,{className:I.line},re&&me),a.a.createElement(h.Typography,{className:I.lineText},"credits in NJ Workers' Compensation Law")))))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:I.cellDefaultStyle,style:{paddingTop:"8px",paddingBottom:"7px"}},a.a.createElement(h.Typography,{className:I.fontDefault,style:{lineHeight:"normal"}},a.a.createElement("b",null," Attorneys:\xa0"),"Retain this certificate for a period of at least three years from the date of your",a.a.createElement("br",null)," attendance. In the event of an audit, you will be required to provide this certificate as proof of",a.a.createElement("br",null)," your compliance. By signing this certificate, you certify that you attended the activity",a.a.createElement("br",null),"described above and are entitled to claim the amount of credits listed."))),a.a.createElement(h.TableRow,{style:{border:"1px solid black"}},a.a.createElement(h.TableCell,{style:{padding:"0",border:"0",borderBottom:"1px solid black"}},a.a.createElement(h.Table,{style:{width:"100%"}},a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:I.innerCellDefaultStyle,style:{width:"600px",borderRight:"1px solid black"}},a.a.createElement(h.Typography,{className:I.otherLabel,style:{fontSize:"14pt",fontFamily:"Times New Roman, Garamond, Georgia",display:"inline-block"}},a.a.createElement(h.Box,null,"Attorney Name"),a.a.createElement(h.Box,null,R.trim()||a.a.createElement(a.a.Fragment,null,"\xa0")))),a.a.createElement(h.TableCell,{className:I.innerCellDefaultStyle},a.a.createElement(h.Typography,{className:I.otherLabel},a.a.createElement(h.Box,null,"Attorney ID Number"),a.a.createElement(h.Box,null,U||a.a.createElement(a.a.Fragment,null,"\xa0")))))))),a.a.createElement(h.TableRow,{style:{border:"1px solid black"}},a.a.createElement(h.TableCell,{style:{padding:"0",border:"0",borderBottom:"1px solid black"}},a.a.createElement(h.Table,{style:{width:"100%"}},a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:I.innerCellDefaultStyle,style:{width:"600px",borderRight:"1px solid black"}},a.a.createElement(h.Typography,{className:I.otherLabel,style:{display:"inline-block"}},a.a.createElement(h.Box,null,"Signature"),a.a.createElement(h.Box,null,(null===y||void 0===y?void 0:y.includeParticipantSignature)&&!Object(x.isEmpty)(null===B||void 0===B?void 0:B.signatureUrl)?a.a.createElement("img",{alt:"attorney signature",src:null===B||void 0===B?void 0:B.signatureUrl,className:I.signatureSize,style:{imageRendering:"auto",objectFit:"scale-down"}}):a.a.createElement(a.a.Fragment,null,"\xa0")))),a.a.createElement(h.TableCell,{className:I.innerCellDefaultStyle},a.a.createElement(h.Typography,{className:I.otherLabel,style:{whiteSpace:"pre-wrap"}},a.a.createElement(h.Box,null,"Date"),a.a.createElement(h.Box,null,M))))))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:I.cellDefaultStyle,style:{paddingTop:"8px",paddingBottom:"7px"}},a.a.createElement(h.Typography,{className:I.fontDefault,style:{lineHeight:"normal"}},a.a.createElement("b",null,"Providers:\xa0"),"By issuing this certificate, you verify that the attorney named above completed this",a.a.createElement("br",null)," program."))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:I.cellDefaultStyle},a.a.createElement(h.Typography,{className:I.otherLabel},a.a.createElement(h.Box,null,"Provider Name"),a.a.createElement(h.Box,{style:{display:"flex",whiteSpace:"nowrap"}},D,"\xa0",(null===y||void 0===y?void 0:y.locationValue)&&a.a.createElement(h.Typography,{className:I.otherLabel},"(",null===y||void 0===y?void 0:y.locationValue,")"))))),a.a.createElement(h.TableRow,{style:{border:"1px solid black"}},a.a.createElement(h.TableCell,{style:{padding:"0",border:"0",borderBottom:"1px solid black"}},a.a.createElement(h.Table,{style:{width:"100%"}},a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:I.innerCellDefaultStyle,style:{width:"600px",borderRight:"1px solid black"}},a.a.createElement(h.Typography,{className:I.otherLabel},a.a.createElement(h.Box,null,"Provider Representative Signature"),a.a.createElement(h.Box,null,(null===y||void 0===y?void 0:y.includeValidatorSignatureLine)&&!Object(x.isEmpty)(null===y||void 0===y?void 0:y.signatureUrl)?a.a.createElement("img",{alt:"provider representative signature",src:null===y||void 0===y?void 0:y.signatureUrl,className:I.signatureSize,style:{imageRendering:"auto",alignItems:"flex-start"}}):a.a.createElement(a.a.Fragment,null,"\xa0")))),a.a.createElement(h.TableCell,{className:I.innerCellDefaultStyle},a.a.createElement(h.Typography,{className:I.otherLabel,style:{whiteSpace:"pre-wrap"}},a.a.createElement(h.Box,null,"Date"),a.a.createElement(h.Box,null,M))))))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{padding:"0",border:"0"}},a.a.createElement(h.Box,{style:{display:"flex",borderTop:"#000000 1px solid",marginTop:"26px"}},a.a.createElement(h.Typography,{style:{flex:1,fontSize:"10pt",fontFamily:"Times New Roman, Garamond, Georgia"}},"Revised: 11/2023, CN 11388"),a.a.createElement(h.Typography,{style:{flex:1,fontSize:"10pt",fontFamily:"Times New Roman, Garamond, Georgia",justifyContent:"flex-end",display:"flex"}},"page 1 of 1")))))))},gi=Object(z.makeStyles)((function(){return Object(z.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"}})})),bi=function(e){var t,i,r,n,o,s,l,c,d,u,p,f,m,y,g=e.certificate,b=e.isInstructor,S=e.licenseId,E=e.sessionDetails,I=e.userId,O=gi(),C=(null===E||void 0===E?void 0:E.title)!==(null===E||void 0===E?void 0:E.courseTitle)?"".concat(null===E||void 0===E?void 0:E.courseTitle," (").concat(null===E||void 0===E?void 0:E.title,")"):null===E||void 0===E?void 0:E.courseTitle,j=(null===E||void 0===E?void 0:E.startDate)?H()(null===E||void 0===E?void 0:E.startDate).format("MMMM DD, YYYY"):"",w=(null===E||void 0===E?void 0:E.endDate)?H()(null===E||void 0===E?void 0:E.endDate).format("MMMM DD, YYYY"):"",T=w&&w!==j?"".concat(j," - ").concat(w):j,P=null!==(t=null===E||void 0===E||null===(i=E.approvalCodes)||void 0===i||null===(r=i.find((function(e){return e.licenseId===S})))||void 0===r?void 0:r.propertyValue)&&void 0!==t?t:"",A=null!==(n=null===E||void 0===E||null===(o=E.location)||void 0===o?void 0:o.name)&&void 0!==n?n:"",k=null!==(s=null===E||void 0===E||null===(l=E.location)||void 0===l?void 0:l.city)&&void 0!==s?s:"",D=null!==(c=null===E||void 0===E||null===(d=E.location)||void 0===d?void 0:d.state)&&void 0!==c?c:"",L=null!==(u=null===E||void 0===E?void 0:E.provider)&&void 0!==u?u:"",J="";J=Object(x.isEmpty)(k)&&Object(x.isEmpty)(D)?"".concat(A):"".concat(A," ").concat((null===g||void 0===g?void 0:g.includeCity)||(null===g||void 0===g?void 0:g.includeState)?"(".concat((null===g||void 0===g?void 0:g.includeCity)?k:"").concat((null===g||void 0===g?void 0:g.includeState)&&!Object(x.isEmpty)(D)?(null===g||void 0===g?void 0:g.includeCity)&&!Object(x.isEmpty)(k)?", ".concat(D):D:"",")"):"");var F=(null===E||void 0===E?void 0:E.sessionInstructors)&&(null===E||void 0===E?void 0:E.sessionInstructors.find((function(e){return e.userId===I}))),B=(null===E||void 0===E?void 0:E.sessionParticipants)&&(null===E||void 0===E?void 0:E.sessionParticipants.find((function(e){return e.userId===I}))),R=(y=b?F:B).nyLawProperties,U=null!==(p=R&&(null===R||void 0===R?void 0:R.programFormat))&&void 0!==p?p:"",G=null!==(f=R&&(null===R||void 0===R?void 0:R.difficultyLevel))&&void 0!==f?f:"",M=null!==(m=R&&(null===R||void 0===R?void 0:R.participationMethod))&&void 0!==m?m:"",q="".concat(y.firstName," ").concat((null===g||void 0===g?void 0:g.includeMiddleName)?"".concat(y.middleName):""," ").concat(y.lastName),z=y.completionDate?H()(y.completionDate).format("MMMM DD, YYYY"):"",W=(null===E||void 0===E?void 0:E.isIndividualSessionDateAllowed)?z:T,V=(0).toFixed(1),_=(0).toFixed(1),Y=(0).toFixed(1),$=(0).toFixed(1),K=(0).toFixed(1),Q=(0).toFixed(1),Z=(0).toFixed(1),X=(0).toFixed(1),ee=(0).toFixed(1),te=(0).toFixed(1),ie=!1,re=!1,ae=!1,ne=!1,oe=function(e,t){var i,r,a;return null!==(i=null===e||void 0===e||null===(r=e.find((function(e){return e.creditId===t})))||void 0===r||null===(a=r.value)||void 0===a?void 0:a.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!==F){var le,ce,de=null===E||void 0===E||null===(le=E.sessionLicenses)||void 0===le?void 0:le.find((function(e){return e.licenseId===fe})),ue=(null===de||void 0===de?void 0:de.licenseStatus)===v.Dd.Pending,he=(null===de||void 0===de?void 0:de.licenseStatus)===v.Dd.Denied,pe=de&&de.expirationDate&&null!==de.expirationDate&&Object(N.d)(de.expirationDate)<=Object(N.d)(F.completionDate),ve=null===(ce=F.userLicensePropertyValues)||void 0===ce?void 0:ce.find((function(e){return e.licenseId===fe&&14===e.propertyId}));if(M=void 0!==ve?1===ve.valueInt?"GroupSetting":"Individual":M,!ue&&!he&&!pe){var me,ye,ge,be=null===(me=F.userLicenseCreditValues)||void 0===me?void 0:me.filter((function(e){return e.licenseId===fe}));V=oe(be,1),_=oe(be,2),Y=oe(be,3),$=oe(be,4),K=oe(be,5);var Se=(null===(ye=F.nyLawProperties)||void 0===ye?void 0:ye.facultyParticipation)&&(null===(ge=F.nyLawProperties)||void 0===ge?void 0:ge.facultyParticipation);ie=se(Se,"Speaker"),re=se(Se,"Moderator"),ae=se(Se,"PanelMember"),ne=se(Se,"LawCompetitionFaculty")}}if(void 0!==B){var Ee,Ie,Oe=null===E||void 0===E||null===(Ee=E.sessionLicenses)||void 0===Ee?void 0:Ee.find((function(e){return e.licenseId===fe})),Ce=(null===Oe||void 0===Oe?void 0:Oe.licenseStatus)===v.Dd.Pending,xe=(null===Oe||void 0===Oe?void 0:Oe.licenseStatus)===v.Dd.Denied,je=Oe&&Oe.expirationDate&&null!==Oe.expirationDate&&Object(N.d)(Oe.expirationDate)<=Object(N.d)(B.completionDate),we=null===(Ie=B.userLicensePropertyValues)||void 0===Ie?void 0:Ie.find((function(e){return e.licenseId===fe&&14===e.propertyId}));if(M=void 0!==we?1===we.valueInt?"GroupSetting":"Individual":M,!Ce&&!xe&&!je){var Te,Pe=null===(Te=B.userLicenseCreditValues)||void 0===Te?void 0:Te.filter((function(e){return e.licenseId===fe}));Q=oe(Pe,1),Z=oe(Pe,2),X=oe(Pe,3),ee=oe(Pe,4),te=oe(Pe,5)}}return a.a.createElement(h.Box,{maxWidth:900,margin:"0 auto",className:O.divDetails},a.a.createElement(h.Box,{style:{width:"100%",alignItems:"center"}},a.a.createElement(h.Row,{mainAxisAlignment:"center"},a.a.createElement(h.Column,{mainAxisAlignment:"middle",minWidth:100},a.a.createElement("img",{alt:"NYlogo",style:{width:"85px",height:"85px"},src:"/images/logos/Nyseal.gif"})),a.a.createElement(h.Column,{mainAxisAlignment:"space-between"},a.a.createElement(h.Typography,{style:{fontSize:"32pt",fontFamily:"Impact"}},"NEW YORK CLE CERTIFICATE OF ATTENDANCE"),a.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.")))),a.a.createElement(h.Box,{style:{alignItems:"center",margin:"24px 16px 0 16px"}},a.a.createElement(h.Column,{mainAxisAlignment:"middle",crossAxisAlignment:"stretch"},a.a.createElement(h.Typography,{style:{fontSize:"13px",letterSpacing:"0.05em"}},a.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",a.a.createElement("br",null)),"Regulations and Guidelines. By issuing this certificate, the CLE provider verifies that the attorney named below completed this",a.a.createElement("br",null),a.a.createElement(h.Box,{style:{display:"flex"}},"program.\xa0",a.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."))))),a.a.createElement(h.Box,{style:{width:"100%",alignItems:"center"}},a.a.createElement(h.Table,{style:{alignItems:"center",margin:"0 auto"}},a.a.createElement(h.TableBody,null,a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{border:0,boxShadow:"none",maxWidth:420}},a.a.createElement(h.Divider,{style:{borderBottom:"3px solid black"}})),a.a.createElement(h.TableCell,{style:{border:0,boxShadow:"none",maxWidth:420}},a.a.createElement(h.Divider,{style:{borderBottom:"3px solid black"}}))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{border:0,boxShadow:"none",maxWidth:420,paddingTop:0,verticalAlign:"top"}},a.a.createElement(h.Box,{className:O.taj,style:{width:"100%",paddingBottom:"2px"}},a.a.createElement(h.Typography,{className:O.textSize14b},"A. Attorney and Program Information")),a.a.createElement(h.Table,{style:{paddingBottom:"5px",margin:"0px"}},a.a.createElement(h.TableBody,null,a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{border:0,boxShadow:"none",padding:0}},a.a.createElement(h.Typography,{className:O.boxTal,style:{minHeight:"35px",width:"405px",overflowWrap:"anywhere",whiteSpace:"pre-wrap"}},q))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:O.textSize11,style:{padding:0,border:0,boxShadow:"none"}},a.a.createElement(h.Typography,{className:O.textSize10b},"Name of Attorney"))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{border:0,boxShadow:"none",padding:0}},a.a.createElement(h.Typography,{className:O.boxTal,style:{minHeight:"75px",width:"405px",overflowWrap:"anywhere",whiteSpace:"pre-wrap"}},a.a.createElement(h.Typography,{id:"NY08Text3"},C)))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:O.textSize11,style:{padding:0,border:0,boxShadow:"none"}},a.a.createElement(h.Typography,{className:O.textSize10b},"Title of Program"))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{border:0,boxShadow:"none",padding:0}},a.a.createElement(h.Typography,{className:O.boxTal,style:{height:"35px",width:"405px"}},W))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:O.textSize11,style:{padding:0,border:0,boxShadow:"none"}},a.a.createElement(h.Row,{mainAxisAlignment:"start",crossAxisAlignment:"middle"},a.a.createElement(h.Typography,{className:O.textSize10b},"Date(s) of Attendance:"),a.a.createElement(h.Typography,{variant:"caption",style:{fontSize:"9px",letterSpacing:"-0.2px"}},"(For self-study programs, indicate date attorney completed program.)")))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{border:0,boxShadow:"none",fontSize:"3px",padding:0}},"\xa0")),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{border:0,boxShadow:"none",padding:0}},a.a.createElement(h.Typography,{className:O.boxTal,style:{minHeight:"35px",width:"405px",overflowWrap:"anywhere",whiteSpace:"pre-wrap"}},J))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:O.textSize10,style:{padding:0,border:0,boxShadow:"none"}},a.a.createElement(h.Typography,{weight:"bold"},"Location of Program ",a.a.createElement("span",{className:O.textSize9},"(City, State)")))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:O.textSize9,style:{padding:"0 0 5px 16px",border:0,boxShadow:"none"}},a.a.createElement(h.Row,{mainAxisAlignment:"start",crossAxisAlignment:"middle"},a.a.createElement("input",{className:Object(x.isEmpty)(J)?O.checkedBox:O.checkBox,type:"textbox","read-only":!0}),a.a.createElement(h.Typography,{weight:"bold",variant:"body1"},"\xa0Location Not Applicable"),a.a.createElement(h.Typography,{variant:"caption",style:{letterSpacing:"0.01em"}},"(Check only for self-study programs.)"))))))),a.a.createElement(h.Box,{style:{width:"100%",padding:"14px 0"}},a.a.createElement(h.Divider,{style:{borderBottom:"3px solid black"}})),a.a.createElement(h.Box,{className:O.taj,style:{width:"100%",paddingBottom:"2px"}},a.a.createElement(h.Typography,{className:O.textSize14b},"B. Format of Program"),a.a.createElement(h.Typography,{className:O.textFont,style:{fontSize:"8pt",letterSpacing:"0.05px"}},"(Check only the format completed by the attorney to whom this certificate is issued.)")),a.a.createElement(h.Table,null,a.a.createElement(h.TableBody,null,a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:O.textSize11,style:{padding:0,border:0,boxShadow:"none"}},a.a.createElement("input",{className:"Format1"===U?O.checkedBox:O.checkBox,type:"textbox","read-only":!0}),"\xa01. Traditional Live Classroom Format")),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:O.textSize11,style:{padding:0,border:0,boxShadow:"none"}},a.a.createElement("input",{className:"Format2"===U?O.checkedBox:O.checkBox,type:"textbox","read-only":!0}),"\xa02. Fully Interactive Videoconference")),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:O.textSize11,style:{padding:"5px 0 0 5px",border:0,boxShadow:"none"}},"Live Simultaneous Transmission")),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{border:0,boxShadow:"none",padding:"0 0 0 5px"}},a.a.createElement(h.Typography,{className:O.textSize8,style:{letterSpacing:"-0.05px"}},"(webconference, teleconference, webcast, videoconference, satellite broadcast, etc.)"))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:O.textSize11,style:{padding:"5px 0 0 10px",border:0,boxShadow:"none"}},a.a.createElement(h.Row,{mainAxisAlignment:"start",crossAxisAlignment:"middle"},a.a.createElement("input",{className:"Format3"===U?O.checkedBox:O.checkBox,type:"textbox","read-only":!0}),"\xa03. Questions Allowed During Program"," ",a.a.createElement(h.Typography,{className:O.textFont,style:{fontSize:"8pt",letterSpacing:"0.25px"}},"(Synchronous Interactivity)")))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:O.textSize11,style:{padding:"5px 0 5px 10px",border:0,boxShadow:"none"}},a.a.createElement("input",{className:"Format4"===U?O.checkedBox:O.checkBox,type:"textbox","read-only":!0}),"\xa04. Questions Not Allowed During Program")),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:O.textSize11,style:{padding:0,border:0,boxShadow:"none"}},a.a.createElement("input",{className:"Format5"===U?O.checkedBox:O.checkBox,type:"textbox","read-only":!0}),"\xa05. On-Demand/Recorded ",a.a.createElement("span",{className:O.textSize75},"(Audio/Video)"))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:O.textSize11,style:{padding:0,border:0,boxShadow:"none"}},a.a.createElement("input",{className:"Format6"===U?O.checkedBox:O.checkBox,type:"textbox","read-only":!0}),"\xa06. Other (Describe)"," ",a.a.createElement(h.Typography,{className:O.boxTal,style:{height:"20px",width:"256px",verticalAlign:"middle"}}))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:O.textSize9,style:{letterSpacing:"0.4px",border:0,boxShadow:"none",padding:"5px 0 0 0"}},a.a.createElement(h.Box,{style:{display:"flex"}},a.a.createElement(h.Typography,{className:O.textSize7b,style:{alignItems:"center"}},"Newly admitted attorney format restrictions"),"(except as provided in \xa72(A) and"),"\xa72(F) of the Regulations):")),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{border:0,boxShadow:"none",padding:0}},a.a.createElement(h.Typography,{className:O.textSize7b},"- Formats 1 & 2 - acceptable for credit in any category",a.a.createElement("br",null),"- Format 3 - unacceptable for Skills credit",a.a.createElement("br",null),"- Formats 4 & 5 - unacceptable for Skills or Ethics and Professionalism credit"))))),a.a.createElement(h.Box,{style:{width:"100%",padding:"14px 0"}},a.a.createElement(h.Divider,{style:{borderBottom:"3px solid black"}})),a.a.createElement(h.Box,{className:O.taj,style:{width:"100%"}},a.a.createElement(h.Row,{mainAxisAlignment:"start",crossAxisAlignment:"middle"},a.a.createElement(h.Typography,{className:O.textSize14b,style:{letterSpacing:"-0.4px"}},"C. Attorney's Method of Participation"),a.a.createElement(h.Typography,{className:O.textFont,style:{fontSize:"8pt"}},"(Check only one)"))),a.a.createElement(h.Table,null,a.a.createElement(h.TableBody,null,a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:O.textSize11,style:{verticalAlign:"top",textAlign:"left",padding:"5px 0 0 0",border:0,boxShadow:"none"}},a.a.createElement("input",{className:"GroupSetting"===M?O.checkedBox:O.checkBox,type:"textbox","read-only":!0}),"\xa0Group Setting, or")),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{border:0,boxShadow:"none",verticalAlign:"top",textAlign:"left",padding:"5px 0 0 0"}},a.a.createElement(h.Row,{mainAxisAlignment:"start",crossAxisAlignment:"top"},a.a.createElement("input",{className:"Individual"===M?O.checkedBox:O.checkBox,type:"textbox","read-only":!0}),a.a.createElement(h.Typography,{className:O.textSize9,style:{letterSpacing:"-0.23px"}},a.a.createElement(h.Box,{style:{display:"flex"}},a.a.createElement(h.Typography,{className:O.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",a.a.createElement("br",null),"\xa0\xa0\xa0\xa0\xa0 viewing/listening to a recorded program )")))))),a.a.createElement(h.Box,{style:{width:"100%",padding:"14px 0"}},a.a.createElement(h.Divider,{style:{borderBottom:"3px solid black"}})),a.a.createElement(h.Box,{className:O.taj,style:{width:"100%"}},a.a.createElement(h.Row,{mainAxisAlignment:"start",crossAxisAlignment:"middle"},a.a.createElement(h.Typography,{className:O.textSize14b},"D. Level of Difficulty"),a.a.createElement(h.Typography,{className:O.textSize9},"(Check only one)")),a.a.createElement(h.Typography,{className:O.textSize11b,style:{textDecoration:"underline"}},a.a.createElement(h.Box,{style:{display:"flex"}},"The\xa0",a.a.createElement(h.Typography,{className:O.textSize11b,style:{fontStyle:"italic"}},"content"),"\xa0of the course is appropriate for:"))),a.a.createElement(h.Table,{style:{paddingBottom:"5px",margin:"0px",width:"100%"}},a.a.createElement(h.TableBody,null,a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:O.textSize11,style:{border:0,boxShadow:"none",padding:0}},a.a.createElement(h.Box,{display:"flex"},a.a.createElement("input",{className:"Both"===G?O.checkedBox:O.checkBox,type:"textbox","read-only":!0}),"\xa0",a.a.createElement(h.Typography,{style:{textDecoration:"underline"}},"BOTH"),"\xa0newly admitted and experienced attorneys ",a.a.createElement("br",null)),"\xa0\xa0\xa0\xa0(transitional/nontransitional), or",a.a.createElement(h.Box,{display:"flex"},a.a.createElement("input",{className:"NonTransitional"===G?O.checkedBox:O.checkBox,type:"textbox","read-only":!0}),"\xa0",a.a.createElement(h.Typography,{style:{textDecoration:"underline"}},"ONLY"),"\xa0experienced attorneys (nontransitional), or"),a.a.createElement(h.Box,{display:"flex"},a.a.createElement("input",{className:"Transitional"===G?O.checkedBox:O.checkBox,type:"textbox","read-only":!0}),"\xa0",a.a.createElement(h.Typography,{style:{textDecoration:"underline"}},"ONLY"),"\xa0newly admitted attorneys (transitional)"))))),a.a.createElement("br",null),a.a.createElement("br",null),a.a.createElement("br",null),a.a.createElement("br",null),a.a.createElement(h.Box,{className:O.taj,style:{width:"100%"}},a.a.createElement(h.Typography,{className:O.textSize9,style:{letterSpacing:"-0.15px"}},"New York State CLE Board \u2022 www.nycourts.gov/attorneys/cle \u2022 Revised 01/18"))),a.a.createElement(h.TableCell,{style:{border:0,boxShadow:"none",maxWidth:420,paddingTop:0,verticalAlign:"top"}},a.a.createElement(h.Box,{className:O.taj,style:{width:"100%"}},a.a.createElement(h.Typography,{className:O.textSize14b},"E. Credit for Attendance"),a.a.createElement(h.Typography,{className:O.textSize9,style:{letterSpacing:"0.15px"}},"Award credit in accordance with \xa78(A)(4)(a) of the Regulations.",a.a.createElement("br",null),"Enter number of credits earned in each category:")),a.a.createElement(h.Box,{className:O.taj,style:{width:"100%"}},a.a.createElement(h.Typography,{className:O.textSize11},a.a.createElement(h.Box,{style:{display:"flex"}},a.a.createElement(h.Typography,{style:{textDecoration:"underline"}},"For Newly Admitted and/or Experienced Attorneys"),":"))),a.a.createElement(h.Table,{style:{paddingTop:"5px",border:0}},a.a.createElement(h.TableBody,null,a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:O.textFont,style:{textAlign:"left",fontSize:"10pt",padding:"2px 0px",border:0,boxShadow:"none",width:"50px"}},a.a.createElement(h.Typography,{className:O.box,style:{textAlign:"center",verticalAlign:"center",height:"20px",width:"40px"}},Q)),a.a.createElement(h.TableCell,{className:O.textSize11,style:{padding:"2px 0px",border:0,boxShadow:"none"}},"Ethics and Professionalism")),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:O.textFont,style:{textAlign:"left",fontSize:"10pt",padding:0,border:0,boxShadow:"none",width:"50px"}},a.a.createElement(h.Typography,{className:O.box,style:{textAlign:"center",verticalAlign:"center",height:"20px",width:"40px"}},te)),a.a.createElement(h.TableCell,{className:O.textSize11,style:{padding:0,border:0,boxShadow:"none"}},"Skills")),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:O.textFont,style:{textAlign:"left",fontSize:"10pt",padding:0,border:0,boxShadow:"none",width:"50px"}},a.a.createElement(h.Typography,{className:O.box,style:{textAlign:"center",verticalAlign:"center",height:"20px",width:"40px"}},X)),a.a.createElement(h.TableCell,{className:O.textSize11,style:{padding:0,border:0,boxShadow:"none"}},"Law Practice Management")),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:O.textFont,style:{textAlign:"left",fontSize:"10pt",padding:0,border:0,boxShadow:"none",width:"50px"}},a.a.createElement(h.Typography,{className:O.box,style:{textAlign:"center",verticalAlign:"center",height:"20px",width:"40px"}},ee)),a.a.createElement(h.TableCell,{className:O.textSize11,style:{padding:0,border:0,boxShadow:"none"}},"Areas of Professional Practice")))),a.a.createElement(h.Box,{style:{width:"100%",paddingBottom:"2px"}},a.a.createElement(h.Typography,{className:O.textSize11},a.a.createElement(h.Box,{style:{display:"flex"}},a.a.createElement(h.Typography,{style:{textDecoration:"underline"}},"For Experienced Attorneys Only"),":"))),a.a.createElement(h.Table,{style:{paddingTop:"5px"}},a.a.createElement(h.TableBody,null,a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:O.textFont,style:{textAlign:"left",fontSize:"10pt",padding:0,border:0,boxShadow:"none",width:"50px"}},a.a.createElement(h.Typography,{className:O.box,style:{textAlign:"center",verticalAlign:"center",height:"20px",width:"40px"}},Z)),a.a.createElement(h.TableCell,{className:O.textSize8,style:{padding:0,border:0,boxShadow:"none"}},"Diversity, Inclusion and Elimination of Bias")))),a.a.createElement(h.Box,{className:O.taj,style:{width:"100%",paddingBottom:"2px"}},a.a.createElement(h.Typography,{className:O.textFont,style:{fontSize:"8.5pt",letterSpacing:"0.015em"}},"In accordance with \xa710(B)(2) of the Regulations, for multiple breakout sessions,",a.a.createElement("br",null),"provider should attach a sheet indicating the sessions attended by the attorney.")),a.a.createElement(h.Box,{style:{width:"100%",padding:"14px 0"}},a.a.createElement(h.Divider,{style:{borderBottom:"3px solid black"}})),a.a.createElement(h.Box,{className:O.taj,style:{width:"100%",paddingBottom:"2px"}},a.a.createElement(h.Typography,{className:O.textSize14},a.a.createElement("b",null,"F. Credit for Faculty Participation"))),a.a.createElement(h.Box,{className:O.taj,style:{width:"100%",paddingBottom:"2px"}},a.a.createElement(h.Typography,{className:O.textSize8,style:{fontSize:"8.5pt",letterSpacing:"0.15px"}},"Award credit in accordance with \xa73(D) of the Regulations. Select participation ",a.a.createElement("br",null)," type and enter number of credits earned in each category:")),a.a.createElement(h.Box,{className:O.taj,style:{width:"100%",paddingBottom:"2px"}},a.a.createElement(h.Typography,{className:O.textSize11},a.a.createElement(h.Box,{style:{display:"flex"}},a.a.createElement(h.Typography,{style:{textDecoration:"underline"}},"For Experienced Attorneys Only"),":"))),a.a.createElement(h.Table,{style:{paddingTop:"5px",border:0}},a.a.createElement(h.TableBody,null,a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{border:0,boxShadow:"none",padding:0}},a.a.createElement("input",{className:ie?O.checkedBox:O.checkBox,type:"textbox","read-only":!0})),a.a.createElement(h.TableCell,{className:O.textSize11,style:{padding:0,border:0,boxShadow:"none"}},"Speaker"),a.a.createElement(h.TableCell,{style:{border:0,boxShadow:"none",padding:0}},a.a.createElement("input",{className:ae?O.checkedBox:O.checkBox,type:"textbox","read-only":!0})),a.a.createElement(h.TableCell,{className:O.textSize11,style:{padding:0,border:0,boxShadow:"none"}},"Panel member")),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{border:0,boxShadow:"none",padding:0}},a.a.createElement("input",{className:re?O.checkedBox:O.checkBox,type:"textbox","read-only":!0})),a.a.createElement(h.TableCell,{className:O.textSize11,style:{padding:0,border:0,boxShadow:"none"}},"Moderator"),a.a.createElement(h.TableCell,{style:{border:0,boxShadow:"none",padding:0}},a.a.createElement("input",{className:ne?O.checkedBox:O.checkBox,type:"textbox","read-only":!0})),a.a.createElement(h.TableCell,{className:O.textSize11,style:{padding:0,border:0,boxShadow:"none"}},"Law Competition Faculty")))),a.a.createElement(h.Table,{style:{paddingTop:"5px",border:0}},a.a.createElement(h.TableBody,null,a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:O.textFont,style:{textAlign:"left",fontSize:"10pt",padding:"5px 0 0 0",border:0,boxShadow:"none"}},a.a.createElement(h.Typography,{className:O.box,style:{textAlign:"center",verticalAlign:"center",height:"20px",width:"40px"}},V)),a.a.createElement(h.TableCell,{className:O.textSize11,style:{padding:"5px 0 0 0",border:0,boxShadow:"none"}},"Ethics and Professionalism")),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:O.textFont,style:{textAlign:"left",fontSize:"10pt",padding:0,border:0,boxShadow:"none"}},a.a.createElement(h.Typography,{className:O.box,style:{textAlign:"center",verticalAlign:"center",height:"20px",width:"40px"}},K)),a.a.createElement(h.TableCell,{className:O.textSize11,style:{padding:0,border:0,boxShadow:"none"}},"Skills")),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:O.textFont,style:{textAlign:"left",fontSize:"10pt",padding:0,border:0,boxShadow:"none"}},a.a.createElement(h.Typography,{className:O.box,style:{textAlign:"center",verticalAlign:"center",height:"20px",width:"40px"}},Y)),a.a.createElement(h.TableCell,{className:O.textSize11,style:{padding:0,border:0,boxShadow:"none"}},"Law Practice Management")),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:O.textFont,style:{textAlign:"left",fontSize:"10pt",padding:0,border:0,boxShadow:"none"}},a.a.createElement(h.Typography,{className:O.box,style:{textAlign:"center",verticalAlign:"center",height:"20px",width:"40px"}},$)),a.a.createElement(h.TableCell,{className:O.textSize11,style:{padding:0,border:0,boxShadow:"none"}},"Areas of Professional Practice")),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:O.textFont,style:{textAlign:"left",fontSize:"10pt",padding:"0 0 5px 0",border:0,boxShadow:"none"}},a.a.createElement(h.Typography,{className:O.box,style:{textAlign:"center",verticalAlign:"center",height:"20px",width:"40px"}},_)),a.a.createElement(h.TableCell,{className:O.textSize11,style:{padding:"0 0 5px 0",border:0,boxShadow:"none"}},"Diversity, Inclusion and Elimination of Bias")))),a.a.createElement(h.Box,{style:{width:"100%",padding:"14px 0"}},a.a.createElement(h.Divider,{style:{borderBottom:"3px solid black"}})),a.a.createElement(h.Box,{className:O.taj,style:{width:"100%"}},a.a.createElement(h.Typography,{className:O.textSize14b},"G. CLE Provider Information")),a.a.createElement(h.Table,{style:{width:"100%"}},a.a.createElement(h.TableBody,null,a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{border:0,boxShadow:"none",padding:0}},a.a.createElement(h.Typography,{className:O.boxTal,style:{textAlign:"left",minHeight:"40px",width:"405px",overflowWrap:"anywhere",whiteSpace:"pre-wrap"}},(null===g||void 0===g?void 0:g.includeFirmName)?L:""))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{border:0,boxShadow:"none",padding:0}},a.a.createElement(h.Typography,{className:O.textSize10b},"Provider Organization"))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{border:0,boxShadow:"none",padding:0}},a.a.createElement(h.Typography,{className:O.boxTal,style:{textAlign:"left",minHeight:"40px",width:"405px",overflowWrap:"anywhere",whiteSpace:"pre-wrap"}},(null===g||void 0===g?void 0:g.includeFirmName)&&!Object(x.isEmpty)(null===g||void 0===g?void 0:g.locationValue)?null===g||void 0===g?void 0:g.locationValue:""))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:O.textSize11,style:{padding:0,border:0,boxShadow:"none"}},a.a.createElement(h.Typography,{className:O.textSize10b},"Address"))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{border:0,boxShadow:"none",padding:0}},a.a.createElement(h.Typography,{className:O.boxTal,style:{textAlign:"left",minHeight:"40px",width:"405px",overflowWrap:"anywhere",whiteSpace:"pre-wrap"}},(null===g||void 0===g?void 0:g.includeFirmName)&&!Object(x.isEmpty)(null===g||void 0===g?void 0:g.phoneNumber)?null===g||void 0===g?void 0:g.phoneNumber:""))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:O.textSize11,style:{padding:0,border:0,boxShadow:"none"}},a.a.createElement(h.Typography,{className:O.textSize10b},"Telephone"))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{border:0,boxShadow:"none",padding:0}},a.a.createElement(h.Typography,{className:O.box,style:{textAlign:"left",minHeight:"40px",width:"405px",overflowWrap:"anywhere",whiteSpace:"pre-wrap"}},(null===g||void 0===g?void 0:g.includeValidatorSignatureLine)?null===g||void 0===g?void 0:g.validatorName:""))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:O.textSize11,style:{padding:0,border:0,boxShadow:"none"}},a.a.createElement(h.Typography,{className:O.textSize10b},"Provider Agent Name"))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{border:0,boxShadow:"none",padding:0}},a.a.createElement(h.Typography,{className:O.box,style:{textAlign:"left",height:"40px",width:"405px"}},(null===g||void 0===g?void 0:g.includeValidatorSignatureLine)&&!Object(x.isEmpty)(null===g||void 0===g?void 0:g.signatureUrl)?a.a.createElement("img",{alt:"signature_file",src:null===g||void 0===g?void 0:g.signatureUrl,width:200,height:25,style:{imageRendering:"auto",objectFit:"scale-down"}}):""))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:O.textSize11,style:{padding:0,border:0,boxShadow:"none"}},a.a.createElement(h.Typography,{className:O.textSize10b},"Provider Agent Signature"))))),a.a.createElement(h.Box,{className:O.taj,style:{width:"100%",paddingBottom:"2px",display:"flex"}},a.a.createElement(h.Typography,{className:O.textSize11},a.a.createElement(h.Box,{style:{display:"flex"}},a.a.createElement(h.Typography,{style:{textDecoration:"underline"}},"The CLE Provider"),":")),a.a.createElement(h.Typography,{className:O.textSize9},"(Check only one)")),a.a.createElement(h.Table,{style:{width:"100%"}},a.a.createElement(h.TableBody,null,a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:O.textSize11,style:{border:0,boxShadow:"none",verticalAlign:"top",padding:0}},a.a.createElement("input",{className:1===(null===g||void 0===g?void 0:g.cleProviderValue)?O.checkedBox:O.checkBox,type:"textbox","read-only":!0}),"\xa0\xa0has been certified as an Accredited Provider by the NYS ",a.a.createElement("br",null)," CLE Board, or",a.a.createElement(h.Row,null,a.a.createElement("input",{className:2===(null===g||void 0===g?void 0:g.cleProviderValue)?O.checkedBox:O.checkBox,type:"textbox","read-only":!0}),"\xa0\xa0has had this individual course"),a.a.createElement(h.Row,{mainAxisAlignment:"space-between"},a.a.createElement(h.Column,null,"accredited by the NYS CLE Board as:"),a.a.createElement(h.Column,null,a.a.createElement(h.Typography,{className:O.box,style:{verticalAlign:"top",height:"25px",width:"160px"}},2===(null===g||void 0===g?void 0:g.cleProviderValue)?P:""),a.a.createElement(h.Typography,{className:O.textSize9b,style:{margin:"0 auto"}},"Course Number"))))))),a.a.createElement(h.Box,{className:O.taj,style:{width:"100%"}},a.a.createElement(h.Typography,{className:O.textSize9,style:{letterSpacing:"-0.1px"}},"This certificate may NOT be used to award CLE credit to New York attorneys ",a.a.createElement("br",null),"under New York's Approved Jurisdiction policy."))))))))},Si=function(e){var t,i,r,n,o,s,l,c,d,u,p,f,m,y,g,b,S,E,I,O,C,j,w,T=e.certificate,P=e.isInstructor,A=e.licenseId,k=e.sessionDetails,D=e.userId,L=e.isBlank,J=gi(),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)?H()(null===k||void 0===k?void 0:k.startDate).format("MMMM DD, YYYY"):"",R=(null===k||void 0===k?void 0:k.endDate)?H()(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:"",M=null!==(n=null===k||void 0===k||null===(o=k.location)||void 0===o?void 0:o.name)&&void 0!==n?n:"",q=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!==(p=null===k||void 0===k?void 0:k.areQuestionsAllowed)&&void 0!==p&&p,_=null!==(f=null===k||void 0===k?void 0:k.provider)&&void 0!==f?f:"",Y="";Y=Object(x.isEmpty)(q)&&Object(x.isEmpty)(z)?"".concat(M):"".concat(M," ").concat((null===T||void 0===T?void 0:T.includeCity)||(null===T||void 0===T?void 0:T.includeState)?"(".concat((null===T||void 0===T?void 0:T.includeCity)?q:"").concat((null===T||void 0===T?void 0:T.includeState)&&!Object(x.isEmpty)(z)?(null===T||void 0===T?void 0:T.includeCity)&&!Object(x.isEmpty)(q)?", ".concat(z):z:"",")"):"");var $=L?new v.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}))),K=L?new v.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}))),Q=(w=P?$:K).nyLawProperties,Z=null!==(m=Q&&(null===Q||void 0===Q?void 0:Q.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===fe})))||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===fe})))||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":Q&&(null===Q||void 0===Q?void 0:Q.difficultyLevel),ie=L?oi.Group.includes(W)?"GroupSetting":"Individual":Q&&(null===Q||void 0===Q?void 0:Q.participationMethod),re="".concat(w.firstName," ").concat((null===T||void 0===T?void 0:T.includeMiddleName)?"".concat(null!==(j=w.middleName)&&void 0!==j?j:""):""," ").concat(w.lastName),ae=w.completionDate?H()(w.completionDate).format("MMMM DD, YYYY"):"",ne=(null===k||void 0===k?void 0:k.isIndividualSessionDateAllowed)?ae: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),pe=(0).toFixed(1),ve=!1,me=!1,ye=!1,ge=!1,be=function(e,t){var i,r,a,n;return null!==(i=(null!==(r=e[0]instanceof v.ie?null===(a=e.find((function(e){return e.creditId===t})))||void 0===a?void 0:a.value:null===(n=e.find((function(e){return e.creditId===t})))||void 0===n?void 0:n.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===fe})),Ce=(null===Oe||void 0===Oe?void 0:Oe.licenseStatus)===v.Dd.Pending,xe=(null===Oe||void 0===Oe?void 0:Oe.licenseStatus)===v.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===fe&&14===e.propertyId}));if(ie=void 0!==we?1===we.valueInt?"GroupSetting":"Individual":ie,!Ce&&!xe&&!je){var Te,Pe,Ae,Ne=(L?null===Oe||void 0===Oe?void 0:Oe.sessionLicenseCredits:null===(Te=$.userLicenseCreditValues)||void 0===Te?void 0:Te.filter((function(e){return e.licenseId===fe})))||[];oe=be(Ne,1),se=be(Ne,3),le=be(Ne,4),ce=be(Ne,5);var ke=(null===(Pe=$.nyLawProperties)||void 0===Pe?void 0:Pe.facultyParticipation)&&(null===(Ae=$.nyLawProperties)||void 0===Ae?void 0:Ae.facultyParticipation);ve=Se(ke,"Speaker"),me=Se(ke,"Moderator"),ye=Se(ke,"PanelMember"),ge=Se(ke,"LawCompetitionFaculty")}}if(void 0!==K){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===fe})),Fe=(null===Je||void 0===Je?void 0:Je.licenseStatus)===v.Dd.Pending,Be=(null===Je||void 0===Je?void 0:Je.licenseStatus)===v.Dd.Denied,Re=Je&&Je.expirationDate&&null!==Je.expirationDate&&Object(N.d)(Je.expirationDate)<=Object(N.d)(K.completionDate),Ue=null===(Le=K.userLicensePropertyValues)||void 0===Le?void 0:Le.find((function(e){return e.licenseId===fe&&14===e.propertyId}));if(ie=void 0!==Ue?1===Ue.valueInt?"GroupSetting":"Individual":ie,!Fe&&!Be&&!Re){var Ge,Me=(L?null===Je||void 0===Je?void 0:Je.sessionLicenseCredits:null===(Ge=K.userLicenseCreditValues)||void 0===Ge?void 0:Ge.filter((function(e){return e.licenseId===fe})))||[];de=P?"0.0":be(Me,1),ue=P?"0.0":be(Me,3),he=P?"0.0":be(Me,4),pe=P?"0.0":be(Me,5)}}return a.a.createElement(h.Box,{maxWidth:920,margin:"0 auto",className:J.divDetails},a.a.createElement(h.Box,{style:{width:"100%",alignItems:"center"}},a.a.createElement(h.Row,{mainAxisAlignment:"start"},a.a.createElement(h.Column,{crossAxisAlignment:"left"},a.a.createElement(h.Typography,{style:{fontSize:"18pt",fontFamily:"Impact",wordSpacing:"0.5pt"}},"NEW YORK CLE CERTIFICATE OF ATTENDANCE"),a.a.createElement(h.Typography,{style:{fontSize:"10pt",fontFamily:"Impact",wordSpacing:"0.5pt"}},"MAY BE USED ONLY FOR PROGRAMS ACCREDITED BY THE NYS CLE BOARD. ",a.a.createElement("br",null),"ALL INFORMATION MUST BE ENTERED BY THE CLE PROVIDER.")),a.a.createElement(h.Column,{crossAxisAlignment:"right",flex:1},a.a.createElement(h.Typography,{style:{fontSize:"7pt",fontFamily:"Arial"},align:"right"},"Revised 01/16"),a.a.createElement(h.Typography,{style:{fontSize:"7pt",fontFamily:"Arial"}},"New York State CLE Board"),a.a.createElement(h.Typography,{style:{fontSize:"7pt",fontFamily:"Arial"}},"www.nycourts.gov/attorneys/cle"))),a.a.createElement(h.Row,{mainAxisAlignment:"start"},a.a.createElement(h.Column,{mainAxisAlignment:"space-between"},a.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. ",a.a.createElement("br",null),"By issuing this certificate, the CLE provider verifies that the attorney named below completed this program. ",a.a.createElement("br",null),a.a.createElement("b",null,a.a.createElement("i",null,"Attorneys must retain their certificates of attendance for at least four (4) years from the date of the program.")))))),a.a.createElement(h.Box,{style:{width:"100%",alignItems:"center"}},a.a.createElement(h.Box,{style:{width:"100%",padding:"5px 0px 5px 0px"}},a.a.createElement(h.Divider,{style:{borderBottom:"3px solid black"}})),a.a.createElement(h.Row,{mainAxisAlignment:"start",style:{padding:"0 0 4px 0"}},a.a.createElement(h.Column,{crossAxisAlignment:"left"},a.a.createElement(h.Box,{className:J.taj,style:{width:"100%"}},a.a.createElement(h.Table,null,a.a.createElement(h.TableBody,null,a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:J.styleNoWrap,style:{paddingLeft:"0px",paddingTop:"2px",paddingBottom:"4px"}},a.a.createElement(h.Box,{className:J.infoContainer},a.a.createElement(h.Typography,{className:J.nameLabel},"NAME OF ATTORNEY:"),a.a.createElement(h.Typography,{className:J.nameDescription},a.a.createElement(h.Box,{className:J.infoContainer},re))))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:J.styleNoWrap,style:{paddingLeft:"0px",paddingTop:"2px",paddingBottom:"4px"}},a.a.createElement(h.Box,{className:J.infoContainer},a.a.createElement(h.Typography,{className:J.titleLabel},"TITLE OF PROGRAM:"),a.a.createElement(h.Typography,{className:J.titleDescription},a.a.createElement(h.Box,{className:J.infoContainer},F))))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:J.styleNoWrap,style:{paddingLeft:"0px",paddingTop:"2px",paddingBottom:"4px"}},a.a.createElement(h.Box,{className:J.infoContainer},a.a.createElement(h.Typography,{className:J.dateLabel},"DATE(S) OF ATTENDANCE:",a.a.createElement("span",{style:{fontStyle:"italic",fontSize:"7pt",fontFamily:"Arial"}},"\xa0(For self-study programs, indicate date attorney completed program.)")),a.a.createElement(h.Typography,{className:J.dateDescription},a.a.createElement(h.Box,{className:J.infoContainer},ne))))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:J.styleNoWrap,style:{paddingLeft:"0px",paddingTop:"2px",paddingBottom:"4px"}},a.a.createElement(h.Box,{className:J.infoContainer},a.a.createElement(h.Typography,{className:J.locationLabel},"LOCATION"," ",a.a.createElement("span",{style:{fontStyle:"italic",fontSize:"8pt",fontFamily:"Arial"}},"(City/State)"),":",a.a.createElement("span",{style:{fontStyle:"italic",fontSize:"7pt",fontFamily:"Arial"}},'\xa0(For self-study programs, check "Not Applicable.")')),a.a.createElement(h.Typography,{className:J.locationDescription},a.a.createElement(h.Box,{className:J.infoContainer},Y)),a.a.createElement(h.Box,{className:J.textSize8,style:{padding:"4px 0 0 10px",border:0,boxShadow:"none"}},a.a.createElement("input",{className:Object(x.isEmpty)(Y)?J.checkedBox:J.checkBox,type:"textbox","read-only":!0}),"\xa0Not Applicable")))))))))),a.a.createElement(h.Box,{style:{width:"100%",alignItems:"center"}},a.a.createElement(h.Box,{style:{width:"100%",padding:0}},a.a.createElement(h.Divider,{style:{borderBottom:"3px solid black"}})),a.a.createElement(h.Row,{mainAxisAlignment:"start",style:{padding:"0 0 4px 0"}},a.a.createElement(h.Column,{crossAxisAlignment:"left"},a.a.createElement(h.Box,{className:J.taj,style:{width:"100%"}},a.a.createElement(h.Row,{mainAxisAlignment:"start",crossAxisAlignment:"middle"},a.a.createElement(h.Typography,{className:J.textSize14b},"FORMAT OF PROGRAM:"),a.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.)")),a.a.createElement(h.Table,null,a.a.createElement(h.TableBody,null,a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:J.textSize11b,style:{padding:0,border:0,boxShadow:"none"}},a.a.createElement(h.Row,{mainAxisAlignment:"start",crossAxisAlignment:"middle"},a.a.createElement("input",{className:"Format1"===Z||ni.Format1.includes(W)?J.checkedBoxv2:J.checkBoxv2,type:"textbox","read-only":!0}),"\xa01 TRADITIONAL LIVE CLASSROOM FORMAT")),a.a.createElement(h.TableCell,{className:J.textSize11b,style:{padding:"0 0 0 204px",border:0,boxShadow:"none"}},a.a.createElement(h.Row,{mainAxisAlignment:"start",crossAxisAlignment:"middle"},a.a.createElement("input",{className:"Format2"===Z||ni.Format2.includes(W)?J.checkedBoxv2:J.checkBoxv2,type:"textbox","read-only":!0}),"\xa02 FULLY INTERACTIVE VIDEOCONFERENCE"))))))))),a.a.createElement(h.Box,{style:{width:"100%",alignItems:"center"}},a.a.createElement(h.Box,{style:{width:"100%",padding:0}},a.a.createElement(h.Divider,{style:{borderBottom:"2px solid black"}})),a.a.createElement(h.Row,{mainAxisAlignment:"start",style:{padding:"0 0 4px 0"}},a.a.createElement(h.Column,{crossAxisAlignment:"left"},a.a.createElement(h.Box,{className:J.taj,style:{width:"100%"}},a.a.createElement(h.Row,{mainAxisAlignment:"start",crossAxisAlignment:"middle"},a.a.createElement(h.Typography,{className:J.textSize14b},"LIVE SIMULTANEOUS TRANSMISSION:"),a.a.createElement(h.Typography,{className:J.textSize8},"\xa0(webconference, teleconference, webcast, videoconference, satellite broadcast, etc.)")),a.a.createElement(h.Table,null,a.a.createElement(h.TableBody,null,a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:J.textSize10b,style:{padding:0,border:0,boxShadow:"none"}},a.a.createElement(h.Row,{mainAxisAlignment:"start",crossAxisAlignment:"middle"},a.a.createElement("input",{className:"Format3"===Z||ni.Format3.includes(W)&&V?J.checkedBoxv2:J.checkBoxv2,type:"textbox","read-only":!0}),"\xa03 QUESTIONS ALLOWED DURING PROGRAM (SYNCHRONOUS INTERACTIVITY)")),a.a.createElement(h.TableCell,{className:J.textSize10b,style:{padding:"0 0 0 30px",border:0,boxShadow:"none"}},a.a.createElement(h.Row,{mainAxisAlignment:"start",crossAxisAlignment:"middle"},a.a.createElement("input",{className:"Format4"===Z||ni.Format3.includes(W)&&!V?J.checkedBoxv2:J.checkBoxv2,type:"textbox","read-only":!0}),"\xa04 QUESTIONS NOT ALLOWED DURING PROGRAM"))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:J.textSize11b,style:{padding:0,border:0,boxShadow:"none"}},a.a.createElement("input",{className:"Format5"===Z||ni.Format5.includes(W)?J.checkedBoxv2:J.checkBoxv2,type:"textbox","read-only":!0}),"\xa05 ON-DEMAND/RECORDED ",a.a.createElement("span",{className:J.textSize75},"(audio/video)")),a.a.createElement(h.TableCell,{className:J.textSize11b,style:{padding:"0 0 0 30px",border:0,boxShadow:"none"}},a.a.createElement("input",{className:"Format6"!==Z&&(ni.Format1.includes(W)||ni.Format2.includes(W)||ni.Format3.includes(W)||ni.Format5.includes(W))?J.checkBoxv2:J.checkedBoxv2,type:"textbox","read-only":!0}),"\xa06 OTHER")))))))),a.a.createElement(h.Box,{style:{width:"100%",alignItems:"center"}},a.a.createElement(h.Box,{style:{width:"100%",padding:0}},a.a.createElement(h.Divider,{style:{borderBottom:"2px solid black"}})),a.a.createElement(h.Row,{mainAxisAlignment:"start",style:{padding:"0 0 4px 0"}},a.a.createElement(h.Column,{crossAxisAlignment:"left"},a.a.createElement(h.Box,{className:J.taj,style:{width:"100%"}},a.a.createElement(h.Row,{mainAxisAlignment:"start",crossAxisAlignment:"middle"},a.a.createElement(h.Typography,{className:J.textSize14b},"Newly admitted attorney format restrictions"),a.a.createElement(h.Typography,{className:J.textSize9},"\xa0(except as provided in \xa72(A) and \xa72(F) of the Regulations):")),a.a.createElement(h.Row,{mainAxisAlignment:"start",crossAxisAlignment:"middle"},a.a.createElement(h.Typography,{className:J.textSize10b},"Formats 1 & 2"),a.a.createElement(h.Typography,{className:J.textSize9},"\xa0--acceptable for credit in any category \xa0|\xa0"),a.a.createElement(h.Typography,{className:J.textSize10b},"Format 3"),a.a.createElement(h.Typography,{className:J.textSize9},"\xa0--not for Skills credit \xa0|\xa0"),a.a.createElement(h.Typography,{className:J.textSize10b},"Formats 4 & 5"),a.a.createElement(h.Typography,{className:J.textSize9},"\xa0--not for Skills or Ethics and Professionalism credit")))))),a.a.createElement(h.Box,{style:{width:"100%",alignItems:"center"}},a.a.createElement(h.Box,{style:{width:"100%",padding:0}},a.a.createElement(h.Divider,{style:{borderBottom:"3px solid black"}})),a.a.createElement(h.Row,{mainAxisAlignment:"start",style:{padding:"0 0 4px 0"}},a.a.createElement(h.Column,{crossAxisAlignment:"left"},a.a.createElement(h.Box,{className:J.taj,style:{width:"100%"}},a.a.createElement(h.Row,{mainAxisAlignment:"start",crossAxisAlignment:"middle"},a.a.createElement(h.Typography,{className:J.textSize14b},"ATTORNEY'S METHOD OF PARTICIPATION:"),a.a.createElement(h.Typography,{className:J.textSize9,style:{fontStyle:"italic"}},"\xa0(check only one)"))),a.a.createElement(h.Table,null,a.a.createElement(h.TableBody,null,a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:J.textSize11,style:{verticalAlign:"top",textAlign:"left",padding:"5px 0 0 0",border:0,boxShadow:"none"}},a.a.createElement("input",{className:"GroupSetting"===ie?J.checkedBoxv2:J.checkBoxv2,type:"textbox","read-only":!0}),"\xa0GROUP SETTING"),a.a.createElement(h.TableCell,{style:{border:0,boxShadow:"none",verticalAlign:"top",textAlign:"left",padding:"1px 32px 0 32px"}},a.a.createElement(h.Typography,{className:J.textSize12,style:{fontStyle:"italic"}},"or")),a.a.createElement(h.TableCell,{style:{border:0,boxShadow:"none",verticalAlign:"top",textAlign:"left",padding:"5px 0 0 0"}},a.a.createElement(h.Row,{mainAxisAlignment:"start",crossAxisAlignment:"top"},a.a.createElement("input",{className:"Individual"===ie?J.checkedBoxv2:J.checkBoxv2,type:"textbox","read-only":!0}),a.a.createElement(h.Typography,{className:J.textSize9,style:{letterSpacing:"-0.23px"}},a.a.createElement(h.Box,{style:{display:"flex"}},a.a.createElement(h.Typography,{className:J.textSize11},"\xa0INDIVIDUAL/SELF-STUDY"),a.a.createElement("i",null,"\xa0(including an attorney individually dialing in or logging in to a webconference,",a.a.createElement("br",null),"teleconference or webcast, or individually viewing/listening to a recorded program)"))))))))))),a.a.createElement(h.Box,{style:{width:"100%",alignItems:"center"}},a.a.createElement(h.Box,{style:{width:"100%",padding:0}},a.a.createElement(h.Divider,{style:{borderBottom:"3px solid black"}})),a.a.createElement(h.Row,{mainAxisAlignment:"start",style:{padding:"0 0 4px 0"}},a.a.createElement(h.Column,{crossAxisAlignment:"left"},a.a.createElement(h.Box,{className:J.taj,style:{width:"100%"}},a.a.createElement(h.Row,{mainAxisAlignment:"start",crossAxisAlignment:"middle"},a.a.createElement(h.Typography,{className:J.textSize14b},"LEVEL OF DIFFICULTY"),a.a.createElement(h.Typography,{className:J.textSize11},a.a.createElement(h.Box,{style:{display:"flex"}},"- the\xa0",a.a.createElement(h.Typography,{className:J.textSize10b,style:{fontStyle:"italic"}},"content"),"\xa0of the course is appropriate for:")),a.a.createElement(h.Typography,{className:J.textSize9,style:{fontStyle:"italic"}},"\xa0(check only one)"))),a.a.createElement(h.Table,{style:{paddingBottom:"5px",margin:"0px",width:"100%"}},a.a.createElement(h.TableBody,null,a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:J.textSize11,style:{border:0,boxShadow:"none",padding:0}},a.a.createElement(h.Box,{display:"flex"},a.a.createElement("input",{className:"Both"===te?J.checkedBoxv2:J.checkBoxv2,type:"textbox","read-only":!0}),"\xa0",a.a.createElement(h.Typography,{style:{fontStyle:"italic"}},a.a.createElement("b",null,"BOTH")),"\xa0",a.a.createElement("b",null,"newly admitted and experienced attorneys")," \xa0(transitional/nontransitional), or"),a.a.createElement(h.Box,{display:"flex"},a.a.createElement("input",{className:"NonTransitional"===te?J.checkedBoxv2:J.checkBoxv2,type:"textbox","read-only":!0}),"\xa0",a.a.createElement("b",null,"experienced attorneys"),a.a.createElement(h.Typography,{style:{fontStyle:"italic"}},"\xa0",a.a.createElement("b",null,"ONLY")),"\xa0(nontransitional), or"),a.a.createElement(h.Box,{display:"flex"},a.a.createElement("input",{className:"Transitional"===te?J.checkedBoxv2:J.checkBoxv2,type:"textbox","read-only":!0}),"\xa0",a.a.createElement("b",null,"newly admitted attorneys"),a.a.createElement(h.Typography,{style:{fontStyle:"italic"}},"\xa0",a.a.createElement("b",null,"ONLY")),"\xa0(transitional)")))))))),a.a.createElement(h.Box,{style:{width:"100%",alignItems:"center"}},a.a.createElement(h.Row,{mainAxisAlignment:"start",style:{padding:0}},a.a.createElement(h.Column,{crossAxisAlignment:"left"},a.a.createElement(h.Box,{style:{alignItems:"center",border:"3px solid black",padding:0}},a.a.createElement(h.Table,{style:{alignItems:"center",margin:"0 auto"}},a.a.createElement(h.TableBody,null,a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{border:0,boxShadow:"none",padding:"6px",verticalAlign:"top"}},a.a.createElement(h.Box,{className:J.taj,style:{width:"100%"}},a.a.createElement(h.Typography,{className:J.textSize14b},"CREDIT for ATTENDANCE"),a.a.createElement(h.Typography,{className:J.textSize9b},a.a.createElement("i",null,"Credit is awarded in accordance with \xa78(A)(4)(a) of the Regulations."),a.a.createElement("br",null),a.a.createElement("br",null),a.a.createElement("i",null,"Enter number of credits earned in each category:"))),a.a.createElement(h.Table,{style:{paddingTop:"5px",border:0}},a.a.createElement(h.TableBody,null,a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:J.textFont,style:{textAlign:"left",fontSize:"10pt",padding:"2px 0px",border:0,boxShadow:"none",width:"50px"}},a.a.createElement(h.Typography,{className:J.box,style:{textAlign:"center",verticalAlign:"center",height:"20px",width:"40px"}},de)),a.a.createElement(h.TableCell,{className:J.textSize11,style:{padding:"2px 0px",border:0,boxShadow:"none"}},"Ethics and Professionalism")),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:J.textFont,style:{textAlign:"left",fontSize:"10pt",padding:0,border:0,boxShadow:"none",width:"50px"}},a.a.createElement(h.Typography,{className:J.box,style:{textAlign:"center",verticalAlign:"center",height:"20px",width:"40px"}},pe)),a.a.createElement(h.TableCell,{className:J.textSize11,style:{padding:0,border:0,boxShadow:"none"}},"Skills")),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:J.textFont,style:{textAlign:"left",fontSize:"10pt",padding:0,border:0,boxShadow:"none",width:"50px"}},a.a.createElement(h.Typography,{className:J.box,style:{textAlign:"center",verticalAlign:"center",height:"20px",width:"40px"}},ue)),a.a.createElement(h.TableCell,{className:J.textSize11,style:{padding:0,border:0,boxShadow:"none"}},"Law Practice Management")),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:J.textFont,style:{textAlign:"left",fontSize:"10pt",padding:0,border:0,boxShadow:"none",width:"50px"}},a.a.createElement(h.Typography,{className:J.box,style:{textAlign:"center",verticalAlign:"center",height:"20px",width:"40px"}},he)),a.a.createElement(h.TableCell,{className:J.textSize11,style:{padding:0,border:0,boxShadow:"none"}},"Areas of Professional Practice")))),a.a.createElement(h.Box,{className:J.taj,style:{width:"100%"}},a.a.createElement(h.Typography,{className:J.textSize85b},a.a.createElement("br",null),a.a.createElement("i",null,"In accordance with \xa710(B)(2) of the Regulations, for multiple breakout sessions, provider",a.a.createElement("br",null)," should attach a sheet indicating the sessions attended by the attorney."))))))))),a.a.createElement(h.Column,{crossAxisAlignment:"left",flex:1},a.a.createElement(h.Box,{style:{alignItems:"center",border:"3px solid black",padding:"0 0 4px 0",marginLeft:"8px"}},a.a.createElement(h.Table,{style:{alignItems:"center",margin:"0 auto"}},a.a.createElement(h.TableBody,null,a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{border:0,boxShadow:"none",padding:"6px",verticalAlign:"top"}},a.a.createElement(h.Box,{className:J.taj,style:{width:"100%",paddingBottom:"2px"}},a.a.createElement(h.Typography,{className:J.textSize14},a.a.createElement("b",null,"CREDIT for FACULTY PARTICIPATION"))),a.a.createElement(h.Box,{className:J.taj,style:{width:"100%",paddingBottom:"2px"}},a.a.createElement(h.Typography,{className:J.textSize9},"(Experienced attorneys only)")),a.a.createElement(h.Box,{className:J.taj,style:{width:"100%",paddingBottom:"2px"}},a.a.createElement(h.Typography,{className:J.textSize11},a.a.createElement(h.Box,{style:{display:"flex"}},a.a.createElement(h.Typography,{className:J.textSize9b},a.a.createElement("i",null,"Award credit in accordance with \xa73(D) of the Regulations."))))),a.a.createElement(h.Table,{style:{paddingTop:"5px",border:0}},a.a.createElement(h.TableBody,null,a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{border:0,boxShadow:"none",padding:0}},a.a.createElement("input",{className:ve?J.checkedBox:J.checkBox,type:"textbox","read-only":!0})),a.a.createElement(h.TableCell,{className:J.textSize11,style:{padding:0,border:0,boxShadow:"none"}},"Speaker"),a.a.createElement(h.TableCell,{style:{border:0,boxShadow:"none",padding:0}},a.a.createElement("input",{className:ye?J.checkedBox:J.checkBox,type:"textbox","read-only":!0})),a.a.createElement(h.TableCell,{className:J.textSize11,style:{padding:0,border:0,boxShadow:"none"}},"Panel member")),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{border:0,boxShadow:"none",padding:0}},a.a.createElement("input",{className:me?J.checkedBox:J.checkBox,type:"textbox","read-only":!0})),a.a.createElement(h.TableCell,{className:J.textSize11,style:{padding:0,border:0,boxShadow:"none"}},"Moderator"),a.a.createElement(h.TableCell,{style:{border:0,boxShadow:"none",padding:0}},a.a.createElement("input",{className:ge?J.checkedBox:J.checkBox,type:"textbox","read-only":!0})),a.a.createElement(h.TableCell,{className:J.textSize11,style:{padding:0,border:0,boxShadow:"none"}},"Law Competition Faculty")))),a.a.createElement(h.Box,{className:J.taj,style:{width:"100%"}},a.a.createElement(h.Typography,{className:J.textSize9b},"Enter number of credits earned in each category:")),a.a.createElement(h.Table,{style:{paddingTop:"5px",border:0}},a.a.createElement(h.TableBody,null,a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:J.textFont,style:{textAlign:"left",fontSize:"10pt",padding:"5px 0 0 0",border:0,boxShadow:"none"}},a.a.createElement(h.Typography,{className:J.box,style:{textAlign:"center",verticalAlign:"center",height:"20px",width:"40px"}},L&&!P?0:oe)),a.a.createElement(h.TableCell,{className:J.textSize11,style:{padding:"5px 0 0 0",border:0,boxShadow:"none"}},"Ethics and Professionalism")),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:J.textFont,style:{textAlign:"left",fontSize:"10pt",padding:0,border:0,boxShadow:"none"}},a.a.createElement(h.Typography,{className:J.box,style:{textAlign:"center",verticalAlign:"center",height:"20px",width:"40px"}},L&&!P?0:ce)),a.a.createElement(h.TableCell,{className:J.textSize11,style:{padding:0,border:0,boxShadow:"none"}},"Skills")),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:J.textFont,style:{textAlign:"left",fontSize:"10pt",padding:0,border:0,boxShadow:"none"}},a.a.createElement(h.Typography,{className:J.box,style:{textAlign:"center",verticalAlign:"center",height:"20px",width:"40px"}},L&&!P?0:le)),a.a.createElement(h.TableCell,{className:J.textSize11,style:{padding:0,border:0,boxShadow:"none"}},"Areas of Professional Practice")),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:J.textFont,style:{textAlign:"left",fontSize:"10pt",padding:0,border:0,boxShadow:"none"}},a.a.createElement(h.Typography,{className:J.box,style:{textAlign:"center",verticalAlign:"center",height:"20px",width:"40px"}},L&&!P?0:se)),a.a.createElement(h.TableCell,{className:J.textSize11,style:{padding:0,border:0,boxShadow:"none"}},"Law Practice Management")))))))))))),a.a.createElement(h.Box,{style:{width:"100%",alignItems:"center"}},a.a.createElement(h.Row,{mainAxisAlignment:"start"},a.a.createElement(h.Box,{className:J.taj,style:{width:"100%"}},a.a.createElement(h.Typography,{className:J.textSize17,style:{color:"#484848"}},"CLE PROVIDER INFORMATION")))),a.a.createElement(h.Box,{style:{width:"100%",alignItems:"center",border:"3px solid black"}},a.a.createElement(h.Row,{mainAxisAlignment:"start",style:{padding:"8px 4px 8px"}},a.a.createElement(h.Column,{crossAxisAlignment:"left"},a.a.createElement(h.Table,{style:{alignItems:"center",margin:"0 auto"}},a.a.createElement(h.TableBody,null,a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:J.styleNoWrap,style:{padding:"2px 5px 4px"}},a.a.createElement(h.Box,{className:J.infoContainer},a.a.createElement(h.Typography,{className:J.infoLabel},"PROVIDER",a.a.createElement("br",null),"ORGANIZATION:"),a.a.createElement(h.Typography,{className:J.infoDescription},a.a.createElement(h.Box,{className:J.infoContainer},_))))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:J.styleNoWrap,style:{padding:"0.5px 5px 4px"}},a.a.createElement(h.Box,{className:J.infoContainer},a.a.createElement(h.Typography,{className:J.infoLabel},"ADDRESS:"),a.a.createElement(h.Typography,{className:J.infoDescription},a.a.createElement(h.Box,{className:J.infoContainer},null===T||void 0===T?void 0:T.locationValue))))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:J.styleNoWrap,style:{padding:"0.5px 5px 4px"}},a.a.createElement(h.Box,{className:J.infoContainer},a.a.createElement(h.Typography,{className:J.infoLabel},"TELEPHONE:"),a.a.createElement(h.Typography,{className:J.infoDescriptionNoBorder},a.a.createElement(h.Box,{className:J.infoContainer},(null===T||void 0===T?void 0:T.includeFirmName)&&!Object(x.isEmpty)(null===T||void 0===T?void 0:T.phoneNumber)?null===T||void 0===T?void 0:T.phoneNumber:""))))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:J.styleNoWrap,style:{padding:"0.5px 5px 4px"}},a.a.createElement(h.Box,{className:J.infoContainer},a.a.createElement(h.Typography,{className:J.infoLabel},"PROVIDER ",a.a.createElement("br",null)," AGENT ",a.a.createElement("br",null)," SIGNATURE:"),a.a.createElement(h.Typography,{className:J.infoDescription},a.a.createElement(h.Box,{className:J.infoContainer},(null===T||void 0===T?void 0:T.includeValidatorSignatureLine)&&!Object(x.isEmpty)(null===T||void 0===T?void 0:T.signatureUrl)?a.a.createElement("img",{alt:"signature_file",src:null===T||void 0===T?void 0:T.signatureUrl,width:150,height:"auto",style:{imageRendering:"auto"}}):""))))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:J.styleNoWrap,style:{padding:"0.5px 5px 4px"}},a.a.createElement(h.Box,{className:J.infoContainer},a.a.createElement(h.Typography,{className:J.infoLabel},"PRINT NAME:"),a.a.createElement(h.Typography,{className:J.infoDescriptionV2},a.a.createElement(h.Box,{className:J.infoContainer},(null===T||void 0===T?void 0:T.includeValidatorSignatureLine)?null===T||void 0===T?void 0:T.validatorName:"")))))))),a.a.createElement(h.Column,{crossAxisAlignment:"left",flex:1},a.a.createElement(h.Table,null,a.a.createElement(h.TableBody,null,a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:J.styleNoWrap,style:{padding:"2px 4px 0"}},a.a.createElement(h.Typography,{className:J.textSize11b},"THE CLE PROVIDER:"))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:J.styleNoWrap,style:{padding:"0 4px 1px"}},a.a.createElement(h.Typography,{className:J.ti},"(check only one)"))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:J.textSize11,style:{padding:"0 4px 1.5px",border:0,boxShadow:"none"}},a.a.createElement("input",{className:1===(null===T||void 0===T?void 0:T.cleProviderValue)?J.checkedBoxv2:J.checkBoxv2,type:"textbox","read-only":!0}),"\xa0has been certified as an ",a.a.createElement("b",null,"Accredited")," ",a.a.createElement("br",null),a.a.createElement("b",null,"Provider")," by the NYS CLE Board,")),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{padding:"0 4px 1.5px"}},a.a.createElement(h.Typography,{className:J.textSize12c},a.a.createElement("i",null,"or")))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{padding:"0 4px 1.5px",border:0,boxShadow:"none"}},a.a.createElement("input",{className:2===(null===T||void 0===T?void 0:T.cleProviderValue)?J.checkedBoxv2:J.checkBoxv2,type:"textbox","read-only":!0}),"\xa0has had this ",a.a.createElement("b",null,"individual course")," ",a.a.createElement("br",null),"accredited by the NYS CLE Board as")),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:J.styleNoWrap,style:{paddingTop:"1px",paddingBottom:"1px"}},a.a.createElement(h.Box,{className:J.infoContainer},a.a.createElement(h.Typography,{className:J.courseNumLabel},"Course #"),a.a.createElement(h.Typography,{className:J.courseNumDescription},2===(null===T||void 0===T?void 0:T.cleProviderValue)?G:"")))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{padding:"14.5px 4px 1.5px"}},a.a.createElement(h.Typography,{className:J.textSize11},"This certificate may"," ",a.a.createElement("b",null,a.a.createElement("i",null,"NOT"))," ","be used to award ",a.a.createElement("br",null),"CLE credit to New York attorneys under ",a.a.createElement("br",null),"New York's Approved Jurisdiction policy")))))))))},Ei=function(e){var t,i,r,n,o,s,l,c,d,u=e.certificate,p=e.isInstructor,f=e.licenseId,m=e.sessionDetails,y=e.userId,g=gi(),b=(null===m||void 0===m?void 0:m.title)!==(null===m||void 0===m?void 0:m.courseTitle)?"".concat(null===m||void 0===m?void 0:m.courseTitle," (").concat(null===m||void 0===m?void 0:m.title,")"):null===m||void 0===m?void 0:m.courseTitle,S=(null===m||void 0===m?void 0:m.startDate)?H()(null===m||void 0===m?void 0:m.startDate).format("MMMM DD, YYYY"):"",E=(null===m||void 0===m?void 0:m.endDate)?H()(null===m||void 0===m?void 0:m.endDate).format("MMMM DD, YYYY"):"",I=E&&E!==S?"".concat(S," - ").concat(E):S,O=null!==(t=null===m||void 0===m||null===(i=m.approvalCodes)||void 0===i||null===(r=i.find((function(e){return e.licenseId===f})))||void 0===r?void 0:r.propertyValue)&&void 0!==t?t:"",C=null!==(n=null===m||void 0===m?void 0:m.courseFormat)&&void 0!==n?n:"",j=null!==(o=null===m||void 0===m?void 0:m.provider)&&void 0!==o?o:"",w=(null===m||void 0===m?void 0:m.sessionInstructors)&&(null===m||void 0===m?void 0:m.sessionInstructors.find((function(e){return e.userId===y}))),T=(null===m||void 0===m?void 0:m.sessionParticipants)&&(null===m||void 0===m?void 0:m.sessionParticipants.find((function(e){return e.userId===y}))),P=(d=p?w:T).nyLawProperties,A=null!==(s=P&&(null===P||void 0===P?void 0:P.programFormat))&&void 0!==s?s:"",k=null!==(l=P&&(null===P||void 0===P?void 0:P.difficultyLevel))&&void 0!==l?l:"",D=null!==(c=P&&(null===P||void 0===P?void 0:P.participationMethod))&&void 0!==c?c:"",L="".concat(d.firstName," ").concat((null===u||void 0===u?void 0:u.includeMiddleName)?"".concat(d.middleName):""," ").concat(d.lastName),J=d.completionDate?H()(d.completionDate).format("MMMM DD, YYYY"):"",F=(null===m||void 0===m?void 0:m.isIndividualSessionDateAllowed)?J:I,B=(0).toFixed(1),R=(0).toFixed(1),U=(0).toFixed(1),G=(0).toFixed(1),M=(0).toFixed(1),q=(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),K=(0).toFixed(1),Q=(0).toFixed(1),Z=!1,X=!1,ee=!1,te=!1,ie=function(e,t){var i,r,a;return null!==(i=null===e||void 0===e||null===(r=e.find((function(e){return e.creditId===t})))||void 0===r||null===(a=r.value)||void 0===a?void 0:a.toString())&&void 0!==i?i:(0).toFixed(1)},re=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!==w){var ae,ne,oe=null===m||void 0===m||null===(ae=m.sessionLicenses)||void 0===ae?void 0:ae.find((function(e){return e.licenseId===fe})),se=(null===oe||void 0===oe?void 0:oe.licenseStatus)===v.Dd.Pending,le=(null===oe||void 0===oe?void 0:oe.licenseStatus)===v.Dd.Denied,ce=oe&&oe.expirationDate&&null!==oe.expirationDate&&Object(N.d)(oe.expirationDate)<=Object(N.d)(w.completionDate),de=null===(ne=w.userLicensePropertyValues)||void 0===ne?void 0:ne.find((function(e){return e.licenseId===fe&&14===e.propertyId}));if(D=void 0!==de?1===de.valueInt?"GroupSetting":"Individual":D,!se&&!le&&!ce){var ue,he,pe,ve=null===(ue=w.userLicenseCreditValues)||void 0===ue?void 0:ue.filter((function(e){return e.licenseId===fe}));B=ie(ve,1),R=ie(ve,2),U=ie(ve,3),G=ie(ve,4),M=ie(ve,5),q=ie(ve,6),z=ie(ve,7);var me=(null===(he=w.nyLawProperties)||void 0===he?void 0:he.facultyParticipation)&&(null===(pe=w.nyLawProperties)||void 0===pe?void 0:pe.facultyParticipation);Z=re(me,"Speaker"),X=re(me,"Moderator"),ee=re(me,"PanelMember"),te=re(me,"LawCompetitionFaculty")}}if(void 0!==T){var ye,ge,be=null===m||void 0===m||null===(ye=m.sessionLicenses)||void 0===ye?void 0:ye.find((function(e){return e.licenseId===fe})),Se=(null===be||void 0===be?void 0:be.licenseStatus)===v.Dd.Pending,Ee=(null===be||void 0===be?void 0:be.licenseStatus)===v.Dd.Denied,Ie=be&&be.expirationDate&&null!==be.expirationDate&&Object(N.d)(be.expirationDate)<=Object(N.d)(T.completionDate),Oe=null===(ge=T.userLicensePropertyValues)||void 0===ge?void 0:ge.find((function(e){return e.licenseId===fe&&14===e.propertyId}));if(D=void 0!==Oe?1===Oe.valueInt?"GroupSetting":"Individual":D,!Se&&!Ee&&!Ie){var Ce,xe=null===(Ce=T.userLicenseCreditValues)||void 0===Ce?void 0:Ce.filter((function(e){return e.licenseId===fe}));W=ie(xe,1),V=ie(xe,2),_=ie(xe,3),Y=ie(xe,4),$=ie(xe,5),K=ie(xe,6),Q=ie(xe,7)}}return a.a.createElement(h.Box,{maxWidth:900,margin:"0 auto",className:g.divDetails},a.a.createElement(h.Box,{style:{width:"100%",alignItems:"center"}},a.a.createElement(h.Row,{mainAxisAlignment:"center"},a.a.createElement(h.Column,{mainAxisAlignment:"middle",minWidth:100},a.a.createElement("img",{alt:"NYlogo",style:{width:"85px",height:"85px"},src:"/images/logos/NYseal2023.GIF"})),a.a.createElement(h.Column,{mainAxisAlignment:"space-between"},a.a.createElement(h.Typography,{style:{fontSize:"34pt",fontFamily:"Impact"}},"NEW YORK CLE CERTIFICATE OF ATTENDANCE"),a.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)")))),a.a.createElement(h.Box,{style:{alignItems:"center",margin:"24px 16px 0 16px"}},a.a.createElement(h.Column,{mainAxisAlignment:"middle",crossAxisAlignment:"stretch"},a.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."),a.a.createElement(h.Typography,{style:{fontFamily:"Arial",fontSize:"14px",wordSpacing:"1pt",letterSpacing:"0.05em"}},"All information must be entered by the CLE provider."),a.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."))),a.a.createElement(h.Box,{style:{width:"100%",alignItems:"center"}},a.a.createElement(h.Table,{style:{alignItems:"center",margin:"0 auto"}},a.a.createElement(h.TableBody,null,a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{maxWidth:420,verticalAlign:"top"}},a.a.createElement(h.Table,{style:{paddingBottom:"5px",margin:"0px"},width:"100%"},a.a.createElement(h.TableBody,null,a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:g.taj,style:{color:"white",wordSpacing:"0.5pt",backgroundColor:"black",width:"100%",paddingBottom:"3px",paddingTop:"5px",paddingLeft:"7px"}},a.a.createElement(h.Typography,{className:g.textSize14b},"A. Attorney & Program Information"))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{display:"flex",padding:"4px 0"}},a.a.createElement(h.Typography,{className:g.textSize11b},"Attorney Name:"),a.a.createElement(h.Typography,{className:g.boxTalBorderBot,style:{height:"20px",width:"292px",overflowWrap:"anywhere",whiteSpace:"pre-wrap",backgroundColor:"#eceeee"}},L))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{display:"flex",padding:"4px 0"}},a.a.createElement(h.Typography,{className:g.textSize11b},"Program Title:"),a.a.createElement(h.Typography,{className:g.boxTalBorderBot,style:{minHeight:"75px",width:"302px",overflowWrap:"anywhere",whiteSpace:"pre-wrap",backgroundColor:"#eceeee",verticalAlign:"middle"}},a.a.createElement(h.Typography,{id:"NY08Text3"},b)))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{display:"flex",padding:"4px 0"}},a.a.createElement(h.Typography,{className:g.textSize11b},"Attendance Date(s):"),a.a.createElement(h.Typography,{className:g.boxTalBorderBot,style:{height:"20px",width:"260px",overflowWrap:"anywhere",whiteSpace:"pre-wrap",backgroundColor:"#eceeee",letterSpacing:"0.025em"}},F))))),a.a.createElement(h.Table,null,a.a.createElement(h.TableBody,null,a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:g.taj,style:{color:"white",wordSpacing:"0.5pt",backgroundColor:"black",width:"100%",paddingBottom:"5px",paddingTop:"5px",paddingLeft:"7px"}},a.a.createElement(h.Typography,{className:g.textSize14b},"B. Credit for Attendance"))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:g.taj,style:{width:"100%",padding:"4px 0 2px 0"}},a.a.createElement(h.Typography,{className:g.textSize11},"Enter the number of credits earned in each category:"))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:g.taj,style:{width:"100%",padding:"4px 0 2px 0"}},a.a.createElement(h.Typography,{className:g.textSize11b},"For Newly Admitted and/or Experienced Attorneys:"))),a.a.createElement(h.TableRow,{style:{display:"flex"}},a.a.createElement(h.TableCell,{className:g.textFont,style:{textAlign:"left",fontSize:"10pt",padding:"4px 0px 2px 2px"}},a.a.createElement(h.Typography,{className:g.boxBorderBot},W)),a.a.createElement(h.TableCell,{className:g.textSize11,style:{padding:"4px 0px 2px 16px"}},"Ethics & Professionalism")),a.a.createElement(h.TableRow,{style:{display:"flex"}},a.a.createElement(h.TableCell,{className:g.textFont,style:{textAlign:"left",fontSize:"10pt",padding:"4px 0 2px 2px"}},a.a.createElement(h.Typography,{className:g.boxBorderBot},$)),a.a.createElement(h.TableCell,{className:g.textSize11,style:{padding:"4px 0px 2px 16px"}},"Skills")),a.a.createElement(h.TableRow,{style:{display:"flex"}},a.a.createElement(h.TableCell,{className:g.textFont,style:{textAlign:"left",fontSize:"10pt",padding:"4px 0 2px 2px"}},a.a.createElement(h.Typography,{className:g.boxBorderBot},_)),a.a.createElement(h.TableCell,{className:g.textSize11,style:{padding:"4px 0px 2px 16px"}},"Law Practice Management")),a.a.createElement(h.TableRow,{style:{display:"flex"}},a.a.createElement(h.TableCell,{className:g.textFont,style:{textAlign:"left",fontSize:"10pt",padding:"4px 0 2px 2px"}},a.a.createElement(h.Typography,{className:g.boxBorderBot},Y)),a.a.createElement(h.TableCell,{className:g.textSize11,style:{padding:"4px 0px 2px 16px"}},"Areas of Professional Practice")),a.a.createElement(h.TableRow,{style:{display:"flex"}},a.a.createElement(h.TableCell,{className:g.textFont,style:{textAlign:"left",fontSize:"10pt",padding:"4px 0 2px 2px"}},a.a.createElement(h.Typography,{className:g.boxBorderBot},K)),a.a.createElement(h.TableCell,{className:g.textSize11,style:{padding:"4px 0px 2px 16px"}},"Cybersecurity, Privacy & Data Protection-Ethics")),a.a.createElement(h.TableRow,{style:{display:"flex"}},a.a.createElement(h.TableCell,{className:g.textFont,style:{textAlign:"left",fontSize:"10pt",padding:"4px 0 2px 2px"}},a.a.createElement(h.Typography,{className:g.boxBorderBot},Q)),a.a.createElement(h.TableCell,{className:g.textSize11,style:{padding:"4px 0px 2px 16px"}},"Cybersecurity, Privacy & Data Protection-General")),a.a.createElement(h.TableRow,{style:{display:"flex"}},a.a.createElement(h.TableCell,{className:g.taj,style:{width:"100%",paddingBottom:"2px",padding:"4px 0 2px 0"}},a.a.createElement(h.Typography,{className:g.textSize11b},"For Experienced Attorneys Only:"))),a.a.createElement(h.TableRow,{style:{display:"flex"}},a.a.createElement(h.TableCell,{className:g.textFont,style:{textAlign:"left",fontSize:"10pt",padding:"4px 0 16px 2px"}},a.a.createElement(h.Typography,{className:g.boxBorderBot},V)),a.a.createElement(h.TableCell,{className:g.textSize11,style:{padding:"4px 0px 16px 16px"}},"Diversity, Inclusion & Elimination of Bias")))),a.a.createElement(h.Table,null,a.a.createElement(h.TableBody,null,a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:g.taj,style:{color:"white",wordSpacing:"0.5pt",backgroundColor:"black",width:"100%",paddingBottom:"3px",paddingTop:"5px",paddingLeft:"7px"}},a.a.createElement(h.Typography,{className:g.textSize14b},"C. Credit for Faculty Participation"))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:g.taj,style:{width:"100%",padding:"4px 0 2px 0"}},a.a.createElement(h.Typography,{className:g.textSize11},"Enter the participation type and number of credits:"))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:g.taj,style:{width:"100%",padding:"4px 0 2px 0"}},a.a.createElement(h.Typography,{className:g.textSize11b},"For Experienced Attorneys Only:"))),a.a.createElement(h.TableRow,{style:{display:"flex"}},a.a.createElement(h.TableCell,{style:{padding:0}},a.a.createElement(h.TableRow,{style:{display:"flex"}},a.a.createElement(h.TableCell,{style:{padding:"4px 16px 4px 0px"}},a.a.createElement("input",{checked:Z,className:g.radioSize,type:"radio","read-only":!0})),a.a.createElement(h.TableCell,{style:{padding:"4px 16px 4px 0px"}},a.a.createElement(h.Typography,{className:g.textSize11},"Speaker"))),a.a.createElement(h.TableRow,{style:{display:"flex"}},a.a.createElement(h.TableCell,{style:{padding:"4px 16px 4px 0px"}},a.a.createElement("input",{checked:ee,className:g.radioSize,type:"radio","read-only":!0})),a.a.createElement(h.TableCell,{style:{padding:"4px 16px 4px 0px"}},a.a.createElement(h.Typography,{className:g.textSize11},"Panel member")))),a.a.createElement(h.TableCell,{style:{padding:0}},a.a.createElement(h.TableRow,{style:{display:"flex"}},a.a.createElement(h.TableCell,{style:{padding:"4px 16px 4px 0px"}},a.a.createElement("input",{checked:X,className:g.radioSize,type:"radio","read-only":!0})),a.a.createElement(h.TableCell,{style:{padding:"4px 16px 4px 0px"}},a.a.createElement(h.Typography,{className:g.textSize11},"Moderator"))),a.a.createElement(h.TableRow,{style:{display:"flex"}},a.a.createElement(h.TableCell,{style:{padding:"4px 16px 4px 0px"}},a.a.createElement("input",{checked:te,className:g.radioSize,type:"radio","read-only":!0})),a.a.createElement(h.TableCell,{style:{padding:"4px 16px 4px 0px"}},a.a.createElement(h.Typography,{className:g.textSize11},"Law Competition Faculty"))))),a.a.createElement(h.TableRow,{style:{display:"flex"}},a.a.createElement(h.TableCell,{className:g.textFont,style:{textAlign:"left",fontSize:"10pt",padding:"4px 0px 2px 2px"}},a.a.createElement(h.Typography,{className:g.boxBorderBot},B)),a.a.createElement(h.TableCell,{className:g.textSize11,style:{padding:"4px 0px 0px 16px"}},"Ethics & Professionalism")),a.a.createElement(h.TableRow,{style:{display:"flex"}},a.a.createElement(h.TableCell,{className:g.textFont,style:{textAlign:"left",fontSize:"10pt",padding:"4px 0px 2px 2px"}},a.a.createElement(h.Typography,{className:g.boxBorderBot},M)),a.a.createElement(h.TableRow,{className:g.textSize11,style:{padding:"4px 0px 0px 16px"}},"Skills")),a.a.createElement(h.TableRow,{style:{display:"flex"}},a.a.createElement(h.TableCell,{className:g.textFont,style:{textAlign:"left",fontSize:"10pt",padding:"4px 0px 2px 2px"}},a.a.createElement(h.Typography,{className:g.boxBorderBot},U)),a.a.createElement(h.TableCell,{className:g.textSize11,style:{padding:"4px 0px 0px 16px"}},"Law Practice Management")),a.a.createElement(h.TableRow,{style:{display:"flex"}},a.a.createElement(h.TableCell,{className:g.textFont,style:{textAlign:"left",fontSize:"10pt",padding:"4px 0px 2px 2px"}},a.a.createElement(h.Typography,{className:g.boxBorderBot},G)),a.a.createElement(h.TableCell,{className:g.textSize11,style:{padding:"4px 0px 0px 16px"}},"Areas of Professional Practice")),a.a.createElement(h.TableRow,{style:{display:"flex"}},a.a.createElement(h.TableCell,{className:g.textFont,style:{textAlign:"left",fontSize:"10pt",padding:"4px 0px 2px 2px"}},a.a.createElement(h.Typography,{className:g.boxBorderBot},q)),a.a.createElement(h.TableCell,{className:g.textSize11,style:{padding:"4px 0px 0px 16px"}},"Cybersecurity, Privacy & Data Protection-Ethics")),a.a.createElement(h.TableRow,{style:{display:"flex"}},a.a.createElement(h.TableCell,{className:g.textFont,style:{textAlign:"left",fontSize:"10pt",padding:"4px 0px 2px 2px"}},a.a.createElement(h.Typography,{className:g.boxBorderBot},z)),a.a.createElement(h.TableCell,{className:g.textSize11,style:{padding:"4px 0px 0px 16px"}},"Cybersecurity, Privacy & Data Protection-General")),a.a.createElement(h.TableRow,{style:{display:"flex"}},a.a.createElement(h.TableCell,{className:g.textFont,style:{textAlign:"left",fontSize:"10pt",padding:"4px 0px 2px 2px"}},a.a.createElement(h.Typography,{className:g.boxBorderBot},R)),a.a.createElement(h.TableCell,{className:g.textSize11,style:{padding:"4px 0px 0px 16px"}},"Diversity, Inclusion & Elimination of Bias")))),a.a.createElement("br",null),a.a.createElement("br",null),a.a.createElement(h.Box,{className:g.taj,style:{width:"100%",paddingBottom:"2px"}},a.a.createElement(h.Typography,{className:g.textSize9},"New York State CLE Board ",a.a.createElement("br",null),a.a.createElement("a",{href:"www.nycourts.gov/attorneys/cle",target:"_blank",rel:"noopener noreferrer"},"www.nycourts.gov/attorneys/cle"),"\u2022 Revised 01/2023"))),a.a.createElement(h.TableCell,{style:{maxWidth:420,verticalAlign:"top"}},a.a.createElement(h.Table,null,a.a.createElement(h.TableBody,null,a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:g.taj,style:{color:"white",wordSpacing:"0.5pt",backgroundColor:"black",width:"100%",paddingBottom:"3px",paddingTop:"5px",paddingLeft:"7px"}},a.a.createElement(h.Typography,{className:g.textSize14b},"D. Format Completed by Attorney"))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:g.textSize11,style:{padding:"4px 0"}},a.a.createElement("input",{checked:"Format1"===A,className:g.radioSize,type:"radio","read-only":!0}),"\xa01. ",a.a.createElement("b",null,"Traditional Live Classroom"))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:g.textSize11,style:{padding:"4px 0"}},a.a.createElement("input",{checked:"Format3"===A,className:g.radioSize,type:"radio","read-only":!0}),"\xa02. ",a.a.createElement("b",null,"Live Simultaneous Transmission")," - Questions Allowed",a.a.createElement("br",null),"\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0During Program (e.g., webconference, teleconference,",a.a.createElement("br",null),"\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0videoconference)")),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:g.textSize11,style:{padding:"4px 0"}},a.a.createElement("input",{checked:"Format4"===A,className:g.radioSize,type:"radio","read-only":!0}),"\xa03. ",a.a.createElement("b",null,"Live Simultaneous Transmission")," - Questions Not",a.a.createElement("br",null),"\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0Allowed During Program (e.g., webcast, broadcast)")),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:g.textSize11,style:{padding:"4px 0"}},a.a.createElement("input",{checked:"Format2"===A,className:g.radioSize,type:"radio","read-only":!0}),"\xa04. ",a.a.createElement("b",null,"Fully Interactive Videoconference"))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:g.textSize11,style:{padding:"4px 0"}},a.a.createElement("input",{checked:"Format5"===A,className:g.radioSize,type:"radio","read-only":!0}),"\xa05. ",a.a.createElement("b",null,"Prerecorded/On-Demand"))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:g.textSize11,style:{padding:"4px 0"}},a.a.createElement("input",{checked:"Format6"===A,className:g.radioSize,type:"radio","read-only":!0}),"\xa06. ",a.a.createElement("b",null,"Other")," (Describe):"," ",a.a.createElement(h.Typography,{className:g.boxTalBorderBot,style:{height:"20px",width:"259px",verticalAlign:"middle",backgroundColor:"#eceeee"}},a.a.createElement(h.Typography,{id:"NY08Text3"},"Format6"===A&&C)))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:g.taj,style:{color:"white",wordSpacing:"0.5pt",backgroundColor:"black",width:"100%",paddingBottom:"3px",paddingTop:"5px",paddingLeft:"7px"}},a.a.createElement(h.Typography,{className:g.textSize14b},"E. Attorney's Method of Participation"))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{padding:"4px 0"}},a.a.createElement(h.Typography,{className:g.textSize11,style:{display:"flex",padding:"4px 0"}},a.a.createElement("input",{checked:"Individual"===D,className:g.radioSize,type:"radio","read-only":!0}),"\xa0Individual (log-in, dial-in, self-study)"),a.a.createElement(h.Typography,{className:g.textSize11,style:{display:"flex",padding:"4px 0"}},a.a.createElement("input",{checked:"GroupSetting"===D,className:g.radioSize,type:"radio","read-only":!0}),"\xa0Group (physically seated together)"))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:g.taj,style:{color:"white",wordSpacing:"0.5pt",backgroundColor:"black",width:"100%",paddingTop:"5px",paddingLeft:"7px",paddingBottom:"2px"}},a.a.createElement(h.Typography,{className:g.textSize14b},"F. Course Content is Appropriate for:"))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{padding:"4px 0"}},a.a.createElement(h.Typography,{className:g.textSize11,style:{display:"flex",padding:"4px 0"}},a.a.createElement("input",{checked:"Both"===k,className:g.radioSize,type:"radio","read-only":!0}),"\xa0",a.a.createElement(h.Typography,{weight:"bold"},"BOTH"),"\xa0newly admitted & experienced attorneys, or"),a.a.createElement(h.Typography,{className:g.textSize11,style:{display:"flex",padding:"4px 0"}},a.a.createElement("input",{checked:"NonTransitional"===k,className:g.radioSize,type:"radio","read-only":!0}),"\xa0",a.a.createElement(h.Typography,{weight:"bold"},"ONLY"),"\xa0experienced attorneys, or"),a.a.createElement(h.Typography,{className:g.textSize11,style:{display:"flex",padding:"4px 0"}},a.a.createElement("input",{checked:"Transitional"===k,className:g.radioSize,type:"radio","read-only":!0}),"\xa0",a.a.createElement(h.Typography,{weight:"bold"},"ONLY"),"\xa0newly admitted attorneys"))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:g.taj,style:{color:"white",wordSpacing:"0.5pt",backgroundColor:"black",width:"100%",paddingBottom:"5px",paddingTop:"5px",paddingLeft:"7px"}},a.a.createElement(h.Typography,{className:g.textSize14b},"G. CLE Provider Information"))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{display:"flex",padding:"4px 0"}},a.a.createElement(h.Typography,{className:g.textSize11b},"Provider Organization:")," ",a.a.createElement(h.Typography,{className:g.boxTalBorderBot,style:{minHeight:"55px",width:"228px",overflowWrap:"anywhere",whiteSpace:"pre-wrap",backgroundColor:"#eceeee",verticalAlign:"middle"}},(null===u||void 0===u?void 0:u.includeFirmName)?j:""))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{display:"flex",padding:"4px 0"}},a.a.createElement(h.Typography,{className:g.textSize11b},"Address:")," ",a.a.createElement(h.Typography,{className:g.boxTalBorderBot,style:{minHeight:"20px",width:"329px",overflowWrap:"anywhere",whiteSpace:"pre-wrap",backgroundColor:"#eceeee",verticalAlign:"middle"}},(null===u||void 0===u?void 0:u.includeFirmName)&&!Object(x.isEmpty)(null===u||void 0===u?void 0:u.locationValue)?null===u||void 0===u?void 0:u.locationValue:""))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{display:"flex",padding:"4px 0"}},a.a.createElement(h.Typography,{className:g.textSize11b},"Telephone:")," ",a.a.createElement(h.Typography,{className:g.boxTalBorderBot,style:{height:"20px",width:"315px",overflowWrap:"anywhere",whiteSpace:"pre-wrap",backgroundColor:"#eceeee",verticalAlign:"middle"}},(null===u||void 0===u?void 0:u.includeFirmName)&&!Object(x.isEmpty)(null===u||void 0===u?void 0:u.phoneNumber)?null===u||void 0===u?void 0:u.phoneNumber:""))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{display:"flex",padding:"4px 0"}},a.a.createElement(h.Typography,{className:g.textSize11b},"Email:")," ",a.a.createElement(h.Typography,{className:g.boxTalBorderBot,style:{height:"20px",width:"350px",overflowWrap:"anywhere",whiteSpace:"pre-wrap",backgroundColor:"#eceeee",verticalAlign:"middle"}},Object(x.isEmpty)(null===u||void 0===u?void 0:u.validatorEmail)?"":null===u||void 0===u?void 0:u.validatorEmail))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{display:"flex",padding:"4px 0"}},a.a.createElement(h.Typography,{className:g.textSize11b},"Provider Agent Name:")," ",a.a.createElement(h.Typography,{className:g.boxTalBorderBot,style:{height:"20px",width:"234px",overflowWrap:"anywhere",whiteSpace:"pre-wrap",backgroundColor:"#eceeee",verticalAlign:"middle"}},(null===u||void 0===u?void 0:u.includeValidatorSignatureLine)?null===u||void 0===u?void 0:u.validatorName:""))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{display:"flex",padding:"4px 0"}},a.a.createElement(h.Typography,{className:g.textSize11b},"Provider Agent Signature:")," ",a.a.createElement(h.Typography,{className:g.boxTalBorderBot,style:{height:"20px",width:"201px",overflowWrap:"anywhere",whiteSpace:"pre-wrap",backgroundColor:"#eceeee",verticalAlign:"middle"}},(null===u||void 0===u?void 0:u.includeValidatorSignatureLine)&&!Object(x.isEmpty)(null===u||void 0===u?void 0:u.signatureUrl)?a.a.createElement("img",{alt:"signature_file",src:null===u||void 0===u?void 0:u.signatureUrl,width:200,height:25,style:{imageRendering:"auto",objectFit:"scale-down"}}):""))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:g.taj,style:{padding:"4px 0"}},a.a.createElement(h.Typography,{className:g.textSize11b},"The CLE Provider:"))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{verticalAlign:"top",padding:"4px 0"}},a.a.createElement(h.Typography,{className:g.textSize11},a.a.createElement("input",{checked:1===(null===u||void 0===u?void 0:u.cleProviderValue),className:g.radioSize,style:{verticalAlign:"middle"},type:"radio","read-only":!0}),"\xa0has been certified as an Accredited Provider by the NYS",a.a.createElement("br",null),"\xa0\xa0\xa0\xa0\xa0\xa0CLE Board, or"))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{verticalAlign:"top",padding:"4px 0"}},a.a.createElement(h.Typography,{className:g.textSize11},a.a.createElement("input",{checked:2===(null===u||void 0===u?void 0:u.cleProviderValue),className:g.radioSize,style:{verticalAlign:"middle"},type:"radio","read-only":!0}),"\xa0has had this individual course accredited by the NYS",a.a.createElement("br",null),"\xa0\xa0\xa0\xa0\xa0\xa0CLE Board as Course #:",a.a.createElement(h.Typography,{className:g.boxBorderBot,style:{verticalAlign:"top",height:"20px",width:"210px",backgroundColor:"#eceeee"}},2===(null===u||void 0===u?void 0:u.cleProviderValue)?O:"")))))),a.a.createElement(h.Box,{className:g.taj,style:{width:"100%"}},a.a.createElement(h.Typography,{className:g.textSize9},"This certificate may NOT be used to award CLE credit to New York ",a.a.createElement("br",null),"attorneys under New York's Approved Jurisdiction policy."))))))))},Ii=Object(Ht.a)((function(){return Object(Kt.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"}}})})),Oi=function(e){var t,i,r,n,o,s,l,c,d,u,p,f,m,y,g,b,S,E,I=e.certificate,O=e.isInstructor,C=e.licenseId,j=e.sessionDetails,w=e.userId,T=Ii(),P=(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)?H()(null===j||void 0===j?void 0:j.startDate).format("MMMM DD, YYYY"):"",D=(null===j||void 0===j?void 0:j.endDate)?H()(null===j||void 0===j?void 0:j.endDate).format("MMMM DD, YYYY"):"",L=D&&D!==k?"".concat(k," - ").concat(D):k,J=null!==(i=null===j||void 0===j||null===(r=j.location)||void 0===r?void 0:r.city)&&void 0!==i?i:"",F=null!==(n=null===j||void 0===j||null===(o=j.location)||void 0===o?void 0:o.state)&&void 0!==n?n:"",B="";B=Object(x.isEmpty)(J)&&Object(x.isEmpty)(F)?"":"".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)?J:"").concat((null===I||void 0===I?void 0:I.includeState)&&!Object(x.isEmpty)(F)?(null===I||void 0===I?void 0:I.includeCity)&&!Object(x.isEmpty)(J)?", ".concat(F):F:""):""),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 R="".concat(E.firstName," ").concat((null===I||void 0===I?void 0:I.includeMiddleName)?"".concat(E.middleName):""," ").concat(E.lastName),U=Object(x.uniq)(null===j||void 0===j||null===(s=j.sessionLicenses)||void 0===s||null===(l=s.filter((function(e){return e.licenseId!==C})))||void 0===l||null===(c=l.filter((function(e){var t;return!(null===(t=e.sessionLicenseProperties)||void 0===t?void 0:t.find((function(e){return"Reciprocal"===e.propertyLabel&&"true"===e.propertyValue})))})))||void 0===c?void 0:c.map((function(e){return e.licenseId}))),G=E.completionDate?H()(E.completionDate).format("MMMM DD, YYYY"):"",M=(null===j||void 0===j?void 0:j.isIndividualSessionDateAllowed)?G:L,q=Object(x.isEmpty)(U)?"":null===(d=function(){var e=0;return U.map((function(t){var i,r,a,n,o,s;e+=1;var l=null!==(i=null===j||void 0===j||null===(r=j.approvalCodes)||void 0===r||null===(a=r.find((function(e){return e.licenseId===t})))||void 0===a?void 0:a.propertyValue)&&void 0!==i?i:"",c=null!==(n=null===j||void 0===j||null===(o=j.sessionLicenses)||void 0===o||null===(s=o.find((function(e){return e.licenseId===t})))||void 0===s?void 0:s.name)&&void 0!==n?n:"";return"".concat(c).concat(Object(x.isEmpty)(l)?"":" (".concat(l,")")).concat(e!==U.length?";":"")}))}())||void 0===d?void 0:d.join(" "),z=function(e){var t,i=null===j||void 0===j||null===(t=j.sessionLicenses)||void 0===t?void 0:t.find((function(e){return e.licenseId===C})),r=(null===i||void 0===i?void 0:i.licenseStatus)===v.Dd.Pending,a=(null===i||void 0===i?void 0:i.licenseStatus)===v.Dd.Denied,n=i&&i.expirationDate&&null!==i.expirationDate&&Object(N.d)(i.expirationDate)<=Object(N.d)(E.completionDate);return r||a||n?"0":e&&e>0?Number.isInteger(e)?e.toFixed(1):parseFloat(e.toFixed(4)).toString():"0"},W=null===j||void 0===j||null===(u=j.sessionLicenses)||void 0===u||null===(p=u.find((function(e){return e.licenseId===C})))||void 0===p?void 0:p.sessionLicenseCredits,V=null===(f=E)||void 0===f||null===(m=f.userLicenseCreditValues)||void 0===m?void 0:m.filter((function(e){return e.licenseId===C})),_=function(e,t){if(C===ye||C===me){var i,r,a=Array();return 50===e&&(C===ye?a.push(rt,at,nt,ot):a.push(Xe,et)),60===e&&(C===ye?a.push(st,lt,ct,dt):a.push(tt,it)),t?z(Object(x.sum)(null===W||void 0===W||null===(r=W.filter((function(e){return a.includes(e.creditId)})))||void 0===r?void 0:r.map((function(e){return e.creditValue})))):z(Object(x.sum)(null===V||void 0===V||null===(i=V.filter((function(e){return a.includes(e.creditId)})))||void 0===i?void 0:i.map((function(e){return e.value}))))}return z(0)},Y=function(e,t,i){var r,a,n=0;return C===ye||C===me?(50===e&&(n=t?C===ye?rt:Xe:C===ye?nt:0),60===e&&(n=t?C===ye?st:tt:C===ye?ct:0),z(i?null===W||void 0===W||null===(a=W.find((function(e){return e.creditId===n})))||void 0===a?void 0:a.creditValue:null===V||void 0===V||null===(r=V.find((function(e){return e.creditId===n})))||void 0===r?void 0:r.value)):z(0)},$=_(50,!0),K=_(60,!0),Q=Y(50,!0,!0),Z=Y(50,!1,!0),X=Y(60,!0,!0),ee=Y(60,!1,!0),te=_(50,!1),ie=_(60,!1),re=Y(50,!0,!1),ae=Y(50,!1,!1),ne=Y(60,!0,!1),oe=Y(60,!1,!1);return a.a.createElement(h.Box,{style:{border:"5px double #000000"},maxWidth:"855px",margin:"0 auto"},a.a.createElement(h.Box,{className:T.divDetails},a.a.createElement(h.Grid,{container:!0,spacing:"form"},(null===I||void 0===I?void 0:I.includeFirmLogo)&&!Object(x.isEmpty)(null===I||void 0===I?void 0:I.firmLogoUrl)&&a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center"},a.a.createElement(h.Box,{mt:4},a.a.createElement("img",{src:null===I||void 0===I?void 0:I.firmLogoUrl,alt:"Logo",width:"320px",height:"80px"}))),a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center"},a.a.createElement(h.Box,{mt:(null===I||void 0===I?void 0:I.includeFirmLogo)&&!Object(x.isEmpty)(null===I||void 0===I?void 0:I.firmLogoUrl)?0:4,mb:1},a.a.createElement(h.Column,{crossAxisAlignment:"center",mainAxisAlignment:"middle"},a.a.createElement(h.Typography,{variant:"h5",color:"inherit",weight:"bold"},"Uniform Certificate of ".concat(O?"Instruction":"Attendance")),a.a.createElement(h.Typography,{variant:"body1",color:"inherit"},"This certificate should be filed with the appropriate Regulatory Board.")))),a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center",stretchContent:!0},a.a.createElement(h.Box,{mb:2,ml:6,mr:6},a.a.createElement(h.Table,{style:{width:"100%"}},a.a.createElement(h.TableBody,null,a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:T.styleNoWrap,style:{padding:"2px 0",border:0}},a.a.createElement(h.Box,{className:T.infoContainer},a.a.createElement(h.Typography,{className:T.infoLabel},"Sponsor:"),a.a.createElement(h.Typography,{className:T.infoDescription},null!==(y=null===j||void 0===j?void 0:j.provider)&&void 0!==y?y:"")))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:T.styleNoWrap,style:{padding:"2px 0",border:0}},a.a.createElement(h.Box,{className:T.infoContainer},a.a.createElement(h.Typography,{className:T.infoLabel},"Program Title:"),a.a.createElement(h.Typography,{className:T.infoDescription},P)))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:T.styleNoWrap,style:{padding:"2px 0",border:0}},a.a.createElement(h.Box,{className:T.infoContainer},a.a.createElement(h.Typography,{className:T.infoLabel},"Date:"),a.a.createElement(h.Typography,{className:T.infoDescription},M)))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:T.styleNoWrap,style:{padding:"2px 0",border:0}},a.a.createElement(h.Box,{className:T.infoContainer},a.a.createElement(h.Typography,{className:T.infoLabel},"Location:"),a.a.createElement(h.Typography,{className:T.infoDescription},(null===I||void 0===I?void 0:I.includeLocation)?B:"")))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:T.styleNoWrap,style:{padding:"2px 0",border:0}},a.a.createElement(h.Box,{className:T.infoContainer},a.a.createElement(h.Typography,{className:T.infoLabel},"Format:"),a.a.createElement(h.Typography,{className:T.infoDescription},A)))))))),a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.Box,{ml:6,mr:6},a.a.createElement(h.Column,{crossAxisAlignment:"left"},a.a.createElement(h.Typography,{variant:"body1",color:"inherit",weight:"bold"},"This program was approved by the following Boards. Approval Codes are shown when indicated."),a.a.createElement(h.Table,{style:{width:"100%"}},a.a.createElement(h.TableBody,null,a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{padding:"2px 0",border:0,whiteSpace:"normal"}},a.a.createElement(h.Box,{className:T.infoContainer,style:{justifyContent:"flex-start",marginTop:Object(x.isEmpty)(U)?"17px":"0px"}},a.a.createElement(h.Box,{className:T.infoContainer,style:{alignItems:"flex-end"}},a.a.createElement(h.Typography,{className:T.data3rdField},q,a.a.createElement(h.Typography,{className:T.dataLabel},""))))))))))),a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.Box,{ml:6,mr:6,className:T.breakLine},a.a.createElement(h.Typography,{colorMode:"dark",weight:"bold"},"======================================================================================")),a.a.createElement(h.Box,{ml:6,mr:6},a.a.createElement(h.Column,{crossAxisAlignment:"left"},a.a.createElement(h.Typography,{variant:"body1",color:"inherit",weight:"bold"},"This program is eligible for a total of:")))),a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center",stretchContent:!0},a.a.createElement(h.Box,{ml:6,mr:6},a.a.createElement(h.Table,{style:{width:"100%"}},a.a.createElement(h.TableBody,null,a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{display:"flex",padding:"2px 2px",border:0}},a.a.createElement(h.Typography,{className:T.lineText},a.a.createElement(h.Typography,{className:T.creditDescription},K),"\xa0(60 minute hour) ",a.a.createElement("b",null,"Total Credits"),", including, \xa0",a.a.createElement(h.Typography,{className:T.creditDescription},X),"\xa0",a.a.createElement("b",null,"Ethics")," and"," ",a.a.createElement(h.Typography,{className:T.creditDescription},ee),"\xa0",a.a.createElement("b",null,"Substance Abuse")))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{display:"flex",padding:"2px 2px",border:0}},a.a.createElement(h.Typography,{className:T.lineText},a.a.createElement(h.Typography,{className:T.creditDescription},$),"\xa0(50 minute hour) ",a.a.createElement("b",null,"Total Credits"),", including, \xa0",a.a.createElement(h.Typography,{className:T.creditDescription},Q),"\xa0",a.a.createElement("b",null,"Ethics")," and"," ",a.a.createElement(h.Typography,{className:T.creditDescription},Z),"\xa0",a.a.createElement("b",null,"Substance Abuse")))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:T.styleNoWrap,style:{display:"flex",marginTop:"16px",padding:0,border:0}},a.a.createElement(h.Typography,{className:T.noteLabel},"NOTE:"),a.a.createElement(h.Typography,{className:T.noteDescription},"Introductory remarks, keynote addresses, business meetings, breaks, receptions, etc., are not included in the computation of credit.")))))),a.a.createElement(h.Box,{mb:1,ml:6,mr:6,className:T.breakLine},a.a.createElement(h.Typography,{colorMode:"dark",weight:"bold"},"======================================================================================"))),a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.Box,{ml:6,mr:6},a.a.createElement(h.Column,{crossAxisAlignment:"left"},a.a.createElement(h.Typography,{variant:"body1",color:"inherit",weight:"bold"},"TO BE COMPLETED BY THE ".concat(O?"INSTRUCTOR":"ATTENDEE",":")))),a.a.createElement(h.Box,{mt:2,ml:6,mr:6},a.a.createElement(h.Column,{crossAxisAlignment:"left"},a.a.createElement(h.Typography,{variant:"body1",color:"inherit"},"By signing below, I certify that I ",O?"instructed":"attended"," the program described above and am entitled to claim")))),a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center",stretchContent:!0},a.a.createElement(h.Box,{mb:6,ml:6,mr:6},a.a.createElement(h.Table,{style:{width:"100%"}},a.a.createElement(h.TableBody,null,a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{display:"flex",padding:"2px 2px",border:0}},a.a.createElement(h.Typography,{className:T.lineText},a.a.createElement(h.Typography,{className:T.creditDescription},ie),"\xa0(60 minute hour) ",a.a.createElement("b",null,"Total Credits"),", including, \xa0",a.a.createElement(h.Typography,{className:T.creditDescription},ne),"\xa0",a.a.createElement("b",null,"Ethics")," and"," ",a.a.createElement(h.Typography,{className:T.creditDescription},oe),"\xa0",a.a.createElement("b",null,"Substance Abuse")))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{display:"flex",padding:"2px 2px",border:0}},a.a.createElement(h.Typography,{className:T.lineText},a.a.createElement(h.Typography,{className:T.creditDescription},te),"\xa0(50 minute hour) ",a.a.createElement("b",null,"Total Credits"),", including, \xa0",a.a.createElement(h.Typography,{className:T.creditDescription},re),"\xa0",a.a.createElement("b",null,"Ethics")," and"," ",a.a.createElement(h.Typography,{className:T.creditDescription},ae),"\xa0",a.a.createElement("b",null,"Substance Abuse")))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{display:"flex",padding:"2px 0",justifyContent:"flex-start",marginTop:"25px",alignItems:"flex-end",border:0}},a.a.createElement(h.Typography,{className:T.data1stField},R,a.a.createElement(h.Typography,{className:T.dataLabel},O?"Instructor":"Attendee"," Name (print)")),a.a.createElement(h.Box,{className:T.data2ndField},a.a.createElement(h.Typography,{className:T.dataLabel},"License and License Number")))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{display:"flex",justifyContent:"flex-start",marginTop:(null===I||void 0===I?void 0:I.includeParticipantSignature)&&!Object(x.isEmpty)(null===(g=E)||void 0===g?void 0:g.signatureUrl)?"0px":"30px",padding:"2px 0",border:0}},a.a.createElement(h.Typography,{className:T.data1stField},(null===I||void 0===I?void 0:I.includeParticipantSignature)&&!Object(x.isEmpty)(null===(b=E)||void 0===b?void 0:b.signatureUrl)&&a.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"}}),a.a.createElement(h.Typography,{className:T.dataLabel},O?"Instructor":"Attendee"," Signature")),a.a.createElement(h.Box,{className:T.data2ndField},a.a.createElement(h.Typography,{className:T.dataLabel},"Date")))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{display:"flex",padding:"2px 0",justifyContent:"flex-start",marginTop:"30px",border:0}},a.a.createElement(h.Box,{className:T.data3rdField},a.a.createElement(h.Typography,{className:T.dataLabel},"State where credits are to be registered")))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:T.styleNoWrap,style:{display:"flex",marginTop:"16px",padding:0,border:0}},a.a.createElement(h.Typography,{className:T.noteLabel},"NOTE:"),a.a.createElement(h.Typography,{className:T.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. ",a.a.createElement("br",null),"Please confirm jurisdictional reporting requirements with the provider or state regulator."))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{display:"flex",justifyContent:"flex-end",paddingTop:"25px",border:0}},a.a.createElement(h.Box,{className:T.signatureField},a.a.createElement(h.Typography,{className:T.labelOnly,style:{fontWeight:"bolder"}},"Acknowledged by:")))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{display:"flex",justifyContent:"flex-end",alignItems:"flex-end",border:0}},a.a.createElement(h.Typography,{className:T.signatureField},(null===I||void 0===I?void 0:I.includeValidatorSignatureLine)&&!Object(x.isEmpty)(null===I||void 0===I?void 0:I.signatureUrl)&&a.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",alignItems:"flex-start"}}),a.a.createElement(h.Typography,{className:T.label,style:{fontWeight:"bolder"}},"Sponsor Representative")))))))))))},Ci=Object(z.makeStyles)((function(){return Object(z.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"},infoDescriptionV3:{fontSize:"7.5pt",minWidth:"300px",flex:1,whiteSpace:"pre-wrap",overflowWrap:"anywhere",textAlign:"left",fontFamily:"Times New Roman, Garamond, Georgia",fontWeight:"bolder"},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"},infoLabelV5:{flex:0,marginRight:"5px",fontWeight:"bolder",whiteSpace:"pre-wrap",textAlign:"right",minWidth:"122px",fontSize:"13pt",fontFamily:"Times New Roman, Garamond, Georgia",letterSpacing:"0.1pt"},infoLabel6:{flex:0,marginRight:"8px",fontWeight:"bolder",fontSize:"13pt",fontFamily:"Times New Roman, Garamond, Georgia",textAlign:"right"},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"},dataLabel2:{flex:0,marginRight:"8px",fontWeight:"bolder",minWidth:"180px",textAlign:"left",fontSize:"13pt",fontFamily:"Times New Roman, Garamond, Georgia"},dataLabel3:{flex:0,fontWeight:"bolder",minWidth:"180px",textAlign:"left",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"},dataDescription2:{fontSize:"13pt",minWidth:"300px",flex:1,whiteSpace:"pre-wrap",overflowWrap:"anywhere",textAlign:"left",fontFamily:"Times New Roman, Garamond, Georgia"},dataDescription3:{fontSize:"13pt",minWidth:"180px",textAlign:"left",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"},creditDescriptionNoBorder2:{fontSize:"13pt",minWidth:"50px",display:"inline-block",textAlign:"left",fontFamily:"Times New Roman, Garamond, Georgia",marginRight:"70px"},creditDescriptionNoBorder3:{fontSize:"13pt",width:"50px",display:"inline-block",textAlign:"left",fontFamily:"Times New Roman, Garamond, Georgia",marginRight:"70px",fontWeight:"bolder"},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"}}})})),xi=function(e){var t,i,r,n,o,s,l,c,d,u,p,f,m,y,g,b,S,E,I,O,C,j,w,T,P,A=e.certificate,k=e.isInstructor,D=e.sessionDetails,L=e.userId,J=Ci(),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)?H()(null===D||void 0===D?void 0:D.startDate).format("MMMM DD, YYYY"):"",U=(null===D||void 0===D?void 0:D.endDate)?H()(null===D||void 0===D?void 0:D.endDate).format("MMMM DD, YYYY"):"",G=U&&U!==R?"".concat(R," - ").concat(U):R,M=null!==(i=null===D||void 0===D||null===(r=D.location)||void 0===r?void 0:r.name)&&void 0!==i?i:"",q=null!==(n=null===D||void 0===D||null===(o=D.location)||void 0===o?void 0:o.city)&&void 0!==n?n:"",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)(q)&&Object(x.isEmpty)(z)?"".concat(M):"".concat(M," ").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)?q:"").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)(q)?", ".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,K="".concat($.firstName," ").concat((null===A||void 0===A?void 0:A.includeMiddleName)?"".concat($.middleName):""," ").concat($.lastName),Q="".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!==(p=null===$||void 0===$?void 0:$.email)&&void 0!==p?p:"",ee=null===$||void 0===$||null===(f=$.userLicenseCreditValues)||void 0===f?void 0:f.filter((function(e){return e.licenseId===be})),te=null===$||void 0===$||null===(m=$.userLicensePropertyValues)||void 0===m?void 0:m.filter((function(e){return e.licenseId===be})),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===be})),r=(null===i||void 0===i?void 0:i.licenseStatus)===v.Dd.Pending,a=(null===i||void 0===i?void 0:i.licenseStatus)===v.Dd.Denied,n=i&&i.expirationDate&&null!==i.expirationDate&&Object(N.d)(i.expirationDate)<=Object(N.d)($.completionDate);return r||a||n?"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===be})),r=(null===i||void 0===i?void 0:i.licenseStatus)===v.Dd.Pending,a=(null===i||void 0===i?void 0:i.licenseStatus)===v.Dd.Denied,n=i&&i.expirationDate&&null!==i.expirationDate&&Object(N.d)(i.expirationDate)<=Object(N.d)($.completionDate);return r||a||n?"":e||""},ae=null===D||void 0===D||null===(y=D.sessionLicenses)||void 0===y||null===(g=y.find((function(e){return e.licenseId===be})))||void 0===g?void 0:g.sessionLicenseCredits,ne=ie(Object(x.sum)(null===ae||void 0===ae?void 0:ae.map((function(e){return e.creditValue})))),oe=ie(null===ae||void 0===ae||null===(b=ae.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===Ve})))||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===Ye})))||void 0===O?void 0:O.valueChar),he=re(null===te||void 0===te||null===(C=te.find((function(e){return e.propertyId===$e})))||void 0===C?void 0:C.valueChar),pe=re(null===te||void 0===te||null===(j=te.find((function(e){return e.propertyId===He})))||void 0===j?void 0:j.valueChar),ve=null!==(w=null===D||void 0===D||null===(T=D.approvalCodes)||void 0===T||null===(P=T.find((function(e){return e.licenseId===be})))||void 0===P?void 0:P.propertyValue)&&void 0!==w?w:"",fe=$.completionDate?H()($.completionDate).format("MMMM DD, YYYY"):"",me=(null===D||void 0===D?void 0:D.isIndividualSessionDateAllowed)?fe:G;return a.a.createElement(h.Box,{maxWidth:"1000px",style:{width:"100%",alignItems:"center",padding:"0 0 0 10px"},className:J.divDetails},a.a.createElement(h.Table,{className:J.table,id:"tblVACertificate",style:{width:"100%",pageBreakAfter:"auto"}},a.a.createElement(h.TableBody,null,a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:J.text},a.a.createElement(h.Typography,{className:J.textSize17},"Virginia MCLE Board"),a.a.createElement(h.Typography,{className:J.textSize14,style:{fontWeight:"bolder"}},"CERTIFICATION OF ".concat(k?"TEACHING (FORM 3)":"ATTENDANCE (FORM 2)")),a.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 ",a.a.createElement("br",null)," and the MCLE Board Regulations."))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:J.text},a.a.createElement(h.Typography,{className:J.textSize14},"INSTRUCTIONS"),a.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"),a.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."),a.a.createElement(h.Typography,{className:J.textSize12},"MCLE Compliance Deadline - October 31. MCLE Reporting Deadline - December 15."),k&&a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Typography,{className:J.textSize12},"Subsequent Late Reporting Deadline - February 1")),a.a.createElement(h.Typography,{className:J.textSize12},"A $100 fee will be assessed for failure to comply with",k?" each ":" either "," deadline."))),a.a.createElement(h.TableRow,{style:{display:"flex"}},a.a.createElement(h.TableCell,{className:J.text,style:{padding:"16px 0 0 0"}},a.a.createElement(h.Box,{className:J.infoContainer},a.a.createElement(h.Typography,{className:J.infoLabel},"Member Name:"),a.a.createElement(h.Typography,{className:J.infoDescription},K))),a.a.createElement(h.TableCell,{className:J.text,style:{padding:"16px 0 0 16px"}},a.a.createElement(h.Box,{className:J.infoContainer},a.a.createElement(h.Typography,{className:J.infoLabel},"VSB Member Number:"),a.a.createElement(h.Typography,{className:J.infoDescription,style:{minWidth:"294px"}},Q)))),a.a.createElement(h.TableRow,{style:{display:"flex"}},a.a.createElement(h.TableCell,{className:J.text,style:{padding:"0 "}},a.a.createElement(h.Box,{className:J.infoContainer},a.a.createElement(h.Typography,{className:J.infoLabel},"Address:"),a.a.createElement(h.Typography,{className:J.infoDescription,style:{marginLeft:"53px"}}))),a.a.createElement(h.TableCell,{className:J.text,style:{padding:"0 0 0 15px"}},a.a.createElement(h.Box,{className:J.infoContainer},a.a.createElement(h.Typography,{className:J.infoLabel},"Daytime Phone:"),a.a.createElement(h.Typography,{className:J.infoDescription,style:{minWidth:"350px"}},Z)))),a.a.createElement(h.TableRow,{style:{display:"flex"}},a.a.createElement(h.TableCell,{className:J.text,style:{padding:0}},a.a.createElement(h.Box,{className:J.infoContainer},a.a.createElement(h.Typography,{className:J.infoLabel}),a.a.createElement(h.Typography,{className:J.infoDescription,style:{marginLeft:"123px"}}," "))),a.a.createElement(h.TableCell,{className:J.text,style:{padding:"0 0 0 15px"}},a.a.createElement(h.Box,{className:J.infoContainer},a.a.createElement(h.Typography,{className:J.infoLabel},"E-mail Address:"),a.a.createElement(h.Typography,{className:J.infoDescription,style:{minWidth:"349px"}},X)))),a.a.createElement(h.TableRow,{style:{display:"flex"}},a.a.createElement(h.TableCell,{className:J.text,style:{padding:0}},a.a.createElement(h.Box,{className:J.infoContainer},a.a.createElement(h.Typography,{className:J.infoLabel}),a.a.createElement(h.Typography,{className:J.infoDescription,style:{marginLeft:"123px"}}," ")))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:J.text,style:{padding:0}},a.a.createElement(h.Box,{className:J.infoContainer},a.a.createElement(h.Box,{style:{marginLeft:"-2px",flex:1,display:"flex"}},a.a.createElement(h.Typography,{className:J.infoLabel,style:{flex:"26%",fontWeight:"bolder",alignItems:"left"}},"City"),a.a.createElement(h.Box,{style:{flex:"0%"}},a.a.createElement(h.Box,{style:{display:"flex",alignItems:"center"}},a.a.createElement(h.Typography,{className:J.infoLabel,style:{marginRight:"8px",fontWeight:"bolder"}},"State"))),a.a.createElement(h.Box,{style:{flex:"55%"}},a.a.createElement(h.Box,{style:{display:"flex",alignItems:"center"}},a.a.createElement(h.Typography,{className:J.infoLabel,style:{marginRight:"8px",fontWeight:"bolder"}},"Zip"))))))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:J.text,style:{fontWeight:"bolder",padding:"16px 0 0 0"}},a.a.createElement(h.Box,{className:J.infoContainer},a.a.createElement(h.Typography,{className:J.dataLabel},"Course ID Number:"),a.a.createElement(h.Typography,{className:J.dataDescription},ve)))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:J.text,style:{fontWeight:"bolder",padding:0}},a.a.createElement(h.Box,{className:J.infoContainer},a.a.createElement(h.Typography,{className:J.dataLabel},"Sponsor:"),a.a.createElement(h.Typography,{className:J.dataDescription},W)))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:J.text,style:{fontWeight:"bolder",padding:0}},a.a.createElement(h.Box,{className:J.infoContainer},a.a.createElement(h.Typography,{className:J.dataLabel},"Course Program/Title:"),a.a.createElement(h.Typography,{className:J.dataDescription},F)))),k&&a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:J.text,style:{fontWeight:"bolder",padding:0}},a.a.createElement(h.Box,{className:J.infoContainer},"\xa0",a.a.createElement(h.Typography,{className:J.dataLabel},"CLE (Ethics) Credits:\xa0\xa0",a.a.createElement(h.Typography,{className:J.creditDescriptionNoBorder,style:{marginRight:"32px"}},se),a.a.createElement(h.Typography,{className:J.creditDescriptionNoBorder},"(",le,") Ethics"))))),!k&&a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:J.text,style:{fontWeight:"bolder",padding:0}},a.a.createElement(h.Box,{className:J.infoContainer},a.a.createElement(h.Typography,{className:J.dataLabel,style:{whiteSpace:"pre-wrap"}},B),a.a.createElement(h.Typography,{className:J.dataDescription},"CLE Credits (Ethics Credits): \xa0",a.a.createElement(h.Typography,{className:J.creditDescriptionNoBorder,style:{marginLeft:"8px",marginRight:"3px",minWidth:"36px"}},ne),a.a.createElement(h.Typography,{className:J.creditDescriptionNoBorder,style:{textAlign:"center",fontSize:"13pt"}},"(",oe,")"))))),a.a.createElement(h.TableRow,{style:{display:"flex"}},a.a.createElement(h.TableCell,{className:J.text,style:{fontWeight:"bolder",padding:"16px 0 0 0"}},a.a.createElement(h.Box,{className:J.infoContainer},a.a.createElement(h.Typography,{className:J.infoLabel},k?"Date(s) of Teaching:":"Date Completed:"),a.a.createElement(h.Typography,{className:J.infoDescription,style:{fontWeight:"bolder"}},me))),a.a.createElement(h.TableCell,{className:J.text,style:{padding:"16px 0 0 15px"}},a.a.createElement(h.Box,{className:J.infoContainer},a.a.createElement(h.Typography,{className:J.infoLabel},"Location",k&&"(s):"),a.a.createElement(h.Typography,{className:J.infoDescription,style:{fontWeight:"bolder",minWidth:"396px"}},(null===A||void 0===A?void 0:A.includeLocation)?V:"")))),!k&&a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:J.textB,style:{padding:"16px 0 0 0",letterSpacing:"-0.01em"}},a.a.createElement(h.Typography,{className:J.textB,style:{fontWeight:"bolder"}},"By my signature below I certify"),a.a.createElement(h.Box,{className:J.infoContainer},a.a.createElement(h.Typography,{className:J.line}),a.a.createElement(h.Typography,{className:J.lineText},"I attended a total of"," ",a.a.createElement(h.Typography,{className:J.creditDescription},se),"\xa0(hrs/mins) of ",a.a.createElement("b",null,"approved CLE"),", of which (",a.a.createElement(h.Typography,{className:J.creditDescription},le),") (hrs/mins) were in ",a.a.createElement("b",null,"approved Ethics"),". Credit")),a.a.createElement(h.Box,{className:J.infoContainer},a.a.createElement(h.Typography,{className:J.noLine}),a.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)")),a.a.createElement(h.Box,{className:J.infoContainer},a.a.createElement(h.Box,{className:J.line}),a.a.createElement(h.Typography,{className:J.lineText},"The sessions I am claiming had written instructional materials to cover the subject.")),a.a.createElement(h.Box,{className:J.infoContainer},a.a.createElement(h.Typography,{className:J.line}),a.a.createElement(h.Typography,{className:J.lineText},"I participated in this program in a setting physically suitable to the course.")),a.a.createElement(h.Box,{className:J.infoContainer},a.a.createElement(h.Typography,{className:J.line}),a.a.createElement(h.Typography,{className:J.lineText},"I was given the opportunity to participate in discussions with other attendees and/or the presenter.")),a.a.createElement(h.Box,{className:J.infoContainer},a.a.createElement(h.Typography,{className:J.line}),a.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")),a.a.createElement(h.Box,{className:J.infoContainer},a.a.createElement(h.Typography,{className:J.noLine}),a.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")),a.a.createElement(h.Box,{className:J.infoContainer},a.a.createElement(h.Typography,{className:J.noLine}),a.a.createElement(h.Typography,{className:J.lineText},"immediately prior.")),a.a.createElement(h.Box,{className:J.infoContainer},a.a.createElement(h.Typography,{className:J.line}),a.a.createElement(h.Typography,{className:J.lineText},"I understand that a materially false statement shall be subject to appropriate disciplinary action.")),a.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",a.a.createElement("br",null)," 4.0 hours from live interactive courses required.")),k&&a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{padding:"16px 0 0 0"}},a.a.createElement(h.Typography,{className:J.textB,style:{fontWeight:"bolder",textDecoration:"underline"}},a.a.createElement("i",null,"ONLY SESSIONS WITH WRITTEN INSTRUCTIONAL MATERIALS ARE APPROVABLE FOR CREDIT")),a.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"," ",a.a.createElement(h.Typography,{className:J.creditDescription},ce)," (hrs/mins) of CLE, of which (",a.a.createElement(h.Typography,{className:J.creditDescription},de),") (hrs/mins) were in Ethics."),a.a.createElement(h.Typography,{className:J.textB,style:{display:"list-item",margin:"0 0 0 40px",letterSpacing:"0.1pt"}},"In addition, I attended ",a.a.createElement("i",null,"other")," segments totaling"," ",a.a.createElement(h.Typography,{className:J.creditDescription},ue)," (hrs/mins) of CLE, of which (",a.a.createElement(h.Typography,{className:J.creditDescription},he),") (hrs/mins) were in Ethics."),a.a.createElement(h.Typography,{className:J.textB,style:{display:"list-item",margin:"0 0 0 40px",letterSpacing:"0.1pt"}},"I spent ",a.a.createElement(h.Typography,{className:J.creditDescription},pe)," hours preparing for teaching my segment of the course."),a.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",a.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",a.a.createElement("br",null)," preparation rounded to the nearest half hour. (Example: 1hr 15min = 1.5hr)"),a.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."))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:J.text,style:{fontSize:"13pt",padding:"45px 0 0 0"}},a.a.createElement(h.Box,{className:J.infoContainer,style:{justifyContent:"flex-end"}},a.a.createElement(h.Typography,{className:J.dateField},a.a.createElement(h.Typography,{className:J.label},"Date")),a.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)&&a.a.createElement("img",{alt:"signature",src:null===$||void 0===$?void 0:$.signatureUrl,width:200,height:25,style:{imageRendering:"auto",objectFit:"scale-down"}}),a.a.createElement(h.Typography,{className:J.label},"Signature"))))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:J.text},k?a.a.createElement(h.Typography,{className:J.textSize14},a.a.createElement(h.Box,{className:J.infoContainer},a.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")):a.a.createElement(h.Typography,{className:J.textSize14},"Questions? Contact the MCLE Department at (804) 775-0577"))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:J.text},a.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"),a.a.createElement(h.Typography,{className:J.textSize13},"Virginia MCLE Board"),a.a.createElement(h.Typography,{className:J.textSize11},"Virginia State Bar"),a.a.createElement(h.Typography,{className:J.textSize11},"1111 East Main Street, Suite 700"),a.a.createElement(h.Typography,{className:J.textSize11},"Richmond, VA 23219-",k?"3565":"0026"),a.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"}(mi||(mi={}));var ji,wi=function(e){var t,i,r,n,o,s,l,c,d,u,p,f,m,y,g,b,S,E,I,O,C,j,w,T,P,A,k,D,L,J,F,B,R,U,G,M,q,z=e.certificate,W=e.isInstructor,V=e.sessionDetails,_=e.userId,Y=e.isVATemplate2024,$=Ci(),K=(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,Q=null!==(t=null===V||void 0===V?void 0:V.courseFormat)&&void 0!==t?t:"",Z=(null===V||void 0===V?void 0:V.startDate)?H()(null===V||void 0===V?void 0:V.startDate).format("MMMM DD, YYYY"):"",X=(null===V||void 0===V?void 0:V.endDate)?H()(null===V||void 0===V?void 0:V.endDate).format("MMMM DD, YYYY"):"",ee=X&&X!==Z?"".concat(Z," - ").concat(X):Z,te=null!==(i=null===V||void 0===V||null===(r=V.location)||void 0===r?void 0:r.name)&&void 0!==i?i:"",ie=null!==(n=null===V||void 0===V||null===(o=V.location)||void 0===o?void 0:o.city)&&void 0!==n?n:"",re=null!==(s=null===V||void 0===V||null===(l=V.location)||void 0===l?void 0:l.state)&&void 0!==s?s:"",ae=null!==(c=null===V||void 0===V?void 0:V.provider)&&void 0!==c?c:"",ne="";ne=Object(x.isEmpty)(ie)&&Object(x.isEmpty)(re)?"".concat(te):"".concat(te," ").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)?ie:"").concat((null===z||void 0===z?void 0:z.includeState)&&!Object(x.isEmpty)(re)?(null===z||void 0===z?void 0:z.includeCity)&&!Object(x.isEmpty)(ie)?", ".concat(re):re:"",")"):""),q=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 oe="".concat(q.firstName," ").concat((null===z||void 0===z?void 0:z.includeMiddleName)?"".concat(q.middleName):""," ").concat(q.lastName),se="".concat((null===z||void 0===z?void 0:z.includeBarNumber)&&null!==(d=null===(u=q)||void 0===u?void 0:u.licenseBarNumber)&&void 0!==d?d:""),le=null!==(p=null===(f=q)||void 0===f?void 0:f.phone)&&void 0!==p?p:"",ce=null!==(m=null===(y=q)||void 0===y?void 0:y.email)&&void 0!==m?m:"",de=null===(g=q)||void 0===g||null===(b=g.userLicenseCreditValues)||void 0===b?void 0:b.filter((function(e){return e.licenseId===be})),ue=null===(S=q)||void 0===S||null===(E=S.userLicensePropertyValues)||void 0===E?void 0:E.filter((function(e){return e.licenseId===be})),he=null!==(I=null===(O=q)||void 0===O?void 0:O.vaLawDeliveryMethod)&&void 0!==I?I:"",pe=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===be})),r=(null===i||void 0===i?void 0:i.licenseStatus)===v.Dd.Pending,a=(null===i||void 0===i?void 0:i.licenseStatus)===v.Dd.Denied,n=i&&i.expirationDate&&null!==i.expirationDate&&Object(N.d)(i.expirationDate)<=Object(N.d)(q.completionDate);return r||a||n?"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===be})),r=(null===i||void 0===i?void 0:i.licenseStatus)===v.Dd.Pending,a=(null===i||void 0===i?void 0:i.licenseStatus)===v.Dd.Denied,n=i&&i.expirationDate&&null!==i.expirationDate&&Object(N.d)(i.expirationDate)<=Object(N.d)(q.completionDate);return r||a||n?"":e||""},fe=null===V||void 0===V||null===(C=V.sessionLicenses)||void 0===C||null===(j=C.find((function(e){return e.licenseId===be})))||void 0===j?void 0:j.sessionLicenseCredits,me=pe(Object(x.sum)(null===fe||void 0===fe?void 0:fe.map((function(e){return e.creditValue})))),ye=pe(null===fe||void 0===fe||null===(w=fe.find((function(e){return 1===e.creditId})))||void 0===w?void 0:w.creditValue),ge=pe(null===fe||void 0===fe||null===(T=fe.find((function(e){return 4===e.creditId})))||void 0===T?void 0:T.creditValue),Se=pe(Object(x.sum)(null===de||void 0===de?void 0:de.map((function(e){return e.value})))),Ee=pe(null===de||void 0===de||null===(P=de.find((function(e){return 1===e.creditId})))||void 0===P?void 0:P.value),Ie=pe(null===de||void 0===de||null===(A=de.find((function(e){return 4===e.creditId})))||void 0===A?void 0:A.value),Oe=ve(null===ue||void 0===ue||null===(k=ue.find((function(e){return e.propertyId===Ve})))||void 0===k?void 0:k.valueChar),Ce=ve(null===ue||void 0===ue||null===(D=ue.find((function(e){return e.propertyId===_e})))||void 0===D?void 0:D.valueChar),xe=ve(null===ue||void 0===ue||null===(L=ue.find((function(e){return e.propertyId===Ye})))||void 0===L?void 0:L.valueChar),je=ve(null===ue||void 0===ue||null===(J=ue.find((function(e){return e.propertyId===$e})))||void 0===J?void 0:J.valueChar),we=ve(null===ue||void 0===ue||null===(F=ue.find((function(e){return e.propertyId===He})))||void 0===F?void 0:F.valueChar),Te=null!==(B=null===V||void 0===V||null===(R=V.approvalCodes)||void 0===R||null===(U=R.find((function(e){return e.licenseId===be})))||void 0===U?void 0:U.propertyValue)&&void 0!==B?B:"",Pe=q.completionDate?H()(q.completionDate).format("MMMM DD, YYYY"):"",Ae=(null===V||void 0===V?void 0:V.isIndividualSessionDateAllowed)?Pe:ee;return a.a.createElement(h.Box,{maxWidth:"1000px",style:{width:"100%",alignItems:"center",padding:"0 0 0 10px",margin:"0 auto"},className:W?$.divDetails:$.divDetails2022},a.a.createElement(h.Table,{className:$.table,id:"tblVACertificate",style:{width:"100%",pageBreakAfter:"auto"}},a.a.createElement(h.TableBody,null,W?a.a.createElement(a.a.Fragment,null,a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:$.text},a.a.createElement(h.Typography,{className:$.textSize17},"Virginia MCLE Board"),a.a.createElement(h.Typography,{className:$.textSize14,style:{fontWeight:"bolder"}},"CERTIFICATION OF TEACHING (FORM 3)"),a.a.createElement(h.Typography,{className:$.textSize11},"MCLE requirement pursuant to Paragraph 17, of Section IV, Part Six, Rules of the Supreme Court of Virginia",a.a.createElement("br",null),"and the MCLE Board Regulations."))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:$.text},a.a.createElement(h.Typography,{className:$.textSize14},"INSTRUCTIONS"),a.a.createElement(h.Typography,{className:$.textSize12,style:{fontWeight:"bold"}},"Email this form to mymcle@vsb.org"),a.a.createElement(h.Typography,{className:$.textSize12},"Complete this Certification to Include Both Teaching and Attendance hours. Retain copy for two years."),a.a.createElement(h.Typography,{className:$.textSize12},"MCLE Compliance Deadline - October 31. MCLE Reporting Deadline - December 15."),a.a.createElement(h.Typography,{className:$.textSize12},"Subsequent Late Reporting Deadline - February 1"),a.a.createElement(h.Typography,{className:$.textSize12},"A $100 fee will be assessed for failure to comply with each deadline.")))):a.a.createElement(a.a.Fragment,null,a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:$.text,style:{padding:"14px 0"}},a.a.createElement(h.Typography,{className:$.textSize17},"Virginia MCLE Board"),a.a.createElement(h.Typography,{className:$.textSize13Bold},"Virginia State Bar"),a.a.createElement(h.Typography,{className:$.textSize13Bold},"1111 East Main Street, Suite 700"),a.a.createElement(h.Typography,{className:$.textSize13Bold},"Richmond, VA 23219-0026"),a.a.createElement(h.Typography,{className:$.textSize13Bold},"(804) 775-0577 \u2219 Web site: www.vsb.org"))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:$.text,style:{padding:"14px 0"}},a.a.createElement(h.Typography,{className:$.textSize14Bold},"CERTIFICATION OF ATTENDANCE (FORM 2)"),a.a.createElement(h.Typography,{className:$.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"),a.a.createElement(h.Typography,{className:$.textSize12,style:{letterSpacing:"0.01pt"}},"inspection by the public under the Freedom of Information Act. Complete all requested information and sign certification."),a.a.createElement(h.Typography,{className:$.textSize14Customize,style:{padding:0}},a.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.",a.a.createElement(h.Typography,{className:$.textSize13Customize,style:{paddingTop:"3px"}},"\xa0The Virginia certification of attendance and"))),a.a.createElement(h.Typography,{className:$.textSize13Customize},"Virginia course approval ID# has been provided to the sponsor for all Virginia approved programs."),a.a.createElement(h.Typography,{className:$.textSize14Bold},a.a.createElement(h.Box,{style:{display:"flex",padding:"0 250px"}},"Certify Your Attendance Online at",a.a.createElement(h.Typography,{className:$.textSize14CustomizeA},"\xa0www.vsb.org")))))),W?a.a.createElement(a.a.Fragment,null,a.a.createElement(h.TableRow,{style:{display:"flex"}},a.a.createElement(h.TableCell,{className:$.text,style:{padding:"16px 0 0 0"}},a.a.createElement(h.Box,{className:$.infoContainer},a.a.createElement(h.Typography,{className:$.infoLabel},"Member Name:"),a.a.createElement(h.Typography,{className:$.infoDescription},oe))),a.a.createElement(h.TableCell,{className:$.text,style:{padding:"16px 0 0 16px"}},a.a.createElement(h.Box,{className:$.infoContainer},a.a.createElement(h.Typography,{className:$.infoLabel},"VSB Member Number:"),a.a.createElement(h.Typography,{className:$.infoDescription,style:{minWidth:"294px"}},se)))),a.a.createElement(h.TableRow,{style:{display:"flex"}},a.a.createElement(h.TableCell,{className:$.text,style:{padding:"0 "}},a.a.createElement(h.Box,{className:$.infoContainer},a.a.createElement(h.Typography,{className:$.infoLabel},"Address:"),a.a.createElement(h.Typography,{className:$.infoDescription,style:{marginLeft:"53px"}}))),a.a.createElement(h.TableCell,{className:$.text,style:{padding:"0 0 0 15px"}},a.a.createElement(h.Box,{className:$.infoContainer},a.a.createElement(h.Typography,{className:$.infoLabel},"Daytime Phone:"),a.a.createElement(h.Typography,{className:$.infoDescription,style:{minWidth:"350px"}},le)))),a.a.createElement(h.TableRow,{style:{display:"flex"}},a.a.createElement(h.TableCell,{className:$.text,style:{padding:0}},a.a.createElement(h.Box,{className:$.infoContainer},a.a.createElement(h.Typography,{className:$.infoLabel}),a.a.createElement(h.Typography,{className:$.infoDescription,style:{marginLeft:"123px"}}," "))),a.a.createElement(h.TableCell,{className:$.text,style:{padding:"0 0 0 15px"}},a.a.createElement(h.Box,{className:$.infoContainer},a.a.createElement(h.Typography,{className:$.infoLabel},"E-mail Address:"),a.a.createElement(h.Typography,{className:$.infoDescription,style:{minWidth:"349px"}},ce)))),a.a.createElement(h.TableRow,{style:{display:"flex"}},a.a.createElement(h.TableCell,{className:$.text,style:{padding:0}},a.a.createElement(h.Box,{className:$.infoContainer},a.a.createElement(h.Typography,{className:$.infoLabel}),a.a.createElement(h.Typography,{className:$.infoDescription,style:{marginLeft:"123px"}}," ")))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:$.text,style:{padding:0}},a.a.createElement(h.Box,{className:$.infoContainer},a.a.createElement(h.Box,{style:{marginLeft:"-2px",flex:1,display:"flex"}},a.a.createElement(h.Typography,{className:$.infoLabel,style:{flex:"26%",fontWeight:"bolder",alignItems:"left"}},"City"),a.a.createElement(h.Box,{style:{flex:"0%"}},a.a.createElement(h.Box,{style:{display:"flex",alignItems:"center"}},a.a.createElement(h.Typography,{className:$.infoLabel,style:{marginRight:"8px",fontWeight:"bolder"}},"State"))),a.a.createElement(h.Box,{style:{flex:"55%"}},a.a.createElement(h.Box,{style:{display:"flex",alignItems:"center"}},a.a.createElement(h.Typography,{className:$.infoLabel,style:{marginRight:"8px",fontWeight:"bolder"}},"Zip")))))))):a.a.createElement(a.a.Fragment,null,a.a.createElement(h.TableRow,{style:{display:"flex"}},a.a.createElement(h.TableCell,{className:$.text,style:{padding:"16px 0 0 0"}},a.a.createElement(h.Box,{className:$.infoContainer},a.a.createElement(h.Typography,{className:$.infoLabel},"Member Name:"),a.a.createElement(h.Typography,{className:$.infoDescription},oe))),a.a.createElement(h.TableCell,{className:$.text,style:{padding:"16px 0 0 16px"}},a.a.createElement(h.Box,{className:$.infoContainer},a.a.createElement(h.Typography,{className:$.infoLabel},"VSB Member Number:"),a.a.createElement(h.Typography,{className:$.infoDescription,style:{minWidth:"294px"}},se)))),a.a.createElement(h.TableRow,{style:{display:"flex"}},a.a.createElement(h.TableCell,{className:$.text,style:{padding:"0 "}},a.a.createElement(h.Box,{className:$.infoContainer},a.a.createElement(h.Typography,{className:$.infoLabelV2},"Official Address of Record:"),a.a.createElement(h.Typography,{className:$.infoDescription,style:{marginLeft:"3px",minWidth:"220px"}})))),a.a.createElement(h.TableRow,{style:{display:"flex"}},a.a.createElement(h.TableCell,{className:$.text,style:{padding:0}},a.a.createElement(h.Box,{className:$.infoContainer},a.a.createElement(h.Typography,{className:$.infoLabel}),a.a.createElement(h.Typography,{className:$.infoDescription,style:{marginLeft:"123px"}}," "))),a.a.createElement(h.TableCell,{className:$.text,style:{padding:"0 0 0 15px"}},a.a.createElement(h.Box,{className:$.infoContainer},a.a.createElement(h.Typography,{className:$.infoLabel},"Daytime Phone:"),a.a.createElement(h.Typography,{className:$.infoDescription,style:{minWidth:"350px"}},le)))),a.a.createElement(h.TableRow,{style:{display:"flex"}},a.a.createElement(h.TableCell,{className:$.text,style:{padding:0}},a.a.createElement(h.Box,{className:$.infoContainer},a.a.createElement(h.Typography,{className:$.infoLabel}),a.a.createElement(h.Typography,{className:$.infoDescription,style:{marginLeft:"123px"}}," "))),a.a.createElement(h.TableCell,{className:$.text,style:{padding:"0 0 0 15px"}},a.a.createElement(h.Box,{className:$.infoContainer},a.a.createElement(h.Typography,{className:$.infoLabel},"E-mail Address:"),a.a.createElement(h.Typography,{className:$.infoDescription,style:{minWidth:"349px"}},ce)))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:$.text,style:{padding:0}},a.a.createElement(h.Box,{className:$.infoContainer},a.a.createElement(h.Box,{style:{marginLeft:"-2px",flex:1,display:"flex"}},a.a.createElement(h.Typography,{className:$.infoLabel,style:{flex:"26%",fontWeight:"bolder",alignItems:"left"}},"City"),a.a.createElement(h.Box,{style:{flex:"0%"}},a.a.createElement(h.Box,{style:{display:"flex",alignItems:"center"}},a.a.createElement(h.Typography,{className:$.infoLabel,style:{marginRight:"8px",fontWeight:"bolder"}},"State"))),a.a.createElement(h.Box,{style:{flex:"55%"}},a.a.createElement(h.Box,{style:{display:"flex",alignItems:"center"}},a.a.createElement(h.Typography,{className:$.infoLabel,style:{marginRight:"8px",fontWeight:"bolder"}},"Zip")))))))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:$.text,style:{fontWeight:"bolder",padding:"16px 0 0 0"}},a.a.createElement(h.Box,{className:$.infoContainer},a.a.createElement(h.Typography,{className:$.dataLabel},"Course ID Number:"),a.a.createElement(h.Typography,{className:$.dataDescription},Te)))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:$.text,style:{fontWeight:"bolder",padding:0}},a.a.createElement(h.Box,{className:$.infoContainer},a.a.createElement(h.Typography,{className:$.dataLabel},"Sponsor:"),a.a.createElement(h.Typography,{className:$.dataDescription},ae)))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:$.text,style:{fontWeight:"bolder",padding:0}},a.a.createElement(h.Box,{className:$.infoContainer},a.a.createElement(h.Typography,{className:$.dataLabel},W?"Course Program/Title:":"Course/Program Title:"),a.a.createElement(h.Typography,{className:$.dataDescription},K)))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:$.text,style:{fontWeight:"bolder",padding:0}},a.a.createElement(h.Box,{className:$.infoContainer},"\xa0",a.a.createElement(h.Typography,{className:$.dataLabel},"CLE (Ethics) Credits: \xa0",a.a.createElement(h.Typography,{className:$.creditDescriptionNoBorder,style:{marginRight:"32px"}},!W||Y?me:Se),a.a.createElement(h.Typography,{className:$.creditDescriptionNoBorder,style:{marginRight:"32px"}},"(",!W||Y?ye:Ee,") Ethics"),"\xa0",a.a.createElement(h.Typography,{className:$.creditDescriptionNoBorder},!W||Y?ge:Ie," Well-Being"))))),!W&&a.a.createElement(a.a.Fragment,null,a.a.createElement(h.TableRow,{style:{lineHeight:"15px"}},a.a.createElement(h.TableCell,{className:$.text},a.a.createElement(h.Typography,{className:$.textSize14Bold},"CERTIFICATION")))),a.a.createElement(h.TableRow,{style:{display:"flex"}},a.a.createElement(h.TableCell,{className:$.text,style:{fontWeight:"bolder",padding:"16px 0 0 0"}},a.a.createElement(h.Box,{className:$.infoContainer},a.a.createElement(h.Typography,{className:$.infoLabel},W?"Date(s) of Teaching:":"Date(s) Attended:"),a.a.createElement(h.Typography,{className:$.infoDescription,style:{fontWeight:"bolder"}},Ae))),a.a.createElement(h.TableCell,{className:$.text,style:{padding:"16px 0 0 15px"}},a.a.createElement(h.Box,{className:$.infoContainer},a.a.createElement(h.Typography,{className:$.infoLabel},"Location",W&&"(s):"),a.a.createElement(h.Typography,{className:$.infoDescription,style:{fontWeight:"bolder",minWidth:"391px"}},(null===z||void 0===z?void 0:z.includeLocation)?ne:"")))),!W&&a.a.createElement(a.a.Fragment,null,a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:$.text,style:{padding:"16px 0 0 0"}},a.a.createElement(h.Box,{className:$.infoContainer},a.a.createElement(h.Box,{className:$.infoLabelV3},"Delivery method:"),a.a.createElement(h.Box,null,a.a.createElement(h.Box,{className:$.infoContainer},a.a.createElement(h.Box,{className:$.lineV2},he===mi.LiveOrGroupVideo&&a.a.createElement(h.SystemIcon,{icon:"Check",size:"sm"})),a.a.createElement(h.Box,{className:$.lineTextV3,style:{minWidth:"160px"}},"Live or Group Video"))),a.a.createElement(h.Box,null,a.a.createElement(h.Box,{className:$.infoContainer},a.a.createElement(h.Box,{className:$.lineV2},he===mi.LiveTelephoneOrLiveWebcast&&a.a.createElement(h.SystemIcon,{icon:"Check",size:"sm"})),a.a.createElement(h.Box,{className:$.lineTextV3},"*Live Telephone or live Webcast"))),a.a.createElement(h.Box,null,a.a.createElement(h.Box,{className:$.infoContainer},a.a.createElement(h.Box,{className:$.lineV2},he===mi.VideoconferenceOrSatellite&&a.a.createElement(h.SystemIcon,{icon:"Check",size:"sm"})),a.a.createElement(h.Box,{className:$.lineTextV3},"*Videoconference or Satellite")))))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:$.text,style:{padding:"5px 0"}},a.a.createElement(h.Box,{className:$.infoContainer},a.a.createElement(h.Box,{className:$.infoLabelV3,style:{minWidth:"70px"}}),a.a.createElement(h.Box,null,a.a.createElement(h.Box,{className:$.infoContainer},a.a.createElement(h.Box,{className:$.lineV2},he===mi.InternetOnDemand&&a.a.createElement(h.SystemIcon,{icon:"Check",size:"sm"})),a.a.createElement(h.Box,{className:$.lineTextV3,style:{minWidth:"160px"}},"* Internet on-demand"))),a.a.createElement(h.Box,null,a.a.createElement(h.Box,{className:$.infoContainer},a.a.createElement(h.Box,{className:$.lineV2}),a.a.createElement(h.Box,{className:$.lineTextV5},"*CD-ROM"))),a.a.createElement(h.Box,null,a.a.createElement(h.Box,{className:$.infoContainer},a.a.createElement(h.Box,{className:$.lineV2},he===mi.VideoDVD&&a.a.createElement(h.SystemIcon,{icon:"Check",size:"sm"})),a.a.createElement(h.Box,{className:$.lineTextV5},"\u2666 Video/DVD"))),a.a.createElement(h.Box,null,a.a.createElement(h.Box,{className:$.infoContainer},a.a.createElement(h.Box,{className:$.lineV2},he===mi.AudioCD&&a.a.createElement(h.SystemIcon,{icon:"Check",size:"sm"})),a.a.createElement(h.Box,{className:$.lineTextV5},"\u2666Audio/CD"))),a.a.createElement(h.Box,null,a.a.createElement(h.Box,{className:$.infoContainer},a.a.createElement(h.Box,{className:$.lineV2},he===mi.Other&&a.a.createElement(h.SystemIcon,{icon:"Check",size:"sm"})),a.a.createElement(h.Box,null,a.a.createElement(h.Box,{className:$.infoContainer},a.a.createElement(h.Box,{className:$.infoLabelV4},"Other"),a.a.createElement(h.Box,{className:$.infoDescriptionV2,style:{minWidth:"115px"}},he===mi.Other&&Q)))))))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:$.text,style:{padding:"5px 0"}},a.a.createElement(h.Box,{className:$.infoContainer},a.a.createElement(h.Box,{className:$.infoLabelV3},"Setting:"),a.a.createElement(h.Box,null,a.a.createElement(h.Box,{className:$.infoContainer},a.a.createElement(h.Box,{className:$.line}),a.a.createElement(h.Box,{className:$.lineTextV4},"Group (with other attendees)"))),a.a.createElement(h.Box,null,a.a.createElement(h.Box,{className:$.infoContainer},a.a.createElement(h.Box,{className:$.line}),a.a.createElement(h.Box,{className:$.lineTextV4},"* Individual attendance at my location")))))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:$.text,style:{padding:"16px 0 0 0"}},a.a.createElement(h.Typography,{className:$.textSize12Bold,style:{letterSpacing:"0.01pt"}},"*Distance Learning Programs Require Attendance Form Verified and Provided by the Course Sponsor when done in an Individual Setting."),a.a.createElement(h.Typography,{className:$.textSize12Bold,style:{letterSpacing:"0.01pt"}},"\u2666Video and Audio programs require at least 2 attorneys in attendance")))),!W&&a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:$.textB,style:{padding:"16px 0 0 0",letterSpacing:"0.01pt"}},a.a.createElement(h.Typography,{className:$.textB,style:{fontWeight:"bolder"}},"By my signature below I certify"),a.a.createElement(h.Box,{className:$.infoContainer},a.a.createElement(h.Box,{className:$.line}),a.a.createElement(h.Box,{className:$.lineText},"I attended a total of"," ",a.a.createElement(h.Typography,{className:$.creditDescription},Se),"\xa0(hrs/mins) of ",a.a.createElement("b",null,"approved CLE"),", of which (",a.a.createElement(h.Typography,{className:$.creditDescription},Ee),") (hrs/mins) were in ",a.a.createElement("b",null,"approved Ethics")," and")),a.a.createElement(h.Box,{className:$.infoContainer},a.a.createElement(h.Box,{className:$.noLine}),a.a.createElement(h.Box,{className:$.lineText},a.a.createElement(h.Typography,{className:$.creditDescription},Ie),"were in ",a.a.createElement("b",null,"approved Well-Being"),".")),a.a.createElement(h.Box,{className:$.infoContainer},a.a.createElement(h.Box,{className:$.line}),a.a.createElement(h.Box,{className:$.lineText},"The sessions I am claiming had written instructional materials to cover the subject.")),a.a.createElement(h.Box,{className:$.infoContainer},a.a.createElement(h.Box,{className:$.line}),a.a.createElement(h.Box,{className:$.lineText},"I participated in this program in a setting physically suitable to the course.")),a.a.createElement(h.Box,{className:$.infoContainer},a.a.createElement(h.Box,{className:$.line}),a.a.createElement(h.Box,{className:$.lineTextV2},"I was given the opportunity to participate in discussions with other attendees and/or the presenter (in real time or via e-mail.)")),a.a.createElement(h.Box,{className:$.infoContainer},a.a.createElement(h.Box,{className:$.line}),a.a.createElement(h.Box,{className:$.lineText},"I understand I may not receive credit for any course/segment which is not materially different in substance than a")),a.a.createElement(h.Box,{className:$.infoContainer},a.a.createElement(h.Box,{className:$.noLine}),a.a.createElement(h.Box,{className:$.lineText},"course/segment for which credit has been previously given during the same completion period or the completion period")),a.a.createElement(h.Box,{className:$.infoContainer},a.a.createElement(h.Box,{className:$.noLine}),a.a.createElement(h.Box,{className:$.lineText},"immediately prior.")),a.a.createElement(h.Box,{className:$.infoContainer},a.a.createElement(h.Box,{className:$.line}),a.a.createElement(h.Box,{className:$.lineText},"I understand that a materially false statement shall be subject to appropriate disciplinary action.")),a.a.createElement("br",null),a.a.createElement("br",null),"NOTE: Credit is awarded for actual time in attendance rounded to the nearest half hour.")),W&&a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:$.textB,style:{fontSize:"13pt",padding:"16px 0 0 0"}},a.a.createElement(h.Typography,{className:$.textB,style:{fontWeight:"bolder",textDecoration:"underline"}},a.a.createElement("i",null,"ONLY SESSIONS WITH WRITTEN INSTRUCTIONAL MATERIALS ARE APPROVABLE FOR CREDIT")),a.a.createElement(h.Typography,{className:$.textB,style:{display:"list-item",margin:"0 0 0 40px",padding:"16px 0 0 0",letterSpacing:"0.1pt"}},"My teaching segment was"," ",a.a.createElement(h.Typography,{className:$.creditDescription},Oe)," (hrs/mins) of CLE, of which (",a.a.createElement(h.Typography,{className:$.creditDescription},Ce),") (hrs/mins) were in Ethics and",a.a.createElement(h.Typography,{className:$.creditDescription},Ie)," were in",a.a.createElement("br",null),"Well-Being."),a.a.createElement(h.Typography,{className:$.textB,style:{display:"list-item",margin:"0 0 0 40px",letterSpacing:"0.1pt"}},"In addition, I attended ",a.a.createElement("i",null,"other")," segments totaling"," ",a.a.createElement(h.Typography,{className:$.creditDescription},xe)," (hrs/mins) of CLE, of which (",a.a.createElement(h.Typography,{className:$.creditDescription},je),") (hrs/mins) were in Ethics and",a.a.createElement("br",null),a.a.createElement(h.Typography,{className:$.creditDescription},Ie)," were in Well-Being."),a.a.createElement(h.Typography,{className:$.textB,style:{display:"list-item",margin:"0 0 0 40px",letterSpacing:"0.1pt"}},"I spent ",a.a.createElement(h.Typography,{className:$.creditDescription},we)," hours preparing for teaching my segment of the course."),a.a.createElement(h.Typography,{className:$.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",a.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",a.a.createElement("br",null)," preparation rounded to the nearest half hour. (Example: 1hr 15min = 1.5hr)"),a.a.createElement(h.Typography,{className:$.textB,style:{display:"list-item",margin:"0 0 0 40px",letterSpacing:"0.1pt"}},"A materially false statement shall be subject to appropriate disciplinary action."))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:$.text,style:{fontSize:"13pt",padding:"45px 0 0 0"}},a.a.createElement(h.Box,{className:$.infoContainer,style:{justifyContent:"flex-end"}},a.a.createElement(h.Typography,{className:$.dateField},a.a.createElement(h.Typography,{className:$.label},"Date")),a.a.createElement(h.Typography,{className:$.signatureField},(null===z||void 0===z?void 0:z.includeParticipantSignature)&&!Object(x.isEmpty)(null===(G=q)||void 0===G?void 0:G.signatureUrl)&&a.a.createElement("img",{alt:"signature",src:null===(M=q)||void 0===M?void 0:M.signatureUrl,width:200,height:25,style:{imageRendering:"auto",objectFit:"scale-down"}}),a.a.createElement(h.Typography,{className:$.label},"Signature"))))),W?a.a.createElement(a.a.Fragment,null,a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:$.text},a.a.createElement(h.Typography,{className:$.textSize14},a.a.createElement(h.Box,{style:{display:"flex",padding:"0 65px"}},a.a.createElement(h.Typography,{className:$.textSize14,style:{fontWeight:"bolder"}},"Questions?"),"\xa0Contact the MCLE Department at (804) 775-0577 or E-mail questions to mcle@vsb.org")))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:$.text},a.a.createElement(h.Typography,{className:$.textSize11},"If not e-mailed, this form may be mailed to"),a.a.createElement(h.Typography,{className:$.textSize13},"Virginia MCLE Board"),a.a.createElement(h.Typography,{className:$.textSize11},"Virginia State Bar"),a.a.createElement(h.Typography,{className:$.textSize11},"1111 East Main Street, Suite 700"),a.a.createElement(h.Typography,{className:$.textSize11},"Richmond, VA 23219-3565"),a.a.createElement(h.Typography,{className:$.textSize11},"Web site: www.vsb.org")))):a.a.createElement(a.a.Fragment,null,a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:$.text},a.a.createElement(h.Typography,{className:$.textSize13Bold},"MCLE Completion Deadline \u2013 October 31"),a.a.createElement(h.Typography,{className:$.textSize13Bold},"Deadline to Certify MCLE Approved Hours \u2013 December 15"),a.a.createElement(h.Typography,{className:$.textSize13Bold},"Subsequent Late Reporting Deadline \u2013 February 1"),a.a.createElement(h.Typography,{className:$.textSize12},"A $100 fee will be charged for failure to comply with each deadline")))))))};!function(e){e.LiveOrGroupVideo="LiveOrGroupVideo",e.Other="Other",e.AudioCD="AudioCD",e.VideoDVD="VideoDVD",e.InternetOnDemand="InternetOnDemand",e.VideoconferenceOrSatellite="VideoconferenceOrSatellite",e.LiveTelephoneOrLiveWebcast="LiveTelephoneOrLiveWebcast"}(ji||(ji={}));var Ti=function(e){var t,i,r,n,o,s,l,c,d,u,p,f,m,y,g,b,S,E,I,O,C,j,w,T,P,A,k,D,L,J,F,B=e.certificate,R=e.isInstructor,U=e.sessionDetails,G=e.userId,M=Ci(),q=(null===U||void 0===U?void 0:U.title)!==(null===U||void 0===U?void 0:U.courseTitle)?"".concat(null===U||void 0===U?void 0:U.courseTitle," (").concat(null===U||void 0===U?void 0:U.title,")"):null===U||void 0===U?void 0:U.courseTitle,z=null!==(t=null===U||void 0===U?void 0:U.courseFormat)&&void 0!==t?t:"",W=(null===U||void 0===U?void 0:U.startDate)?H()(null===U||void 0===U?void 0:U.startDate).format("MMMM DD, YYYY"):"",V=(null===U||void 0===U?void 0:U.endDate)?H()(null===U||void 0===U?void 0:U.endDate).format("MMMM DD, YYYY"):"",_=V&&V!==W?"".concat(W," - ").concat(V):W,Y=null!==(i=null===U||void 0===U||null===(r=U.location)||void 0===r?void 0:r.name)&&void 0!==i?i:"",$=null!==(n=null===U||void 0===U||null===(o=U.location)||void 0===o?void 0:o.city)&&void 0!==n?n:"",K=null!==(s=null===U||void 0===U||null===(l=U.location)||void 0===l?void 0:l.state)&&void 0!==s?s:"",Q=null!==(c=null===U||void 0===U?void 0:U.provider)&&void 0!==c?c:"",Z="";if(Object(x.isEmpty)($)&&Object(x.isEmpty)(K))Z="".concat(Y);else{var X=(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)?$:"").concat((null===B||void 0===B?void 0:B.includeState)&&!Object(x.isEmpty)(K)?(null===B||void 0===B?void 0:B.includeCity)&&!Object(x.isEmpty)($)?", ".concat(K):K:""):"";Z="".concat(Y," ").concat(""!==X?"(".concat(X,")"):"")}F=R?(null===U||void 0===U?void 0:U.sessionInstructors)&&(null===U||void 0===U?void 0:U.sessionInstructors.find((function(e){return e.userId===G}))):(null===U||void 0===U?void 0:U.sessionParticipants)&&(null===U||void 0===U?void 0:U.sessionParticipants.find((function(e){return e.userId===G})));var ee="".concat(F.firstName," ").concat((null===B||void 0===B?void 0:B.includeMiddleName)?"".concat(null!==(d=F.middleName)&&void 0!==d?d:""):""," ").concat(F.lastName),te="".concat((null===B||void 0===B?void 0:B.includeBarNumber)&&null!==(u=null===(p=F)||void 0===p?void 0:p.licenseBarNumber)&&void 0!==u?u:""),ie=null!==(f=null===(m=F)||void 0===m?void 0:m.phone)&&void 0!==f?f:"",re=null!==(y=null===(g=F)||void 0===g?void 0:g.email)&&void 0!==y?y:"",ae=null===(b=F)||void 0===b||null===(S=b.userLicenseCreditValues)||void 0===S?void 0:S.filter((function(e){return e.licenseId===be})),ne=null!==(E=null===(I=F)||void 0===I?void 0:I.vaLawDeliveryMethod)&&void 0!==E?E:"",oe=function(e){var t,i=null===U||void 0===U||null===(t=U.sessionLicenses)||void 0===t?void 0:t.find((function(e){return e.licenseId===be})),r=(null===i||void 0===i?void 0:i.licenseStatus)===v.Dd.Pending,a=(null===i||void 0===i?void 0:i.licenseStatus)===v.Dd.Denied,n=i&&i.expirationDate&&null!==i.expirationDate&&Object(N.d)(i.expirationDate)<=Object(N.d)(F.completionDate);return r||a||n?"0":e&&e>0?Number.isInteger(e)?e.toFixed(1):parseFloat(e.toFixed(4)).toString():"0"},se=null===U||void 0===U||null===(O=U.sessionLicenses)||void 0===O||null===(C=O.find((function(e){return e.licenseId===be})))||void 0===C?void 0:C.sessionLicenseCredits,le=oe(Object(x.sum)(null===se||void 0===se?void 0:se.map((function(e){return e.creditValue})))),ce=oe(null===se||void 0===se||null===(j=se.find((function(e){return 1===e.creditId})))||void 0===j?void 0:j.creditValue),de=oe(null===se||void 0===se||null===(w=se.find((function(e){return 4===e.creditId})))||void 0===w?void 0:w.creditValue),ue=oe(Object(x.sum)(null===ae||void 0===ae?void 0:ae.map((function(e){return e.value})))),he=oe(null===ae||void 0===ae||null===(T=ae.find((function(e){return 1===e.creditId})))||void 0===T?void 0:T.value),pe=oe(null===ae||void 0===ae||null===(P=ae.find((function(e){return 4===e.creditId})))||void 0===P?void 0:P.value),ve=null!==(A=null===U||void 0===U||null===(k=U.approvalCodes)||void 0===k||null===(D=k.find((function(e){return e.licenseId===be})))||void 0===D?void 0:D.propertyValue)&&void 0!==A?A:"",fe=F.completionDate?H()(F.completionDate).format("MMMM DD, YYYY"):"",me=(null===U||void 0===U?void 0:U.isIndividualSessionDateAllowed)?fe:_;return R?a.a.createElement(wi,{certificate:B,sessionDetails:U,isInstructor:R,userId:+G,isVATemplate2024:!0}):a.a.createElement(h.Box,{maxWidth:"1000px",style:{width:"100%",alignItems:"center",padding:"0 0 0 10px",margin:"0 auto"},className:M.divDetails2022},a.a.createElement(h.Table,{className:M.table,id:"tblVACertificate",style:{width:"100%",pageBreakAfter:"auto"}},a.a.createElement(h.TableBody,null,a.a.createElement(a.a.Fragment,null,a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:M.text,style:{padding:"14px 0"}},a.a.createElement(h.Typography,{className:M.textSize17},"Virginia MCLE Board"),a.a.createElement(h.Typography,{className:M.textSize13Bold},"Certification of Attendance (Form 2)"),a.a.createElement(h.Typography,{className:M.textSize13Bold},"Certify your attendance online at www.vsb.org"),a.a.createElement(h.Typography,{className:M.textSize11,style:{letterSpacing:"0.01pt"}},"MCLE requirement pursuant to Paragraph 17, Section IV, Part Six, Rules of Virginia Supreme Court and MCLE Board Regulations"),a.a.createElement(h.Typography,{className:M.textSize12,style:{letterSpacing:"0.01pt"}},"MCLE Compliance Deadline - October 31. MCLE Reporting Deadline - December 15."),a.a.createElement(h.Typography,{className:M.textSize12,style:{letterSpacing:"0.01pt"}},"A $100 fee will be assessed for failure to comply with either deadline.")))),a.a.createElement(a.a.Fragment,null,a.a.createElement(h.TableRow,{style:{display:"flex"}},a.a.createElement(h.TableCell,{className:M.text,style:{padding:"16px 0 0 0"}},a.a.createElement(h.Box,{className:M.infoContainer},a.a.createElement(h.Typography,{className:M.infoLabel},"Member Name:"),a.a.createElement(h.Typography,{className:M.infoDescription},ee))),a.a.createElement(h.TableCell,{className:M.text,style:{padding:"16px 0 0 16px"}},a.a.createElement(h.Box,{className:M.infoContainer},a.a.createElement(h.Typography,{className:M.infoLabel6},"VSB ID#:"),a.a.createElement(h.Typography,{className:M.infoDescription,style:{minWidth:"391px"}},te)))),a.a.createElement(h.TableRow,{style:{display:"flex"}},a.a.createElement(h.TableCell,{className:M.text,style:{padding:0}},a.a.createElement(h.Box,{className:M.infoContainer},a.a.createElement(h.Typography,{className:M.infoLabelV5},"Address:"),a.a.createElement(h.Typography,{className:M.infoDescription,style:{marginLeft:"3px",minWidth:"300px"}}," "))),a.a.createElement(h.TableCell,{className:M.text,style:{padding:"0 0 0 38px"}},a.a.createElement(h.Box,{className:M.infoContainer},a.a.createElement(h.Typography,{className:M.infoLabel6},"Phone:"),a.a.createElement(h.Typography,{className:M.infoDescription,style:{minWidth:"391px"}},ie)))),a.a.createElement(h.TableRow,{style:{display:"flex"}},a.a.createElement(h.TableCell,{className:M.text,style:{padding:0}},a.a.createElement(h.Box,{className:M.infoContainer},a.a.createElement(h.Typography,{className:M.infoLabel}),a.a.createElement(h.Typography,{className:M.infoDescription,style:{marginLeft:"123px"}}," ")))),a.a.createElement(h.TableRow,{style:{display:"flex"}},a.a.createElement(h.TableCell,{className:M.text,style:{padding:0}},a.a.createElement(h.Box,{className:M.infoContainer},a.a.createElement(h.Typography,{className:M.infoLabel}),a.a.createElement(h.Typography,{className:M.infoDescription,style:{marginLeft:"123px"}}," "))),a.a.createElement(h.TableCell,{className:M.text,style:{padding:"0 0 0 38px"}},a.a.createElement(h.Box,{className:M.infoContainer},a.a.createElement(h.Typography,{className:M.infoLabel6},"Email:"),a.a.createElement(h.Typography,{className:M.infoDescription,style:{minWidth:"391px"}},re)))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:M.text,style:{padding:0}},a.a.createElement(h.Box,{className:M.infoContainer},a.a.createElement(h.Box,{style:{marginLeft:"-2px",flex:1,display:"flex"}},a.a.createElement(h.Typography,{className:M.infoLabel,style:{flex:"26%",fontWeight:"bolder",alignItems:"left",marginLeft:"20px"}},"City"),a.a.createElement(h.Box,{style:{flex:"0%"}},a.a.createElement(h.Box,{style:{display:"flex",alignItems:"center"}},a.a.createElement(h.Typography,{className:M.infoLabel,style:{marginRight:"70px",fontWeight:"bolder"}},"State"))),a.a.createElement(h.Box,{style:{flex:"55%"}},a.a.createElement(h.Box,{style:{display:"flex",alignItems:"center"}},a.a.createElement(h.Typography,{className:M.infoLabel,style:{marginRight:"8px",fontWeight:"bolder"}},"Zip")))))))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:M.text,style:{fontWeight:"bolder",padding:"16px 0 0 0"}},a.a.createElement(h.Box,{className:M.infoContainer},a.a.createElement(h.Typography,{className:M.dataLabel2},"Course ID:"),a.a.createElement(h.Typography,{className:M.dataDescription2},ve)))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:M.text,style:{fontWeight:"bolder",padding:0}},a.a.createElement(h.Box,{className:M.infoContainer},a.a.createElement(h.Typography,{className:M.dataLabel2},"Sponsor:"),a.a.createElement(h.Typography,{className:M.dataDescription2},Q)))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:M.text,style:{fontWeight:"bolder",padding:0}},a.a.createElement(h.Box,{className:M.infoContainer},a.a.createElement(h.Typography,{className:M.dataLabel2},"Title:"),a.a.createElement(h.Typography,{className:M.dataDescription2},q)))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:M.text,style:{fontWeight:"bolder",padding:0}},a.a.createElement(h.Box,{className:M.infoContainer},a.a.createElement(h.Typography,{className:M.dataLabel2},"Credits:"),a.a.createElement(h.Typography,{className:M.creditDescriptionNoBorder2},le),a.a.createElement(h.Typography,{className:M.creditDescriptionNoBorder2},ce),a.a.createElement(h.Typography,{className:M.creditDescriptionNoBorder2},de)))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:M.text,style:{fontWeight:"bolder",padding:0}},a.a.createElement(h.Box,{className:M.infoContainer},a.a.createElement(h.Typography,{className:M.dataLabel2}," "),a.a.createElement(h.Typography,{className:M.creditDescriptionNoBorder3},"CLE"),a.a.createElement(h.Typography,{className:M.creditDescriptionNoBorder3},"(Ethics)"),a.a.createElement(h.Typography,{className:M.creditDescriptionNoBorder3},"Well-being")))),a.a.createElement(h.TableRow,{style:{display:"flex"}},a.a.createElement(h.TableCell,{className:M.text,style:{fontWeight:"bolder",padding:"16px 0 0 0"}},a.a.createElement(h.Box,{className:M.infoContainer},a.a.createElement(h.Typography,{className:M.infoLabel},"Date Completed:"),a.a.createElement(h.Typography,{className:M.infoDescription,style:{minWidth:"290px"}},me)),a.a.createElement(h.Box,{className:M.infoContainer,style:{padding:"0 0 0 140px",minWidth:"290px"}},a.a.createElement(h.Typography,{className:M.infoDescriptionV3},"To be completed by sponsor for distance learning programs."))),a.a.createElement(h.TableCell,{className:M.text,style:{width:"500px"}},a.a.createElement(h.Box,{className:M.infoContainer},a.a.createElement(h.Typography,{className:M.infoLabel},"Location:"),a.a.createElement(h.Typography,{className:M.infoDescription,style:{minWidth:"370px"}},(null===B||void 0===B?void 0:B.includeLocation)?Z:"")))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:M.textB,style:{padding:"16px 0 0 0",letterSpacing:"0.01pt"}},a.a.createElement(h.Typography,{className:M.textB,style:{fontWeight:"bolder"}},"By my signature below I certify:"),a.a.createElement(h.Box,{className:M.infoContainer},a.a.createElement(h.Box,{className:M.line}),a.a.createElement(h.Box,{className:M.lineText},"I attended a total of"," ",a.a.createElement(h.Typography,{className:M.creditDescription},ue),"\xa0(hrs/mins) of approved CLE of which (",a.a.createElement(h.Typography,{className:M.creditDescription},he),") (hrs/mins) were approved Ethics and")),a.a.createElement(h.Box,{className:M.infoContainer},a.a.createElement(h.Box,{className:M.noLine}),a.a.createElement(h.Box,{className:M.lineText},a.a.createElement(h.Typography,{className:M.creditDescription},pe),"(hrs/mins) were approved Well-being.")),a.a.createElement(h.Box,{className:M.infoContainer},a.a.createElement(h.Box,{className:M.line}),a.a.createElement(h.Box,{className:M.lineText},"Credit is awarded for actual time in attendance (0.5 hr. min) rounded to the nearest half hour. (1hr 15 min = 1.5hr)")),a.a.createElement(h.Box,{className:M.infoContainer},a.a.createElement(h.Box,{className:M.line}),a.a.createElement(h.Box,{className:M.lineText},"The sessions I am claiming had written instructional materials to cover the subject.")),a.a.createElement(h.Box,{className:M.infoContainer},a.a.createElement(h.Box,{className:M.line}),a.a.createElement(h.Box,{className:M.lineText},"I participated in this program in a setting physically suitable to the course.")),a.a.createElement(h.Box,{className:M.infoContainer},a.a.createElement(h.Box,{className:M.line}),a.a.createElement(h.Box,{className:M.lineTextV2},"I was given the opportunity to participate in discussions with other attendees and/or the presenter.")),a.a.createElement(h.Box,{className:M.infoContainer},a.a.createElement(h.Box,{className:M.line}),a.a.createElement(h.Box,{className:M.lineText},"I understand I may not receive credit for any course/segment which is not materially different in substance than a")),a.a.createElement(h.Box,{className:M.infoContainer},a.a.createElement(h.Box,{className:M.noLine}),a.a.createElement(h.Box,{className:M.lineText},"course/segment for which credit has been previously given during the same completion period or the completion period")),a.a.createElement(h.Box,{className:M.infoContainer},a.a.createElement(h.Box,{className:M.noLine}),a.a.createElement(h.Box,{className:M.lineText},"immediately prior.")),a.a.createElement(h.Box,{className:M.infoContainer},a.a.createElement(h.Box,{className:M.line}),a.a.createElement(h.Box,{className:M.lineText},"I understand that a materially false statement shall be subject to appropriate disciplinary action.")),a.a.createElement("br",null),a.a.createElement(h.Box,{className:M.infoContainer},a.a.createElement(h.Box,{className:M.noLine}),a.a.createElement(h.Box,{className:M.lineText},"NOTE: A maximum of 8.0 hours from pre-recorded courses may be applied to your yearly MCLE requirement. Minimum of 4.0 hours from live interactive courses required.")))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:M.text,style:{fontSize:"13pt",padding:"45px 0 0 60px"}},a.a.createElement(h.Box,{className:M.infoContainer},a.a.createElement(h.Typography,{className:M.dateField},a.a.createElement(h.Typography,{style:{height:"30px"}}),a.a.createElement(h.Typography,{className:M.label,style:{textAlign:"left"}},"Date")),a.a.createElement(h.Typography,{className:M.signatureField},(null===B||void 0===B?void 0:B.includeParticipantSignature)&&!Object(x.isEmpty)(null===(L=F)||void 0===L?void 0:L.signatureUrl)?a.a.createElement("img",{alt:"signature",src:null===(J=F)||void 0===J?void 0:J.signatureUrl,width:200,height:25,style:{imageRendering:"auto",objectFit:"scale-down"}}):a.a.createElement(h.Typography,{style:{height:"30px"}}),a.a.createElement(h.Typography,{className:M.label,style:{textAlign:"left"}},"Signature"))))),a.a.createElement(h.TableRow,{style:{padding:"45px 0 0 0"}},a.a.createElement(h.TableCell,{className:M.text},a.a.createElement(h.Typography,{className:M.textSize11},"This form may be mailed to:"),a.a.createElement(h.Typography,{className:M.textSize13},"Virginia MCLE Board"),a.a.createElement(h.Typography,{className:M.textSize11},"Virginia State Bar"),a.a.createElement(h.Typography,{className:M.textSize11},"1111 East Main Street, Suite 700"),a.a.createElement(h.Typography,{className:M.textSize11},"Richmond, VA 23219-0026"),a.a.createElement(h.Typography,{className:M.textSize11},"(804) 775-0577 / MCLE@vsb.org"))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:M.text,style:{fontWeight:"bolder",padding:"0 0 0 60px"}},a.a.createElement(h.Box,{className:M.infoContainer},a.a.createElement(h.Typography,{className:M.dataLabel3},"Course Type:"),a.a.createElement(h.Typography,{className:M.dataLabel3},"Delivery Method:")))),a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{className:M.text,style:{fontWeight:"bolder",padding:"0 0 0 60px"}},a.a.createElement(h.Box,{className:M.infoContainer},a.a.createElement(h.Typography,{className:M.dataDescription3},z),a.a.createElement(h.Typography,{className:M.dataDescription3},ne===ji.LiveOrGroupVideo&&"Live or Group Video",ne===ji.Other&&"Other",ne===ji.AudioCD&&"Audio CD",ne===ji.VideoDVD&&"Video DVD",ne===ji.InternetOnDemand&&"Internet On Demand",ne===ji.VideoconferenceOrSatellite&&"Videoconference or Satellite",ne===ji.LiveTelephoneOrLiveWebcast&&"Live Telephone or Live Webcast")))))))},Pi=function(e){var t=e.certificate,i=e.isInstructor,r=e.licenseId,n=e.sessionDetails,o=e.userId;switch(t.templateId){case 1:case 22:return a.a.createElement(Zt,{certificate:t,sessionDetails:n,isInstructor:i,licenseId:+r,userId:+o});case 5:return a.a.createElement(Wt,{certificate:t,sessionDetails:n,isInstructor:i,licenseId:+r,userId:+o});case 7:return a.a.createElement($t,{certificate:t,sessionDetails:n,isInstructor:i,licenseId:+r,userId:+o});case 10:return a.a.createElement(ti,{certificate:t,sessionDetails:n,isInstructor:i,licenseId:+r,userId:+o});case 16:return a.a.createElement(pi,{certificate:t,sessionDetails:n,isInstructor:i,licenseId:+r,userId:+o});case 17:return a.a.createElement(bi,{certificate:t,sessionDetails:n,isInstructor:i,licenseId:+r,userId:+o});case 19:return a.a.createElement(Oi,{certificate:t,sessionDetails:n,isInstructor:i,licenseId:+r,userId:+o});case 20:return a.a.createElement(xi,{certificate:t,sessionDetails:n,isInstructor:i,licenseId:+r,userId:+o});case 23:return a.a.createElement(wi,{certificate:t,sessionDetails:n,isInstructor:i,userId:+o,isVATemplate2024:!1});case 24:return a.a.createElement(Ei,{certificate:t,sessionDetails:n,isInstructor:i,licenseId:+r,userId:+o});case 25:return a.a.createElement(Si,{certificate:t,sessionDetails:n,isInstructor:i,licenseId:+r,userId:+o,isBlank:!1});case 26:return a.a.createElement(li,{certificate:t,sessionDetails:n,isInstructor:i,licenseId:+r,userId:+o,isBlank:!1});case 27:return a.a.createElement(_t,{certificate:t,sessionDetails:n,isInstructor:i,licenseId:+r,userId:+o});case 28:return a.a.createElement(di,{certificate:t,sessionDetails:n,isInstructor:i,licenseId:+r,userId:+o});case 29:return a.a.createElement(yi,{certificate:t,sessionDetails:n,isInstructor:i,licenseId:+r,userId:+o});case 30:return a.a.createElement(Ti,{certificate:t,sessionDetails:n,isInstructor:i,userId:+o});default:return a.a.createElement(a.a.Fragment,null)}},Ai=Object(s.b)((function(e){return{requestBody:e.users.multipleCertificatePrintRequest}}),(function(e){return{getMultipleCertificate:function(){return e((function(e,t){var i,r,a=t().users.multipleCertificatePrintRequest,n=new v.Bc({userId:null!==(i=null===a||void 0===a?void 0:a.userId)&&void 0!==i?i:0,licenseIds:null===a||void 0===a?void 0:a.licenseIds,sessionDetails:null===a||void 0===a?void 0:a.sessionDetails,sessionUsers:null!==(r=null===a||void 0===a?void 0:a.sessionUsers)&&void 0!==r?r:[]});return U.g.getByMultipleLicense(void 0,v.Bc.fromJS(n)).then((function(e){return e})).catch((function(t){e(Object(G.b)(t))}))}))},getMultipleSessionDetails:function(){return e((function(e,t){var i,r,a,n=t().users.multipleCertificatePrintRequest,o=null===n||void 0===n||null===(i=n.sessionDetails)||void 0===i?void 0:i.map((function(e){var t;return null!==(t=e.sessionId)&&void 0!==t?t:0})),s=new v.ad({sessionIds:o,userId:null!==(r=null===n||void 0===n?void 0:n.userId)&&void 0!==r?r:0,licenseIds:null===n||void 0===n?void 0:n.licenseIds,sessionUsers:null!==(a=null===n||void 0===n?void 0:n.sessionUsers)&&void 0!==a?a:[]});return U.g.getMultipleSessionTemplateDetails(void 0,v.ad.fromJS(s)).then((function(e){return e})).catch((function(t){e(Object(G.b)(t))}))}))}}})),Ni=Object(d.o)(Ai((function(e){var t=e.getMultipleCertificate,i=e.getMultipleSessionDetails,n=e.requestBody,o=Y(),s=Object(r.useState)(),l=Object(c.a)(s,2),d=l[0],u=l[1],p=Object(r.useState)(),v=Object(c.a)(p,2),f=v[0],m=v[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]),a.a.createElement(h.Box,{margin:"20px auto",maxWidth:"940px"},d&&d.length>0&&f&&f.length>0&&a.a.createElement(h.Grid,{container:!0,spacing:"form",className:o.printButton},a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center-right",alignItems:"flex-end",alignContent:"flex-end",className:o.printButton},a.a.createElement(h.Box,{mr:4,width:"100%",textAlign:"right"},a.a.createElement(h.Button,{onClick:function(){return window.print()},variant:"contained",color:"primary",size:"small"},"Print")))),a.a.createElement(a.a.Fragment,null,void 0===d||void 0===f?a.a.createElement(h.Grid,{container:!0,spacing:"form",className:o.printButton},a.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0,alignment:"center"},a.a.createElement(h.Backdrop,{open:!0},a.a.createElement(h.CircularProgress,{color:"secondary"})))):a.a.createElement(a.a.Fragment,null,d&&d.length>0&&f&&f.length>0?n&&n.sessionDetails.map((function(e){return a.a.createElement(a.a.Fragment,null,n.licenseIds.map((function(t){var i,r,s,l,c,u,p,v,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===(p=u.find((function(e){return e.userId===(n&&n.userId)})))||void 0===p||null===(v=p.userLicensePropertyValues)||void 0===v?void 0:v.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===(n&&n.userId)})))||void 0===y||null===(g=y.userLicensePropertyValues)||void 0===g?void 0:g.find((function(e){return"Reciprocal"===e.propertyLabel&&e.licenseId===t})),T=x?null===C||void 0===C||null===(b=C.sessionInstructors)||void 0===b||null===(S=b.find((function(e){return e.userId===(n&&n.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===(n&&n.userId)})))||void 0===I?void 0:I.completionDate,P=void 0!==j&&(null!==j&&Object(N.d)(j)<=Object(N.d)(T));return O&&C&&!P&&!(0!==t&&void 0!==w)?a.a.createElement(h.Box,{mt:2,mb:2},a.a.createElement(h.Box,{className:o.boxProp},a.a.createElement(Pi,{certificate:O,sessionDetails:C,isInstructor:x,licenseId:t,userId:null===n||void 0===n?void 0:n.userId}))):a.a.createElement(a.a.Fragment,null)})))})):a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center",alignContent:"center",alignItems:"center"},a.a.createElement(h.Row,{mainAxisAlignment:"center",crossAxisAlignment:"middle"},a.a.createElement(h.Alert,{type:"info",variant:"standard"},"No records are available for printing.")))))))}))),ki=Object(s.b)(null,(function(e){return{getCertificate:function(t,i,r,a){return e((n=new v.Ac({licenseId:t,sessionId:i,userId:r,isInstructor:a}),function(e){return U.g.getByLicense(void 0,v.Ac.fromJS(n)).then((function(e){return e})).catch((function(t){var i;throw e(Object(G.a)({message:null!==(i=t.detail)&&void 0!==i?i:"Retrieval error",variant:"error"})),t}))}));var n},getSessionDetails:function(t,i,r){return e((a=new v.Zc({sessionId:t,userId:i,licenseId:r}),function(e){return U.g.getSessionTemplateDetails(void 0,v.Zc.fromJS(a)).then((function(e){return e})).catch((function(t){e(Object(G.b)(t))}))}));var a}}})),Di=Object(d.o)(ki((function(e){var t=e.getCertificate,i=e.getSessionDetails,n=e.match,o=Y(),s=Object(r.useState)(),l=Object(c.a)(s,2),d=l[0],u=l[1],p=Object(r.useState)(),v=Object(c.a)(p,2),f=v[0],m=v[1],y=n.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]),a.a.createElement(h.Box,{margin:"20px auto",maxWidth:"940px"},a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center-right",alignItems:"flex-end",alignContent:"flex-end",className:o.printButton},a.a.createElement(h.Box,{mr:4,width:"100%",textAlign:"right"},a.a.createElement(h.Button,{onClick:function(){return window.print()},variant:"contained",color:"primary",size:"small"},"Print"))),a.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0,alignment:"center"},void 0===d||void 0===f?a.a.createElement(h.Backdrop,{open:!0},a.a.createElement(h.CircularProgress,{color:"secondary"})):a.a.createElement(Pi,{certificate:d,sessionDetails:f,isInstructor:"true"===E,licenseId:+S,userId:+g}))))}))),Li=i(51),Ji=i(368),Fi=i.n(Ji),Bi=function(e){var t=Fi.a.SHA256("".concat("micronapps.com")).toString().substring(0,16),i=Fi.a.enc.Utf8.parse(t);return Fi.a.AES.encrypt(e,i,{iv:i,mode:Fi.a.mode.CBC,padding:Fi.a.pad.Pkcs7}).toString()},Ri=i(121),Ui=function(e){return{type:Ri.a,payload:e}},Gi=function(e){return{type:Ri.c,payload:e}},Mi=function(e){return{type:Ri.d,payload:e}},qi=function(e){return{type:Ri.e,payload:e}},zi=function(e){return{type:Ri.f,payload:e}},Wi=function(e){return{type:Ri.h,payload:e}},Vi=function(e){return{type:Ri.g,payload:e}},_i=function(e,t,i){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],n=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(a)if(void 0===c)o(zi(0)),o(Mi({searchCriteria:void 0,filterBy:void 0,portalCategory:i,isFavorite:r})),o(Wi([]));else{var d,u=null===(d=c.filter)||void 0===d?void 0:d.split("|");u=""===u[0]?[]:u,o(zi(c.calendarSavedFilterId)),o(Mi({searchCriteria:u,filterBy:void 0,portalCategory:i,isFavorite:r})),o(Wi(u))}var h=s().sessions.portalSessionFilterRequestBody,p=s().users.loggedUser;o(Ui(!0)),o(Gi(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(Li.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(n)o(zi(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))),!n&&a&&o(Mi(Object(D.a)(Object(D.a)({},h),{},{searchCriteria:m})))}var w=new v.jc({pageSize:-1,filterBy:null===h||void 0===h?void 0:h.filterBy,searchCriteria:m,startDate:e,endDate:t,userId:null===p||void 0===p?void 0:p.userId,portalCategory:0===i.length?["Classroom","Webcast"]:i,isFavorite:r});return U.S.getAllPortalSessionByMonth(void 0,v.jc.fromJS(w)).then((function(e){return o(Ui(!1)),o(Gi(e.sessions)),e})).catch((function(e){o(Ui(!1)),o(Gi(null)),o(Object(G.b)(e))}))}},Yi=function(){return function(e,t){var i=t().users.loggedUser,r=new v.Xb({userId:null===i||void 0===i?void 0:i.userId});return U.A.getAllActiveLearningPlanNames(void 0,v.Xb.fromJS(r)).then((function(e){return e})).catch((function(t){e(Object(G.b)(t))}))}},$i=function(e){return function(t,i){var r=i().users.loggedUser;return e&&t(Gi(null)),t(qi(void 0)),U.e.getAll(void 0,v.Zb.fromJS({createdBy:null===r||void 0===r?void 0:r.userName,pageSize:-1})).then((function(e){t(qi(e.calendarSavedFilters))})).catch((function(e){t(qi(void 0)),t(Object(G.b)(e))}))}},Hi=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(i,r){var a,n,o=r().users.loggedUser;return t?(n=U.e.update(void 0,v.ve.fromJS(e)),a="Filter successfully updated."):(n=U.e.create(void 0,v.L.fromJS(e)),a="Filter successfully saved."),n.then((function(t){return i(qi(void 0)),!0===e.isDefault?(t.isDefault=!0,U.O.setSavedFilterDefault(void 0,v.pe.fromJS({userId:null===o||void 0===o?void 0:o.userId,calendarSavedFilterId:t.calendarSavedFilterId})).then((function(){i(Object(G.a)({message:a,variant:"success"})),i($i(!1))})).catch((function(e){i(Object(G.b)(e))}))):(i(Object(G.a)({message:a,variant:"success"})),i($i(!1))),t})).catch((function(e){i(Object(G.b)(e))}))}},Ki=function(e,t,i){return function(r){return U.e.validateCalendarSavedFilterName(void 0,v.Se.fromJS({calendarSavedFilterId:e,name:t,createdBy:i})).then((function(e){return e})).catch((function(e){r(Object(G.b)(e))}))}},Qi=function(e){return function(t){return U.S.get(e,void 0).then((function(e){return e})).catch((function(e){throw t(Object(G.b)(e)),e}))}},Zi=function(e,t,i,r){return function(a){var n=new v.ab({userIdList:e,sessionId:t,isInstructor:i,isTentative:r,sendEmailConfirmation:!0});return U.R.create(void 0,n).then((function(){a(Qi(t))})).catch((function(e){a(Object(G.a)({message:e.detail,variant:"error"}))}))}},Xi=function(e,t,i){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4?arguments[4]:void 0,n=arguments.length>5&&void 0!==arguments[5]&&arguments[5];return function(o){var s={sessionParticipantIds:e,sessionParticipantStatusId:t,isParticipantUnvalidated:i,isCreditAdjusted:r,sessionId:a,isApproval:n,sendEmailConfirmation:!0};return U.R.update(void 0,v.Ee.fromJS(s)).then((function(e){return o(Qi(a)),e})).catch((function(e){o(Object(G.b)(e))}))}},er=function(e,t,i){return function(r){var a=new v.xb({sessionId:i,sessionParticipantIdList:e,sendEmailConfirmation:!0});return U.R.delete(void 0,a).then((function(a){if(r(Qi(i)),t>0){var n={sessionId:i,sessionParticipantIdList:e};U.R.deleteParticipantLicenseProperties(void 0,v.Bb.fromJS(n)).catch((function(e){r(Object(G.b)(e))})),U.R.deleteParticipantLicenseCredits(void 0,v.Ab.fromJS(n)).catch((function(e){r(Object(G.b)(e))}))}return a})).catch((function(e){r(Object(G.b)(e))}))}},tr=function(e,t,i,r){return function(a){var n=new v.i({userIds:e,sessionId:t,exemptedIdList:i,isSelectedAll:r,sendEmailConfirmation:!0});return U.S.addToSessionWaitlist(void 0,v.i.fromJS(n)).then((function(){a(Qi(t))})).catch((function(e){a(Object(G.b)(e))}))}},ir=function(e,t){var i=new v.tb({sessionId:t,userIdList:e,sendEmailConfirmation:!0});return function(e){return U.S.deleteFromSessionWaitlist(void 0,i).then((function(){return Promise.resolve()})).catch((function(t){throw e(Object(G.b)(t)),t}))}},rr=function(e){return function(t){var i=Bi(e);U.D.downloadFile(void 0,new v.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(G.b)(e)),e}))}},ar=i(28),nr=i.n(ar),or=i(176),sr=function(e){return{type:or.c,payload:e}},lr=function(e){return{type:or.e,payload:e}},cr=function(e){return{type:or.d,payload:e}},dr=i(174),ur=i(85),hr=function(e){return{type:ur.b,payload:e}},pr=function(e){return{type:ur.c,payload:e}},vr=function(e){return{type:ur.d,payload:e}},fr=function(e){return{type:ur.h,payload:e}},mr=function(e){return{type:ur.k,payload:e}},yr=function(e){return{type:ur.i,payload:e}},gr=function(e){return{type:ur.j,payload:e}},br=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{type:ur.a,payload:{courseId:e,favorite:t}}},Sr=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 a,n=r().catalog,o=n.filters,s=n.searchOptionTextFilter,l=n.searchOptionCategories,c=n.searchOptionFavoritesOnly,d=n.searchRequestBody,u=r().users.loggedUser,h=r().portalSettings.courseFilters;i(mr(!0)),i(yr(null));var p,f=Array();if(f.push.apply(f,Object(Li.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(hr(f))}"undefined"!==typeof r().authentication.cancelTokenSource&&"undefined"!==typeof(null===(a=r().authentication.cancelTokenSource)||void 0===a?void 0:a.cancel)&&(null===(p=r().authentication.cancelTokenSource)||void 0===p||p.cancel("Operation canceled due to new request."));var x=nr.a.CancelToken.source(),j=x.token;i(dr.b(x)),i(dr.a(j));var w=new v.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(fr(w)),U.l.getAll(void 0,v.Cc.fromJS(w)).then((function(e){return i(mr(!1)),i(yr(e.catalog)),i(gr(e.recordCount)),e})).catch((function(e){i(mr(!1)),i(yr(null)),i(gr(0)),i(Object(G.b)(e))})).finally((function(){i(dr.b(void 0)),i(dr.a(void 0))}))}},Er=function(){return function(e,t){var i=t().users.loggedUser,r=new v.Xb({userId:null===i||void 0===i?void 0:i.userId});return U.A.getAllActiveLearningPlanNames(void 0,v.Xb.fromJS(r)).then((function(e){return e})).catch((function(t){e(Object(G.b)(t))}))}},Ir=function(e,t){return function(i){var r=new v.h({collectionId:e,courseId:t});return U.m.addToCollection(void 0,r).then((function(){return!0})).catch((function(e){return i(Object(G.b)(e)),!1}))}},Or=function(e,t){return function(i,r){var a=r().users.loggedUser,n=null===a||void 0===a?void 0:a.userId;return U.m.removeCourseFromCollection(void 0,new v.Td({userId:n,collectionId:e,courseId:t})).then((function(){return!0})).catch((function(e){return i(Object(G.b)(e)),!1}))}},Cr=function(e,t,i){return function(r,a){var n=a().users.loggedUser,o=a().catalogDrawer.courseDetail,s=null===n||void 0===n?void 0:n.userId,l=t?"Course successfully removed from favorites":"Course successfully added as favorite",c=new v.ue({userId:s,courseId:e,isFavorite:t});return U.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:or.b,payload:e}}(o,!t)),r(br(null!==e&&void 0!==e?e:0,!t))):r(br(null!==e&&void 0!==e?e:0,!t)),r(Object(G.a)({message:l,variant:"success"})),!0})).catch((function(e){return r(Object(G.b)(e)),!1}))}},xr=function(e){return function(t,i){var r=i().users.loggedUser;return e&&t(yr(null)),t(pr(void 0)),U.f.getAll(void 0,v.ac.fromJS({createdBy:null===r||void 0===r?void 0:r.userName,pageSize:-1})).then((function(e){t(pr(e.catalogSavedFilters))})).catch((function(e){t(pr(void 0)),t(Object(G.b)(e))}))}},jr=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(i,r){var a,n,o=r().users.loggedUser;return t?(n=U.f.update(void 0,v.we.fromJS(e)),a="Filter successfully updated."):(n=U.f.create(void 0,v.M.fromJS(e)),a="Filter successfully saved."),n.then((function(t){return i(pr(void 0)),!0===e.isDefault?(t.isDefault=!0,U.O.setSavedFilterDefault(void 0,v.pe.fromJS({userId:null===o||void 0===o?void 0:o.userId,catalogSavedFilterId:t.catalogSavedFilterId})).then((function(){i(Object(G.a)({message:a,variant:"success"})),i(xr(!1))})).catch((function(e){i(Object(G.b)(e))}))):(i(Object(G.a)({message:a,variant:"success"})),i(xr(!1))),t})).catch((function(e){i(Object(G.b)(e))}))}},wr=function(e,t,i){return function(r){return U.f.validateCatalogSavedFilterName(void 0,v.Te.fromJS({catalogSavedFilterId:e,name:t,createdBy:i})).then((function(e){return e})).catch((function(e){r(Object(G.b)(e))}))}},Tr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(i){return U.ab.getAllPortalUserCompletedTranscriptSummaryByGuid(e,t,void 0).then((function(e){return e})).catch((function(e){i(Object(G.b)(e))}))}},Pr=function(e){return function(t){return U.S.getAllSessionInstructors(void 0,new v.dd({sessionId:e})).then((function(e){return e})).catch((function(e){return[]}))}},Ar=function(e){return function(t){return U.t.getById(void 0,new v.Ic({evaluationId:e})).then((function(e){return e})).catch((function(e){var i;throw t(Object(G.a)({message:null!==(i=e.detail)&&void 0!==i?i:"Retrieval error",variant:"error"})),e}))}},Nr=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="",a=3;a>=0;)a-=1,r=(i[+(t.pop()||0)+10*a]||"")+r;return Array(+t.join("")+1).join("M")+r},kr=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},Dr=function(e,t){switch(e){case"numbers":return t.toString();case"lowerCaseRoman":return Nr(t).toLowerCase();case"upperCaseRoman":return Nr(t);case"lowerCaseAlpha":return kr(t);case"upperCaseAlpha":return kr(t).toUpperCase();default:return""}},Lr=function(e){var t,i=e.answer,n=e.disabled,o=e.hideQuestion,s=e.numberStyle,l=e.question,d=e.validate,u=e.instructor,p=e.onChange,v=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],T=Object(r.useState)(""),P=Object(c.a)(T,2),A=P[0],N=P[1],D=Object(r.useState)(!1),L=Object(c.a)(D,2),J=L[0],F=L[1],B=Object(r.useState)(""),R=Object(c.a)(B,2),U=R[0],G=R[1],M=null!==(t=null===l||void 0===l?void 0:l.sequence)&&void 0!==t?t:1,q=Dr(s,M),z=l&&(s&&""!==s?"".concat(q,". ").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("")),p&&p(l,JSON.stringify([{questionId:(l.questionId||0).toString(),answerId:e}]),t,u?u.sessionParticipantId:void 0)}),[l,p,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),v&&v(l,e,t,u?u.sessionParticipantId:void 0)}),[l,v,u]);Object(r.useEffect)((function(){d&&(W(g),V(I))}),[d,g,I,W,V]);return a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Box,null,!o&&a.a.createElement(a.a.Fragment,null,(null===l||void 0===l?void 0:l.instructor)&&u&&a.a.createElement(h.Box,{pt:1},a.a.createElement(h.Typography,{variant:"body2",weight:"bold"},"Instructor: ",u.fullName)),a.a.createElement(h.Box,{pb:1},a.a.createElement(h.Typography,{variant:"body1"},z),a.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:n,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)&&a.a.createElement(h.Box,{paddingX:1},a.a.createElement(h.Box,{dangerouslySetInnerHTML:{__html:Object(k.a)(null===l||void 0===l?void 0:l.text)}}))),(null===l||void 0===l?void 0:l.enableComments)&&a.a.createElement(h.Box,{pb:1},a.a.createElement(h.Typography,{variant:"body1"},"Additional Comments"),a.a.createElement(h.TextField,{id:"comment",required:l.requiredComments,disabled:n,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}})))},Jr=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?a.a.createElement(a.a.Fragment,null,i.map((function(i){var n,o=null!==(n=null===t||void 0===t?void 0:t.filter((function(e){return e.instructorId===i.sessionParticipantId}))[0])&&void 0!==n?n:void 0;return a.a.createElement(Lr,Object.assign({key:"".concat(r.questionId,"_").concat(i.sessionParticipantId)},e,{answer:o,instructor:i}))}))):a.a.createElement(Lr,Object.assign({key:"".concat(r.questionId,"_0")},e,{answer:t?t[0]:void 0}))},Fr=function(e){var t,i=e.excludeNumbering,r=e.hideQuestion,n=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=Dr(n,l),d=o&&(!i&&n&&""!==n?"".concat(c,". ").concat(null===o||void 0===o?void 0:o.name):null===o||void 0===o?void 0:o.name);return a.a.createElement(h.Box,{mb:1},a.a.createElement(h.Card,{variant:"outlined",background:"grey",style:{border:"none"}},a.a.createElement(h.Box,{px:4,pt:3,pb:1},!r&&a.a.createElement(h.Box,null,a.a.createElement(h.Typography,{variant:"body1",style:{fontWeight:700}},d)),""!==(null===o||void 0===o?void 0:o.text)&&a.a.createElement(h.Box,{pt:r?0:1},a.a.createElement("span",{dangerouslySetInnerHTML:{__html:Object(k.a)(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)||""))}})))))},Br=function(e){var t,i=e.answer,n=e.instructor,o=e.disabled,s=e.gridNumberStyle,l=e.mobileView,d=e.hideQuestion,u=e.question,p=e.validate,v=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],T=Object(r.useState)(!!y&&b),P=Object(c.a)(T,2),A=P[0],N=P[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),M=Object(c.a)(G,2),q=M[0],z=M[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("")),v){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})})),v(u,JSON.stringify(i),!t,n?n.sessionParticipantId:void 0)}}),[u,g.questions,v,m,n]),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,n?n.sessionParticipantId:void 0)}),[u,A,f,n]);Object(r.useEffect)((function(){p&&($(I),H(j))}),[p,I,j,$,H]);var K=function(e){$(e)},Q=function(){return a.a.createElement(h.Box,null,g.questions.map((function(e,t){var i=Dr(s,t+1),r=s&&""!==s?"".concat(i,". ").concat(e.text):e.text;return a.a.createElement(a.a.Fragment,{key:"question-".concat(e.questionId)},a.a.createElement(h.Box,{px:1},a.a.createElement(h.Grid,{container:!0},a.a.createElement(h.Grid,{item:!0,xs:12,key:e.questionId},a.a.createElement(h.Typography,{variant:"body1"},r)),g.answerDefinitions.map((function(t){return a.a.createElement(h.Grid,{item:!0,xs:12,key:"grid-".concat(e.questionId,"-").concat(t.answerId)},a.a.createElement(h.FormControlLabel,{name:"answer-".concat(t.answerId),value:t.answerId,label:t.text,control:a.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(Li.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)}})}))})))),a.a.createElement(h.Box,{my:2},a.a.createElement(h.Divider,null)))})))};return a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Box,{pl:1},(null===u||void 0===u?void 0:u.instructor)&&n&&a.a.createElement(h.Box,{pt:1},a.a.createElement(h.Typography,{variant:"body2",weight:"bold"},"Instructor: ",n.fullName))),l?Q():a.a.createElement(h.Box,{ml:d?0:-2,mr:d?0:-1},a.a.createElement(h.Hidden,{smDown:!0},a.a.createElement(h.Table,null,a.a.createElement(h.TableBody,null,a.a.createElement(h.TableRow,null,a.a.createElement(h.TableCell,{style:{minWidth:"200px"}},"\xa0"),g.answerDefinitions.map((function(e){return a.a.createElement(h.TableCell,{key:"grid-header-".concat(e.answerId),align:"center",width:"".concat(70/g.answerDefinitions.length,"%"),style:{minWidth:"80px",whiteSpace:"normal"}},a.a.createElement(h.Typography,{variant:"body1"},e.text))}))),g.questions.map((function(e,t){var i=Dr(s,t+1),r=s&&""!==s?"".concat(i,". ").concat(e.text):e.text;return a.a.createElement(h.TableRow,{key:"question-".concat(e.questionId)},a.a.createElement(h.TableCell,{key:e.questionId,style:{minWidth:"200px",whiteSpace:"normal"}},r),g.answerDefinitions.map((function(t){return a.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,"%")},a.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(Li.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)}}))})))}))))),a.a.createElement(h.Hidden,{mdUp:!0},Q())),L&&""!==R&&a.a.createElement(h.Box,null,a.a.createElement(h.Typography,{variant:"caption",color:"error"},R)),a.a.createElement(h.Box,{pl:1},(null===u||void 0===u?void 0:u.enableComments)&&a.a.createElement(h.Box,{pt:3},a.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:q,helperText:_,onChange:function(e){var t;t=e.target.value,w(t),H(t)}}))))},Rr=function(e){var t,i=e.answers,n=e.instructors,o=e.hideQuestion,s=e.numberStyle,l=e.question,d=Object(r.useState)(!1),u=Object(c.a)(d,2),p=u[0],v=u[1],f=null!==(t=null===l||void 0===l?void 0:l.sequence)&&void 0!==t?t:1,m=Dr(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)&&n&&n.length>0?a.a.createElement(a.a.Fragment,null,n.map((function(t){var r,n=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 a.a.createElement(Br,Object.assign({key:"".concat(l.questionId,"_").concat(t.sessionParticipantId)},e,{answer:n,instructor:t,onAnswerHasError:function(e){return v(e)}}))}))):a.a.createElement(Br,Object.assign({key:"".concat(l.questionId,"_0")},e,{answer:i?i[0]:void 0,onAnswerHasError:function(e){return v(e)}}));return o?a.a.createElement(h.Box,{pb:1},(null===l||void 0===l?void 0:l.text)&&""!==(null===l||void 0===l?void 0:l.text)&&a.a.createElement(h.Box,{pt:1,dangerouslySetInnerHTML:{__html:Object(k.a)(null===l||void 0===l?void 0:l.text)}}),g):a.a.createElement(h.Box,{pb:1},a.a.createElement(h.Widget,null,a.a.createElement(h.Box,{p:2},a.a.createElement(h.Box,{pb:1},a.a.createElement(h.Typography,{variant:"body1",color:p?"error":"default"},y,(null===l||void 0===l?void 0:l.required)&&" *")),a.a.createElement(h.Box,{pl:1},(null===l||void 0===l?void 0:l.text)&&""!==(null===l||void 0===l?void 0:l.text)&&a.a.createElement(h.Box,{pt:1,dangerouslySetInnerHTML:{__html:Object(k.a)(null===l||void 0===l?void 0:l.text)}}),g))))},Ur=function(e){var t,i=e.answer,n=e.instructor,o=e.disabled,s=e.mobileView,l=e.question,d=e.validate,u=e.onChange,p=e.onCommentChange,v=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],T=j[1],P=Object(r.useState)(!1),A=Object(c.a)(P,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],M=Object(r.useState)(""),q=Object(c.a)(M,2),z=q[0],W=q[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),v&&v(!0),F("This field is required")):(t=!0,k(!1),v&&v(!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,n?n.sessionParticipantId:void 0)}}),[l,u,v,n]),_=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),p&&p(l,e,t,n?n.sessionParticipantId:void 0)}),[l,w,p,n]);Object(r.useEffect)((function(){d&&(V(b),_(O))}),[d,b,O,V,_]);return a.a.createElement(h.Box,{pl:1},(null===l||void 0===l?void 0:l.instructor)&&n&&a.a.createElement(h.Box,{pt:1},a.a.createElement(h.Typography,{variant:"body2",weight:"bold"},"Instructor: ",n.fullName)),a.a.createElement(h.Box,{pl:1},a.a.createElement(h.Grid,{container:!0},m.answerDefinitions.map((function(e){return a.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},a.a.createElement(h.FormControlLabel,{name:"question-".concat(l.questionId),value:e.answerId,label:e.text,control:a.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(Li.a)(b);r=i?r.concat(e):r.filter((function(t){return t.answerId!==e.answerId})),S(r);var a=r.filter((function(e){return e.commentRequired})).length>0;a||(G(!1),W("")),T(a),V(r)}})}))})))),N&&""!==J&&a.a.createElement(h.Box,null,a.a.createElement(h.Typography,{variant:"caption",color:"error"},J)),(null===l||void 0===l?void 0:l.enableComments)&&a.a.createElement(h.Box,{pt:1},a.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)}})))},Gr=function(e){var t,i=e.answers,n=e.instructors,o=e.hideQuestion,s=e.numberStyle,l=e.question,d=Object(r.useState)(!1),u=Object(c.a)(d,2),p=u[0],v=u[1],f=null!==(t=null===l||void 0===l?void 0:l.sequence)&&void 0!==t?t:1,m=Dr(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)&&n&&n.length>0?a.a.createElement(a.a.Fragment,null,n.map((function(t){var r,n=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 a.a.createElement(Ur,Object.assign({key:"".concat(l.questionId,"_").concat(t.sessionParticipantId)},e,{answer:n,instructor:t,onAnswerHasError:function(e){return v(e)}}))}))):a.a.createElement(Ur,Object.assign({key:"".concat(l.questionId,"_0")},e,{answer:i?i[0]:void 0,onAnswerHasError:function(e){return v(e)}}));return o?a.a.createElement(h.Box,{pb:1},(null===l||void 0===l?void 0:l.text)&&""!==(null===l||void 0===l?void 0:l.text)&&a.a.createElement(h.Box,{pt:1,dangerouslySetInnerHTML:{__html:Object(k.a)(null===l||void 0===l?void 0:l.text)}}),g):a.a.createElement(h.Box,{pb:1},a.a.createElement(h.Widget,null,a.a.createElement(h.Box,{p:2},a.a.createElement(h.Box,{pb:1},a.a.createElement(h.Typography,{variant:"body1",color:p?"error":"default"},y,(null===l||void 0===l?void 0:l.required)&&" *")),a.a.createElement(h.Box,{pl:1},(null===l||void 0===l?void 0:l.text)&&""!==(null===l||void 0===l?void 0:l.text)&&a.a.createElement(h.Box,{pt:1,dangerouslySetInnerHTML:{__html:Object(k.a)(null===l||void 0===l?void 0:l.text)}}),g))))},Mr=function(e){var t,i=e.answer,n=e.instructor,o=e.disabled,s=e.mobileView,l=e.question,d=e.validate,u=e.onChange,p=e.onCommentChange,v=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],T=Object(r.useState)(!1),P=Object(c.a)(T,2),A=P[0],N=P[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)(""),M=Object(c.a)(G,2),q=M[0],z=M[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),v&&v(!0),J("This field is required")):(t=!0,N(!1),v&&v(!1),J("")),u&&u(l,JSON.stringify([{questionId:(l.questionId||0).toString(),answerId:e}]),t,n?n.sessionParticipantId:void 0)}),[l,u,v,n]),_=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),p&&p(l,e,t,n?n.sessionParticipantId:void 0)}),[l,j,p,n]);Object(r.useEffect)((function(){d&&(V(g),_(I))}),[d,g,I,V,_]);return a.a.createElement(h.Box,{pl:1},(null===l||void 0===l?void 0:l.instructor)&&n&&a.a.createElement(h.Box,{pt:1},a.a.createElement(h.Typography,{variant:"body2",weight:"bold"},"Instructor:"," ".concat(n.fullName))),a.a.createElement(h.Grid,{container:!0},W.answerDefinitions.map((function(e){return a.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"},a.a.createElement(h.FormControlLabel,{name:"question-".concat(l.questionId),value:e.answerId,label:e.text,control:a.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&&a.a.createElement(h.Box,null,a.a.createElement(h.Typography,{variant:"caption",color:"error"},L)),(null===l||void 0===l?void 0:l.enableComments)&&a.a.createElement(h.Box,{pt:1},a.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:q,onChange:function(e){var t;t=e.target.value,O(t),_(t)}})))},qr=function(e){var t,i=e.answers,n=e.instructors,o=e.hideQuestion,s=e.numberStyle,l=e.question,d=Object(r.useState)(!1),u=Object(c.a)(d,2),p=u[0],v=u[1],f=null!==(t=null===l||void 0===l?void 0:l.sequence)&&void 0!==t?t:1,m=Dr(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)&&n&&n.length>0?a.a.createElement(a.a.Fragment,null,n.map((function(t){var r,n=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 a.a.createElement(Mr,Object.assign({key:"".concat(l.questionId,"_").concat(t.sessionParticipantId)},e,{answer:n,instructor:t,onAnswerHasError:function(e){return v(e)}}))}))):a.a.createElement(Mr,Object.assign({key:"".concat(l.questionId,"_0")},e,{answer:i?i[0]:void 0,onAnswerHasError:function(e){return v(e)}}));return o?a.a.createElement(h.Box,{pb:1},(null===l||void 0===l?void 0:l.text)&&""!==(null===l||void 0===l?void 0:l.text)&&a.a.createElement(h.Box,{pt:1,dangerouslySetInnerHTML:{__html:Object(k.a)(null===l||void 0===l?void 0:l.text)}}),g):a.a.createElement(h.Box,{pb:1},a.a.createElement(h.Widget,null,a.a.createElement(h.Box,{p:2},a.a.createElement(h.Box,{pb:1},a.a.createElement(h.Typography,{variant:"body1",color:p?"error":"default"},y,(null===l||void 0===l?void 0:l.required)&&" *")),a.a.createElement(h.Box,{pl:1},(null===l||void 0===l?void 0:l.text)&&""!==(null===l||void 0===l?void 0:l.text)&&a.a.createElement(h.Box,{pt:1,dangerouslySetInnerHTML:{__html:Object(k.a)(null===l||void 0===l?void 0:l.text)}}),g))))},zr=function(e){var t,i=e.disabled,n=e.hideQuestion,o=e.numberStyle,s=e.question,l=e.answer,d=e.instructor,u=e.validate,p=e.onChange,v=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],T=Object(r.useState)(""),P=Object(c.a)(T,2),A=P[0],N=P[1],D=Object(r.useState)(!1),L=Object(c.a)(D,2),J=L[0],F=L[1],B=Object(r.useState)(""),R=Object(c.a)(B,2),U=R[0],G=R[1],M=null!==(t=null===s||void 0===s?void 0:s.sequence)&&void 0!==t?t:1,q=Dr(o,M),z=s&&(o&&""!==o?"".concat(q,". ").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("")),p&&p(s,JSON.stringify([{questionId:(s.questionId||0).toString(),answerId:e}]),t,d?d.sessionParticipantId:void 0)}),[p,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),v&&v(s,e,t,d?d.sessionParticipantId:void 0)}),[v,s,d]);Object(r.useEffect)((function(){u&&(W(g),V(I))}),[u,g,I,W,V]);return a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Box,null,!n&&a.a.createElement(a.a.Fragment,null,(null===s||void 0===s?void 0:s.instructor)&&d&&a.a.createElement(h.Box,{pt:1},a.a.createElement(h.Typography,{variant:"body2",weight:"bold"},"Instructor: ",d.fullName)),a.a.createElement(h.Box,{pb:1},a.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)&&a.a.createElement(h.Box,{paddingX:1},a.a.createElement(h.Box,{dangerouslySetInnerHTML:{__html:Object(k.a)(null===s||void 0===s?void 0:s.text)}}))),(null===s||void 0===s?void 0:s.enableComments)&&a.a.createElement(h.Box,{pb:1},a.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)}})))},Wr=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?a.a.createElement(a.a.Fragment,null,i.map((function(i){var n,o=null!==(n=null===t||void 0===t?void 0:t.filter((function(e){return e.instructorId===i.sessionParticipantId}))[0])&&void 0!==n?n:void 0;return a.a.createElement(zr,Object.assign({key:"".concat(r.questionId,"_").concat(i.sessionParticipantId)},e,{answer:o,instructor:i}))}))):a.a.createElement(zr,Object.assign({key:"".concat(r.questionId,"_0")},e,{answer:t?t[0]:void 0}))},Vr=function(e){var t=e.hideQuestion,i=e.question;return a.a.createElement(h.Box,{py:t?0:.5},function(){switch(null===i||void 0===i?void 0:i.questionTypeCode){case"essay":return a.a.createElement(Jr,e);case"ratings":case"mcqsingle":return a.a.createElement(qr,e);case"mcqmultiple":return a.a.createElement(Gr,e);case"grid":return a.a.createElement(Rr,e);case"infobox":return a.a.createElement(Fr,e);default:return a.a.createElement(Wr,e)}}())},_r=function(e){var t,i=e.numberStyle,r=e.section,n=e.readOnly,o=null!==(t=null===r||void 0===r?void 0:r.sequence)&&void 0!==t?t:1,s=Dr(i,o);return a.a.createElement(h.Box,null,"__default__"!==(null===r||void 0===r?void 0:r.name)&&a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Box,{paddingY:.5},a.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))),a.a.createElement(h.Divider,{style:{backgroundColor:"black"}}),n||""===(null===r||void 0===r?void 0:r.text)?a.a.createElement(h.Box,{pb:1}):a.a.createElement(h.Box,{pt:1,dangerouslySetInnerHTML:{__html:Object(k.a)(null===r||void 0===r?void 0:r.text)}})))},Yr=function(e){var t,i,r=e.currentQuestion,n=e.currentSectionId,o=e.disabled,s=e.evaluation,l=e.evaluationAnswers,c=e.validate,d=e.tokens,u=e.instructors,p=e.onChange,v=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 a.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===n}))[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 a.a.createElement(h.Box,{key:null===g||void 0===g?void 0:g.sectionId},n&&g&&a.a.createElement(_r,{numberStyle:null===s||void 0===s?void 0:s.sectionFormNumberStyleCode,section:g}),r&&a.a.createElement(h.Box,{key:null===e||void 0===e?void 0:e.questionId},a.a.createElement(Vr,{gridNumberStyle:null===s||void 0===s?void 0:s.gridQuestionFormNumberStyleCode,numberStyle:null===s||void 0===s?void 0:s.questionFormNumberStyleCode,question:Object(D.a)(Object(D.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:p,onCommentChange:v,onValidate:f})))}(r))},$r=function(e){var t,i,n,o=e.currentQuestion,s=e.evaluation,l=e.currentSectionId,c=e.disabled,d=e.evaluationAnswers,u=e.tokens,p=e.validate,v=e.instructors,f=e.setValidate,m=e.onChange,y=e.onValidate,g=Object(Li.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(){p&&b()}),[p,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 a=g.filter((function(t){return t.questionId===e.questionId&&(t.instructorId===r||null===t.instructorId)})),n="",o=!0,s="";if(a.length>0){var l=JSON.parse(a[0].answer);s=a[0].initialAnswer,g=g.filter((function(t){return!(t.questionId===e.questionId&&(t.instructorId===r||null===t.instructorId))})),n=l.comment,o=a[0].isCommentValid}g.push({questionId:e.questionId||0,instructorId:r,initialAnswer:s,answer:JSON.stringify({content:JSON.parse(t),comment:n}),isValid:i,isCommentValid:o}),m&&m(g)},O=function(e,t,i,r){var a=g.filter((function(t){return t.questionId===e.questionId&&(t.instructorId===r||null===t.instructorId)})),n=[],o=!0,s="";if(a.length>0){var l=JSON.parse(a[0].answer);g=g.filter((function(t){return!(t.questionId===e.questionId&&(t.instructorId===r||null===t.instructorId))})),n=l.content,s=a[0].initialAnswer,o=a[0].isValid}g.push({questionId:e.questionId||0,instructorId:r,answer:JSON.stringify({content:n,comment:t}),initialAnswer:s,isValid:o,isCommentValid:i}),m&&m(g)};return a.a.createElement(h.Box,null,E?a.a.createElement(Yr,{currentQuestion:o,currentSectionId:l,disabled:c,evaluation:s,evaluationAnswers:g,tokens:u,validate:p,onChange:I,onCommentChange:O,instructors:v}):null===s||void 0===s||null===(n=s.sections)||void 0===n?void 0:n.sort((function(e,t){return(e.sequence||0)-(t.sequence||0)})).map((function(e){var t,i=0;return a.a.createElement(h.Box,{key:e.sectionId},a.a.createElement(_r,{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 a.a.createElement(h.Box,{key:e.questionId},a.a.createElement(Vr,{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:p,tokens:u,onChange:I,onCommentChange:O,instructors:v}))}(Object(D.a)(Object(D.a)({},e),{},{sequence:i}),t)})))})))},Hr=Object(z.makeStyles)((function(){return Object(z.createStyles)({printButton:{"@media print":{display:"none !important"}}})})),Kr=Object(s.b)(null,(function(e){return{getEvaluation:function(t){return e(Ar(t))},getCourseById:function(t){return e(function(e){return function(t){return U.n.get(e,void 0).then((function(e){return e})).catch((function(e){throw t(Object(G.b)(e)),e}))}}(t))},getSessionById:function(t){return e(Qi(t))},getAllSessionInstructors:function(t){return e(Pr(t))}}})),Qr=Object(d.o)(Kr((function(e){var t,i,n,o,s,l=e.getEvaluation,d=e.match,u=e.getCourseById,p=e.getSessionById,v=e.getAllSessionInstructors,f=Hr(),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],T=Object(r.useState)(),P=Object(c.a)(T,2),A=P[0],D=P[1],L=Object(r.useState)(void 0),J=Object(c.a)(L,2),F=J[0],B=J[1],R=Object(r.useState)(void 0),U=Object(c.a)(R,2),G=U[0],M=U[1],q=Object(r.useState)(void 0),z=Object(c.a)(q,2),W=z[0],V=z[1];Object(r.useEffect)((function(){0!==+y?l([+y]).then((function(e){var t,i,r,a,n,o,s,l;e.length>0&&(O(e[0]),M((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===(a=e[0])||void 0===a?void 0:a.sections[0].questions.length)>0?null===(n=e[0])||void 0===n?void 0:n.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)})),p(b).then((function(e){D(e)})),v(+b).then((function(e){B(e)}))})):O({})}),[y,l,g,v,u,p,b]);return a.a.createElement(h.Box,{margin:"10px auto",maxWidth:"1100px"},a.a.createElement(h.Grid,{container:!0,spacing:"card"},a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center-right",alignItems:"flex-end",alignContent:"flex-end",className:f.printButton},a.a.createElement(h.Box,{width:"100%",textAlign:"right"},a.a.createElement(h.Button,{onClick:function(){return window.print(),!1},variant:"contained",color:"primary",size:"small"},"Print"))),a.a.createElement(h.Grid,{item:!0,xs:12})),a.a.createElement(a.a.Fragment,null,void 0===I&&void 0===F?a.a.createElement(h.Backdrop,{open:!0},a.a.createElement(h.CircularProgress,{color:"secondary"})):a.a.createElement(a.a.Fragment,null,j&&A&&a.a.createElement(h.Box,{mb:2},a.a.createElement(h.Card,{variant:"outlined",status:"primary"},a.a.createElement(h.CardHeader,{style:{padding:"8px"},title:a.a.createElement(h.Box,{display:"flex"},a.a.createElement(h.Box,{p:1,pr:2,my:"auto"},a.a.createElement(h.SystemIcon,{icon:"Courses",size:"md"})),a.a.createElement(h.Box,{flex:1},a.a.createElement(h.Typography,{variant:"h6",color:"textPrimary"},null===j||void 0===j?void 0:j.title),a.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular",color:"textPrimary"},null===j||void 0===j?void 0:j.providerName)))}),a.a.createElement(h.Divider,null),a.a.createElement(h.CardContent,null,a.a.createElement(h.Box,{display:"flex"},a.a.createElement(h.Box,{pr:2,minWidth:70,my:"auto"},a.a.createElement(h.CalendarBadge,{size:"sm",date:null!==(t=A.startDate)&&void 0!==t?t:new Date})),a.a.createElement(h.Box,{flex:1,my:"auto"},(null===(i=A.title)||void 0===i?void 0:i.trim())!==(null===(n=j.title)||void 0===n?void 0:n.trim())&&a.a.createElement(h.Box,{mb:.5},a.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},A.title)),a.a.createElement(h.Box,{display:"flex",mb:.5},a.a.createElement(h.Box,{pr:1,minWidth:30,textAlign:"center"},a.a.createElement(h.SystemIcon,{icon:"Clock",color:"primary"})),a.a.createElement(h.Box,{flex:1},a.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)&&a.a.createElement(h.Box,{display:"flex",mb:.5},a.a.createElement(h.Box,{pr:1,minWidth:30,textAlign:"center"},a.a.createElement(h.SystemIcon,{icon:"Location",color:"primary",type:"solid"})),a.a.createElement(h.Box,{flex:1},a.a.createElement(h.Typography,{variant:"body1"},A.location,A.room?"; ".concat(A.room):""))),a.a.createElement(h.Box,{display:"flex"},a.a.createElement(h.Box,{pr:1,minWidth:30,textAlign:"center"},function(e){switch(e){case"Classroom":return a.a.createElement(h.SystemIcon,{icon:"Cem-Classroom",type:"duotone",color:"primary"});case"On-demand":return a.a.createElement(h.SystemIcon,{icon:"Cem-OnDemand",type:"duotone",color:"primary"});case"Webcast":return a.a.createElement(h.SystemIcon,{icon:"Cem-Webinar",type:"duotone",color:"primary"});default:return a.a.createElement(h.SystemIcon,{icon:"Cem-OtherFormat",type:"duotone",color:"primary"})}}(null!==(s=A.courseFormatPortalCategory)&&void 0!==s?s:"")),a.a.createElement(h.Box,{flex:1},a.a.createElement(h.Typography,{variant:"body1"},A.courseFormat))))),A.detail&&a.a.createElement(h.Box,{mt:2,dangerouslySetInnerHTML:{__html:Object(k.a)(A.detail)}})))),a.a.createElement($r,{evaluation:I,currentQuestion:G,currentSectionId:W,instructors:F}))),void 0!==I&&a.a.createElement(h.Grid,{container:!0,spacing:"card"},a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center"},a.a.createElement(h.Column,{crossAxisAlignment:"center"},a.a.createElement(h.Box,{mt:3,mb:1},a.a.createElement(h.Typography,{variant:"caption"},a.a.createElement("b",null,"Micron Systems, Inc."))),a.a.createElement(h.Row,null,a.a.createElement(h.Box,{mr:1,mt:1},a.a.createElement(h.Typography,{variant:"caption"},"Generated by")),a.a.createElement("img",{alt:"",width:"125",height:"30",src:"../../../../images/cemanager-logo.png"})),a.a.createElement(h.Box,{mb:3,mt:1},a.a.createElement(h.Typography,{variant:"caption"},"on ",Object(N.c)(new Date,"MMMM DD, YYYY")))))))}))),Zr=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]),a.a.createElement(h.Backdrop,{open:!0},a.a.createElement(h.CircularProgress,{color:"secondary",variant:"indeterminate"}))},Xr=i(354),ea=i(256),ta=i(155),ia=i(69),ra=i(200),aa=Object(s.b)((function(e){return{authentication:e.authentication}}),(function(e){return{signIn:function(t,i,r){return e(ra.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(ia.a)(t))},addUserAccessToken:function(t){return e(C.a(t))},setIsUserAccessAdded:function(t){return e(Object(O.f)(t))}}})),na=aa((function(e){var t=e.authentication,i=e.signIn,n=e.setAdminRedirectIdpId,o=e.setRedirectUrl,s=e.setSource,l=e.setGuid,c=e.setType,u=e.setRefreshToken,p=e.setClientId,v=e.getPortalBranding,f=e.addUserAccessToken,m=e.setIsUserAccessAdded,y=Object(ta.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(ea.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,a,n,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!==(a=t.guid)&&void 0!==a?a:"")&&"schedule-link"===t.redirectionType)g.push("/schedule/registration/".concat(t.guid));else if(""!==(null!==(n=t.guid)&&void 0!==n?n:"")&&"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),T=Object(r.useRef)(v),P=Object(r.useRef)(j),A=Object(r.useRef)(O),N=Object(r.useRef)(n),k=Object(r.useRef)(p),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,a;localStorage.clear();var n,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!==(n=new URL(window.location.href).searchParams.get("source"))&&void 0!==n?n: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!==(a=new URL(window.location.href).searchParams.get("refresh_token"))&&void 0!==a?a: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){Xr.a.configure(e),Xr.a.currentSession().then((function(){Xr.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:""),L.current(null),B.current(null),D.current(null),P.current(e.signInUserSession.accessToken),T.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,T,P,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])),a.a.createElement(h.Backdrop,{open:!0},a.a.createElement(h.CircularProgress,null))})),oa=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},sa=oa,la=i(523),ca=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(ra.b(t,i,r))},getPasswordPolicyAsync:function(){return e(la.b())},getUserAccessToken:function(t,i){return e(C.f(t,i))}}}))((function(e){var t=e.getPasswordPolicyAsync,i=e.getUserAccessToken,n=e.signIn,o=Object(ta.useMdsAppContext)().paths,s=Object(d.k)(),l=Object(r.useState)(!1),u=Object(c.a)(l,2),p=u[0],v=u[1],f=window.location.hostname.split("."),m=f&&f.length>0?f[0]:"localhost",y=sa();localStorage.setItem("userLoginSessionId",y);var g=Object(r.useCallback)((function(e){var t,i,r,a,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!==(a=new URL(window.location.href).searchParams.get("guid"))&&void 0!==a?a:"",p=null!==(l=new URL(window.location.href).searchParams.get("type"))&&void 0!==l?l:"";n({idpId:e.payload.sub,authenticated:!0,accessToken:e.jwtToken,jwtExpiration:1e3*e.getExpiration(),userName:e.payload.username},c,u),""!==h&&"session-link"===p?s.push("/registration/".concat(h)):""!==h&&"schedule-link"===p?s.push("/schedule/registration/".concat(h)):""!==h&&"learning-plan-link"===p?s.push("/learning-plan/".concat(h)):""!==h&&"learning-plan-report"===p?s.push("/report/learning-plans/".concat(h)):""!==h&&"certificate-link"===p?s.push("/certificate/".concat(h)):""!==h&&"attendance-sheet-link"===p?s.push("/attendance-sheet/".concat(h)):""!==d?s.push(d):s.push(o.home)}),[s,o.home,n]);return Object(r.useEffect)((function(){t(),Object(I.a)().then((function(e){Xr.a.configure(e),Xr.a.currentSession().then((function(){Xr.a.currentAuthenticatedUser().then((function(e){v(!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,n,p,v,y,g]),a.a.createElement(h.Backdrop,{open:!0},a.a.createElement(h.CircularProgress,{color:"secondary",variant:"indeterminate"}))})),da=i(185);function ua(){ua=function(){return e};var e={},t=Object.prototype,i=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",n=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 a=t&&t.prototype instanceof u?t:u,n=Object.create(a.prototype),o=new O(r||[]);return n._invoke=function(e,t,i){var r="suspendedStart";return function(a,n){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw n;return x()}for(i.method=a,i.arg=n;;){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),n}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 p(){}var v={};s(v,a,(function(){return this}));var f=Object.getPrototypeOf,m=f&&f(f(C([])));m&&m!==t&&i.call(m,a)&&(v=m);var y=p.prototype=u.prototype=Object.create(v);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(a,n){function o(){return new t((function(r,o){!function r(a,n,o,s){var l=c(e[a],e,n);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)}(a,n,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 a=r.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):a:(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[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r=0;--a){var n=this.tryEntries[a],o=n.completion;if("root"===n.tryLoc)return r("end");if(n.tryLoc<=this.prev){var s=i.call(n,"catchLoc"),l=i.call(n,"finallyLoc");if(s&&l){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&i.call(a,"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 a=r.arg;I(i)}return a}}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 ha=Object(s.b)(null,(function(e){return{signOut:function(){return e(ra.d())}}}))((function(e){var t,i,n=e.signOut,o=Object(ta.useMdsAppContext)().paths,s=Object(d.k)().push,c=window.location.hostname.split("."),u=(t=c&&c.length>0?c[0]:"localhost",/^[a-zA-Z0-9-]+$/.test(t)?t:"localhost"),p=new URLSearchParams(Object(d.l)().search).get("guid"),v=new URLSearchParams(Object(d.l)().search).get("type"),f=p?/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(i=p)?i:"":"",m=v||"";return Object(r.useEffect)((function(){da.a.clear(),localStorage.clear(),function(){for(var e=document.cookie.split(";"),t=0;t=0;--a){var n=this.tryEntries[a],o=n.completion;if("root"===n.tryLoc)return r("end");if(n.tryLoc<=this.prev){var s=i.call(n,"catchLoc"),l=i.call(n,"finallyLoc");if(s&&l){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&i.call(a,"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 a=r.arg;I(i)}return a}}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 fa=Object(s.b)((function(e){return{authentication:e.authentication}}),(function(e){return{clearUserAccessTokenStore:function(t){return e(C.d(t))},signOut:function(){return e(ra.d())}}}))((function(e){var t,i,n,o=e.signOut,s=e.clearUserAccessTokenStore,c=e.authentication,u=Object(ta.useMdsAppContext)().paths,p=Object(d.k)().push,v=null!==(t=new URL(window.location.href).searchParams.get("guid"))&&void 0!==t?t:"",f=null!==(i=new URL(window.location.href).searchParams.get("type"))&&void 0!==i?i:"",m=window.location.hostname.split("."),y=(n=m&&m.length>0?m[0]:"localhost",/^[a-zA-Z0-9-]+$/.test(n)?n:"localhost"),g=function(e){return/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(e)?e:""}(v),b=function(e){return["session-link","schedule-link","learning-plan-link","learning-plan-report","certificate-link","attendance-sheet-link"].includes(e)?e:""}(f);return Object(r.useEffect)((function(){(null!==localStorage.getItem("userLoginSessionId")&&""!==localStorage.getItem("userLoginSessionId")&&void 0!==localStorage.getItem("userLoginSessionId")||c.isExpired)&&s(localStorage.getItem("userLoginSessionId")||""),setTimeout((function(){da.a.clear(),localStorage.clear(),pa(),Xr.a.signOut().then(Object(l.a)(va().mark((function e(){var t,i;return va().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o();case 2:""!==b&&""!==g?(t=encodeURIComponent(Object(k.a)(g)),i=encodeURIComponent(Object(k.a)(b)),window.location.href="".concat("https://{host}.{app}.micronapps.com/".replace("{host}",y).replace("{app}","cem"),"signout?guid=").concat(t,"&type=").concat(i)):window.location.href="".concat("https://{host}.{app}.micronapps.com/".replace("{host}",y).replace("{app}","cem"),"signout");case 3:case"end":return e.stop()}}),e)})))).catch((function(){p(u.error503)}))}),3e3)}),[u.error503,u.signedOut,y,p,o,s,c.isExpired,f,v,g,b]),a.a.createElement(h.Backdrop,{open:!0},a.a.createElement(h.CircularProgress,{color:"inherit"}))})),ma=Object(z.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"}}})),ya=function(){var e=ma(),t=Object(z.useTheme)(),i=Object(z.useMediaQuery)(t.breakpoints.down("sm"));return Object(r.useEffect)((function(){pa()}),[]),a.a.createElement("div",{className:e.root,title:"SignedOut"},a.a.createElement(h.Typography,{align:"center",variant:i?"h3":"h1"},"SignedOut successful."),a.a.createElement(h.Typography,{align:"center",variant:"subtitle2"},"Please click the button below to go back to the login page."),a.a.createElement("div",{className:e.imageContainer},a.a.createElement("img",{alt:"Under development",className:e.image,src:"/images/undraw_authentication_fsn5.svg"})),a.a.createElement("div",{className:e.buttonContainer},a.a.createElement(h.Button,{color:"primary",linkTo:"/signin",variant:"outlined"},"Back to home")))},ga=i(31),ba=i.n(ga),Sa=Object(J.makeStyles)((function(e){var t=e.spacing;return{firmAvatar:{width:t(10),height:t(10)}}})),Ea=function(e){var t=e.open,i=e.onClose,r=e.title,n=e.description,o=Object(s.c)((function(e){var t;return null===(t=e.generalSettings.firm)||void 0===t?void 0:t.name})),l=Sa();return a.a.createElement(ba.a,{size:"sm",open:t,onClose:i},a.a.createElement(ga.SideDrawerHeader,{titleBar:{icon:{source:"custom",value:a.a.createElement(h.Avatar,{classes:{root:l.firmAvatar}},Object(N.i)(o))},title:a.a.createElement(h.Typography,{variant:"h6",color:"default"},r)}}),a.a.createElement(ga.SideDrawerBody,null,a.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular",color:"default"},a.a.createElement(h.TextEditorView,{model:Object(k.a)(n)}))))},Ia=i(26),Oa=i.n(Ia),Ca=i(134),xa=i(45),ja=i.n(xa),wa=i(40),Ta=i(22),Pa=(i(522),i(326)),Aa=i(35),Na=function(e,t,i,r,a){return function(n){return U.Y.getPortalComplianceMainPeriods(void 0,new v.Rc({userId:e,licenseId:t,periodFrom:i,periodTo:r,allPeriods:a})).then((function(e){return e})).catch((function(e){throw n(Object(Aa.b)(e)),e}))}},ka=function(e,t){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3?arguments[3]:void 0;return function(a){return U.Y.getPortalComplianceSubPeriods(void 0,new v.Tc({userId:e,licenseId:t,isCurrentPeriod:i,parentLicenseId:r})).then((function(e){return e})).catch((function(e){throw a(Object(Aa.b)(e)),e}))}},Da=function(e,t){return function(i){var r=new v.kd({userIdList:e,licenseId:t});return U.Y.getUserCompliancePeriods(void 0,r).then((function(e){return e})).catch((function(e){throw i(Object(Aa.b)(e)),e}))}},La=Object(s.b)((function(){return{}}),(function(e){return{getReportingPeriods:function(t,i){return e(Da(t,i))}}}))((function(e){var t,i,n=e.formikRef,o=e.getReportingPeriods,s=e.isCurrentPeriod,l=Object(r.useState)(),d=Object(c.a)(l,2),u=d[0],p=d[1],v=n.getFieldProps("CACPEReportUserIdList").value,f=Object(r.useCallback)((function(e){var t=e&&e.length>0?e:v;t&&t.length>0&&(p(void 0),o(t&&t,Z).then((function(e){p(e.sort((function(e,t){return t.periodTo.getYear()-e.periodTo.getYear()})))})))}),[v,o]);Object(r.useEffect)((function(){s||f()}),[f,s]);return a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0,key:"period"},!s&&(void 0===u?a.a.createElement(h.Skeleton,{width:500,height:30,variant:"rect"}):a.a.createElement(h.SelectField,{label:"Reporting Period: *",id:"CACPEReportYear",value:n.getFieldProps("CACPEReportYear").value,onChange:function(e){var t,i,r,a=e.target.value;n.setFieldValue("CACPEReportYear",null!==(t=u&&(null===(i=u.find((function(e){return(e.periodTo&&e.periodTo.getFullYear())===parseInt(a,10)})))||void 0===i||null===(r=i.periodTo)||void 0===r?void 0:r.getFullYear()))&&void 0!==t?t:"")},formikContext:!1,dense:!0,error:n.errors&&n.errors.CACPEReportYear,helperText:n.errors&&n.errors.CACPEReportYear&&a.a.createElement(h.Typography,{color:"error",variant:"caption"},n.errors.CACPEReportYear)},u.map((function(e){var t,i;return a.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))})))))),a.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0,key:"CACPEReportVersion1"},a.a.createElement(h.Box,{mt:1},a.a.createElement(h.Typography,{variant:"body1"},a.a.createElement(h.Radio,{id:"CACPEReportVersion1",key:"CACPEReportVersion1",checked:null!==(t=n.getFieldProps("CACPEReportVersion1").value)&&void 0!==t?t:n.getFieldProps("CACPEReportVersion1").value,color:"primary",onChange:function(e){n.setFieldValue("CACPEReportVersion1",e.target.checked),n.setFieldValue("CACPEReportVersion2",!e.target.checked)}}),"Include only courses supporting hours claimed"))),a.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0,key:"CACPEReportVersion2"},a.a.createElement(h.Typography,{variant:"body1"},a.a.createElement(h.Radio,{id:"CACPEReportVersion2",key:"CACPEReportVersion2",checked:null!==(i=n.getFieldProps("CACPEReportVersion2").value)&&void 0!==i?i:n.getFieldProps("CACPEReportVersion2").value,color:"primary",onChange:function(e){n.setFieldValue("CACPEReportVersion1",!e.target.checked),n.setFieldValue("CACPEReportVersion2",e.target.checked)}}),"Include courses supporting all hours completed",a.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}},a.a.createElement("span",null,"\xa0",a.a.createElement(h.SystemIcon,{icon:"Help"}))))))})),Ja=Object(s.b)(null,(function(e){return{getReportingPeriods:function(t,i){return e(Da(t,i))}}}))((function(e){var t=e.formikRef,i=e.getReportingPeriods,n=e.isEmptyReport,o=Object(r.useState)(),s=Object(c.a)(o,2),l=s[0],d=s[1],u=(new Date).getFullYear(),p=t.getFieldProps("NECPEReportUserIdList").value;return Object(r.useEffect)((function(){d(void 0),i(null!==p&&void 0!==p?p:[],pe).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(Li.a)(t),Object(Li.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,p,u]),a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0,key:"period"},void 0===l?a.a.createElement(h.Skeleton,{width:500,height:30,variant:"rect"}):a.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 a.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")))})))),n&&a.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0,key:"period"},a.a.createElement(h.Box,{m:3},a.a.createElement(h.Column,{crossAxisAlignment:"center",size:"max"},a.a.createElement(h.Alert,{type:"info",variant:"standard"},a.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},"The selected filters yield no results."))))))})),Fa=i(1041),Ba=i(103),Ra=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(Ba.c)(t,i,r))},generateNebraskaCPEReport:function(t,i){return e(Object(Ba.d)(t,i))}}}))((function(e){var t,i,n=e.reportId,o=e.licenseId,s=e.formikRef,l=e.selectedUser,d=e.selectedFirmLicenses,u=e.isCurrentPeriod,p=e.generateJurisdictionReport,v=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:n,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],T=j[1],P=Object(r.useState)(),A=Object(c.a)(P,2),N=A[0],k=A[1],D={initialValues:function(){var e={};switch(o){case Z:e={CACPEReportYear:"",CACPEReportVersion1:!1,CACPEReportVersion2:!0,CACPEReportUserIdList:[null===l||void 0===l?void 0:l.userId]};break;case pe:e={NECPEReportYear:0,NECPEReportUserIdList:[null===l||void 0===l?void 0:l.userId]}}return e}(),validationSchema:function(){var e={};switch(o){case Z:e={CACPEReportYear:u?Object(Ta.string)().nullable():Object(Ta.string)().required("Reporting Period is required.")};break;case pe:e={NECPEReportYear:Object(Ta.number)().min(1970,"Date Range is required").required("Date Range is required")}}return Object(Ta.object)().shape(e)}(),onSubmit:function(e,t){return function(e,t){var i=e.CACPEReportVersion1,r=e.CACPEReportYear,a=e.NECPEReportYear,n=e.NECPEReportUserIdList;t.setSubmitting(!0);var s={};switch(o){case Z:s={CACPEReportUserIdList:[null===l||void 0===l?void 0:l.userId],CACPEReportVersion:i?1:2,CACPEReportYear:u?f:r},p(m,JSON.stringify(s),null!==o&&void 0!==o?o:0).then((function(){t.setSubmitting(!1)}));break;case pe:s={NECPEReportYear:a,NECPEReportUserIdList:n},k(a),T(!0),S(!0),v(m,JSON.stringify(s)).then((function(e){C(e.userReports),t.setSubmitting(!1),T(!1)}))}}(e,t)}};return a.a.createElement(a.a.Fragment,null,a.a.createElement(wa.Formik,{initialValues:D.initialValues,validationSchema:D.validationSchema,onSubmit:D.onSubmit,innerRef:s,enableReinitialize:!0},(function(e){return a.a.createElement(h.Form,{id:"reportFilters"},a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:12,style:{padding:"0px"}},a.a.createElement(h.Typography,{variant:"h6"},"Report Criteria")),a.a.createElement(h.Grid,{item:!0,xs:12,style:{padding:"0px"}},a.a.createElement(h.Box,{ml:0,mr:0},o===Z?a.a.createElement(La,{formikRef:e,isCurrentPeriod:u}):o===pe?a.a.createElement(Ja,{formikRef:e,isEmptyReport:void 0!==O&&!(O&&O.length>0)}):a.a.createElement(a.a.Fragment,null)))))})),o===pe&&b&&a.a.createElement(Fa.a,{open:o===pe&&b,onClose:function(){return S(o===pe&&!1)},reportingYear:N,reportData:O||[],isLoading:w}))})),Ua=function(e){var t=e.open,i=e.onClose,n=e.licenseId,o=e.isCurrentPeriod,s=e.jurisdictionReportGuid,l=e.handleComplianceReportPrint,d=e.latestCAPeriodYear,u=Object(r.useState)(!1),p=Object(c.a)(u,2),v=p[0],f=p[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=[Z,pe];return a.a.createElement(Oa.a,{open:t,onClose:i,maxWidth:"xs",fullWidth:!0},a.a.createElement(Ia.DialogHeader,{titleBar:{title:"Print Report",onClose:i}}),a.a.createElement(Ia.DialogBody,null,a.a.createElement(h.Grid,{container:!0,spacing:"form",alignContent:"center",alignItems:"center",justify:"center"},"Jurisdiction"!==g?a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Grid,{item:!0,xs:12,md:12,lg:12},a.a.createElement(h.Card,{variant:"outlined"},a.a.createElement(h.CardActionArea,{onClick:function(){return E("Compliance")}},a.a.createElement(h.ListItem,null,a.a.createElement(h.Row,{mainAxisAlignment:"center",crossAxisAlignment:"middle"},a.a.createElement(h.Box,{m:1,flex:1},a.a.createElement(h.SystemIcon,{icon:"Cem-Compliance",size:"lg",color:"primary"})),a.a.createElement(h.Expanded,null,a.a.createElement(h.ListItemText,{primary:"Compliance Report"})),a.a.createElement(h.Box,{m:1,flex:1},v&&"Compliance"===g&&a.a.createElement(h.SystemIcon,{icon:"Loading",size:"sm",spin:!0}))))))),I.includes(n)&&a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.Card,{variant:"outlined"},a.a.createElement(h.CardActionArea,{onClick:function(){return E("Jurisdiction")}},a.a.createElement(h.ListItem,null,a.a.createElement(h.Row,{mainAxisAlignment:"center",crossAxisAlignment:"middle"},a.a.createElement(h.Box,{m:1,flex:1},a.a.createElement(h.SystemIcon,{icon:"Reports",size:"lg",color:"primary"})),a.a.createElement(h.Expanded,null,a.a.createElement(h.ListItemText,{primary:"Jurisdiction Report"})),a.a.createElement(h.Box,{m:1,flex:1},v&&"Jurisdiction"===g&&a.a.createElement(h.SystemIcon,{icon:"Loading",size:"sm",spin:!0})))))))):a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(Ra,{licenseId:n,isCurrentPeriod:o,formikRef:S,reportId:s,latestCAPeriodYear:d})))),"Jurisdiction"===g&&a.a.createElement(Ia.DialogFooter,null,a.a.createElement(h.Grid,{item:!0,xs:5}),a.a.createElement(h.Grid,{item:!0,xs:2,alignment:"center",stretchContent:!0},a.a.createElement(h.Button,{fullWidth:!0,variant:"contained",color:"primary",onClick:function(){S.current&&S.current.submitForm()}},"Print")),a.a.createElement(h.Grid,{item:!0,xs:5})))},Ga=function(e){switch(e.status){case 0:return a.a.createElement(h.Box,{bgcolor:"#E50019",width:"100%",borderRadius:"4px 4px 0px 0px",height:"6px"});case 1:return a.a.createElement(h.Box,{bgcolor:"#4CAF50",width:"100%",borderRadius:"4px 4px 0px 0px",height:"6px"});case 2:return a.a.createElement(h.Box,{bgcolor:"#1976D2",width:"100%",borderRadius:"4px 4px 0px0px",height:"6px"});case 3:return a.a.createElement(h.Box,{bgcolor:"#00417A",width:"100%",borderRadius:"4px 4px 0px 0px",height:"6px"});case 4:return a.a.createElement(h.Box,{bgcolor:"#FF8D11",width:"100%",borderRadius:"4px 4px 0px 0px",height:"6px"});case 5:return a.a.createElement(h.Box,{bgcolor:"#979797",width:"100%",borderRadius:"4px 4px 0px 0px",height:"6px"});default:return a.a.createElement(h.Box,null)}},Ma=i(225),qa=i.n(Ma),za=function(e){var t=e.format,i=e.size,r=e.type,n=e.color;switch(t){case"Classroom":return a.a.createElement(h.SystemIcon,{icon:"Cem-Classroom",size:i,type:r,color:n});case"On-demand":return a.a.createElement(h.SystemIcon,{icon:"Cem-OnDemand",size:i,type:r,color:n});case"Webcast":return a.a.createElement(h.SystemIcon,{icon:"Cem-Webinar",size:i,type:r,color:n});default:return a.a.createElement(h.SystemIcon,{icon:"Cem-OtherFormat",size:i,type:r,color:n})}},Wa=Object(s.b)((function(){return{}}),(function(){return{}})),Va=function(e){var t=e.grouping,i=e.record,n=e.totalsToDisplay,o=i.compliancePeriodCourseCredits,s=i.compliancePeriodCourseProperties,l=i.courseCreditTotal,c=i.courseFormat,d=i.courseFormatPortalCategory,u=i.dateTaken,p=i.isInstructed,v=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)(n),b=Object(r.useMemo)((function(){return a.a.createElement(qa.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 a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Grid,{item:!0,xs:1,key:"date_".concat(f),stretchContent:!0},a.a.createElement(h.Typography,{variant:"body1"},a.a.createElement("b",null,Object(N.c)(u)))),a.a.createElement(h.Grid,{item:!0,xs:3,key:"title_".concat(f),stretchContent:!0},a.a.createElement(h.Typography,{variant:"body1"},a.a.createElement("b",null,m))),a.a.createElement(h.Grid,{item:!0,xs:2,key:"provider_".concat(f),stretchContent:!0},a.a.createElement(h.Typography,{variant:"body1"},v)),a.a.createElement(h.Grid,{item:!0,xs:2,key:"format_".concat(f),stretchContent:!0},a.a.createElement(h.Row,null,a.a.createElement(h.Box,{mr:.5,flex:1},""!==c&&null!==c&&a.a.createElement(za,{type:"duotone",size:"sm",format:null!==d&&void 0!==d?d:""})),a.a.createElement(h.Box,{alignContent:"center",alignItems:"center"},a.a.createElement(h.Typography,{variant:"body1"},c)))),a.a.createElement(h.Grid,{item:!0,xs:2,key:"qualifier_".concat(f),stretchContent:!0},a.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(", "):"-")),a.a.createElement(h.Grid,{item:!0,xs:1,key:"instr_".concat(f),stretchContent:!0},p&&a.a.createElement(h.Box,{display:"flex",justifyContent:"center"},a.a.createElement(h.SystemIcon,{icon:"Instructor",color:"warning",type:"duotone",size:"sm"}))),a.a.createElement(h.Grid,{item:!0,xs:1,key:"totals_".concat(f),stretchContent:!0},a.a.createElement(h.Box,{display:"flex",justifyContent:"center"},a.a.createElement(h.Typography,{variant:"body1",color:"primary"},l&&l.total))),a.a.createElement(h.Grid,{item:!0,xs:12,key:"credits_".concat(f)},b))},_a=Wa((function(e){var t=e.expand,i=e.hasCarryOver,r=e.hasGrace,n=e.onToggleAction,o=e.summaryData,s=e.title,l=[{Header:a.a.createElement(h.Box,{width:"100%",bgcolor:"#F1F1F1",minHeight:"59px",display:"flex",alignItems:"center"},a.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 a.a.createElement(a.a.Fragment,null,-1===i&&a.a.createElement(h.Box,{width:"100%",minHeight:"20px",bgcolor:"#424242",display:"flex",alignItems:"center"},a.a.createElement(h.Box,{ml:1,mr:1})))}},{Header:a.a.createElement(h.Box,{width:"100%",bgcolor:"#F1F1F1",minHeight:"59px",display:"flex",alignItems:"center"},a.a.createElement(h.Box,{ml:1,mr:1},a.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 a.a.createElement(h.Box,{width:"100%",minHeight:-1===r?"20px":"auto",bgcolor:-1===r?"#424242":"inherit",display:"flex",alignItems:"center"},a.a.createElement(h.Box,{ml:1,mr:1},a.a.createElement(h.Typography,{variant:"body1",style:{color:-1===r?"#FAFAFA":"inherit"}},a.a.createElement("div",{dangerouslySetInnerHTML:{__html:"".concat(i.creditName)}}))))}},{Header:a.a.createElement(h.Box,{width:"100%",bgcolor:"#F1F1F1",minHeight:"59px",display:"flex",alignItems:"center",justifyContent:"center"},a.a.createElement(h.Box,{ml:1,mr:1},a.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,n=null!==(t=r.creditId)&&void 0!==t?t:0,o=null!==(i=r.carriedOver)&&void 0!==i?i:0;return a.a.createElement(h.Box,{width:"100%",minHeight:-1===n?"20px":"auto",bgcolor:-1===n?"#424242":"inherit",textAlign:"right"},a.a.createElement(h.Box,{mr:6},a.a.createElement(h.Typography,{variant:"body1",style:{color:-1===n?"#FAFAFA":"inherit"}},o.toFixed(2))))}},{Header:a.a.createElement(h.Box,{width:"100%",bgcolor:"#F1F1F1",minHeight:"59px",display:"flex",alignItems:"center",justifyContent:"center"},a.a.createElement(h.Box,{ml:1,mr:1},a.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,n=null!==(t=r.creditId)&&void 0!==t?t:0,o=null!==(i=r.currentGrace)&&void 0!==i?i:0;return a.a.createElement(h.Box,{width:"100%",minHeight:-1===n?"20px":"auto",bgcolor:-1===n?"#424242":"inherit",textAlign:"right"},a.a.createElement(h.Box,{mr:4},a.a.createElement(h.Typography,{variant:"body1",style:{color:-1===n?"#FAFAFA":"inherit"}},o.toFixed(2))))}},{Header:a.a.createElement(h.Box,{width:"100%",bgcolor:"#F1F1F1",minHeight:"59px",display:"flex",alignItems:"center",justifyContent:"center"},a.a.createElement(h.Box,{ml:1,mr:1},a.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,n=null!==(t=r.creditId)&&void 0!==t?t:0,o=null!==(i=r.earned)&&void 0!==i?i:0;return a.a.createElement(h.Box,{width:"100%",minHeight:-1===n?"20px":"auto",bgcolor:-1===n?"#424242":"inherit",textAlign:"right"},a.a.createElement(h.Box,{mr:4},a.a.createElement(h.Typography,{variant:"body1",style:{color:-1===n?"#FAFAFA":"inherit"}},o.toFixed(2))))}},{Header:a.a.createElement(h.Box,{width:"100%",bgcolor:"#F1F1F1",minHeight:"59px",display:"flex",alignItems:"center",justifyContent:"center"},a.a.createElement(h.Box,{ml:1,mr:1},a.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,n=null!==(t=r.creditId)&&void 0!==t?t:0,o=null!==(i=r.grace)&&void 0!==i?i:0;return a.a.createElement(h.Box,{width:"100%",minHeight:-1===n?"20px":"auto",bgcolor:-1===n?"#424242":"inherit",textAlign:"right"},a.a.createElement(h.Box,{mr:4},a.a.createElement(h.Typography,{variant:"body1",style:{color:-1===n?"#FAFAFA":"inherit"}},o.toFixed(2))))}},{Header:a.a.createElement(h.Box,{width:"100%",bgcolor:"#F1F1F1",minHeight:"59px",display:"flex",alignItems:"center",justifyContent:"center"},a.a.createElement(h.Box,{ml:1,mr:1},a.a.createElement(h.Typography,{variant:"overline"},"Retroactive",a.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,n=null!==(t=r.creditId)&&void 0!==t?t:0,o=null!==(i=r.retroactiveCredit)&&void 0!==i?i:0;return a.a.createElement(h.Box,{width:"100%",minHeight:-1===n?"20px":"auto",bgcolor:-1===n?"#424242":"inherit",textAlign:"right"},a.a.createElement(h.Box,{mr:7},a.a.createElement(h.Typography,{variant:"body1",style:{color:-1===n?"#FAFAFA":"inherit"}},o.toFixed(2))))}},{Header:a.a.createElement(h.Box,{width:"100%",bgcolor:"#F1F1F1",minHeight:"59px",display:"flex",alignItems:"center",justifyContent:"center"},a.a.createElement(h.Box,{ml:1,mr:1},a.a.createElement(h.Typography,{variant:"overline"},"Retroactive",a.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,n=null!==(t=r.creditId)&&void 0!==t?t:0,o=null!==(i=r.retroactiveDebit)&&void 0!==i?i:0;return a.a.createElement(h.Box,{width:"100%",minHeight:-1===n?"20px":"auto",bgcolor:-1===n?"#424242":"inherit",textAlign:"right"},a.a.createElement(h.Box,{mr:7},a.a.createElement(h.Typography,{variant:"body1",style:{color:-1===n?"#FAFAFA":"inherit"}},o.toFixed(2))))}},{Header:a.a.createElement(h.Box,{width:"100%",bgcolor:"#F1F1F1",minHeight:"59px",display:"flex",alignItems:"center",justifyContent:"center"},a.a.createElement(h.Box,{ml:1,mr:1},a.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,n=null!==(t=r.creditId)&&void 0!==t?t:0,o=null!==(i=r.applied)&&void 0!==i?i:0;return a.a.createElement(h.Box,{width:"100%",minHeight:-1===n?"20px":"auto",bgcolor:-1===n?"#424242":"inherit",textAlign:"right"},a.a.createElement(h.Box,{mr:4},a.a.createElement(h.Typography,{variant:"body1",style:{color:-1===n?"#FAFAFA":"inherit"}},o.toFixed(2))))}},{Header:a.a.createElement(h.Box,{width:"100%",bgcolor:"#F1F1F1",minHeight:"59px",display:"flex",alignItems:"center",justifyContent:"center"},a.a.createElement(h.Box,{ml:1,mr:1},a.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,n=null!==(t=r.creditId)&&void 0!==t?t:0,o=null!==(i=r.carryOver)&&void 0!==i?i:0;return a.a.createElement(h.Box,{width:"100%",minHeight:-1===n?"20px":"auto",bgcolor:-1===n?"#424242":"inherit",textAlign:"right"},a.a.createElement(h.Box,{mr:7},a.a.createElement(h.Typography,{variant:"body1",style:{color:-1===n?"#FAFAFA":"inherit"}},o.toFixed(2))))}},{Header:a.a.createElement(h.Box,{width:"100%",bgcolor:"#F1F1F1",minHeight:"59px",display:"flex",alignItems:"center",justifyContent:"center"},a.a.createElement(h.Box,{ml:1,mr:1},a.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,n=null!==(t=r.creditId)&&void 0!==t?t:0,o=null!==(i=r.unused)&&void 0!==i?i:0;return a.a.createElement(h.Box,{width:"100%",minHeight:-1===n?"20px":"auto",bgcolor:-1===n?"#424242":"inherit",textAlign:"right"},a.a.createElement(h.Box,{mr:5},a.a.createElement(h.Typography,{variant:"body1",style:{color:-1===n?"#FAFAFA":"inherit"}},o.toFixed(2))))}},{Header:a.a.createElement(h.Box,{width:"100%",bgcolor:"#F1F1F1",minHeight:"59px",display:"flex",alignItems:"center",justifyContent:"center"},a.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 a.a.createElement(a.a.Fragment,null,-1===i&&a.a.createElement(h.Box,{width:"100%",minHeight:"20px",bgcolor:"#424242",display:"flex",alignItems:"center"},a.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 a.a.createElement(h.Box,{mt:1},a.a.createElement(h.Card,{variant:"elevation"},a.a.createElement(h.ExpansionPanel,{onChange:function(){return n()},expanded:t,summaryVariant:"primary",summary:a.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},a.a.createElement("b",null,s)),details:o&&o.length>0?a.a.createElement(h.Box,{style:{overflow:"hidden",overflowX:"auto"}},a.a.createElement(h.Grid,{container:!0,spacing:"form",style:{minWidth:900}},a.a.createElement(h.Grid,{item:!0,xs:1,stretchContent:!0},a.a.createElement(h.Typography,{variant:"overline"},a.a.createElement("b",null,"DATE"))),a.a.createElement(h.Grid,{item:!0,xs:3,stretchContent:!0},a.a.createElement(h.Typography,{variant:"overline"},a.a.createElement("b",null,"COURSE"))),a.a.createElement(h.Grid,{item:!0,xs:2,stretchContent:!0},a.a.createElement(h.Typography,{variant:"overline"},a.a.createElement("b",null,"PROVIDER"))),a.a.createElement(h.Grid,{item:!0,xs:2,stretchContent:!0},a.a.createElement(h.Typography,{variant:"overline"},a.a.createElement("b",null,"FORMAT"))),a.a.createElement(h.Grid,{item:!0,xs:2,stretchContent:!0},a.a.createElement(h.Typography,{variant:"overline"},a.a.createElement("b",null,"QUALIFIER"))),a.a.createElement(h.Grid,{item:!0,xs:1,stretchContent:!0},a.a.createElement(h.Box,{display:"flex",alignItems:"center",justifyContent:"center"},a.a.createElement(h.Typography,{variant:"overline"},a.a.createElement("b",null,"INSTR.")))),a.a.createElement(h.Grid,{item:!0,xs:1,stretchContent:!0},a.a.createElement(h.Box,{display:"flex",alignItems:"center",justifyContent:"center"},a.a.createElement(h.Typography,{variant:"overline"},a.a.createElement("b",null,"TOTALS")))),a.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},a.a.createElement(h.Divider,{variant:"fullWidth",orientation:"horizontal",style:{height:"3px"}})),o.map((function(e){return a.a.createElement(Va,{grouping:s,totalsToDisplay:c,record:e,key:null===e||void 0===e?void 0:e.sessionParticipantId})})))):a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0,alignContent:"center",alignItems:"center",alignment:"center"},a.a.createElement(h.Typography,{variant:"body1",align:"center"},"NO RECORDS FOUND")))})))})),Ya=Object(s.b)((function(e){return{reportTokens:e.reports.reportTokens}}),(function(e){return{getCourseSummary:function(t,i,r,a){return e(function(e,t,i,r){return function(a){return U.Y.getUserLicenseComplianceCourseSummary(void 0,new v.jd({userId:e,licenseId:t,periodNumber:i,groupingName:r})).then((function(e){return e})).catch((function(e){throw a(Object(Aa.b)(e)),e}))}}(t,i,r,a))},setReport:function(t){return e(Object(Ba.h)(t))},getReportId:function(t){return e(Object(Ba.e)(t))},getReportFilters:function(t){return e(Object(Ba.f)(t))},exportReport:function(t,i,r){return e(Object(Ba.b)(t,i,r))}}}))((function(e){var t,i=e.getCourseSummary,n=e.licenseId,o=e.licenseName,s=e.onClose,l=e.open,d=e.period,u=e.userId,p=e.userFullName,v=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),T=Object(c.a)(w,2),P=T[0],A=T[1],k=Object(r.useState)(),L=Object(c.a)(k,2),J=L[0],F=L[1],B=Object(r.useState)(),R=Object(c.a)(B,2),U=R[0],G=R[1],M=Object(r.useState)(),q=Object(c.a)(M,2),z=q[0],W=q[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),ae=Object(c.a)(re,2),ne=ae[0],oe=ae[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,n,d.periodNumber,"all").then((function(e){F(e),$(e.compliancePeriodCourses),!0===e.hasCarryOver&&i(u,n,d.periodNumber,"CarriedIn").then((function(e){G(e.compliancePeriodCourses)})),!0===e.hasRetro&&i(u,n,d.periodNumber,"RetroApplied").then((function(e){W(e.compliancePeriodCourses)}))})).finally((function(){I(!0)}))}),[i,d.periodNumber,u,n]);var ue=function(e){var t=Object(Li.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(D.a)(Object(D.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 a.a.createElement(Oa.a,{fullWidth:!0,maxWidth:"xl",open:l,onClose:s},a.a.createElement(h.Backdrop,{open:!E},a.a.createElement(h.CircularProgress,{color:"secondary"})),a.a.createElement(Ia.DialogHeader,{titleBar:{title:"Application Summary",headline:o,subtitle:a.a.createElement(h.Row,{mainAxisAlignment:"center"},a.a.createElement(h.Box,null,a.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&&a.a.createElement(h.Box,{ml:1},a.a.createElement(h.Typography,{variant:"h6"},"(",d.periodLabel,")"))),actionRow:a.a.createElement(h.Row,{mainAxisAlignment:"center"},a.a.createElement(h.Button,{color:"primary",variant:"text",size:"medium",onClick:function(){return function(){var e=Object(Li.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(D.a)(Object(D.a)({},x),{},{values:e}))}()}},P?"Collapse All":"Expand All"),a.a.createElement(h.Button,{color:"primary",variant:"text",size:"medium",onClick:function(){return function(){var e=Object(ea.v4)(),t=[];return te.forEach((function(e){var i,r,a="";switch(e.sourceFieldName){case"@filter_userlicensecomplianceid":a="".concat(d.userLicenseComplianceId);break;case"@filter_license":a=o;break;case"@filter_employee":a=p;break;case"@filter_show_retro":a=(null===J||void 0===J?void 0:J.hasRetro)?"TRUE":"FALSE";break;case"@filter_show_currentperiod":a=Y?"TRUE":"FALSE";break;case"@filter_has_carryover":a=(null===J||void 0===J?void 0:J.hasCarryOver)?"TRUE":"FALSE";break;case"@filter_has_grace":a=(null===J||void 0===J?void 0:J.hasGrace)?"TRUE":"FALSE";break;case"@filter_show_carriedin":a=(null===J||void 0===J?void 0:J.hasCarryOver)?"TRUE":"FALSE"}t.push({key:e.id,value:a,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===v||void 0===v?void 0:v.token,tenantId:null===v||void 0===v?void 0:v.tenantId,fileSessionKey:e},"pdf","".concat(p," ").concat(o," Application Summary")).then((function(){de(!1)}))}()},disabled:!ne,loading:ce}," ",a.a.createElement(h.Row,null,a.a.createElement(h.SystemIcon,{icon:"PdfExport",size:"sm"}),a.a.createElement(h.Box,{ml:1},a.a.createElement(h.Typography,{variant:"body1"},"Download")))),a.a.createElement(h.IconButton,{type:"reset",onClick:s,color:"default",id:"closeButton"},a.a.createElement(h.SystemIcon,{icon:"Close",size:"sm"})))},colorMode:"light"}),a.a.createElement(Ia.DialogBody,{maxWidth:"xl",bgColor:"white"},(null===J||void 0===J?void 0:J.hasCarryOver)&&a.a.createElement(_a,{onToggleAction:function(){return ue(0)},expand:x.values[0].toggled,hasCarryOver:null===J||void 0===J?void 0:J.hasCarryOver,hasGrace:null===J||void 0===J?void 0:J.hasGrace,summaryData:U,title:"Carried In"}),(null===J||void 0===J?void 0:J.hasRetro)&&a.a.createElement(_a,{onToggleAction:function(){return ue(1)},expand:x.values[1].toggled,hasCarryOver:null===J||void 0===J?void 0:J.hasCarryOver,hasGrace:null===J||void 0===J?void 0:J.hasGrace,summaryData:z,title:"Retro-Actively Applied"}),Y&&a.a.createElement(_a,{onToggleAction:function(){return ue(2)},expand:x.values[2].toggled,hasCarryOver:null===J||void 0===J?void 0:J.hasCarryOver,hasGrace:null===J||void 0===J?void 0:J.hasGrace,summaryData:Y,title:"Current Period Courses"})))})),$a=Object(s.b)((function(){return{}}),(function(){return{}}))((function(e){var t,i,n,o,l,d,u,p,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),T=w[0],P=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()),D=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)}))},L=[{Header:"Credit Type",accessor:"CreditName",width:O&&O?0:g===ae||g===re||g===te?400:375,wrapText:!0,showOnMobile:!0,Cell:function(e){var t,i,r,n,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 a.a.createElement(a.a.Fragment,null,(s>0||s<-1)&&a.a.createElement(a.a.Fragment,null,0===l&&a.a.createElement(h.Typography,{variant:J(null!==(r=y.compliancePeriodTotals)&&void 0!==r?r:[]).length>8?"subtitle2":"subtitle1",weight:"regular"},a.a.createElement("div",{dangerouslySetInnerHTML:{__html:"".concat(o.creditName)}})),l<0&&a.a.createElement(h.Box,{ml:5},a.a.createElement(h.Typography,{variant:J(null!==(n=y.compliancePeriodTotals)&&void 0!==n?n:[]).length>8?"subtitle2":"subtitle1",weight:"regular"},a.a.createElement("div",{dangerouslySetInnerHTML:{__html:"".concat(o.creditName)}})))),-1===s&&a.a.createElement(h.Box,{mr:2},a.a.createElement(h.Typography,{variant:"overline",align:"right"},"Total Credits")))},disableSortBy:!0},{Header:"Required",accessor:"Required",align:"center",width:O&&O?0:g===ae||g===re||g===te?300:75,showOnMobile:!0,Cell:function(e){var t,i,r,n,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 a.a.createElement(h.Box,null,l>=0&&-1===o.creditId&&a.a.createElement(h.Typography,{variant:J(null!==(r=y.compliancePeriodTotals)&&void 0!==r?r:[]).length>8?"subtitle2":"subtitle1",weight:"regular",align:"center"},a.a.createElement("b",null,s.toFixed(2))),l>=0&&-1!==o.creditId&&a.a.createElement(h.Typography,{variant:J(null!==(n=y.compliancePeriodTotals)&&void 0!==n?n:[]).length>8?"subtitle2":"subtitle1",weight:"regular",align:"center"},s.toFixed(2)))},disableSortBy:!0},{Header:a.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,n,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 a.a.createElement(h.Box,null,-1===o.creditId&&a.a.createElement(h.Typography,{variant:J(null!==(r=y.compliancePeriodTotals)&&void 0!==r?r:[]).length>8?"subtitle2":"subtitle1",weight:"regular",align:"center"},a.a.createElement("b",null,s.toFixed(2))),-1!==o.creditId&&a.a.createElement(h.Typography,{variant:l>=0?J(null!==(n=y.compliancePeriodTotals)&&void 0!==n?n:[]).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,n,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 a.a.createElement(h.Box,null,-1===o.creditId&&a.a.createElement(h.Typography,{variant:J(null!==(r=y.compliancePeriodTotals)&&void 0!==r?r:[]).length>8?"subtitle2":"subtitle1",weight:"regular",align:"center"},a.a.createElement("b",null,s.toFixed(2))),-1!==o.creditId&&a.a.createElement(h.Typography,{variant:l>=0?J(null!==(n=y.compliancePeriodTotals)&&void 0!==n?n:[]).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,n,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 a.a.createElement(h.Box,null,-1===o.creditId&&a.a.createElement(h.Typography,{variant:J(null!==(r=y.compliancePeriodTotals)&&void 0!==r?r:[]).length>8?"subtitle2":"subtitle1",weight:"regular",align:"center"},a.a.createElement("b",null,s.toFixed(2))),-1!==o.creditId&&a.a.createElement(h.Typography,{variant:l>=0?J(null!==(n=y.compliancePeriodTotals)&&void 0!==n?n:[]).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===ae||g===re||g===te?300:75,showOnMobile:!0,Cell:function(e){var t,i,r,n,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 a.a.createElement(h.Box,null,-1===o.creditId&&a.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"},a.a.createElement("b",null,s.toFixed(2))),-1!==o.creditId&&a.a.createElement(h.Typography,{variant:l>=0?J(null!==(n=y.compliancePeriodTotals)&&void 0!==n?n:[]).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,n,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 a.a.createElement(h.Box,null,-1===o.creditId&&a.a.createElement(h.Typography,{variant:J(null!==(r=y.compliancePeriodTotals)&&void 0!==r?r:[]).length>8?"subtitle2":"subtitle1",weight:"regular",align:"center"},a.a.createElement("b",null,s.toFixed(2))),-1!==o.creditId&&a.a.createElement(h.Typography,{variant:l>=0?J(null!==(n=y.compliancePeriodTotals)&&void 0!==n?n:[]).length>8?"subtitle2":"subtitle1":"body1",weight:"regular",align:"center"},s.toFixed(2)))},disableSortBy:!0},{Header:a.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,n,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 a.a.createElement(h.Box,null,-1===o.creditId&&a.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"},a.a.createElement("b",null,s.toFixed(2))),-1!==o.creditId&&a.a.createElement(h.Typography,{variant:l>=0?J(null!==(n=y.compliancePeriodTotals)&&void 0!==n?n:[]).length>8?"subtitle2":"subtitle1":"body1",weight:"regular",color:s<0?"error":"default",align:"center"},s.toFixed(2)))},disableSortBy:!0},{Header:a.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,n,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 a.a.createElement(h.Box,null,-1===o.creditId&&a.a.createElement(h.Typography,{variant:J(null!==(r=y.compliancePeriodTotals)&&void 0!==r?r:[]).length>8?"subtitle2":"subtitle1",weight:"regular",align:"center"},a.a.createElement("b",null,s.toFixed(2))),-1!==o.creditId&&a.a.createElement(h.Typography,{variant:l>=0?J(null!==(n=y.compliancePeriodTotals)&&void 0!==n?n:[]).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,n,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 a.a.createElement(h.Box,null,-1===o.creditId&&a.a.createElement(h.Typography,{variant:J(null!==(r=y.compliancePeriodTotals)&&void 0!==r?r:[]).length>8?"subtitle2":"subtitle1",weight:"regular",align:"center"},a.a.createElement("b",null,s.toFixed(2))),-1!==o.creditId&&a.a.createElement(h.Typography,{variant:l>=0?J(null!==(n=y.compliancePeriodTotals)&&void 0!==n?n:[]).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,n,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 a.a.createElement(h.Box,null,-1===o.creditId&&a.a.createElement(h.Typography,{variant:J(null!==(r=y.compliancePeriodTotals)&&void 0!==r?r:[]).length>8?"subtitle2":"subtitle1",weight:"regular",align:"center"},a.a.createElement("b",null,s.toFixed(2))),-1!==o.creditId&&a.a.createElement(h.Typography,{variant:l>=0?J(null!==(n=y.compliancePeriodTotals)&&void 0!==n?n:[]).length>8?"subtitle2":"subtitle1":"body1",weight:"regular",align:"center"},s.toFixed(2)))},disableSortBy:!0},{Header:a.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,n,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 a.a.createElement(h.Box,null,-1===o.creditId&&a.a.createElement(h.Typography,{variant:J(null!==(r=y.compliancePeriodTotals)&&void 0!==r?r:[]).length>8?"subtitle2":"subtitle1",weight:"regular",align:"center"},a.a.createElement("b",null,s.toFixed(2))),-1!==o.creditId&&a.a.createElement(h.Typography,{variant:l>=0?J(null!==(n=y.compliancePeriodTotals)&&void 0!==n?n:[]).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,n,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 a.a.createElement(h.Box,null,-1===o.creditId&&a.a.createElement(h.Typography,{variant:J(null!==(r=y.compliancePeriodTotals)&&void 0!==r?r:[]).length>8?"subtitle2":"subtitle1",weight:"regular",align:"center"},a.a.createElement("b",null,s.toFixed(2))),-1!==o.creditId&&a.a.createElement(h.Typography,{variant:l>=0?J(null!==(n=y.compliancePeriodTotals)&&void 0!==n?n:[]).length>8?"subtitle2":"subtitle1":"body1",weight:"regular",align:"center"},s.toFixed(2)))},disableSortBy:!0},{Header:a.a.createElement(h.Typography,{variant:"overline",style:{whiteSpace:"pre-wrap",textAlign:"center"}},"Credits Needed"),accessor:"CreditsNeeded",align:"center",width:O&&O?0:g===ae||g===re||g===te?300:75,wrapText:!0,showOnMobile:!0,Cell:function(e){var t,i,r,n,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 a.a.createElement(h.Box,null,l>=0&&-1===o.creditId&&a.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"},a.a.createElement("b",null,s.toFixed(2))),l>=0&&-1!==o.creditId&&a.a.createElement(h.Typography,{variant:J(null!==(n=y.compliancePeriodTotals)&&void 0!==n?n:[]).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,a,n,o,s=Array();return s=m?L:L.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!==(a=e.map((function(e){return e.currentGrace})).find((function(e){return e&&e>0})))&&void 0!==a?a:0)&&(s=s.filter((function(e){return"CurrentGrace"!==e.accessor}))),0===(null!==(n=e.map((function(e){return e.overlap})).find((function(e){return e&&e>0})))&&void 0!==n?n: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!==ae&&g!==re&&g!==te||(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 a.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},a.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 a.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 a.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 a.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 a.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 a.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 a.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,n=null!==(t=r.statusId)&&void 0!==t?t:0,o=n===v.B.NotInCompliance||n===v.B.NonMandatory||n===v.B.NotTracked||n===v.B.Inactive?"error":n===v.B.Extension||n===v.B.Pending?"warning":n===v.B.InProgress?"info":"success";return a.a.createElement(a.a.Fragment,null,a.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 a.a.createElement(a.a.Fragment,null)},disableSortBy:!0}],B=[{Header:"Completed",accessor:"DateTaken",showOnMobile:!0,Cell:function(e){var t=e.row.original;return a.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,n=i.title!==i.sessionTitle;return a.a.createElement(h.Row,null,r&&a.a.createElement(h.Box,{mr:1},a.a.createElement(h.Typography,{variant:"body1",color:"secondary"},"*"," ")),a.a.createElement(h.Column,null,a.a.createElement(h.Row,null,a.a.createElement(h.Typography,{variant:"body1"},a.a.createElement("b",null,"".concat(i.title).concat(n?" : ":"")))),n&&a.a.createElement(h.Row,null,a.a.createElement(h.Typography,{variant:"body1"},a.a.createElement("b",null,i.sessionTitle))),a.a.createElement(h.Row,null,a.a.createElement(h.Typography,{variant:"body1"},i.provider)),i.isWithinGracePeriod&&a.a.createElement(h.Row,null,a.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&&a.a.createElement(h.Row,null,a.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 a.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 a.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 a.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,n,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===Q&&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===n?void 0:n.map((function(e,t){return a.a.createElement(a.a.Fragment,null,t?"; ":"",a.a.createElement("b",null,e.value)," ",e.creditName,"\xa0",a.a.createElement(h.Typography,{variant:"caption",color:"secondary",component:"span"},a.a.createElement("i",null,"(Mapping Unapproved)"))," ")}))),a.a.createElement(h.Typography,{variant:"body1"},a.a.createElement("div",{dangerouslySetInnerHTML:{__html:"".concat(c)}})),!Object(x.isEmpty)(f)&&a.a.createElement(h.Typography,{variant:"body2",component:"span"},f)),a.a.createElement(h.Column,null,s.sessionLicenses&&s.sessionLicenses[0].licenseStatus===v.Dd.Denied&&a.a.createElement(h.Typography,{variant:"body2",color:"secondary",component:"span"},a.a.createElement("i",null,"(Denied)"))),a.a.createElement(h.Column,null,s.sessionLicenses&&s.sessionLicenses[0].licenseStatus===v.Dd.Pending&&a.a.createElement(h.Typography,{variant:"caption",color:"secondary",component:"span"},a.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 a.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},a.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 a.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},t.earned)},disableSortBy:!0},{Header:"",accessor:"StatusId",width:O&&O?0:1250,Cell:function(){return a.a.createElement(a.a.Fragment,null)},disableSortBy:!0}],U=[{Header:"Field of Study",accessor:"SubjectAreaName",showOnMobile:!0,Cell:function(e){var t=e.row.original;return a.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 a.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 a.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},t.creditName)},disableSortBy:!0}];return a.a.createElement(a.a.Fragment,null,a.a.createElement(Ga,{status:y.complianceStatusId}),a.a.createElement(h.List,{subheader:a.a.createElement(a.a.Fragment,null,a.a.createElement(h.ListSubheader,{disableSticky:!0,colorMode:y.isSubLicensePeriod?"dark":"main"},a.a.createElement(h.Grid,{container:!0},a.a.createElement(h.Grid,{item:!0,xs:y.compliancePeriodAdditionalRequirements&&y.compliancePeriodAdditionalRequirements.length>0&&A?6:9},a.a.createElement(h.Box,{m:2},a.a.createElement(h.Column,null,a.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))),a.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},y.periodLabel)))),y.compliancePeriodAdditionalRequirements&&y.compliancePeriodAdditionalRequirements.length>0&&A&&a.a.createElement(h.Grid,{item:!0,xs:4,justifyContent:"flex-end",alignment:"center-right",alignItems:"stretch"},a.a.createElement(h.Column,{mainAxisAlignment:"middle"},a.a.createElement(h.Box,null,a.a.createElement(h.Alert,{variant:"standard",type:"warning"},"Please check additional requirements below")))),a.a.createElement(h.Grid,{item:!0,xs:y.compliancePeriodAdditionalRequirements&&y.compliancePeriodAdditionalRequirements.length>0&&A?2:3,alignment:"center-right"},a.a.createElement(h.Row,{mainAxisAlignment:"end"},I&&a.a.createElement(h.Box,{mr:3,mt:3},a.a.createElement(h.Link,{underline:"none",onClick:function(){return P(!0)}},a.a.createElement(h.Typography,null,"Application Summary"))),a.a.createElement(h.Box,{mt:1},y.complianceStatusId===v.B.InProgress?a.a.createElement(h.Tooltip,{title:"In Progress",key:"In Progress"},a.a.createElement("span",null,a.a.createElement(h.SystemIcon,{icon:"Repeat",size:"lg",color:"primary"}))):y.complianceStatusId===v.B.InCompliance?a.a.createElement(h.Tooltip,{title:"In Compliance",key:"In Compliance"},a.a.createElement("span",null,a.a.createElement(h.SystemIcon,{icon:"Success",size:"lg",color:"success"}))):y.complianceStatusId===v.B.Extension?a.a.createElement(h.Tooltip,{title:"Grace Period",key:"Grace Period"},a.a.createElement("span",null,a.a.createElement(h.SystemIcon,{icon:"Repeat",size:"lg",color:"secondary"}))):y.complianceStatusId===v.B.Pending?a.a.createElement(h.Tooltip,{title:"Pending",key:"Pending"},a.a.createElement("span",null,a.a.createElement(h.SystemIcon,{icon:"Clock",size:"lg",color:"warning"}))):y.complianceStatusId===v.B.NotInCompliance?a.a.createElement(h.Tooltip,{title:"Not in Compliance",key:"Not in Compliance"},a.a.createElement("span",null,a.a.createElement(h.SystemIcon,{icon:"Error",size:"lg",color:"error"}))):""))))),a.a.createElement(h.Box,{mb:1},a.a.createElement(h.Card,{variant:"outlined"},a.a.createElement(h.Grid,{item:!0,xs:12,lg:12,alignment:"center-right"},y.isPriorPeriodDeficient&&a.a.createElement(h.Box,{mr:5,mt:2,mb:1},a.a.createElement(h.Typography,{variant:"overline",color:"error"},a.a.createElement(h.SystemIcon,{icon:"Error"}),a.a.createElement("b",null," Prior Period Deficiency")))))))},a.a.createElement("div",{id:"creditTotals",style:{zoom:J(null!==(n=y.compliancePeriodTotals)&&void 0!==n?n:[]).length>6&&O?"60%":"100%"}},a.a.createElement(h.DataGrid,{advanced:!0,hideRowsPerPage:!0,hideRowCountDisplay:!0,columns:J(null!==(o=y.compliancePeriodTotals)&&void 0!==o?o:[]),data:D(null!==(l=y.compliancePeriodTotals)&&void 0!==l?l:[]),pageSize:D(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 a.a.createElement(h.Box,{mt:2,key:e.note},a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"}," ",a.a.createElement("div",{dangerouslySetInnerHTML:{__html:"".concat(Object(k.a)(Object(ii.c)(null!==(t=e.note)&&void 0!==t?t:"")))}}))))})),y.compliancePeriodAdditionalRequirements&&y.compliancePeriodAdditionalRequirements.length>0&&a.a.createElement(h.Box,{mt:3},a.a.createElement(h.Card,{variant:"elevation"},a.a.createElement(h.ExpansionPanel,{defaultExpanded:!0,summaryVariant:"default",summary:a.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},"ADDITIONAL REQUIREMENTS"),details:a.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&&a.a.createElement(h.Box,{mt:3},a.a.createElement(h.Card,{variant:"elevation"},a.a.createElement(h.ExpansionPanel,{defaultExpanded:!0,summaryVariant:"default",summary:a.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},"RESTRICTIONS"),details:a.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&&a.a.createElement(h.Box,{mt:3},a.a.createElement(h.Card,{variant:"elevation"},a.a.createElement(h.ExpansionPanel,{defaultExpanded:!0,summaryVariant:"default",summary:a.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},"FIELDS OF STUDY"),details:a.a.createElement(h.Column,null,a.a.createElement(h.DataGrid,{advanced:!0,hideRowCountDisplay:!0,hideRowsPerPage:!0,columns:U,data:y.compliancePeriodSubjectAreas,pageSize:y.compliancePeriodSubjectAreas.length}),a.a.createElement(h.Box,{mt:2},a.a.createElement(h.Typography,{variant:"body1"},"The above chart displays Accounting Fields of Study credits in relation to jurisdictional credit types.")))}))),a.a.createElement(h.Box,{mt:3,mb:1},a.a.createElement(h.Card,{background:"grey",variant:"outlined"},a.a.createElement(h.CardContent,null,a.a.createElement(h.Typography,{variant:"overline"},"Course History"))),a.a.createElement(h.Card,{background:"default",variant:"outlined"},a.a.createElement(h.CardContent,null,a.a.createElement("div",{id:"additionalRqrmts",style:{zoom:"70%"}},a.a.createElement(h.DataGrid,{advanced:!0,hideRowCountDisplay:!0,hideRowsPerPage:!0,columns:B,pageSize:O?(null!==(p=y.compliancePeriodCourseHistory)&&void 0!==p?p:[]).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})))&&a.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"," "))))),T&&a.a.createElement(Ya,{open:T,onClose:function(){return P(!1)},licenseId:g,userId:S,userFullName:C,period:y,licenseName:b}))})),Ha=function(e){var t,i=document.getElementById("printButton"),r=document.getElementById("closeButton");i&&(i.style.display="none"),r&&(r.style.display="none");var a=null===(t=document.getElementById("".concat(e)))||void 0===t?void 0:t.innerHTML,n=document.getElementById("ifmcontentstoprint").contentWindow;n&&(n.document.open(),n.document.write(null!==a&&void 0!==a?a:""),n.document.close(),n.focus(),n.print()),i&&(i.style.display="block"),r&&(r.style.display="block")},Ka=Object(s.b)((function(){return{}}),(function(e){return{getSelectedRegulatorSummary:function(t){return e(function(e){return function(t){return U.F.get(e,void 0).then((function(e){return e})).catch((function(e){throw t(Object(Aa.b)(e)),e}))}}(t))}}}))((function(e){var t=e.onClose,i=e.open,n=e.licenseId,o=e.licenseName,s=e.getSelectedRegulatorSummary,l=Object(r.useState)(),d=Object(c.a)(l,2),u=d[0],p=d[1],v=Object(r.useState)(!1),f=Object(c.a)(v,2),m=f[0],y=f[1];Object(r.useEffect)((function(){y(!0),s(n).then((function(e){p(e.summary),y(!1)}))}),[s,n]);var g="".concat(o," Rules and Regulations");return a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Dialog,{maxWidth:"lg",open:i&&!m,onClose:t,id:"shortSummary"},u&&a.a.createElement(a.a.Fragment,null,a.a.createElement(Ia.DialogHeader,{titleBar:{title:g,actionRow:a.a.createElement(a.a.Fragment,null,a.a.createElement(h.IconButton,{type:"submit",onClick:function(){return Ha("shortSummary")},color:"primary",id:"printButton"},a.a.createElement(h.SystemIcon,{icon:"Print",size:"sm"})),a.a.createElement(h.IconButton,{type:"submit",onClick:t,color:"primary",id:"closeButton"},a.a.createElement(h.SystemIcon,{icon:"Close",size:"sm"})))}}),a.a.createElement(Ia.DialogBody,null,a.a.createElement("div",{dangerouslySetInnerHTML:{__html:"".concat(u)}})),a.a.createElement(Ia.DialogFooter,null,a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.Divider,null)),a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.Typography,{variant:"caption"},a.a.createElement(h.Box,{mb:1},"This compliance rule summary and all compliance reports in CE Manager were prepared by Litera to provide the most accurate summary of rules that affect credit calculations and compliancy status, Litera works in conjunction with its own professionals, administrators from Litera 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."),a.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."),"Litera 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 Litera 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&&a.a.createElement(Ia.DialogBody,null," ",a.a.createElement(h.CircularProgress,null)," ")),a.a.createElement("iframe",{id:"ifmcontentstoprint",style:{height:0,width:0,position:"absolute"},title:g}))})),Qa=Object(z.makeStyles)((function(e){return{large:{width:e.spacing(8),height:e.spacing(8)}}})),Za=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 U.Y.getPortalComplianceReport(void 0,new v.Sc({userId:e,licenseId:t,isCurrentPeriod:i})).then((function(e){return e})).catch((function(e){throw r(Object(Aa.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 U.Y.getPortalComplianceReportByGuid(e,t,void 0).then((function(e){return e})).catch((function(e){throw i(Object(Aa.b)(e)),e}))}}(t,i))},getMainPeriods:function(t,i,r,a,n){return e(Na(t,i,r,a,n))},getSubLicensePeriods:function(t,i,r,a){return e(ka(t,i,a,r))},getCurrentLicenseInfo:function(t){return e(function(e){return function(t){return U.ab.getAllUserLicensesCurrentPeriod(void 0,v.wc.fromJS(e)).then((function(e){return e.userLicenseCompliancePeriods})).catch((function(e){t(Object(Aa.b)(e))}))}}(t))},setSelectedComplianceReportToPrint:function(t){return e((i=t,{type:Pa.a,payload:i}));var i}}}))(Object(d.o)((function(e){var t,i,n,o,s,l,d,u,p,f,m,y,g,b,S,E,I,O,C,x=e.getComplianceReport,j=e.getMainPeriods,w=e.licenseId,T=e.userId,P=e.guid,A=e.getComplianceReportByGuid,k=e.history,D=e.getCurrentLicenseInfo,L=e.userLicenses,J=e.setSelectedComplianceReportToPrint,F=Qa(),B=Object(r.useState)(!1),R=Object(c.a)(B,2),U=R[0],G=R[1],M=Object(r.useState)(),q=Object(c.a)(M,2),z=q[0],W=q[1],V=Object(r.useState)(),_=Object(c.a)(V,2),Y=_[0],$=_[1],H=Object(r.useState)(),Q=Object(c.a)(H,2),te=Q[0],re=Q[1],ae=Object(r.useState)(1),oe=Object(c.a)(ae,2),se=oe[0],le=oe[1],de=Object(r.useState)(0),ue=Object(c.a)(de,2),ve=ue[0],fe=ue[1],me=Object(r.useState)(!1),ye=Object(c.a)(me,2),ge=ye[0],be=ye[1],Ee=Object(r.useState)(1),Ie=Object(c.a)(Ee,2),Oe=Ie[0],Ce=Ie[1],xe=Object(r.useState)(!1),je=Object(c.a)(xe,2),we=je[0],Te=je[1],Pe=Object(r.useState)(),Ae=Object(c.a)(Pe,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=[v.B.NotTracked,v.B.Inactive,v.B.Pending,v.B.NonMandatory],Ue=Array(),Ge=0,Me=Object(r.useState)(0),qe=Object(c.a)(Me,2),ze=qe[0],We=qe[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,a,n;W(e.portalUserLicenseCompliance),be(null!==(t=null===(i=e.portalUserLicenseCompliance)||void 0===i?void 0:i.isSubLicenseRolling)&&void 0!==t&&t),fe(null!==(r=null===(a=e.portalUserLicenseCompliance)||void 0===a?void 0:a.subLicenseId)&&void 0!==r?r:0),e.subLicensePeriods&&(null===(n=e.subLicensePeriods)||void 0===n?void 0:n.length)>0&&$(e.subLicensePeriods),re(e.mainLicensePeriods),Te(!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,a,n,o,s,l;(W(e.portalUserLicenseCompliance),be(null!==(t=null===(i=e.portalUserLicenseCompliance)||void 0===i?void 0:i.isSubLicenseRolling)&&void 0!==t&&t),fe(null!==(r=null===(a=e.portalUserLicenseCompliance)||void 0===a?void 0:a.subLicenseId)&&void 0!==r?r:0),e.subLicensePeriods&&(null===(n=e.subLicensePeriods)||void 0===n?void 0:n.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);re(e.mainLicensePeriods),Te(!0)})).catch((function(){k.push("/error404")}))}),[x,k]);Object(r.useEffect)((function(){Te(!1),le(1),P?Ve(P,!0):_e(T,w,!0);var e=new v.wc({userId:T});D(e).then((function(e){ke(e)}))}),[Ve,_e,P,T,w,D]);var Ye=function(e){switch(e.fieldType){case 1:return""===e.valueChar||null===e.valueChar?"-":e.valueChar;case 2:return w===ee?ja()("".concat(e.valueInt),"MM").format("MMMM"):w===ne||w===he?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===ie?null===z||void 0===z||null===(r=z.userLicenseProfile)||void 0===r||null===(a=r.find((function(e){return 6===e.profileId})))||void 0===a?void 0:a.valueInt:e.valueInt;var t,i,r,a;case 3:return void 0===e.valueDate?"-":"Birth Date"===e.fieldName?Object(ii.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)})),ve>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!==te&&void 0!==te?te:[],periodsList:Ue,subLicenseId:ve},He=function(){J($e),window.open("/printComplianceReport/print")},Ke=[Z,pe];return a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Backdrop,{open:!we},a.a.createElement(h.CircularProgress,{color:"secondary"})),a.a.createElement(Ia.DialogBody,{maxWidth:!1},we&&a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Grid,{container:!0,spacing:"form"},!Re.includes(null!==(n=null===z||void 0===z?void 0:z.complianceStatusId)&&void 0!==n?n:0)&&a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.Grid,{container:!0,spacing:"form",justify:"center"},a.a.createElement(h.Grid,{item:!0,lg:4,md:6,xs:12},we&&a.a.createElement(h.ToggleButtonGroup,{stretch:!0,exclusive:!0,options:[{label:"Current Period",value:1},{label:"All Periods",value:2}],value:se,formikContext:!1,dense:!0,onChange:function(e,t){!function(e){Te(!1),Ce(1);var t=parseInt(e,10);le(t),P?Ve(P,1===t):_e(T,w,1===t)}(t)}})))),a.a.createElement(h.Grid,{item:!0,xs:12},we&&a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:6,md:8,alignment:"center-left"},a.a.createElement(h.Typography,{variant:"h5",color:"primary"},null===z||void 0===z?void 0:z.licenseName)),a.a.createElement(h.Grid,{item:!0,xs:6,md:4},a.a.createElement(h.Row,{crossAxisAlignment:"middle",mainAxisAlignment:"end"},void 0===P&&Ne&&(null===(o=Ne.find((function(e){return e.licenseId===w})))||void 0===o?void 0:o.shortSummary)&&a.a.createElement(h.Button,{size:"small",variant:"text",onClick:function(){return G(!0)},startIcon:a.a.createElement(h.BrandingIcon,{icon:"CeManager",size:"md"}),color:"primary",fullWidth:!1},a.a.createElement(h.Typography,{variant:"body1"},a.a.createElement(h.Hidden,{xsDown:!0},"CE Manager")," Summary")),a.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:a.a.createElement(h.SystemIcon,{icon:"Print",size:"sm"})},a.a.createElement(h.Typography,{variant:"body1"},"Print")))))),a.a.createElement(h.Grid,{item:!0,xs:12},we&&a.a.createElement(h.Divider,null)),a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.Box,{m:2},a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:12,sm:4,lg:3},a.a.createElement(h.Row,null,a.a.createElement(h.Box,{m:1},we&&a.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])):a.a.createElement("img",{src:null===z||void 0===z?void 0:z.userAvatarThumbnailURl,alt:"Loading...",width:"100%"}))),a.a.createElement(h.Box,{mt:2,ml:1},a.a.createElement(h.Column,null,a.a.createElement(h.Typography,{variant:"body1"},null===z||void 0===z?void 0:z.userType),a.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))))),a.a.createElement(h.Grid,{item:!0,xs:12,sm:"auto"},a.a.createElement(h.Box,{mt:1},a.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===ee&&2===e.fieldType&&(null===(t=e.fieldName)||void 0===t?void 0:t.includes("Membership Month"))||(w===ne||w===he)&&3===e.profileId||w===ie&&4===e.profileId)})).map((function(e){return"-"!==Ye(e)?a.a.createElement(a.a.Fragment,null,z.licenseId===ce&&3===e.profileId?a.a.createElement(h.Typography,{variant:"body2"},Ye(e)):a.a.createElement(h.Row,{crossAxisAlignment:"middle"},a.a.createElement(h.Typography,{variant:"body2"},e.fieldName," :"),a.a.createElement(h.Box,{ml:1},a.a.createElement(h.Typography,{variant:"body2"},Ye(e))))):a.a.createElement(a.a.Fragment,null)})),w===X&&a.a.createElement(h.Row,null,a.a.createElement(h.Typography,{variant:"body2"},"Compliance Group: "),a.a.createElement(h.Box,{ml:1},a.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===(p=z.userLicenseProfile)||void 0===p||null===(f=p.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)===Se&&a.a.createElement(h.Row,null,a.a.createElement(h.Typography,{variant:"body2"},"Group: "),a.a.createElement(h.Box,{ml:1},a.a.createElement(h.Typography,{variant:"body2"},K(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===se&&a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:4},we&&a.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,a,n;Te(!1);var o=Object(N.e)(null!==(r=i.periodFrom)&&void 0!==r?r:new Date),s=Object(N.e)(null!==(a=null!==(n=i.periodToDisplay)&&void 0!==n?n:i.periodTo)&&void 0!==a?a:new Date);j(T,w,o,s,!1).then((function(e){var t=Array();t.push(i),e.forEach((function(e){t.push(e)})),re(t),Te(!0)}))}}},Y.map((function(e){var t;return Ge+=1,a.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))})))),a.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 a.a.createElement(h.Box,{mt:2,key:e.periodNumber},a.a.createElement($a,{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?ve:w,userId:T,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===P}))}))),we&&!Re.includes(null!==(I=null===z||void 0===z?void 0:z.complianceStatusId)&&void 0!==I?I:0)&&ge&&(null===te||void 0===te?void 0:te.map((function(e){var t,i;return a.a.createElement(h.Box,{mt:2,key:e.periodNumber},a.a.createElement($a,{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?ve:w,userId:T,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)&&a.a.createElement(h.Box,{mt:3,ml:2},a.a.createElement(h.Typography,{variant:"h6"},(null===z||void 0===z?void 0:z.complianceStatusId)===v.B.NotTracked&&a.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)===v.B.Inactive&&a.a.createElement("b",null,"User is inactive in this jurisdiction."),(null===z||void 0===z?void 0:z.complianceStatusId)===v.B.Pending&&a.a.createElement("b",null,"User\u2019s license for this jurisdiction is pending."),(null===z||void 0===z?void 0:z.complianceStatusId)===v.B.NonMandatory&&a.a.createElement("b",null,"There are no mandatory continuing education requirements for this jurisdiction."))))),U&&a.a.createElement(Ka,{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&&a.a.createElement(Ua,{licenseId:w,open:Je,onClose:function(){return Fe(!1)},handleComplianceReportPrint:function(){return He()},isCurrentPeriod:1===se,jurisdictionReportGuid:null!==Be&&void 0!==Be?Be:"",latestCAPeriodYear:ze}))}))),Xa=Object(s.b)((function(){return{}}),(function(e){return{getMainPeriods:function(t,i,r,a,n){return e(Na(t,i,r,a,n))},getSubLicensePeriods:function(t,i,r,a){return e(ka(t,i,a,r))},getUserLicenseIdList:function(t,i){return e(function(e,t){return function(i){return U.Y.getUserLicenseList(void 0,new v.ld({userId:e,licenseId:t,isRequestFromPortal:!0})).then((function(e){return e})).catch((function(e){throw i(Object(Aa.b)(e)),e}))}}(t,i))},getFirmSettings:function(){return e(Object(Ca.c)())}}}))((function(e){var t=e.getUserLicenseIdList,i=e.licenseId,n=e.onClose,o=e.open,s=e.userId,l=e.userLicenses,d=e.getFirmSettings,u=Object(r.useState)(),p=Object(c.a)(u,2),v=p[0],f=p[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 a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Dialog,{fullScreen:!0,open:o,onClose:n},!I&&a.a.createElement(Ia.DialogHeader,{titleBar:{title:"Compliance Report",onClose:n},colorMode:"dark",tabs:function(){var e=Array();return v&&v.filter((function(e){return!1===e.isLicenseNotDisplayed})).forEach((function(t){var i,r,n,o={id:(null!==(i=t.licenseId)&&void 0!==i?i:0).toString(),label:null!==(r=t.name)&&void 0!==r?r:"",component:a.a.createElement(Za,{licenseId:null!==(n=t.licenseId)&&void 0!==n?n:0,userId:s,userLicenses:l})};e.push(o)})),e}(),defaultTab:g}),a.a.createElement(h.Backdrop,{open:I},a.a.createElement(h.CircularProgress,{color:"secondary"}))))})),en=Object(s.b)((function(e){return{loggedUser:e.users.loggedUser}}),(function(e){return{getScreenDescription:function(t){return e(Object(ia.c)(t))},getAllUserLicensesPortal:function(t){return e(function(e){return function(t){return U.ab.getAllUserLicensesPortal(void 0,new v.xc({userId:e})).then((function(e){return e})).catch((function(e){t(Object(Aa.b)(e))}))}}(t))}}}))((function(e){var t,i=e.getScreenDescription,n=e.loggedUser,o=e.getAllUserLicensesPortal,s=n&&n.userRole,l=Object(r.useState)(),d=Object(c.a)(l,2),u=d[0],p=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)(),P=Object(c.a)(w,2),D=P[0],L=P[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),M=G[0],q=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(v.Md.Compliance).then((function(e){return p(e)}))}),[i,s]),Object(r.useEffect)((function(){var e;_(!0),o(null!==(e=null===n||void 0===n?void 0:n.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}))),L(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}))),q(e&&e.filter((function(e){return"Accounting"!==e.industry&&"Law"!==e.industry&&"Certification"!==e.industry&&!1===e.isLicenseNotDisplayedToTheProfessional}))),_(!1)}))}),[o,n]);var te=function(e){switch(e){case"Accounting":return a.a.createElement(h.SystemIcon,{icon:"Cem-Accounting",size:"sm",type:"duotone"});case"Law":return a.a.createElement(h.SystemIcon,{icon:"Cem-Legal",size:"sm",type:"duotone"});case"Certification":return a.a.createElement(h.SystemIcon,{icon:"Cem-Certificate",size:"sm",type:"duotone"});default:return a.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,n=null!==(t=r.licenseId)&&void 0!==t?t:0,o=null!==(i=r.parentLicenseId)&&void 0!==i?i:0;return a.a.createElement(h.Row,{crossAxisAlignment:"middle"},a.a.createElement(h.Link,{onClick:function(){return function(e){K(!0),ee(e)}(o>0?o:n)},underline:"none"},a.a.createElement(h.Typography,{variant:"subtitle2"},r.licenseName)),a.a.createElement(h.Box,{ml:1},r.isAdditionalRequirementNeeded&&a.a.createElement(h.Tooltip,{title:"Additional Requirement",key:"Additional Requirement"},a.a.createElement("span",null,a.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":a.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?"":a.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 a.a.createElement(h.Row,{mainAxisAlignment:"center"},!t.isNotTracked&&a.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&&a.a.createElement(h.Row,{mainAxisAlignment:"center"},a.a.createElement(h.Tooltip,{title:"Prior Period Deficiency",key:"Prior Period Deficiency"},a.a.createElement("span",null,a.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===v.B.NotInCompliance?"error":e===v.B.InProgress?"info":e===v.B.Extension||e===v.B.Pending?"warning":"success";switch(e){case 0:t=a.a.createElement(h.Row,{crossAxisAlignment:"middle",mainAxisAlignment:"center"},a.a.createElement(h.Box,{ml:1},a.a.createElement(h.Typography,{variant:"body1",color:"textSecondary"},"Not in Compliance")));break;case 1:t=a.a.createElement(h.Row,{crossAxisAlignment:"middle",mainAxisAlignment:"center"},a.a.createElement(h.SystemIcon,{icon:"Success",color:"success",size:"sm"}),a.a.createElement(h.Box,{ml:1},a.a.createElement(h.Typography,{variant:"body1"},"In Compliance")));break;case 2:t=a.a.createElement(h.Row,{crossAxisAlignment:"middle",mainAxisAlignment:"center"},a.a.createElement(h.SystemIcon,{icon:"Repeat",color:"primary",size:"sm"}),a.a.createElement(h.Box,{ml:1},a.a.createElement(h.Typography,{variant:"body1"},"In Progress")));break;case 3:t=a.a.createElement(h.Row,{crossAxisAlignment:"middle",mainAxisAlignment:"center"},a.a.createElement(h.SystemIcon,{icon:"Repeat",color:"secondary",size:"sm"}),a.a.createElement(h.Box,{ml:1},a.a.createElement(h.Typography,{variant:"body1"},"Grace Period")));break;case 4:t=a.a.createElement(h.Typography,null,"Non Mandatory");break;case 5:t=a.a.createElement(h.Typography,null,"Not Tracked");break;case 6:t=a.a.createElement(h.Typography,{color:"textSecondary"},"Pending");break;case 7:t=a.a.createElement(h.Typography,null,"Inactive")}return a.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 a.a.createElement(h.Widget,{key:"".concat(t,"Group")},a.a.createElement(h.Box,null,a.a.createElement(h.Box,{width:"100%",bgcolor:"#F1F1F1"},a.a.createElement(h.Box,{ml:1},a.a.createElement(A.a,{title:a.a.createElement(h.Row,{crossAxisAlignment:"middle"},te(t),a.a.createElement(h.Box,{ml:1},a.a.createElement(h.Typography,{variant:"h6"}," ",t)))}))),a.a.createElement(h.Box,{width:"100%"},a.a.createElement(T.a,{dense:!0},a.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 a.a.createElement(h.Screen,{titleBar:{title:(u&&""!==u.title?u.title:"Compliance")||"Compliance",description:u?a.a.createElement(h.Column,null,null!==u.shortDescription&&""!==u.shortDescription&&a.a.createElement(h.TextEditorView,{model:Object(k.a)(u.shortDescription)}),null!==u.text&&""!==u.text&&a.a.createElement(h.Box,{mt:2},a.a.createElement(h.Button,{variant:"outlined",size:"small",onClick:function(){return g(!0)}},"Show More"))):a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Box,{mt:2.5},a.a.createElement(h.Skeleton,{width:"100%",height:20,variant:"rect"})),a.a.createElement(h.Box,{mt:1},a.a.createElement(h.Skeleton,{width:"100%",height:20,variant:"rect"})))}},a.a.createElement(Ea,{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}),a.a.createElement(h.Container,{maxWidth:"lg"},V?a.a.createElement(h.Backdrop,{open:!0},a.a.createElement(h.CircularProgress,{color:"secondary"})):a.a.createElement(h.Grid,{container:!0,spacing:"form"},E&&0===E.length&&a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center"},a.a.createElement(h.Alert,{type:"info",variant:"standard"},"No license records found")),x&&0!==(null===x||void 0===x?void 0:x.length)&&a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Grid,{item:!0,xs:12},ie(x,"Accounting")),a.a.createElement(h.Grid,{item:!0,xs:12})),D&&0!==(null===D||void 0===D?void 0:D.length)&&a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Grid,{item:!0,xs:12},ie(D,"Law")),a.a.createElement(h.Grid,{item:!0,xs:12})),B&&0!==(null===B||void 0===B?void 0:B.length)&&a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Grid,{item:!0,xs:12},ie(B,"Certification")),a.a.createElement(h.Grid,{item:!0,xs:12})),M&&0!==(null===M||void 0===M?void 0:M.length)&&a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Grid,{item:!0,xs:12},ie(M,"Custom")),a.a.createElement(h.Grid,{item:!0,xs:12})))),H&&a.a.createElement(Xa,{open:H,onClose:function(){return K(!1)},licenseId:X,userId:null!==(t=null===n||void 0===n?void 0:n.userId)&&void 0!==t?t:0,userLicenses:E}))})),tn=Object(z.makeStyles)((function(e){return Object(z.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"}}})})),rn=Object(s.b)((function(e){return{selectedReportToPrint:e.compliance.selectedComplianceReportToPrint}}),(function(){return{}}))((function(e){var t,i,n,o,s,l,c,d=e.selectedReportToPrint,u=tn(),p=null===d||void 0===d?void 0:d.complianceReport,v=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(ii.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===p||void 0===p?void 0:p.licenseId)===Se){var S,E,I=null===p||void 0===p||null===(S=p.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 a.a.createElement("div",{id:"complianceReport"},a.a.createElement(h.Box,{m:5},a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.Row,{mainAxisAlignment:"space-between"},a.a.createElement(h.Typography,{variant:"h5"},null===p||void 0===p?void 0:p.licenseName),a.a.createElement(h.Box,{mt:1,"data-html2canvas-ignore":!0},a.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}," ",a.a.createElement(h.Row,null,a.a.createElement(h.SystemIcon,{icon:"Print",size:"sm"}),a.a.createElement(h.Box,{ml:1},a.a.createElement(h.Typography,{variant:"body1"},"Print"))))))),a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.Divider,null)),a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.Box,{m:2},a.a.createElement(h.Row,null,a.a.createElement(h.Box,{mt:2,ml:1},a.a.createElement(h.Column,null,a.a.createElement(h.Typography,{variant:"caption"},null===p||void 0===p?void 0:p.userType),a.a.createElement(h.Typography,{variant:"h5"},null===p||void 0===p?void 0:p.firstName," ",null!==(n=null===p||void 0===p?void 0:p.middleName)&&void 0!==n?n:""," ",null===p||void 0===p?void 0:p.lastName))),a.a.createElement(h.Box,{mt:2,ml:5},a.a.createElement(h.Column,{mainAxisAlignment:"middle"},null===p||void 0===p||null===(o=p.userLicenseProfile)||void 0===o?void 0:o.filter((function(e){return 5!==e.fieldType&&2!==e.fieldType})).map((function(e){return"-"!==g(e)?a.a.createElement(a.a.Fragment,null,p.licenseId===ce&&3===e.profileId?a.a.createElement(h.Typography,{variant:"caption"},g(e)):a.a.createElement(h.Row,{crossAxisAlignment:"middle"},a.a.createElement(h.Typography,{variant:"caption"},e.fieldName," :"),a.a.createElement(h.Box,{ml:1},a.a.createElement(h.Typography,{variant:"caption"},g(e))))):a.a.createElement(a.a.Fragment,null)})),(null===p||void 0===p?void 0:p.licenseId)===X&&a.a.createElement(h.Row,null,a.a.createElement(h.Typography,{variant:"caption"},"Compliance Group: "),a.a.createElement(h.Box,{ml:1},a.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===p||void 0===p||null===(l=p.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===p||void 0===p?void 0:p.licenseId)===Se&&a.a.createElement(h.Row,null,a.a.createElement(h.Typography,{variant:"caption"},"Group: "),a.a.createElement(h.Box,{ml:1},a.a.createElement(h.Typography,{variant:"caption"},K(b))))))),!v&&m.length>0&&(null===m||void 0===m?void 0:m.map((function(e){var t,i,r,n;return a.a.createElement(h.Box,{mt:2,key:e.periodNumber},a.a.createElement($a,{period:e,isCarryOverAllowed:e.isSubLicensePeriod?null!==(t=null===p||void 0===p?void 0:p.isSubLicenseCarryOverAllowed)&&void 0!==t&&t:null!==(i=null===p||void 0===p?void 0:p.isCarryOverAllowed)&&void 0!==i&&i,licenseId:e.isSubLicensePeriod?y:null!==(r=null===p||void 0===p?void 0:p.licenseId)&&void 0!==r?r:0,userId:null!==(n=null===p||void 0===p?void 0:p.userId)&&void 0!==n?n:0,userFullName:"".concat(null===p||void 0===p?void 0:p.firstName," ").concat(null===p||void 0===p?void 0:p.lastName),licenseName:null===p||void 0===p?void 0:p.licenseName,printPreview:!0}))}))),v&&(null===f||void 0===f?void 0:f.map((function(e){var t,i,r,n;return a.a.createElement(h.Box,{mt:2,key:e.periodNumber},a.a.createElement($a,{period:e,isCarryOverAllowed:e.isSubLicensePeriod?null!==(t=null===p||void 0===p?void 0:p.isSubLicenseCarryOverAllowed)&&void 0!==t&&t:null!==(i=null===p||void 0===p?void 0:p.isCarryOverAllowed)&&void 0!==i&&i,licenseId:e.isSubLicensePeriod?y:null!==(r=null===p||void 0===p?void 0:p.licenseId)&&void 0!==r?r:0,userId:null!==(n=null===p||void 0===p?void 0:p.userId)&&void 0!==n?n:0,userFullName:"".concat(null===p||void 0===p?void 0:p.firstName," ").concat(null===p||void 0===p?void 0:p.lastName),licenseName:null===p||void 0===p?void 0:p.licenseName,printPreview:!0}))})))))))})),an=i(165),nn=Object(d.o)((function(e){var t=e.isCancelled,i=void 0!==t&&t,r=e.isLapsed,n=void 0!==r&&r,o=e.status,s=e.isOnDemand,l=e.isWaitlistAllowed,c=void 0===l||l,d=e.registrationLimit,u=e.participantCount,p=e.isInvitation,f=void 0!==p&&p,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,T=e.onTentativeRegistration,P=e.onWaitlist,A=e.onCancelWaitlist,N=e.onDecline,k=0!==d&&u>=d,D=C.url.indexOf("registration")>0,L=Object(J.useTheme)(),F=Object(J.useMediaQuery)(L.breakpoints.down("xs")),B=a.a.createElement(h.Button,{size:"small",variant:"contained",color:"default",disabled:!0,type:"button",width:"xl"},"Registration Closed"),R=a.a.createElement(h.Button,{size:"small",variant:"contained",color:"primary",type:"button",width:"xl",onClick:function(){w&&w()}},"Enroll"),U=a.a.createElement(h.Button,{size:"small",variant:"contained",color:"primary",type:"button",width:"xl",onClick:function(){P&&P()}},"Join Waitlist"),G=a.a.createElement(h.Button,{size:"small",variant:"outlined",color:"primary",type:"button",width:"xl",onClick:A},"Cancel"),M=a.a.createElement(h.Button,{size:"small",variant:"outlined",color:"primary",type:"button",width:"xl",onClick:function(){T&&T()}},"Enroll as Tentative"),q=a.a.createElement(h.Button,{size:"small",variant:"contained",color:"primary",type:"button",width:"auto",onClick:function(){x&&x()},disabled:E,endIcon:a.a.createElement(h.SystemIcon,{icon:"Play",type:"duotone",size:"sm"})},"Resume"),z=a.a.createElement(h.Button,{size:"small",variant:"outlined",color:"default",type:"button",width:"xl",onClick:j&&j},"Cancel"),W=a.a.createElement(h.Button,{size:"small",variant:"outlined",color:"default",type:"button",width:"xl",onClick:N},"Decline"),V=a.a.createElement(h.Button,{size:"small",variant:"contained",color:"primary",type:"button",width:"auto",onClick:x,disabled:E,endIcon:a.a.createElement(h.SystemIcon,{icon:"Play",type:"duotone",size:"sm"})},"View On-Demand"),_=a.a.createElement(h.Button,{size:"small",variant:"contained",color:"primary",type:"button",width:"auto",onClick:x,disabled:E,endIcon:a.a.createElement(h.SystemIcon,{icon:"Play",type:"duotone",size:"sm"})},"View Again"),Y=a.a.createElement(h.Button,{size:"small",variant:"contained",color:"primary",type:"button",width:"auto",onClick:x,disabled:E,endIcon:a.a.createElement(h.SystemIcon,{icon:"Play",type:"duotone",size:"sm"})},"Retake Session");if(i)return a.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?a.a.createElement(h.ButtonGroup,{variant:"outlined",orientation:F?"vertical":"horizontal"},B):k&&c?y?a.a.createElement(h.ButtonGroup,{variant:"outlined",orientation:F?"vertical":"horizontal"},G):a.a.createElement(h.ButtonGroup,{variant:"outlined",orientation:F?"vertical":"horizontal"},(f||D)&&W,b?R:U):a.a.createElement(h.ButtonGroup,{variant:"outlined",orientation:F?"vertical":"horizontal"},(f||D)&&W,V);case v.ke.Excused:case v.ke.Unexcused:case v.ke.Pending:case v.ke.Registered:case v.ke.Tentative:return a.a.createElement(h.ButtonGroup,{variant:"outlined",orientation:F?"vertical":"horizontal"},(f||D)&&W,V);case v.ke.InProgress:return a.a.createElement(h.ButtonGroup,{variant:"outlined",orientation:F?"vertical":"horizontal"},q);case v.ke.Declined:return a.a.createElement(h.ButtonGroup,{variant:"outlined",orientation:F?"vertical":"horizontal"},V);case v.ke.Validated:case v.ke.Disqualified:return a.a.createElement(h.ButtonGroup,{variant:"outlined",orientation:F?"vertical":"horizontal"},_);case v.ke.Failed:return a.a.createElement(h.ButtonGroup,{variant:"outlined",orientation:F?"vertical":"horizontal"},Y)}if(!s)if(n)switch(o){case v.ke.Registered:case v.ke.Excused:case v.ke.Unexcused:case v.ke.InProgress:case v.ke.Tentative:case v.ke.Pending:return a.a.createElement(h.ButtonGroup,{variant:"outlined",orientation:F?"vertical":"horizontal"},z)}else switch(o){case void 0:return k&&!c?a.a.createElement(h.ButtonGroup,{variant:"outlined",orientation:F?"vertical":"horizontal"},B):k&&c?y?a.a.createElement(h.ButtonGroup,{variant:"outlined",orientation:F?"vertical":"horizontal"},G):a.a.createElement(h.ButtonGroup,{variant:"outlined",orientation:F?"vertical":"horizontal"},(f||D)&&W,b?R:U):a.a.createElement(h.ButtonGroup,{variant:"outlined",orientation:F?"vertical":"horizontal"},(f||D)&&W,O&&M,R);case v.ke.Registered:case v.ke.Unexcused:case v.ke.InProgress:return a.a.createElement(h.ButtonGroup,{variant:"outlined",orientation:F?"vertical":"horizontal"},z);case v.ke.Tentative:return a.a.createElement(h.ButtonGroup,{variant:"outlined",orientation:F?"vertical":"horizontal"},z,R);case v.ke.Pending:return a.a.createElement(h.ButtonGroup,{variant:"outlined",orientation:F?"vertical":"horizontal"},z);case v.ke.Declined:case v.ke.Excused:return k&&!c?a.a.createElement(h.ButtonGroup,{variant:"outlined",orientation:F?"vertical":"horizontal"},B):k&&c?y?a.a.createElement(h.ButtonGroup,{variant:"outlined",orientation:F?"vertical":"horizontal"},G):a.a.createElement(h.ButtonGroup,{variant:"outlined",orientation:F?"vertical":"horizontal"},b?R:U):a.a.createElement(h.ButtonGroup,{variant:"outlined",orientation:F?"vertical":"horizontal"},M,R)}return a.a.createElement(a.a.Fragment,null)})),on=(i(509),i(201)),sn=(i(253),Object(J.makeStyles)((function(e){var t=e.palette;return Object(J.createStyles)({title:{color:t.grey[500],fontWeight:600}})}))),ln=function(e){var t=e.courseClassYears,i=e.courseCompetencies,r=e.courseDepartments,n=e.courseLevels,o=e.coursePracticeAreas,s=e.courseTags,l=sn();return a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:12}),i&&(null===i||void 0===i?void 0:i.length)>0&&a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Grid,{item:!0,xs:12,sm:2,md:2,lg:2},a.a.createElement(h.Typography,{variant:"body1",className:l.title},"Competencies")),a.a.createElement(h.Grid,{item:!0,xs:12,sm:10,md:10,lg:10},a.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&&a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Grid,{item:!0,xs:12,sm:2,md:2,lg:2},a.a.createElement(h.Typography,{variant:"body1",className:l.title},"Departments")),a.a.createElement(h.Grid,{item:!0,xs:12,sm:10,md:10,lg:10},a.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&&a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Grid,{item:!0,xs:12,sm:2,md:2,lg:2},a.a.createElement(h.Typography,{variant:"body1",className:l.title},"Practice Areas")),a.a.createElement(h.Grid,{item:!0,xs:12,sm:10,md:10,lg:10},a.a.createElement(h.Typography,{variant:"body1"},null===o||void 0===o?void 0:o.join(", ")))),n&&(null===n||void 0===n?void 0:n.length)>0&&a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Grid,{item:!0,xs:12,sm:2,md:2,lg:2},a.a.createElement(h.Typography,{variant:"body1",className:l.title},"Levels")),a.a.createElement(h.Grid,{item:!0,xs:12,sm:10,md:10,lg:10},a.a.createElement(h.Typography,{variant:"body1"},null===n||void 0===n?void 0:n.join(", ")))),t&&(null===t||void 0===t?void 0:t.length)>0&&a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Grid,{item:!0,xs:12,sm:2,md:2,lg:2},a.a.createElement(h.Typography,{variant:"body1",className:l.title},"Class Year")),a.a.createElement(h.Grid,{item:!0,xs:12,sm:10,md:10,lg:10},a.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&&a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Grid,{item:!0,xs:12,sm:2,md:2,lg:2},a.a.createElement(h.Typography,{variant:"body1",className:l.title},"Tags")),a.a.createElement(h.Grid,{item:!0,xs:12,sm:10,md:10,lg:10},a.a.createElement(h.Box,{display:"flex",flexDirection:"row",flexWrap:"wrap"},null===s||void 0===s?void 0:s.map((function(e,t){return a.a.createElement(h.Box,{mr:1,mb:1,key:t},a.a.createElement(h.Chip,{label:null!==e&&void 0!==e?e:"",variant:"box"}))}))))))},cn=function(e){var t=e.fileExtension,i=e.size,r=e.type,n=e.color,o=e.linkFlag;if(void 0!==o&&o)return a.a.createElement(h.SystemIcon,{icon:"Url",size:i,type:r,color:n});switch(t){case"Archive":return a.a.createElement(h.SystemIcon,{icon:"FileArchive",size:i,type:r,color:n});case".xls":case".csv":return a.a.createElement(h.SystemIcon,{icon:"FileExcel",size:i,type:r,color:n});case".jpg":case".png":case".gif":return a.a.createElement(h.SystemIcon,{icon:"FileImage",size:i,type:r,color:n});case".mp3":case".wav":return a.a.createElement(h.SystemIcon,{icon:"FileMusic",size:i,type:r,color:n});case".pdf":return a.a.createElement(h.SystemIcon,{icon:"FilePdf",size:i,type:r,color:n});case".ppt":return a.a.createElement(h.SystemIcon,{icon:"FilePowerpoint",size:i,type:r,color:n});case".txt":return a.a.createElement(h.SystemIcon,{icon:"FileTxt",size:i,type:r,color:n});case".mp4":case".webm":case".ogg":return a.a.createElement(h.SystemIcon,{icon:"FileVideo",size:i,type:r,color:n});case".doc":return a.a.createElement(h.SystemIcon,{icon:"FileWord",size:i,type:r,color:n});default:return a.a.createElement(h.SystemIcon,{icon:"File",size:i,type:r,color:n})}},dn=Object(s.b)((function(){return{}}),(function(e){return{downloadFilebyGuid:function(t,i){return e(function(e,t){return function(i){return U.D.downloadFileByGuid(t,void 0,v.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(G.b)(e)),e}))}}(t,i))},downloadFile:function(t){return e(rr(t))},downloadFileFromInvite:function(t){return e((i=t,function(e){return U.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(G.b)(t)),t}))}));var i}}}))((function(e){var t=e.downloadFile,i=e.downloadFilebyGuid,n=e.downloadFileFromInvite,o=e.isInvitation,s=e.isRegisration,l=e.materialList,d=e.guid,u=Object(r.useState)(!1),p=Object(c.a)(u,2),v=p[0],f=p[1];Object(r.useEffect)((function(){o&&f(!0)}),[o]);var m;return a.a.createElement(a.a.Fragment,null,a.a.createElement(h.CardActions,null,a.a.createElement(h.Row,{flex:1,crossAxisAlignment:"middle"},a.a.createElement(h.Expanded,{flex:1,mr:1},a.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},"Materials")),a.a.createElement(h.Expanded,{flex:0},a.a.createElement(h.IconButton,{onClick:function(){return f(!v)}},a.a.createElement(h.SystemIcon,{icon:v?"CollapseVertical":"ExpandVertical",size:"md"}))))),a.a.createElement(h.Collapse,{in:v},a.a.createElement(h.CardContent,null,(m=l||[])?a.a.createElement(h.Grid,{container:!0,spacing:"form"},null===m||void 0===m?void 0:m.map((function(e){var r,l,c;return a.a.createElement(h.Grid,{item:!0,xs:12,sm:12,md:12,lg:12,xl:12,stretchContent:!0,key:e.sessionMaterialId},a.a.createElement(h.Row,{crossAxisAlignment:"middle"},a.a.createElement(h.Box,{m:1},a.a.createElement(cn,{fileExtension:null!==(r=null===(l=e.libraryFile)||void 0===l?void 0:l.extension)&&void 0!==r?r:"",color:"primary",type:"duotone",size:"sm"})),a.a.createElement(h.Box,null,a.a.createElement(h.Link,{onClick:function(){var r,a;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 a=e.fileId||0,d&&""!==d&&0===a?i(d,a):o||s?n(a):t("".concat(a))}},null===(c=e.libraryFile)||void 0===c?void 0:c.title))))}))):null)))})),un=function(e){switch(e.status){case v.ke.Declined:return a.a.createElement(h.Box,{bgcolor:"#E50019",width:"100%",borderRadius:"4px 4px 0px 0px",height:"6px"});case v.ke.Validated:return a.a.createElement(h.Box,{bgcolor:"#4CAF50",width:"100%",borderRadius:"4px 4px 0px 0px",height:"6px"});case v.ke.InProgress:case v.ke.Registered:case v.ke.Unexcused:case v.ke.Tentative:return a.a.createElement(h.Box,{bgcolor:"#239BD8",width:"100%",borderRadius:"4px 4px 0px0px",height:"6px"});case v.ke.Pending:case v.ke.Disqualified:return a.a.createElement(h.Box,{bgcolor:"#FF8D11",width:"100%",borderRadius:"4px 4px 0px 0px",height:"6px"});case v.ke.Failed:return a.a.createElement(h.Box,{bgcolor:"#F44336",width:"100%",borderRadius:"4px 4px 0px 0px",height:"6px"});default:return a.a.createElement(h.Box,{bgcolor:"#979797",width:"100%",borderRadius:"4px 4px 0px 0px",height:"6px"})}},hn=Object(J.makeStyles)((function(e){var t=e.spacing;return Object(J.createStyles)({cardBorder:{borderRadius:"".concat(t(0),"px ").concat(t(0),"px ").concat(t(.5),"px ").concat(t(.5),"px")}})})),pn=function(e){var t=e.actionButton,i=e.statusChip,r=e.courseTitle,n=e.courseFormat,o=e.courseFormatPortalCategory,s=e.endDate,l=e.endTime,c=e.instructors,d=e.loading,u=e.location,p=e.materialList,v=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,T=void 0!==w&&w,P=e.duration,A=e.guid,N=hn(),D=Object(ii.e)(b,"MM/DD/YYYY"),L=s?Object(ii.e)(s,"MM/DD/YYYY"):"",J=""===L||D===L?D:"".concat(D," - ").concat(L);return a.a.createElement(a.a.Fragment,null,a.a.createElement(un,{status:E}),a.a.createElement(h.Card,{className:N.cardBorder,elevation:0,variant:"outlined"},a.a.createElement(h.CardContent,null,a.a.createElement(h.Grid,{container:!0},a.a.createElement(h.Grid,{item:!0,xs:4,sm:2,md:2,lg:1,alignment:"center"},a.a.createElement(h.Box,{color:"#757575",mr:1.5,mt:1},d?a.a.createElement(h.Skeleton,{variant:"circle",width:"50px",height:"50px"}):a.a.createElement(za,{size:"lg",type:"duotone",format:o||""}))),a.a.createElement(h.Grid,{item:!0,xs:8,sm:8,md:6,lg:7,stretchContent:!0},a.a.createElement(h.Box,{mt:1,mr:1.5},d?a.a.createElement(h.Skeleton,{variant:"text",width:"100%"}):g?a.a.createElement(h.Column,null,f!==r&&a.a.createElement(h.Typography,{variant:"body1",weight:"semi-bold"},null!==f&&void 0!==f?f:r),a.a.createElement(h.Typography,{variant:"body1"},"".concat(n,"; Recorded ").concat(Object(ii.e)(b,"MM/DD/YYYY"))),a.a.createElement(h.Typography,{variant:"body1"},P)):a.a.createElement(h.Typography,{variant:"body1"},a.a.createElement(h.Column,null,a.a.createElement(h.Row,null,r!==f&&a.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular",color:"textPrimary"},f)),a.a.createElement(h.Row,null,a.a.createElement(h.Typography,{variant:"body1"},n)),a.a.createElement(h.Row,null,a.a.createElement(h.Expanded,{flex:0,mr:1},a.a.createElement(h.SystemIcon,{icon:"Calendar",type:"duotone",size:"xs"})),T&&a.a.createElement(h.Expanded,{flex:1,mr:1},a.a.createElement(h.Typography,{variant:"caption"},"Original Live Date:")),a.a.createElement(h.Expanded,{flex:1,mr:1.5},J)),S&&a.a.createElement(h.Row,null,a.a.createElement(h.Expanded,{flex:0,mr:1},a.a.createElement(h.SystemIcon,{icon:"Clock",type:"duotone",size:"xs"})),a.a.createElement(h.Expanded,{flex:1,mr:1.5},S?" ".concat(S):"",l?" - ".concat(l):"",S&&I?" ".concat(I," "):"")),u&&a.a.createElement(h.Row,null,a.a.createElement(h.Expanded,{flex:0,mr:1},a.a.createElement(h.SystemIcon,{icon:"Location",type:"duotone",size:"xs"})),a.a.createElement(h.Expanded,{flex:1},u,null!==v&&": ".concat(v))),c&&c.length>0&&a.a.createElement(h.Row,null,a.a.createElement(h.Expanded,{flex:0,mr:1},a.a.createElement(h.SystemIcon,{icon:"User",type:"duotone",size:"xs"})),a.a.createElement(h.Expanded,{flex:1},a.a.createElement(h.Typography,{variant:"body1"},"Instructor(s): ",null===c||void 0===c?void 0:c.join(", "))," ")))))),a.a.createElement(h.Grid,{item:!0,xs:12,sm:2,md:4,lg:4,alignment:"center-right"},i),a.a.createElement(h.Grid,{item:!0,xs:12},d?a.a.createElement(h.Skeleton,{variant:"text",width:"100%"}):m&&a.a.createElement(h.TextEditorView,{model:Object(k.a)(m)})),y&&y.length>0&&a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.Box,{mt:2},y&&y.map((function(e){var t,i,r="";return a.a.createElement(a.a.Fragment,{key:e.licenseId},e.name&&a.a.createElement(a.a.Fragment,null,a.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,") ")))})),a.a.createElement(h.Expanded,{flex:0,mr:1},a.a.createElement(h.Typography,{variant:"body1"},a.a.createElement("b",null,e.name),""!==r?" - ".concat(r):"")),e.expirationDate&&null!==e.expirationDate&&e.expirationDate<=new Date&&a.a.createElement(h.Expanded,null,a.a.createElement(h.Typography,{variant:"body1",color:"error"},a.a.createElement("i",null," ","(Expired ".concat(Object(ii.e)(e.expirationDate),")")))),1!==e.licenseStatus&&a.a.createElement(h.Expanded,null,a.a.createElement(h.Typography,{variant:"body1",color:"warning"},2===e.licenseStatus?"(Pending Approval)":"(Approval Denied)"))),a.a.createElement(h.Box,{ml:3},null===(i=e.sessionLicenseCredits)||void 0===i?void 0:i.map((function(e){return a.a.createElement(a.a.Fragment,{key:e.creditId},e.creditValue>0?a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Typography,{variant:"body1",colorMode:"light"},"".concat(e.creditValue," ").concat(e.creditName))):"")})))))})))),a.a.createElement(h.Grid,{item:!0,xs:12,sm:12,md:12,lg:12,alignment:"center-right"},t))),p&&p.length>0&&a.a.createElement(dn,{guid:A,materialList:p,isInvitation:C,isRegisration:j})))},vn=function(e){var t=e.status,i=e.isWaitlisted;if(void 0!==i&&i)return a.a.createElement(h.Chip,{width:"lg",variant:"default",color:"primary",colorMode:"dark",label:a.a.createElement(h.Row,{crossAxisAlignment:"middle",mainAxisAlignment:"center"},a.a.createElement(h.Box,{mr:1},a.a.createElement(h.SystemIcon,{icon:"Waitlist",size:"xs"})),"Waitlisted")});switch(t){case v.ke.Declined:return a.a.createElement(h.Chip,{width:"lg",variant:"default",color:"error",colorMode:"dark",label:a.a.createElement(h.Row,{crossAxisAlignment:"middle",mainAxisAlignment:"center"},a.a.createElement(h.Box,{mr:1},a.a.createElement(h.SystemIcon,{icon:"Error",size:"xs"})),"Declined")});case v.ke.Validated:return a.a.createElement(h.Chip,{width:"lg",variant:"default",color:"success",colorMode:"dark",label:a.a.createElement(h.Row,{crossAxisAlignment:"middle",mainAxisAlignment:"center"},a.a.createElement(h.Box,{mr:1},a.a.createElement(h.SystemIcon,{icon:"Check",size:"xs"})),"Completed")});case v.ke.Failed:return a.a.createElement(h.Chip,{width:"lg",variant:"default",color:"error",colorMode:"dark",label:a.a.createElement(h.Row,{crossAxisAlignment:"middle",mainAxisAlignment:"center"},a.a.createElement(h.Box,{mr:1},a.a.createElement(h.SystemIcon,{icon:"Close",size:"xs"})),"Failed")});case v.ke.Registered:case v.ke.Unexcused:case v.ke.Tentative:return a.a.createElement(h.Chip,{width:"lg",variant:"default",color:"primary",colorMode:"dark",label:a.a.createElement(h.Row,{crossAxisAlignment:"middle",mainAxisAlignment:"center"},a.a.createElement(h.Box,{mr:1},t===v.ke.Tentative?a.a.createElement(h.SystemIcon,{icon:"Tentative",size:"xs"}):a.a.createElement(h.SystemIcon,{icon:"CalendarDay",size:"xs"})),t===v.ke.Registered&&"Enrolled",t===v.ke.Unexcused&&"Enrolled",t===v.ke.Tentative&&"Tentative")});case v.ke.Pending:case v.ke.Disqualified:return a.a.createElement(h.Chip,{width:"lg",variant:"default",color:"warning",colorMode:"dark",label:a.a.createElement(h.Row,{crossAxisAlignment:"middle",mainAxisAlignment:"center"},a.a.createElement(h.Box,{mr:1},a.a.createElement(h.SystemIcon,{icon:"Warning",size:"xs"})),t===v.ke.Pending&&"Pending Approval",t===v.ke.Disqualified&&"Disqualified")});default:return a.a.createElement(a.a.Fragment,null)}},fn=function(e,t){return function(i){return i(sr(!0)),U.l.getCourseDetail(e,t,void 0).then((function(e){var t;return i((t=e,{type:or.a,payload:t})),i(sr(!1)),e})).catch((function(e){throw i(sr(!1)),i(Object(G.b)(e)),e}))}},mn=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(G.a({message:t,variant:"success"}))},addUsersToWaitlist:function(t,i,r,a){return e(tr(t,i,r,a))},deleteParticipant:function(t,i,r){return e(er(t,i,r))},deleteFromSessionWaitlist:function(t,i){return e(ir(t,i))},getCourseDetail:function(t,i){return e(fn(t,i))},getCourseSessions:function(t,i,r,a,n,o,s,l){return e(function(e,t,i){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=arguments.length>4?arguments[4]:void 0,n=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,p,f,m=d().users.loggedUser,y=d().portalSettings,g=y.courseFilters,b=y.calendarFilters,S=[],E=[];a&&b&&(S=b.locationIds,E=b.courseFormatIds),!a&&g&&(S=g.locationIds,E=g.courseFormatIds);var I=new v.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 v.Nc({courseId:e,userId:null===m||void 0===m?void 0:m.userId,learningPlanId:s,locationFilterIds:null!==(p=S)&&void 0!==p?p:[],formatFilterIds:null!==(f=E)&&void 0!==f?f:[]});return void 0===n&&null===n||(I.licenseId=n,void 0===o&&null===o||(I.licenseCreditsList=o)),c(lr(!0)),c(cr(null)),((s||0)>0?U.z.getRequirementSessions(void 0,v.Nc.fromJS(O)):U.l.getCourseSessions(void 0,v.Dc.fromJS(I))).then((function(e){return c(cr(e)),c(lr(!1)),e})).catch((function(e){throw c(lr(!1)),c(Object(G.b)(e)),e}))}}(t,i,!1,r,a,n,o,s,l))},registerParticipant:function(t,i,r,a){return e(Zi(t,i,r,a))},showConfirmation:function(t){return e(Object(on.b)(t))},updateParticipant:function(t,i,r,a,n){return e(Xi(t,i,r,!1,a,n))},toggleFavoriteCourse:function(t,i){return e(Cr(t,i,!0))},getCourseCatalog:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e(Sr(t))},getLearningSettings:function(){return e(Object(Ca.a)())}}})),yn=mn((function(e){var t,i,n,o,s,l,u,p,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,T=e.onClose,P=e.open,A=e.registerParticipant,N=e.showConfirmation,D=e.updateParticipant,L=e.userId,F=e.toggleFavoriteCourse,B=e.filters,R=e.authenticatedUser,U=e.isImpersonated,G=e.getLearningSettings,M=e.learningSettings,q=e.isFromCalendar,z=e.sessionIds,W=Object(J.useTheme)(),V=Object(J.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],ae=Object(r.useState)(),ne=Object(c.a)(ae,2),oe=ne[0],se=ne[1],le=Object(r.useState)(!1),ce=Object(c.a)(le,2),de=ce[0],ue=ce[1],he=Object(r.useState)(1),pe=Object(c.a)(he,2),ve=pe[0],fe=pe[1],me=Object(d.k)(),ye=Object(d.l)(),ge=Object(r.useRef)(b),be=v.ke.Tentative,Se=v.ke.Registered,Ee=ja()(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===(n=Z.coursePracticeAreas)||void 0===n?void 0:n.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})),Te=null===Z||void 0===Z||null===(l=Z.courseTags)||void 0===l?void 0:l.map((function(e){return e.name})),Pe=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)||Te&&(null===Te||void 0===Te?void 0:Te.length)>0,Ae=null!==(u=R&&R.userRole&&R.userRole[0].subRoleId)&&void 0!==u?u:0,Ne=Ae===v.re.AdministrativeAssistant||Ae===v.re.Supervisor,ke=null!==(p=null!=M&&(null===(f=M.find((function(e){return e.learningSettingEnumType===v.wd.AllowTentativeReg})))||void 0===f?void 0:f.valueBit))&&void 0!==p&&p;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(){L&&y([L],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(){L&&O([L],t).then((function(){H(!0),m("You have now been removed from the session waitlist.")}))}}),H(!1)))},Le=function(e,t,i,r,a){var n="",o="";0===t?(n="Are you sure you want to register for this session?",o="You have now been successfully registered for this session.",a&&(n="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&&(n="This session requires approval. We will send an email to confirm your registration."),N({message:n,title:"Confirm Registration",OnConfirm:function(){L&&A([L],e,!1,a).then((function(){H(!0),m(o)})),H(!1)}})):t===Se?(n="Are you sure you want to update your registration status?",r&&(n="This session requires approval. We will send an email to confirm your registration."),N({message:n,title:"Confirm Status Update",OnConfirm:function(){L&&D([i],be,!1,e,!1).then((function(){H(!0),m("Your registration status has been updated.")})),H(!1)}})):(n="Are you sure you want to update your registration status?",r&&(n="This session requires approval. We will send an email to confirm your registration."),N({message:n,title:"Confirm Status Update",OnConfirm:function(){L&&D([i],a?v.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&&P){fe(1),X(void 0),re(void 0),C(g,L||0).then((function(e){X(e)}));var e,t,i,r,a="",n="";if(B.length>0)a=null!==(e=null===(t=B.find((function(e){return"SessionLicense[or]"===e.split(":")[0]})))||void 0===t?void 0:t.split(":")[1].replace(/\s/,""))&&void 0!==e?e:"",n=null!==(i=null===(r=B.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(q),a,n,w,z).then((function(e){re(e)}))}}),[g,B,C,x,j,w,P,L,$,q,z]),Object(r.useEffect)((function(){var e=5*(ve-1),t=e+5;se(ie?ie.slice(e,t):[])}),[ie,ve]);var Je=Math.ceil(((null===ie||void 0===ie?void 0:ie.length)||0)/5);return a.a.createElement(a.a.Fragment,null,a.a.createElement(h.SideDrawer,{size:"md",open:P,onClose:T,colorMode:"dark"},a.a.createElement(ga.SideDrawerHeader,{titleBar:{title:S?a.a.createElement(h.Skeleton,{width:"400px",height:"32px"}):Z&&a.a.createElement(h.Box,null,a.a.createElement(h.Row,{crossAxisAlignment:"middle"},a.a.createElement(h.Typography,{variant:"h5"},null===Z||void 0===Z?void 0:Z.title),!q&&a.a.createElement(h.Box,{ml:3},a.a.createElement(h.Tooltip,{title:"Course Favorite"},a.a.createElement("span",null,a.a.createElement(h.Checkbox,{onChange:function(){var e,t;e=Z.courseId,t=Z.userFavorite||!1,F(e,t)},checked:Z.userFavorite,formikContext:!1,icon:a.a.createElement(h.SystemIcon,{size:"sm",type:"light",icon:"Star",color:"secondary"}),checkedIcon:a.a.createElement(h.SystemIcon,{size:"sm",type:"solid",color:"secondary",icon:"Star"})})))))),subtitle:a.a.createElement(h.Column,null,a.a.createElement(h.Typography,{variant:"subtitle2"},S?a.a.createElement(h.Skeleton,{variant:"text",width:"120px"}):null===Z||void 0===Z?void 0:Z.provider),a.a.createElement(h.Typography,{variant:"subtitle2"},S?a.a.createElement(h.Skeleton,{variant:"text",width:"70px"}):null===Z||void 0===Z?void 0:Z.courseIdLabel))}}),a.a.createElement(ga.SideDrawerBody,null,S?a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Skeleton,{variant:"text",width:"".concat(Math.floor(Math.random()*Math.floor(100)),"%")}),a.a.createElement(h.Skeleton,{variant:"text",width:"".concat(Math.floor(Math.random()*Math.floor(100)),"%")}),a.a.createElement("br",null),a.a.createElement(h.Skeleton,{variant:"text",width:"".concat(Math.floor(Math.random()*Math.floor(100)),"%")}),a.a.createElement(h.Skeleton,{variant:"text",width:"".concat(Math.floor(Math.random()*Math.floor(100)),"%")}),a.a.createElement(h.Skeleton,{variant:"text",width:"".concat(Math.floor(Math.random()*Math.floor(100)),"%")})):a.a.createElement(a.a.Fragment,null,(null===Z||void 0===Z?void 0:Z.description)&&a.a.createElement(h.TextEditorView,{model:Object(k.a)(null===Z||void 0===Z?void 0:Z.description)}),Pe&&a.a.createElement(ln,{courseClassYears:we,courseCompetencies:Oe||[],courseDepartments:Ce,courseLevels:je,coursePracticeAreas:xe,courseTags:Te})),E||de?[1,2,3].map((function(e){return a.a.createElement(h.Box,{mt:3,key:e},a.a.createElement(pn,{loading:!0}))})):a.a.createElement(a.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,n,o,s,l,c,d,u,p,v,f,y,g=ja()(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===(n=e.sessionParticipant)||void 0===n?void 0:n.filter((function(e){var t;return!e.isInstructor&&(null!==(t=e.userId)&&void 0!==t?t:0)===L}));C&&0!==C.length&&(p=C&&(null===(f=C[0])||void 0===f?void 0:f.sessionParticipantStatusId),v=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)===L;return a.a.createElement(h.Box,{mt:3,key:e.sessionId},a.a.createElement(pn,{status:p,statusChip:a.a.createElement(vn,{status:p,isWaitlisted:0!==x&&x===L}),actionButton:a.a.createElement(h.Box,{mt:V?2:0},a.a.createElement(nn,{status:p,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===L,isImpersonated:!j&&(U||Ne&&(R&&(null===R||void 0===R?void 0:R.userId))!==L),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,a;Le(null!==(t=null===e||void 0===e?void 0:e.sessionId)&&void 0!==t?t:0,null!==(i=p)&&void 0!==i?i:0,null!==(r=v)&&void 0!==r?r:0,null!==(a=null===e||void 0===e?void 0:e.isRegistrationApprovalNeeded)&&void 0!==a&&a,!1)},onTentativeRegistration:function(){var t,i,r,a;Le(null!==(t=null===e||void 0===e?void 0:e.sessionId)&&void 0!==t?t:0,null!==(i=p)&&void 0!==i?i:0,null!==(r=v)&&void 0!==r?r:0,null!==(a=null===e||void 0===e?void 0:e.isRegistrationApprovalNeeded)&&void 0!==a&&a,!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,v)}})),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}))})):a.a.createElement(h.Grid,{container:!0,spacing:"card"},a.a.createElement(h.Grid,{item:!0,xs:12,sm:12,lg:12,alignment:"center"},a.a.createElement(h.Alert,{variant:"standard",type:"info",icon:"Info"},a.a.createElement(h.Typography,{color:"primary",weight:"semi-bold"},"No sessions found.")))),a.a.createElement(h.Grid,{container:!0,alignment:"center"},a.a.createElement(h.Box,{pt:2},Je>1&&a.a.createElement(h.Pagination,{count:Je,defaultPage:ve||1,onChange:function(e,t){ue(!0),fe(t),setTimeout((function(){return ue(!1)}),1e3)}})))))))})),gn=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(a,n){var o,s=n().users,l=new v.tc({userId:null===(o=s.loggedUser)||void 0===o?void 0:o.userId,dateFrom:i,isOnDemand:e,hidePastSessions:r,pageOffset:t});return U.X.getAllUserCourseSessions(void 0,v.tc.fromJS(l)).then((function(e){return e})).catch((function(e){a(Object(G.b)(e))}))}},bn=Object(J.makeStyles)((function(e){var t=e.palette;return Object(J.createStyles)({title:{color:t.grey[500],fontWeight:600}})})),Sn=function(e){var t=e.courseClassYears,i=e.courseCompetencies,r=e.courseDepartments,n=e.courseLevels,o=e.coursePracticeAreas,s=e.courseTags,l=bn();return a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:12}),i&&(null===i||void 0===i?void 0:i.length)>0&&a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Grid,{item:!0,xs:12,sm:2,md:2,lg:2},a.a.createElement(h.Typography,{variant:"body1",className:l.title},"Competencies")),a.a.createElement(h.Grid,{item:!0,xs:12,sm:10,md:10,lg:10},a.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&&a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Grid,{item:!0,xs:12,sm:2,md:2,lg:2},a.a.createElement(h.Typography,{variant:"body1",className:l.title},"Departments")),a.a.createElement(h.Grid,{item:!0,xs:12,sm:10,md:10,lg:10},a.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&&a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Grid,{item:!0,xs:12,sm:2,md:2,lg:2},a.a.createElement(h.Typography,{variant:"body1",className:l.title},"Practice Areas")),a.a.createElement(h.Grid,{item:!0,xs:12,sm:10,md:10,lg:10},a.a.createElement(h.Typography,{variant:"body1"},null===o||void 0===o?void 0:o.join(", ")))),n&&(null===n||void 0===n?void 0:n.length)>0&&a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Grid,{item:!0,xs:12,sm:2,md:2,lg:2},a.a.createElement(h.Typography,{variant:"body1",className:l.title},"Levels")),a.a.createElement(h.Grid,{item:!0,xs:12,sm:10,md:10,lg:10},a.a.createElement(h.Typography,{variant:"body1"},null===n||void 0===n?void 0:n.join(", ")))),t&&(null===t||void 0===t?void 0:t.length)>0&&a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Grid,{item:!0,xs:12,sm:2,md:2,lg:2},a.a.createElement(h.Typography,{variant:"body1",className:l.title},"Class Year")),a.a.createElement(h.Grid,{item:!0,xs:12,sm:10,md:10,lg:10},a.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&&a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Grid,{item:!0,xs:12,sm:2,md:2,lg:2},a.a.createElement(h.Typography,{variant:"body1",className:l.title},"Tags")),a.a.createElement(h.Grid,{item:!0,xs:12,sm:10,md:10,lg:10},a.a.createElement(h.Box,{display:"flex",flexDirection:"row",flexWrap:"wrap"},null===s||void 0===s?void 0:s.map((function(e,t){return a.a.createElement(h.Box,{mr:1,mb:1,key:t},a.a.createElement(h.Chip,{label:null!==e&&void 0!==e?e:"",variant:"box"}))}))))))},En=Object(r.createContext)({}),In=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(G.a({message:t,variant:"success"}))},addUsersToWaitlist:function(t,i,r,a){return e(tr(t,i,r,a))},deleteParticipant:function(t,i,r){return e(er(t,i,r))},deleteFromSessionWaitlist:function(t,i){return e(ir(t,i))},getCourse:function(t){return e(function(e){return function(t){return U.n.getCourseWithCategories(e,void 0).then((function(e){return e})).catch((function(e){throw t(Object(G.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 v.oc({sessionId:e,filterBy:[],searchCriteria:[t?"":"AttendeeOnly"],sortBy:"lastName",page:1,pageSize:10});return U.R.getAll(void 0,v.oc.fromJS(r)).then((function(e){return e.recordCount})).catch((function(e){throw i(Object(G.b)(e)),e}))}}(t))},getPortalSessionsByMonth:function(t,i,r){var a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],n=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return e(_i(t,i,r,a,n))},getSession:function(t){return e(function(e){return function(t,i){var r=i().users.loggedUser;return U.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(G.b)(e)),e}))}}(t))},getUserFavoriteSession:function(t){return e(function(e){return function(t,i){var r=i().users.loggedUser,a=new v.id({userId:null===r||void 0===r?void 0:r.userId,sessionId:e});return U.S.getUserFavoriteSession(void 0,v.id.fromJS(a)).then((function(e){return e})).catch((function(e){t(Object(G.b)(e))}))}}(t))},favoriteUserSession:function(t,i){return e(function(e,t){return function(i,r){var a=r().users.loggedUser,n=null===a||void 0===a?void 0:a.userId;return t?U.S.createUserFavoriteReport(void 0,new v.fb({userId:n,sessionId:e})).then((function(){return!0})).catch((function(e){throw i(Object(G.b)(e)),e})):U.S.deleteUserFavoriteSession(void 0,new v.zb({userId:n,sessionId:e})).then((function(){return!0})).catch((function(e){throw i(Object(G.b)(e)),e}))}}(t,i))},registerParticipant:function(t,i,r,a){return e(Zi(t,i,r,a))},showConfirmation:function(t){return e(Object(on.b)(t))},updateParticipant:function(t,i,r,a,n){return e(Xi(t,i,r,!1,a,n))},getLearningSettings:function(){return e(Object(Ca.a)())}}}))((function(e){var t,i,n,o,s,l,u,p,f,m,y,g,b,S,E,I,O,C,x,j=e.addNotification,w=e.addUsersToWaitlist,T=e.courseId,P=e.deleteParticipant,A=e.deleteFromSessionWaitlist,N=e.getCourse,D=e.getPortalSessionsByMonth,L=e.getSession,J=e.getUserFavoriteSession,F=e.favoriteUserSession,B=e.onClose,R=e.open,U=e.registerParticipant,G=e.sessionId,M=e.showConfirmation,q=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),ae=re[0],ne=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===v.re.AdministrativeAssistant||le===v.re.Supervisor,de=((null===ee||void 0===ee?void 0:ee.sessionTypeId)===v.oe.Multipart||(null===ee||void 0===ee?void 0:ee.sessionTypeId)===v.oe.Recurring)&&(null===ee||void 0===ee?void 0:ee.title)!==(null===K||void 0===K?void 0:K.title),ue=Object(r.useContext)(En),he=ue.categories,pe=ue.endDate,ve=ue.favoriteSessions,fe=ue.startDate,me=ue.setSessionParticipantStatus,ye=v.ke.Tentative,ge=v.ke.Registered,be=ja()(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===(n=ee.sessionParticipant)||void 0===n?void 0:n.filter((function(e){return!e.isInstructor})),Oe=Ie&&(null===(o=Ie[0])||void 0===o?void 0:o.sessionParticipantId),Ce=ja()(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)})),Te=(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),Pe=null!==(u=null===ee||void 0===ee||null===(p=ee.sessionLicenses)||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})))&&void 0!==u?u:[],Ae=null!==(f=null!=Y&&(null===(m=Y.find((function(e){return e.learningSettingEnumType===v.wd.AllowTentativeReg})))||void 0===m?void 0:m.valueBit))&&void 0!==f&&f;Object(r.useEffect)((function(){Q(void 0),N(T).then((function(e){Q(e)}))}),[T,N]),Object(r.useEffect)((function(){te(void 0),L(G).then((function(e){te(e)}))}),[G,L]),Object(r.useEffect)((function(){ne(!1),J(G).then((function(e){0===e.userFavoriteSessionId?ne(!1):ne(!0)}))}),[G,J,ne]),Object(r.useEffect)((function(){_()}),[_]);var Ne=function(){he&&pe&&fe&&D(fe,pe,he,ve)},ke=function(e){me&&me(e),Q(void 0),Ne(),N(T).then((function(e){Q(e)})),te(void 0),L(G).then((function(e){te(e)}))},De=function(e,t){M("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,a){var n="",o="";0===t?(n="Are you sure you want to register for this session?",o="You have now been successfully registered for this session.",a&&(n="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&&(n="This session requires approval. We will send an email to confirm your registration."),M({message:n,title:"Confirm Registration",OnConfirm:function(){me&&me(0),z&&U([z],e,!1,a).then((function(){ke(ge),j(o)}))}})):t===ge?(n="Are you sure you want to update your registration status?",r&&(n="This session requires approval. We will send an email to confirm your registration."),M({message:n,title:"Confirm Status Update",OnConfirm:function(){me&&me(0),z&&q([i],ye,!1,e,!1).then((function(){ke(ye),j("Your registration status has been updated.")}))}})):(n="Are you sure you want to update your registration status?",r&&(n="This session requires approval. We will send an email to confirm your registration."),M({message:n,title:"Confirm Status Update",OnConfirm:function(){me&&me(0),z&&q([i],a?v.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})),Me=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 a.a.createElement(h.SideDrawer,{size:"md",open:R,onClose:B,colorMode:"dark"},a.a.createElement(ga.SideDrawerHeader,{titleBar:{title:K&&ee?a.a.createElement(h.Box,null,a.a.createElement(h.Row,{crossAxisAlignment:"middle"},a.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)&&a.a.createElement(h.Box,{ml:3},a.a.createElement(h.Tooltip,{title:"Session Favorite"},a.a.createElement("span",null,a.a.createElement(h.Checkbox,{onChange:function(e){F(G,e.target.checked).then((function(){Ne()})),ne(e.target.checked)},checked:ae,formikContext:!1,icon:a.a.createElement(h.SystemIcon,{size:"sm",type:"light",icon:"Star",color:"secondary"}),checkedIcon:a.a.createElement(h.SystemIcon,{size:"sm",type:"solid",color:"secondary",icon:"Star"})})))))):a.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))?a.a.createElement(h.Column,null,(null===K||void 0===K?void 0:K.providerName)&&a.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)?a.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):a.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))):a.a.createElement(h.Column,null,a.a.createElement(h.Typography,{variant:"subtitle2"},a.a.createElement(h.Skeleton,{variant:"text",width:"120px"})),a.a.createElement(h.Typography,{variant:"subtitle2"},a.a.createElement(h.Skeleton,{variant:"text",width:"70px"})))}}),a.a.createElement(ga.SideDrawerBody,null,a.a.createElement(a.a.Fragment,null,K&&ee?a.a.createElement(a.a.Fragment,null,(null===K||void 0===K?void 0:K.description)&&a.a.createElement(h.TextEditorView,{model:Object(k.a)(null===K||void 0===K?void 0:K.description)}),Me&&a.a.createElement(Sn,{courseClassYears:Ue,courseCompetencies:Je||[],courseDepartments:Fe,courseLevels:Re,coursePracticeAreas:Be,courseTags:Ge})):a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Skeleton,{variant:"text",width:"".concat(Math.floor(Math.random()*Math.floor(100)),"%")}),a.a.createElement(h.Skeleton,{variant:"text",width:"".concat(Math.floor(Math.random()*Math.floor(100)),"%")}),a.a.createElement("br",null),a.a.createElement(h.Skeleton,{variant:"text",width:"".concat(Math.floor(Math.random()*Math.floor(100)),"%")}),a.a.createElement(h.Skeleton,{variant:"text",width:"".concat(Math.floor(Math.random()*Math.floor(100)),"%")}),a.a.createElement(h.Skeleton,{variant:"text",width:"".concat(Math.floor(Math.random()*Math.floor(100)),"%")})),K&&ee?a.a.createElement(h.Box,{mt:3},a.a.createElement(pn,{status:Ee,statusChip:a.a.createElement(vn,{status:Ee,isWaitlisted:0!==Te&&Te===z}),actionButton:a.a.createElement(nn,{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!==Te&&Te===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&&M({message:"Are you sure you want to cancel your registration for this session?",title:"Cancel Registration",OnConfirm:function(){return P([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:Pe,sessionIsOnlineLearning:ee.isOnlineLearning,timeZone:ee.timeZone,duration:ee.duration})):a.a.createElement(h.Box,{mt:3},a.a.createElement(pn,{loading:!0})))))})),On=function(e){var t=e.title,i=Object(r.useState)(!0),n=Object(c.a)(i,2),o=n[0],s=n[1],l=function(){var e=Object(r.useState)(null),t=Object(c.a)(e,2),i=t[0],a=t[1];return[i,Object(r.useCallback)((function(e){null!==e&&a(e.getBoundingClientRect())}),[])]}(),d=Object(c.a)(l,2)[1],u=Object(z.useTheme)(),p=Object(z.useMediaQuery)(u.breakpoints.down("sm")),v=Object(z.useMediaQuery)(u.breakpoints.down("xs"));return a.a.createElement("div",{ref:d},a.a.createElement(h.Typography,{variant:"body1",color:"primary"},o?a.a.createElement(h.Tooltip,{title:t},a.a.createElement("div",null,a.a.createElement(h.TruncatedMarkup,{lines:1,width:v?void 0:p?250:170,ellipsis:"...",onTruncate:function(e){return s(e)}},t))):t))},Cn=Object(J.makeStyles)((function(e){return Object(J.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}})})),xn=Object(r.memo)((function(e){var t=e.calendarEvents,i=e.calendarRef,n=e.customHeaderToolbar,o=e.renderEventContent,s=e.isCalendarSessions,l=e.isSavedCalendarFilters,c=e.isNewUser,d=Object(r.useRef)(Cn()),u=Object(r.useCallback)((function(){return n}),[n]),p=Object(r.useCallback)((function(){return o}),[o]),v=Object(r.useCallback)((function(){return t}),[t]);return Object(r.useMemo)((function(){return a.a.createElement(h.Calendar,{calendarRef:i,dayHeaderClassNames:d.current.dayHeader,viewClassNames:d.current.calendarView,eventClassNames:d.current.eventView,eventContent:p(),events:s&&l?c?[]:v():[],customHeaderToolbar:u(),handleWindowResize:!0,headerToolbar:!1,lazyFetching:!1,contentHeight:600})}),[v,u,i,s,c,l,p])})),jn=function(e){var t=e.size,i=e.status,r=e.type,n=e.color;switch(i){case 1:case 6:return a.a.createElement(h.SystemIcon,{icon:"CalendarDay",size:t,type:r,color:n});case 2:return a.a.createElement(h.SystemIcon,{icon:"Success",size:t,type:r,color:n});case 3:return a.a.createElement(h.SystemIcon,{icon:"Tentative",size:t,type:r,color:n});case 4:return a.a.createElement(h.SystemIcon,{icon:"Waitlist",size:t,type:r,color:n});default:return a.a.createElement(h.SystemIcon,{icon:"Success",size:t,type:r,color:n})}};jn.defaultProps={status:1,size:"sm",type:"light"};var wn=jn,Tn=function(e){return a.a.createElement(h.Row,{crossAxisAlignment:"middle"},a.a.createElement(h.Box,{m:.3,width:20,flex:1},e.icon),e.label)},Pn=function(e,t){var i=e,r=i.courseFormat,n=i.courseFormatPortalCategory,o=i.endTime,s=i.location,l=i.provider,c=i.room,d=i.startTime,u=i.timeZone,p=i.title,f=i.endDate,m=i.startDate,y=i.sessionTypeId,g=i.courseTitle,b=(y===v.oe.Multipart||y===v.oe.Recurring)&&p!==g,S="".concat(g).concat(t?"":b?": ".concat(p):"");return a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Row,null,a.a.createElement(h.Column,{crossAxisAlignment:"right"},a.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},S||"Session: ".concat(Object(N.c)(m,"MMM DD, YYYY"))))),a.a.createElement(h.Row,null,a.a.createElement(h.Typography,{variant:"caption"},l)),a.a.createElement(h.Row,null,a.a.createElement(h.Column,{crossAxisAlignment:"left",flex:1},!t&&Tn({icon:a.a.createElement(h.SystemIcon,{icon:"Clock"}),label:a.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&&Tn({icon:a.a.createElement(h.Typography,{variant:"caption"},a.a.createElement(h.SystemIcon,{icon:"Location"})),label:a.a.createElement(h.Typography,{variant:"caption",color:"secondary"}," ".concat(null!==s&&void 0!==s?s:""," ").concat(null!==c&&void 0!==c?c:""))}),!t&&Tn({icon:a.a.createElement(h.Typography,{variant:"caption"},a.a.createElement(za,{format:null!==n&&void 0!==n?n:""})),label:a.a.createElement(h.Typography,{variant:"caption"}," ".concat(r))}))))},An=function(e){var t=e.calendarState,i=e.currentView,n=e.eventContent,o=e.handleEventClick,s=n.event.extendedProps.sessionParts,l=Object(r.useState)(!1),d=Object(c.a)(l,2),u=d[0],p=d[1],f=Object(J.useDebounce)((function(){t&&t.getApi().setOption("_resize",void 0)}),500);return"month"===i||"week"===i?a.a.createElement(h.Box,{bgcolor:"#e6f8fc",paddingX:1,paddingY:1},u&&s.map((function(e){var t;return a.a.createElement(h.Link,{onClick:function(){return o(e)},key:e.sessionId,noWrap:!0},a.a.createElement(h.Tooltip,{title:Pn(e),placement:"right-end"},a.a.createElement("span",null,a.a.createElement(h.Card,{variant:"outlined",style:{margin:4,padding:4}},a.a.createElement(h.Row,null,e.isInstructor&&a.a.createElement(a.a.Fragment,null,a.a.createElement(h.SystemIcon,{size:"xs",icon:"SystemUser",color:"primary"}),"\xa0"),(e.sessionParticipantStatusId===v.ke.Registered||e.sessionParticipantStatusId===v.ke.Tentative||e.sessionParticipantStatusId===v.ke.Validated||e.sessionParticipantStatusId===v.ke.Unexcused||e.isWaitlisted)&&a.a.createElement(wn,{status:e.isWaitlisted?4:e.sessionParticipantStatusId,size:"xs",type:"duotone",color:"primary"}),a.a.createElement(h.Spacer,{size:1}),a.a.createElement(h.Typography,{color:"primary",variant:"caption"},(null===(t=e.startTime)||void 0===t?void 0:t.toLowerCase())||"--:--"),a.a.createElement(h.Spacer,{size:1}),a.a.createElement(h.Typography,{color:"primary",variant:"caption",noWrap:!0},e.title))))))})),a.a.createElement(h.Box,{textAlign:"right"},a.a.createElement(h.Link,{onClick:function(){p(!u),f()}},a.a.createElement(h.Typography,{variant:"caption",color:"primary"},u?"Hide":"".concat(s.length," more"))))):a.a.createElement(a.a.Fragment,null)},Nn=Object(r.memo)((function(e){var t=e.calendarState,i=e.currentView,n=e.eventContent,o=e.handleEventClick,s=n.event,l=s.backgroundColor,c=s.borderColor,d=s.extendedProps,u=d.sessionPart,p=d.sessionParts,f=d.multiSession,m=u&&"".concat(u.courseTitle," ").concat(f||u.courseTitle===u.title?"":"".concat(u.title)),y=u&&(u.sessionTypeId===v.oe.Single?"SingleSession":u.sessionTypeId===v.oe.Multipart?"MultiPartSessions":u.sessionTypeId===v.oe.Recurring?"Recur":u.sessionTypeId===v.oe.Simultaneous?"SimultaneousSessions":"");return Object(r.useMemo)((function(){return u?a.a.createElement(a.a.Fragment,null,("month"===i||"week"===i)&&a.a.createElement(h.Box,{display:"flex",bgcolor:l,borderColor:c,borderRadius:"2px",overflow:"hidden",p:1},a.a.createElement(h.Link,{onClick:function(){return o(u,p)},color:"primary",weight:"semi-bold",noWrap:!0},a.a.createElement(h.Tooltip,{title:Pn(u,f),key:u.sessionId,placement:"right-end"},a.a.createElement("span",null,y&&a.a.createElement(a.a.Fragment,null,a.a.createElement(h.SystemIcon,{size:"xs",icon:y,type:"duotone"}),"\xa0"),!f&&u.isInstructor&&a.a.createElement(a.a.Fragment,null,a.a.createElement(h.SystemIcon,{size:"xs",icon:"SystemUser",type:"duotone"}),"\xa0"),(u.sessionParticipantStatusId===v.ke.Registered||u.sessionParticipantStatusId===v.ke.Tentative||u.sessionParticipantStatusId===v.ke.Validated||u.sessionParticipantStatusId===v.ke.Unexcused||u.isWaitlisted)&&!f&&a.a.createElement(wn,{status:u.isWaitlisted?4:u.sessionParticipantStatusId,size:"xs",type:"duotone",color:"primary"}),a.a.createElement(h.Spacer,{size:1}),null!==m&&void 0!==m?m:"")))),f&&a.a.createElement(An,{calendarState:t,currentView:i,eventContent:n,handleEventClick:o})):a.a.createElement(a.a.Fragment,null)}),[l,c,t,i,y,m,n,o,f,u,p])})),kn=i(29),Dn=function(e){var t=e.menu,i=e.icon,r=e.title,n=a.a.useState(null),o=Object(c.a)(n,2),s=o[0],l=o[1],d=function(e){e.stopPropagation(),l(e.currentTarget)},u=function(e){e.stopPropagation(),l(null)},p=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)?a.a.createElement(h.Tooltip,{title:"No action available"},a.a.createElement(h.Button,{"aria-controls":"action-menu","aria-haspopup":"true",color:"primary",variant:"text",size:"small",onClick:d,startIcon:i||a.a.createElement(h.SystemIcon,{icon:"Actions",size:"sm"})},r&&a.a.createElement(a.a.Fragment,null,r))):a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Button,{"aria-controls":"simple-menu","aria-haspopup":"true",color:"primary",variant:"text",size:"small",onClick:d,startIcon:i||a.a.createElement(h.SystemIcon,{icon:"Actions",size:"sm"})},r&&a.a.createElement(a.a.Fragment,null,r)),a.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||a.a.createElement(h.Box,{key:"menu-".concat(t)},e.disabledTooltip&&e.disable?a.a.createElement(h.Tooltip,{title:e.disabledTooltip},a.a.createElement("span",null,a.a.createElement(h.MenuItem,{disabled:e.disable,onClick:function(t){return p(t,e.onClick)},key:"menu-item-".concat(t)},a.a.createElement(h.ListItemIcon,null,e.icon),a.a.createElement(h.ListItemText,{primary:e.label})))):a.a.createElement(h.MenuItem,{disabled:e.disable,onClick:function(t){return p(t,e.onClick)},key:"menu-item-".concat(t)},a.a.createElement(h.ListItemIcon,null,e.icon),a.a.createElement(h.ListItemText,{primary:e.label})))}))))},Ln=function(e){switch(e.type){case"filter-drawer":return a.a.createElement(h.Box,null,a.a.createElement(h.Box,{pb:2},a.a.createElement(h.Skeleton,{height:52,variant:"rect",style:{borderRadius:"4px"}})),a.a.createElement(h.Box,{pb:2},a.a.createElement(h.Skeleton,{height:52,variant:"rect",style:{borderRadius:"4px"}})),a.a.createElement(h.Box,{pb:2},a.a.createElement(h.Skeleton,{height:52,variant:"rect",style:{borderRadius:"4px"}})));default:return a.a.createElement(h.Skeleton,null)}},Jn=function(e){var t=new v.bc({filterBy:["isActive:true"],searchCriteria:[],sortBy:"name",page:1,pageSize:-1,includeIds:e});return function(e){return U.h.getAll(void 0,v.bc.fromJS(t)).then((function(e){return e})).catch((function(t){e(Object(G.b)(t))}))}},Fn=function(e){var t=new v.cc({filterBy:["isActive:true"],searchCriteria:[],sortBy:"name",page:1,pageSize:-1,includeIds:e});return function(e){return U.i.getAll(void 0,v.cc.fromJS(t)).then((function(e){return e})).catch((function(t){e(Object(G.b)(t))}))}},Bn=function(e){var t=new v.dc({filterBy:["isActive:true"],searchCriteria:[],sortBy:"name",page:1,pageSize:-1,includeIds:e});return function(e){return U.p.getAll(void 0,v.dc.fromJS(t)).then((function(e){return e})).catch((function(t){e(Object(G.b)(t))}))}},Rn=(i(510),i(254)),Un=function(e){return{type:Rn.a,payload:e}},Gn=function(e){return{type:Rn.b,payload:e}},Mn=function(e){return function(t){return t(Un(null)),t(Gn(!0)),U.v.getAllActive(void 0).then((function(i){var r,a,n;void 0!==e&&e.length>0?r=null===(a=i.courseFormats)||void 0===a?void 0:a.filter((function(t){return e.some((function(e){return e===t.courseFormatId}))})):r=null===(n=i.courseFormats)||void 0===n?void 0:n.filter((function(e){return e.isEnabled}));return t(Un(r)),t(Gn(!1)),r})).catch((function(){t(Un())}))}},qn=function(e){var t=new v.hc({filterBy:["isActive:true"],searchCriteria:[],sortBy:"name",page:1,pageSize:-1,includeIds:e});return function(e){return U.C.getAll(void 0,v.hc.fromJS(t)).then((function(e){return e})).catch((function(t){e(Object(G.b)(t))}))}},zn=function(e){var t=new v.ic({filterBy:["isActive:true"],searchCriteria:[],sortBy:"name",page:1,pageSize:-1,includeIds:e});return function(e){return U.G.getAll(void 0,v.ic.fromJS(t)).then((function(e){return e})).catch((function(t){e(Object(G.b)(t))}))}},Wn=function(e){var t=new v.lc({filterBy:["isActive:true"],searchCriteria:[],sortBy:"name",page:1,pageSize:-1,includeIds:e});return function(e){return U.L.getAll(void 0,v.lc.fromJS(t)).then((function(e){return e})).catch((function(t){e(Object(G.b)(t))}))}},Vn=function(e,t){var i=new v.mc({filterBy:["isActive:true"],searchCriteria:!1===t?["isThirdParty"]:[],sortBy:"name",page:1,pageSize:-1,includeIds:e});return function(e){return U.M.getAll(void 0,v.mc.fromJS(i)).then((function(e){return e})).catch((function(t){e(Object(G.b)(t))}))}},_n=function(e){var t=new v.qc({filterBy:["isActive:true"],searchCriteria:[],sortBy:"name",page:1,pageSize:-1,includeIds:e});return function(e){return U.U.getAll(void 0,v.qc.fromJS(t)).then((function(e){return e})).catch((function(t){e(Object(G.b)(t))}))}},Yn=function(){return function(e){return U.E.getAllFirmLicenses(void 0).then((function(e){return e})).catch((function(t){throw e(Object(G.b)(t)),t}))}};function $n(){$n=function(){return e};var e={},t=Object.prototype,i=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",n=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 a=t&&t.prototype instanceof u?t:u,n=Object.create(a.prototype),o=new O(r||[]);return n._invoke=function(e,t,i){var r="suspendedStart";return function(a,n){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw n;return x()}for(i.method=a,i.arg=n;;){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),n}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 p(){}var v={};s(v,a,(function(){return this}));var f=Object.getPrototypeOf,m=f&&f(f(C([])));m&&m!==t&&i.call(m,a)&&(v=m);var y=p.prototype=u.prototype=Object.create(v);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(a,n){function o(){return new t((function(r,o){!function r(a,n,o,s){var l=c(e[a],e,n);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)}(a,n,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 a=r.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):a:(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[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r=0;--a){var n=this.tryEntries[a],o=n.completion;if("root"===n.tryLoc)return r("end");if(n.tryLoc<=this.prev){var s=i.call(n,"catchLoc"),l=i.call(n,"finallyLoc");if(s&&l){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&i.call(a,"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 a=r.arg;I(i)}return a}}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 Hn=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(Jn(t))},getAllCompetencies:function(t){return e(Fn(t))},getAllDepartments:function(t){return e(Bn(t))},getAllLearningPlans:function(){return e(Yi())},getAllLevels:function(t){return e(qn(t))},getAllLicenses:function(){return e(Yn())},getAllLocations:function(t){return e(zn(t))},getAllPracticeAreas:function(t){return e(Wn(t))},getAllProviders:function(t){return e(Vn(t))},getAllTags:function(t){return e(_n(t))},getAllFormats:function(t){return e(Mn(t))},saveCalendarFilter:function(t,i){return e(Hi(t,i))},validateCalendarSavedFilterName:function(t,i,r){return e(Ki(t,i,r))}}}))((function(e){var t,i=e.duplicateMode,n=e.getAllClassYears,o=e.getAllCompetencies,s=e.getAllDepartments,d=e.getAllLearningPlans,u=e.getAllLevels,p=e.getAllLicenses,v=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,T=Object(r.useState)(void 0),P=Object(c.a)(T,2),A=P[0],N=P[1],k=Object(r.useState)(void 0),L=Object(c.a)(k,2),J=L[0],F=L[1],B=Object(r.useState)(void 0),R=Object(c.a)(B,2),U=R[0],G=R[1],M=Object(r.useState)(void 0),q=Object(c.a)(M,2),z=q[0],W=q[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),ae=Object(c.a)(re,2),ne=ae[0],oe=ae[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),pe=he[0],ve=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),Te=Object(c.a)(we,2),Pe=Te[0],Ae=Te[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),Me=Ge[0],qe=Ge[1],ze=Object(r.useCallback)((function(){if(w){var e,t,i,r,a,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!==(a=w.providerIds.map(String))&&void 0!==a?a:[],x=null!==(l=w.competencyIds.map(String))&&void 0!==l?l:[],j=null!==(c=w.classYearIds.map(String))&&void 0!==c?c:[],T=null!==(h=w.tagIds.map(String))&&void 0!==h?h:[],P=null!==(b=w.courseFormatIds)&&void 0!==b?b:[];n(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)})),p().then((function(e){Z(null===e||void 0===e?void 0:e.licenses)})),v(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(T).then((function(e){ve(null===e||void 0===e?void 0:e.tags)})),g(P).then((function(e){ge(e||[])}))}}),[w,n,o,s,g,d,u,p,v,f,m,y]);Object(r.useEffect)((function(){ze()}),[ze]),Object(r.useEffect)((function(){Ae(void 0===ce||void 0===Q||void 0===J||void 0===pe||void 0===z||void 0===te||void 0===U||void 0===ne||void 0===Y||void 0===A||void 0===ye)}),[A,J,U,z,Y,Q,te,ne,ce,Ae,pe,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,a=Array(),n=null===O||void 0===O||null===(r=O.filter)||void 0===r?void 0:r.split("|");if(n){var o=n.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)]&&a.push(i)}))}))}return a},_e={initialValues:{courseProviders:Ve("ProviderIds","providerId",ce),courseClassYears:Ve("CourseClassYear","classYearId",A),courseCompetencies:Ve("CourseCompetency","competencyId",J),courseDepartments:Ve("CourseDepartment","departmentId",U),courseLevels:Ve("CourseLevel","levelId",Y),coursePracticeAreas:Ve("CoursePracticeArea","practiceAreaId",ne),courseTags:Ve("CourseTag","tagId",pe),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 a=r.split(": ")[1];return e&&(null===e||void 0===e?void 0:e.find((function(e){return e.licenseId===parseInt(a,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 a={};r.split(":")[1].split(" ".concat(e.licenseId,"_"))[1].split("_").forEach((function(e){var t=e.split("-");a=Object(D.a)(Object(D.a)({},a),{},Object(kn.a)({},"".concat(t[0]),t[1]))}));var n={};e.licenseCredits&&e.licenseCredits.forEach((function(t){var i,r=a[null!==(i=t.creditId)&&void 0!==i?i:0];r=void 0===r?null:parseFloat(r.toString()),n=Object(D.a)(Object(D.a)({},n),{},Object(kn.a)({},"".concat(e.licenseId,"_").concat(t.creditId),r))})),t=Object(D.a)(Object(D.a)({},t),n)}})),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(Ta.object)().shape({courseProviders:Object(Ta.array)().nullable(),courseClassYears:Object(Ta.array)().nullable(),courseCompetencies:Object(Ta.array)().nullable(),courseDepartments:Object(Ta.array)().nullable(),courseLevels:Object(Ta.array)().nullable(),coursePracticeAreas:Object(Ta.array)().nullable(),courseTags:Object(Ta.array)().nullable(),courseLearningPlans:Object(Ta.array)().nullable(),jurisdictions:Object(Ta.array)().notRequired().nullable(),sessionInstructor:Object(Ta.string)().nullable(),sessionLocations:Object(Ta.array)().nullable(),sessionFormats:Object(Ta.array)().notRequired(),name:Object(Ta.string)().required("Required").max(1e3,"Too long!").trim().test("check-duplicate-filter-name","This name already exists.",function(){var e=Object(l.a)($n().mark((function e(t){var r,a;return $n().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!==(a=null===O||void 0===O?void 0:O.createdBy)&&void 0!==a?a:"").then((function(e){return!e})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),isDefault:Object(Ta.string)()}),onSubmit:function(e,t){var r,a=e.courseProviders,n=e.courseClassYears,o=e.courseCompetencies,s=e.courseDepartments,l=e.courseLevels,d=e.coursePracticeAreas,u=e.courseTags,h=e.courseLearningPlans,p=e.jurisdictions,v=e.licenseCreditsList,f=e.sessionInstructor,m=e.sessionLocations,y=e.sessionFormats,g=e.isDefault,E=e.name,C=Array();if(a.length>0){var j="ProviderIds: ";a.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(n.length>0){var w="CourseClassYear[or]: ";n.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 T="CourseCompetency[or]: ";o.forEach((function(e){var t,i=null!==(t=e.competencyId)&&void 0!==t?t:0;T=T.concat(i.toString(),",")})),C.push(T.slice(0,-1))}if(s.length>0){var P="CourseDepartment[or]: ";s.forEach((function(e){var t,i=null!==(t=e.departmentId)&&void 0!==t?t:0;P=P.concat(i.toString(),",")})),C.push(P.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 L="LearningPlan[or]: ";h.forEach((function(e){var t,i=null!==(t=e.learningPlanId)&&void 0!==t?t:0;L=L.concat(i.toString(),",")})),C.push(L.slice(0,-1))}if(m.length>0){var J="SessionLocation: ";m.forEach((function(e){var t,i=null!==(t=e.locationId)&&void 0!==t?t:0;J=J.concat(i.toString(),",")})),C.push(J.slice(0,-1))}if(Object.keys(p).length>0){var F="SessionLicense[or]: ".concat(p.licenseId),B=Array(),R=xe&&(null===xe||void 0===xe?void 0:xe.map((function(e){return e.licenseId}))),U={};C.push(F),v&&(Object.keys(v).forEach((function(e){var t=parseInt(e.split("_")[0],10);if((null===p||void 0===p?void 0:p.licenseId)===t){var i=parseInt(e.split("_")[1],10),r=v[e];if(""!==r&&null!==r){var a=parseFloat(r);U=Object(D.a)(Object(D.a)({},U),{},Object(kn.a)({},"".concat(t,"-").concat(i),"".concat(t,"|").concat(i,"-").concat(a)))}}})),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 M=Object(D.a)(Object(D.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(M,!i).then((function(e){t.setSubmitting(!1),e&&(b(),S(e))}))}};return a.a.createElement(h.SideDrawer,{size:"sm",open:E,onClose:function(){Le(!0),b()}},a.a.createElement(wa.Formik,{initialValues:_e.initialValues,validationSchema:_e.validationSchema,onSubmit:_e.onSubmit,enableReinitialize:De},(function(e){return a.a.createElement(h.Form,{id:"edit-saved-calendar-filter",formikContext:!0},a.a.createElement(ga.SideDrawerHeader,{titleBar:{title:i?"Add Filter":"Edit Filters"},widgets:a.a.createElement(h.Typography,{variant:"body1"},"for ",null===O||void 0===O?void 0:O.name)}),a.a.createElement(ga.SideDrawerBody,{maxWidth:!1},Pe?a.a.createElement(Ln,{type:"filter-drawer"}):a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:12}),a.a.createElement(h.Grid,{item:!0,xs:12,key:"name",stretchContent:!0,alignment:"top-left"},a.a.createElement(h.TextField,{required:!0,fullWidth:!0,id:"name",label:"Filter Name",formikContext:!0})),a.a.createElement(h.Grid,{item:!0,xs:12,key:"isDefault",stretchContent:!0,alignment:"top-left"},a.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)})),a.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},a.a.createElement(h.Divider,null)),a.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},a.a.createElement(h.ComboBox,{label:"Provider",id:"courseProviders",multiple:!0,fullWidth:!0,optionId:"providerId",options:ce||[]})),a.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},a.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"}})),a.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},a.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,a=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(a),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 a.a.createElement(h.Grid,{key:e.licenseId,item:!0,sm:12,md:12,lg:12},a.a.createElement(h.Grid,{container:!0,spacing:"form",key:"license_".concat(e.licenseId,"_info")},a.a.createElement(h.Grid,{container:!0,spacing:"form"},null===(t=e.licenseCredits)||void 0===t?void 0:t.map((function(t){return a.a.createElement(h.Grid,{item:!0,xs:4,key:"".concat(e.licenseId,"_").concat(t.creditId)},a.a.createElement(h.Box,{mt:1,ml:1,mr:1},a.a.createElement(h.TextField,{id:"licenseCreditsList.".concat(e.licenseId,"_").concat(t.creditId),label:t.name,type:"text",fullWidth:!0,formikContext:!0,maxLabelLength:10})))})))))})))),a.a.createElement(h.Box,{mt:2},a.a.createElement(h.Row,{crossAxisAlignment:"middle"},a.a.createElement(h.Expanded,null,a.a.createElement(h.Typography,{variant:"button"},a.a.createElement("b",null,"Advanced Search Options"))),a.a.createElement(h.Expanded,{flex:0,ml:1},a.a.createElement(h.IconButton,{onClick:function(){qe(!Me)}},Me?a.a.createElement(h.SystemIcon,{icon:"CollapseVertical",size:"md"}):a.a.createElement(h.SystemIcon,{icon:"ExpandVertical",size:"md"}))))),a.a.createElement(h.Collapse,{in:Me},a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,sm:12,md:12,lg:12},a.a.createElement(h.ComboBox,{label:"Competencies",id:"courseCompetencies",multiple:!0,fullWidth:!0,optionId:"competencyId",options:J||[]})),a.a.createElement(h.Grid,{item:!0,sm:12,md:12,lg:12},a.a.createElement(h.ComboBox,{label:"Tag",id:"courseTags",multiple:!0,fullWidth:!0,optionId:"tagId",options:pe||[]})),a.a.createElement(h.Grid,{item:!0,sm:12,md:12,lg:12},a.a.createElement(h.ComboBox,{label:"Learning Plan",id:"courseLearningPlans",multiple:!0,fullWidth:!0,optionId:"learningPlanId",options:z||[]})),a.a.createElement(h.Grid,{item:!0,sm:12,md:12,lg:12},a.a.createElement(h.ComboBox,{label:"Location",id:"sessionLocations",multiple:!0,fullWidth:!0,optionId:"locationId",options:te||[]})),a.a.createElement(h.Grid,{item:!0,sm:12,md:12,lg:12},a.a.createElement(h.ComboBox,{label:"Department",id:"courseDepartments",multiple:!0,fullWidth:!0,optionId:"departmentId",options:U||[]})),a.a.createElement(h.Grid,{item:!0,sm:12,md:12,lg:12},a.a.createElement(h.ComboBox,{label:"Practice Area",id:"coursePracticeAreas",multiple:!0,fullWidth:!0,optionId:"practiceAreaId",options:ne||[]})),a.a.createElement(h.Grid,{item:!0,sm:12,md:12,lg:12},a.a.createElement(h.ComboBox,{label:"Level",id:"courseLevels",multiple:!0,fullWidth:!0,optionId:"levelId",options:Y||[]})),a.a.createElement(h.Grid,{item:!0,sm:12,md:12,lg:12},a.a.createElement(h.ComboBox,{label:"Class Year",id:"courseClassYears",multiple:!0,fullWidth:!0,optionId:"classYearId",options:A||[]})),a.a.createElement(h.Grid,{item:!0,sm:12,md:12,lg:12},a.a.createElement(h.TextField,{label:"Instructor",fullWidth:!0,id:"sessionInstructor"})))))),a.a.createElement(ga.SideDrawerFooter,null,a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:6,alignment:"center-right"},a.a.createElement(h.Button,{variant:"outlined",color:"default",onClick:function(){return b()},fullWidth:!0},"Cancel")),a.a.createElement(h.Grid,{item:!0,xs:6,alignment:"center-left"},a.a.createElement(h.Button,{loading:e.isSubmitting,variant:"contained",type:"submit",color:"primary",fullWidth:!0},"Save")))))})))}));function Kn(){Kn=function(){return e};var e={},t=Object.prototype,i=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",n=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 a=t&&t.prototype instanceof u?t:u,n=Object.create(a.prototype),o=new O(r||[]);return n._invoke=function(e,t,i){var r="suspendedStart";return function(a,n){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw n;return x()}for(i.method=a,i.arg=n;;){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),n}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 p(){}var v={};s(v,a,(function(){return this}));var f=Object.getPrototypeOf,m=f&&f(f(C([])));m&&m!==t&&i.call(m,a)&&(v=m);var y=p.prototype=u.prototype=Object.create(v);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(a,n){function o(){return new t((function(r,o){!function r(a,n,o,s){var l=c(e[a],e,n);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)}(a,n,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 a=r.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):a:(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[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r=0;--a){var n=this.tryEntries[a],o=n.completion;if("root"===n.tryLoc)return r("end");if(n.tryLoc<=this.prev){var s=i.call(n,"catchLoc"),l=i.call(n,"finallyLoc");if(s&&l){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&i.call(a,"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 a=r.arg;I(i)}return a}}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 Qn=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(Hi(t,i))},validateCalendarSavedFilterName:function(t,i,r){return e(Ki(t,i,r))}}}))((function(e){var t=e.onClose,i=e.onSaved,r=e.open,n=e.title,o=e.editMode,s=e.saveCalendarFilter,c=e.selectedFilter,d=e.userName,u=e.validateCalendarSavedFilterName,p=[{label:"Yes",value:"1"},{label:"No",value:"2"}],v={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(Ta.object)().shape({name:Object(Ta.string)().required("Required").max(1e3,"Too long!").trim().test("check-duplicate-filter-name","This name already exists.",function(){var e=Object(l.a)(Kn().mark((function e(t){return Kn().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(Ta.string)()}),onSubmit:function(e,r){var a=e.name,n=e.isDefault,l=Object(D.a)(Object(D.a)({},c),{},{calendarSavedFilterId:o?null===c||void 0===c?void 0:c.calendarSavedFilterId:void 0,name:String(a).trim(),isPublic:!1,isReadOnly:!0,isDefault:"1"===n,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 a.a.createElement(h.Dialog,{maxWidth:"sm",fullWidth:!0,color:"default",open:r,onClose:t},a.a.createElement(wa.Formik,{initialValues:v.initialValues,validationSchema:v.validationSchema,onSubmit:v.onSubmit},(function(e){return a.a.createElement(h.Form,{id:"calendar-save-filter",formikContext:!0},a.a.createElement(Ia.DialogHeader,{titleBar:{title:n,onClose:t}}),a.a.createElement(Ia.DialogBody,{maxWidth:!1},a.a.createElement(h.Grid,{container:!0,spacing:2},a.a.createElement(h.Grid,{item:!0,xs:12,key:"caption",stretchContent:!0,alignment:"top-left"},a.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.")),a.a.createElement(h.Grid,{item:!0,xs:12,key:"name",stretchContent:!0,alignment:"top-left"},a.a.createElement(h.TextField,{formikContext:!0,required:!0,fullWidth:!0,id:"name",label:"Filter Name"})),a.a.createElement(h.Grid,{item:!0,xs:12,key:"isDefault",stretchContent:!0,alignment:"top-left"},a.a.createElement(h.RadioGroup,{formikContext:!0,groupLabel:"Set as the default filter?",options:p,id:"isDefault",orientation:"horizontal"})))),a.a.createElement(Ia.DialogFooter,null,a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:6,alignment:"center-right"},a.a.createElement(h.Button,{color:"default",variant:"outlined",type:"reset",onClick:function(){t()},fullWidth:!0},"Cancel")),a.a.createElement(h.Grid,{item:!0,xs:6,alignment:"center-left"},a.a.createElement(h.Button,{loading:e.isSubmitting,color:"primary",variant:"contained",type:"submit",fullWidth:!0},"Save")))),a.a.createElement(h.Box,{mb:3}))})))})),Zn=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(on.b)(t))},deleteSavedFilter:function(t){return e(function(e){return function(t,i){var r=i().sessions.savedCalendarFilterId;U.e.delete(void 0,e).then((function(){t(Object(G.a)({message:"Saved filter successfully deleted.",variant:"success"})),void 0!==e.find((function(e){return e===r}))&&t(zi(-1)),t($i(!1))})).catch((function(e){e.errors&&e.errors.SavedFilterDefault&&e.errors.SavedFilterDefault.length>0?t(Object(G.b)(e.errors.SavedFilterDefault[0])):t(Object(G.b)(e.title))}))}}(t))},getAllClassYears:function(t){return e(Jn(t))},getAllCompetencies:function(t){return e(Fn(t))},getAllDepartments:function(t){return e(Bn(t))},getAllLearningPlans:function(){return e(Yi())},getAllLevels:function(t){return e(qn(t))},getAllLicenses:function(){return e(Yn())},getAllLocations:function(t){return e(zn(t))},getAllPracticeAreas:function(t){return e(Wn(t))},getAllProviders:function(t){return e(Vn(t))},getAllTags:function(t){return e(_n(t))},getAllFormats:function(t){return e(Mn(t))},getPortalSessionsByMonth:function(t,i,r){var a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return e(_i(t,i,r,a))},setRequestBody:function(t){return e(Mi(t))},setCalendarSavedFilterDefault:function(t){return e((i=t,function(e,t){var r=t().users.loggedUser;return e(qi(void 0)),U.O.setSavedFilterDefault(void 0,v.pe.fromJS({userId:null===r||void 0===r?void 0:r.userId,calendarSavedFilterId:i.calendarSavedFilterId})).then((function(){e(Object(G.a)({message:"".concat(i.name," have been set to default."),variant:"success"})),e($i(!1))})).catch((function(t){e(Object(G.b)(t))}))}));var i},setSelectedFirmLicenses:function(t){return e({type:"SET_SELECTED_FIRM_LICENSES",payload:t})},setSelectedCalendarFilterId:function(t){e(zi(t))},setSelectedSessionFilters:function(t){return e(Wi(t))}}}))((function(e){var t,i,n=e.filterOpen,o=e.confirmDialog,s=e.deleteSavedFilter,l=e.endDate,d=e.isFavorite,u=e.getAllClassYears,p=e.getAllCompetencies,v=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,T=e.selectedFirmLicenses,P=e.selectedSessionFilters,A=e.sessionCalRequestBody,N=e.setCalendarSavedFilterDefault,k=e.setRequestBody,L=e.setSelectedCalendarFilterId,J=e.setSelectedFirmLicenses,F=e.setSelectedSessionFilters,B=e.onClose,R=e.startDate,U=e.courseFilters,G=Object(r.useState)(void 0),M=Object(c.a)(G,2),q=M[0],z=M[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),ae=re[0],ne=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],pe=ue[1],ve=Object(r.useState)(void 0),fe=Object(c.a)(ve,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),Te=we[0],Pe=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],Me=Ue[1],qe=Object(r.useState)(!1),ze=Object(c.a)(qe,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],at=Object(r.useState)(void 0),nt=Object(c.a)(at,2),ot=nt[0],st=nt[1],lt=Object(r.useState)(!1),ct=Object(c.a)(lt,2),dt=ct[0],ut=ct[1],ht=Object(r.useState)(!0),pt=Object(c.a)(ht,2),vt=pt[0],ft=pt[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):[],a=U?U.providerIds.map(String):[],n=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)})),p(n).then((function(e){Y(null===e||void 0===e?void 0:e.competencies)})),v(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){ne(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){pe(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(a).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){Pe(e.filter((function(e){return"On-demand"!==e.portalCategory}))||[])})),St.current=!1}}),[U,u,p,v,I,f,m,y,g,b,S,E]);Object(r.useEffect)((function(){St.current&&It()}),[It]),Object(r.useEffect)((function(){n&&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===ae||void 0===q||void 0===Te)}),[q,_,K,n,ee,ae,le,he,me,Se,Ce,Te]),Object(r.useEffect)((function(){if(n){var e=null===P||void 0===P?void 0:P.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)}}),[n,P,Fe,Be]),Object(r.useEffect)((function(){if(n)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:[];J(i)}else J(null)}),[le,n,Fe,J]);var Ot=function(e,t,i){var r=[],a=null===P||void 0===P?void 0:P.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)]&&r.push(i)}))}));return r},Ct={initialValues:{courseProviders:Ot("ProviderIds","providerId",Se),courseClassYears:Ot("CourseClassYear","classYearId",q),courseCompetencies:Ot("CourseCompetency","competencyId",_),courseDepartments:Ot("CourseDepartment","departmentId",K),courseLevels:Ot("CourseLevel","levelId",ae),coursePracticeAreas:Ot("CoursePracticeArea","practiceAreaId",me),courseTags:Ot("CourseTag","tagId",Ce),courseLearningPlans:Ot("LearningPlan","learningPlanId",ee),jurisdictions:function(e){var t=null===P||void 0===P?void 0:P.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 T&&(null===T||void 0===T?void 0:T.length)>0&&T.forEach((function(t){var i=null===P||void 0===P?void 0:P.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(D.a)(Object(D.a)({},r),{},Object(kn.a)({},"".concat(t[0]),t[1]))}));var a={};t.licenseCredits&&t.licenseCredits.forEach((function(e){var i,n=r[null!==(i=e.creditId)&&void 0!==i?i:0];n=void 0===n?null:parseFloat(n.toString()),a=Object(D.a)(Object(D.a)({},a),{},Object(kn.a)({},"".concat(t.licenseId,"_").concat(e.creditId),n))})),e=Object(D.a)(Object(D.a)({},e),a)}})),e}(),sessionInstructor:null!==(i=function(e){var t=null===P||void 0===P?void 0:P.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",Te)},validationSchema:Object(Ta.object)().shape({courseProviders:Object(Ta.array)().nullable(),courseClassYears:Object(Ta.array)().nullable(),courseCompetencies:Object(Ta.array)().nullable(),courseDepartments:Object(Ta.array)().nullable(),courseLevels:Object(Ta.array)().nullable(),coursePracticeAreas:Object(Ta.array)().nullable(),courseTags:Object(Ta.array)().nullable(),courseLearningPlans:Object(Ta.array)().nullable(),jurisdictions:Object(Ta.array)().notRequired().nullable(),sessionInstructor:Object(Ta.string)().nullable(),sessionLocations:Object(Ta.array)().nullable(),sessionFormats:Object(Ta.array)().notRequired()}),onSubmit:function(e,t){var i=e.courseProviders,r=e.courseClassYears,a=e.courseCompetencies,n=e.courseDepartments,o=e.courseLevels,s=e.coursePracticeAreas,u=e.courseTags,h=e.courseLearningPlans,p=e.jurisdictions,v=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(a.length>0){var E="CourseCompetency[or]: ";a.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(n.length>0){var I="CourseDepartment[or]: ";n.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 P="CourseTag[or]: ";u.forEach((function(e){var t,i=null!==(t=e.tagId)&&void 0!==t?t:0;P=P.concat(i.toString(),",")})),g.push(P.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(p).length>0){var J="SessionLicense[or]: ".concat(p.licenseId),U=Array(),G=T&&(null===T||void 0===T?void 0:T.map((function(e){return e.licenseId}))),M={};g.push(J),v&&(Object.keys(v).forEach((function(e){var t=parseInt(e.split("_")[0],10);if((null===p||void 0===p?void 0:p.licenseId)===t){var i=parseInt(e.split("_")[1],10),r=v[e];if(""!==r&&null!==r){var a=parseFloat(r);M=Object(D.a)(Object(D.a)({},M),{},Object(kn.a)({},"".concat(t,"-").concat(i),"".concat(t,"|").concat(i,"-").concat(a)))}}})),G&&G.forEach((function(e){var t="Credit: ".concat(e),i=t;Object.entries(M).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 q="SessionLocation: ";m.forEach((function(e){var t,i=null!==(t=e.locationId)&&void 0!==t?t:0;q=q.concat(i.toString(),",")})),g.push(q.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(D.a)(Object(D.a)({},A),{},{searchCriteria:[],page:1})),Ze?st({filter:g?g.join("|"):""}):(0===g.length&&k(Object(D.a)(Object(D.a)({},A),{},{searchCriteria:[],page:1})),null!=g&&k(Object(D.a)(Object(D.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(_)L(null!==(W=null===_||void 0===_?void 0:_.calendarSavedFilterId)&&void 0!==W?W:0);else g.length>0?L(-1):L(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:a.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:a.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:a.a.createElement(h.SystemIcon,{icon:"Clone"}),onClick:function(){return t=e,st(Object(D.a)(Object(D.a)({},t),{},{calendarSavedFilterId:0,name:"".concat(t.name," clone")})),He(!0),void rt(!0);var t}},{label:"Delete",icon:a.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},Tt=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},Pt=function(e){return[{label:"Filters",component:dt?a.a.createElement(ga.SideDrawerBody,{maxWidth:!1},a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,sm:12,md:12,lg:12},a.a.createElement(Ln,{type:"filter-drawer"})))):a.a.createElement(a.a.Fragment,{key:"filter"},a.a.createElement(ga.SideDrawerBody,{maxWidth:!1},a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,sm:12,md:12,lg:12},a.a.createElement(h.ComboBox,{label:"Provider",id:"courseProviders",multiple:!0,fullWidth:!0,optionId:"providerId",options:Se||[]})),a.a.createElement(h.Grid,{item:!0,sm:12,md:12,lg:12},a.a.createElement(h.ComboBox,{id:"sessionFormats",label:"Session Format",fullWidth:!0,multiple:!0,options:Te||[],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"}})),a.a.createElement(h.Grid,{item:!0,sm:12,md:12,lg:12},a.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,a=null!==(r=null===le||void 0===le?void 0:le.filter((function(e){return i.licenseId&&i.licenseId===e.licenseId})))&&void 0!==r?r:[];J(a),bt(!1)}},onInputChange:function(t,i){""===i?(e.setFieldValue("jurisdictions",[]),bt(!0),ft(!1)):bt(!1)},fullWidth:!0,optionId:"licenseId",options:le})),!gt&&(null===T||void 0===T?void 0:T.map((function(e){var t;return a.a.createElement(h.Grid,{key:e.licenseId,item:!0,sm:12,md:12,lg:12},a.a.createElement(h.Grid,{container:!0,spacing:"form",key:"license_".concat(e.licenseId,"_info")},a.a.createElement(h.Grid,{container:!0,spacing:"form"},null===(t=e.licenseCredits)||void 0===t?void 0:t.map((function(t){return a.a.createElement(h.Grid,{item:!0,xs:4,key:"".concat(e.licenseId,"_").concat(t.creditId)},a.a.createElement(h.Box,{mt:1,ml:1,mr:1},a.a.createElement(h.TextField,{id:"licenseCreditsList.".concat(e.licenseId,"_").concat(t.creditId),label:t.name,type:"text",fullWidth:!0,formikContext:!0,maxLabelLength:10})))})))))})))),a.a.createElement(h.Box,{mt:2},a.a.createElement(h.Row,{crossAxisAlignment:"middle"},a.a.createElement(h.Expanded,null,a.a.createElement(h.Typography,{variant:"button"},a.a.createElement("b",null,"Advanced Search Options"))),a.a.createElement(h.Expanded,{flex:0,ml:1},a.a.createElement(h.IconButton,{onClick:function(){Me(!Ge)}},Ge?a.a.createElement(h.SystemIcon,{icon:"CollapseVertical",size:"md"}):a.a.createElement(h.SystemIcon,{icon:"ExpandVertical",size:"md"}))))),a.a.createElement(h.Collapse,{in:Ge},a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,sm:12,md:12,lg:12},a.a.createElement(h.ComboBox,{label:"Competencies",id:"courseCompetencies",multiple:!0,fullWidth:!0,optionId:"competencyId",options:_||[]})),a.a.createElement(h.Grid,{item:!0,sm:12,md:12,lg:12},a.a.createElement(h.ComboBox,{label:"Tag",id:"courseTags",multiple:!0,fullWidth:!0,optionId:"tagId",options:Ce||[]})),a.a.createElement(h.Grid,{item:!0,sm:12,md:12,lg:12},a.a.createElement(h.ComboBox,{label:"Learning Plan",id:"courseLearningPlans",multiple:!0,fullWidth:!0,optionId:"learningPlanId",options:ee||[]})),a.a.createElement(h.Grid,{item:!0,sm:12,md:12,lg:12},a.a.createElement(h.ComboBox,{label:"Location",id:"sessionLocations",multiple:!0,fullWidth:!0,optionId:"locationId",options:he||[]})),a.a.createElement(h.Grid,{item:!0,sm:12,md:12,lg:12},a.a.createElement(h.ComboBox,{label:"Department",id:"courseDepartments",multiple:!0,fullWidth:!0,options:K||[]})),a.a.createElement(h.Grid,{item:!0,sm:12,md:12,lg:12},a.a.createElement(h.ComboBox,{label:"Practice Area",id:"coursePracticeAreas",multiple:!0,fullWidth:!0,optionId:"practiceAreaId",options:me||[]})),a.a.createElement(h.Grid,{item:!0,sm:12,md:12,lg:12},a.a.createElement(h.ComboBox,{label:"Level",id:"courseLevels",multiple:!0,fullWidth:!0,optionId:"levelId",options:ae||[]})),a.a.createElement(h.Grid,{item:!0,sm:12,md:12,lg:12},a.a.createElement(h.ComboBox,{label:"Class Year",id:"courseClassYears",multiple:!0,fullWidth:!0,optionId:"classYearId",options:q||[]})),a.a.createElement(h.Grid,{item:!0,sm:12,md:12,lg:12},a.a.createElement(h.TextField,{label:"Instructor",fullWidth:!0,id:"sessionInstructor"}))))),a.a.createElement(ga.SideDrawerFooter,null,a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:6},a.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")),a.a.createElement(h.Grid,{item:!0,xs:6},a.a.createElement(h.Button,{type:"submit",variant:"contained",color:"secondary",fullWidth:!0,disabled:!!Tt(e)||!e.dirty},"Apply Filter")))))},{label:"Saved Filters",component:a.a.createElement(ga.SideDrawerBody,{maxWidth:!1,key:"savefilter"},a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:12}),a.a.createElement(h.Grid,{item:!0,xs:12},j&&j.length>0?a.a.createElement(h.Card,{variant:"outlined"},a.a.createElement(h.List,{disablePadding:!0},j&&(null===j||void 0===j?void 0:j.map((function(e,t){var i,r,n,o=null!==(i=e.calendarSavedFilterId)&&void 0!==i?i:0,s=null!==(r=e.name)&&void 0!==r?r:"",l=null!==(n=e.isDefault)&&void 0!==n&&n;return o>0&&a.a.createElement(a.a.Fragment,{key:o},a.a.createElement(h.ListItem,{style:{paddingRight:0}},a.a.createElement(h.Box,null,a.a.createElement(h.Typography,{variant:"body1"},a.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))),a.a.createElement(h.Box,{ml:1},!0===l&&a.a.createElement(h.Tooltip,{title:"Default",placement:"right"},a.a.createElement("span",null,a.a.createElement(h.CircleBadge,{size:"xs",type:"info",variant:"filled"})))),a.a.createElement(h.Box,{textAlign:"right",flex:1},a.a.createElement(Dn,{menu:wt(e)}))),t=0;--a){var n=this.tryEntries[a],o=n.completion;if("root"===n.tryLoc)return r("end");if(n.tryLoc<=this.prev){var s=i.call(n,"catchLoc"),l=i.call(n,"finallyLoc");if(s&&l){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&i.call(a,"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 a=r.arg;I(i)}return a}}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 eo=Object(s.b)((function(e){var t,i,r,a;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===(a=e.users.loggedUser)||void 0===a?void 0:a.userRole}}),(function(e){return{getCalendarSavedFilters:function(t){return e($i(t))},getPortalSessionsByMonth:function(t,i,r){var a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],n=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];return e(_i(t,i,r,a,n,o))},setRequestBody:function(t){return e(Mi(t))},setSelectedFilterId:function(t){return e(zi(t))},setSelectedSessionFilters:function(t){return e(Wi(t))},getScreenDescription:function(t){return e(Object(ia.c)(t))},getCourseFilters:function(){return e(Object(ia.b)())}}})),to=["January_0","February_1","March_2","April_3","May_4","June_5","July_6","August_7","September_8","October_9","November_10","December_11"],io=Object(an.a)(eo((function(e){var t,i,n=Object(r.createRef)(),o=e.calendarSessions,s=e.getCalendarSavedFilters,d=e.getPortalSessionsByMonth,u=e.loading,p=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(z.useTheme)(),j=Object(z.useMediaQuery)(x.breakpoints.down("xs")),w=Object(z.useMediaQuery)(x.breakpoints.down("md")),T=Object(r.useState)(new Date),P=Object(c.a)(T,2),A=P[0],L=P[1],J=Object(r.useState)(new Date),F=Object(c.a)(J,2),B=F[0],R=F[1],U=Object(r.useState)(!1),G=Object(c.a)(U,2),M=G[0],q=G[1],W=Object(r.useState)(!1),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],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),ae=re[0],ne=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],pe=ue[1],ve=Object(r.useState)([]),fe=Object(c.a)(ve,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),Te=we[0],Pe=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],Me=Ue[1],qe=Object(r.useState)((new Date).getFullYear()),ze=Object(c.a)(qe,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],at=Object(r.useState)(!1),nt=Object(c.a)(at,2),ot=nt[0],st=nt[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,pt=(null===p||void 0===p?void 0:p.searchCriteria)&&(null===p||void 0===p||null===(i=p.searchCriteria)||void 0===i?void 0:i.length)>0&&null!==y&&y<=0;Object(r.useEffect)((function(){Be(!0)}),[E]);var vt=Object(r.useCallback)(Object(N.k)((function(){n.current&&n.current.getApi().setOption("_resize",(function(){}))}),500),[]);Object(r.useEffect)((function(){(function(){var e=Object(l.a)(Xn().mark((function e(){var t;return Xn().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(){vt()}),[dt,vt]),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),L(t),R(i),pe(!1),Ee(!1),Be(!1)}))}))}),[s,d,E,C]),Object(r.useEffect)((function(){I&&O(v.Md.CourseCalendar).then((function(e){return Pe(e)}))}),[I,O]);var ft=function(e,t){b(e);var i,r,a,n,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===(a=f.find((function(t){return t.calendarSavedFilterId===e})))||void 0===a||null===(n=a.filter)||void 0===n?void 0:n.split("|"))&&void 0!==r?r:Array();S(o),g(Object(D.a)(Object(D.a)({},p),{},{searchCriteria:o,page:1,pageSize:10})),d(A,B,me,he)},mt=function(e,t){var i,r,a;(Q(null!==(i=e.courseId)&&void 0!==i?i:0),t)?(ne(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!==(a=e.scheduleId)&&void 0!==a?a:0),q(!0))},yt=[{label:a.a.createElement(h.Tooltip,{title:"Classroom",placement:"top"},a.a.createElement("span",null,a.a.createElement(h.Box,{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center"},a.a.createElement(h.SystemIcon,{icon:"Cem-Classroom",type:"duotone",size:j?"xs":"sm"}),!w&&a.a.createElement(h.Typography,{variant:"body1"},"\xa0Classroom")))),value:"Classroom"},{label:a.a.createElement(h.Tooltip,{title:"Webinar",placement:"top"},a.a.createElement("span",null,a.a.createElement(h.Box,{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center"},a.a.createElement(h.SystemIcon,{icon:"Cem-Webinar",type:"duotone",size:j?"xs":"sm"}),!w&&a.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,a,n,o,s,l,c,d,u,h,p,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===(a=f.startTime)||void 0===a?void 0:a.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!==(n=null===f||void 0===f?void 0:f.startTime)&&void 0!==n?n:"")&&12!==g,E=m.reduce((function(e,t){var i,r;return ja()(null!==(i=e.endDate)&&void 0!==i?i:0).format("YYYYMMDD")>ja()(null!==(r=t.endDate)&&void 0!==r?r:0).format("YYYYMMDD")?e:t})),I=m.reduce((function(e,t){var i,r;return ja()(null!==(i=e.endTime)&&void 0!==i?i:0).format("hhmm")>ja()(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,T=new Date(null!==(h=null===E||void 0===E?void 0:E.endDate)&&void 0!==h?h:"");T.setHours(w?S?x+12:x:24),T.setMinutes(j);var P=null!==(p=f.sessionTypeId)&&void 0!==p?p:1,A=f.sessionTypeId!==v.oe.Single||m.length>1,N=A?"#e6f8fc":"grey.50";return{title:f.courseTitle,start:O,end:T,allDay:!w,backgroundColor:N,borderColor:"grey.50",extendedProps:{sessionType:P,sessionPart:f,sessionParts:m,multiSession:A}}})):[{title:"",date:new Date}]}),[dt]),bt=function(e){switch(e){case"previous":!function(){if(n.current){var e=n.current.getApi();if("month"===$e)0===Ge?(Me(11),Ve(We-1)):Me(Ge-1),e.prev(),d(e.view.activeStart,e.view.activeEnd,me,he),L(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),Me(i),Ve(r)}Xe(e.view.title)}}();break;case"next":!function(){if(n.current){var e=n.current.getApi();if("month"===$e)11===Ge?(Me(0),Ve(We+1)):Me(Ge+1),e.next(),d(e.view.activeStart,e.view.activeEnd,me,he),L(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();Me(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=a.a.createElement(h.Grid,{container:!0,spacing:"form",style:{marginBottom:5}},a.a.createElement(h.Grid,{item:!0,xs:12,md:6},a.a.createElement(h.Row,{mainAxisAlignment:w?"center":"start",crossAxisAlignment:"middle"},a.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(n.current){var e=n.current.getApi();e.changeView("dayGridMonth"),d(e.view.activeStart,e.view.activeEnd,me,he),He("month")}}();break;case"week":n.current&&(n.current.getApi().changeView("dayGridWeek"),He("week"),Xe(n.current.getApi().view.title))}},value:$e,dense:!0}),a.a.createElement(h.Box,null,a.a.createElement(h.IconButton,{onClick:function(){return bt("previous")}},a.a.createElement(h.SystemIcon,{icon:"PagePrevious",size:"sm"})),"month"===$e&&a.a.createElement(a.a.Fragment,null,a.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(Me(t),n.current){var i=new Date(We,t,1),r=n.current.getApi();r.gotoDate(i);var a=r.view.activeStart,o=r.view.activeEnd;L(a),R(o),d(a,o,me,he)}}},to.map((function(e){return a.a.createElement(h.MenuItem,{key:e,value:parseInt(e.split("_")[1],10)},e.split("_")[0])}))),"\xa0",a.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),n.current){var i=new Date(t,Ge,1),r=n.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 a.a.createElement(h.MenuItem,{key:e,value:e},e)})))),("week"===$e||"day"===$e)&&Ze,a.a.createElement(h.IconButton,{onClick:function(){return bt("next")}},a.a.createElement(h.SystemIcon,{icon:"PageNext",size:"sm"}))))),a.a.createElement(h.Grid,{item:!0,xs:12,md:6},a.a.createElement(h.Row,{mainAxisAlignment:w?"center":"end",crossAxisAlignment:"middle"},a.a.createElement(h.Expanded,{flex:0,mr:j?1:2},a.a.createElement(h.Tooltip,{title:"Session Favorites",placement:"top"},a.a.createElement("span",null,a.a.createElement(h.Checkbox,{onChange:function(e){d(A,B,me,e.target.checked),pe(e.target.checked)},checked:he,icon:a.a.createElement(h.SystemIcon,{size:j?"xs":"sm",type:"duotone",icon:"Star"}),checkedIcon:a.a.createElement(h.SystemIcon,{size:j?"xs":"sm",type:"solid",color:"secondary",icon:"Star"})})))),a.a.createElement(h.Expanded,{flex:0,mr:j?0:1},a.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})),a.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:"},a.a.createElement(h.MenuItem,{key:-1,value:-1,disabled:!0},a.a.createElement(h.Row,null,a.a.createElement(h.Expanded,{flex:0,mr:1},a.a.createElement(h.Typography,{variant:"subtitle2"},"Custom Filter")))),f&&f.map((function(e){return a.a.createElement(h.MenuItem,{key:e.calendarSavedFilterId,value:e.calendarSavedFilterId},a.a.createElement(h.Box,{display:"flex"},a.a.createElement(h.Box,{flex:1,mr:1},a.a.createElement(h.Typography,{variant:"body1"},e.name)),!Fe&&ot&&ht===e.calendarSavedFilterId?a.a.createElement(h.Box,{my:"auto"},a.a.createElement(h.Tooltip,{title:"Default"},a.a.createElement("span",null,a.a.createElement(h.CircleBadge,{size:"xs",type:"info",variant:"filled"})))):void 0))}))),a.a.createElement(h.Box,{ml:1},a.a.createElement(h.Button,{variant:"text",onClick:function(){return rt(!0)}},a.a.createElement(h.Badge,{invisible:!pt,variant:"dot",color:"secondary"},a.a.createElement(h.SystemIcon,{icon:"Filter",type:"solid",color:"primary"})),a.a.createElement(h.Typography,{variant:"subtitle2",color:"primary"},"\xa0Filter by"))),(pt||Se||he||me.length>0)&&a.a.createElement(h.Button,{size:"small",variant:"text",color:"primary",onClick:function(){b(0),Ee(!1),ye([]),pe(!1),d(A,B,[],!1,!0,!0)}},a.a.createElement(h.SystemIcon,{icon:"ClearFilters",color:"secondary"})))));return a.a.createElement(h.Screen,{titleBar:{title:(Te&&""!==Te.title?Te.title:"Course Calendar")||"Course Calendar",description:Te?a.a.createElement(h.Column,null,null!==Te.shortDescription&&""!==Te.shortDescription&&a.a.createElement(h.TextEditorView,{model:Object(k.a)(Te.shortDescription)}),null!==Te.text&&""!==Te.text&&a.a.createElement(h.Box,{mt:2},a.a.createElement(h.Button,{variant:"outlined",size:"small",onClick:function(){return De(!0)}},"Show More"))):a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Box,{mt:2.5},a.a.createElement(h.Skeleton,{width:"100%",height:20,variant:"rect"})),a.a.createElement(h.Box,{mt:1},a.a.createElement(h.Skeleton,{width:"100%",height:20,variant:"rect"})))}},a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Backdrop,{open:!o||!f||u},a.a.createElement(h.CircularProgress,{color:"secondary"})),a.a.createElement(En.Provider,{value:St},a.a.createElement(xn,{calendarRef:n,customHeaderToolbar:Et,calendarEvents:gt,renderEventContent:function(e){return a.a.createElement(Nn,{currentView:$e,eventContent:e,calendarState:n.current,handleEventClick:mt})},isCalendarSessions:o,isSavedCalendarFilters:f,isNewUser:Fe}),M&&0!==K&&0!==ee&&0!==le&&a.a.createElement(In,{open:M,onClose:function(){return q(!1)},courseId:K,sessionId:ee}),a.a.createElement(yn,{isFromCalendar:!0,courseId:K,categories:[],sessionIds:ae,open:_,onClose:function(){return Y(!1)}}),a.a.createElement(Zn,{filterOpen:it,onClose:function(){return rt(!1)},isFavorite:he,onSaveFilterSelection:ft,portalCategory:me,startDate:A,endDate:B}),a.a.createElement(Ea,{open:ke,onClose:function(){return De(!1)},title:(Te&&""!==Te.title?Te.title:"Course Calendar")||"Course Calendar",description:null===Te||void 0===Te?void 0:Te.text}))))}))),ro=i(10),ao=i(181),no=i.n(ao),oo=i(133),so=i(325),lo=i(441),co=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(){}}),uo=function(){return Object(r.useContext)(co)},ho=Object(s.b)((function(){return{}}),(function(e){return{addCollection:function(t,i){return e(function(e,t){return function(i,r){var a=r().users.loggedUser,n=null===a||void 0===a?void 0:a.userId,o=new v.N({userId:n,title:e,description:t});return U.m.create(void 0,v.N.fromJS(o)).then((function(e){return e})).catch((function(e){return i(Object(G.b)(e)),!1}))}}(t,i))},addToCollection:function(t,i){return e(Ir(t,i))},addNotification:function(t,i){return e(G.a({message:t,variant:i}))},refreshCourse:function(){return e(Sr(!1,!1))}}}))((function(e){var t=e.addCollection,i=e.addToCollection,r=e.addNotification,n=e.courseId,o=e.onClose,s=e.open,l=e.refreshCourse,c=uo(),d=c.setAddCollection,u=c.setAddCollectionFormOpen,p=c.setCollectionListOpen,v=c.setUpdateCourseAssignment,f={initialValues:{collectionTitle:"",collectionDescription:""},validationSchema:Object(Ta.object)().shape({collectionTitle:Object(Ta.string)().required("Collection title is a required field.").max(500,"Collection title must not exceed 500 characters."),collectionDescription:Object(Ta.string)().max(500,"Description must not exceed 500 characters.")}),onSubmit:function(e,a){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,n).then((function(){l(),p(!0),v&&v(!0),o()}))):r("Collection with the same name already exist.","warning")})).catch((function(e){r(e,"error")})),v&&v(!1),a.setSubmitting(!1)}};return a.a.createElement(Oa.a,{open:s,onClose:o,fullWidth:!0,maxWidth:"sm"},a.a.createElement(Ia.DialogHeader,{titleBar:{title:a.a.createElement(h.Row,{crossAxisAlignment:"middle"},a.a.createElement(h.Expanded,{flex:0,mr:2},a.a.createElement(h.SystemIcon,{type:"duotone",icon:"Bookmark",size:"lg"})),a.a.createElement(h.Expanded,null,"New Collection")),onClose:o},colorMode:"light"}),a.a.createElement(wa.Formik,{initialValues:f.initialValues,validationSchema:f.validationSchema,onSubmit:f.onSubmit,enableReinitialize:!0},(function(e){return a.a.createElement(h.Form,{id:"collection-form"},a.a.createElement(Ia.DialogBody,{maxWidth:!1},a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:12,md:12,xl:12},a.a.createElement(h.TextField,{label:"Collection Title",fullWidth:!0,required:!0,id:"collectionTitle"})),a.a.createElement(h.Grid,{item:!0,xs:12,md:12,xl:12},a.a.createElement(h.TextField,{label:"Collection Description",fullWidth:!0,id:"collectionDescription",multiline:!0,rows:"5",rowsMax:"6"})))),a.a.createElement(Ia.DialogFooter,null,a.a.createElement(h.Grid,{container:!0,spacing:"card"},a.a.createElement(h.Hidden,{xsDown:!0},a.a.createElement(h.Grid,{item:!0,md:2,sm:1,lg:2,xl:2})),a.a.createElement(h.Grid,{item:!0,xs:12,sm:5,md:4,lg:4,xl:4},a.a.createElement(h.Button,{variant:"outlined",fullWidth:!0,color:"default",onClick:function(){u(!1),p(!0)}},"Back")),a.a.createElement(h.Grid,{item:!0,xs:12,sm:5,md:4,lg:4,xl:4},a.a.createElement(h.Button,{variant:"contained",type:"submit",loading:e.isSubmitting,disabled:!e.dirty,fullWidth:!0,color:"primary"},"Add Collection")),a.a.createElement(h.Hidden,{xsDown:!0},a.a.createElement(h.Grid,{item:!0,md:2,sm:1,lg:2,xl:2})))))})))})),po=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(Jn(t))},getAllCompetencies:function(t){return e(Fn(t))},getAllDepartments:function(t){return e(Bn(t))},getAllLearningPlans:function(){return e(Er())},getAllLevels:function(t){return e(qn(t))},getAllLicenses:function(){return e(Yn())},getAllLocations:function(t){return e(zn(t))},getAllPracticeAreas:function(t){return e(Wn(t))},getAllProviders:function(t){return e(Vn(t))},getAllTags:function(t){return e(_n(t))},getAllFormats:function(t){return e(Mn(t))},saveCatalogFilter:function(t,i){return e(jr(t,i))},validateCatalogSavedFilterName:function(t,i,r){return e(wr(t,i,r))}}}))((function(e){var t,i=e.duplicateMode,n=e.onClose,o=e.onSaved,s=e.open,l=e.saveCatalogFilter,d=e.selectedFilter,u=e.selectedSessionFilters,p=e.userName,v=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),T=w[0],P=w[1],A=Object(r.useState)(),k=Object(c.a)(A,2),L=k[0],J=k[1],F=Object(r.useState)(!1),B=Object(c.a)(F,2),R=B[0],U=B[1],G=Object(r.useState)(!0),M=Object(c.a)(G,2),q=M[0],z=M[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===T||void 0===T?void 0:T.toString())&&P(t)}}),[d,u,T,P]),Object(r.useEffect)((function(){if(T){var e,t=Array();T.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:[];J(i)}else J(void 0)}),[E,T,J]);var re=[{label:"Yes",value:"1"},{label:"No",value:"2"}],ae=function(e,t,i){var r,a=Array(),n=null===d||void 0===d||null===(r=d.filter)||void 0===r?void 0:r.split("|");if(n){var o=n.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)]&&a.push(i)}))}))}return a},ne=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:ae("ProviderIds","providerId",C),courseClassYears:ae("CourseClassYear","classYearId",f),courseCompetencies:ae("CourseCompetency","competencyId",m),courseDepartments:ae("CourseDepartment","departmentId",y),courseLevels:ae("CourseLevel","levelId",S),coursePracticeAreas:ae("CoursePracticeArea","practiceAreaId",O),courseTags:ae("CourseTag","tagId",x),courseLearningPlans:ae("LearningPlan","learningPlanId",b),viewingStatus:ae("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 a=r.split(": ")[1];return e&&(null===e||void 0===e?void 0:e.find((function(e){return e.licenseId===parseInt(a,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 L&&(null===L||void 0===L?void 0:L.length)>0&&L.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 a={};r.split(":")[1].split(" ".concat(e.licenseId,"_"))[1].split("_").forEach((function(e){var t=e.split("-");a=Object(D.a)(Object(D.a)({},a),{},Object(kn.a)({},"".concat(t[0]),t[1]))}));var n={};e.licenseCredits&&e.licenseCredits.forEach((function(t){var i,r=a[null!==(i=t.creditId)&&void 0!==i?i:0];r=void 0===r?null:parseFloat(r.toString()),n=Object(D.a)(Object(D.a)({},n),{},Object(kn.a)({},"".concat(e.licenseId,"_").concat(t.creditId),r))})),t=Object(D.a)(Object(D.a)({},t),n)}})),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:ae("SessionLocation","locationId",I),sessionFormats:ae("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:""===ne(null===d||void 0===d?void 0:d.filter)[0]?null:ne(null===d||void 0===d?void 0:d.filter)[0],endDate:""===ne(null===d||void 0===d?void 0:d.filter)[1]?null:ne(null===d||void 0===d?void 0:d.filter)[1]},validationSchema:Object(Ta.object)().shape({courseProviders:Object(Ta.array)().nullable(),courseClassYears:Object(Ta.array)().nullable(),courseCompetencies:Object(Ta.array)().nullable(),courseDepartments:Object(Ta.array)().nullable(),courseLevels:Object(Ta.array)().nullable(),coursePracticeAreas:Object(Ta.array)().nullable(),courseTags:Object(Ta.array)().nullable(),courseLearningPlans:Object(Ta.array)().nullable(),viewingStatus:Object(Ta.array)().nullable(),jurisdictions:Object(Ta.array)().notRequired().nullable(),sessionInstructor:Object(Ta.string)().nullable(),sessionLocations:Object(Ta.array)().nullable(),sessionFormats:Object(Ta.array)().notRequired(),name:Object(Ta.string)().required("Required").max(1e3,"Too long!").trim(),isDefault:Object(Ta.string)(),startDate:Object(Ta.date)().nullable().typeError("Please enter date in ".concat(Object(N.h)()," format or select from the calendar")),endDate:Object(Ta.date)().nullable().min(Object(Ta.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,a,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,T=e.sessionFormats,P=e.startDate,A=e.endDate;t.setSubmitting(!0);var k=Array();if(E.length>0){var J="CourseLabelStatus: ";E.forEach((function(e){var t,i=null!==(t=e.id)&&void 0!==t?t:0;J=J.concat(i.toString(),",")})),k.push(J.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 M="CoursePracticeArea[or]: ";g.forEach((function(e){var t,i=null!==(t=e.practiceAreaId)&&void 0!==t?t:0;M=M.concat(i.toString(),",")})),k.push(M.slice(0,-1))}if(b.length>0){var q="CourseTag[or]: ";b.forEach((function(e){var t,i=null!==(t=e.tagId)&&void 0!==t?t:0;q=q.concat(i.toString(),",")})),k.push(q.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(),$=L&&(null===L||void 0===L?void 0:L.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 a=parseFloat(r);H=Object(D.a)(Object(D.a)({},H),{},Object(kn.a)({},"".concat(t,"-").concat(i),"".concat(t,"|").concat(i,"-").concat(a)))}}})),$&&$.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)),T.length>0){var K="SessionFormat: ";T.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))}P&&k.push("SessionStartDate: ".concat(Object(N.f)(P))),A&&k.push("SessionEndDate: ".concat(Object(N.f)(A))),z(!0);var Q=Object(D.a)(Object(D.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?p:null===d||void 0===d?void 0:d.createdBy,filter:k.length>0?k.join("|"):"[]"});v(i?0:null!==(a=null===d||void 0===d?void 0:d.catalogSavedFilterId)&&void 0!==a?a:0,String(w).trim(),i?null!==p&&void 0!==p?p:"":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&&(n(),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 a.a.createElement(h.SideDrawer,{size:"sm",open:s,onClose:function(){z(!0),n()}},a.a.createElement(wa.Formik,{initialValues:oe.initialValues,validationSchema:oe.validationSchema,onSubmit:oe.onSubmit,enableReinitialize:q},(function(e){return a.a.createElement(h.Form,{id:"edit-saved-catalog-filter",formikContext:!0},a.a.createElement(ga.SideDrawerHeader,{titleBar:{title:i?"Add Filter":"Edit Filters"},widgets:a.a.createElement(h.Typography,{variant:"body1"},"for ",null===d||void 0===d?void 0:d.name)}),a.a.createElement(ga.SideDrawerBody,{maxWidth:!1},R?a.a.createElement(Ln,{type:"filter-drawer"}):a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"top-left",stretchContent:!0},a.a.createElement(h.Collapse,{in:ee},a.a.createElement(h.Alert,{type:"error",icon:"Error",onClose:function(){return te(!1)}},"This filter name already exists"))),a.a.createElement(h.Grid,{item:!0,xs:12,key:"name",stretchContent:!0,alignment:"top-left"},a.a.createElement(h.TextField,{required:!0,fullWidth:!0,id:"name",label:"Filter Name",formikContext:!0})),a.a.createElement(h.Grid,{item:!0,xs:12,key:"isDefault",stretchContent:!0,alignment:"top-left"},a.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)})),a.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},a.a.createElement(h.Divider,null)),a.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:6,stretchContent:!0},a.a.createElement(h.DateTimeField,{id:"startDate",type:"date",label:"Start Date",formikContext:!0,format:Object(N.h)()})),a.a.createElement(h.Grid,{item:!0,xs:6,stretchContent:!0},a.a.createElement(h.DateTimeField,{id:"endDate",type:"date",label:"End Date",formikContext:!0,format:Object(N.h)()})))),a.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},a.a.createElement(h.ComboBox,{label:"Provider",id:"courseProviders",multiple:!0,fullWidth:!0,optionId:"providerId",options:C||[]})),a.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},a.a.createElement(h.ComboBox,{id:"sessionFormats",label:"Session Format",fullWidth:!0,multiple:!0,options:g||[],formikContext:!0,optionId:"courseFormatId",groupBy:se})),a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.ComboBox,{id:"viewingStatus",label:"Enrollment Status",fullWidth:!0,multiple:!0,options:ie||[],formikContext:!0,optionId:"id"})),a.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},a.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,a=null!==(r=null===E||void 0===E?void 0:E.filter((function(e){return i.licenseId&&i.licenseId===e.licenseId})))&&void 0!==r?r:[];J(a),Y(!1)}},onInputChange:function(t,i){""===i?(e.setFieldValue("jurisdictions",[]),Y(!0),z(!1)):Y(!1)}})),!_&&(null===L||void 0===L?void 0:L.map((function(e){var t;return a.a.createElement(h.Grid,{item:!0,xs:12,key:"license_".concat(e.licenseId,"_info")},a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{container:!0,spacing:"form"},null===(t=e.licenseCredits)||void 0===t?void 0:t.map((function(t){return a.a.createElement(h.Grid,{item:!0,xs:4,key:"".concat(e.licenseId,"_").concat(t.creditId,"_grid")},a.a.createElement(h.Box,{mt:1,ml:1,mr:1},a.a.createElement(h.TextField,{id:"licenseCreditsList.".concat(e.licenseId,"_").concat(t.creditId),label:t.name,type:"text",fullWidth:!0,formikContext:!0,maxLabelLength:10})))})))))})))),a.a.createElement(h.Box,{mt:2},a.a.createElement(h.Row,{crossAxisAlignment:"middle"},a.a.createElement(h.Expanded,null,a.a.createElement(h.Typography,{variant:"button"},a.a.createElement("b",null,"Advanced Search Options"))),a.a.createElement(h.Expanded,{flex:0,ml:1},a.a.createElement(h.IconButton,{onClick:function(){Q(!K)}},K?a.a.createElement(h.SystemIcon,{icon:"CollapseVertical",size:"md"}):a.a.createElement(h.SystemIcon,{icon:"ExpandVertical",size:"md"}))))),a.a.createElement(h.Collapse,{in:K},a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.ComboBox,{label:"Competencies",id:"courseCompetencies",multiple:!0,fullWidth:!0,optionId:"competencyId",options:m||[]})),a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.ComboBox,{label:"Tag",id:"courseTags",multiple:!0,fullWidth:!0,optionId:"tagId",options:x||[]})),a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.ComboBox,{label:"Learning Plan",id:"courseLearningPlans",multiple:!0,fullWidth:!0,optionId:"learningPlanId",options:b||[]})),a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.ComboBox,{label:"Location",id:"sessionLocations",multiple:!0,fullWidth:!0,optionId:"locationId",options:I||[]})),a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.ComboBox,{label:"Department",id:"courseDepartments",multiple:!0,fullWidth:!0,optionId:"departmentId",options:y||[]})),a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.ComboBox,{label:"Practice Area",id:"coursePracticeAreas",multiple:!0,fullWidth:!0,optionId:"practiceAreaId",options:O||[]})),a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.ComboBox,{label:"Level",id:"courseLevels",multiple:!0,fullWidth:!0,optionId:"levelId",options:S||[]})),a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.ComboBox,{label:"Class Year",id:"courseClassYears",multiple:!0,fullWidth:!0,optionId:"classYearId",options:f||[]})),a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.TextField,{label:"Instructor",fullWidth:!0,id:"sessionInstructor"})))))),a.a.createElement(ga.SideDrawerFooter,null,a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:6,alignment:"center-right"},a.a.createElement(h.Button,{variant:"outlined",color:"default",onClick:function(){return n()},fullWidth:!0},"Cancel")),a.a.createElement(h.Grid,{item:!0,xs:6,alignment:"center-left"},a.a.createElement(h.Button,{loading:e.isSubmitting,variant:"contained",type:"submit",color:"primary",fullWidth:!0},"Save")))))})))})),vo=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(jr(t,i))},validateCatalogSavedFilterName:function(t,i,r){return e(wr(t,i,r))}}}))((function(e){var t=e.onClose,i=e.onSaved,n=e.open,o=e.title,s=e.editMode,l=e.saveCalendarFilter,d=e.selectedFilter,u=e.userName,p=e.validateCatalogSavedFilterName,v=Object(r.useState)(!1),f=Object(c.a)(v,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(Ta.object)().shape({name:Object(Ta.string)().required("Required").max(1e3,"Too long!").trim(),isDefault:Object(Ta.string)()}),onSubmit:function(e,r){var a=e.name,n=e.isDefault;r.setSubmitting(!0);var o=Object(D.a)(Object(D.a)({},d),{},{catalogSavedFilterId:s?null===d||void 0===d?void 0:d.catalogSavedFilterId:void 0,name:String(a).trim(),isPublic:!1,isReadOnly:!0,isDefault:"1"===n,createdBy:s?null===d||void 0===d?void 0:d.createdBy:u,filter:null===d||void 0===d?void 0:d.filter});p(s&&(null===d||void 0===d?void 0:d.catalogSavedFilterId)||0,String(a).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 a.a.createElement(h.Dialog,{maxWidth:"sm",fullWidth:!0,color:"default",open:n,onClose:t},a.a.createElement(wa.Formik,{initialValues:b.initialValues,validationSchema:b.validationSchema,onSubmit:b.onSubmit},(function(e){return a.a.createElement(h.Form,{id:"calendar-save-filter",formikContext:!0},a.a.createElement(Ia.DialogHeader,{titleBar:{title:o,onClose:t}}),a.a.createElement(Ia.DialogBody,{maxWidth:!1},a.a.createElement(h.Grid,{container:!0,spacing:2},a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"top-left",stretchContent:!0},a.a.createElement(h.Collapse,{in:m},a.a.createElement(h.Alert,{type:"error",icon:"Error",onClose:function(){return y(!1)}},"This filter name already exists"))),a.a.createElement(h.Grid,{item:!0,xs:12,key:"caption",stretchContent:!0,alignment:"top-left"},a.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.")),a.a.createElement(h.Grid,{item:!0,xs:12,key:"name",stretchContent:!0,alignment:"top-left"},a.a.createElement(h.TextField,{formikContext:!0,required:!0,fullWidth:!0,id:"name",label:"Filter Name"})),a.a.createElement(h.Grid,{item:!0,xs:12,key:"isDefault",stretchContent:!0,alignment:"top-left"},a.a.createElement(h.RadioGroup,{formikContext:!0,groupLabel:"Set as the default filter?",options:g,id:"isDefault",orientation:"horizontal"})))),a.a.createElement(Ia.DialogFooter,null,a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:6,alignment:"center-right"},a.a.createElement(h.Button,{color:"default",variant:"outlined",type:"reset",onClick:function(){t()},fullWidth:!0},"Cancel")),a.a.createElement(h.Grid,{item:!0,xs:6,alignment:"center-left"},a.a.createElement(h.Button,{loading:e.isSubmitting,color:"primary",variant:"contained",type:"submit",fullWidth:!0},"Save")))),a.a.createElement(h.Box,{mb:3}))})))})),fo=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(on.b)(t))},deleteSavedFilter:function(t){return e((i=t,function(e,t){var r=t().catalog.savedFilterId;U.f.delete(void 0,i).then((function(){e(Object(G.a)({message:"Saved filter successfully deleted.",variant:"success"})),void 0!==i.find((function(e){return e===r}))&&e(vr(-1)),e(xr(!1))})).catch((function(t){t.errors&&t.errors.SavedFilterDefault&&t.errors.SavedFilterDefault.length>0?e(Object(G.b)(t.errors.SavedFilterDefault[0])):e(Object(G.b)(t.title))}))}));var i},getAllClassYears:function(t){return e(Jn(t))},getAllCompetencies:function(t){return e(Fn(t))},getAllDepartments:function(t){return e(Bn(t))},getAllLevels:function(t){return e(qn(t))},getAllLocations:function(t){return e(zn(t))},getAllPracticeAreas:function(t){return e(Wn(t))},getAllProviders:function(t){return e(Vn(t))},getAllTags:function(t){return e(_n(t))},getAllLicenses:function(){return e((function(e){return U.E.getAllFirmLicenses(void 0).then((function(e){return e})).catch((function(t){throw e(Object(G.b)(t)),t}))}))},getAllLearningPlans:function(){return e(Er())},getAllFormats:function(t){return e(Mn(t))},getCourseCatalog:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e(Sr(t))},setFilters:function(t){return e(hr(t))},setSavedFilterId:function(t){return e(vr(t))},setSearchRequestBody:function(t){return e(fr(t))},setCatalogSavedFilterDefault:function(t){return e((i=t,function(e,t){var r=t().users.loggedUser;return e(pr(void 0)),U.O.setSavedFilterDefault(void 0,v.pe.fromJS({userId:null===r||void 0===r?void 0:r.userId,catalogSavedFilterId:i.catalogSavedFilterId})).then((function(){e(Object(G.a)({message:"".concat(i.name," have been set to default."),variant:"success"})),e(xr(!1))})).catch((function(t){e(Object(G.b)(t))}))}));var i},showNotification:function(t,i){return e(G.a({message:t,variant:i}))}}}))((function(e){var t,i,n=uo(),o=n.filterDrawerOpen,s=n.setFilterDrawerOpen,l=e.getAllClassYears,d=e.getAllCompetencies,u=e.getAllDepartments,p=e.getAllLearningPlans,v=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,T=e.deleteSavedFilter,P=e.searchRequestBody,A=e.setSearchRequestBody,k=e.setCatalogSavedFilterDefault,L=e.showNotification,J=e.courseFilters,F=Object(r.useState)([]),B=Object(c.a)(F,2),R=B[0],U=B[1],G=Object(r.useState)([]),M=Object(c.a)(G,2),q=M[0],z=M[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),ae=re[0],ne=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],pe=ue[1],ve=Object(r.useState)([]),fe=Object(c.a)(ve,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),Te=we[0],Pe=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],Me=Ue[1],qe=Object(r.useState)(!1),ze=Object(c.a)(qe,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],at=Object(r.useState)(!1),nt=Object(c.a)(at,2),ot=nt[0],st=nt[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,pt=[{id:1,name:"Enrolled"},{id:2,name:"Completed"},{id:3,name:"Not Enrolled"}],vt=Object(r.useCallback)((function(){var e,t,i,r,a,n,o,s;if(J){U(["ClassYear","Competency","Department","LearningPlan","Level","License","Location","PracticeArea","Provider","Tag","Formats"]);var h=(null===(e=J.departmentIds)||void 0===e?void 0:e.map(String))||[],E=(null===(t=J.locationIds)||void 0===t?void 0:t.map(String))||[],I=(null===(i=J.practiceAreaIds)||void 0===i?void 0:i.map(String))||[],O=(null===(r=J.levelIds)||void 0===r?void 0:r.map(String))||[],C=(null===(a=J.providerIds)||void 0===a?void 0:a.map(String))||[],x=(null===(n=J.competencyIds)||void 0===n?void 0:n.map(String))||[],j=(null===(o=J.classYearIds)||void 0===o?void 0:o.map(String))||[],w=(null===(s=J.tagIds)||void 0===s?void 0:s.map(String))||[],T=J.courseFormatIds||[];Promise.all([l(j),d(x),u(h),p(),v(O),f(),m(E),y(I),g(C),b(w),S(T)]).then((function(e){var t=Object(c.a)(e,11),i=t[0],r=t[1],a=t[2],n=t[3],o=t[4],s=t[5],l=t[6],d=t[7],u=t[8],h=t[9],p=t[10];z(null===i||void 0===i?void 0:i.classYears),Y(null===r||void 0===r?void 0:r.competencies),Q(null===a||void 0===a?void 0:a.departments),te(n),ne(null===o||void 0===o?void 0:o.levels),ce(null===s||void 0===s?void 0:s.licenses),pe(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)||[]),Pe(p||[]),U([])}))}}),[J,l,d,u,p,v,m,y,g,b,f,S]);Object(r.useEffect)((function(){vt()}),[vt]);var ft=function(e,t,i){var r=[],a=null===I||void 0===I?void 0:I.find((function(t){return t.includes("".concat(e))}));if(a){var n=a.split(": ");Object(c.a)(n,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",q),courseCompetencies:ft("CourseCompetency","competencyId",_),courseDepartments:ft("CourseDepartment","departmentId",K),courseLevels:ft("CourseLevel","levelId",ae),coursePracticeAreas:ft("CoursePracticeArea","practiceAreaId",me),courseTags:ft("CourseTag","tagId",Ce),courseLearningPlans:ft("LearningPlan","learningPlanId",ee),viewingStatus:ft("CourseLabelStatus","id",pt),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(D.a)(Object(D.a)({},r),{},Object(kn.a)({},"".concat(t[0]),t[1]))}));var a={};t.licenseCredits&&t.licenseCredits.forEach((function(e){var i,n=r[null!==(i=e.creditId)&&void 0!==i?i:0];n=void 0===n?null:parseFloat(n.toString()),a=Object(D.a)(Object(D.a)({},a),{},Object(kn.a)({},"".concat(t.licenseId,"_").concat(e.creditId),n))})),e=Object(D.a)(Object(D.a)({},e),a)}})),e}(),sessionInstructor:null!==(i=mt("SessionInstructor"))&&void 0!==i?i:"",sessionLocations:ft("SessionLocation","locationId",he),sessionFormats:ft("SessionFormat","courseFormatId",Te),startDate:mt("SessionStartDate"),endDate:mt("SessionEndDate")},validationSchema:Object(Ta.object)().shape({courseProviders:Object(Ta.array)().nullable(),courseClassYears:Object(Ta.array)().nullable(),courseCompetencies:Object(Ta.array)().nullable(),courseDepartments:Object(Ta.array)().nullable(),courseLevels:Object(Ta.array)().nullable(),coursePracticeAreas:Object(Ta.array)().nullable(),courseTags:Object(Ta.array)().nullable(),courseLearningPlans:Object(Ta.array)().nullable(),viewingStatus:Object(Ta.array)().nullable(),jurisdictions:Object(Ta.array)().notRequired().nullable(),sessionInstructor:Object(Ta.string)().nullable(),sessionLocations:Object(Ta.array)().nullable(),sessionFormats:Object(Ta.array)().notRequired(),startDate:Object(Ta.date)().nullable().typeError("Please enter date in ".concat(Object(N.h)()," format or select from the calendar")),endDate:Object(Ta.date)().nullable().min(Object(Ta.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,a=e.courseCompetencies,n=e.courseDepartments,o=e.courseLevels,l=e.coursePracticeAreas,d=e.courseTags,u=e.courseLearningPlans,h=e.viewingStatus,p=e.jurisdictions,v=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(a.length>0){var T="CourseCompetency[or]: ";a.forEach((function(e){var t,i=null!==(t=e.competencyId)&&void 0!==t?t:0;T=T.concat(i.toString(),",")})),S.push(T.slice(0,-1))}if(n.length>0){var P="CourseDepartment[or]: ";n.forEach((function(e){var t,i=null!==(t=e.departmentId)&&void 0!==t?t:0;P=P.concat(i.toString(),",")})),S.push(P.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 L="CourseTag[or]: ";d.forEach((function(e){var t,i=null!==(t=e.tagId)&&void 0!==t?t:0;L=L.concat(i.toString(),",")})),S.push(L.slice(0,-1))}if(u.length>0){var J="LearningPlan[or]: ";u.forEach((function(e){var t,i=null!==(t=e.learningPlanId)&&void 0!==t?t:0;J=J.concat(i.toString(),",")})),S.push(J.slice(0,-1))}if(void 0!==p&&Object.keys(p).length>0){var F="SessionLicense[or]: ".concat(p.licenseId),B=Array(),R=ke.map((function(e){return e.licenseId})),U={};S.push(F),v&&(Object.keys(v).forEach((function(e){var t=parseInt(e.split("_")[0],10);if((null===p||void 0===p?void 0:p.licenseId)===t){var i=parseInt(e.split("_")[1],10),r=v[e];if(""!==r&&null!==r){var a=parseFloat(r);U=Object(D.a)(Object(D.a)({},U),{},Object(kn.a)({},"".concat(t,"-").concat(i),"".concat(t,"|").concat(i,"-").concat(a)))}}})),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 M="SessionFormat: ";y.forEach((function(e){var t,i=null!==(t=e.courseFormatId)&&void 0!==t?t:0;M=M.concat(i.toString(),",")})),S.push(M.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(D.a)(Object(D.a)({},dt),{},{filter:S.join("|")})),Xe(!1);else{Me(!0);var q,z=S.join("|"),W=null===C||void 0===C?void 0:C.find((function(e){return e.filter===z}));if(W)j(null!==(q=null===W||void 0===W?void 0:W.catalogSavedFilterId)&&void 0!==q?q: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,a,n,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===(a=C.find((function(t){return t.catalogSavedFilterId===e})))||void 0===a||null===(n=a.filter)||void 0===n?void 0:n.split("|"))&&void 0!==r?r:[];O(o),A(Object(D.a)(Object(D.a)({},P),{},{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:a.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:a.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:a.a.createElement(h.SystemIcon,{icon:"Clone"}),onClick:function(){return t=e,ut(Object(D.a)(Object(D.a)({},t),{},{catalogSavedFilterId:0,name:"".concat(t.name," clone")})),He(!0),void st(!0);var t}},{label:"Delete",icon:a.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 T(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,n,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!==(n=le&&-1!==(null===le||void 0===le?void 0:le.findIndex((function(e){return e.licenseId===parseInt(l,10)}))))&&void 0!==n&&n,u=le&&(null===le||void 0===le?void 0:le.find((function(e){return e.licenseId===parseInt(l,10)}))),p=void 0!==e.getFieldProps("jurisdictions").value;void 0!==ke||void 0===u||Fe||De([u]),i=d&&p}return[{label:"Filters",component:a.a.createElement(a.a.Fragment,{key:"filter"},a.a.createElement(ga.SideDrawerBody,{maxWidth:!1},a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:6,stretchContent:!0},a.a.createElement(h.DateTimeField,{id:"startDate",type:"date",label:"Start Date",formikContext:!0,format:Object(N.h)()})),a.a.createElement(h.Grid,{item:!0,xs:6,stretchContent:!0},a.a.createElement(h.DateTimeField,{id:"endDate",type:"date",label:"End Date",formikContext:!0,format:Object(N.h)()})))),a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.ComboBox,{label:"Provider",id:"courseProviders",multiple:!0,fullWidth:!0,optionId:"providerId",options:Se||[],loading:R.includes("Provider")})),a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.ComboBox,{id:"sessionFormats",label:"Session Format",fullWidth:!0,multiple:!0,options:Te||[],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"}})),a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.ComboBox,{id:"viewingStatus",label:"Enrollment Status",fullWidth:!0,multiple:!0,options:pt||[],formikContext:!0,optionId:"id",loading:R.includes("Formats")})),a.a.createElement(h.Grid,{item:!0,xs:12},a.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&&a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.Grid,{container:!0,spacing:4},null===(t=ke[0].licenseCredits)||void 0===t?void 0:t.map((function(e){return a.a.createElement(h.Grid,{item:!0,xs:4,key:"".concat(ke.licenseId,"_").concat(e.creditId,"_grid")},a.a.createElement(h.Box,{mt:1,ml:1,mr:1},a.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})))}))))),a.a.createElement(h.Box,{mt:2},a.a.createElement(h.Row,{crossAxisAlignment:"middle"},a.a.createElement(h.Typography,{variant:"button"},a.a.createElement("b",null,"Advanced Search Options")))),a.a.createElement(h.Box,{mt:2}),a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.ComboBox,{label:"Competencies",id:"courseCompetencies",multiple:!0,fullWidth:!0,optionId:"competencyId",options:_||[],loading:R.includes("Competency")})),a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.ComboBox,{label:"Tag",id:"courseTags",multiple:!0,fullWidth:!0,optionId:"tagId",options:Ce||[]})),a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.ComboBox,{label:"Learning Plan",id:"courseLearningPlans",multiple:!0,fullWidth:!0,optionId:"learningPlanId",options:ee||[],loading:R.includes("LearningPlan")})),a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.ComboBox,{label:"Location",id:"sessionLocations",multiple:!0,fullWidth:!0,optionId:"locationId",options:he||[],loading:R.includes("Location")})),a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.ComboBox,{label:"Department",id:"courseDepartments",multiple:!0,fullWidth:!0,optionId:"departmentId",options:K||[],loading:R.includes("Department")})),a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.ComboBox,{label:"Practice Area",id:"coursePracticeAreas",multiple:!0,fullWidth:!0,optionId:"practiceAreaId",options:me||[],loading:R.includes("PracticeArea")})),a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.ComboBox,{label:"Level",id:"courseLevels",multiple:!0,fullWidth:!0,optionId:"levelId",options:ae||[],loading:R.includes("Level")})),a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.ComboBox,{label:"Class Year",id:"courseClassYears",multiple:!0,fullWidth:!0,optionId:"classYearId",options:q||[],loading:R.includes("ClassYear")})),a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.TextField,{label:"Instructor",fullWidth:!0,id:"sessionInstructor"})))),a.a.createElement(ga.SideDrawerFooter,null,a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:6},a.a.createElement(h.Button,{variant:"outlined",color:"default",fullWidth:!0,onClick:function(){return Me(!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")),a.a.createElement(h.Grid,{item:!0,xs:6},a.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:a.a.createElement(ga.SideDrawerBody,{maxWidth:!1,key:"savefilter"},a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:12}),a.a.createElement(h.Grid,{item:!0,xs:12},C&&C.length>0?a.a.createElement(h.Card,{variant:"outlined"},a.a.createElement(h.List,{disablePadding:!0},C&&(null===C||void 0===C?void 0:C.map((function(e,t){var i,r,n,o=null!==(i=e.catalogSavedFilterId)&&void 0!==i?i:0,l=null!==(r=e.name)&&void 0!==r?r:"",c=null!==(n=e.isDefault)&&void 0!==n&&n;return o>0&&a.a.createElement(a.a.Fragment,{key:o},a.a.createElement(h.ListItem,{style:{paddingRight:0}},a.a.createElement(h.Box,null,a.a.createElement(h.Typography,{variant:"body1"},a.a.createElement(h.Link,{onClick:function(){return function(e){var t;Me(!0),gt(null!==(t=e.catalogSavedFilterId)&&void 0!==t?t:1,e),s(!1)}(e)},underline:"none"},l))),a.a.createElement(h.Box,{ml:1},!0===c&&a.a.createElement(h.Tooltip,{title:"Default",placement:"right"},a.a.createElement("span",null,a.a.createElement(h.CircleBadge,{size:"xs",type:"info",variant:"filled"})))),a.a.createElement(h.Box,{textAlign:"right",flex:1},a.a.createElement(Dn,{menu:St(e)}))),t0,formikContext:!1,icon:a.a.createElement(h.SystemIcon,{type:"duotone",icon:"Bookmark"}),checkedIcon:a.a.createElement(h.SystemIcon,{icon:"Bookmark",color:"warning",type:"duotone"}),onClick:function(e){return function(e){y(e.currentTarget)}(e)},onMouseEnter:function(){return p(!0)},onMouseLeave:function(){return p(!1)}}))),a.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)}},a.a.createElement(h.Column,{mainAxisAlignment:"middle"},i&&i.map((function(e){var t=e.collectionId,i=e.title;return a.a.createElement(h.Expanded,{mt:.5,mb:.5,ml:2,mr:2,key:t},a.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},i))})),a.a.createElement(h.Expanded,{pr:2,pl:2,pt:.75,pb:.75,textAlign:"right",width:"100%"},a.a.createElement(h.Link,{onClick:function(){return o(t),s(!0),void y(null)}},a.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},a.a.createElement(h.Box,{mr:.5,component:"span"},a.a.createElement(h.SystemIcon,{icon:"Add"})),"Add"))))))})),yo=i(351),go=Object(s.b)((function(){return{}}),(function(e){return{addToCollection:function(t,i){return e(Ir(t,i))},addNotification:function(t,i){return e(G.a({message:t,variant:i}))},getAllUserCollections:function(t){return e(function(e){return function(t,i){var r=i().users.loggedUser,a=null===r||void 0===r?void 0:r.userId;return U.m.getAllUserCollections(a,e,void 0).then((function(e){return e})).catch((function(e){throw t(Object(G.b)(e)),e}))}}(t))},removeCourseFromCollection:function(t,i){return e(Or(t,i))},refreshCourse:function(){return e(Sr(!1,!1))}}}))((function(e){var t=e.addToCollection,i=e.addNotification,n=e.courseId,o=e.getAllUserCollections,s=e.onClose,l=e.open,d=e.removeCourseFromCollection,u=e.refreshCourse,p=uo(),v=p.addCollection,f=p.collectionListOpen,m=p.setAddCollection,y=p.setCollectionListOpen,g=p.setAddCollectionFormOpen,b=p.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(n).then((function(e){m&&m(!1),O(e)}))}),[v,f,n,o,m]);var C=function(e,t){var i=I&&Object(yo.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 a.a.createElement(a.a.Fragment,null,a.a.createElement(Oa.a,{open:l,onClose:s,fullWidth:!0,maxWidth:"sm"},a.a.createElement(Ia.DialogHeader,{titleBar:{title:a.a.createElement(h.Row,{crossAxisAlignment:"middle"},a.a.createElement(h.Expanded,{flex:0,mr:2},a.a.createElement(h.SystemIcon,{type:"duotone",icon:"Bookmark",size:"lg"})),a.a.createElement(h.Expanded,null,"Select A Collection")),onClose:s},colorMode:"light"}),a.a.createElement(Ia.DialogBody,{maxWidth:!1},0===(null===I||void 0===I?void 0:I.length)?a.a.createElement(h.Box,{width:"100%"},a.a.createElement(h.Alert,{type:"info",variant:"standard"},a.a.createElement(h.Typography,null,"No collections found."))):I?a.a.createElement(h.Box,{maxHeight:"300px"},a.a.createElement(h.Grid,{container:!0,spacing:"form"},null===I||void 0===I?void 0:I.map((function(e){return a.a.createElement(h.Grid,{item:!0,xs:12,md:12,xl:12,key:null===e||void 0===e?void 0:e.collectionId},a.a.createElement(h.Card,{elevation:0,variant:"outlined"},a.a.createElement(h.CardContent,null,a.a.createElement(h.Row,{crossAxisAlignment:"middle"},a.a.createElement(h.Expanded,{mr:1},a.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},a.a.createElement("b",null,e.title)," (",e.courseCount&&e.courseCount>1?"".concat(e.courseCount," Items"):"".concat(e.courseCount," Item"),")")),a.a.createElement(h.Expanded,{flex:0},e.isAssigned?a.a.createElement(h.IconButton,{onClick:function(){return t=e.collectionId||0,d(t,[n]).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},a.a.createElement(h.SystemIcon,{icon:"Remove",size:"md",color:"primary"})):a.a.createElement(h.IconButton,{onClick:function(){return r=e.collectionId||0,t(r,n).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},a.a.createElement(h.SystemIcon,{icon:"Add",size:"md",color:"primary"})))))))})))):a.a.createElement(Ln,{type:"filter-drawer"})),a.a.createElement(Ia.DialogFooter,null,a.a.createElement(h.Row,{mainAxisAlignment:"center"},a.a.createElement(h.Button,{variant:"outlined",color:"primary",onClick:function(){return g(!0),void y(!1)}},a.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},"Or Create a New Collection"))))))})),bo=Object(z.makeStyles)((function(e){var t=e.palette,i=e.spacing,r=e.typography;return Object(z.createStyles)({cardTitle:Object(D.a)(Object(D.a)({},r.subtitle1),{},{fontWeight:700}),cardSubheader:Object(D.a)({},r.subtitle2),cardContent:Object(D.a)(Object(D.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(lo.c)(t))},setFilters:function(t){return e(hr(t))},setSearchOptionTextFilter:function(t){return e(function(e){return{type:ur.g,payload:e}}(t))},setSearchOptionCategories:function(t){return e(function(e){return{type:ur.e,payload:e}}(t))},setSearchOptionFavoritesOnly:function(t){return e(function(e){return{type:ur.f,payload:e}}(t))},setSearchRequestBody:function(t){return e(fr(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(Sr(t,i))},getCourseFilters:function(){return e(Object(lo.b)())},toggleFavoriteCourse:function(t,i){return e(Cr(t,i,!1))},getCatalogSavedFilters:function(t){return e(xr(t))},setSelectedFilterId:function(t){return e(vr(t))}}})),Eo=Object(oo.a)(Object(d.o)(So((function(e){var t,i,n,o=e.getCourseCatalog,s=e.searchOptionTextFilter,l=e.searchOptionCategories,d=e.searchOptionFavoritesOnly,u=e.searchRequestBody,p=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,T=e.savedFilters,P=e.selectedFilterId,A=e.setSelectedFilterId,N=e.getCourseFilters,L=e.history,J=Object(r.useState)("grid"),F=Object(c.a)(J,2),B=F[0],R=F[1],U=Object(r.useState)(!1),G=Object(c.a)(U,2),M=G[0],q=G[1],W=Object(r.useState)(!1),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],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),ae=re[0],ne=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],pe=ue[1],ve=Object(r.useState)(!1),fe=Object(c.a)(ve,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),Te=we[0],Pe=we[1],Ae=bo(),Ne=Object(z.useTheme)(),ke=Object(z.useMediaQuery)(Ne.breakpoints.down("xs")),De=Object(z.useMediaQuery)(Ne.breakpoints.down("sm")),Le=null===T||void 0===T||null===(t=T.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(so.a)((function(e){e!==s&&(m(e),o(!0))}),500),Be=function(e,t){b(Object(D.a)(Object(D.a)({},u),{},{page:e,pageSize:t})),o()},Re=function(e){pe(e),ye(!0)},Ue={addCollection:M,setAddCollection:q,addCollectionFormOpen:_,setAddCollectionFormOpen:Y,updateCourseAssignment:Ce,setUpdateCourseAssignment:xe,collectionCourseId:K,setCollectionCourseId:Q,collectionListOpen:ee,setCollectionListOpen:te,messageDrawerOpen:ae,setMessageDrawerOpen:ne,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===T||void 0===T?void 0:T.find((function(e){return e.isDefault}));if(e){A(Le);var t,i,r,a,n,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===T||void 0===T||null===(a=T.find((function(e){return e.catalogSavedFilterId===Le})))||void 0===a||null===(n=a.filter)||void 0===n?void 0:n.split("|"))&&void 0!==r?r:[];E(s),b(Object(D.a)(Object(D.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,T,u,y,g,b,A]),Object(r.useEffect)((function(){O&&C(v.Md.CourseCatalog).then((function(e){return Ee(e)}))}),[C,O]);var Me=[{Header:"Title",accessor:"title",disableSortBy:!0,Cell:function(e){var t,i=e.row,r=e.cell,n=i.original;return a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Link,{onClick:function(){return Re(n.courseId)}},a.a.createElement(h.Typography,{variant:"body2"},r.value)),n.courseTags&&a.a.createElement(h.Box,{display:"flex",flexWrap:"wrap"},null===(t=n.courseTags)||void 0===t?void 0:t.map((function(e,t){return t<=1&&a.a.createElement(h.Box,{mr:.5,mb:.125},a.a.createElement(h.Chip,{label:e.name,variant:"box"}))})),n.courseTags.length>2&&a.a.createElement(h.Tooltip,{title:n.courseTags.join(", ")},a.a.createElement(h.Box,{mr:.5,component:"span"},a.a.createElement(h.Chip,{label:"".concat(n.courseTags.length-2,"+"),variant:"box"})))))}},{Header:"Format",accessor:"courseFormatCategories",disableSortBy:!0,Cell:function(e){var t,i,r,n=e.row.original,o=null===(t=n.courseFormatCategories)||void 0===t?void 0:t.includes("Classroom"),s=null===(i=n.courseFormatCategories)||void 0===i?void 0:i.includes("Webcast"),l=null===(r=n.courseFormatCategories)||void 0===r?void 0:r.includes("On-demand");return a.a.createElement(h.Box,{mr:2},a.a.createElement(h.Row,{flex:0},a.a.createElement(h.Expanded,{flex:0},l?a.a.createElement(h.Tooltip,{title:"On-demand",placement:"bottom"},a.a.createElement(h.Avatar,{variant:"circular",colorMode:"light",className:Ae.iconEnabled},a.a.createElement(za,{format:"On-demand",size:"sm",type:"duotone"}))):a.a.createElement(h.Avatar,{variant:"circular",colorMode:"light",className:Ae.iconDisabled},a.a.createElement(za,{format:"On-demand",size:"sm",type:"duotone"}))),a.a.createElement(h.Expanded,{flex:0,mr:.5,ml:.5},o?a.a.createElement(h.Tooltip,{title:"Classroom",placement:"bottom"},a.a.createElement(h.Avatar,{variant:"circular",colorMode:"light",className:Ae.iconEnabled},a.a.createElement(za,{format:"Classroom",size:"sm",type:"duotone"}))):a.a.createElement(h.Avatar,{variant:"circular",colorMode:"light",className:Ae.iconDisabled},a.a.createElement(za,{format:"Classroom",size:"sm",type:"duotone"}))),a.a.createElement(h.Expanded,{flex:0},s?a.a.createElement(h.Tooltip,{title:"Webinar",placement:"bottom"},a.a.createElement(h.Avatar,{variant:"circular",colorMode:"light",className:Ae.iconEnabled},a.a.createElement(za,{format:"Webcast",size:"sm",type:"duotone"}))):a.a.createElement(h.Avatar,{variant:"circular",colorMode:"light",className:Ae.iconDisabled},a.a.createElement(za,{format:"Webcast",size:"sm",type:"duotone"})))))}},{Header:"Provider",accessor:"provider",disableSortBy:!0,Cell:function(e){var t=e.cell;return a.a.createElement(h.Typography,{variant:"body2"},t.value)}},{Header:"",accessor:"userCollection",disableSortBy:!0,Cell:function(e){var t=e.row.original;return a.a.createElement(h.Row,{crossAxisAlignment:"middle"},a.a.createElement(h.Expanded,{flex:0},a.a.createElement(mo,{userCollection:t.userCollection,courseId:t.courseId||0})),a.a.createElement(h.Expanded,{flex:0},a.a.createElement(h.Tooltip,{title:"Favorite",placement:"bottom"},a.a.createElement("span",null,a.a.createElement(h.Checkbox,{disableRipple:!0,checked:t.userFavorite,formikContext:!1,icon:a.a.createElement(h.SystemIcon,{type:"duotone",icon:"Star"}),checkedIcon:a.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()}})))))}}],qe=[{label:a.a.createElement(h.Tooltip,{title:"On-demand",placement:"top"},a.a.createElement("span",null,a.a.createElement(h.Box,{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignItems:"center"},a.a.createElement(h.Box,{display:"flex",pr:ke?0:.5},a.a.createElement(h.SystemIcon,{icon:"Cem-OnDemand",type:"duotone",size:"xs"})),a.a.createElement(h.Hidden,{xsDown:!0},a.a.createElement(h.Typography,{variant:"body1"},"On-Demand"))))),value:"On-demand"},{label:a.a.createElement(h.Tooltip,{title:"Classroom",placement:"top"},a.a.createElement("span",null,a.a.createElement(h.Box,{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignItems:"center"},a.a.createElement(h.Box,{display:"flex",pr:ke?0:.5},a.a.createElement(h.SystemIcon,{icon:"Cem-Classroom",type:"duotone",size:"xs"})),a.a.createElement(h.Hidden,{xsDown:!0},a.a.createElement(h.Typography,{variant:"body1"},"Classroom"))))),value:"Classroom"},{label:a.a.createElement(h.Tooltip,{title:"Webinar",placement:"top"},a.a.createElement("span",null,a.a.createElement(h.Box,{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignItems:"center"},a.a.createElement(h.Box,{display:"flex",pr:ke?0:.5},a.a.createElement(h.SystemIcon,{icon:"Cem-Webinar",type:"duotone",size:"xs"})),a.a.createElement(h.Hidden,{xsDown:!0},a.a.createElement(h.Typography,{variant:"body1"},"Webinar"))))),value:"Webcast"}];return a.a.createElement(h.Screen,{titleBar:{title:(Se&&""!==Se.title?Se.title:"Course Catalog")||"Course Catalog",description:Se?a.a.createElement(h.Column,null,null!==Se.shortDescription&&""!==Se.shortDescription&&a.a.createElement(h.TextEditorView,{model:Object(k.a)(Se.shortDescription)}),null!==Se.text&&""!==Se.text&&a.a.createElement(h.Box,{mt:2},a.a.createElement(h.Button,{variant:"outlined",size:"small",onClick:function(){return ne(!0)}},"Show More"))):a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Box,{mt:2.5},a.a.createElement(h.Skeleton,{width:"100%",height:20,variant:"rect"})),a.a.createElement(h.Box,{mt:1},a.a.createElement(h.Skeleton,{width:"100%",height:20,variant:"rect"})))},bgColor:"default"},a.a.createElement(co.Provider,{value:Ue},a.a.createElement(h.Box,{mt:2,mb:3},a.a.createElement(h.Grid,{container:!0,spacing:"form",justify:"center"},a.a.createElement(h.Grid,{item:!0,xs:12,sm:8,xl:6},a.a.createElement(h.Row,null,a.a.createElement(h.Expanded,null,a.a.createElement(h.TextField,{hiddenLabel:!0,placeholder:"Search Course or Session Title",fullWidth:!0,dense:!0,onChange:function(e){return Fe(e.target.value)},startAdornment:a.a.createElement(h.SystemIcon,{icon:"Search",size:"xs"}),formikContext:!1}),a.a.createElement(h.Box,{mt:1},a.a.createElement(h.Row,{crossAxisAlignment:"middle",mainAxisAlignment:"end"},a.a.createElement(h.Typography,{variant:"caption"},a.a.createElement(h.Link,{onClick:function(){L.push({pathname:"user-courses/my-collections",state:{fromCourseCatalog:!0}})}},"My Collection")),a.a.createElement(h.Box,{mr:1,ml:1},"|"),a.a.createElement(h.Typography,{variant:"caption"},a.a.createElement(h.Link,{onClick:function(){return ce(!0)}},a.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)&&a.a.createElement(h.IconButton,{color:"primary",size:"small",onClick:function(){E([]),A(void 0),y([]),g(!1),o(!0,!0)}},a.a.createElement(h.SystemIcon,{icon:"ClearFilters",size:"xs",color:"secondary"}))))),a.a.createElement(h.Box,{ml:2,hidden:ke},a.a.createElement(h.Tooltip,{title:"Cards View"},a.a.createElement(h.IconButton,{onClick:function(){return R("grid")},color:"grid"===B?"primary":"default"},a.a.createElement(h.SystemIcon,{icon:"ViewAsGrid",size:"sm"}))),a.a.createElement(h.Tooltip,{title:"List View"},a.a.createElement(h.IconButton,{onClick:function(){return R("list")},color:"list"===B?"primary":"default"},a.a.createElement(h.SystemIcon,{icon:"ViewAsList",size:"sm"})))))))),a.a.createElement(h.Box,{mb:2},a.a.createElement(h.Grid,{container:!0,spacing:"form",justify:"center",alignItems:"center"},a.a.createElement(h.Grid,{item:!0,xs:12,sm:12,md:4,lg:5},a.a.createElement(h.Wrap,{alignment:"center",runSpacing:4},a.a.createElement(h.Expanded,{flex:0},a.a.createElement(h.Box,{mr:1},a.a.createElement(h.Typography,{variant:"h6"},"Showing ".concat((null===p||void 0===p?void 0:p.length)||0," ").concat((null===p||void 0===p?void 0:p.length)&&(null===p||void 0===p?void 0:p.length)>1?"Courses":"Course")))),a.a.createElement(h.Expanded,{flex:0},a.a.createElement(h.Tooltip,{title:"Course Favorites",placement:"top"},a.a.createElement(h.Chip,{label:a.a.createElement(h.Typography,{variant:"caption"},"My Favorites"),size:"small",color:"default",avatar:a.a.createElement(h.Avatar,{customBackgroundColor:"#ffffff"},a.a.createElement(h.Box,{mr:-.375},a.a.createElement(h.Checkbox,{className:Ae.courseFavoriteIcon,onChange:function(e,t){return function(e){g(e),o(!0)}(t)},checked:d,formikContext:!1,icon:a.a.createElement(h.SystemIcon,{size:"xs",type:"duotone",color:"grey700",icon:"Star"}),checkedIcon:a.a.createElement(h.SystemIcon,{size:"xs",type:"duotone",color:"secondary",icon:"Star"})})))}))))),a.a.createElement(h.Grid,{item:!0,xs:12,sm:12,md:8,lg:7},a.a.createElement(h.Wrap,{alignment:"center",runSpacing:4,spacing:De?4:0,mainAxisAlignment:De?"center":"end"},a.a.createElement(h.Expanded,{flex:ke?1:0},a.a.createElement(h.Box,{mr:ke?"auto":De?0:1,maxWidth:ke?280:void 0,margin:"0 auto"},a.a.createElement(h.ToggleButtonGroup,{size:"small",id:"CourseFormatToggle",options:qe,exclusive:!1,value:l,onChange:function(e,t){return y(t),void o(!0)},formikContext:!1,stretch:ke}))),a.a.createElement(h.Expanded,{flex:ke?1:0},a.a.createElement(h.Box,{className:Object(ro.default)(Object(kn.a)({},Ae.filterSelectField,ke))},a.a.createElement(h.SelectField,{fullWidth:ke,id:"catalogSavedFilterId",variant:"outlined",value:P||Le||1,onOpen:function(){return Pe(!0)},onClose:function(){return Pe(!1)},formikContext:!1,dense:!0,onChange:function(e){return function(e,t){A(e);var i,r,a,n,s,l=[];t?l=(null===(i=t.filter)||void 0===i?void 0:i.split("|"))||Array():l=""===(null===T||void 0===T||null===(r=T.find((function(t){return t.catalogSavedFilterId===e})))||void 0===r||null===(a=r.filter)||void 0===a?void 0:a.split("|")[0])?[]:(null===T||void 0===T||null===(n=T.find((function(t){return t.catalogSavedFilterId===e})))||void 0===n||null===(s=n.filter)||void 0===s?void 0:s.split("|"))||[];E(l),b(Object(D.a)(Object(D.a)({},u),{},{searchCriteria:l,page:1,pageSize:10})),o()}(e.target.value,void 0)},startAdornment:"View:"},a.a.createElement(h.MenuItem,{key:-1,value:-1,disabled:!0},a.a.createElement(h.Row,null,a.a.createElement(h.Expanded,{flex:0,mr:1,pb:.3},a.a.createElement(h.Typography,{variant:"subtitle2"},"Custom Filter")))),T&&T.map((function(e){return a.a.createElement(h.MenuItem,{key:e.catalogSavedFilterId,value:e.catalogSavedFilterId},a.a.createElement(h.Box,{display:"flex"},a.a.createElement(h.Box,{flex:1,mr:1,pb:.3},a.a.createElement(h.Typography,{variant:"body1"},e.name)),Te&&Le===e.catalogSavedFilterId?a.a.createElement(h.Box,{my:"auto"},a.a.createElement(h.Tooltip,{title:"Default"},a.a.createElement("span",null,a.a.createElement(h.CircleBadge,{size:"xs",type:"info",variant:"filled"})))):void 0))}))))))))),a.a.createElement(h.Grid,{container:!0,spacing:"card"},0===(null===p||void 0===p?void 0:p.length)?a.a.createElement(h.Grid,{item:!0,xs:12,sm:12,lg:12,alignment:"center"},a.a.createElement(h.Alert,{variant:"standard",type:"info",icon:"Info"},a.a.createElement(h.Typography,{color:"primary",weight:"semi-bold"},"No courses found."))):p&&"grid"===B?a.a.createElement(a.a.Fragment,null,p.map((function(e){var t,i,r,n,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!==(n=e.label)&&void 0!==n?n:"",p="Completed"===u?"success":"Enrolled"===u?"primary":"default";return a.a.createElement(h.Grid,{key:e.courseId,item:!0,xs:12,sm:ke?12:6,lg:ke?12:4,stretchContent:!0},a.a.createElement(h.Card,{variant:"elevation"},a.a.createElement(h.CardHeader,{classes:{title:Ae.cardTitle,subheader:Ae.cardSubheader},title:a.a.createElement(h.Box,null,a.a.createElement(h.Row,null,a.a.createElement(h.Grid,{container:!0,spacing:"card"},a.a.createElement(h.Grid,{item:!0,xs:Object(x.isEmpty)(u)?12:9},a.a.createElement(h.Typography,{variant:"subtitle1",weight:"bold"},e.title)),!Object(x.isEmpty)(u)&&a.a.createElement(h.Grid,{item:!0,xs:3,alignment:"top-right"},a.a.createElement(h.Chip,{label:u,variant:"box",color:p})))),e.courseId&&a.a.createElement(h.Typography,{variant:"subtitle2",weight:"semi-bold"},e.provider))}),a.a.createElement(h.CardContent,{noTopPadding:!0},a.a.createElement(h.Box,{mr:2},a.a.createElement(h.Row,{flex:0},a.a.createElement(h.Expanded,{flex:0},d?a.a.createElement(h.Tooltip,{title:"On-demand",placement:"bottom"},a.a.createElement(h.Avatar,{variant:"circular",colorMode:"light",className:Ae.iconEnabled},a.a.createElement(za,{format:"On-demand",size:"sm",type:"duotone"}))):a.a.createElement(h.Avatar,{variant:"circular",colorMode:"light",className:Ae.iconDisabled},a.a.createElement(za,{format:"On-demand",size:"sm",type:"duotone"}))),a.a.createElement(h.Expanded,{flex:0,mr:.5,ml:.5},l?a.a.createElement(h.Tooltip,{title:"Classroom",placement:"bottom"},a.a.createElement(h.Avatar,{variant:"circular",colorMode:"light",className:Ae.iconEnabled},a.a.createElement(za,{format:"Classroom",size:"sm",type:"duotone"}))):a.a.createElement(h.Avatar,{variant:"circular",colorMode:"light",className:Ae.iconDisabled},a.a.createElement(za,{format:"Classroom",size:"sm",type:"duotone"}))),a.a.createElement(h.Expanded,{flex:0},c?a.a.createElement(h.Tooltip,{title:"Webinar",placement:"bottom"},a.a.createElement(h.Avatar,{variant:"circular",colorMode:"light",className:Ae.iconEnabled},a.a.createElement(za,{format:"Webcast",size:"sm",type:"duotone"}))):a.a.createElement(h.Avatar,{variant:"circular",colorMode:"light",className:Ae.iconDisabled},a.a.createElement(za,{format:"Webcast",size:"sm",type:"duotone"}))))),a.a.createElement(h.Box,{className:Ae.courseDescriptionContainer},e.description?a.a.createElement(h.Tooltip,{title:null!==(o=a.a.createElement(h.TextEditorView,{model:e.description}))&&void 0!==o?o:""},a.a.createElement(h.Box,{component:"span"},a.a.createElement(h.Typography,{variant:"subtitle2",className:Ae.courseDescription},a.a.createElement(h.TextEditorView,{model:Object(k.a)(e.description)})))):a.a.createElement(a.a.Fragment,null,a.a.createElement("br",null),a.a.createElement(h.Typography,{variant:"subtitle2"},"No description available."))),e.courseTags&&a.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&&a.a.createElement(h.Box,{mr:.5,mb:.125},a.a.createElement(h.Chip,{label:e.name,variant:"box"}))})),e.courseTags.length>2&&a.a.createElement(h.Tooltip,{title:e.courseTags.slice(2).map((function(e){return e.name})).join(", ")},a.a.createElement(h.Box,{mr:.5,component:"span"},a.a.createElement(h.Chip,{label:"".concat(e.courseTags.length-2,"+"),variant:"box"}))))),a.a.createElement(h.CardActions,null,a.a.createElement(h.Row,{crossAxisAlignment:"middle"},a.a.createElement(h.Expanded,{flex:0},a.a.createElement(mo,{userCollection:e.userCollection,courseId:e.courseId||0})),a.a.createElement(h.Expanded,{flex:0},a.a.createElement(h.Tooltip,{title:"Favorite",placement:"bottom"},a.a.createElement("span",null,a.a.createElement(h.Checkbox,{disableRipple:!0,checked:e.userFavorite,formikContext:!1,icon:a.a.createElement(h.SystemIcon,{type:"duotone",icon:"Star"}),checkedIcon:a.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()}}))))),a.a.createElement(h.Button,{variant:"text",color:"primary",onClick:function(){return Re(e.courseId)}},"Details"))))})),a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center"},a.a.createElement(no.a,{count:Je,defaultPage:(null===u||void 0===u?void 0:u.page)||1,onChange:function(e,t){return Be(t)}}))):p&&"list"===B?a.a.createElement(h.DataGrid,{id:"courseId",advanced:!0,loading:null===p,data:p,columns:Me,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}):a.a.createElement(a.a.Fragment,null,"grid"===B?[1,2,3,4,5,6].map((function(e){return a.a.createElement(h.Grid,{key:e,item:!0,xs:12,sm:6,lg:4,stretchContent:!0},a.a.createElement(h.Card,{variant:"outlined"},a.a.createElement(h.CardHeader,{classes:{title:Ae.cardTitle,subheader:Ae.cardSubheader},title:a.a.createElement(h.Skeleton,{height:32}),subheader:a.a.createElement(h.Skeleton,{width:"40%"})}),a.a.createElement(h.CardContent,{classes:{root:Ae.cardContent},noTopPadding:!0},a.a.createElement(h.Skeleton,{width:"60%"})),a.a.createElement(h.CardActions,null,a.a.createElement(h.Skeleton,{width:"30%"}))))})):a.a.createElement(h.DataGrid,{id:"courseId",advanced:!0,loading:null===p,data:p,columns:Me,totalRecords:null!==(n=p&&p.length)&&void 0!==n?n:0,hideRowsPerPage:!0,pageSize:10}))),le&&a.a.createElement(fo,null),me&&a.a.createElement(yn,{hidePastSessions:!0,courseId:he,categories:l,open:me,onClose:function(){return ye(!1)}}),ae&&a.a.createElement(Ea,{open:ae,onClose:function(){return ne(!1)},title:(Se&&""!==Se.title?Se.title:"Course Catalog")||"Course Catalog",description:null===Se||void 0===Se?void 0:Se.text}),ee&&a.a.createElement(go,{open:ee,onClose:function(){return te(!1)},courseId:K}),_&&a.a.createElement(ho,{courseId:K,open:_,onClose:function(){Y(!1)}})))})))),Io=i(244),Oo=i.n(Io),Co=i(248),xo=i.n(Co),jo=function(e){return function(t){var i=t.children;return a.a.createElement(xo.a,null,a.a.createElement(e,t,i))}},wo=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 a.a.createElement(h.Grid,{spacing:"form",container:!0},a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.Box,{m:1},r.map((function(e){var t,r,n=null===(t=e.sessionLicenseProperties)||void 0===t?void 0:t.filter((function(t){var r,a,n=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?void 0:a.find((function(e){return e.propertyId===t.propertyId}));return 5===(null===n||void 0===n?void 0:n.typeId)})),o=null===(r=e.sessionLicenseProperties)||void 0===r?void 0:r.filter((function(t){var r,a,n=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?void 0:a.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=ja()(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 a.a.createElement(h.Box,{mt:1,key:"license-".concat(e.licenseId)},a.a.createElement(h.Row,{crossAxisAlignment:"middle"},a.a.createElement(h.Typography,{key:e.name,variant:"button",display:"inline"},e.name),e.expirationDate&&null!==e.expirationDate&&e.expirationDate<=new Date&&a.a.createElement(h.Typography,{variant:"body1",color:"error"},"\xa0 ",a.a.createElement("i",null," ","(Expired ".concat(Object(N.c)(e.expirationDate),")"))),2===e.licenseStatus&&a.a.createElement(h.Typography,{variant:"caption",color:"secondary",display:"inline"},"\xa0 Pending Approval"),3===e.licenseStatus&&a.a.createElement(h.Typography,{variant:"caption",color:"secondary",display:"inline"},"\xa0 Approval Denied")),a.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)?a.a.createElement(h.Box,{p:1},a.a.createElement(h.Typography,{variant:"caption"}," - No Credits")):a.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,n,o,s=null!==(r=null===t||void 0===t||null===(n=t.find((function(t){return t.creditId===e.creditId})))||void 0===n?void 0:n.name)&&void 0!==r?r:"";return e.creditValue>0?a.a.createElement("div",{key:e.creditName},a.a.createElement(h.Typography,{variant:"caption",weight:"regular",display:"inline"},"".concat(e.creditValue," ")),a.a.createElement(h.Typography,{variant:"caption",display:"inline"},"".concat(null!==(o=e.creditName)&&void 0!==o?o:s,"; ")),i%2===0?"":a.a.createElement("br",null)):""}))):a.a.createElement(h.Box,{p:1},a.a.createElement(h.Typography,{variant:"caption"}," - No Credits"))}(e,e.sessionLicenseCredits),n&&n.length>0?a.a.createElement(h.Box,{style:{border:"1px solid #c2c2c2",borderRadius:"5px"},display:"inline-block",pb:.5,pl:1,pr:1},null===n||void 0===n?void 0:n.map((function(t){var r,n,o,s=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||null===(o=n.find((function(e){return e.propertyId===t.propertyId})))||void 0===o?void 0:o.label;return a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Typography,{variant:"caption",display:"inline",style:{color:"#c2c2c2"}}," ".concat(s,"; ")))}))):"",o&&o.length>0?a.a.createElement(h.Divider,null):"",o&&o.length>0?a.a.createElement(h.Box,{p:1,style:{backgroundColor:"#fafafa"}},null===o||void 0===o?void 0:o.map((function(t,r){var n,o,s=null===i||void 0===i||null===(n=i.find((function(t){return t.licenseId===e.licenseId})))||void 0===n||null===(o=n.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 a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Typography,{variant:"caption",display:"inline",weight:"bold",style:{color:"#c2c2c2"}}," ".concat(null===s||void 0===s?void 0:s.label," ")),a.a.createElement(h.Typography,{variant:"caption",display:"inline"}," ".concat(l,"; ")),r%2===0?"":a.a.createElement("br",null))}))):""))})))))})),To=Object(s.b)((function(e){return{loggedUser:e.users.loggedUser}}),(function(e){return{confirmDialog:function(t){return e(Object(on.b)(t))},getSessionEvaluation:function(t){return e(function(e){return function(t){return U.R.getSessionEvaluationById(void 0,v.bd.fromJS({sessionEvaluationId:e})).then((function(e){return e})).catch((function(e){t(Object(G.b)(e))}))}}(t))},saveSessionEvaluationAnswers:function(t,i,r){return e(function(e,t,i){return function(r){return U.R.saveSessionEvaluationAnswers(void 0,v.Yd.fromJS({sessionEvaluationId:e,answers:t,isSubmit:"submit"===i})).then((function(e){return"save"===i?r(Object(G.a)({message:"Save Successful!",variant:"success"})):"submit"===i&&r(Object(G.a)({message:"Submit Successful!",variant:"success"})),e})).catch((function(e){throw r(Object(G.b)(e)),e}))}}(t,i,r))},getAllSessionInstructors:function(t){return e(Pr(t))}}}))((function(e){var t,i,n,o,s,l,d,u,p,v,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],T=j[1],P=Object(r.useState)(),A=Object(c.a)(P,2),L=A[0],J=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),M=Object(c.a)(G,2),q=M[0],z=M[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),ae=re[0],ne=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],pe=ue[1],ve=Object(r.useState)(!1),fe=Object(c.a)(ve,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),Te=we[0],Pe=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)})),T(e),Je((null===e||void 0===e?void 0:e.sessionEvaluationAnswers)||[]),xe(!1),te(!!(null===e||void 0===e?void 0:e.evaluationDate)),J(null===e||void 0===e?void 0:e.evaluation)}))}),[m,g,O,I]),Object(r.useEffect)((function(){m&&L&&(U((null===L||void 0===L?void 0:L.sections)&&(null===L||void 0===L?void 0:L.sections.length)>0&&(null===L||void 0===L?void 0:L.sections[0].questions)&&(null===L||void 0===L?void 0:L.sections[0].questions.length)>0?null===L||void 0===L?void 0:L.sections[0].questions[0]:void 0),z((null===L||void 0===L?void 0:L.sections)&&(null===L||void 0===L?void 0:L.sections.length)>0?null===L||void 0===L?void 0:L.sections[0].sectionId:void 0),ne(!((null===L||void 0===L?void 0:L.sections)&&(null===L||void 0===L?void 0:L.sections.length)>0&&((null===L||void 0===L?void 0:L.sections.length)>1||(null===L||void 0===L?void 0:L.sections[0].questions)&&(null===L||void 0===L?void 0:L.sections[0].questions.length)>1))))}),[m,L]);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,a,n,o,s,l,c,d,u,h,p,v,f=Object(D.a)({},R),m=null===L||void 0===L||null===(e=L.sections)||void 0===e?void 0:e.filter((function(e){return e.sectionId===q}))[0];m&&m.questions&&(null!==(t=f.sequence)&&void 0!==t?t:0)===m.questions.length?(m=null===L||void 0===L||null===(c=L.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===(p=m)||void 0===p||null===(v=p.questions)||void 0===v?void 0:v.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===L||void 0===L||null===(r=L.sections)||void 0===r?void 0:r.length)||(null===(a=f)||void 0===a?void 0:a.sequence)!==(null===(n=m)||void 0===n||null===(o=n.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)||ne(!0),le&&ce(!1)},Be=function(){var e,t,i,r,a,n,o,s,l,c,d,u,h=Object(D.a)({},R),p=null===L||void 0===L||null===(e=L.sections)||void 0===e?void 0:e.filter((function(e){return e.sectionId===q}))[0];(null!==(t=h.sequence)&&void 0!==t?t:0)-1<1?(p=null===L||void 0===L||null===(o=L.sections)||void 0===o?void 0:o.filter((function(e){var t,i;return e.sequence===(null!==(t=null===(i=p)||void 0===i?void 0:i.sequence)&&void 0!==t?t:0)-1}))[0],h=(null===(s=p)||void 0===s||null===(l=s.questions)||void 0===l?void 0:l.filter((function(e){var t,i;return e.sequence===(null===(t=p)||void 0===t||null===(i=t.questions)||void 0===i?void 0:i.length)}))[0])||void 0,z(null===(c=p)||void 0===c?void 0:c.sectionId),U(h)):(h=(null===(d=p)||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=p)||void 0===i?void 0:i.sequence)||1!==(null===(r=h)||void 0===r?void 0:r.sequence)&&0!==(null===(a=p)||void 0===a||null===(n=a.questions)||void 0===n?void 0:n.length)||ce(!0),ae&&ne(!1)},Re=function(e){pe(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")},Me=function(){Re("save");var e=qe(K||[]);Ue(e,"save")},qe=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(){Me(),E()},onCancel:E}):E()};return a.a.createElement(Oa.a,{fullScreen:!0,open:m,onClose:ze},a.a.createElement(h.Backdrop,{open:!L||!_},a.a.createElement(h.CircularProgress,{color:"secondary"})),a.a.createElement(Ia.DialogHeader,{colorMode:"dark",titleBar:{onClose:ze}}),a.a.createElement(Ia.DialogBody,null,a.a.createElement(h.Box,null,(null===w||void 0===w?void 0:w.course)&&(null===w||void 0===w?void 0:w.session)&&a.a.createElement(h.Box,{mb:2},a.a.createElement(h.Card,{variant:"outlined",status:"primary"},a.a.createElement(h.CardHeader,{style:{padding:"8px"},title:a.a.createElement(h.Box,{display:"flex"},a.a.createElement(h.Box,{p:1,pr:2,my:"auto"},a.a.createElement(h.SystemIcon,{icon:"Courses",size:"md"})),a.a.createElement(h.Box,{flex:1},a.a.createElement(h.Typography,{variant:"h6",color:"textPrimary"},null===w||void 0===w||null===(t=w.course)||void 0===t?void 0:t.title),a.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)),a.a.createElement(h.Box,{p:1,my:"auto"},a.a.createElement(h.IconButton,{onClick:function(){return Pe(!Te)}},a.a.createElement(h.SystemIcon,{icon:Te?"CollapseVertical":"ExpandVertical",size:"md"}))))}),a.a.createElement(h.Collapse,{in:Te},a.a.createElement(h.Divider,null),a.a.createElement(h.CardContent,null,a.a.createElement(h.Box,{display:"flex"},a.a.createElement(h.Box,{pr:2,minWidth:70,my:"auto"},a.a.createElement(h.CalendarBadge,{size:"sm",date:null!==(n=null===w||void 0===w?void 0:w.session.startDate)&&void 0!==n?n:new Date})),a.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())&&a.a.createElement(h.Box,{mb:.5},a.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},w.session.title)),a.a.createElement(h.Box,{display:"flex",mb:.5},a.a.createElement(h.Box,{pr:1,minWidth:30,textAlign:"center"},a.a.createElement(h.SystemIcon,{icon:"Clock",color:"primary"})),a.a.createElement(h.Box,{flex:1},a.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))&&a.a.createElement(h.Box,{display:"flex",mb:.5},a.a.createElement(h.Box,{pr:1,minWidth:30,textAlign:"center"},a.a.createElement(h.SystemIcon,{icon:"Location",color:"primary",type:"solid"})),a.a.createElement(h.Box,{flex:1},a.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):""))),a.a.createElement(h.Box,{display:"flex"},a.a.createElement(h.Box,{pr:1,minWidth:30,textAlign:"center"},function(e){switch(e){case"Classroom":return a.a.createElement(h.SystemIcon,{icon:"Cem-Classroom",type:"duotone",color:"primary"});case"On-demand":return a.a.createElement(h.SystemIcon,{icon:"Cem-OnDemand",type:"duotone",color:"primary"});case"Webcast":return a.a.createElement(h.SystemIcon,{icon:"Cem-Webinar",type:"duotone",color:"primary"});default:return a.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:"")),a.a.createElement(h.Box,{flex:1},a.a.createElement(h.Typography,{variant:"body1"},null===w||void 0===w||null===(p=w.session.courseFormat)||void 0===p?void 0:p.name)))),a.a.createElement(h.Box,{flex:1,my:"auto"},ke&&ke.length>0&&(Le={icon:a.a.createElement(h.SystemIcon,{icon:"Instructor",color:"primary",type:"solid"}),label:a.a.createElement(h.Box,{style:{display:"flex",alignItems:"center",justifyItems:"center"}},a.a.createElement(h.Typography,{variant:"body1"},"Instructor(s): ",ke.map((function(e){return e.fullName})).join(", ")))},a.a.createElement(h.Row,{crossAxisAlignment:"middle"},a.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)&&a.a.createElement(h.Box,{mt:2,dangerouslySetInnerHTML:{__html:Object(k.a)(null===w||void 0===w?void 0:w.session.detail)}}))))),L&&K&&ke?a.a.createElement($r,{disabled:ee,evaluation:L,currentQuestion:R,currentSectionId:q,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=qe(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")}})}(qe(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===(v=y.location)||void 0===v?void 0:v.name)||"",department:(null===y||void 0===y||null===(f=y.userDepartment)||void 0===f?void 0:f.map((function(e){return e.name})).join(", "))||""}}):a.a.createElement(Ln,{type:"filter-drawer"}))),L&&_&&a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Hidden,{smDown:!0},!ee&&a.a.createElement(Ia.DialogFooter,null,a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:4,sm:3,alignment:"center-left"}),a.a.createElement(h.Grid,{item:!0,xs:4,sm:3,alignment:"center-left"},a.a.createElement(h.Button,{fullWidth:!0,color:"primary",variant:"outlined",onClick:function(){Me()},disabled:"save"!==he&&Se,loading:"save"===he&&Se},"Save")),a.a.createElement(h.Grid,{item:!0,xs:4,sm:3,alignment:"center-left"},a.a.createElement(h.Button,{fullWidth:!0,color:"primary",variant:"contained",onClick:function(){Ge()},disabled:"submit"!==he&&Se,loading:"submit"===he&&Se},"Submit")),a.a.createElement(h.Grid,{item:!0,xs:4,sm:3,alignment:"center-left"})))),a.a.createElement(h.Hidden,{mdUp:!0},a.a.createElement(Ia.DialogFooter,null,a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Hidden,{xsDown:!0},a.a.createElement(h.Grid,{item:!0,sm:2,alignment:"center-left"})),a.a.createElement(h.Grid,{item:!0,xs:6,sm:4,alignment:"center-left"},a.a.createElement(h.Button,{fullWidth:!0,color:"default",variant:"contained",type:"submit",onClick:function(){ee?Be():Re("back")},disabled:le||Se&&"submit"===he},"Back")),ae?a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Grid,{item:!0,xs:6,sm:4,alignment:"center-left"},a.a.createElement(h.Button,{fullWidth:!0,color:"primary",variant:"contained",onClick:function(){Ge()},disabled:ee,loading:"submit"===he&&Se},"Submit"))):a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Grid,{item:!0,xs:6,sm:4,alignment:"center-left"},a.a.createElement(h.Button,{fullWidth:!0,color:"primary",variant:"contained",onClick:function(){ee?Fe():Re("next")},disabled:ae},"Next"))),a.a.createElement(h.Hidden,{xsDown:!0},a.a.createElement(h.Grid,{item:!0,sm:2,alignment:"center-left"})))))))}));function Po(){Po=function(){return e};var e={},t=Object.prototype,i=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",n=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 a=t&&t.prototype instanceof u?t:u,n=Object.create(a.prototype),o=new O(r||[]);return n._invoke=function(e,t,i){var r="suspendedStart";return function(a,n){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw n;return x()}for(i.method=a,i.arg=n;;){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),n}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 p(){}var v={};s(v,a,(function(){return this}));var f=Object.getPrototypeOf,m=f&&f(f(C([])));m&&m!==t&&i.call(m,a)&&(v=m);var y=p.prototype=u.prototype=Object.create(v);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(a,n){function o(){return new t((function(r,o){!function r(a,n,o,s){var l=c(e[a],e,n);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)}(a,n,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 a=r.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):a:(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[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r=0;--a){var n=this.tryEntries[a],o=n.completion;if("root"===n.tryLoc)return r("end");if(n.tryLoc<=this.prev){var s=i.call(n,"catchLoc"),l=i.call(n,"finallyLoc");if(s&&l){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&i.call(a,"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 a=r.arg;I(i)}return a}}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 Ao=function(e,t){return function(i){return U.X.getCourseSessionByParticipant(e,t,void 0).then((function(e){return e})).catch((function(e){throw i(Object(G.b)(e)),e}))}},No=function(e,t,i,r){return function(a){var n=new v.ab({userIdList:e,sessionId:t,isInstructor:i,isTentative:r,sendEmailConfirmation:!0});return U.R.create(void 0,n).then((function(e){return e})).catch((function(e){a(Object(G.a)({message:e.detail,variant:"error"}))}))}},ko=function(e,t,i){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4?arguments[4]:void 0,n=arguments.length>5&&void 0!==arguments[5]&&arguments[5];return function(o){var s={sessionParticipantIds:e,sessionParticipantStatusId:t,isParticipantUnvalidated:i,isCreditAdjusted:r,sessionId:a,isApproval:n,sendEmailConfirmation:!0};return U.R.update(void 0,v.Ee.fromJS(s)).then((function(e){return e})).catch((function(e){o(Object(G.b)(e))}))}},Do=function(e,t,i){return function(r){var a=new v.af({sessionParticipantIds:e,completionDate:new Date(Object(ii.j)(new Date)),sessionId:t,onlineCourseFailed:i});return U.R.validate(void 0,v.af.fromJS(a)).then((function(e){return e})).catch((function(e){r(Object(G.b)(e))}))}},Lo=function(e){return function(t){var i=new v.Zd({sessionParticipantIds:e});return U.R.saveSessionEvaluation(void 0,v.Zd.fromJS(i)).then((function(e){return e})).catch((function(e){t(Object(G.b)(e))}))}},Jo=function(){var e=Object(l.a)(Po().mark((function e(){var t;return Po().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t=da.a.getItem("SCORM_CODE"))||null===t){e.next=3;break}return e.abrupt("return",t);case 3:return e.next=5,U.P.getToken(void 0).then((function(e){var t=new Date;return da.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)}}(),Fo=function(){return function(e,t){var i=t().users,r=i.loggedUser,a=i.authenticatedUser,n=void 0!==a&&null!==a&&a.userRole?a.userRole[0].roleId:void 0!==r&&null!==r&&r.userRole?r.userRole[0].roleId:0;return U.J.getRoleElearningSetting(void 0,v.Uc.fromJS({roleId:n})).then((function(e){return e})).catch((function(t){e(Object(G.b)(t))}))}},Bo=Object(z.makeStyles)((function(e){var t,i,r,a,n=e.breakpoints,o=e.palette,s=e.spacing;return Object(z.createStyles)({container:{minHeight:s(23.75),paddingTop:s(2.5),paddingBottom:s(2.5),display:"flex"},launchButton:(t={borderRadius:s(6.25)},Object(kn.a)(t,n.up("xs"),{width:s(21.5),height:s(6.5)}),Object(kn.a)(t,n.up("sm"),{width:s(31.5),height:s(7.5)}),Object(kn.a)(t,n.up("md"),{width:s(32.25),height:s(10.625)}),Object(kn.a)(t,n.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(kn.a)(i,n.up("xs"),{minHeight:s(6.5)}),Object(kn.a)(i,n.up("sm"),{minHeight:s(7.5)}),Object(kn.a)(i,n.up("md"),{width:s(47.5),minHeight:s(10.625)}),Object(kn.a)(i,n.up("lg"),{minHeight:s(12.25),width:s(61.25)}),i),h5Label:(r={},Object(kn.a)(r,n.down("md"),{fontSize:s(2.75)}),Object(kn.a)(r,n.down("sm"),{fontSize:s(2.5)}),Object(kn.a)(r,n.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:(a={border:"".concat(s(.125),"px solid ").concat(o.grey[700]),borderRadius:"50%",display:"flex",justifyContent:"center",alignItems:"center",margin:"0 auto",cursor:"pointer"},Object(kn.a)(a,n.up("xs"),{width:s(6.5),height:s(6.5)}),Object(kn.a)(a,n.up("sm"),{width:s(7.5),height:s(7.5)}),Object(kn.a)(a,n.up("md"),{width:s(10.625),height:s(10.625)}),Object(kn.a)(a,n.up("lg"),{width:s(12.25),height:s(12.25)}),a),syncDisabled:{backgroundColor:"#e0e0e0 !important"},syncLabel:Object(kn.a)({color:o.secondary.main},n.down("xs"),{fontSize:s(1.375)}),syncLabelDisabled:{color:o.primary.contrastText}})})),Ro=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(Fo())},getPreviewLink:function(t,i){return e(function(e,t){return function(){var i=Object(l.a)(Po().mark((function i(r){var a;return Po().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return a={redirectOnExitUrl:t},i.t0=nr.a,i.t1="".concat("https://cloud.scorm.com/api/v2","/courses/").concat(e,"/preview"),i.t2=a,i.t3="Bearer ",i.next=7,Jo();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(G.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(Ao(t,i))},getScormRegistration:function(t){return e(function(e){return function(t){return U.P.getScormRegistration(e,void 0).then((function(e){return e})).catch((function(e){throw t(Object(G.b)(e)),e}))}}(t))},getScormRegistrationByParticipantId:function(t){return e(function(e){return function(t){return U.P.getScormRegistrationByParticipantId(e,void 0).then((function(e){return e})).catch((function(e){throw t(Object(G.b)(e)),e}))}}(t))},getScormRegistrationProgress:function(t,i){return e(function(e,t){return function(i){return U.P.getScormRegistrationProgress(e,t,void 0).then((function(e){return e})).catch((function(e){throw i(Object(G.b)(e)),e}))}}(t,i))},getScormRegistrationLaunchLink:function(t,i){return e(function(e,t){return function(i){return U.P.getScormRegistrationLaunchLink(e,t,void 0).then((function(e){return e})).catch((function(e){throw i(Object(G.b)(e)),e}))}}(t,i))},getSessionParticipant:function(t,i){return e(function(e,t){var i=new v.gd({sessionId:e,userId:t});return function(e){return U.R.getSessionParticipant(void 0,i).then((function(e){return e.sessionParticipants})).catch((function(t){e(Object(G.a)({message:t.detail,variant:"error"}))}))}}(t,i))},registerParticipant:function(t,i,r,a){return e(No(t,i,r,a))},resetFailedScorm:function(t){return e((i=t,function(e){var t=new v.wb({sessionParticipantId:i});return U.P.deleteScormRegistrationProgress(void 0,t).then((function(e){return e})).catch((function(t){e(Object(G.b)(t))}))}));var i},saveSessionEvaluation:function(t){return e(Lo(t))},updateParticipant:function(t,i,r,a,n){return e(ko(t,i,r,!1,a,n))},updateScormRegistration:function(t,i,r,a,n,o){return e(function(e,t,i,r,a,n){return function(o,s){var l=s().users.loggedUser,c=null===l||void 0===l?void 0:l.userId,d=new v.X({scormCourseId:e,sessionParticipantId:t,sessionId:i,userId:c,sessionMediaFileId:r,status:a,userLearningPackageDetailId:n});return U.P.createScormRegistration(void 0,v.X.fromJS(d)).then((function(){return!0})).catch((function(e){return o(Object(G.b)(e)),!1}))}}(t,i,r,a,n,o))},updateScormRegistrationProgress:function(t,i,r,a,n){return e(function(e,t,i,r,a){return function(n){var o=new v.Y({userLearningPackageDetailId:e,duration:t,score:i,status:r,userLearningPackageProgressId:a});return U.P.createScormRegistrationProgress(void 0,v.Y.fromJS(o)).then((function(e){return e})).catch((function(e){return n(Object(G.b)(e)),!1}))}}(t,i,r,a,n))},validateParticipant:function(t,i,r){return e(Do(t,i,r))}}}))((function(e){var t,i,n=e.getPortalElearningSettingByRole,o=e.getPreviewLink,s=e.getSession,l=e.getScormRegistration,d=e.getScormRegistrationByParticipantId,u=e.getScormRegistrationProgress,p=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=Bo(),j=Object(r.useState)(),w=Object(c.a)(j,2),T=w[0],P=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),M=U[0],q=U[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)(!1),X=Object(c.a)(Z,2),ee=X[0],te=X[1],ie=Object(r.useState)(!1),re=Object(c.a)(ie,2),ae=re[0],ne=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],pe=ue[1],ve=Object(r.useState)(!1),fe=Object(c.a)(ve,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),Te=we[0],Pe=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],Me=Ue[1],qe=Object(r.useState)(!1),ze=Object(c.a)(qe,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(z.useTheme)(),Qe=Object(z.useMediaQuery)(Ke.breakpoints.up("md")),Ze=Object(z.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)(T),it=Object(r.useRef)(k),rt=Object(r.useRef)(null!==F&&void 0!==F?F:0),at=Object(r.useRef)(ae),nt=Object(r.useRef)(_);et.current=Xe,at.current=ae,Object(r.useEffect)((function(){n().then((function(e){Be(Boolean(e.enableMakeupDisqualifiedScorm))}))}),[n]),Object(r.useEffect)((function(){k&&_===v.ke.Failed&&Boolean(Fe)&&!$e&&Me(!0)}),[k,_,$e,Fe]),Object(r.useEffect)((function(){b&&(Pe(!0),O&&s(b,O).then((function(e){ce(e),Pe(!1);var t=e.scormCourseId,i=e.sessionMediaFiles,r=e.sessionParticipant;P(t),tt.current=t,D(i),it.current=i;var 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].sessionParticipantId),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].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(a),rt.current=null!==a&&void 0!==a?a:0,Q(n),Y(o),nt.current=o})).catch((function(e){Object(G.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(){Me(!1)},st=function(){_&&F&&(q(void 0),Q(void 0),Y(void 0),nt.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 a=null===e||void 0===e?void 0:e.filter((function(e){return!e.isInstructor}))[0].userLearningPackageDetailId,n=null===e||void 0===e?void 0:e.filter((function(e){return!e.isInstructor}))[0].userLearningPackageProgressId;void 0!==a&&void 0!==i&&void 0!==t&&r&&I(a,t,i,r,n).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),nt.current=null===e||void 0===e?void 0:e.filter((function(e){return!e.isInstructor}))[0].sessionParticipantStatusId,De(!1),ne(!1),at.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,a=e.status;q(e),De(!1),void 0!==a&&"failed"===a.toLowerCase()?t=v.Ke.Failed:void 0!==a&&"passed"===a.toLowerCase()?(Ee(!0),xe(!0),t=v.Ke.Completed):t=v.Ke.InProgress,b&&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,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,n).then((function(){Ve(!0),void 0!==n&&void 0!==r&&void 0!==i&&a&&I(n,i,r,a,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),nt.current=null===e||void 0===e?void 0:e.filter((function(e){return!e.isInstructor}))[0].sessionParticipantStatusId,t===v.Ke.Completed||t===v.Ke.Failed?C([rt.current],b,t===v.Ke.Failed).then((function(){b&&O&&(Pe(!0),s(b,O).then((function(t){var i=t.scormCourseId,r=t.sessionMediaFiles,a=t.sessionParticipant;ce(t),Pe(!1),P(i),tt.current=i,D(r),it.current=r;var n=a&&(null===a||void 0===a?void 0:a.filter((function(e){return!e.isInstructor}))[0])&&(null===a||void 0===a?void 0:a.filter((function(e){return!e.isInstructor}))[0].sessionParticipantId),o=a&&(null===a||void 0===a?void 0:a.filter((function(e){return!e.isInstructor}))[0])&&(null===a||void 0===a?void 0:a.filter((function(e){return!e.isInstructor}))[0].userLearningPackackageOverallStatus),s=a&&(null===a||void 0===a?void 0:a.filter((function(e){return!e.isInstructor}))[0])&&(null===a||void 0===a?void 0:a.filter((function(e){return!e.isInstructor}))[0].sessionParticipantStatusId);B(n),rt.current=null!==n&&void 0!==n?n:0,Q(o),Y(s),nt.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];pe(i)}))})).catch((function(e){Object(G.b)(e)}))),ne(!1),at.current=!1})):(b&&O&&(Pe(!0),s(b,O).then((function(e){var t=e.scormCourseId,i=e.sessionMediaFiles,r=e.sessionParticipant;ce(e),Pe(!1),P(t),tt.current=t,D(i),it.current=i;var 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].sessionParticipantId),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].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(a),rt.current=null!==a&&void 0!==a?a:0,Q(n),Y(o),nt.current=o})).catch((function(e){Object(G.b)(e)}))),ne(!1),at.current=!1)}))}))}))}))})))}),[u,s,f,g,b,O,E,I,C]);Object(r.useEffect)((function(){ae&&_&&_!==v.ke.Validated&&_!==v.ke.Failed&<()}),[ae,_,lt]);var ct=Object(r.useCallback)((function(e){var t=e.document;b&&t.write('')),!nt.current||nt.current!==v.ke.Validated&&nt.current!==v.ke.Failed?rt.current?b&&S([rt.current],v.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),nt.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,v.Ke.InProgress,null===e||void 0===e?void 0:e.filter((function(e){return!e.isInstructor}))[0].userLearningPackageDetailId).then((function(){b&&p(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),nt.current=null===e||void 0===e?void 0:e.filter((function(e){return!e.isInstructor}))[0].sessionParticipantStatusId,i&&S([i],v.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,v.Ke.InProgress,null===e||void 0===e?void 0:e.filter((function(e){return!e.isInstructor}))[0].userLearningPackageDetailId).then((function(){p(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,p,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(){at.current=!0,ne(!0),te(!1)},e.onunload=function(){at.current||(at.current=!0,ne(!0),te(!1))}}}),[b,ct,ee]),k?k[0].allowedToBeViewed?a.a.createElement(h.Container,{className:x.container,maxWidth:Qe?"lg":Ze?"sm":"xs",fixed:!0},a.a.createElement(h.Grid,{container:!0,spacing:Qe?0:"card",alignContent:"center"},a.a.createElement(h.Grid,{item:!0,xs:8,sm:8,md:4,lg:4},a.a.createElement(h.Box,{textAlign:"center"},a.a.createElement(h.Button,{className:x.launchButton,onClick:function(){te(!0)},color:"primary",variant:"contained",fullWidth:!0},a.a.createElement(h.Typography,{variant:"h5",className:x.h5Label},"Launch Course")))),a.a.createElement(h.Hidden,{mdUp:!0},a.a.createElement(h.Grid,{item:!0,xs:4,sm:4,md:2,lg:2},a.a.createElement(h.Button,{variant:_!==v.ke.Failed&&_!==v.ke.InProgress||!We?"contained":"outlined",className:Object(ro.default)(x.sync,Object(kn.a)({},x.syncDisabled,!(_===v.ke.Failed||_===v.ke.InProgress)||!We)),onClick:function(){return st()},disabled:!(_===v.ke.Failed||_===v.ke.InProgress)||!We},a.a.createElement(h.Typography,{className:Object(ro.default)(x.syncLabel,Object(kn.a)({},x.syncLabelDisabled,!(_===v.ke.Failed||_===v.ke.InProgress)||!We)),variant:"body1"},"Sync")))),a.a.createElement(h.Grid,{item:!0,xs:12,sm:12,md:6,lg:6},a.a.createElement(h.Box,{className:x.progressContainer},Te||ke?a.a.createElement(h.Skeleton,{width:"100%",height:"32px"}):a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Box,null,a.a.createElement(h.Typography,{variant:"h5",className:Object(ro.default)(x.status,x.h5Label)},1===K||void 0===K?"-":(null===M||void 0===M?void 0:M.score)&&Math.round(100*(null===M||void 0===M?void 0:M.score))/100||0),a.a.createElement(h.Typography,{variant:"caption",className:x.statusLabel},"Score")),a.a.createElement(h.Box,{className:x.divider}),a.a.createElement(h.Box,null,a.a.createElement(h.Typography,{variant:"h5",className:Object(ro.default)(x.status,x.h5Label)},3===K?"PASS":4===K?"FAIL":"-"),a.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())&&a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Box,{className:x.divider}),a.a.createElement(h.Box,null,a.a.createElement(h.Typography,{variant:"h5",className:Object(ro.default)(x.status,x.h5Label)},(null===M||void 0===M?void 0:M.duration)?new Date(1e3*(null===M||void 0===M?void 0:M.duration)).toISOString().substr(11,8):new Date(0).toISOString().substr(11,8)),a.a.createElement(h.Typography,{variant:"caption",className:x.statusLabel},"Session Time")))))),a.a.createElement(h.Hidden,{smDown:!0},a.a.createElement(h.Grid,{item:!0,xs:12,sm:12,md:2,lg:2},a.a.createElement(h.Button,{variant:_!==v.ke.Failed&&_!==v.ke.InProgress||!We?"contained":"outlined",className:Object(ro.default)(x.sync,Object(kn.a)({},x.syncDisabled,!(_===v.ke.Failed||_===v.ke.InProgress)||!We)),onClick:function(){return st()},disabled:!(_===v.ke.Failed||_===v.ke.InProgress)||!We},a.a.createElement(h.Typography,{className:Object(ro.default)(x.syncLabel,Object(kn.a)({},x.syncLabelDisabled,!(_===v.ke.Failed||_===v.ke.InProgress)||!We)),variant:"body1"},"Sync"))))),he&&a.a.createElement(To,{open:me,sessionEvaluationId:he,onClose:function(){ye(!1)}}),a.a.createElement(h.Dialog,{maxWidth:"md",open:Ce},a.a.createElement(Ia.DialogBody,null,a.a.createElement(h.Box,{px:2,pt:2},a.a.createElement(h.Box,{textAlign:"center"},Se?a.a.createElement(h.CircularProgress,{color:"primary",variant:"indeterminate"}):a.a.createElement(h.SystemIcon,{icon:"Success",size:"xl",color:"success",type:"duotone"})),a.a.createElement(h.Box,{py:2,textAlign:"center"},a.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular",color:Se?"primary":"success"},Se?"Validating...":"You successfully completed this course."))),!Se&&a.a.createElement(h.Grid,{container:!0,spacing:"form"},Xe&&a.a.createElement(h.Grid,{item:!0,xs:12,sm:6},a.a.createElement(h.Button,{variant:"text",size:"small",color:"primary",fullWidth:!0,style:{whiteSpace:"nowrap"},onClick:function(){ye(!0)}},"Complete Evaluation")),a.a.createElement(h.Grid,{item:!0,xs:12,sm:Xe?6:12},a.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"))))),a.a.createElement(h.Dialog,{open:Ge,maxWidth:"sm",fullWidth:!0},a.a.createElement(Ia.DialogHeader,{colorMode:"light",titleBar:{title:"On-Demand Session",onClose:ot}}),a.a.createElement(Ia.DialogBody,null,"You've been disqualified on this session. Do you want to retake this session?"),a.a.createElement(Ia.DialogFooter,null,a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:4}),a.a.createElement(h.Grid,{item:!0,xs:2},a.a.createElement(h.Button,{color:"default",fullWidth:!0,variant:"outlined",type:"reset",onClick:function(){ot()}},"Cancel")),a.a.createElement(h.Grid,{item:!0,xs:2},a.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],v.ke.InProgress,!1,b,!1).then((function(){Pe(!0),ot(),s(b,O).then((function(t){y(e).then((function(){Pe(!1),q(void 0),Q(void 0)})),ce(t)}))}))}()}},"Yes")),a.a.createElement(h.Grid,{item:!0,xs:4}))))):a.a.createElement(h.Box,{height:"190px",display:"flex",justifyContent:"center",alignItems:"center"},a.a.createElement(h.Alert,{variant:"standard",type:"warning"},"You do not have sufficient permission to view this file.")):a.a.createElement(h.Box,{height:"190px",display:"flex",justifyContent:"center",alignItems:"center"},a.a.createElement(h.CircularProgress,null))})),Uo=Object(z.makeStyles)((function(e){var t=e.palette,i=e.spacing,r=e.breakpoints;return Object(z.createStyles)({mediaRow:{marginBottom:i(3),background:"#000000"},validateButton:{height:i(4),width:i(22.375)},verificationContainer:Object(kn.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(kn.a)({height:i(23.75),display:"flex",justifyContent:"center",alignItems:"center",background:"#000"},r.down("sm"),{height:"100vh"})})})),Go=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 U.Z.getUserOnDemandSessionDetails(null===r||void 0===r?void 0:r.userId,e,void 0).then((function(e){return e})).catch((function(e){t(Object(G.b)(e))}))}}(t))},getPortalElearningSettingByRole:function(){return e(Fo())},getSession:function(t,i){return e(Ao(t,i))},getMediaFiles:function(t,i){return e(function(e,t){return function(i){return U.S.getAllSessionMedia(void 0,v.nc.fromJS({sessionId:e,userId:t})).then((function(e){return e})).catch((function(e){throw i(Object(G.b)(e)),e}))}}(t,i))},registerParticipant:function(t,i,r,a){return e(No(t,i,r,a))},resetDisqualifiedVideo:function(t){return e((i=t,function(e){var t=new v.sb({userOnDemandSessionIdList:i});return U.Z.resetDisqualifiedVideo(void 0,t).then((function(e){return e})).catch((function(t){e(Object(G.b)(t))}))}));var i},updateParticipant:function(t,i,r,a,n){return e(ko(t,i,r,!1,a,n))},updateUserOnDemandSessionValidation:function(t,i,r,a,n,o,s,l,c,d,u){return e(function(e,t,i,r,a,n,o,s,l,c,d){return function(u,h){var p=h().users.loggedUser,f=null===p||void 0===p?void 0:p.userId;if(void 0===o){var m=new v.gb({viewStart:e,viewEnd:t,viewStatus:i,userId:f,sessionMediaFileId:a,sessionId:n,sessionParticipantId:r,verificationCodeMissed:s,verificationCodeValidated:Boolean(l)});return U.Z.createUserOnDemandValidationStatus(void 0,v.gb.fromJS(m)).then((function(e){return e})).catch((function(e){return u(Object(G.b)(e)),!1}))}var y=new v.Fe({userOnDemandSessionId:o,viewStart:e,viewEnd:t,viewStatus:i,verificationCodeMissed:s,verificationCodeValidated:l,verificationCode:c,isVerificationCodeValidated:d});return U.Z.updateUserOnDemandValidationStatus(void 0,v.Fe.fromJS(y)).then((function(e){return e})).catch((function(e){return u(Object(G.b)(e)),!1}))}}(t,i,r,a,n,o,s,l,c,d,u))},updateUserOnDemandSessionVerification:function(t,i,r,a,n,o,s,l,c,d){return e(function(e,t,i,r,a,n,o,s,l,c){return function(d,u){var h=u().users.loggedUser,p=null===h||void 0===h?void 0:h.userId;if(void 0===c){var f=new v.hb({viewStart:e,viewEnd:t,verificationLastViewed:i,verificationViewMissed:r,verificationViewValidated:a,userId:p,sessionMediaFileId:s,sessionId:l,sessionParticipantId:o,verificationViewCount:n});return U.Z.createUserOnDemandVerificationStatus(void 0,v.hb.fromJS(f)).then((function(e){return e})).catch((function(e){return d(Object(G.b)(e)),!1}))}var m=new v.Ge({userOnDemandSessionId:c,viewStart:e,viewEnd:t,verificationLastViewed:i,verificationViewMissed:r,verificationViewValidated:a,verificationViewCount:n});return U.Z.updateUserOnDemandVerificationStatus(void 0,v.Ge.fromJS(m)).then((function(e){return e})).catch((function(e){return d(Object(G.b)(e)),!1}))}}(t,i,r,a,n,o,s,l,c,d))},validateParticipant:function(t,i,r){return e(Do(t,i,r))},saveSessionEvaluation:function(t){return e(Lo(t))},errorNotification:function(t){return e(Object(G.b)(t))}}}))((function(e){var t,i,n,o,s,l,d,u,p,f,m,y,g,b,S,E,I,O,C,j,w,T,P=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,M=e.updateUserOnDemandSessionVerification,q=e.validateParticipant,z=Uo(),W=Object(Co.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],ae=ie[1],ne=Object(r.useState)(),oe=Object(c.a)(ne,2),se=oe[0],le=oe[1],ce=Object(r.useState)(),de=Object(c.a)(ce,2),ue=de[0],he=de[1],pe=Object(r.useState)(),ve=Object(c.a)(pe,2),fe=ve[0],me=ve[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],Te=je[1],Pe=Object(r.useState)(0),Ae=Object(c.a)(Pe,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],Me=Object(r.useState)(!1),qe=Object(c.a)(Me,2),ze=qe[0],We=qe[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),at=Object(c.a)(rt,2),nt=at[0],ot=at[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),pt=ht[0],vt=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),Tt=Object(c.a)(wt,2),Pt=Tt[0],At=Tt[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),Mt=Gt[0],qt=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],ai=ii[1],ni=Object(r.useState)(!1),oi=Object(c.a)(ni,2),si=oi[0],li=oi[1],ci=Object(r.useState)(void 0),di=Object(c.a)(ci,2),ui=di[0],hi=di[1],pi=Object(r.useState)(0),vi=Object(c.a)(pi,2),fi=vi[0],mi=vi[1],yi=Object(r.useState)(!1),gi=Object(c.a)(yi,2),bi=gi[0],Si=gi[1],Ei=Object(r.useState)(!1),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],Ti=ji[1],Pi=Object(r.useState)(0),Ai=Object(c.a)(Pi,2),Ni=Ai[0],ki=Ai[1],Di=Object(r.useState)(void 0),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],Mi=Object(r.useState)(0),qi=Object(c.a)(Mi,2),zi=qi[0],Wi=qi[1],Vi=Object(r.useState)(0),_i=Object(c.a)(Vi,2),Yi=_i[0],$i=_i[1],Hi=Object(r.useState)(!1),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),ar=Object(c.a)(rr,2),nr=ar[0],or=ar[1],sr=Object(r.useState)(0),lr=Object(c.a)(sr,2),cr=lr[0],dr=lr[1],ur=Object(r.useState)(0),hr=Object(c.a)(ur,2),pr=hr[0],vr=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)(!1),Cr=Object(c.a)(Or,2),xr=Cr[0],jr=Cr[1],wr=Object(r.useState)(!1),Tr=Object(c.a)(wr,2),Pr=Tr[0],Ar=Tr[1],Nr=Object(r.useState)(0),kr=Object(c.a)(Nr,2),Dr=kr[0],Lr=kr[1],Jr=Object(r.useState)(0),Fr=Object(c.a)(Jr,2),Br=Fr[0],Rr=Fr[1],Ur=Object(r.useState)(void 0),Gr=Object(c.a)(Ur,2),Mr=Gr[0],qr=Gr[1],zr=Object(r.useState)(!1),Wr=Object(c.a)(zr,2),Vr=Wr[0],_r=Wr[1],Yr=Object(r.useState)([0]),$r=Object(c.a)(Yr,2),Hr=$r[0],Kr=$r[1],Qr=Object(r.useState)(),Zr=Object(c.a)(Qr,2),Xr=Zr[0],ea=Zr[1],ta=Object(r.useState)(!1),ia=Object(c.a)(ta,2),ra=ia[0],aa=ia[1],na=Object(r.useState)(!1),oa=Object(c.a)(na,2),sa=oa[0],la=oa[1],ca=Object(r.useState)(!1),da=Object(c.a)(ca,2),ua=da[0],ha=da[1],pa=Object(r.useState)(),va=Object(c.a)(pa,2),fa=va[0],ma=va[1],ya=Object(r.useState)(!1),ga=Object(c.a)(ya,2),ba=ga[0],Sa=ga[1],Ea=Object(r.useState)(!1),Ca=Object(c.a)(Ea,2),xa=Ca[0],ja=Ca[1],Pa=Object(r.useState)(!0),Aa=Object(c.a)(Pa,2),Na=Aa[0],ka=Aa[1],Da=Object(r.useState)(!1),La=Object(c.a)(Da,2),Ja=La[0],Fa=La[1],Ba=Object(r.useState)(!1),Ra=Object(c.a)(Ba,2),Ua=Ra[0],Ga=Ra[1],Ma=Object(r.createRef)(),qa=(null===H||void 0===H?void 0:H.evaluationId)&&(null===H||void 0===H?void 0:H.evaluationId)>0,za=Object(r.useState)(),Wa=Object(c.a)(za,2),Va=Wa[0],_a=Wa[1],Ya=Object(r.useState)(!1),$a=Object(c.a)(Ya,2),Ha=$a[0],Ka=$a[1],Qa=ue&&ue.filter((function(e){return e.viewStatus===v.Id.Done||e.viewStatus===v.Id.Disqualified})).map((function(e){return e.sessionMediaFileId})),Za=Object(r.useState)(!1),Xa=Object(c.a)(Za,2),en=Xa[0],tn=Xa[1];Object(r.useEffect)((function(){en&&!Ji&&qr(!1),tn(!1)}),[en,Ji]);var rn=se&&se.map((function(e){return e.sessionMediaFileId})),an=Qa&&rn&&Object(x.xor)(rn,Qa),nn=se&&se.filter((function(e){return an&&an.includes(e.sessionMediaFileId)}))[0],on=Object(r.useRef)(null),sn=function(e){return.001*e},ln=function(e){la(e),qr(!1),aa(!1)},cn=[{label:"Continue where I left off",action:function(){return ln(!1)}},{label:"Start from the beginning",action:function(){return ln(!0)}}],dn=Object(r.useCallback)((function(){gt(!1),P&&L&&D(P,L).then((function(e){K(e)}))}),[D,P,L]),un=Object(r.useCallback)((function(e){P&&e&&e.length>0&&yt&&(q(e.map((function(e){return e.sessionParticipantId||0})),P).then((function(){qa?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),dn()})):dn()})),$e(!0))}),[qa,B,P,dn,q,yt]),hn=function(e,t,i,r){var a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(P&&t&&fe){var n;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!==(n=null===s||void 0===s?void 0:s.viewEnd)&&void 0!==n?n:0,u=null===s||void 0===s?void 0:s.verificationCodeValidated,h=null===s||void 0===s?void 0:s.verificationViewValidated,p=null===s||void 0===s?void 0:s.verificationViewMissed,f=null!==i&&void 0!==i?i:re,m=null===s||void 0===s?void 0:s.verificationCodeMissed;o=bi&&Qi&&r&&c!==v.Id.Done&&c!==v.Id.Disqualified?!u||(void 0===m?0:m)>0||!h||(void 0===p?0:p)>0?v.Id.Disqualified:v.Id.Done:(bi||Qi)&&r&&c!==v.Id.Done&&c!==v.Id.Disqualified?bi&&u||Qi&&h?v.Id.Done:v.Id.Disqualified:bi||Qi||!r?void 0===c?v.Id.InProgress:c:v.Id.Done,(c!==v.Id.Done&&(c!==v.Id.Disqualified||Math.round(10*d)/1e3!==Math.round(10*yr)/1e3)||u&&c!==v.Id.Done||void 0===s)&&N(P).then((function(i){var n;me(i);var s=null===i||void 0===i||null===(n=i.find((function(e){return e.sessionMediaFileId===t})))||void 0===n?void 0:n.userOnDemandSessionId,c=void 0!==s?s:fe&&l&&fe.length>0?l:void 0;f&&U(Oe,e,o,f,t,P,c,m).then((function(e){e?N(P).then((function(e){var i;Fe(!1),me(e),Ja&&!a&&hi(!0),Ua&&!a&&Fi(!0);var n=e.find((function(e){return e.sessionMediaFileId===t})),o=null===n||void 0===n?void 0:n.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===v.ke.Validated||e.sessionParticipantStatusId===v.ke.Disqualified)}));n&&(null===n||void 0===n?void 0:n.verificationViewMissed)&&(null===n||void 0===n?void 0:n.verificationViewMissed)>0&&s&&s.length>0&&o===v.Id.Disqualified&&tr===zi&&r&&q(s.map((function(e){return e.sessionParticipantId||0})),P,!0).then((function(){dn()})),r&&(Ar(!1),jr(!1),Wi(0),mi(0),qt(0)),se&&se.length>1&&r?(We(!1),he(e),Se(void 0),hi(void 0),ka(!0)):se&&1===se.length&&r&&qr(!0),vt(!1)})):vt(!1)}))}))}},pn=function(e,t,i,r,a){if(P&&i&&fe){Fe(!0),it(!0);var n=null===fe||void 0===fe?void 0:fe.find((function(e){return e.sessionMediaFileId===i})),o=null===n||void 0===n?void 0:n.userOnDemandSessionId,s=null===n||void 0===n?void 0:n.viewStatus,l=null===n||void 0===n?void 0:n.viewEnd,c=null===n||void 0===n?void 0:n.verificationViewValidated,d=void 0===r?null===n||void 0===n?void 0:n.verificationViewMissed:r,u=fe&&o&&fe.length>0?o:void 0,h=!0===c?c:t===tr&&0===d;!(s===v.Id.Done||s===v.Id.Disqualified&&l&&Math.round(10*l)/1e3===Math.round(10*yr)/1e3)||c&&s!==v.Id.Done?re&&M(Oe,e,e,d,Boolean(h),t,re,i,P,u).then((function(e){e&&(qr(void 0),N(P).then((function(e){a&&qr(!1),Fi(!1),!ui&&qr(!1),he(e),ja(!0),it(!1),Fe(!1),me(e),vt(!1),dt(!0)})))})):(it(!1),!ui&&qr(!1),Fe(!1),it(!1),Fi(!1),ja(!0),dt(!0))}},vn=function(e,t,i){if(P&&be){Fe(!0),Ze(!0);var r=null===fe||void 0===fe?void 0:fe.find((function(e){return e.sessionMediaFileId===be})),a=null===r||void 0===r?void 0:r.userOnDemandSessionId,n=void 0===t?null===r||void 0===r?void 0:r.verificationCodeMissed:t,o=!!e&&(fi+1===ri&&(void 0===n||0===n));N(P).then((function(t){var r=null===t||void 0===t?void 0:t.find((function(e){return e.sessionMediaFileId===be})),s=fe&&a&&fe.length>0?a:null===r||void 0===r?void 0:r.userOnDemandSessionId;U(Oe,Er,n>0?v.Id.Disqualified:v.Id.InProgress,re,be,P,s,n,o,i,e).then((function(e){if(Fe(!1),e){var t;N(P).then((function(e){me(e),he(e),hi(!1),tn(!0),ei(0),Ze(!1),or(!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===v.Id.Disqualified&&i!==v.ke.Disqualified){var r,a=null===H||void 0===H||null===(r=H.sessionParticipant)||void 0===r?void 0:r.filter((function(e){return!e.isInstructor&&!(e.sessionParticipantStatusId===v.ke.Validated||e.sessionParticipantStatusId===v.ke.Disqualified)}));a&&q(a.map((function(e){return e.sessionParticipantId||0})),P,!0).then((function(){dn()}))}}else hi(!1),Fi(!1),tn(!0),Ze(!1),or(!1),ot(!1)}))}))}};Object(r.useEffect)((function(){(ui||Ji&&!nr)&&(!(Xt>0||Ni>0)||Qe&&tt&&Je?nt&&ct||(Qi&&Ji&&!ct&&or(!0),bi&&ui&&!nt&&li(!0)):(Xt>0&&!(tt||Qe||Je)&&setTimeout((function(){return ei(Xt-1)}),1e3),Ni>0&&!xa&&!(tt||Qe||Je)?setTimeout((function(){return ki(Ni-1)}),1e3):xa&&ki(0)))}),[ct,xa,ri,Qe,Xt,ui,bi,nt,Ni,tr,Qi,Ji,nr,tt,Je]);var fn=function(){_r(!1)};return Object(r.useEffect)((function(){var e=Ma&&Ma.current;ba||!e||Je||!Boolean(ui)&&!Boolean(Ji)||(e.play(),Sa(!0)),Boolean(ui)||Boolean(Ji)||Sa(!1)}),[Ma,ui,Ji,Je,ba]),Object(r.useEffect)((function(){k().then((function(e){ea(e)}))}),[k]),Object(r.useEffect)((function(){P&&L&&(le(void 0),A(P,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(G.b)(e)})))}),[A,P,L]),Object(r.useEffect)((function(){void 0===be&&nn?Se(nn.sessionMediaFileId):void 0===be&&void 0===nn&&se&&Se(se[0].sessionMediaFileId)}),[se,be,nn]),Object(r.useEffect)((function(){if(void 0!==be&&!pt){var e,t,i=se&&se.find((function(e){return e.sessionMediaFileId===be})),r=null===i||void 0===i||null===(e=i.sessionMediaFileVerificationCodes)||void 0===e?void 0:e.length,a=null===i||void 0===i?void 0:i.viewingVerificationDisplayLimit,n=null===i||void 0===i?void 0:i.verificationCodeEnabled,o=null===i||void 0===i?void 0:i.viewingVerificationEnabled,s=null===i||void 0===i||null===(t=i.libraryFile)||void 0===t?void 0:t.duration,l=null===i||void 0===i?void 0:i.sessionMediaFileVerificationCodes,c=null===i||void 0===i?void 0:i.verificationDisplayDuration,d=null===i||void 0===i?void 0:i.viewingVerificationDisplayDuration;if(void 0!==l&&void 0!==n&&void 0!==r&&void 0!==a&&void 0!==o&&void 0!==s&&void 0!==c&&void 0!==d){var u=sn(s/(r+1)),h=sn(s/(a+1));gr(sn(s)),Si(n),Zi(o),Kt(l),Lt(u),Rt(h),ai(r),ir(a),Lr(c),Rr(d);var p=Math.floor(Math.round(Mt)/Math.round(u))/1,v=Math.floor(Math.round(Mt)/Math.round(h))/1;_t(u*(p+1)),Gi(h*(v+1)),Na&&(mi(p),Wi(v))}}}),[Na,be,se,Mt,pt]),Object(r.useEffect)((function(){(fi>0||ua)&&_t(Dt*(fi+1)),(zi>0||ua)&&Gi(Bt*(zi+1))}),[be,Dt,Bt,zi,fi,ua]),Object(r.useEffect)((function(){K(void 0),ee(void 0),ae(void 0),P&&L&&D(P,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);ae(i),K(e),ee(e),void 0===i&&(Ka(!0),J([L],P,!1,!1).then((function(){D(P,L).then((function(e){var t,i=e.sessionParticipant&&(null===(t=e.sessionParticipant)||void 0===t?void 0:t.filter((function(e){return!e.isInstructor}))[0].sessionParticipantId);K(e),ee(e),ae(i),Ka(!1)}))})))})).catch((function(e){Object(G.b)(e)}))}),[D,P,L,J]),Object(r.useEffect)((function(){vt(!0),N(P).then((function(e){vt(!1),he(e||[]),me(e||[])}))}),[N,P]),Object(r.useEffect)((function(){void 0!==be&&(vt(!0),N(P).then((function(e){var t,i=e.filter((function(e){return e.viewStatus===v.Id.InProgress&&e.sessionMediaFileId===be}))[0]&&e.filter((function(e){return e.viewStatus===v.Id.InProgress&&e.sessionMediaFileId===be}))[0];i&&i.verificationViewMissed&&vr(i.verificationViewMissed),i&&i.verificationViewCount&&$i(i.verificationViewCount),i&&i.verificationCodeMissed&&Ti(i.verificationCodeMissed);var r=e.filter((function(e){return e.sessionMediaFileId===be}))[0]&&e.filter((function(e){return e.sessionMediaFileId===be}))[0].viewStatus;ma(r),void 0===i||i&&void 0!==i.viewEnd&&i.viewEnd<1?aa(!1):aa(!0),qt(void 0===i||void 0===i.viewEnd?0:i.viewEnd);var a=null===e||void 0===e?void 0:e.find((function(e){return e.sessionMediaFileId===be})),n=null===a||void 0===a?void 0:a.verificationViewMissed,o=null===a||void 0===a?void 0:a.verificationCodeMissed;vr(null!==n&&void 0!==n?n:0),$i(null!==(t=null===a||void 0===a?void 0:a.verificationViewCount)&&void 0!==t?t:0),Ti(null!==o&&void 0!==o?o:0),ua&&(he(e),me(e),hi(void 0),Fi(void 0),ot(!1)),vt(!1)})))}),[N,be,ua,P]),Object(r.useEffect)((function(){if(fe){var e=null===fe||void 0===fe?void 0:fe.filter((function(e){return e.sessionMediaFileId===be}));Ci(!!(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===v.ke.Disqualified}));if(fe&&t&&t.length>0&&Xr&&(null===Xr||void 0===Xr?void 0:Xr.enableMakeupDisqualifiedVideo)){var i=(fe&&fe.filter((function(e){return e.viewStatus===v.Id.Disqualified}))).map((function(e){return e.userOnDemandSessionId||0}));Kr(i),We(!1),_r(!0)}}),[X,fe,Xr]),Object(r.useEffect)((function(){var e,t=se&&se.map((function(e){return e.sessionMediaFileId})),i=fe&&fe.filter((function(e){return e.viewStatus===v.Id.Done})),r=i&&i.map((function(e){return e.sessionMediaFileId})),a=null===H||void 0===H||null===(e=H.sessionParticipant)||void 0===e?void 0:e.filter((function(e){return!e.isInstructor&&!(e.sessionParticipantStatusId===v.ke.Validated||e.sessionParticipantStatusId===v.ke.Disqualified)}));t&&i&&Object(x.isEmpty)(Object(x.xor)(t,r))&&a&&a.length>0&&!Ye&&(qr(!0),gt(!0),un(a),It(!0))}),[se,fe,H,P,un,L,Ye]),a.a.createElement(a.a.Fragment,null,a.a.createElement("audio",{ref:Ma,controls:!0,hidden:!0},a.a.createElement("source",{src:"/video/ding.wav",type:"audio/wav"})),a.a.createElement(h.Grid,{container:!0},void 0===H||Ha?a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.Box,{className:z.loadingState},a.a.createElement(h.CircularProgress,null))):se&&se.length>0?a.a.createElement(a.a.Fragment,null,se.length>0&&a.a.createElement(h.Grid,{item:!0,xs:12,sm:12,md:V?12:4,lg:V?12:3,hidden:V},a.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,n;return a.a.createElement(a.a.Fragment,{key:"video-file-".concat(se[t].sessionMediaFileId)},t>0&&a.a.createElement(h.ListItem,null,a.a.createElement(h.Divider,{light:!0,classes:{light:z.videoDivider}})),a.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),vt(!0),qr(void 0),ha(!0),ka(!0))}},a.a.createElement(h.Wrap,{flex:1},a.a.createElement(h.Expanded,null,a.a.createElement(h.ListItemText,null,null===(i=e.libraryFile)||void 0===i?void 0:i.title)),a.a.createElement(h.Row,{mainAxisAlignment:"end",crossAxisAlignment:"middle",flex:0},a.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===v.Id.Done&&a.a.createElement(h.ListItemIcon,null,a.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===v.Id.InProgress&&a.a.createElement(h.ListItemIcon,null,a.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===v.Id.Disqualified&&a.a.createElement(h.ListItemIcon,null,a.a.createElement(h.SystemIcon,{icon:"Error",size:"sm",color:"error"}))),a.a.createElement(h.Expanded,{flex:0},(null===(r=e.libraryFile)||void 0===r?void 0:r.duration)&&new Date(1e3*sn(null===(n=e.libraryFile)||void 0===n?void 0:n.duration)).toISOString().substr(11,8))))))})))),a.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},a.a.createElement(a.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]&&!pt?a.a.createElement(h.Box,{className:z.videoContainer},a.a.createElement(h.Box,null,a.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===(n=i.find((function(e){return e.libraryFileSettingType===v.Ad.EnableCustomVideoSetting})))||void 0===n?void 0:n.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===v.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===(p=u.find((function(e){return e.libraryFileSettingType===v.Ad.EnableCustomVideoSetting})))||void 0===p?void 0:p.valueBit)&&!(null===Xr||void 0===Xr?void 0:Xr.enableSeekBar),startTime:Math.round(10*Mt)/10===Math.round(10*yr)/10||sa?0:Mt,paused:Mr,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!==v.Id.Done&&ue.filter((function(e){return e.sessionMediaFileId===se.filter((function(e){return e.sessionMediaFileId===be}))[0].sessionMediaFileId}))[0].viewStatus!==v.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;Ir(r),Ce(r),ke(we),Te(Math.round(r));var a=null===H||void 0===H||null===(i=H.sessionParticipant)||void 0===i?void 0:i.filter((function(e){return!e.isInstructor}));if(a&&a.length>0){var n=a.filter((function(e){return!(e.sessionParticipantStatusId===v.ke.InProgress||e.sessionParticipantStatusId===v.ke.Validated||e.sessionParticipantStatusId===v.ke.Disqualified)}));!Je&&n.length>0&&(Fe(!0),R(a.map((function(e){return e.sessionParticipantId||0})),v.ke.InProgress,!1,P,!1).then((function(){L&&D(P,L).then((function(e){K(e),r>5&&hn(r,t,re,!1)}))})),Fe(!1))}else!Je&&L&&P&&!Ue&&a&&0===a.length&&(Ge(!0),J([L],P,!1,!1).then((function(){D(P,L).then((function(e){var i=e.sessionParticipant;K(e);var a=i&&(null===i||void 0===i?void 0:i.filter((function(e){return!e.isInstructor}))[0].sessionParticipantId);ae(a),i&&(null===i||void 0===i?void 0:i.filter((function(e){return!e.isInstructor})).length)>0&&(Fe(!0),R([a||0],v.ke.InProgress,!1,P,!1).then((function(){L&&D(P,L).then((function(e){K(e),r>5&&hn(r,t,a,!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;Ir(i),ke(we),Te(Math.round(i)),dr(i);var r=Vt&&Math.round(Vt-Dt),a=Ui&&Math.round(Ui-Bt),n=Math.round(i),o=i;r!==n&&a!==n||(o-=2),(Je||Math.round(10*i)/10===Math.round(10*yr)/10||Ji&&ui||Math.round(yr)===Math.round(Math.round(i)))&&!Ja&&!Ua||hn(o,t)}(e,se.filter((function(e){return e.sessionMediaFileId===be}))[0].sessionMediaFileId)},onEnded:function(e){!function(e,t){var i=e.currentTarget.duration;Ir(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!==v.Id.Done&&hn(i,t,re,!0)}(e,se.filter((function(e){return e.sessionMediaFileId===be}))[0].sessionMediaFileId)},onTimeUpdate:function(e){!function(e,t){ka(!1);var i=e.currentTarget.currentTime;Ir(i),ke(we),Te(Math.round(i));var r=Vt&&Math.round(Vt),a=Ui&&Math.round(Ui),n=Math.round(i),o=Ne!==we&&r&&!ui&&r===n&&fi15)||o||s||hn(i,t),o){if(!xr){if(void 0!==fi&&Ht){var l,c=null===(l=Ht.find((function(e){return e.sequence===fi+1})))||void 0===l?void 0:l.verificationCode;_a({initialValues:{validationCode:"",currentCode:c},validationSchema:Object(Ta.object)().shape({validationCode:Object(Ta.string)()}),onSubmit:function(e){vn(!0,void 0,e.validationCode)}})}ei(Dr),Fa(!0),li(!1),qr(!0),ot(!1)}_t(Vt+Dt)}else xr&&Ar(!1);s?(Pr||(ja(!1),ki(Br),Ga(!0),or(!1),qr(!0),dt(!1)),Gi(Ui+Bt)):Pr&&jr(!1)}(e,se.filter((function(e){return e.sessionMediaFileId===be}))[0].sessionMediaFileId)},duration:yr,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===v.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===v.Ad.EnableRewind})))||void 0===E?void 0:E.valueBit):!(null===Xr||void 0===Xr?void 0:Xr.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===v.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===(T=w.find((function(e){return e.libraryFileSettingType===v.Ad.EnableFastForward})))||void 0===T?void 0:T.valueBit):!(null===Xr||void 0===Xr?void 0:Xr.enableFastForward))})),ra&&Mt>=1&&a.a.createElement(h.Box,{className:z.videoMessage},a.a.createElement(h.Card,null,a.a.createElement(h.CardContent,null,a.a.createElement(h.Box,{textAlign:"center",mb:2},a.a.createElement(h.IconButton,{onClick:function(){null!==(null===on||void 0===on?void 0:on.current)&&void 0!==(null===on||void 0===on?void 0:on.current)&&ln(on.current.innerText.includes("Start from the beginning"))}},a.a.createElement(h.SystemIcon,{icon:"Play",size:"xl",color:"primary",type:"duotone"}))),a.a.createElement(h.Typography,null,"You previously listened to / viewed this segment through",a.a.createElement("b",null," ".concat(new Date(1e3*Mt).toISOString().substr(11,8))))),a.a.createElement(h.CardActions,null,a.a.createElement(h.Box,{m:1},a.a.createElement("div",{ref:on},a.a.createElement(h.SplitButton,{variant:"contained",color:"primary",options:cn}))))))):a.a.createElement(h.Box,{className:z.loadingState},a.a.createElement(h.CircularProgress,null)):a.a.createElement(h.Box,{height:"190px",display:"flex",justifyContent:"center",alignItems:"center"},a.a.createElement(h.Alert,{variant:"standard",type:"warning"},"You do not have sufficient permission to view this file."))))):a.a.createElement(h.Box,{height:"190px",display:"flex",justifyContent:"center",alignItems:"center"},a.a.createElement(h.CircularProgress,null))),Pt&&a.a.createElement(To,{open:xt,sessionEvaluationId:Pt,onClose:function(){jt(!1)}}),a.a.createElement(Oa.a,{maxWidth:"md",open:Et},a.a.createElement(Ia.DialogBody,null,a.a.createElement(h.Box,{px:2,pt:2},a.a.createElement(h.Box,{display:"flex",justifyContent:"center",alignItems:"center"},yt?a.a.createElement(h.CircularProgress,{color:"primary",variant:"indeterminate"}):a.a.createElement(h.SystemIcon,{icon:"Success",size:"xl",color:"success",type:"duotone"})),a.a.createElement(h.Box,{py:2,textAlign:"center"},a.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular",color:yt?"primary":"success"},yt?"Validating...":"You successfully completed this course."))),!yt&&a.a.createElement(h.Grid,{container:!0,spacing:"form"},qa&&a.a.createElement(h.Grid,{item:!0,xs:12,sm:6},a.a.createElement(h.Button,{variant:"text",size:"small",color:"primary",fullWidth:!0,style:{whiteSpace:"nowrap"},onClick:function(){jt(!0)}},"Complete Evaluation")),a.a.createElement(h.Grid,{item:!0,xs:12,sm:qa?6:12},a.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"))))),a.a.createElement(Oa.a,{maxWidth:"xs",open:Boolean(ui)||Boolean(Ji)},a.a.createElement(Ia.DialogBody,null,a.a.createElement(h.Box,{mb:2,textAlign:"center"},a.a.createElement(h.SystemIcon,{icon:"Error",color:"warning",size:"lg"})),Qi&&Ni>0&&!nr&&Boolean(Ji)&&a.a.createElement(h.Box,{mb:3},a.a.createElement(h.Column,null,a.a.createElement(h.Box,null,a.a.createElement(h.Box,{className:z.verificationContainer},a.a.createElement(h.Box,{textAlign:"center"},a.a.createElement(h.Typography,{variant:"subtitle1",className:z.verificationMessage},a.a.createElement("b",null,"Please click the button below to confirm that you are viewing this video."))),a.a.createElement(h.Box,{maxWidth:179,textAlign:"center",margin:"0 auto"},!Je||tt||Qe?a.a.createElement(h.Typography,{className:z.verificationCountDown,variant:"overline"},new Date(1e3*Ni).toISOString().substr(14,5)):a.a.createElement(h.Skeleton,{width:"100%"})),a.a.createElement(h.Box,{textAlign:"center",mt:3.5},a.a.createElement(h.Button,{color:"secondary",variant:"contained",className:z.verififcationButton,disabled:tt||Qe||Je,loading:tt,onClick:function(){Ze(!1),Wi(zi+1),$i(Yi+1),jr(!1),Ga(!1),pn(cr,Yi+1,be,pr)}},"Verify Viewing")))))),(bi&&si&&Boolean(ui)||Qi&&nr&&Boolean(Ji))&&a.a.createElement(h.Box,null,a.a.createElement(h.Column,null,a.a.createElement(h.Box,{mb:2},a.a.createElement(h.Box,{className:z.verificationContainer},a.a.createElement(h.Box,{textAlign:"center"},a.a.createElement(h.Typography,{variant:"caption"},"You have missed a validation.")),a.a.createElement(h.Box,{textAlign:"center"},a.a.createElement(h.Typography,null,a.a.createElement(h.Link,{className:z.verififcationButton,onClick:function(){Fa(!1),Ga(!1),vt(!0),la(!1),ra||We(!0),si&&Boolean(ui)&&(Math.round(cr)-Math.floor(Dt)+1>0?qt(Math.round(cr)-Math.floor(Dt)):qt(0),Ar(!0),_t(Vt-Dt),hi(!1),qr(void 0),hn(cr,be,void 0,!1,!0)),nr&&Boolean(Ji)&&(Math.round(cr)-Math.floor(Bt)+1>0?qt(Math.round(cr)-Math.floor(Bt)):qt(0),jr(!0),Gi(Ui-Bt),Fi(!1),pn(cr,Yi,be))}},"Re-listen / Re-watch from my last validation")),a.a.createElement(h.Typography,null,"or"),a.a.createElement(h.Typography,null,a.a.createElement(h.Link,{className:z.verififcationButton,onClick:function(){Fa(!1),Ga(!1),si&&ui&&(qt(Math.round(cr)),hi(!1),mi(fi+1),ot(!0),Ar(!1),Ti(wi+1),vn(!1,wi+1)),nr&&Ji&&(qt(Math.round(cr)),Fi(!1),Wi(zi+1),vr(pr+1),jr(!1),dt(!0),pn(cr,Yi,be,pr+1,!0))}},"Continue listening / watching"))),a.a.createElement(h.Box,{textAlign:"center"},a.a.createElement(h.Typography,{variant:"caption"},"Credit will not be awarded. You must contact your Coordinator when the audio/video is complete.")))))),bi&&Xt>0&&Boolean(ui)&&a.a.createElement(h.Box,null,a.a.createElement(h.Column,{crossAxisAlignment:"center",mainAxisAlignment:"middle",flex:1},a.a.createElement(wa.Formik,{initialValues:Va.initialValues,onSubmit:Va.onSubmit,enableReinitialize:!0},(function(e){return a.a.createElement(h.Form,{id:"verification-code-field"},a.a.createElement(h.Box,{className:z.verificationContainer},a.a.createElement(h.Box,{textAlign:"center"},a.a.createElement(h.Typography,{variant:"subtitle2",weight:"bold",className:z.verificationMessage},a.a.createElement("b",null,"Please enter the code below and click the validation button for verification."))),a.a.createElement(h.Box,{maxWidth:179,textAlign:"center",margin:"0 auto",mb:1.5},!Je||tt||Qe?a.a.createElement(h.Typography,{className:z.verificationCountDown,variant:"body1"},new Date(1e3*Xt).toISOString().substr(14,5)):a.a.createElement(h.Skeleton,{width:"100%"})),a.a.createElement(h.Box,{textAlign:"center",margin:"0 auto"},a.a.createElement(h.Typography,{variant:"subtitle1",weight:"bold",className:z.verificationMessage},e.getFieldProps("currentCode").value)),a.a.createElement(h.Box,{mt:2},a.a.createElement(h.Column,{crossAxisAlignment:"center",mainAxisAlignment:"middle"},a.a.createElement(h.Box,{mb:1},a.a.createElement(h.TextField,{placeholder:"Enter the code",id:"validationCode",dense:!0})),a.a.createElement(h.Box,null,a.a.createElement(h.Button,{className:z.validateButton,onClick:function(){qt(Math.round(cr)),mi(fi+1),Ar(!1),ot(!0),Fa(!1)},type:"submit",color:"secondary",variant:"contained",disabled:Qe||tt||Je||e.getFieldProps("validationCode").value!==e.getFieldProps("currentCode").value,loading:e.isSubmitting},"Validate"))))))})))))),a.a.createElement(Oa.a,{open:Vr,maxWidth:"sm",fullWidth:!0},a.a.createElement(Ia.DialogHeader,{colorMode:"light",titleBar:{title:"On-Demand Session",onClose:fn}}),a.a.createElement(Ia.DialogBody,null,"You've been disqualified on this session. Do you want to retake this session?"),a.a.createElement(Ia.DialogFooter,null,a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:4}),a.a.createElement(h.Grid,{item:!0,xs:2},a.a.createElement(h.Button,{color:"default",fullWidth:!0,variant:"outlined",type:"reset",onClick:function(){fn()}},"Cancel")),a.a.createElement(h.Grid,{item:!0,xs:2},a.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})),v.ke.InProgress,!1,P,!1).then((function(){fn(),vt(!0),L&&D(P,L).then((function(e){F(Hr).then((function(){L&&A(P,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(P).then((function(e){me(e),he(e),le(i),Se(void 0),vt(!1)}))})).catch((function(e){vt(!1),Object(G.b)(e)}))})),ee(e),K(e)}))}))}()}},"Yes")),a.a.createElement(h.Grid,{item:!0,xs:4})))))})),Mo=Object(z.makeStyles)((function(e){var t,i,r=e.spacing,a=(e.palette,e.breakpoints);return Object(z.createStyles)({mediaRow:{marginBottom:r(3),background:"#000000"},launchButton:(t={borderRadius:r(6.25)},Object(kn.a)(t,a.up("xs"),{width:r(21.5),height:r(6.5)}),Object(kn.a)(t,a.up("sm"),{width:r(31.5),height:r(7.5)}),Object(kn.a)(t,a.up("md"),{width:r(32.25),height:r(10.625)}),Object(kn.a)(t,a.up("lg"),{width:r(39.75),height:r(12.25)}),t),h5Label:(i={},Object(kn.a)(i,a.down("md"),{fontSize:r(2.75)}),Object(kn.a)(i,a.down("sm"),{fontSize:r(2.5)}),Object(kn.a)(i,a.down("xs"),{fontSize:r(2)}),i)})})),qo=jo(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(rr(t))},getCourse:function(t){return e((i=t,function(e){return e({type:"SET_LOADING",payload:!0}),U.n.getCourseWithCategories(i,void 0).then((function(e){return e})).catch((function(t){throw e(Object(G.b)(t)),t}))}));var i},getSession:function(t,i){return e(Ao(t,i))},saveSessionEvaluation:function(t){return e(Lo(t))},errorNotification:function(t){return e(Object(G.b)(t))},setRedirectUrl:function(t){return e(Object(O.g)(t))}}}))(Object(an.a)((function(e){var t,i,n,o,s,l,u,p,f,m,y,g,b,S,E,I,O,C=e.downloadFile,x=e.getCourse,j=e.getSession,w=e.history,T=e.userId,P=e.userType,A=e.setRedirectUrl,D=Object(Co.useVideoPlayerContext)().fullScreen,L=new URLSearchParams(Object(d.l)().search).get("sessionId"),J=null!==L?+L:void 0,F=Mo(),B=(null!==(t=w.location.state)&&void 0!==t?t:{}).prevPath,R=Object(r.useState)(),U=Object(c.a)(R,2),M=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===M||void 0===M||null===(i=M.courseCompetency)||void 0===i?void 0:i.map((function(e){return e.name})),ae=null===M||void 0===M||null===(n=M.courseDepartment)||void 0===n?void 0:n.map((function(e){return e.name})),ne=null===M||void 0===M||null===(o=M.coursePracticeArea)||void 0===o?void 0:o.map((function(e){return e.name})),oe=null===M||void 0===M||null===(s=M.courseLevel)||void 0===s?void 0:s.map((function(e){return e.name})),se=null===M||void 0===M||null===(l=M.courseClassYear)||void 0===l?void 0:l.map((function(e){return e.name})),le=null===M||void 0===M||null===(u=M.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(G.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&&T&&j(J,T).then((function(e){_(e),ee(!1)})).catch((function(e){ee(!1),Object(G.b)(e)}))}),[j,J,T]);var de;return a.a.createElement(Oo.a,{viewMode:"immersive",appBarDisplay:{hideAppBar:D,disablePadding:D},modular:!0,onBackRedirectUrl:null!==ie&&void 0!==ie?ie:"/course-catalog"},a.a.createElement(Io.ScreenBody,{maxWidth:!1,disableGutters:!0},a.a.createElement("div",{className:Object(ro.default)(Object(kn.a)({},F.mediaRow,!D))},X?a.a.createElement(h.Box,{height:"190px",display:"flex",justifyContent:"center",alignItems:"center"},a.a.createElement(h.CircularProgress,null)):a.a.createElement(a.a.Fragment,null,2!==P||(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)?a.a.createElement(h.Grid,{container:!0},a.a.createElement(h.Grid,{item:!0,xs:1,sm:2,md:4},a.a.createElement(h.Box,{height:160})),a.a.createElement(h.Grid,{item:!0,xs:10,sm:8,md:4,alignment:"center"},a.a.createElement(h.Alert,{variant:"standard",type:"warning"},"The registration has been closed.")),a.a.createElement(h.Grid,{item:!0,xs:1,sm:2,md:4},a.a.createElement(h.Box,{height:160}))):J&&(null===V||void 0===V?void 0:V.mediaTypeId)===v.Gd.LearningPackage&&V.scormCourseId&&V.sessionMediaFiles&&(null===(p=V.sessionMediaFiles)||void 0===p?void 0:p.length)>0?a.a.createElement(Ro,{sessionId:J}):J&&((null===V||void 0===V?void 0:V.mediaTypeId)===v.Gd.Audio||(null===V||void 0===V?void 0:V.mediaTypeId)===v.Gd.Video)&&V.sessionMediaFiles&&(null===(f=V.sessionMediaFiles)||void 0===f?void 0:f.length)>0?a.a.createElement(Go,{sessionId:J}):a.a.createElement(a.a.Fragment,null,(null===V||void 0===V?void 0:V.mediaTypeId)===v.Gd.Url&&""!==(null===V||void 0===V?void 0:V.launchUrl)?a.a.createElement(h.Grid,{container:!0},a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.Box,{m:3,textAlign:"center"},a.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},a.a.createElement(h.Typography,{variant:"h3",className:F.h5Label},"View Course"))))):a.a.createElement(h.Grid,{container:!0},a.a.createElement(h.Grid,{item:!0,xs:1,sm:2,md:4},a.a.createElement(h.Box,{height:160})),a.a.createElement(h.Grid,{item:!0,xs:10,sm:8,md:4,alignment:"center"},a.a.createElement(h.Alert,{variant:"standard",type:"warning"},"No"," ",(null===V||void 0===V?void 0:V.mediaTypeId)===v.Gd.Audio||(null===V||void 0===V?void 0:V.mediaTypeId)===v.Gd.Video?"media file":"learning package"," ","available for this session.")),a.a.createElement(h.Grid,{item:!0,xs:1,sm:2,md:4},a.a.createElement(h.Box,{height:160})))):a.a.createElement(h.Grid,{container:!0},a.a.createElement(h.Grid,{item:!0,xs:1,sm:2,md:4},a.a.createElement(h.Box,{height:160})),a.a.createElement(h.Grid,{item:!0,xs:10,sm:8,md:4,alignment:"center"},a.a.createElement(h.Alert,{variant:"standard",type:"warning"},"The session is not open for clients.")),a.a.createElement(h.Grid,{item:!0,xs:1,sm:2,md:4},a.a.createElement(h.Box,{height:160}))))),(2!==P||2===P&&(null===V||void 0===V?void 0:V.isOpenToClient))&&a.a.createElement(h.Box,{hidden:D},a.a.createElement(h.Tabs,{key:"tabs",components:[{label:"Overview",render:a.a.createElement(h.Container,{maxWidth:"lg"},a.a.createElement(h.Grid,{container:!0,spacing:"card"},a.a.createElement(h.Grid,{item:!0,xs:12,md:12},a.a.createElement(h.Column,{crossAxisAlignment:"stretch",flex:1,size:"max"},((null===M||void 0===M?void 0:M.description)||re||ae||ne||se||oe||le)&&a.a.createElement(h.Expanded,{flex:1},a.a.createElement(h.Card,null,a.a.createElement(h.CardHeader,{subheader:null!==(m=null===M||void 0===M?void 0:M.providerName)&&void 0!==m?m:"",title:a.a.createElement(h.Typography,{variant:"h5"},null===M||void 0===M?void 0:M.title,""!==(null===V||void 0===V?void 0:V.title)&&(null===M||void 0===M?void 0:M.title)!==(null===V||void 0===V?void 0:V.title)?": ".concat(null===V||void 0===V?void 0:V.title):"")}),a.a.createElement(h.CardContent,{noTopPadding:!0},H?a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Skeleton,{variant:"text",width:"".concat(Math.floor(Math.random()*Math.floor(100)),"%")}),a.a.createElement(h.Skeleton,{variant:"text",width:"".concat(Math.floor(Math.random()*Math.floor(100)),"%")}),a.a.createElement("br",null),a.a.createElement(h.Skeleton,{variant:"text",width:"".concat(Math.floor(Math.random()*Math.floor(100)),"%")}),a.a.createElement(h.Skeleton,{variant:"text",width:"".concat(Math.floor(Math.random()*Math.floor(100)),"%")}),a.a.createElement(h.Skeleton,{variant:"text",width:"".concat(Math.floor(Math.random()*Math.floor(100)),"%")})):a.a.createElement(h.Grid,{container:!0,spacing:"form"},(null===M||void 0===M?void 0:M.description)&&a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.Typography,{variant:"body1"},a.a.createElement(h.TextEditorView,{model:Object(k.a)(null===M||void 0===M?void 0:M.description)}))),(null===V||void 0===V?void 0:V.detail)&&a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.Divider,null),a.a.createElement(h.Typography,{variant:"body1"},a.a.createElement(h.TextEditorView,{model:Object(k.a)(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)&&a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.Column,null,a.a.createElement(h.Row,null,a.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 a.a.createElement(h.Row,{key:e.userId},a.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)),a.a.createElement(h.Column,{mainAxisAlignment:"middle"},a.a.createElement(h.Box,{m:1.5},a.a.createElement(h.Typography,{color:"default",variant:"body1",weight:"bold"},"".concat(e.fullName)),a.a.createElement(h.Typography,{color:"default",variant:"caption"},"Instructor"))))})))),0!==(null===re||void 0===re?void 0:re.length)&&a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Grid,{item:!0,xs:6,sm:5,md:4,lg:3,xl:2},a.a.createElement(h.Typography,{variant:"body1",weight:"semi-bold"},"Competencies")),a.a.createElement(h.Grid,{item:!0,xs:6,sm:7,md:8,lg:9,xl:10},a.a.createElement(h.Typography,{variant:"body1"},null===re||void 0===re?void 0:re.join(", ")))),0!==(null===ae||void 0===ae?void 0:ae.length)&&a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Grid,{item:!0,xs:6,sm:5,md:4,lg:3,xl:2},a.a.createElement(h.Typography,{variant:"body1",weight:"semi-bold"},"Departments")),a.a.createElement(h.Grid,{item:!0,xs:6,sm:7,md:8,lg:9,xl:10},a.a.createElement(h.Typography,{variant:"body1"},null===ae||void 0===ae?void 0:ae.join(", ")))),0!==(null===ne||void 0===ne?void 0:ne.length)&&a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Grid,{item:!0,xs:6,sm:5,md:4,lg:3,xl:2},a.a.createElement(h.Typography,{variant:"body1",weight:"semi-bold"},"Practice Areas")),a.a.createElement(h.Grid,{item:!0,xs:6,sm:7,md:8,lg:9,xl:10},a.a.createElement(h.Typography,{variant:"body1"},null===ne||void 0===ne?void 0:ne.join(", ")))),0!==(null===oe||void 0===oe?void 0:oe.length)&&a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Grid,{item:!0,xs:6,sm:5,md:4,lg:3,xl:2},a.a.createElement(h.Typography,{variant:"body1",weight:"semi-bold"},"Levels")),a.a.createElement(h.Grid,{item:!0,xs:6,sm:7,md:8,lg:9,xl:10},a.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)&&a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Grid,{item:!0,xs:6,sm:5,md:4,lg:3,xl:2},a.a.createElement(h.Typography,{variant:"body1",weight:"semi-bold"},"Class Year")),a.a.createElement(h.Grid,{item:!0,xs:6,sm:7,md:8,lg:9,xl:10},a.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)&&a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Grid,{item:!0,xs:6,sm:5,md:4,lg:3,xl:2},a.a.createElement(h.Typography,{variant:"body1",weight:"semi-bold"},"Tags")),a.a.createElement(h.Grid,{item:!0,xs:6,sm:7,md:8,lg:9,xl:10},a.a.createElement(h.Wrap,{direction:"horizontal",runSpacing:2,spacing:2},null===le||void 0===le?void 0:le.map((function(e){return a.a.createElement(h.Expanded,{key:e,flex:0},a.a.createElement(h.Chip,{variant:"box",label:null!==e&&void 0!==e?e:"",size:"small"}))})))))))))))))},{label:"Materials",render:a.a.createElement(h.Container,{maxWidth:"lg"},a.a.createElement(h.Card,null,a.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)?a.a.createElement(h.CardContent,{noTopPadding:!0},a.a.createElement(h.Alert,{type:"info",variant:"standard"},"No materials associated to this course.")):a.a.createElement(h.CardContent,{noTopPadding:!0},(de=null===V||void 0===V?void 0:V.sessionMaterials,de?a.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 a.a.createElement(h.Grid,{item:!0,xs:12,sm:6,md:4,lg:4,key:e.sessionMaterialId},a.a.createElement(h.Link,{onClick:function(){return C("".concat(e.fileId||0))}},a.a.createElement(h.Box,{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",border:"1px solid #F1F1F1",p:1},a.a.createElement(h.Box,{m:1},a.a.createElement(cn,{fileExtension:null!==(t=null===(i=e.libraryFile)||void 0===i?void 0:i.extension)&&void 0!==t?t:"",color:"primary",type:"duotone",size:"lg"})),a.a.createElement(h.Box,null,a.a.createElement(On,{title:(null===(r=e.libraryFile)||void 0===r?void 0:r.title)||""})))))}))):null))))},{label:"Credits",render:a.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)?a.a.createElement(h.Card,null,a.a.createElement(h.CardHeader,{title:"Credits"}),a.a.createElement(h.CardContent,{noTopPadding:!0},a.a.createElement(h.Alert,{type:"info",variant:"standard"},"No credits associated to this course."))):a.a.createElement(h.Grid,{item:!0,xs:12,md:12},a.a.createElement(h.Column,{crossAxisAlignment:"stretch",flex:1,size:"max"},a.a.createElement(h.Expanded,{mb:3,flex:1},a.a.createElement(h.Card,null,a.a.createElement(h.CardHeader,{title:"Credits"}),a.a.createElement(h.CardContent,{noTopPadding:!0},X?a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Skeleton,{variant:"text",width:"".concat(Math.floor(Math.random()*Math.floor(100)),"%")}),a.a.createElement(h.Skeleton,{variant:"text",width:"".concat(Math.floor(Math.random()*Math.floor(100)),"%")}),a.a.createElement(h.Skeleton,{variant:"text",width:"".concat(Math.floor(Math.random()*Math.floor(100)),"%")})):V&&a.a.createElement(wo,{session:V})))))))}],centered:!0}))))})))),zo=function(){return a.a.createElement("div",null)},Wo=function(){return a.a.createElement(h.Box,{ml:1,mr:1,height:"100vh",display:"flex",justifyContent:"center",alignItems:"center"},a.a.createElement(h.Box,null,a.a.createElement(h.Alert,{variant:"standard",type:"info"},a.a.createElement(h.Typography,{variant:"body1"},"You may now close this window."))))},Vo=(i(521),i(255)),_o=function(e){return{type:Vo.a,payload:e}},Yo=function(e){return{type:Vo.b,payload:e}},$o=_o,Ho=function(e){return function(t){var i=U.r.getAllByLicense(void 0,new v.Fc(e));return t($o(null)),i.then((function(e){return e})).catch((function(e){t(Object(Aa.b)(e))}))}},Ko=function(e){var t=new v.yc({page:1,pageSize:-1,userId:e});return function(e){return U.s.getAllUserUkLicenses(void 0,v.yc.fromJS(t)).then((function(e){return e})).catch((function(t){return e(Object(Aa.b)(t)),null}))}},Qo=function(e){return function(t){return U.s.getAllDevelopmentRecords(void 0,v.fc.fromJS(e)).then((function(e){return e})).catch((function(e){return t(Object(Aa.b)(e)),null}))}},Zo=function(e){return function(t){return U.q.get(void 0,v.Ec.fromJS(e)).then((function(e){return e})).catch((function(e){t(Object(Aa.b)(e))}))}},Xo=function(e){var t=e.maxWidth,i=e.message,r=e.open,n=e.title,o=e.onCancel,s=e.onClose,l=e.OnConfirm;return a.a.createElement(Oa.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},a.a.createElement(Ia.DialogHeader,{id:"confirmation-dialog-title",colorMode:"light",titleBar:{title:n}}),a.a.createElement(Ia.DialogBody,{maxWidth:!1},i),a.a.createElement(Ia.DialogFooter,null,a.a.createElement(h.Button,{onClick:function(){return o()},color:"default",variant:"outlined",fullWidth:!0},"No"),a.a.createElement(h.Button,{onClick:function(){return l()},color:"primary",variant:"contained",autoFocus:!0,fullWidth:!0},"Yes")))},es=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?U.r.update(void 0,v.Ae.fromJS(e)):U.r.create(void 0,v.T.fromJS(e));return i($o(null)),r.then((function(e){return i(Object(Aa.a)({message:"Development plan".concat(e>1?"s were":" was"," successfully ").concat(t?"updated":"saved","."),variant:"success"})),e})).catch((function(e){return i(Object(Aa.b)(e)),new Array}))}}(t,i))}}}))((function(e){var t,i=e.close,n=e.showConfirm,o=e.userId,s=e.addDevelopmentPlans,l=e.setShowConfirm,d=e.setDirty,u=e.setClose,p=fs(),v=p.devPlans,f=p.frameworkId,m=p.setDevPlans,y=p.setSaving,g=p.setScreen,b=p.onClose,S=p.periodFrom,E=p.periodTo,I=p.isEditMode,O=Object(r.useState)(!1),C=Object(c.a)(O,2),x=C[0],j=C[1],w=Object(r.useState)(),T=Object(c.a)(w,2),P=T[0],A=T[1],k={devPlans:function(e){var t;return{devPlanState:null===(t=e.devPlanState)||void 0===t?void 0:t.map((function(e){return Object(D.a)(Object(D.a)({},e),{},{developmentPlans:e.developmentPlans.map((function(e){return Object(D.a)(Object(D.a)({},e),{},{status:e.isCustomNeed?e.developmentPlanId?e.status:3:e.hasPreviousValues?e.status:3})}))})}))}}(v),validationSchema:Object(Ta.object)().shape({devPlanState:Object(Ta.array)().nullable().of(Object(Ta.object)().shape({categoryName:Object(Ta.string)().nullable(),developmentPlans:Object(Ta.array)().nullable().of(Object(Ta.object)().shape({category:Object(Ta.string)().nullable().trim(),customNeed:Object(Ta.string)().nullable().trim(),plan:Object(Ta.string)().trim().nullable(),achieve:Object(Ta.string)().trim().nullable(),isIncluded:Object(Ta.boolean)(),targetCompletionDate:Object(Ta.date)().nullable().when("isIncluded",{is:!0,then:Object(Ta.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(Ta.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,a,n;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!==(a=e.developmentPlanSubCategoryId)&&void 0!==a?a:0)?null:e.developmentPlanSubCategoryId,achieve:e.achieve,startDate:Object(N.e)(S),endDate:Object(N.e)(E),targetCompletionDate:0===(null!==(n=e.targetCompletionDate)&&void 0!==n?n: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(){n&&!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 a.a.createElement(h.Grid,{container:!0,spacing:"form"},I&&a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.ToggleButtonGroup,{formikContext:!1,exclusive:!0,size:"small",color:"primary",options:[{label:"In Progress",value:1},{label:"Complete",value:2},{label:"Not Started",value:3}],value:P,onChange:function(e,t){return function(e){j(!0),A(e),j(!1)}(t)}})),a.a.createElement(h.Grid,{item:!0,xs:12},x?a.a.createElement(Ln,{type:"filter-drawer"}):0===(null===v||void 0===v||null===(t=v.devPlanState)||void 0===t?void 0:t.length)?a.a.createElement(h.Grid,{item:!0,xs:12,sm:12,lg:12},a.a.createElement(h.Box,{maxWidth:"300px",margin:"0 auto"},a.a.createElement(h.Alert,{variant:"standard",type:"info",icon:"Info"},a.a.createElement(h.Typography,{color:"primary",weight:"semi-bold"},"No learning and development needs found.")))):a.a.createElement(wa.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),a.a.createElement(h.Form,{id:"devPlanValues",formikContext:!0},a.a.createElement(h.Grid,{container:!0,spacing:"form"},v.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!==P&&void 0!==P?P:0)||P===i.status)&&a.a.createElement(ss,{key:"development-plan-".concat(t,"-tile-").concat(r),isCustomNeed:e.isCustomNeed,outerIndex:t,innerIndex:r,isUnauthorized:!1})}))}))),a.a.createElement(Xo,{open:n,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)}}))}))))})),ts=function(e){var t=e.isUnauthorized,i=fs(),n=i.setDevPlans,o=i.setScreen,s=i.devPlans,l=i.frameworkId,c=i.setHasChanges,d={devPlans:s,validationSchema:Object(Ta.object)().shape({devPlanState:Object(Ta.array)().nullable().of(Object(Ta.object)().shape({categoryName:Object(Ta.string)().nullable(),developmentPlans:Object(Ta.array)().nullable().of(Object(Ta.object)().shape({category:Object(Ta.string)().nullable().trim(),customNeed:Object(Ta.string)().nullable().trim().when("isCustomNeed",{is:!0,then:Object(Ta.string)().required("Required")}),plan:Object(Ta.string)().trim().nullable(),isIncluded:Object(Ta.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}))})),n(e),o(1)}};return a.a.createElement(wa.Formik,{initialValues:d.devPlans,validationSchema:d.validationSchema,onSubmit:d.onSubmit,enableReinitialize:!0},(function(e){var i=e.values.devPlanState;return i.sort((function(e,t){return e.developmentPlanCategoryId-t.developmentPlanCategoryId})),a.a.createElement(h.Form,{id:"devPlanFramework",formikContext:!0},a.a.createElement(h.Grid,{container:!0,spacing:"card"},null===i||void 0===i?void 0:i.map((function(e,i){var n,o;return a.a.createElement(r.Fragment,{key:"grid-framework-cat-".concat(i)},!e.hasSubCat&&e.isCustomNeed&&a.a.createElement(wa.FieldArray,{name:"devPlanState.".concat(i,".developmentPlans"),render:function(r){var n,o=r.push,s=r.remove;return a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.Button,{variant:"text",color:"primary",disabled:t,startIcon:a.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")),null===(n=e.developmentPlans)||void 0===n?void 0:n.map((function(e,r){return a.a.createElement(h.Grid,{item:!0,xs:12,key:"grid-framework-cat-".concat(i,"-subCat-").concat(r)},a.a.createElement(h.Card,{variant:"outlined"},a.a.createElement(h.CardContent,null,a.a.createElement(hs,{key:"custom-need-".concat(i,"-key-").concat(r),outerIndex:i,innerIndex:r,remove:s,readOnly:e.hasLearningNeeds||t}))))})))}}),e.hasSubCat&&a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.Card,{variant:"outlined"},a.a.createElement(h.CardContent,null,a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.Typography,{variant:"h6",color:"textPrimary",style:{whiteSpace:"pre-wrap"}},e.categoryName)),null===(n=e.developmentPlans)||void 0===n?void 0:n.map((function(e,r){return a.a.createElement(h.Grid,{item:!0,xs:12,key:"grid-".concat(i,"-sub-category-field-").concat(r)},a.a.createElement(h.FormControlLabel,{control:a.a.createElement(rs,{outerIndex:i,innerIndex:r,readOnly:e.hasLearningNeeds||t}),label:a.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 a.a.createElement(h.Grid,{item:!0,xs:12,key:"grid-framework-cat-".concat(i,"-subCat-").concat(r)},a.a.createElement(h.Card,{variant:"outlined"},a.a.createElement(h.CardContent,null,a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,sm:12},a.a.createElement(h.FormControlLabel,{control:a.a.createElement(rs,{outerIndex:i,innerIndex:r,readOnly:e.hasLearningNeeds||t}),label:a.a.createElement(h.Typography,{variant:"h6",color:"textPrimary",style:{whiteSpace:"pre-wrap"}},e.category),labelPlacement:"end"}))))))}))))}))))}))},is=Object(z.makeStyles)((function(e){var t=e.palette;e.spacing;return Object(z.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"}})})),rs=function(e){var t=e.outerIndex,i=e.innerIndex,n=e.readOnly,o=fs().setHasChanges,s=Object(h.UseFormikContext)(!0),l=Object(r.useState)(!1),d=Object(c.a)(l,2),u=d[0],p=d[1],v=Object(r.useState)(null===s||void 0===s?void 0:s.getFieldProps("devPlanState.".concat(t,".developmentPlans.").concat(i,".isIncluded")).value),f=Object(c.a)(v,2),m=f[0],y=f[1],g=function(){null===s||void 0===s||s.setFieldValue("devPlanState.".concat(t,".developmentPlans.").concat(i,".isIncluded"),!0),p(!1)};return a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Switch,{id:"devPlanState.".concat(t,".developmentPlans.").concat(i,".isIncluded"),disabled:n,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)?p(!0):(y(!m),null===s||void 0===s||s.setFieldValue("devPlanState.".concat(t,".developmentPlans.").concat(i,".isIncluded"),!m)))}}),a.a.createElement(Xo,{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),p(!1)},onClose:function(){return g()},onCancel:function(){return g()}}))},as=Object(z.makeStyles)((function(e){var t=e.palette,i=e.spacing;return Object(z.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"}})})),ns=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 U.s.getAllDevelopmentRecordByLicenseIdList(void 0,v.Gc.fromJS(e)).then((function(e){return e})).catch((function(e){return t(Object(Aa.b)(e)),null}))}}(t))},getDevelopmentOverallReflection:function(t){return e(Zo(t))},getDevelopmentPlans:function(t){return e(Ho(t))}}})),os=Object(d.o)(ns((function(e){var t,i=e.getDevelopmentOverallReflection,n=e.getDevelopmentPlans,o=e.getDevelopmentRecords,s=e.printRequestBody,l=e.match,d=e.loggedUser,u=l.params.isConfirmed,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],j=Object(r.useRef)(d),w=as();Object(r.useEffect)((function(){var e;((null===s||void 0===s?void 0:s.frameworkId)||0)>0?n(new v.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,a={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){a.developmentPlans.push(e)})),t.push(a)})),y(t)})):y([])}),[n,s]),Object(r.useEffect)((function(){var e;o(new v.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 v.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 a.a.createElement(h.Box,{m:1.5,maxWidth:"1100px"},a.a.createElement(h.Grid,{container:!0,spacing:"card",className:w.printButton},a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center-right",alignItems:"flex-end",alignContent:"flex-end"},a.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?a.a.createElement(h.Backdrop,{open:!0},a.a.createElement(h.CircularProgress,{color:"secondary"})):a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center",stretchContent:!0},a.a.createElement(h.Grid,{container:!0},a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center"},a.a.createElement("table",{className:w.headerTable},a.a.createElement("tbody",null,a.a.createElement("tr",null,a.a.createElement("td",{colSpan:2,className:w.name},a.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")))),a.a.createElement("tr",null,a.a.createElement("td",{className:w.label1},"Time Period:"),a.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"))))))))),a.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},a.a.createElement(h.Typography,{variant:"body1",weight:"bold"},"LEARNING AND DEVELOPMENT NEEDS")),a.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},a.a.createElement("table",{className:w.box},a.a.createElement("thead",null,a.a.createElement("tr",null,a.a.createElement("th",{className:w.columnHeader},"Learning Need Addressed"),a.a.createElement("th",{className:w.columnHeader1},"Plans to Address this Need"),a.a.createElement("th",{className:w.columnHeader2},"Target Date"),a.a.createElement("th",{className:w.columnHeader2},"Status"))),a.a.createElement("tbody",null,null===m||void 0===m?void 0:m.map((function(e,t){return a.a.createElement(a.a.Fragment,{key:"dev-plan-tr-".concat(t)},a.a.createElement("tr",null,a.a.createElement("td",{colSpan:5,className:w.category},e.categoryName)),e.developmentPlans.map((function(e,i){return a.a.createElement("tr",{key:"dev-plan-tr-".concat(t,"-subCat-").concat(i),className:w.pageBreak},a.a.createElement("td",{className:w.subCategory},a.a.createElement(h.Typography,{variant:"body1",color:"textPrimary"},e.isCustomNeed?e.customNeed:e.plan)),a.a.createElement("td",{className:w.subCategory},a.a.createElement(h.Typography,{variant:"body1",color:"textPrimary"},e.achieve)),a.a.createElement("td",{className:w.subCategory},Object(N.c)(e.targetCompletionDate)),a.a.createElement("td",{className:w.subCategory},function(e){switch(e){case 1:return"In Progress";case 2:return"Complete";case 3:return"Not Started";default:return"In Progress"}}(e.status)))})))}))))),a.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},a.a.createElement(h.Box,{className:w.pageBreak},a.a.createElement(h.Typography,{variant:"body1",weight:"bold"},"COURSES AND ACTIVITIES ADDRESSING MY LEARNING AND DEVELOPMENT NEEDS"))),a.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},a.a.createElement("table",{className:w.box},a.a.createElement("thead",null,a.a.createElement("tr",null,a.a.createElement("th",{className:w.devRecordColumnHeader},"Date"),a.a.createElement("th",{className:w.devRecordColumnHeader},"Hours"),a.a.createElement("th",{className:w.devRecordColumnHeader1},"Activity"),a.a.createElement("th",{className:w.devRecordColumnHeader2},"Learning Need Addressed"),a.a.createElement("th",{className:w.devRecordColumnHeader3},"Activity Reflection"))),a.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 a.a.createElement("tr",{key:"dev-record-tr-".concat(t),className:w.pageBreak},a.a.createElement("td",{className:w.subCategory},Object(N.c)(e.courseActivityDate)),a.a.createElement("td",{className:w.subCategory},e.hours),a.a.createElement("td",{className:w.subCategory},e.courseActivityTitle),a.a.createElement("td",{className:w.subCategory},null===(i=e.learningNeeds)||void 0===i?void 0:i.map((function(e,i){return a.a.createElement("tr",{key:"dev-record-tr-".concat(t,"-learning-need-").concat(i)},a.a.createElement(h.Typography,{variant:"body1",color:"textPrimary"},e.subCategoryId?e.subCategoryName:e.competencyName))}))),a.a.createElement("td",{className:w.subCategory},a.a.createElement(h.Typography,{variant:"body1",color:"textPrimary"},e.reflection)))}))))),a.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},a.a.createElement(h.Box,{className:w.pageBreak},a.a.createElement(h.Typography,{variant:"body1",weight:"bold"},"OVERALL REFLECTION"))),a.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},a.a.createElement(h.Box,{className:w.overallReflection},a.a.createElement(h.TextEditorView,{model:Object(k.a)(C)}))),a.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},a.a.createElement(h.Box,{className:w.pageBreak},a.a.createElement(h.Typography,{variant:"body1",weight:"bold"},"DECLARATION OF COMPETENCE"))),a.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},a.a.createElement(h.Grid,{container:!0},a.a.createElement(h.Row,null,a.a.createElement(h.Box,null,a.a.createElement(h.Checkbox,{size:"small",color:"primary",formikContext:!1,checked:"1"===u})),a.a.createElement(h.Box,{mt:0},a.a.createElement(h.List,{style:{padding:"6px 0"}},a.a.createElement(h.Typography,{variant:"body2",color:"textPrimary"},"When selecting this box, I confirm that:"),a.a.createElement(h.ListItem,{dense:!0},a.a.createElement(h.Typography,{variant:"body2",color:"textPrimary"},"\u2022 I have an up-to-date understanding of the legal, ethical and regulatory obligations relevant to my role;")),a.a.createElement(h.ListItem,{dense:!0},a.a.createElement(h.Typography,{variant:"body2",color:"textPrimary"},"\u2022 I have reflected on and addressed any identified learning and development needs; and")),a.a.createElement(h.ListItem,{dense:!0},a.a.createElement(h.Typography,{variant:"body2",color:"textPrimary"},"\u2022 I am competent to perform my role.")))))))))}))),ss=function(e){var t=e.isCustomNeed,i=e.outerIndex,r=e.innerIndex,n=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"};case 3:return{cardStatus:"error",icon:"Error",color:"error"};default:return{cardStatus:"default",icon:"Loading",color:"primary"}}};return a.a.createElement(h.Grid,{item:!0,sm:12},a.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"},a.a.createElement(h.CardContent,null,a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.Typography,{variant:"subtitle2",color:"textSecondary"},"Categorize the area in which you need/want to improve")),a.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),a.a.createElement(h.Grid,{item:!0,xs:12},a.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:n})),a.a.createElement(h.Grid,{item:!0,xs:12},a.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:n})),a.a.createElement(h.Grid,{item:!0,xs:12,sm:12,md:6},a.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:n})),a.a.createElement(h.Grid,{item:!0,xs:12,sm:12,md:6},a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:10,sm:11,md:10},a.a.createElement(h.SelectField,{id:"devPlanState.".concat(i,".developmentPlans.").concat(r,".status"),fullWidth:!0,label:"Status",disabled:n},a.a.createElement(h.MenuItem,{value:1},"In Progress"),a.a.createElement(h.MenuItem,{value:2},"Complete"),a.a.createElement(h.MenuItem,{value:3},"Not Started"))),a.a.createElement(h.Grid,{item:!0,xs:2,sm:1,md:2,alignment:"center-left"},a.a.createElement(h.Row,{mainAxisAlignment:"center",crossAxisAlignment:"middle"},a.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})))))))))},ls=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,n=is();return a.a.createElement(h.Box,{m:1,maxWidth:"1100px",alignSelf:"center"},a.a.createElement(h.Grid,{container:!0,spacing:"card",className:n.printButton},a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center-right",alignItems:"flex-end",alignContent:"flex-end"},a.a.createElement(h.Button,{onClick:function(){return window.onafterprint=window.close,window.print(),!1},variant:"contained",color:"primary",size:"small"},"Print"))),a.a.createElement("br",null),t?0===t.length?a.a.createElement(h.Box,null,a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center",alignContent:"center",alignItems:"center"},a.a.createElement(h.Row,{mainAxisAlignment:"center",crossAxisAlignment:"middle"},a.a.createElement(h.Alert,{type:"info",variant:"standard"},"No records found.")))):a.a.createElement(h.Grid,{container:!0,spacing:"card"},a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement("h1",{className:n.label},"DEVELOPMENT PLAN")),a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.Row,null,a.a.createElement(h.Column,null,a.a.createElement("span",{className:n.label1},"Name:")),a.a.createElement(h.Column,null,a.a.createElement("span",{className:n.label2}," ".concat(null===i||void 0===i?void 0:i.firstName," ").concat(null===i||void 0===i?void 0:i.lastName)))),a.a.createElement(h.Row,null,a.a.createElement(h.Column,null,a.a.createElement("span",{className:n.label1},"Time Period:")),a.a.createElement(h.Column,null,a.a.createElement("span",{className:n.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")))))),a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.TextEditorView,{model:Object(k.a)(null===r||void 0===r?void 0:r.competencyFrameworkUserInstruction)})),a.a.createElement(h.Grid,{item:!0,stretchContent:!0,xs:12},a.a.createElement("table",{className:n.box},a.a.createElement("thead",null,a.a.createElement("tr",null,a.a.createElement("th",{className:n.columnHeader},"Categorize the area in which you need/want to improve"),a.a.createElement("th",{className:n.columnHeader2},"What do I want/need to learn or improve?"),a.a.createElement("th",{className:n.columnHeader2},"What will I do to achieve this?"),a.a.createElement("th",{className:n.columnHeader3},"Target date for completion"),a.a.createElement("th",{className:n.columnHeader3},"Status"))),a.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 a.a.createElement("tr",{key:"dev-plan-print-tr-".concat(t)},a.a.createElement("td",{className:n.subCategory},e.isCustomNeed?e.customNeed:e.category),a.a.createElement("td",{className:n.subCategory},a.a.createElement(h.Typography,{variant:"body1",color:"textPrimary"},e.plan)),a.a.createElement("td",{className:n.subCategory},a.a.createElement(h.Typography,{variant:"body1",color:"textPrimary"},e.achieve)),a.a.createElement("td",{className:n.subCategory},Object(N.c)(e.targetCompletionDate)),a.a.createElement("td",{className:n.subCategory},function(e){switch(e){case 1:return"In Progress";case 2:return"Completed";case 3:return"Not Started";default:return"In Progress"}}(e.status)))}))})))))):a.a.createElement(h.Backdrop,{open:!0},a.a.createElement(h.CircularProgress,{color:"secondary"})))})),cs=Object(z.makeStyles)((function(e){var t=e.palette,i=(e.spacing,e.typography);return Object(z.createStyles)({cardTitle:Object(D.a)(Object(D.a)({},i.subtitle1),{},{fontWeight:700}),cardSubheader:Object(D.a)({},i.subtitle2),cardContent:Object(D.a)(Object(D.a)({},i.subtitle2),{},{color:t.grey[500],borderColor:"#E2E2E2"})})})),ds=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(Ho(t))},getDevPlanFramework:function(t){return e(function(e){return function(t){var i=U.r.getDevelopmentPlanFramework(void 0,new v.Pc(e));return t($o(null)),i.then((function(e){return e})).catch((function(e){t(Object(Aa.b)(e))}))}}(t))},setDevelopmentPlans:function(t){return e(_o(t))},setRequestBody:function(t){return e(Yo(t))}}}))((function(e){var t=e.competencyFrameworkId,i=e.userId,n=e.open,o=e.periodFrom,s=e.periodTo,l=e.competencyFrameworkUserInstruction,d=e.getDevelopmentPlans,u=e.getDevPlanFramework,p=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],T=j[1],P=Object(r.useState)(!1),A=Object(c.a)(P,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],M=U[1],q=Object(r.useState)(!1),z=Object(c.a)(q,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],ae=Object(r.useState)(),ne=Object(c.a)(ae,2),oe=ne[0],se=ne[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:p,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&&n&&(re(0),H(!1),X(!1),C(!1),S(!0),d(new v.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,a=(e[0].developmentPlanSubCategoryId||0)>0,n={developmentPlanCategoryId:e[0].developmentPlanCategoryId||0,isCustomNeed:null!==(r=e[0].isCustomNeed)&&void 0!==r&&r,categoryName:e[0].isCustomNeed?"":e[0].category,hasSubCat:a,isIncluded:null!==a&&void 0!==a?a:e[0].isIncluded,developmentPlans:new Array};e[0].isCustomNeed&&(i=!0),e.forEach((function(e){n.developmentPlans.push(e)})),t.push(n)})),(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?(T(!0),re(1),S(!1)):D(!0)})))}),[d,t,n]);Object(r.useEffect)((function(){k&&u(new v.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,a,n,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!==(a=e.hasSubCat)&&void 0!==a&&a,developmentPlans:null!==(n=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!==n?n:[]};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 pe=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)},ve=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),M(!0)):p()};return a.a.createElement(vs.Provider,{value:le},a.a.createElement(h.SideDrawer,{size:"md",open:n,onClose:function(){return ve()}},a.a.createElement(ga.SideDrawerHeader,{titleBar:{title:a.a.createElement(h.Box,null,a.a.createElement(h.Row,{crossAxisAlignment:"middle"},a.a.createElement(h.Typography,{variant:"h5"},"Development Plan"))),subtitle:a.a.createElement(h.Box,null,a.a.createElement(h.Box,null,b?a.a.createElement(h.Skeleton,{width:"100%"}):a.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.")),a.a.createElement(h.Box,null,a.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:a.a.createElement(h.Tooltip,{title:pe()?"":"Print",placement:"bottom"},a.a.createElement("span",null,a.a.createElement(h.IconButton,{type:"submit",color:"default",id:"printButton",disabled:pe(),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")}},a.a.createElement(h.SystemIcon,{icon:"Print",size:"sm"}))))}}),a.a.createElement(ga.SideDrawerBody,null,b?a.a.createElement(Ln,{type:"filter-drawer"}):0===ie?t?a.a.createElement(ts,{isUnauthorized:!1}):a.a.createElement(h.Grid,{item:!0,xs:12,sm:12,lg:12},a.a.createElement(h.Box,{maxWidth:"300px",margin:"0 auto"},a.a.createElement(h.Alert,{variant:"standard",type:"info",icon:"Info"},a.a.createElement(h.Typography,{color:"primary",weight:"semi-bold"},"No associated framework.")))):a.a.createElement(es,{showConfirm:G,setShowConfirm:M,setDirty:V,close:$,setClose:H})),a.a.createElement(ga.SideDrawerFooter,null,a.a.createElement(h.Grid,{container:!0,justifyContent:"center",spacing:"form"},a.a.createElement(h.Grid,{item:!0,lg:2,md:4,xs:6,stretchContent:!0,alignment:"center"},a.a.createElement(h.Button,{fullWidth:!0,disabled:b||O,color:"default",variant:"outlined",onClick:function(){0===ie?p():W?M(!0):re(0)}},0===ie?"Cancel":"Edit Needs")),a.a.createElement(h.Grid,{item:!0,lg:2,md:4,xs:6,stretchContent:!0,alignment:"center"},a.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"))))))})),us=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=U.r.confirm(void 0,v.C.fromJS(i));return e($o(null)),t.then((function(e){return e})).catch((function(t){e(Object(Aa.b)(t))}))}));var i},setRequestBody:function(t){return e(Yo(t))}}}))((function(e){var t,i=e.index,n=e.reportingPeriod,o=e.confirmPeriodDeclaration,s=e.setRequestBody,l=e.userId,d=Object(r.useState)(!0),u=Object(c.a)(d,2),p=u[0],f=u[1],m=Object(r.useState)(n.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],T=j[1],P=Object(r.useState)(!1),A=Object(c.a)(P,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],M=U[1],q=Object(r.useState)(!1),z=Object(c.a)(q,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],ae=Object(r.useState)(),ne=Object(c.a)(ae,2),oe=ne[0],se=ne[1],le=Object(r.useState)(),ce=Object(c.a)(le,2),de=ce[0],ue=ce[1],he=E(v.Kd.ViewPortalDevelopmentOverallReflections),pe=E(v.Kd.ViewPortalDevelopmentRecords),ve=cs();Object(r.useEffect)((function(){var e=Object(N.b)(Object(N.a)(n.periodTo,1),-3);new Date>=e&&f(!1)}),[n.periodTo]);var fe=function(e){D(!0),B(!1),M(!1),V(!1),e>0&&X(e)};return a.a.createElement(h.Grid,{container:!0,spacing:"card",key:"grid-container-".concat(i)},a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.Card,{variant:"outlined"},a.a.createElement(h.CardContent,{classes:{root:ve.cardContent}},a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:12,id:"reporting-period-label",stretchContent:!0},a.a.createElement(h.Typography,{variant:"h6",color:"textPrimary"},"".concat(Object(N.c)(n.periodFrom,"MMM DD, YYYY")," - ").concat(Object(N.c)(n.periodTo,"MMM DD, YYYY")))),a.a.createElement(h.Grid,{item:!0,xs:12,id:"license-list-development-record-button-tile"},null===(t=n.licenses)||void 0===t?void 0:t.map((function(e,t){var i,r;return a.a.createElement(h.Grid,{container:!0,spacing:"form",key:"reporting-period-license-".concat(t,"-").concat(e.membershipNumber)},a.a.createElement(h.Grid,{item:!0,xs:12,md:6,alignment:"center",id:"license-list-tile"},a.a.createElement(h.Grid,{container:!0},a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.Typography,{variant:"subtitle1",color:"textPrimary"},e.licenseName)),null!==e.membershipNumberLabel&&a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.Typography,{variant:"subtitle1",color:"textSecondary"},"".concat(e.membershipNumberLabel,": ").concat(null!==(i=e.membershipNumber)&&void 0!==i?i:"-"))))),a.a.createElement(h.Grid,{item:!0,xs:12,md:6,alignment:"center",id:"development-plan-button"},a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:12,sm:4},a.a.createElement(h.Button,{fullWidth:!0,color:"primary",size:"small",variant:"outlined",onClick:function(){return T(!0)}},a.a.createElement(h.Typography,{variant:"body2",color:"inherit"},"Development Plan"))),a.a.createElement(h.Grid,{item:!0,xs:12,sm:4},a.a.createElement(h.Button,{color:"primary",size:"small",variant:"outlined",fullWidth:!0,onClick:function(){return fe(void 0===e.licenseId?0:e.licenseId)},disabled:!pe},a.a.createElement(h.Typography,{variant:"body2",color:"inherit"},"Development Record"))),a.a.createElement(h.Grid,{item:!0,xs:12,sm:4},a.a.createElement(h.Button,{color:"primary",size:"small",variant:"outlined",fullWidth:!0,onClick:function(){return H(!0)},disabled:!he},a.a.createElement(h.Typography,{variant:"body2",color:"inherit"},"Overall Reflection"))))),t!==((null===(r=n.licenses)||void 0===r?void 0:r.length)||0)-1&&a.a.createElement(h.Grid,{item:!0,sm:12},a.a.createElement(h.Divider,null)))}))))),a.a.createElement(h.CardActions,{style:{backgroundColor:"#E5F3FA",borderColor:"#E2E2E2"}},a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,md:10},a.a.createElement(h.Grid,{container:!0},a.a.createElement(h.Grid,{item:!0,md:12},a.a.createElement(h.Typography,{variant:"subtitle1",color:"textPrimary"},"ANNUAL DECLARATION OF COMPETENCE")),a.a.createElement(h.Grid,{item:!0,md:12},a.a.createElement(h.List,null,a.a.createElement(h.Typography,{variant:"body2",color:"textPrimary"},"I confirm that:"),a.a.createElement(h.ListItem,{dense:!0},a.a.createElement(h.Typography,{variant:"body2",color:"textPrimary"},"\u2022 I have an up-to-date understanding of the legal, ethical and regulatory obligations relevant to my role;")),a.a.createElement(h.ListItem,{dense:!0},a.a.createElement(h.Typography,{variant:"body2",color:"textPrimary"},"\u2022 I have reflected on and addressed any identified learning and development needs; and")),a.a.createElement(h.ListItem,{dense:!0},a.a.createElement(h.Typography,{variant:"body2",color:"textPrimary"},"\u2022 I am competent to perform my role.")))),a.a.createElement(h.Grid,{item:!0,md:12},a.a.createElement(h.FormControlLabel,{control:a.a.createElement(h.Tooltip,{title:p?"The Annual Declaration may not be made more than 3 months prior to the end of the compliance period.":g?"Unconfirm":"Confirm"},a.a.createElement("span",null,a.a.createElement(h.Switch,{formikContext:!1,disabled:O||p,checked:g,onChange:function(e,t){return function(e){C(!0),b(e),o(new v.C({userId:l,endDate:Object(N.e)(n.periodTo),isConfirmed:e})).then((function(){return C(!1)}))}(t)},color:"primary"}))),label:a.a.createElement(h.Typography,{variant:"subtitle2",color:"textPrimary"},g?"CONFIRMED":"NOT CONFIRMED"),labelPlacement:"end"})))),a.a.createElement(h.Grid,{item:!0,md:2,alignment:"center-right"},a.a.createElement(h.Button,{fullWidth:!0,color:"primary",size:"small",variant:"outlined",onClick:function(){return function(){var e,t=new Array;null===(e=n.licenses)||void 0===e||e.forEach((function(e){return t.push(e.licenseId)})),s({licenseId:0,licenseIdList:t,frameworkId:n.competencyFrameworkId,periodStartDate:n.periodFrom,periodEndDate:n.periodTo,competencyFrameworkUserInstruction:n.competencyFrameworkUserInstruction}),window.open("/developmentPlan/developmentLearningRecord/print/".concat(g?1:0),"developmentPlan_learningRecord_".concat(n.competencyFrameworkId),"width=977px height=1006px")}()}},a.a.createElement(h.Typography,{variant:"body2",color:"inherit"},"Print Learning Record"))))),a.a.createElement(ds,{competencyFrameworkId:n.competencyFrameworkId||0,periodFrom:n.periodFrom,periodTo:n.periodTo,competencyFrameworkUserInstruction:n.competencyFrameworkUserInstruction||"",open:w,onClose:function(){return T(!1)}}),a.a.createElement(As,{competencyFrameworkId:n.competencyFrameworkId||0,periodStartDate:Object(N.e)(n.periodFrom),periodEndDate:Object(N.e)(n.periodTo),open:$,onClose:function(){return H(!1)}}),a.a.createElement(js,{open:k,onClose:function(){return D(!1)},onShowAddCourse:function(){D(!1),B(!0),M(!1),V(!1)},onShowAddActivity:function(){D(!1),B(!1),M(!0),V(!1)},onShowSelectLearningNeed:function(e,t,i){D(!1),B(!1),M(!1),V(!0),re(e),se(t),ue(i)},licenseId:Z,competencyFrameworkId:n.competencyFrameworkId||0,periodStartDate:n.periodFrom,periodEndDate:n.periodTo}),a.a.createElement(Os,{open:F,onClose:function(){return B(!1)},onShowDevelopmentRecordDrawer:fe,licenseId:Z}),a.a.createElement(ys,{open:G,onClose:function(){return M(!1)},onShowDevelopmentRecordDrawer:fe,licenseId:Z}),a.a.createElement(Ps,{open:W,onClose:function(){return V(!1)},onShowDevelopmentRecordDrawer:fe,licenseId:Z,periodStartDate:n.periodFrom,periodEndDate:n.periodTo,developmentRecordId:ie,sessionParticipantId:oe,activityParticipantId:de,competencyFrameworkId:n.competencyFrameworkId||0}))))})),hs=function(e){var t,i=e.outerIndex,n=e.innerIndex,o=e.readOnly,s=e.remove,l=Object(h.UseFormikContext)(!0),d=fs().setHasChanges,u=Object(r.useState)(null===l||void 0===l?void 0:l.getFieldProps("devPlanState.".concat(i,".developmentPlans.").concat(n,".isEditMode")).value),p=Object(c.a)(u,2),v=p[0],f=p[1],m=Object(r.useState)(!1),y=Object(c.a)(m,2),g=y[0],b=y[1];return a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.Grid,{container:!0,spacing:"card"},a.a.createElement(h.Grid,{item:!0,xs:v?11:6,sm:v?11:8,md:v?11:10,stretchContent:!0},v&&!o?a.a.createElement(h.Row,{mainAxisAlignment:"start",crossAxisAlignment:"middle"},a.a.createElement(h.Column,null,a.a.createElement(rs,{outerIndex:i,innerIndex:n,readOnly:o})),a.a.createElement(h.Expanded,{flex:1},a.a.createElement(h.Column,null,a.a.createElement(h.TextField,{fullWidth:!0,required:!0,label:"Enter your Custom Need",id:"devPlanState.".concat(i,".developmentPlans.").concat(n,".customNeed")})))):a.a.createElement(h.FormControlLabel,{control:a.a.createElement(rs,{outerIndex:i,innerIndex:n,readOnly:o}),label:a.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(n,".customNeed")).value)&&void 0!==t?t:""),labelPlacement:"end"})),a.a.createElement(h.Grid,{item:!0,xs:v?1:6,sm:v?1:4,md:v?1:2,alignment:"center"},a.a.createElement(h.Row,{mainAxisAlignment:"end",crossAxisAlignment:"middle"},!v&&a.a.createElement(h.Column,null,a.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(n,".customNeed")).value)||o,onClick:function(){f(!0),d(!0)}},"Edit Custom Need")),a.a.createElement(h.Column,null,a.a.createElement(h.Tooltip,{title:"Remove custom need",placement:"top"},a.a.createElement(h.IconButton,{color:"primary",disabled:o,onClick:function(){(null===l||void 0===l?void 0:l.getFieldProps("devPlanState.".concat(i,".developmentPlans.").concat(n,".hasPreviousValues")).value)?b(!0):s(n)},"aria-label":"Remove custom need"},a.a.createElement(h.SystemIcon,{icon:"Delete",size:"xs"})))),a.a.createElement(Xo,{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(n),b(!1)},onClose:function(){return b(!1)},onCancel:function(){return b(!1)}}))))))},ps={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(){}},vs=Object(r.createContext)(ps),fs=function(){return Object(r.useContext)(vs)};function ms(){ms=function(){return e};var e={},t=Object.prototype,i=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",n=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 a=t&&t.prototype instanceof u?t:u,n=Object.create(a.prototype),o=new O(r||[]);return n._invoke=function(e,t,i){var r="suspendedStart";return function(a,n){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw n;return x()}for(i.method=a,i.arg=n;;){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),n}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 p(){}var v={};s(v,a,(function(){return this}));var f=Object.getPrototypeOf,m=f&&f(f(C([])));m&&m!==t&&i.call(m,a)&&(v=m);var y=p.prototype=u.prototype=Object.create(v);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(a,n){function o(){return new t((function(r,o){!function r(a,n,o,s){var l=c(e[a],e,n);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)}(a,n,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 a=r.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):a:(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[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r=0;--a){var n=this.tryEntries[a],o=n.completion;if("root"===n.tryLoc)return r("end");if(n.tryLoc<=this.prev){var s=i.call(n,"catchLoc"),l=i.call(n,"finallyLoc");if(s&&l){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&i.call(a,"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 a=r.arg;I(i)}return a}}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 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{getUserUkLicenseList:function(t){return e(Ko(t))},addActivity:function(t){return e(function(e){return function(t){return U.s.createActivityDevelopmentRecord(void 0,v.K.fromJS(e)).then((function(e){return t(Object(Aa.a)({message:"Activity successfully saved.",variant:"success"})),e})).catch((function(e){throw t(Object(Aa.b)(e)),e}))}}(t))},validateActivityTitle:function(t){return e(function(e){return function(t){return U.b.validateActivityTitle(0,e,void 0).then((function(e){return e})).catch((function(e){t(Object(Aa.b)(e))}))}}(t))}}}))((function(e){var t=e.open,i=e.getUserUkLicenseList,n=e.onShowDevelopmentRecordDrawer,o=e.userId,s=e.addActivity,d=e.licenseId,u=e.validateActivityTitle,p=Object(r.useState)(void 0),v=Object(c.a)(p,2),f=v[0],m=v[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},T={};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){T=Object(D.a)(Object(D.a)({},T),{},Object(kn.a)({},"credit_type_".concat(e.licenseId),"".concat(e.creditId)))})),w=Object(D.a)(Object(D.a)({},w),T));var P={initialValues:w,validationSchema:Object(Ta.object)().shape({activityDescription:Object(Ta.string)().required("Required").test("check-duplicate-title","This Description of Activity is already taken.",function(){var e=Object(l.a)(ms().mark((function e(t){return ms().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(Ta.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(Ta.number)().nullable().required("Hours is a required field")}),onSubmit:function(e,t){var i=e.activityDescription,r=e.activityDate,a=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(a),userId:o,licenses:c};s(h).then((function(e){t.setSubmitting(!1),e>0&&(S(void 0),n(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),n(d)},L=function(){E.current&&E.current.dirty?x(!0):k()};return a.a.createElement(h.SideDrawer,{size:"md",open:t,onClose:L},a.a.createElement(ga.SideDrawerHeader,{titleBar:{title:a.a.createElement(h.Box,null,a.a.createElement(h.Row,{crossAxisAlignment:"middle"},a.a.createElement(h.Button,{color:"primary",variant:"text",startIcon:a.a.createElement(h.SystemIcon,{size:"md",icon:"Back"}),onClick:L}),a.a.createElement(h.Typography,{variant:"h5"},"Add Activity"))),subtitle:a.a.createElement(h.Column,null,a.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.",a.a.createElement("span",{style:{color:"red"}}," ","Only add learning activites that are in addition to these programmes.")))}}),a.a.createElement(wa.Formik,{initialValues:P.initialValues,validationSchema:P.validationSchema,onSubmit:P.onSubmit,innerRef:E,enableReinitialize:!0,key:"add-activity"},(function(e){return a.a.createElement(a.a.Fragment,null,a.a.createElement(ga.SideDrawerBody,null,a.a.createElement(h.Form,{id:"add-course",formikContext:!0},a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:10,sm:5,md:4,stretchContent:!0},a.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)()}))),a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},a.a.createElement(h.TextField,{required:!0,id:"activityDescription",label:"Description of Activity",formikContext:!0,fullWidth:!0}))),a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:3,stretchContent:!0},a.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&&a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:6,stretchContent:!0},a.a.createElement(h.Card,{variant:"outlined",background:"default"},a.a.createElement(h.CardContent,null,f&&f.map((function(e){return a.a.createElement(a.a.Fragment,{key:e.licenseId},e.licenseName&&a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Row,{crossAxisAlignment:"middle"},a.a.createElement(h.Expanded,{flex:0,mr:1},a.a.createElement(h.Typography,{variant:"body1"},a.a.createElement("b",null,e.licenseName)))),a.a.createElement(h.Box,{ml:3},a.a.createElement(h.RadioGroup,{formikContext:!0,groupLabel:"",options:j,id:"credit_type_".concat(e.licenseId),orientation:"horizontal"}))))})))))))),a.a.createElement(ga.SideDrawerFooter,null,a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:3}),a.a.createElement(h.Grid,{item:!0,xs:3,stretchContent:!0},a.a.createElement(h.Button,{variant:"outlined",color:"default",fullWidth:!0,onClick:k},"Cancel")),a.a.createElement(h.Grid,{item:!0,xs:3,stretchContent:!0},a.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")),a.a.createElement(h.Grid,{item:!0,xs:3}))))})),a.a.createElement(Xo,{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}))})),gs=i(675),bs=i.n(gs),Ss=function(e){var t=e.isAddMode,i=e.formik,r=e.isLoading;return a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.TextField,{formikContext:!0,required:!0,fullWidth:!0,id:"name",label:"Provider Name",loading:r})),a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.TextField,{formikContext:!0,required:!0,fullWidth:!0,id:"code",label:"Code",loading:r})),a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.TextField,{fullWidth:!0,formikContext:!0,id:"url",label:"URL",loading:r})),!t&&(r?a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.Skeleton,{width:215,height:16,variant:"rect"})):a.a.createElement(h.Grid,{item:!0,xs:12,spacing:"card",key:"isActive"},a.a.createElement(h.Card,{background:"default",variant:"outlined",style:{height:60,width:120}},a.a.createElement(h.Column,{crossAxisAlignment:"left",flex:1},a.a.createElement(h.Expanded,{ml:1,mt:.5},a.a.createElement(h.Typography,{color:"textSecondary",variant:"body1"},"Status")),a.a.createElement(h.Expanded,{ml:1},a.a.createElement(h.FormControlLabel,{control:a.a.createElement(h.Switch,{formikContext:!0,id:"isActive",color:"primary",onChange:function(){i.setFieldValue("isActive",!i.getFieldProps("isActive").value)}}),label:a.a.createElement(h.Typography,{variant:"body1"},i.getFieldProps("isActive").value?"Active":"Inactive"),labelPlacement:"end"})))))))};function Es(){Es=function(){return e};var e={},t=Object.prototype,i=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",n=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 a=t&&t.prototype instanceof u?t:u,n=Object.create(a.prototype),o=new O(r||[]);return n._invoke=function(e,t,i){var r="suspendedStart";return function(a,n){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw n;return x()}for(i.method=a,i.arg=n;;){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),n}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 p(){}var v={};s(v,a,(function(){return this}));var f=Object.getPrototypeOf,m=f&&f(f(C([])));m&&m!==t&&i.call(m,a)&&(v=m);var y=p.prototype=u.prototype=Object.create(v);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(a,n){function o(){return new t((function(r,o){!function r(a,n,o,s){var l=c(e[a],e,n);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)}(a,n,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 a=r.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):a:(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[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r=0;--a){var n=this.tryEntries[a],o=n.completion;if("root"===n.tryLoc)return r("end");if(n.tryLoc<=this.prev){var s=i.call(n,"catchLoc"),l=i.call(n,"finallyLoc");if(s&&l){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&i.call(a,"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 a=r.arg;I(i)}return a}}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 Is=Object(s.b)(null,(function(e){return{saveProvider:function(t){return e(function(e){return function(t){return U.M.create("v1",v.W.fromJS(e)).then((function(e){return t(Object(G.a)({message:"Save successful",variant:"success"})),t(Vn()),e})).catch((function(e){t(Object(G.b)(e))}))}}(t))},validateProviderName:function(t,i){return e(function(e,t){return function(i){return U.M.validateProviderName(void 0,v.Ze.fromJS(new v.Ze({providerIds:e,name:t}))).then((function(e){return e})).catch((function(e){i(Object(G.b)(e))}))}}(t,i))},validateProviderCode:function(t,i){return e(function(e,t){return function(i){return U.M.validateProviderCode(void 0,v.Ye.fromJS(new v.Ye({providerIds:e,code:t}))).then((function(e){return e})).catch((function(e){i(Object(G.b)(e))}))}}(t,i))}}}))((function(e){var t=e.isAddMode,i=e.open,n=e.onClose,o=e.saveProvider,s=e.validateProviderName,d=e.validateProviderCode,u=e.onAddNewProvider,p=e.providerName,v=e.isInHouseProvider,f=Object(r.useState)(!1),m=Object(c.a)(f,2),y=m[0],g=m[1],b={initialValues:{name:null!==p&&void 0!==p?p:"",code:"",url:"",isActive:!0,isInHouse:v?"0":"1"},validationSchema:Object(Ta.object)().shape({name:Object(Ta.string)().required("Required").max(500,"Too long!").test("check-duplicate-name","This Provider name is already taken.",function(){var e=Object(l.a)(Es().mark((function e(t){return Es().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(Ta.string)().required("Required").max(15,"15 characters only!").test("check-duplicate-code","This Provider code is already taken.",function(){var e=Object(l.a)(Es().mark((function e(t){return Es().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(Ta.string)().url("Please specify a valid url.").max(100,"100 characters only!").nullable()}),onSubmit:function(e,t){var i=e.name,r=e.code,a=e.isActive,s=e.url,l=e.isInHouse;g(!0);var c={name:i.trim(),code:r.trim(),url:s,isActive:a,isInHouse:"1"!==l};o(c).then((function(e){g(!1),t.setSubmitting(!1),u&&u(e),n()})).catch((function(){g(!1),t.setSubmitting(!1)}))}};return a.a.createElement(bs.a,{open:i,onClose:n,maxWidth:"md",color:"default"},a.a.createElement(wa.Formik,{initialValues:b.initialValues,validationSchema:b.validationSchema,onSubmit:b.onSubmit,enableReinitialize:!0},(function(e){return a.a.createElement(h.Form,{id:"edit-provider",formikContext:!0},a.a.createElement(Ia.DialogHeader,{titleBar:{title:t?"Add ".concat(v?"Firm as":"Third Party"," Provider"):"Edit ".concat(v?"Firm as":"Third Party"," Provider")}}),a.a.createElement(Ia.DialogBody,{maxWidth:!1},a.a.createElement(Ss,{isAddMode:t,formik:e})),a.a.createElement(Ia.DialogFooter,null,a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:6,alignment:"center-right"},a.a.createElement(h.Button,{color:"default",variant:"outlined",type:"reset",onClick:n},"Cancel")),a.a.createElement(h.Grid,{item:!0,xs:6,alignment:"center-left"},a.a.createElement(h.Button,{loading:y,color:"primary",variant:"contained",type:"submit",disabled:!e.dirty},"Save")))))})))})),Os=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(Vn(void 0,!1))},getCourseFormatList:function(){return e(Mn())},addCourse:function(t){return e(function(e){return function(t){return U.s.createCourseDevelopmentRecord(void 0,v.P.fromJS(e)).then((function(e){return t(Object(Aa.a)({message:"Course successfully saved.",variant:"success"})),e})).catch((function(e){throw t(Object(Aa.b)(e)),e}))}}(t))},getUserUkLicenseList:function(t){return e(Ko(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 v.We({courseTitle:e,providerId:t});return U.s.validateCourseDevelopmentRecord(void 0,r).then((function(e){return e})).catch((function(e){i(Object(Aa.b)(e))}))}}(t,i))},addNotification:function(t){return e(G.a({message:t,variant:"error"}))}}}))((function(e){var t=e.open,i=e.onShowDevelopmentRecordDrawer,n=e.getProviderList,o=e.getCourseFormatList,s=e.addCourse,l=e.userId,d=e.getUserUkLicenseList,u=e.licenseId,p=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),T=w[0],P=w[1],A=Object(r.useState)(),k=Object(c.a)(A,2),L=k[0],J=k[1],F=Object(r.useState)(void 0),B=Object(c.a)(F,2),R=B[0],U=B[1],G=Object(r.useState)(),M=Object(c.a)(G,2),q=M[0],z=M[1],W=E(v.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&&n().then((function(e){S(null===e||void 0===e?void 0:e.providers)}))}),[n,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(D.a)(Object(D.a)({},Z),{},Object(kn.a)({},"credit_type_".concat(e.licenseId),"".concat(e.creditId)))})),Q=Object(D.a)(Object(D.a)({},Q),Z));var X={initialValues:Q,validationSchema:Object(Ta.object)().shape({title:Object(Ta.string)().required("Title is a required field.").max(1e3,"Title must not exceed 1000 characters."),providerId:Object(Ta.string)().nullable().required("Provider is required"),courseDate:Object(Ta.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(Ta.object)().required("Format is required").nullable(),hours:Object(Ta.number)().nullable().required("Hours is a required field")}),onSubmit:function(e,t){var r=e.title,a=e.providerId,n=e.courseDate,o=e.courseFormat,c=e.hours,d=e.credit_type_578,h=[];if(d){var v={licenseId:578,licenseCreditId:Number(d)};h.push(v)}var m={courseTitle:r.trim(),providerId:a.providerId,courseDate:Object(N.e)(n),courseFormatId:o.courseFormatId,hours:Number(c),userId:l,licenses:h};p(r.trim(),a.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 a.a.createElement(h.SideDrawer,{size:"md",open:t,onClose:ie},a.a.createElement(ga.SideDrawerHeader,{titleBar:{title:a.a.createElement(h.Box,null,a.a.createElement(h.Row,{crossAxisAlignment:"middle"},a.a.createElement(h.Button,{color:"primary",variant:"text",startIcon:a.a.createElement(h.SystemIcon,{size:"md",icon:"Back"}),onClick:ie}),a.a.createElement(h.Typography,{variant:"h5"},"Add Course"))),subtitle:a.a.createElement(h.Column,null,a.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.",a.a.createElement("span",{style:{color:"red"}}," ","Only add learning activities that are in addition to these programmes.")))}}),a.a.createElement(wa.Formik,{initialValues:X.initialValues,validationSchema:X.validationSchema,onSubmit:X.onSubmit,innerRef:V,enableReinitialize:!0,key:"add-course"},(function(e){return a.a.createElement(a.a.Fragment,null,a.a.createElement(ga.SideDrawerBody,null,a.a.createElement(h.Form,{id:"add-course",formikContext:!0},a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:10,sm:5,md:4,stretchContent:!0},a.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}))),a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"top-left"},a.a.createElement(h.TextField,{required:!0,id:"title",label:"Course Title",formikContext:!0,fullWidth:!0,loading:void 0===C||void 0===b}))),a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:3,alignment:"top-left"},a.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!==q&&q>0&&a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:6,alignment:"top-left"},a.a.createElement(h.Card,{variant:"outlined",background:"default"},a.a.createElement(h.CardContent,null,R&&R.map((function(e){return a.a.createElement(a.a.Fragment,{key:e.licenseId},e.licenseName&&a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Row,{crossAxisAlignment:"middle"},a.a.createElement(h.Expanded,{flex:0,mr:1},a.a.createElement(h.Typography,{variant:"body1"},a.a.createElement("b",null,e.licenseName)))),a.a.createElement(h.Box,{ml:3},a.a.createElement(h.RadioGroup,{formikContext:!0,groupLabel:"",options:m,id:"credit_type_".concat(e.licenseId),orientation:"horizontal"}))))})))))),a.a.createElement(a.a.Fragment,null),a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:6,alignment:"top-left"},a.a.createElement(h.ComboBox,{disableCloseOnSelect:!1,addOption:W?{icon:"Add",label:"Add options",onClick:function(){J(K),P(!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}))),a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:3,alignment:"top-left"},a.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"}}))),T&&a.a.createElement(Is,{isAddMode:!0,open:T,onClose:function(){return P(!1)},onAddNewProvider:function(t){return function(t){e.setFieldTouched("providerId",!0),e.setFieldValue("providerId",t)}(t)},providerName:L,isInHouseProvider:!1}))),a.a.createElement(ga.SideDrawerFooter,null,a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:3}),a.a.createElement(h.Grid,{item:!0,xs:3,stretchContent:!0},a.a.createElement(h.Button,{variant:"outlined",color:"default",fullWidth:!0,onClick:te},"Cancel")),a.a.createElement(h.Grid,{item:!0,xs:3,stretchContent:!0},a.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")),a.a.createElement(h.Grid,{item:!0,xs:3}))))})),a.a.createElement(Xo,{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 Cs=function(e,t){var i=t.id,r=t.validationType,a=t.validations,n=void 0===a?[]:a;if(!Ta[r])return e;var o=Ta[r]();return n.forEach((function(e){var t,i=e.params,r=e.type;o[r]&&(o=(t=o)[r].apply(t,Object(Li.a)(i)))})),e[i]=o,e},xs=Object(z.makeStyles)((function(e){var t=e.palette;return Object(z.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"}})})),js=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(Qo(t))},createDevelopmentRecordReflection:function(t){return e((i=t,function(e){return U.s.createDevelopmentRecordReflection(void 0,v.U.fromJS(i)).then((function(e){return e})).catch((function(t){return e(Object(Aa.b)(t)),null}))}));var i},confirmDialog:function(t){return e(Object(on.b)(t))},deleteCourseDevelopmentRecord:function(t){return e(function(e){var t=new v.rb({sessionParticipantId:e});return function(e){return U.s.deleteCourseDevelopmentRecord(void 0,v.rb.fromJS(t)).then((function(t){return e(Object(Aa.a)({message:"Course successfully deleted.",variant:"success"})),t})).catch((function(t){throw e(Object(Aa.b)(t)),t}))}}(t))},deleteActivityDevelopmentRecord:function(t){return e(function(e){var t=new v.ob({activityParticipantId:e});return function(e){return U.s.deleteActivityDevelopmentRecord(void 0,v.ob.fromJS(t)).then((function(t){return e(Object(Aa.a)({message:"Activity successfully deleted.",variant:"success"})),t})).catch((function(t){throw e(Object(Aa.b)(t)),t}))}}(t))},deleteLearningNeedDevelopmentRecord:function(t){return e(function(e){var t=new v.ub({developmentRecordLearningNeedId:e});return function(e){return U.s.deleteLearningNeedDevelopmentRecord(void 0,v.ub.fromJS(t)).then((function(t){return e(Object(Aa.a)({message:"Learning need successfully deleted.",variant:"success"})),t})).catch((function(t){throw e(Object(Aa.b)(t)),t}))}}(t))},setRequestBody:function(t){return e(Yo(t))},addNotification:function(t){return e(G.a({message:t,variant:"success"}))}}}))((function(e){var t,i,n=e.open,o=e.onClose,s=e.onShowAddCourse,l=e.onShowAddActivity,d=e.licenseId,u=e.competencyFrameworkId,p=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(z.useTheme)(),T=Object(z.useMediaQuery)(w.breakpoints.down("xs")),P=Object(z.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),M=Object(c.a)(G,2),q=M[0],W=M[1],V=E(v.Kd.ViewPortalDevelopmentRecordLearningNeeds),_=E(v.Kd.DeletePortalDevelopmentRecordLearningNeeds),Y=E(v.Kd.ManagePortalDevelopmentRecords),$=xs(),H=function(){var e={userId:y,licenseId:d,competencyFrameworkId:u,periodStartDate:Object(N.e)(p),periodEndDate:Object(N.e)(f)};L(void 0),m(e).then((function(e){return L(e)}))};Object(r.useEffect)((function(){n&&function(){var e={userId:y,licenseId:d,competencyFrameworkId:u,periodStartDate:Object(N.e)(p),periodEndDate:Object(N.e)(f)};L(void 0),m(e).then((function(e){return L(e)}))}()}),[y,d,p,f,n,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(Ta.number)(),isCourse:Object(Ta.boolean)(),sessionParticipantId:Object(Ta.number)(),reflection:Object(Ta.string)(),action:Object(Ta.string)()}):t.push({developmentRecordId:Object(Ta.number)(),isCourse:Object(Ta.boolean)(),activityParticipantId:Object(Ta.number)(),reflection:Object(Ta.string)(),action:Object(Ta.string)()})})),t}(),Z=Object(Ta.object)().shape(null===Q||void 0===Q?void 0:Q.reduce(Cs,{})),X={initialValues:{developmentRecordList:K},validationSchema:Object(Ta.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(){q||(j("Development record successfully saved."),H()),W(!1),U(!1),t.setSubmitting(!1)})).catch((function(){W(!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=a.a.createElement(h.Box,{mb:2},a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,md:4,stretchContent:!0},a.a.createElement(h.Button,{color:"primary",variant:"text",startIcon:a.a.createElement(h.SystemIcon,{size:"sm",icon:"Add"}),onClick:l},"Add Activity"),a.a.createElement(h.Button,{color:"primary",variant:"text",startIcon:a.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 a.a.createElement(ba.a,{size:"md",open:n,onClose:ee?o:function(){J.current&&J.current.dirty&&Y?U(!0):o()}},a.a.createElement(ga.SideDrawerHeader,{titleBar:{title:a.a.createElement(h.Box,null,a.a.createElement(h.Typography,{variant:"h5"},"Development Record")),subtitle:a.a.createElement(h.Box,null,a.a.createElement(h.Box,{mb:1},a.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.")),a.a.createElement(h.Box,null,a.a.createElement(h.Typography,{variant:"subtitle2",color:"textPrimary"},"".concat(Object(N.c)(p,"MMMM DD, YYYY")," - ").concat(Object(N.c)(f,"MMMM DD, YYYY"))))),actionRow:a.a.createElement(h.IconButton,{onClick:function(){x({licenseId:d,frameworkId:u,periodStartDate:Object(N.e)(p),periodEndDate:Object(N.e)(f)}),window.open("/developmentrecord/print","developmentrecord_".concat(d),"width=977px height=1006px")},color:"default",id:"printButton"},a.a.createElement(h.SystemIcon,{icon:"Print",size:"sm"}))}}),void 0===D?a.a.createElement(a.a.Fragment,null,a.a.createElement(ga.SideDrawerBody,{maxWidth:!1},a.a.createElement(Ln,{type:"filter-drawer"})),a.a.createElement(ga.SideDrawerFooter,null,a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:3}),a.a.createElement(h.Grid,{item:!0,xs:3,stretchContent:!0},a.a.createElement(h.Button,{variant:"outlined",color:"default",fullWidth:!0,onClick:o},"Cancel")),a.a.createElement(h.Grid,{item:!0,xs:3,stretchContent:!0},a.a.createElement(h.Button,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,disabled:!0},"Save")),a.a.createElement(h.Grid,{item:!0,xs:3})))):ee?a.a.createElement(a.a.Fragment,null,a.a.createElement(ga.SideDrawerBody,null,te,a.a.createElement(h.Box,null,a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center",alignContent:"center",alignItems:"center"},a.a.createElement(h.Row,{mainAxisAlignment:"center",crossAxisAlignment:"middle"},a.a.createElement(h.Alert,{type:"info",variant:"standard"},"No records found."))))),a.a.createElement(ga.SideDrawerFooter,null,a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:3}),a.a.createElement(h.Grid,{item:!0,xs:3,stretchContent:!0},a.a.createElement(h.Button,{variant:"outlined",color:"default",fullWidth:!0,onClick:o},"Cancel")),a.a.createElement(h.Grid,{item:!0,xs:3,stretchContent:!0},a.a.createElement(h.Button,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,disabled:!0},"Save")),a.a.createElement(h.Grid,{item:!0,xs:3})))):a.a.createElement(wa.Formik,{initialValues:X.initialValues,validationSchema:X.validationSchema,validateOnBlur:!1,validateOnChange:!1,onSubmit:X.onSubmit,innerRef:J,key:"development-record"},(function(e){return a.a.createElement(a.a.Fragment,null,a.a.createElement(ga.SideDrawerBody,null,a.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,n=t.isCourse?void 0:t.sessionActivityParticipantId;return a.a.createElement(h.Box,{key:"".concat(t.sessionActivityParticipantId,"_").concat(i.toString()),mb:1,className:$.boxBorder},a.a.createElement(h.Box,{m:2},a.a.createElement(h.Grid,{container:!0,spacing:"card"},a.a.createElement(h.Grid,{item:!0,xs:5,sm:2},a.a.createElement(h.Column,null,a.a.createElement(h.Typography,{variant:"subtitle2",color:"textSecondary"},"Date"),a.a.createElement(h.Row,{mainAxisAlignment:"center"},a.a.createElement(h.Typography,{variant:"body1",color:"textPrimary"},Object(N.c)(t.courseActivityDate))))),a.a.createElement(h.Grid,{item:!0,xs:7,sm:1},a.a.createElement(h.Column,null,a.a.createElement(h.Typography,{variant:"subtitle2",color:"textSecondary"},"Hours"),a.a.createElement(h.Row,{mainAxisAlignment:"center"},a.a.createElement(h.Typography,{variant:"body1",color:"textPrimary"},t.hours)))),a.a.createElement(h.Grid,{item:!0,xs:5,sm:2},a.a.createElement(h.Column,null,a.a.createElement(h.Typography,{variant:"subtitle2",color:"textSecondary"},t.isCourse&&"Format"),a.a.createElement(h.Row,{mainAxisAlignment:"center"},a.a.createElement(h.Typography,{variant:"body1",color:"textPrimary"},t.isCourse&&t.courseFormat)))),a.a.createElement(h.Grid,{item:!0,xs:5,sm:4,md:5},t.isPending?a.a.createElement(h.Column,null,a.a.createElement(h.Chip,{variant:"outlined",label:"Pending Admin Approval",size:"small",colorMode:"light",color:"warning",width:"auto"})):a.a.createElement(h.Column,null,a.a.createElement(h.Typography,{variant:"body1",color:"textSecondary"},t.licenseName),a.a.createElement(h.Row,{mainAxisAlignment:"center"},a.a.createElement(h.Typography,{variant:"body1",color:"textPrimary"},"".concat(t.hours," ").concat(t.creditName))))),a.a.createElement(h.Grid,{item:!0,xs:2,sm:3,md:2,alignment:"center-right"},a.a.createElement(h.Tooltip,{title:T?"Delete ".concat(t.isCourse?"Course":"Activity"):"",placement:"bottom"},a.a.createElement(h.Button,{color:"primary",variant:"text",endIcon:a.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(Aa.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(Aa.b)("The activity participant id must be greater than 0.")}(t.sessionActivityParticipantId)}},!T&&a.a.createElement(h.Typography,{variant:"body2"},"Delete ",t.isCourse?"Course":"Activity"))))),a.a.createElement(h.Grid,{container:!0,spacing:"card"},a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.Column,null,a.a.createElement(h.Typography,{variant:"subtitle2",color:"textSecondary"},t.isCourse?"Course":"Activity"),a.a.createElement(h.Row,{mainAxisAlignment:"center"},a.a.createElement(h.Typography,{variant:"body1",color:"textPrimary",weight:"bold"},t.courseActivityTitle))))),a.a.createElement(h.Grid,{container:!0,spacing:"card"},a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"top-left"},a.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:P?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}))),a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:8,alignment:"center-left"},a.a.createElement(h.Typography,{variant:"subtitle2",color:"textSecondary"},"What learning need has this activity addressed?")),a.a.createElement(h.Grid,{item:!0,xs:4,alignment:"center-right"},a.a.createElement(h.Button,{color:"primary",variant:"text",onClick:function(){return function(e,t,i){W(!0),void 0===t&&void 0===i||O(e,t,i),J.current&&J.current.dirty&&Y?J.current.handleSubmit():W(!1)}(t.developmentRecordId,r,n)},disabled:!V},a.a.createElement(h.Typography,{variant:"subtitle2",className:$.selectButtonLabel},"Select Learning Need(s)")))),t.learningNeeds&&t.learningNeeds.map((function(e){return a.a.createElement(h.Grid,{container:!0,spacing:0,key:e.developmentRecordLearningNeedId},a.a.createElement(h.Grid,{item:!0,xs:10},a.a.createElement(h.Typography,{variant:"body1",color:"textPrimary"},0===e.subCategoryId?e.competencyName:e.subCategoryName)),a.a.createElement(h.Grid,{item:!0,xs:2,alignment:"center"},a.a.createElement(h.Button,{color:"primary",variant:"text",startIcon:a.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(Aa.b)("The development record learning need id must be greater than 0.")},disabled:!_})))})),a.a.createElement(h.Grid,{container:!0,spacing:"card"},a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"top-left"},a.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})))))})))),a.a.createElement(ga.SideDrawerFooter,null,a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:3}),a.a.createElement(h.Grid,{item:!0,xs:3,stretchContent:!0},a.a.createElement(h.Button,{variant:"outlined",color:"default",fullWidth:!0,onClick:o,disabled:e.isSubmitting},"Cancel")),a.a.createElement(h.Grid,{item:!0,xs:3,stretchContent:!0},a.a.createElement(h.Button,{form:"development-record",type:"submit",variant:"contained",color:"primary",fullWidth:!0,disabled:!Y,loading:e.isSubmitting},"Save")),a.a.createElement(h.Grid,{item:!0,xs:3}))))})),a.a.createElement(Xo,{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)}}))})),ws=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(Qo(t))}}})),Ts=Object(d.o)(ws((function(e){var t,i=e.userId,n=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,p=Object(r.useState)(),v=Object(c.a)(p,2),f=v[0],m=v[1],y=xs();Object(r.useEffect)((function(){var e={userId:i,licenseId:Number(s),competencyFrameworkId:u,periodStartDate:l,periodEndDate:d};m(void 0),n(e).then((function(e){m(e)}))}),[i,s,l,d,n,u]);return a.a.createElement(h.Box,{m:3,maxWidth:"1100px"},a.a.createElement(h.Grid,{container:!0,spacing:"card"},a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center-right",alignItems:"flex-end",alignContent:"flex-end",className:y.printButton},a.a.createElement(h.Box,{width:"100%",textAlign:"right"},a.a.createElement(h.Button,{onClick:function(){return window.onafterprint=window.close,window.print(),!1},variant:"contained",color:"primary",size:"small"},"Print")))),a.a.createElement(h.Box,null,a.a.createElement(h.Typography,{variant:"h5"},"Development Record")),a.a.createElement(h.Box,null,a.a.createElement(h.Box,{mb:1},a.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.")),a.a.createElement(h.Box,null,a.a.createElement(h.Typography,{variant:"subtitle2",color:"textPrimary"},"".concat(Object(N.c)(l,"MMMM DD, YYYY")," - ").concat(Object(N.c)(d,"MMMM DD, YYYY"))))),a.a.createElement("br",null),void 0===f?a.a.createElement(h.Backdrop,{open:!0},a.a.createElement(h.CircularProgress,{color:"secondary"})):0===(null===f||void 0===f||null===(t=f.developmentRecord)||void 0===t?void 0:t.length)?a.a.createElement(h.Box,null,a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center",alignContent:"center",alignItems:"center"},a.a.createElement(h.Row,{mainAxisAlignment:"center",crossAxisAlignment:"middle"},a.a.createElement(h.Alert,{type:"info",variant:"standard"},"No records found.")))):a.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,n,o,s;return a.a.createElement(h.Box,{key:"".concat(e.sessionActivityParticipantId,"_").concat(t.toString()),m:1,className:Object(ro.default)(y.pagebreak,y.boxBorder)},a.a.createElement(h.Box,{m:2},a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:2},a.a.createElement(h.Column,null,a.a.createElement(h.Typography,{variant:"subtitle2",color:"textSecondary"},"Date"),a.a.createElement(h.Row,{mainAxisAlignment:"center"},a.a.createElement(h.Typography,{variant:"body1",color:"textPrimary"},Object(N.c)(e.courseActivityDate))))),a.a.createElement(h.Grid,{item:!0,xs:1},a.a.createElement(h.Column,null,a.a.createElement(h.Typography,{variant:"subtitle2",color:"textSecondary"},"Hours"),a.a.createElement(h.Row,{mainAxisAlignment:"center"},a.a.createElement(h.Typography,{variant:"body1",color:"textPrimary"},e.hours)))),a.a.createElement(h.Grid,{item:!0,xs:3},a.a.createElement(h.Column,null,a.a.createElement(h.Typography,{variant:"subtitle2",color:"textSecondary"},e.isCourse&&"Format"),a.a.createElement(h.Row,{mainAxisAlignment:"center"},a.a.createElement(h.Typography,{variant:"body1",color:"textPrimary"},e.isCourse&&e.courseFormat)))),a.a.createElement(h.Grid,{item:!0,xs:6},e.isPending?a.a.createElement(h.Column,null,a.a.createElement(h.Chip,{variant:"outlined",label:"Pending Admin Approval",size:"small",colorMode:"light",color:"warning",width:"auto"})):a.a.createElement(h.Column,null,a.a.createElement(h.Typography,{variant:"body1",color:"textSecondary"},e.licenseName),a.a.createElement(h.Row,{mainAxisAlignment:"center"},a.a.createElement(h.Typography,{variant:"body1",color:"textPrimary"},"".concat(e.hours," ").concat(e.creditName))))),a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.Column,null,a.a.createElement(h.Typography,{variant:"subtitle2",color:"textSecondary"},e.isCourse?"Course":"Activity"),a.a.createElement(h.Row,{mainAxisAlignment:"center"},a.a.createElement(h.Typography,{variant:"body1",color:"textPrimary",weight:"bold"},""===(null===(i=e.courseActivityTitle)||void 0===i?void 0:i.trim())?a.a.createElement("br",null):e.courseActivityTitle)))),a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"top-left"},a.a.createElement(h.Box,{className:y.boxBorderPrint,width:"100%"},a.a.createElement(h.Box,{m:1},a.a.createElement(h.Column,null,a.a.createElement(h.Typography,{variant:"subtitle2",color:"textSecondary"},"Reflection on Development. What have I learnt? How can I use this?"),a.a.createElement(h.Row,{mainAxisAlignment:"center"},a.a.createElement(h.Typography,{variant:"body1",color:"textPrimary"},""===(null===(r=e.reflection)||void 0===r?void 0:r.trim())?a.a.createElement("br",null):e.reflection)))))),a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"top-left"},a.a.createElement(h.Box,{className:y.boxBorderPrint,width:"100%"},a.a.createElement(h.Box,{m:1},a.a.createElement(h.Column,null,a.a.createElement(h.Row,{mainAxisAlignment:"center"},a.a.createElement(h.Typography,{variant:"subtitle2",color:"textSecondary"},"What learning need has this activity addressed?")),0===((null===e||void 0===e||null===(n=e.learningNeeds)||void 0===n?void 0:n.length)||0)?a.a.createElement("br",null):null===e||void 0===e||null===(o=e.learningNeeds)||void 0===o?void 0:o.map((function(e){return a.a.createElement(h.Row,{mainAxisAlignment:"center",key:e.developmentRecordLearningNeedId},a.a.createElement(h.Typography,{variant:"body1",color:"textPrimary"},0===e.subCategoryId?e.competencyName:e.subCategoryName))})))))),a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"top-left"},a.a.createElement(h.Box,{className:y.boxBorderPrint,width:"100%"},a.a.createElement(h.Box,{m:1},a.a.createElement(h.Column,null,a.a.createElement(h.Typography,{variant:"subtitle2",color:"textSecondary"},"Do I need to take any further action?"),a.a.createElement(h.Row,{mainAxisAlignment:"center"},a.a.createElement(h.Typography,{variant:"body1",color:"textPrimary"},""===(null===(s=e.action)||void 0===s?void 0:s.trim())?a.a.createElement("br",null):e.action)))))))))}))))}))),Ps=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 U.s.getAllDevelopmentRecordLearningNeeds(void 0,v.ec.fromJS(i)).then((function(e){return e})).catch((function(t){return e(Object(Aa.b)(t)),null}))}));var i},createLearningNeedDevelopmentRecord:function(t){return e((i=t,function(e){return U.s.createLearningNeedDevelopmentRecord(void 0,v.V.fromJS(i)).then((function(t){return e(Object(Aa.a)({message:"Learning need successfully saved.",variant:"success"})),t})).catch((function(t){return e(Object(Aa.b)(t)),null}))}));var i}}}))((function(e){var t,i,n,o=e.open,s=e.onShowDevelopmentRecordDrawer,l=e.userId,d=e.licenseId,u=e.periodStartDate,p=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(v.Kd.ManagePortalDevelopmentRecordLearningNeeds),w=Object(r.useState)(!1),T=Object(c.a)(w,2),P=T[0],A=T[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)(p)};x(void 0),m(e).then((function(e){return x(e)}))}}),[m,o,l,f,d,u,p,S]);var k,L={};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)?L=e.isCustomNeed?Object(D.a)(Object(D.a)({},L),{},Object(kn.a)({},"learning_need_".concat(e.developmentPlanId,"_1"),e.isSelected)):Object(D.a)(Object(D.a)({},L),{},Object(kn.a)({},"learning_need_".concat(e.competencyId,"_0"),e.isSelected)):null===(r=e.subCategories)||void 0===r||r.forEach((function(t){L=Object(D.a)(Object(D.a)({},L),{},Object(kn.a)({},"learning_need_".concat(e.competencyId,"_").concat(t.subCategoryId),t.isSelected))}))})));var J={initialValues:{learningNeedList:L},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 a,n,o;0===(null===(a=r.subCategories)||void 0===a?void 0:a.length)||void 0===(null===(n=r.subCategories)||void 0===n?void 0:n.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(a){e==="learning_need_".concat(r.competencyId,"_").concat(a.subCategoryId)&&t[e]&&i.push({competencyFrameworkId:r.competencyFrameworkId,competencyId:r.competencyId,subCategoryId:a.subCategoryId,developmentPlanId:a.developmentPlanId})}))}))})),y({developmentRecordId:f,competencyFrameworkId:S,sessionParticipantId:g,activityParticipantId:b,developmentRecordLearningNeeds:i}).then((function(){A(!1),s(d)})).catch((function(){return A(!1)}))}};return a.a.createElement(h.SideDrawer,{size:"md",open:o,onClose:function(){return s(d)}},a.a.createElement(ga.SideDrawerHeader,{titleBar:{title:a.a.createElement(h.Box,null,a.a.createElement(h.Row,{crossAxisAlignment:"middle"},a.a.createElement(h.Button,{color:"primary",variant:"text",startIcon:a.a.createElement(h.SystemIcon,{size:"md",icon:"Back"}),onClick:function(){return s(d)}}),a.a.createElement(h.Typography,{variant:"h5"},"Learning Needs"))),subtitle:a.a.createElement(h.Typography,{variant:"subtitle1",color:"textSecondary"},"Select the learning needs that apply to this course or activity.")}}),a.a.createElement(ga.SideDrawerBody,null,void 0===C?a.a.createElement(Ln,{type:"filter-drawer"}):void 0===(null===C||void 0===C?void 0:C.developmentRecordLearningNeeds)?a.a.createElement(h.Box,null,a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center",alignContent:"center",alignItems:"center"},a.a.createElement(h.Row,{mainAxisAlignment:"center",crossAxisAlignment:"middle"},a.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)?a.a.createElement(h.Box,null,a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center",alignContent:"center",alignItems:"center"},a.a.createElement(h.Row,{mainAxisAlignment:"center",crossAxisAlignment:"middle"},a.a.createElement(h.Alert,{type:"info",variant:"standard"},"No learning need found.")))):a.a.createElement(wa.Formik,{initialValues:J.initialValues,onSubmit:J.onSubmit,key:"learning-need"},a.a.createElement(h.Form,{id:"learning-need",formikContext:!0},a.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,n;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)?a.a.createElement(h.Box,{mb:1,style:{border:"1px solid #E2E2E2",borderRadius:"5px"},key:"learningNeedList.learning_need_".concat(e.competencyId,"_").concat(t)},a.a.createElement(h.Box,{m:2},a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:1,alignment:"center-right"},a.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})),a.a.createElement(h.Grid,{item:!0,xs:11,alignment:"center-left"},a.a.createElement(h.Typography,{variant:"h6"},e.name))))))):a.a.createElement(h.Box,{mb:1,style:{border:"1px solid #E2E2E2",borderRadius:"5px"},key:"learningNeedList.learning_need_".concat(e.competencyId,"_0")},a.a.createElement(h.Box,{m:2},a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.Typography,{variant:"h6"},e.name)),a.a.createElement(h.Grid,{item:!0,xs:12},null===(n=e.subCategories)||void 0===n?void 0:n.map((function(e){return a.a.createElement(h.Grid,{container:!0,spacing:"form",key:"learningNeedList.learning_need_".concat(e.competencyId,"_").concat(e.subCategoryId)},a.a.createElement(h.Grid,{item:!0,xs:1,alignment:"center-right"},a.a.createElement(h.Checkbox,{color:"primary",id:"learningNeedList.learning_need_".concat(e.competencyId,"_").concat(e.subCategoryId),formikContext:!0})),a.a.createElement(h.Grid,{item:!0,xs:11,alignment:"center-left"},a.a.createElement(h.Typography,{variant:"body1",style:{fontSize:"16px"}},e.description)))}))))))})))))),a.a.createElement(ga.SideDrawerFooter,null,a.a.createElement(h.Grid,{container:!0,justify:"center",spacing:"form"},a.a.createElement(h.Grid,{item:!0,lg:3,md:4,xs:6,stretchContent:!0,alignment:"center"},a.a.createElement(h.Button,{variant:"outlined",color:"default",disabled:P,fullWidth:!0,onClick:function(){return s(d)}},"Cancel")),a.a.createElement(h.Grid,{item:!0,lg:3,md:4,xs:6,stretchContent:!0,alignment:"center"},a.a.createElement(h.Button,{type:"submit",form:"learning-need",variant:"contained",color:"primary",fullWidth:!0,loading:P,disabled:!j||void 0===C||0===(null===C||void 0===C||null===(n=C.developmentRecordLearningNeeds)||void 0===n?void 0:n.length)},"Add Learning Needs")))))})),As=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(on.b)(t))},createDevelopmentOverallReflection:function(t){return e(function(e){return function(t){return U.q.create(void 0,v.S.fromJS(e)).then((function(e){return t(Object(Aa.a)({message:"Overall reflection successfully saved.",variant:"success"})),e})).catch((function(e){return t(Object(Aa.b)(e)),null}))}}(t))},getDevelopmentOverallReflection:function(t){return e(Zo(t))},setRequestBody:function(t){return e(Yo(t))},updateDevelopmentOverallReflection:function(t){return e(function(e){return function(t){return U.q.update(void 0,v.ze.fromJS(e)).then((function(e){return t(Object(Aa.a)({message:"Overall reflection successfully saved.",variant:"success"})),e})).catch((function(e){return t(Object(Aa.b)(e)),null}))}}(t))}}}))((function(e){var t,i=e.open,n=e.onClose,o=e.competencyFrameworkId,s=e.periodStartDate,l=e.periodEndDate,d=e.userId,u=e.confirmDialog,p=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(v.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],T=j[1],P=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(Ta.object)().shape({reflection:Object(Ta.string)()}),onSubmit:function(e,t){var i,r,a=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,v=function(){0===c&&0===h?p({userId:null!==d&&void 0!==d?d:0,developmentOverallReflectionCompetencyFrameworkId:o,startDate:s,endDate:l,reflection:a}).then((function(){t.setSubmitting(!1),n()})):m({userId:null!==d&&void 0!==d?d:0,developmentOverallReflectionCompetencyFrameworkId:o,startDate:s,endDate:l,reflection:a}).then((function(){t.setSubmitting(!1),n()}))};w?v():P.current&&P.current.dirty?u({message:"Do you want to save changes first?",title:"Confirm",OnConfirm:function(){v()},onCancel:function(){n()},onClose:function(){n()}}):n()}};return a.a.createElement(ba.a,{size:"md",open:i,onClose:0===o&&null===O||void 0===O?n:function(){T(!1),P.current&&P.current.handleSubmit()}},a.a.createElement(ga.SideDrawerHeader,{titleBar:{title:a.a.createElement(h.Box,null,a.a.createElement(h.Typography,{variant:"h5"},"Overall Reflection")),subtitle:a.a.createElement(h.Box,null,a.a.createElement(h.Box,{mb:1},a.a.createElement(h.Typography,{variant:"subtitle1",color:"textSecondary"},"Add an overall reflection of your learning and development for the year.")),a.a.createElement(h.Box,null,a.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:a.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")}},a.a.createElement(h.SystemIcon,{icon:"Print",size:"sm"}))}}),void 0===O?a.a.createElement(ga.SideDrawerBody,null,a.a.createElement(Ln,{type:"filter-drawer"})):a.a.createElement(a.a.Fragment,null,0===o&&null===O?a.a.createElement(ga.SideDrawerBody,null,a.a.createElement(h.Grid,{container:!0,spacing:"form",justifyContent:"center"},a.a.createElement(h.Grid,{item:!0,xs:12,sm:12,lg:12},a.a.createElement(h.Box,{maxWidth:"300px",margin:"0 auto",pb:2},a.a.createElement(h.Alert,{variant:"standard",type:"info",icon:"Info"},a.a.createElement(h.Typography,{color:"primary",weight:"semi-bold",align:"center"},"No associated framework.")))))):a.a.createElement(wa.Formik,{initialValues:J.initialValues,onSubmit:J.onSubmit,validationSchema:J.validationSchema,innerRef:P,key:"overall-reflection"},(function(e){return a.a.createElement(h.Form,{id:"overall-reflection",formikContext:!0},a.a.createElement(ga.SideDrawerBody,{maxWidth:!1},a.a.createElement(h.Grid,{container:!0,spacing:"form",justifyContent:"center"},a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.TextEditor,{fullWidth:!0,id:"reflection",config:g,formikContext:!0,disabled:!b})))),a.a.createElement(ga.SideDrawerFooter,null,a.a.createElement(h.Grid,{container:!0,justifyContent:"center",spacing:"form"},a.a.createElement(h.Grid,{item:!0,lg:2,md:4,xs:6,stretchContent:!0,alignment:"center"},a.a.createElement(h.Button,{fullWidth:!0,color:"default",variant:"outlined",onClick:0===o&&null===O||void 0===O?n:function(){T(!1),P.current&&P.current.handleSubmit()}},"Cancel")),a.a.createElement(h.Grid,{item:!0,lg:2,md:4,xs:6,stretchContent:!0,alignment:"center"},a.a.createElement(h.Button,{fullWidth:!0,color:"primary",variant:"contained",type:"submit",disabled:!e.dirty,loading:e.isSubmitting&&w,onClick:function(){T(!0),P.current&&P.current.handleSubmit()}},"Save")))))}))))})),Ns=Object(z.makeStyles)((function(e){var t=e.spacing;return Object(z.createStyles)({printButton:{"@media print":{display:"none !important"}},pagebreak:{"@media print":{pageBreakInside:"avoid",pageBreakBefore:"auto"}},containerBorder:{minHeight:t(87.5)}})})),ks=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(Zo(t))}}})),Ds=Object(d.o)(ks((function(e){var t=e.userId,i=e.getDevelopmentOverallReflection,n=e.printRequestBody,o=Object(r.useState)(),s=Object(c.a)(o,2),l=s[0],d=s[1],u=Ns();Object(r.useEffect)((function(){var e;d(void 0);var r={userId:t,developmentOverallReflectionCompetencyFrameworkId:null!==(e=null===n||void 0===n?void 0:n.frameworkId)&&void 0!==e?e:0,startDate:null===n||void 0===n?void 0:n.periodStartDate,endDate:null===n||void 0===n?void 0:n.periodEndDate};i(r).then((function(e){d(e)}))}),[i,t,n]);return a.a.createElement(h.Box,{margin:"20px auto",maxWidth:"1100px"},a.a.createElement(h.Grid,{container:!0,spacing:"card"},a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center-right",alignItems:"flex-end",alignContent:"flex-end",className:u.printButton},a.a.createElement(h.Box,{width:"100%",textAlign:"right"},a.a.createElement(h.Button,{onClick:function(){return window.onafterprint=window.close,window.print(),!1},variant:"contained",color:"primary",size:"small"},"Print"))),a.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},a.a.createElement(h.Column,null,a.a.createElement(h.Typography,{variant:"h5"},"Overall Reflection"),a.a.createElement(h.Typography,{variant:"subtitle1",color:"textSecondary"},"Overall reflection of your learning and development for the year."),a.a.createElement(h.Typography,{variant:"subtitle2",color:"textPrimary"},"".concat(Object(N.c)(null===n||void 0===n?void 0:n.periodStartDate,"MMMM DD, YYYY")," - ").concat(Object(N.c)(null===n||void 0===n?void 0:n.periodEndDate,"MMMM DD, YYYY")))))),a.a.createElement("br",null),void 0===l?a.a.createElement(h.Backdrop,{open:!0},a.a.createElement(h.CircularProgress,{color:"secondary"})):a.a.createElement(h.Card,{variant:"outlined"},a.a.createElement(h.CardContent,{className:u.containerBorder},a.a.createElement(h.TextEditorView,{model:Object(k.a)(null===l||void 0===l?void 0:l.reflection)}))))}))),Ls=Object(s.b)((function(e){return{loggedUser:e.users.loggedUser}}),(function(e){return{getScreenDescription:function(t){return e(Object(ia.c)(t))},getDevelopmentPlans:function(t){return e(function(e){return function(t){var i=U.r.getUserLicenseComplianceProfile(void 0,new v.vc(e));return t($o(null)),i.then((function(e){return e})).catch((function(e){t(Object(Aa.b)(e))}))}}(t))}}})),Js=Object(oo.a)(Ls((function(e){var t,i=e.loggedUser,n=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),p=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(D.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],T=Object(r.useState)(),P=Object(c.a)(T,2),A=P[0],N=P[1],L=cs();Object(r.useEffect)((function(){s&&o(v.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(D.a)(Object(D.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),n(I).then((function(e){return N(e)})).then((function(){return f(!1)})))}),[n,I]);return a.a.createElement(h.Screen,{bgColor:"default",maxWidth:"xl",titleBar:{title:(j&&""!==j.title?j.title:"Development Plans")||"Development Plans",description:j?a.a.createElement(h.Column,null,null!==j.shortDescription&&""!==j.shortDescription&&a.a.createElement(h.TextEditorView,{model:Object(k.a)(null!==(t=j.shortDescription)&&void 0!==t?t:"")}),null!==j.text&&""!==j.text&&a.a.createElement(h.Box,{mt:2},a.a.createElement(h.Button,{variant:"outlined",size:"small",onClick:function(){return b(!0)}},"Show More"))):a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Box,{mt:2.5},a.a.createElement(h.Skeleton,{width:"100%",height:20,variant:"rect"})),a.a.createElement(h.Box,{mt:1},a.a.createElement(h.Skeleton,{width:"100%",height:20,variant:"rect"})))}},p?a.a.createElement(h.Grid,{container:!0,spacing:"card"},a.a.createElement(h.Grid,{item:!0,xs:12,sm:6,md:4,key:"Period"},a.a.createElement(h.Skeleton,{height:32,variant:"rect"})),[1,2,3].map((function(e){return a.a.createElement(h.Grid,{key:"loading-state-".concat(e),item:!0,xs:12,stretchContent:!0},a.a.createElement(h.Card,{variant:"outlined"},a.a.createElement(h.CardContent,{classes:{root:L.cardContent},noTopPadding:!0},a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:10,md:8,lg:6,id:"reporting-period-label",stretchContent:!0},a.a.createElement(h.Skeleton,{height:40})),a.a.createElement(h.Grid,{item:!0,xs:12,id:"license-list-button-tile"},a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,sm:12,md:6,alignment:"center",id:"license-list-tile"},a.a.createElement(h.Grid,{container:!0},a.a.createElement(h.Grid,{item:!0,xs:8},a.a.createElement(h.Skeleton,{height:40})),a.a.createElement(h.Grid,{item:!0,xs:6},a.a.createElement(h.Skeleton,{height:40})))),a.a.createElement(h.Grid,{item:!0,sm:12,md:6,alignment:"center",id:"button-set"},a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:12,sm:4},a.a.createElement(h.Skeleton,{height:40})),a.a.createElement(h.Grid,{item:!0,xs:12,sm:4},a.a.createElement(h.Skeleton,{height:40})),a.a.createElement(h.Grid,{item:!0,xs:12,sm:4},a.a.createElement(h.Skeleton,{height:40})))))))),a.a.createElement(h.CardActions,null,a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:8,stretchContent:!0},a.a.createElement(h.Grid,{container:!0},a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.Skeleton,null)),a.a.createElement(h.Grid,{item:!0,xs:6},a.a.createElement(h.Skeleton,null)))),a.a.createElement(h.Hidden,{smDown:!0},a.a.createElement(h.Grid,{item:!0,md:2})),a.a.createElement(h.Grid,{item:!0,xs:4,md:2,alignment:"center-right",stretchContent:!0},a.a.createElement(h.Skeleton,{height:40}))))))}))):a.a.createElement(h.Grid,{container:!0,spacing:"card"},a.a.createElement(h.Grid,{item:!0,xs:12},a.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(D.a)(Object(D.a)({},I),{},{includePriorPeriods:t}))}})),a.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 a.a.createElement(us,{key:"reporting-period-".concat(t),index:t,reportingPeriod:e})})):a.a.createElement(h.Alert,{type:"info",variant:"standard"},a.a.createElement(h.Typography,null,"No UK Licenses found.")))),a.a.createElement(Ea,{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}))}))),Fs=Object(z.makeStyles)((function(e){var t=e.breakpoints,i=e.spacing;return Object(z.createStyles)({cardContent:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center","& img":{height:i(16),maxWidth:"100%"}},userCard:Object(kn.a)({width:"100%"},t.up("md"),{width:i(40)}),userAvatar:{width:i(15),height:i(15)},firmAvatar:{width:i(10),height:i(10)}})})),Bs=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(ia.c)(t))},setIsInitialLoad:function(t){return e(Object(ia.d)(t))}}}))(Object(oo.a)((function(e){var t,i,n=e.getScreenDescription,o=e.firmName,l=e.defaultScreen,u=e.isInitialLoad,p=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(v.Kd.ViewPortalTeamView)&&S&&S.userRole&&[v.re.AdministrativeAssistant,v.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],T=Object(r.useState)(),P=Object(c.a)(T,2),A=P[0],N=P[1],D=Object(d.k)(),L=Fs(),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(v.Kd.ViewPortalCourseCatalog)),B=Object(r.useRef)(E(v.Kd.ViewPortalCourseCalendar)),R=Object(r.useRef)(E(v.Kd.ViewPortalUserCourses)),U=Object(r.useRef)(E(v.Kd.ViewPortalUserCompliance)),G=Object(r.useRef)(E(v.Kd.ViewPortalLearningPlans)),M=Object(r.useRef)(E(v.Kd.ViewPortalDevelopmentPlans)),q=Object(r.useRef)(E(v.Kd.ViewPortalTranscripts)),z=Object(r.useRef)(E(v.Kd.ViewPortalInstructorView)),W=Object(r.useRef)(J&&M.current&&O),V=Object(r.useRef)(!1);V.current=I,Object(r.useEffect)((function(){S&&n(v.Md.Home).then((function(e){N(e)}))}),[S,n]),Object(r.useEffect)((function(){b&&(F.current=b.includes(v.Kd.ViewPortalCourseCatalog),B.current=b.includes(v.Kd.ViewPortalCourseCalendar),R.current=b.includes(v.Kd.ViewPortalUserCourses),U.current=b.includes(v.Kd.ViewPortalUserCompliance),G.current=b.includes(v.Kd.ViewPortalLearningPlans),M.current=b.includes(v.Kd.ViewPortalDevelopmentPlans),q.current=b.includes(v.Kd.ViewPortalTranscripts),z.current=b.includes(v.Kd.ViewPortalInstructorView),W.current=J&&M.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&&q.current)return!0;if("instructor-view"===e&&z.current)return!0;if("team-view"===e&&V.current)return!0}return!1}()&&u?(p(!1),a.a.createElement(d.c,{to:null===l||void 0===l?void 0:l.toLowerCase()})):a.a.createElement(h.Screen,{titleBar:{icon:void 0,title:(A&&void 0!==A.title&&""!==A.title?A.title:o)||"Home",description:A?a.a.createElement(h.Column,null,null!==A.shortDescription&&""!==A.shortDescription&&a.a.createElement(h.TextEditorView,{model:Object(k.a)(A.shortDescription)}),null!==A.text&&""!==A.text&&a.a.createElement(h.Box,{mt:2},a.a.createElement(h.Button,{variant:"outlined",size:"small",onClick:function(){return w(!0)}},"Show More"))):a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Box,{mt:2.5},a.a.createElement(h.Skeleton,{width:"100%",height:20,variant:"rect"})),a.a.createElement(h.Box,{mt:1},a.a.createElement(h.Skeleton,{width:"100%",height:20,variant:"rect"})))}},a.a.createElement(h.Grid,{container:!0,spacing:"card"},F.current&&a.a.createElement(h.Grid,{item:!0,xs:12,md:4},a.a.createElement(h.Card,{variant:"outlined"},a.a.createElement(h.CardActionArea,{onClick:function(){return D.push("/course-catalog")}},a.a.createElement(h.CardContent,{classes:{root:L.cardContent}},a.a.createElement(h.Typography,{variant:"h6",align:"center"},a.a.createElement(h.SystemIcon,{icon:"Courses",size:"sm"}),"\xa0 Course Catalog"),a.a.createElement(h.Typography,{variant:"body1",align:"center",style:{height:"3em"}},"Search for programs"),a.a.createElement("img",{alt:"Course Catalog",src:"/images/illustrations/course-catalog.svg"}))))),B.current&&a.a.createElement(h.Grid,{item:!0,xs:12,md:4},a.a.createElement(h.Card,{variant:"outlined"},a.a.createElement(h.CardActionArea,{onClick:function(){return D.push("/course-calendar")}},a.a.createElement(h.CardContent,{classes:{root:L.cardContent}},a.a.createElement(h.Typography,{variant:"h6",align:"center"},a.a.createElement(h.SystemIcon,{icon:"Calendar",size:"sm"}),"\xa0 Course Calendar"),a.a.createElement(h.Typography,{variant:"body1",align:"center",style:{height:"3em"}},"View offered sessions"),a.a.createElement("img",{alt:"Course Calendar",src:"/images/illustrations/course-calendar.svg"}))))),R.current&&a.a.createElement(h.Grid,{item:!0,xs:12,md:4},a.a.createElement(h.Card,{variant:"outlined"},a.a.createElement(h.CardActionArea,{onClick:function(){return D.push("/user-courses")}},a.a.createElement(h.CardContent,{classes:{root:L.cardContent}},a.a.createElement(h.Typography,{variant:"h6",align:"center"},a.a.createElement(h.SystemIcon,{icon:"MyCourses",size:"sm"}),"\xa0 My Courses"),a.a.createElement(h.Typography,{variant:"body1",align:"center",style:{height:"3em"}},"View registrations and on-demand programs in progress"),a.a.createElement("img",{alt:"My Courses",src:"/images/illustrations/my-courses.svg"}))))),U.current&&a.a.createElement(h.Grid,{item:!0,xs:12,md:4},a.a.createElement(h.Card,{variant:"outlined"},a.a.createElement(h.CardActionArea,{onClick:function(){return D.push("/compliance")}},a.a.createElement(h.CardContent,{classes:{root:L.cardContent}},a.a.createElement(h.Typography,{variant:"h6",align:"center"},a.a.createElement(h.SystemIcon,{icon:"Cem-Compliance",size:"sm"}),"\xa0 Compliance"),a.a.createElement(h.Typography,{variant:"body1",align:"center",style:{height:"3em"}},"Check status and credits needed"),a.a.createElement("img",{alt:"Compliance",src:"/images/illustrations/compliance.svg"}))))),G.current&&a.a.createElement(h.Grid,{item:!0,xs:12,md:4},a.a.createElement(h.Card,{variant:"outlined"},a.a.createElement(h.CardActionArea,{onClick:function(){return D.push("/learning-plans")}},a.a.createElement(h.CardContent,{classes:{root:L.cardContent}},a.a.createElement(h.Typography,{variant:"h6",align:"center"},a.a.createElement(h.SystemIcon,{icon:"LearningPlans",size:"sm"}),"\xa0 Learning Plans"),a.a.createElement(h.Typography,{variant:"body1",align:"center",style:{height:"3em"}},"Monitor progress of assigned learning"),a.a.createElement("img",{alt:"Learning Plans",src:"/images/illustrations/learning-plans.svg"}))))),W.current&&a.a.createElement(h.Grid,{item:!0,xs:12,md:4},a.a.createElement(h.Card,{variant:"outlined"},a.a.createElement(h.CardActionArea,{onClick:function(){return D.push("/development-plans")}},a.a.createElement(h.CardContent,{classes:{root:L.cardContent}},a.a.createElement(h.Typography,{variant:"h6",align:"center"},a.a.createElement(h.SystemIcon,{icon:"DevelopmentPlan",size:"sm"}),"\xa0 Development Plans"),a.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"),a.a.createElement("img",{alt:"Development Plans",src:"/images/illustrations/development-plans.svg"}))))),q.current&&a.a.createElement(h.Grid,{item:!0,xs:12,md:4},a.a.createElement(h.Card,{variant:"outlined"},a.a.createElement(h.CardActionArea,{onClick:function(){return D.push("/transcripts")}},a.a.createElement(h.CardContent,{classes:{root:L.cardContent}},a.a.createElement(h.Typography,{variant:"h6",align:"center"},a.a.createElement(h.SystemIcon,{icon:"Transcript",size:"sm"}),"\xa0 Transcripts"),a.a.createElement(h.Typography,{variant:"body1",align:"center",style:{height:"3em"}},"View course history, certificates and evaluations"),a.a.createElement("img",{alt:"Transcripts",src:"/images/illustrations/transcripts.svg"}))))),z.current&&a.a.createElement(h.Grid,{item:!0,xs:12,md:4},a.a.createElement(h.Card,{variant:"outlined"},a.a.createElement(h.CardActionArea,{onClick:function(){return D.push("/instructor-view")}},a.a.createElement(h.CardContent,{classes:{root:L.cardContent}},a.a.createElement(h.Typography,{variant:"h6",align:"center"},a.a.createElement(h.SystemIcon,{icon:"Instructor",size:"sm"}),"\xa0 Instructor View"),a.a.createElement(h.Typography,{variant:"body1",align:"center",style:{height:"3em"}},"View sessions, approve attendance, and print attendance forms"),a.a.createElement("img",{alt:"Instructor View",src:"/images/illustrations/instructor-view.svg"}))))),V.current&&a.a.createElement(h.Grid,{item:!0,xs:12,md:4},a.a.createElement(h.Card,{variant:"outlined"},a.a.createElement(h.CardActionArea,{onClick:function(){return D.push("/team-view")}},a.a.createElement(h.CardContent,{classes:{root:L.cardContent}},a.a.createElement(h.Typography,{variant:"h6",align:"center"},a.a.createElement(h.SystemIcon,{icon:"User",size:"sm"}),"\xa0 Team View"),a.a.createElement(h.Typography,{variant:"body1",align:"center",style:{height:"3em"}},"Manage team"),a.a.createElement("img",{alt:"Team View",src:"/images/illustrations/team-view.svg"})))))),a.a.createElement(Ea,{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}))}))),Rs=Object(s.b)((function(e){return{firmLicenses:e.licenses.firmLicenses}}),(function(){return{}}))((function(e){var t,i=e.children,n=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),p=Object(c.a)(u,2),v=p[0],f=p[1],m=Boolean(v),y=m?"user-info":void 0;return a.a.createElement(h.Grid,{spacing:"form",container:!0},a.a.createElement(h.Grid,{item:!0,xs:12,onClick:function(e){f(e.currentTarget)}},i),a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.Popover,{id:y,open:m||l,anchorEl:v,onClose:function(){f(null)},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}},a.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,a=null===n||void 0===n||null===(i=n.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===a||void 0===a?void 0:a.typeId)})),o=null===(i=e.sessionLicenseProperties)||void 0===i?void 0:i.filter((function(t){var i,r,a=null===n||void 0===n||null===(i=n.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===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=ja()(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 a.a.createElement(h.Box,null,a.a.createElement(h.Row,{crossAxisAlignment:"middle"},a.a.createElement(h.Typography,{key:e.name,variant:"button",display:"inline"},e.name),2===e.licenseStatus&&a.a.createElement(h.Typography,{variant:"caption",color:"secondary",display:"inline"},"\xa0 Pending Approval"),3===e.licenseStatus&&a.a.createElement(h.Typography,{variant:"caption",color:"secondary",display:"inline"},"\xa0 Approval Denied")),a.a.createElement(h.Box,{ml:1},a.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)?a.a.createElement(h.Box,{p:1},a.a.createElement(h.Typography,{variant:"caption"}," - No Credits")):a.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 n,o,s,l,c=null!==(n=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!==n?n:"";return a.a.createElement(a.a.Fragment,null,i.creditValue>0?a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Typography,{variant:"caption",weight:"bold",display:"inline"},"".concat(i.creditValue," ")),a.a.createElement(h.Typography,{variant:"caption",display:"inline"},a.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?"":a.a.createElement("br",null)):"")}))):a.a.createElement(h.Box,{p:1},a.a.createElement(h.Typography,{variant:"caption"}," - No Credits"))}(e,e.sessionLicenseCredits),r&&r.length>0?a.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===n||void 0===n||null===(o=n.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 a.a.createElement(a.a.Fragment,null,a.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?a.a.createElement(h.Divider,null):"",o&&o.length>0?a.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===n||void 0===n||null===(r=n.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 a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Typography,{variant:"caption",display:"inline",style:{color:"#c2c2c2",fontWeight:"bold"}}," ".concat(null===s||void 0===s?void 0:s.label," ")),a.a.createElement(h.Typography,{variant:"caption",display:"inline"}," ".concat(l,"; ")),i%2===0?"":a.a.createElement("br",null))}))):"")))}))))))})),Us=i(120),Gs=i.n(Us),Ms=i(547),qs=i.n(Ms),zs=Object(J.makeStyles)((function(e){return{arrow:{color:e.palette.common.black},tooltip:{backgroundColor:e.palette.common.white,boxShadow:e.shadows[1],minWidth:"300px"}}})),Ws=function(e){var t,i=e.session,r=e.children,n=e.firmLicenses,o=null!==(t=i.sessionLicenses)&&void 0!==t?t:[],s=zs();return a.a.createElement(h.Tooltip,{title:a.a.createElement(h.Box,{m:1,style:{maxWidth:"525px"}},o.map((function(e){var t,i,r,o,s=null===n||void 0===n?void 0:n.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,a=null===n||void 0===n||null===(i=n.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===a||void 0===a?void 0:a.typeId)})),c=null===(i=e.sessionLicenseProperties)||void 0===i?void 0:i.filter((function(t){var i,r,a=null===n||void 0===n||null===(i=n.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===a||void 0===a?void 0:a.typeId)?Object(ii.e)(t.propertyValue,"MM/DD/YYYY"):t.propertyValue,s=!0;return 3===(null===a||void 0===a?void 0:a.typeId)&&(s=ja()(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 a.a.createElement(h.Box,null,a.a.createElement(h.Row,{crossAxisAlignment:"middle"},a.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&&a.a.createElement(h.Typography,{variant:"caption",color:"secondary",display:"inline"},"\xa0 Pending Approval"),3===e.licenseStatus&&a.a.createElement(h.Typography,{variant:"caption",color:"secondary",display:"inline"},"\xa0 Approval Denied")),a.a.createElement(h.Box,{ml:1},a.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)?a.a.createElement(h.Box,{p:1},a.a.createElement(h.Typography,{variant:"caption"}," - No Credits")):a.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 n,o,s,l,c=null!==(n=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!==n?n:"";return a.a.createElement(a.a.Fragment,null,i.creditValue>0?a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Typography,{variant:"caption",weight:"bold",display:"inline"},"".concat(i.creditValue," ")),a.a.createElement(h.Typography,{variant:"caption",display:"inline"},a.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?"":a.a.createElement("br",null)):"")}))):a.a.createElement(h.Box,{p:1},a.a.createElement(h.Typography,{variant:"caption"}," - No Credits"))}(e,e.sessionLicenseCredits),l&&l.length>0?a.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===n||void 0===n||null===(r=n.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 a.a.createElement(a.a.Fragment,null,a.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?a.a.createElement(h.Divider,null):"",c&&c.length>0?a.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===n||void 0===n||null===(r=n.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(ii.e)(t.propertyValue,"MM/DD/YYYY"):t.propertyValue;return a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Typography,{variant:"caption",display:"inline",style:{color:"#c2c2c2",fontWeight:"bold"}}," ".concat(null===s||void 0===s?void 0:s.label," ")),a.a.createElement(h.Typography,{variant:"caption",display:"inline"}," ".concat(l,"; ")),i%2===0?"":a.a.createElement("br",null))}))):"")))}))),classes:s},a.a.createElement("span",null,r))},Vs=(i(512),i(324)),_s=function(e){return{type:Vs.a,payload:e}},Ys=i(211),$s=function(e){return function(t){var i=Bi(e);U.D.downloadFile(void 0,new v.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(G.b)(e)),e}))}},Hs=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($s(t))}}})),Ks=Object(J.makeStyles)((function(e){return{arrow:{color:e.palette.common.black},tooltip:{backgroundColor:e.palette.common.white,boxShadow:e.shadows[1],minWidth:"300px"}}})),Qs=function(e){var t=e.title,i=e.children,r=Ks();return a.a.createElement(h.Tooltip,{title:t,classes:r},a.a.createElement("span",null,i))},Zs=function(e){var t,i,r,n,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 a.a.createElement(h.Grid,{container:!0,spacing:"form"},l&&a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Grid,{item:!0,lg:8,md:8,xs:12,stretchContent:!0},a.a.createElement(h.Row,{size:"max",crossAxisAlignment:"top"},a.a.createElement(h.Column,null,a.a.createElement(h.Typography,{variant:"body1",color:"textSecondary"},null!==(i=s.provider)&&void 0!==i?i:""),a.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular",color:"textPrimary"},null!==(r=s.courseTitle)&&void 0!==r?r:""),a.a.createElement(h.Typography,{variant:"body1",color:"textSecondary"},null===s||void 0===s?void 0:s.courseIdLabel)))),a.a.createElement(h.Grid,{lg:4,md:4,xs:12},d.length>0&&a.a.createElement(a.a.Fragment,null,a.a.createElement(Qs,{title:a.a.createElement(h.Box,{m:1,style:{maxWidth:"525px"}},d.length>0&&a.a.createElement(a.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})),n=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,a=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===a||void 0===a?void 0:a.typeId)})),c=null===(i=e.sessionLicenseProperties)||void 0===i?void 0:i.filter((function(t){var i,r,a=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})),n=3===(null===a||void 0===a?void 0:a.typeId)?ja()(t.propertyValue).format("MM/DD/YYYY"):t.propertyValue,s=!0;return 3===(null===a||void 0===a?void 0:a.typeId)&&(s=ja()(t.propertyValue).isValid()),""!==n&&(1===(null===a||void 0===a?void 0:a.typeId)||3===(null===a||void 0===a?void 0:a.typeId))&&s}));return a.a.createElement(h.Box,{key:e.licenseId},a.a.createElement(h.Row,{crossAxisAlignment:"middle"},a.a.createElement(h.Typography,{key:n,variant:"button",display:"inline",color:"textPrimary"},n),e.licenseStatus===v.Dd.Pending&&a.a.createElement(h.Typography,{variant:"caption",color:"secondary",display:"inline"},"\xa0 Pending Approval"),e.licenseStatus===v.Dd.Denied&&a.a.createElement(h.Typography,{variant:"caption",color:"secondary",display:"inline"},"\xa0 Approval Denied")),a.a.createElement(h.Box,{ml:1},a.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)?a.a.createElement(h.Box,{p:1},a.a.createElement(h.Typography,{variant:"caption"},"- No Credits")):a.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 n,o,s,l=null!==(n=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!==n?n:"";return a.a.createElement(a.a.Fragment,null,i.creditValue>0?a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Typography,{variant:"caption",weight:"bold",display:"inline"},"".concat(i.creditValue," ")),a.a.createElement(h.Typography,{variant:"caption",display:"inline"},a.a.createElement("span",{dangerouslySetInnerHTML:{__html:"".concat(l)}}),(null===(s=e.sessionLicenseCredits)||void 0===s?void 0:s.length)===r+1?"":"; "),r%2===0?"":a.a.createElement("br",null)):"")}))):""}(e,s),l&&l.length>0?a.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,n,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===(n=r.find((function(e){return e.propertyId===t.propertyId})))||void 0===n?void 0:n.label;return a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Typography,{variant:"caption",display:"inline",style:{color:"#c2c2c2"}}," ".concat(s,"; ")))}))):"",c&&c.length>0?a.a.createElement(h.Divider,null):"",c&&c.length>0?a.a.createElement(h.Box,{p:1,style:{backgroundColor:"#fafafa"}},null===c||void 0===c?void 0:c.map((function(t,i){var r,n,s=null===o||void 0===o||null===(r=o.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})),l=3===(null===s||void 0===s?void 0:s.typeId)?Object(N.c)(t.propertyValue,"MM/DD/YYYY"):t.propertyValue;return a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Typography,{variant:"caption",display:"inline",style:{color:"#c2c2c2",fontWeight:"bold"}}," ".concat(null===s||void 0===s?void 0:s.label," ")),a.a.createElement(h.Typography,{variant:"caption",display:"inline"}," ".concat(l,"; ")),i%2===0?"":a.a.createElement("br",null))}))):"")))}))))},a.a.createElement(h.Card,{variant:"outlined"},a.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,n=t===d.length-1;return a.a.createElement(h.Typography,{key:e.licenseId,variant:"body1",component:"p",style:{overflowWrap:"break-word"},display:"inline"},"".concat(r).concat(n?"":"; "),void 0!==e.licenseStatus&&e.licenseStatus===v.Dd.Pending&&a.a.createElement(h.Typography,{component:"p",color:"secondary",display:"inline"}," (pending)"))})))))))),a.a.createElement(h.Grid,{item:!0,lg:4,md:6,xs:12,stretchContent:!0},function(){var e,t,i,r=function(e,t){return a.a.createElement(h.Column,null,a.a.createElement(h.Typography,{variant:"body1",color:"textSecondary"},e),null!==t&&void 0!==t?t:a.a.createElement(h.Typography,{variant:"caption"},"-"))},n=!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 a.a.createElement(h.Card,{variant:"outlined",background:"default"},a.a.createElement(h.CardContent,null,a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,lg:6,md:6,xs:12},r("Published",a.a.createElement(h.Typography,{variant:"caption"},(null===s||void 0===s?void 0:s.isPublished)?"Yes":"No"))),a.a.createElement(h.Grid,{item:!0,lg:6,md:6,xs:12},r("Duration",a.a.createElement(h.Typography,{variant:"caption"},""===(null===s||void 0===s?void 0:s.duration)?"-":null===s||void 0===s?void 0:s.duration))),a.a.createElement(h.Grid,{item:!0,lg:6,md:6,xs:12},r("Waitlist",a.a.createElement(h.Typography,{variant:"caption"},(null===s||void 0===s?void 0:s.isWaitlistingAllowed)?"Yes":"No"))),a.a.createElement(h.Grid,{item:!0,lg:6,md:6,xs:12},r("Registration Limit",a.a.createElement(h.Typography,{variant:"caption"},null!==(e=null===s||void 0===s?void 0:s.registrationLimit)&&void 0!==e?e:0))),a.a.createElement(h.Grid,{item:!0,lg:6,md:6,xs:12},r("Allow Individual Attendance Date",a.a.createElement(h.Typography,{variant:"caption"},o?"Yes":"No"))),a.a.createElement(h.Grid,{item:!0,lg:6,md:6,xs:12},r("Session Approval",a.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:"-"))),a.a.createElement(h.Grid,{item:!0,lg:6,md:6,xs:12},r("Open to Clients",a.a.createElement(h.Typography,{variant:"caption"},l?"Yes":"No"))),a.a.createElement(h.Grid,{item:!0,lg:6,md:6,xs:12},r("Evaluation",a.a.createElement(h.Typography,{variant:"caption"},"".concat(null!==(t=null===s||void 0===s?void 0:s.evaluation)&&void 0!==t?t:"-")))),a.a.createElement(h.Grid,{item:!0,lg:6,md:6,xs:12},r("Questions Allowed",a.a.createElement(h.Typography,{variant:"caption"},n?"Yes":"No"))),a.a.createElement(h.Grid,{item:!0,lg:6,md:6,xs:12},r("Cost",a.a.createElement(h.Typography,{variant:"caption"},null!==(i=null===s||void 0===s?void 0:s.cost)&&void 0!==i?i:"0"))),a.a.createElement(h.Grid,{item:!0,lg:12,md:12,xs:12},r("URL",a.a.createElement(h.Typography,{variant:"body1"},""===(null===s||void 0===s?void 0:s.url)?"-":null===s||void 0===s?void 0:s.url))))))}()),a.a.createElement(h.Grid,{item:!0,lg:8,md:6,xs:12},a.a.createElement(h.Grid,{container:!0,spacing:1},a.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},a.a.createElement(h.Card,{variant:"outlined",background:"default",style:{height:120,maxHeight:175,overflow:"auto"}},a.a.createElement(h.CardContent,null,a.a.createElement(h.Column,null,a.a.createElement(h.Box,{mb:2},a.a.createElement(h.Typography,{variant:"body1",color:"textSecondary"},"Private Administrator Notes:")),a.a.createElement(h.Typography,{variant:"body1"},null===s||void 0===s?void 0:s.note))))),(null===s||void 0===s?void 0:s.sessionMaterials)&&a.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},(n=(null===s||void 0===s?void 0:s.sessionMaterials)||[])?a.a.createElement(h.Grid,{container:!0,spacing:1},null===n||void 0===n?void 0:n.map((function(e){var t;return a.a.createElement(h.Grid,{key:e.fileId,item:!0,lg:3,stretchContent:!0},a.a.createElement(h.Card,{variant:"outlined",background:"default"},a.a.createElement(h.Box,{m:1},a.a.createElement(h.Row,{crossAxisAlignment:"middle"},a.a.createElement(h.Box,{m:1},a.a.createElement(h.SystemIcon,{icon:"Materials",color:"primary",size:"md",type:"duotone"})),a.a.createElement(h.Column,null,a.a.createElement(h.Typography,{variant:"body1",color:"primary"},a.a.createElement(h.Link,{onClick:function(){var t;if("link"===(null===(t=e.libraryFile)||void 0===t?void 0:t.type)){var i,r,a=null===(i=e.libraryFile)||void 0===i?void 0:i.url;(null===(r=a)||void 0===r?void 0:r.match(/^https?:\/\//i))||(a="http://"+a),window.open(a,"_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)),a.a.createElement(h.Typography,{variant:"caption"},e.isPublic?"Public":"Private"))))))}))):null),a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.Card,{variant:"outlined",background:"default",style:{height:200,maxHeight:400,overflow:"auto"}},a.a.createElement(h.CardContent,null,a.a.createElement(h.Column,null,a.a.createElement(h.Box,{mb:2},a.a.createElement(h.Typography,{variant:"body1",color:"textSecondary"},"Description:")),a.a.createElement(h.Typography,{variant:"body1"},a.a.createElement(h.TextEditorView,{model:Object(k.a)(null===s||void 0===s?void 0:s.detail)})))))))))};Zs.defaultProps={showHeader:!0};var Xs=Hs(Zs),el=Object(s.b)((function(e){return{firmLicenses:e.licenses.firmLicenses}}),(function(){return{}}))((function(e){var t,i,r,n,o,s,l,c,d,u,p,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:"",T=(null===y||void 0===y?void 0:y.room)?"; ".concat(null===y||void 0===y?void 0:y.room):"",P=null!==(r=null===y||void 0===y?void 0:y.courseFormatPortalCategory)&&void 0!==r?r:"",A=null===y||void 0===y||null===(n=y.sessionInstructors)||void 0===n?void 0:n.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(z.useTheme)(),U=Object(z.useMediaQuery)(R.breakpoints.down("sm")),G=Object(z.useMediaQuery)(R.breakpoints.down("xs")),M=null!==(p=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!==p?p:[],q=function(e){return a.a.createElement(h.Row,{crossAxisAlignment:"middle"},a.a.createElement(h.Box,{mb:.1,mr:.5,textAlign:"center",style:{width:"20px"}},e.icon),e.label)};return a.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()}))},a.a.createElement(h.Widget,{color:b?"warning":"default"},a.a.createElement(h.ExpandableCard,{dense:!0,disableGutters:!0,variant:"none",summary:a.a.createElement(h.Row,{crossAxisAlignment:"stretch"},a.a.createElement(h.Grid,{container:!0,spacing:"form",justify:"space-between",alignItems:"center",alignContent:"center"},a.a.createElement(h.Grid,{item:!0,lg:4,md:6,xs:12,alignment:"center"},a.a.createElement(h.Row,{crossAxisAlignment:"middle"},a.a.createElement(h.Box,{ml:4,mt:2,mb:2,mr:2,minWidth:60},y&&a.a.createElement(h.CalendarBadge,{size:"sm",date:null!==(m=null===y||void 0===y?void 0:y.startDate)&&void 0!==m?m:new Date})),a.a.createElement(qs.a,{mainAxisAlignment:"top",size:"max"},y.title!==y.courseTitle&&a.a.createElement(h.Row,{crossAxisAlignment:"middle"},a.a.createElement(h.Typography,{variant:"body1"},y.title),a.a.createElement(h.Box,{m:1},(null===y||void 0===y?void 0:y.cancelledDate)?a.a.createElement(Gs.a,{color:"error",label:"Canceled",variant:"outlined",size:"small"}):!1===(null===y||void 0===y?void 0:y.isPublished)&&a.a.createElement(h.Typography,{variant:"body1"},a.a.createElement(Gs.a,{color:"warning",label:"Not Published",size:"small",variant:"outlined"})))),q({icon:a.a.createElement(h.SystemIcon,{icon:"Clock",color:"primary"}),label:a.a.createElement(h.Row,{crossAxisAlignment:"middle"},a.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&&a.a.createElement(h.Box,{ml:1},(null===y||void 0===y?void 0:y.cancelledDate)?a.a.createElement(Gs.a,{color:"error",label:"Canceled",variant:"outlined",size:"small"}):!1===(null===y||void 0===y?void 0:y.isPublished)&&a.a.createElement(h.Typography,{variant:"body1"},a.a.createElement(Gs.a,{color:"warning",label:"Not Published",size:"small",variant:"outlined"}))))}),w&&q({icon:a.a.createElement(h.SystemIcon,{icon:"Location",color:"primary",type:"solid"}),label:a.a.createElement(h.Typography,{variant:"body1",color:"textPrimary"},w," ",T)})))),a.a.createElement(h.Grid,{item:!0,lg:4,md:4,sm:6,xs:12},a.a.createElement(h.Box,{ml:U?4:0,mr:G?4:0},a.a.createElement(qs.a,{flex:1},q({icon:a.a.createElement(za,{type:"duotone",color:"primary",format:null!==P&&void 0!==P?P:""}),label:a.a.createElement(h.Typography,{variant:"body1"},y.courseFormat)}),A&&A.length>0&&q({icon:a.a.createElement(h.SystemIcon,{icon:"Instructor",color:"primary",type:"solid"}),label:a.a.createElement(h.Typography,{variant:"body1"},"Instructor(s): ",A)})))),a.a.createElement(h.Grid,{item:!0,lg:1,md:2,sm:6,xs:12,alignment:"center"},a.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"},a.a.createElement(h.Row,{flex:1,mb:.75},a.a.createElement(h.Expanded,{mr:1,flex:0},L&&L>99?a.a.createElement(h.Tooltip,{title:"Registered Count: ".concat(L&&L)},a.a.createElement("span",null,a.a.createElement(Gs.a,{color:"primary",colorMode:"dark",avatar:"R",label:"99+",size:"small",width:"xs"}))):a.a.createElement(h.Tooltip,{title:"Registered Count"},a.a.createElement("span",null,a.a.createElement(Gs.a,{color:"primary",colorMode:"dark",avatar:"R",label:L&&L,size:"small",width:"xs"})))),a.a.createElement(h.Expanded,{flex:0},y.isOnlineLearning&&y.isOnlineLearning?a.a.createElement(a.a.Fragment,null,B&&B>99?a.a.createElement(h.Tooltip,{title:"Disqualified Count: ".concat(B&&B)},a.a.createElement("span",null,a.a.createElement(Gs.a,{color:"error",colorMode:"dark",avatar:"D",label:"99+",size:"small",width:"xs"}))):a.a.createElement(h.Tooltip,{title:"Disqualified Count"},a.a.createElement("span",null,a.a.createElement(Gs.a,{color:"error",colorMode:"dark",avatar:"D",label:B&&B,size:"small",width:"xs"})))):a.a.createElement(a.a.Fragment,null,D&&D>99?a.a.createElement(h.Tooltip,{title:"Tentative Count: ".concat(D&&D)},a.a.createElement("span",null,a.a.createElement(Gs.a,{color:"default",colorMode:"dark",avatar:"T",label:"99+",size:"small",width:"xs"}))):a.a.createElement(h.Tooltip,{title:"Tentative Count"},a.a.createElement("span",null,a.a.createElement(Gs.a,{color:"default",colorMode:"dark",avatar:"T",label:D&&D,size:"small",width:"xs"})))))),a.a.createElement(h.Row,{flex:1,mb:.75},a.a.createElement(h.Expanded,{mr:1,flex:0},k&&k>99?a.a.createElement(h.Tooltip,{title:"Validated Count: ".concat(k&&k)},a.a.createElement("span",null,a.a.createElement(Gs.a,{color:"success",colorMode:"dark",avatar:"V",label:"99+",size:"small",width:"xs"}))):a.a.createElement(h.Tooltip,{title:"Validated Count"},a.a.createElement("span",null,a.a.createElement(Gs.a,{color:"success",colorMode:"dark",avatar:"V",label:k&&k,size:"small",width:"xs"})))),a.a.createElement(h.Expanded,{flex:0},y.isOnlineLearning&&y.isOnlineLearning?a.a.createElement(a.a.Fragment,null,F&&F>99?a.a.createElement(h.Tooltip,{title:"In Progress Count: ".concat(F&&F)},a.a.createElement("span",null,a.a.createElement(Gs.a,{color:"warning",colorMode:"dark",avatar:"IP",label:"99+",size:"small",width:"xs"}))):a.a.createElement(h.Tooltip,{title:"In Progress Count"},a.a.createElement("span",null,a.a.createElement(Gs.a,{color:"warning",colorMode:"dark",avatar:"IP",label:F&&F,size:"small",width:"xs"})))):a.a.createElement(a.a.Fragment,null,J&&J>99?a.a.createElement(h.Tooltip,{title:"Pending Count: ".concat(J&&J)},a.a.createElement("span",null,a.a.createElement(Gs.a,{color:"warning",colorMode:"dark",avatar:"P",label:"99+",size:"small",width:"xs"}))):a.a.createElement(h.Tooltip,{title:"Pending Count"},a.a.createElement("span",null,a.a.createElement(Gs.a,{color:"warning",colorMode:"dark",avatar:"P",label:J&&J,size:"small",width:"xs"})))))))),a.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&&a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Card,{color:"default",variant:"outlined",style:{textAlign:"left",paddingLeft:"0",minHeight:60,maxHeight:"70px",borderColor:"white"}},a.a.createElement(Ws,{firmLicenses:null!==E&&void 0!==E?E:[],session:y},a.a.createElement(h.Wrap,{flex:1,runSpacing:1,spacing:10,wrap:"wrap"},a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.Expanded,null,a.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular",style:{color:"gray"}},"Credits"))),a.a.createElement(h.Expanded,{flex:1},M.length>0&&M.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===M.length-1;return a.a.createElement(a.a.Fragment,null,e.name&&a.a.createElement(h.Typography,{variant:"body1",component:"p",style:{overflowWrap:"break-word"},display:"inline"}," ".concat(e.name),e.licenseStatus===v.Dd.Pending&&a.a.createElement(h.Typography,{component:"p",color:"secondary",display:"inline"}," (pending)"),e.licenseStatus===v.Dd.Denied&&a.a.createElement(h.Typography,{component:"p",color:"secondary",display:"inline"}," (denied)"),"".concat(i?"":"; ")))})))))))))),details:a.a.createElement(Xs,{selectedSession:y,showHeader:!1})})))})),tl=function(e){return function(t){return U.S.getInstructorSessions(void 0,v.pc.fromJS(e)).then((function(e){return e})).catch((function(e){t(Object(Aa.b)(e))}))}},il=(i(177),i(196)),rl=i.n(il),al=function(e){return function(t){var i=t.children;return a.a.createElement(rl.a,null,a.a.createElement(e,t,i))}},nl=i(520),ol=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}},sl=i(116),ll=i.n(sl),cl=i(1045),dl=i(228),ul=i.n(dl),hl=i(505),pl=i.n(hl),vl=Object(z.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}}})),fl=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 U.c.attachFile(t,void 0,r).then((function(e){return e})).catch((function(e){throw i(Object(G.b)(e)),e}))}}(t))},setFilesToUpload:function(t){return e(_s(t))}}}))((function(e){var t,i=e.onClose,n=e.uploadFile,o=e.setFilesToUpload,s=Object(sl.useWizardDialogContext)().goNext,l=Object(r.useState)([]),d=Object(c.a)(l,2),u=d[0],p=d[1],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=vl(),O=Object(h.useSnackbar)(),C=Object(z.useTheme)(),x=Object(z.useMediaQuery)(C.breakpoints.down("xs"),{noSsr:!0}),j=Object(r.useCallback)((function(e){p(e),e.map((function(e){return y((function(t){return Object(Li.a)(t).concat([{name:e.name,status:"uploading"}])})),n(e).then((function(t){var i={name:e.name,status:"uploaded"};y((function(t){return Object(Li.a)(t.filter((function(t){return t.name!==e.name}))).concat([i])})),E((function(e){return Object(Li.a)(e).concat(t)}))})).catch((function(){var t={name:e.name,status:"failed"};y((function(i){return Object(Li.a)(i.filter((function(t){return t.name!==e.name}))).concat([t])}))})),e}))}),[n]),w=Object(r.useCallback)((function(e){j(Object(Li.a)(u).concat(e))}),[u,j]),T=m.filter((function(e){return"uploading"===e.status})).length>0,P=function(e){var t=m.filter((function(t){return t.name===e}))[0];if(!t)return a.a.createElement(pl.a,{title:"Delete"},a.a.createElement(h.IconButton,{edge:"end",onClick:function(){!function(e){p((function(t){return t.filter((function(t){return t.name!==e}))})),y((function(t){return t.filter((function(t){return t.name!==e}))}))}(e)}},a.a.createElement(ul.a,{icon:"Delete",size:"sm"})));switch(t.status){case"uploading":return a.a.createElement(ul.a,{icon:"Loading",size:"sm",spin:!0,color:"primary"});case"failed":return a.a.createElement(ul.a,{icon:"Warning",size:"sm",color:"error"});case"uploaded":return a.a.createElement(ul.a,{icon:"Success",size:"sm",color:"success"});default:return a.a.createElement(ul.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(cl.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 a.a.createElement(a.a.Fragment,null,a.a.createElement(sl.WizardDialogBody,null,a.a.createElement(h.Container,{maxWidth:"md"},a.a.createElement(h.List,null,a.a.createElement(h.Box,{mt:2},a.a.createElement(h.Typography,{variant:"h3",color:"primary",align:"center"},"Upload File(s)")),a.a.createElement(h.Box,{mt:2},a.a.createElement(h.Alert,{variant:"standard",type:"info"},a.a.createElement(h.Column,null,a.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},"Files (including images)"),a.a.createElement(h.Typography,{variant:"caption"},"Acceptable file formats include: PDF, DOC, XLS, TXT, CSV, JPG, PNG, GIF,"))))),a.a.createElement(a.a.Fragment,null,a.a.createElement("div",Object.assign({className:Object(ro.default)((t={},Object(kn.a)(t,I.dropZone,!0),Object(kn.a)(t,I.dragActive,J),t))},D()),a.a.createElement("input",L()),a.a.createElement(h.Grid,{container:!0,spacing:"card"},a.a.createElement(h.Grid,{xs:12,item:!0,sm:4,hidden:x},a.a.createElement(h.Box,null,a.a.createElement("img",{alt:"Select file",className:I.image,src:"/images/undraw_add_file2_gvbb.svg"}))),a.a.createElement(h.Grid,{xs:12,item:!0,sm:8},a.a.createElement(h.Column,null,a.a.createElement(h.Typography,{gutterBottom:!0,variant:"h5"},"Upload Files"),a.a.createElement(h.Typography,{className:I.info,color:"textSecondary",variant:"subtitle1",weight:"regular"},"Drop files here or click ",a.a.createElement(h.Link,null,"browse")," thorough your machine"))))),u.length>0&&a.a.createElement(h.List,{className:I.list},u.map((function(e,t){return a.a.createElement(h.ListItem,{divider:t=0;--a){var n=this.tryEntries[a],o=n.completion;if("root"===n.tryLoc)return r("end");if(n.tryLoc<=this.prev){var s=i.call(n,"catchLoc"),l=i.call(n,"finallyLoc");if(s&&l){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&i.call(a,"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 a=r.arg;I(i)}return a}}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 wl=Object(s.b)((function(){return{}}),(function(e){return{addNotification:function(t){return e(G.a({message:t,variant:"warning"}))},getParticipants:function(t){return e(function(e){return function(t){return U.R.getAll(void 0,v.oc.fromJS(e)).then((function(e){return e})).catch((function(e){t(Object(Aa.b)(e))}))}}(t))},approveParticipants:function(t,i){return e(function(e,t){return function(i){var r={sessionParticipantIds:e,sessionParticipantStatusId:v.ke.Registered,isParticipantUnvalidated:!1,sessionId:t,isApproval:!0,sendEmailConfirmation:!0};return U.R.update(void 0,v.Ee.fromJS(r)).then((function(e){return i(Object(Aa.a)({message:"Approved successful.",variant:"success"})),e})).catch((function(e){i(Object(Aa.b)(e))}))}}(t,i))},showConfirmation:function(t){return e(Object(on.b)(t))},updateFiles:function(t){return e(function(e){return function(t){return U.D.updateFiles(void 0,new v.Be({files:e.map((function(e){return v.yd.fromJS(e)}))})).then((function(e){return e})).catch((function(e){throw t(Object(G.b)(e)),e}))}}(t))},addSessionMaterials:function(t,i){return e(function(e,t){return function(i){var r={sessionId:e,fileIdList:t};return U.S.addInstructorSessionMaterials(void 0,v.g.fromJS(r)).then((function(){i(Object(Aa.a)({message:"Uploading of material(s) successful.",variant:"success"}))})).catch((function(e){i(Object(Aa.b)(e))}))}}(t,i))}}})),Tl={sessionId:0,filterBy:[],searchCriteria:["AllUsers"],sortBy:"lastName",page:1,pageSize:10},Pl=Object(d.o)(al(wl((function(e){var t,i,n,o,d,u=e.session,p=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),T=w[0],P=w[1],A=Object(r.useState)(),N=Object(c.a)(A,2),k=N[0],L=N[1],J=Object(r.useState)(Object(D.a)(Object(D.a)({},Tl),{},{sessionId:null!==(t=null===u||void 0===u?void 0:u.sessionId)&&void 0!==t?t:0})),F=Object(c.a)(J,2),B=F[0],R=F[1],U=Object(r.useState)(!1),G=Object(c.a)(U,2),M=G[0],q=G[1],z=Object(il.useDataGridContext)(),W=z.selectedIdList,V=z.setSelectedIdList,_=ol(W),Y=k&&(null===(i=k.sessionParticipants)||void 0===i?void 0:i.every((function(e){return e.isInstructor})));Object(r.useEffect)((function(){L(void 0),p(B).then((function(e){L(e)}))}),[p,B,L]);var $=Object(so.a)((function(e){R(""!==e?Object(D.a)(Object(D.a)({},B),{},{page:1,filterBy:["lastName[contains]:".concat(e)]}):Object(D.a)(Object(D.a)({},B),{},{page:1,filterBy:[]}))}),500),H=function(){P("AllStatus");var e=Array();e.push("AllStatus"),e.push(C),R(Object(D.a)(Object(D.a)({},B),{},{searchCriteria:e,page:1}))},K=function(){var e=Object(l.a)(jl().mark((function e(t){var i;return jl().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:p({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===v.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 a.a.createElement(a.a.Fragment,null,a.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:a.a.createElement(h.Grid,{container:!0},a.a.createElement(h.Typography,{variant:"body1",style:{display:"inline-block",marginRight:3}},i.location),i.isInstructor?a.a.createElement(h.Box,null,i.userTypeId!==v.Re.Client&&i.location&&" | ",a.a.createElement(h.Typography,{variant:"body1",color:"secondary",style:{display:"inline-block"}},"Instructor")):""),badge:{badgeContent:Object(nl.a)(i.userType),anchorOrigin:{horizontal:"right",vertical:"bottom"},overlap:"circle",color:i.userTypeId===v.Re.Administrator?"success":"warning",invisible:i.userTypeId===v.Re.Employee}}))},disableSortBy:!1},{Header:"",accessor:"participantId",showOnMobile:!0,Cell:function(e){var t=e.row.original;return t.sessionParticipantStatusId===v.ke.Pending||t.isInstructor&&t.userId===E?a.a.createElement(h.Button,{onClick:function(){var e;t.isInstructor?q(!0):K(["".concat(null!==(e=t.sessionParticipantId)&&void 0!==e?e:0)])},variant:"outlined",color:"primary",size:"small"},"".concat(t.isInstructor?"Upload Material":"Approve")):a.a.createElement(a.a.Fragment,null)},disableSortBy:!0},{Header:a.a.createElement(h.Box,{display:"flex",justifyContent:"center"},"Status"),accessor:"participantStatus",showOnMobile:!0,Cell:function(e){var t=e.row.original;return a.a.createElement(h.Box,{display:"flex",justifyContent:"center"},a.a.createElement(xl,{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 a.a.createElement(a.a.Fragment,null,a.a.createElement(qa.a,{onSelectAll:function(){return p(Object(D.a)(Object(D.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!==(n=null===k||void 0===k?void 0:k.recordCount)&&void 0!==n?n: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(D.a)(Object(D.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(D.a)(Object(D.a)({},e),{},{page:1,sortBy:i})})))},tableActions:a.a.createElement(h.Grid,{container:!0,spacing:1,key:"participantTableActions"},a.a.createElement(h.Grid,{item:!0,lg:4,md:6,xs:12,key:"participants"},a.a.createElement(h.Row,{crossAxisAlignment:"middle"},a.a.createElement(h.Box,{ml:1},a.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular",color:"primary"},null===k||void 0===k?void 0:k.recordCount," participants")))),a.a.createElement(h.Grid,{item:!0,lg:2,md:3,sm:6,xs:12,key:"userTypes"},a.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(T),R(Object(D.a)(Object(D.a)({},B),{},{searchCriteria:t,page:1}))},formikContext:!1,dense:!0},Z&&Z.map((function(e){return a.a.createElement(h.MenuItem,{key:e.key,value:e.key},a.a.createElement(h.Row,null,a.a.createElement(h.Expanded,{flex:0,mr:1},a.a.createElement(h.Typography,{variant:"body1"},e.name))))})))),a.a.createElement(h.Grid,{item:!0,lg:2,md:3,sm:6,xs:12,key:"userStatuses"},a.a.createElement(h.SelectField,{fullWidth:!0,startAdornment:"Status:",id:"userStatus",value:T,onChange:function(e){P(e.target.value);var t=Array();t.push(e.target.value),t.push(C),R(Object(D.a)(Object(D.a)({},B),{},{searchCriteria:t,page:1}))},formikContext:!1,dense:!0},X&&X.map((function(e){return a.a.createElement(h.MenuItem,{key:e.key,value:e.key},a.a.createElement(h.Row,null,a.a.createElement(h.Expanded,{flex:0,mr:1},a.a.createElement(h.Typography,{variant:"body1"},e.name))))})))),a.a.createElement(h.Grid,{item:!0,lg:4,md:12,xs:12,key:"quickSearchField"},a.a.createElement(h.Row,{crossAxisAlignment:"middle"},a.a.createElement(h.TextField,{fullWidth:!0,placeholder:"Search",type:"text",startAdornment:a.a.createElement(h.InputAdornment,{position:"start"},a.a.createElement(h.SystemIcon,{icon:"Search"})),formikContext:!1,onChange:function(e){return $(e.target.value)},size:"small"}),a.a.createElement(h.Box,{mr:.5},a.a.createElement(Dn,{icon:a.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:a.a.createElement(h.SystemIcon,{icon:"RegisterParticipants"}),onClick:function(){return K()}}]})))))},M&&a.a.createElement(Cl,{open:M,onClose:function(){return q(!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}));q(!1),b(null!==(t=null===u||void 0===u?void 0:u.sessionId)&&void 0!==t?t:0,r),R((function(e){return Object(D.a)({},e)})),V({}),S(null!==(i=null===u||void 0===u?void 0:u.sessionId)&&void 0!==i?i:0)}}))}(e)}})))})))),Al=function(){return a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.Widget,null,a.a.createElement(T.a,{dense:!0},a.a.createElement(h.Box,{width:"100%",alignItems:"center",display:"flex",justifyContent:"center"},a.a.createElement(h.Column,{mainAxisAlignment:"middle",crossAxisAlignment:"center"},a.a.createElement(h.Skeleton,{width:"320px",height:"95px"}),a.a.createElement(h.Skeleton,{width:"300px",height:"55px"}),a.a.createElement(h.Skeleton,{width:"162px",height:"45px"})))))),a.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},a.a.createElement(h.Widget,null,a.a.createElement(T.a,{dense:!0},a.a.createElement(h.Box,{ml:2,mr:2},a.a.createElement(h.Table,{size:"medium"},a.a.createElement(h.TableBody,null,["col1","col2","col3"].map((function(e){return a.a.createElement(h.TableRow,{key:"".concat(e,"_exmpl_row")},[1,2,3,4].map((function(t){return a.a.createElement(h.TableCell,{height:18,key:"".concat(e,"_").concat(t)},a.a.createElement(h.Skeleton,{width:"100%",height:"34px"}))})))})))))))),a.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},a.a.createElement(h.Table,{size:"medium"},a.a.createElement(h.TableHead,{style:{border:"1px solid #BDBDBD"}},a.a.createElement(h.TableRow,{style:{border:"1px solid #BDBDBD"}},[1,2,3].map((function(e){return a.a.createElement(h.TableCell,{key:"".concat(e,"_header"),style:{border:"1px solid #BDBDBD"}},a.a.createElement(h.Skeleton,{width:"100%",height:"20px"}))})))),a.a.createElement(h.TableBody,null,[1,2,3,4].map((function(e){return a.a.createElement(h.TableRow,{key:"".concat(e,"_exmpl_row"),style:{border:"1px solid #BDBDBD"}},[1,2,3].map((function(e){return a.a.createElement(h.TableCell,{height:18,key:"".concat(e,"_exmpl_row_cell"),style:{border:"1px solid #BDBDBD"}},a.a.createElement(h.Skeleton,{width:"100%",height:"20px"}))})))}))))))},Nl=Object(s.b)((function(){return{}}),(function(e){return{getAttendanceForms:function(t){return e(function(e){return function(t){var i=new v.Yb({filterBy:[],searchCriteria:["Active"],sortBy:"name",page:1,pageSize:10});return U.d.getAll(void 0,e?v.Yb.fromJS(e):i).then((function(e){return e})).catch((function(e){throw t(Object(G.b)(e)),e}))}}(t))},getAttendanceForm:function(t){return e(M(t))},getSessionDetails:function(t){return e(q(t))}}})),kl={filterBy:[],searchCriteria:["Active"],sortBy:"name",page:1,pageSize:-1},Dl=Nl((function(e){var t,i,n,o,l,d,u,p,f,m,y,g,b,S,E,I,O=e.getAttendanceForm,C=e.getAttendanceForms,j=e.getSessionDetails,w=e.onClose,P=e.open,D=e.sessionId,L=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)(),M=Object(c.a)(G,2),q=M[0],z=M[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(kl).then((function(e){Y(e),j(+D).then((function(t){var i,r,a,n;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===(a=e.attendanceForms)||void 0===a||null===(n=a.find((function(e){return e.isDefault})))||void 0===n?void 0:n.attendanceFormId)&&void 0!==r?r:0)}))}))}),[C,j,D]),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,a,n=null!==(t=null===q||void 0===q||null===(i=q.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===q||void 0===q||null===(r=q.sessionParticipants)||void 0===r?void 0:r.filter((function(e){var t;return!n.includes(null!==(t=e.userId)&&void 0!==t?t:0)}));te((null!==(a=null===q||void 0===q?void 0:q.sessionInstructors)&&void 0!==a?a:[]).concat(null!==o&&void 0!==o?o:[]))}else{var s;te(null!==(s=null===q||void 0===q?void 0:q.sessionParticipants)&&void 0!==s?s:[])}return e.attendanceFormId})):Q(void 0)}),[R,O,q]);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:[],ae=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:[],ne=null!==(n=(null===K||void 0===K?void 0:K.columns)&&K.columns.filter((function(e){return!0===e.includeForDisplay})))&&void 0!==n?n:[],oe=(null===q||void 0===q||null===(o=q.title)||void 0===o?void 0:o.trim())!==(null===q||void 0===q||null===(l=q.courseTitle)||void 0===l?void 0:l.trim())?"".concat(null===q||void 0===q?void 0:q.courseTitle," ").concat(Object(x.isEmpty)(null===q||void 0===q||null===(d=q.title)||void 0===d?void 0:d.trim())?"":"(".concat(null===q||void 0===q?void 0:q.title,")")):null===q||void 0===q?void 0:q.courseTitle,se=null!==(u=null===q||void 0===q?void 0:q.courseFormat)&&void 0!==u?u:"",le=(null===q||void 0===q?void 0:q.startDate)?Object(N.c)(null===q||void 0===q?void 0:q.startDate,"MMM DD, YYYY"):"",ce=(null===q||void 0===q?void 0:q.endDate)?Object(N.c)(null===q||void 0===q?void 0:q.endDate,"MMM DD, YYYY"):"",de=(null===q||void 0===q?void 0:q.startTime)?null===q||void 0===q?void 0:q.startTime:"",ue=(null===q||void 0===q?void 0:q.endTime)&&(null===q||void 0===q?void 0:q.endTime)!==(null===q||void 0===q?void 0:q.startTime)?" - ".concat(null===q||void 0===q?void 0:q.endTime):"",he=null!==(p=null===q||void 0===q?void 0:q.timeZone)&&void 0!==p?p:"",pe=null!==(f=null===q||void 0===q?void 0:q.location)&&void 0!==f?f:"-",ve=null!==(m=null===q||void 0===q?void 0:q.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===q||void 0===q?void 0:q.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===q||void 0===q||null===(S=q.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 a.a.createElement(Oa.a,{fullScreen:!0,open:P,onClose:w},a.a.createElement(Ia.DialogHeader,{colorMode:"dark",titleBar:{title:"Attendance Sheet",onClose:w}}),a.a.createElement(Ia.DialogBody,{bgColor:"white"},a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center-left",stretchContent:!0},a.a.createElement(h.Box,{maxWidth:"400px"},a.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 a.a.createElement(h.MenuItem,{key:e.attendanceFormId,value:e.attendanceFormId},e.name)})))))),a.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},void 0===K?a.a.createElement(Al,null):a.a.createElement(h.Grid,{container:!0,spacing:"card"},a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.Widget,null,a.a.createElement(h.Box,{ml:2,mr:2,mb:2,mt:2},a.a.createElement(A.a,{title:""}),a.a.createElement(T.a,{dense:!0},a.a.createElement(h.Grid,{container:!0,spacing:"form"},(null===K||void 0===K?void 0:K.headerIncludeFirmLogo)&&!Object(x.isEmpty)(J)&&a.a.createElement(h.Grid,{item:!0,xs:12,alignContent:"center",alignItems:"center",alignment:"center"},a.a.createElement("img",{src:J,alt:"Logo",width:"320px",height:"80px"})),a.a.createElement(h.Grid,{item:!0,xs:12,alignContent:"center",alignItems:"center",alignment:"center"},a.a.createElement(h.Typography,{variant:"h3",color:"default",align:"center"},(null===K||void 0===K?void 0:K.isSystem)?L:null===K||void 0===K?void 0:K.headerFirmName)),a.a.createElement(h.Grid,{item:!0,xs:12,alignContent:"center",alignItems:"center",alignment:"center"},a.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)&&a.a.createElement(h.Grid,{item:!0,xs:12,alignContent:"center",alignItems:"center",alignment:"center"},a.a.createElement(h.TextEditorView,{model:Object(k.a)(null===K||void 0===K?void 0:K.headerText)}))))))),a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.Widget,null,a.a.createElement(h.Box,{ml:2,mr:2,mb:2,mt:2},a.a.createElement(A.a,{title:""}),a.a.createElement(T.a,{dense:!0,disableGutters:!0},a.a.createElement(h.Box,{ml:2,mr:2},a.a.createElement(h.Grid,{container:!0,spacing:"form",alignContent:"center"},a.a.createElement(h.Hidden,{mdDown:0===re.length||0===ae.length},a.a.createElement(h.Grid,{item:!0,lg:1,xl:1})),a.a.createElement(h.Grid,{item:!0,xs:0===ae.length?12:6,lg:0===ae.length?12:5},a.a.createElement(h.Grid,{container:!0,spacing:"form"},re.map((function(e){var t=e.column,i=e.label,r=e.type,n="";switch(r){case v.o.Title:n=null!==oe&&void 0!==oe?oe:"";break;case v.o.Format:n=se;break;case v.o.Instructor:n=ye.length>0?ye.join(", "):"-";break;case v.o.Credits:n="[No Credits]";break;default:n=""}return a.a.createElement(a.a.Fragment,{key:"".concat(r,"_").concat(t)},a.a.createElement(h.Grid,{item:!0,xs:6,alignment:"top-right"},a.a.createElement(h.Typography,null,a.a.createElement("b",null,i,": "))),a.a.createElement(h.Grid,{item:!0,xs:6},a.a.createElement(a.a.Fragment,null,r===v.o.Credits&&(null===ge||void 0===ge?void 0:ge.length)>0?a.a.createElement(a.a.Fragment,null,ge&&ge.map((function(e){var t,i="",r=e&&e.licenseStatus===v.Dd.Pending,n=e&&e.licenseStatus===v.Dd.Denied;return a.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,", ")}})),a.a.createElement(h.Row,null,a.a.createElement(h.Typography,{style:{fontWeight:500,color:"black"}},a.a.createElement("span",{dangerouslySetInnerHTML:{__html:"".concat(e.name,": ").concat(""!==i?Object(k.a)(i.slice(0,-2)):"[No Credits]")}}),r&&a.a.createElement(h.Typography,{component:"span"},a.a.createElement("i",null,"(Pending)")),n&&a.a.createElement(h.Typography,{component:"span"},a.a.createElement("i",null,"(Denied)")))))}))):a.a.createElement(h.Box,{maxWidth:"350px"},a.a.createElement(h.Typography,{style:{fontWeight:500,color:"black"}},n)))))})))),a.a.createElement(h.Grid,{item:!0,xs:0===re.length?12:6,lg:0===re.length?12:5},a.a.createElement(h.Grid,{container:!0,spacing:"form"},ae.map((function(e){var t=e.column,i=e.label,r=e.type,n="";switch(r){case v.o.Date:n=fe;break;case v.o.Location:n=pe;break;case v.o.Time:n=me;break;case v.o.Room:n=ve;break;default:n=""}return a.a.createElement(a.a.Fragment,{key:"".concat(r,"_").concat(t)},a.a.createElement(h.Grid,{item:!0,xs:6,alignment:"top-right"},a.a.createElement(h.Typography,null,a.a.createElement("b",null,i,": "))),a.a.createElement(h.Grid,{item:!0,xs:6},a.a.createElement(h.Box,{maxWidth:"350px"},a.a.createElement(h.Typography,{style:{fontWeight:500,color:"black"}},n))))})))),a.a.createElement(h.Hidden,{mdDown:0===re.length||0===ae.length},a.a.createElement(h.Grid,{item:!0,lg:1,xl:1})))))))),a.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},a.a.createElement(h.Table,{size:"medium",style:{tableLayout:"fixed"}},a.a.createElement(h.TableHead,{style:{border:"1px solid #000000"}},a.a.createElement(h.TableRow,{style:{border:"1px solid #000000"}},ne.map((function(e){var t="".concat(100/ne.length);return a.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,"%")}},a.a.createElement(h.Typography,null,a.a.createElement("b",null,e.label)))})))),a.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,a.a.createElement(h.TableRow,{key:"".concat(e,"_data_row"),style:{border:"1px solid #000000"}},ne.map((function(e){var t,i,r,n,o,s,l,c,d,u=e.type,p="";if(void 0!==ie)switch(u){case v.n.Name:p="".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 v.n.Email:p="".concat(null===(n=ie)||void 0===n?void 0:n.email);break;default:p=""}return a.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"}},""!==p&&u===v.n.Name&&(null===(o=ie)||void 0===o?void 0:o.isInstructor)?a.a.createElement(h.Typography,{style:{fontWeight:500,color:"black"}},p," ",a.a.createElement("i",null,"(Instructor)")):a.a.createElement(a.a.Fragment,null,u===v.n.LicenseDetails&&(null===(s=ie)||void 0===s?void 0:s.userLicenseDetails)&&(null===(l=ie)||void 0===l?void 0:l.userLicenseDetails.length)>0?a.a.createElement(a.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 a.a.createElement(h.Column,{key:"".concat(e.type,"_data_row_cell_").concat(t.licenseId)},a.a.createElement(h.Typography,{style:{fontWeight:500,color:"black"}},a.a.createElement("span",{dangerouslySetInnerHTML:{__html:"".concat(t.licenseName,": ").concat(""!==t.barNumber?Object(k.a)(t.barNumber):"-")}})))})))):a.a.createElement(h.Typography,{style:{fontWeight:500,color:"black"}},p)))})))}))))),!Object(x.isEmpty)(null===K||void 0===K?void 0:K.footerText)&&a.a.createElement(h.Grid,{item:!0,xs:12,alignContent:"center",alignItems:"center",alignment:"center"},a.a.createElement(h.TextEditorView,{model:Object(k.a)(null===K||void 0===K?void 0:K.footerText)})))))),a.a.createElement(Ia.DialogFooter,{bgColor:"white"},a.a.createElement(h.Grid,{container:!0,spacing:"form",justify:"center"},a.a.createElement(h.Grid,{item:!0,xs:6,alignment:"center-right"},a.a.createElement(h.Button,{color:"default",size:"small",variant:"outlined",type:"reset",onClick:function(){return w()}},a.a.createElement(h.Typography,{variant:"overline",color:"inherit"},"Back"))),a.a.createElement(h.Grid,{item:!0,xs:6,alignment:"center-left"},a.a.createElement(h.Button,{disabled:void 0===K,onClick:function(){window.open("/attendanceform/print/".concat(R,"/session/").concat(D),"certificate_".concat(R,"_").concat(D),"width=977px height=1006px")},color:"primary",variant:"contained",size:"small"},a.a.createElement(h.Typography,{variant:"overline",color:"inherit"},"Print"))))))})),Ll=function(e){var t=e.open,i=e.evaluation,n=e.onClose,o=e.courseId,s=e.sessionId,l=e.instructors,d=Object(r.useState)(void 0),u=Object(c.a)(d,2),p=u[0],v=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&&(v((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)}},T=a.a.createElement($r,{evaluation:i,currentQuestion:p,currentSectionId:y,instructors:l}),P=a.a.createElement(Yr,{evaluation:i,currentQuestion:p,currentSectionId:y,instructors:l}),A=function(e,t){return a.a.createElement(h.Box,{display:"flex",mt:5},a.a.createElement(h.Box,{mx:"auto"},a.a.createElement(h.Card,null,a.a.createElement(h.Box,{py:6,px:3},a.a.createElement(h.Box,{width:e,height:t},a.a.createElement(h.Card,{variant:"outlined"},a.a.createElement(h.Box,{px:2.5,maxHeight:t-56,minHeight:t-56,overflow:"auto"},i&&P),a.a.createElement(h.CardActions,{style:{border:"none",backgroundColor:"#FAFAFA"}},a.a.createElement(h.Box,{py:1,display:"block",width:"100%"},a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:6},a.a.createElement(h.Button,{fullWidth:!0,variant:"contained",color:"default",disabled:x,onClick:function(){return function(){var e,t,r,a,n,o,s,l,c,d,u,h,f=Object(D.a)({},p),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),v(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,v(f));1!==(null===(r=m)||void 0===r?void 0:r.sequence)||1!==(null===(a=f)||void 0===a?void 0:a.sequence)&&0!==(null===(n=m)||void 0===n||null===(o=n.questions)||void 0===o?void 0:o.length)||j(!0),E&&I(!1)}()}},"Back")),a.a.createElement(h.Grid,{item:!0,xs:6},a.a.createElement(h.Button,{fullWidth:!0,variant:"contained",color:"primary",disabled:E,onClick:function(){return function(){var e,t,r,a,n,o,s,l,c,d,u,h,f,m,b,S=Object(D.a)({},p),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),v(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,v(S));(null===(r=E)||void 0===r?void 0:r.sequence)!==(null===i||void 0===i||null===(a=i.sections)||void 0===a?void 0:a.length)||(null===(n=S)||void 0===n?void 0:n.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 a.a.createElement(Oa.a,{fullScreen:!0,open:t,onClose:n},a.a.createElement(h.Backdrop,{open:!i},a.a.createElement(h.CircularProgress,{color:"secondary"})),a.a.createElement(Ia.DialogHeader,{colorMode:"dark",titleBar:{title:"Preview",onClose:n}}),a.a.createElement(Ia.DialogBody,{bgColor:"white"},a.a.createElement(h.Box,{textAlign:"right"},a.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")),a.a.createElement(h.Box,null,a.a.createElement(h.Tabs,{key:"tabs",components:[Object(D.a)(Object(D.a)({},w(0)),{},{label:"Web",render:a.a.createElement(a.a.Fragment,{key:"web"},a.a.createElement(h.Divider,null),i&&T)}),Object(D.a)(Object(D.a)({},w(1)),{},{label:"Tablet",render:a.a.createElement(a.a.Fragment,{key:"mobile"},a.a.createElement(h.Divider,null),A(600,760))}),Object(D.a)(Object(D.a)({},w(2)),{},{label:"Mobile",render:a.a.createElement(a.a.Fragment,{key:"mobile"},a.a.createElement(h.Divider,null),A(360,640))})],centered:!0}))))},Jl=Object(z.makeStyles)((function(e){var t=e.palette,i=e.spacing;return Object(z.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"}})})),Fl=Object(s.b)(null,(function(e){return{getSession:function(t){return e(function(e){return function(t){return U.S.getInstructorSessionById(e,void 0).then((function(e){return e})).catch((function(e){t(Object(Aa.b)(e))}))}}(t))},getEvaluation:function(t){return e(Ar([t]))},getAllSessionInstructors:function(t){return e(Pr(t))}}})),Bl=Fl((function(e){var t=e.open,i=e.onClose,n=e.sessionId,o=e.getSession,s=e.onReload,l=e.getEvaluation,u=e.getAllSessionInstructors,p=Jl(),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)(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),T=w[0],P=w[1],A=Object(r.useState)(!1),N=Object(c.a)(A,2),k=N[0],D=N[1],L=Object(ta.useMdsAppContext)().routeList,F=Object(d.l)().pathname,B=null===L||void 0===L?void 0:L.find((function(e){return F===e.path||F.startsWith(e.path)})),R=Object(J.useTheme)(),U=Object(J.useMediaQuery)(R.breakpoints.up("sm"),{noSsr:!0}),G=Object(J.useMediaQuery)(R.breakpoints.down("sm"),{noSsr:!0}),M=void 0===m,q=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],a=t[1];return[i,Object(r.useCallback)((function(e){null!==e&&a(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(){n>0&&o(n).then((function(e){y(e),null!==e.evaluationId&&(l(e.evaluationId).then((function(e){e.length>0?E(e[0]):E(void 0)})),u(n).then((function(e){x(e)})))}))}),[o,n,y,u,l]),a.a.createElement(h.Dialog,{fullScreen:!0,open:t,onClose:i},a.a.createElement(Ia.DialogHeader,{titleBar:{title:"Session Details",onClose:i},colorMode:"dark"}),a.a.createElement(Ia.DialogBody,{maxWidth:!1,className:p.customHeight,disableGutters:!0},a.a.createElement(h.Box,{className:p.wrapper},a.a.createElement(h.Container,{maxWidth:!1},a.a.createElement(h.Box,{className:p.titleBar},a.a.createElement(h.Box,{mr:2},(null===B||void 0===B?void 0:B.icon)&&a.a.createElement(a.a.Fragment,null,M?a.a.createElement(h.Skeleton,{variant:"circle",width:40,height:40}):"branding"===(null===B||void 0===B?void 0:B.icon.source)?a.a.createElement(h.BrandingIcon,{icon:null===B||void 0===B?void 0:B.icon.value,size:"md"}):"system"===(null===B||void 0===B?void 0:B.icon.source)?a.a.createElement(h.SystemIcon,{icon:null===B||void 0===B?void 0:B.icon.value,color:"inherit",size:"lg"}):null===B||void 0===B?void 0:B.icon.value)),a.a.createElement(h.Column,{flex:1},a.a.createElement(h.Typography,{variant:"subtitle1",component:"h1",className:p.provider},M?a.a.createElement(h.Skeleton,{width:U?100:60}):q),a.a.createElement(h.Box,{className:Object(ro.default)(Object(kn.a)({},p.actions,U)),width:"100%"},a.a.createElement("div",{className:p.sessionDetails,ref:Y},"string"===typeof z?a.a.createElement(h.Typography,{variant:U?"h5":"h6",component:q?"h2":"h1"},K?a.a.createElement(h.Tooltip,{title:z},a.a.createElement(h.Box,null,a.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):a.a.createElement(h.Typography,{variant:U?"h5":"h6",component:q?"h2":"h1"},M?a.a.createElement(h.Skeleton,{width:U?400:200}):z),a.a.createElement(h.Box,{ml:1.5},M?a.a.createElement(h.Skeleton,{variant:"circle",width:10,height:10}):a.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"}))),a.a.createElement(h.Box,{className:Object(ro.default)(Object(kn.a)({},p.alignRightButtons,!U))},a.a.createElement(h.ButtonGroup,{orientation:G?"vertical":"horizontal",variant:"outlined",color:"primary"},a.a.createElement(h.Button,{variant:"outlined",size:"small",color:"primary",onClick:function(){return D(!0)},disabled:!S},"View Evaluation"),a.a.createElement(h.Button,{variant:"outlined",size:"small",color:"primary",onClick:function(){return P(!0)},className:Object(ro.default)(Object(kn.a)({},p.buttonVertical,G))},"View Attendance Sheet")))))),a.a.createElement(el,{session:null!==m&&void 0!==m?m:{}})),a.a.createElement(h.Box,{m:4}),void 0!==m?a.a.createElement(h.Box,{className:p.whiteBg,height:"100%"},a.a.createElement(h.Container,{className:p.viewRegular,maxWidth:!1},a.a.createElement(Pl,{session:m,onSessionUpdate:function(e){return s(e)}}))):a.a.createElement(a.a.Fragment,null))),T&&a.a.createElement(Dl,{open:T,onClose:function(){return P(!1)},sessionId:+n}),k&&a.a.createElement(Ll,{open:k,evaluation:S,courseId:null===m||void 0===m?void 0:m.courseId,sessionId:n,instructors:C,onClose:function(){D(!1)}}))})),Rl=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(ia.c)(t))},getInstructorSessions:function(t){return e(tl(t))}}})),Ul={sortBy:"-startDate",page:1,pageSize:10},Gl=Rl(Object(oo.a)((function(e){var t,i,n,o=e.getScreenDescription,s=e.getInstructorSessions,l=(e.firmLicenses,e.loggedUser),d=Object(r.useState)(!1),u=Object(c.a)(d,2),p=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(D.a)(Object(D.a)({},Ul),{},{userId:null!==(t=l&&l.userId)&&void 0!==t?t:0})),j=Object(c.a)(x,2),w=j[0],T=j[1],P=Object(r.useState)("AllSessions"),A=Object(c.a)(P,2),L=A[0],J=A[1],F=Object(r.useState)(!1),B=Object(c.a)(F,2),R=B[0],U=B[1],G=Object(r.useState)(0),M=Object(c.a)(G,2),q=M[0],z=M[1];Object(r.useEffect)((function(){C&&o(v.Md.InstructorView).then((function(e){b(e)}))}),[o,C]),Object(r.useEffect)((function(){l&&(O(void 0),s(Object(D.a)(Object(D.a)({},w),{},{userId:l.userId})).then((function(e){O(e)})))}),[s,O,w,l]);var W=function(e){return a.a.createElement(h.Row,{crossAxisAlignment:"middle"},a.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,n=t.startTime,o=t.endTime,s=t.timezone,l=t.startDate,c=t.endDate,d=t.location,u=t.room,p=t.courseFormat,f=t.courseFormatPortalCategory,m=t.sessionInstructors,y=t.title,g=t.courseTitle,b=t.isPublished,S=t.cancelledDate,E=(r===v.oe.Multipart||r===v.oe.Recurring)&&y!==g;return a.a.createElement(h.Row,null,a.a.createElement(h.Box,{m:.5,flex:0,minWidth:80},a.a.createElement(h.CalendarBadge,{date:null!==l&&void 0!==l?l:new Date})),a.a.createElement(h.Column,null,a.a.createElement(h.Row,{crossAxisAlignment:"middle"},a.a.createElement(h.Link,{onClick:function(){return V(null!==i&&void 0!==i?i:0)}},E&&a.a.createElement(a.a.Fragment,null,g),!E&&(y||"Session: ".concat(Object(N.c)(l,"MMM DD, YYYY")))),void 0!==S?a.a.createElement(h.Box,{ml:1},a.a.createElement(h.Chip,{variant:"outlined",color:"error",size:"small",label:"Canceled"})):!b&&a.a.createElement(h.Box,{ml:1},a.a.createElement(h.Chip,{variant:"outlined",color:"secondary",size:"small",label:"Not Published"}))),y!==g&&a.a.createElement(h.Typography,{variant:"caption"}," (",y,")"),W({icon:a.a.createElement(h.SystemIcon,{icon:"Clock",color:"primary"}),label:a.a.createElement(h.Typography,{variant:"body1",color:"default"},n?"".concat(n):"",o&&n!==o?" - ".concat(o," "):"",n||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:a.a.createElement(h.SystemIcon,{icon:"Location",color:"primary",type:"solid"}),label:a.a.createElement(h.Typography,{variant:"body1",color:"textPrimary"},d," ",u)}),W({icon:a.a.createElement(za,{type:"duotone",color:"primary",format:null!==f&&void 0!==f?f:""}),label:a.a.createElement(h.Typography,{variant:"body1"},p)}),m&&m.length>0&&W({icon:a.a.createElement(h.SystemIcon,{icon:"Instructor",color:"primary",type:"solid"}),label:a.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,n=t.validatedParticipantCount,o=t.pendingParticipantCount,s=t.disqualifiedParticipantCount,l=t.inProgressParticipantCount,c=t.isOnlineLearning,d=null!==n&&void 0!==n?n:0,u=null!==r&&void 0!==r?r:0,p=null!==i&&void 0!==i?i:0,v=null!==o&&void 0!==o?o:0,f=null!==s&&void 0!==s?s:0,m=null!==l&&void 0!==l?l:0;return a.a.createElement(h.Grid,null,a.a.createElement(h.Column,{crossAxisAlignment:"right"},a.a.createElement(h.Expanded,{mb:.75},a.a.createElement(h.Row,null,a.a.createElement(h.Expanded,{mr:1},p&&p>99?a.a.createElement(h.Tooltip,{title:"Registered Count: ".concat(p&&p)},a.a.createElement("span",null,a.a.createElement(h.Chip,{color:"primary",colorMode:"dark",avatar:"R",label:"99+",size:"small",width:"xs"}))):a.a.createElement(h.Tooltip,{title:"Registered Count"},a.a.createElement("span",null,a.a.createElement(h.Chip,{color:"primary",colorMode:"dark",avatar:"R",label:p&&p,size:"small",width:"xs"})))),a.a.createElement(h.Expanded,null,c&&c?a.a.createElement(a.a.Fragment,null,f&&f>99?a.a.createElement(h.Tooltip,{title:"Disqualified Count: ".concat(f&&f)},a.a.createElement("span",null,a.a.createElement(h.Chip,{color:"error",colorMode:"dark",avatar:"D",label:"99+",size:"small",width:"xs"}))):a.a.createElement(h.Tooltip,{title:"Disqualified Count"},a.a.createElement("span",null,a.a.createElement(h.Chip,{color:"error",colorMode:"dark",avatar:"D",label:f&&f,size:"small",width:"xs"})))):a.a.createElement(a.a.Fragment,null,u&&u>99?a.a.createElement(h.Tooltip,{title:"Tentative Count: ".concat(u&&u)},a.a.createElement("span",null,a.a.createElement(h.Chip,{color:"default",colorMode:"dark",avatar:"T",label:"99+",size:"small",width:"xs"}))):a.a.createElement(h.Tooltip,{title:"Tentative Count"},a.a.createElement("span",null,a.a.createElement(h.Chip,{color:"default",colorMode:"dark",avatar:"T",label:u&&u,size:"small",width:"xs"}))))))),a.a.createElement(h.Expanded,null,a.a.createElement(h.Row,null,a.a.createElement(h.Expanded,{mr:1},d&&d>99?a.a.createElement(h.Tooltip,{title:"Validated Count: ".concat(d&&d)},a.a.createElement("span",null,a.a.createElement(h.Chip,{color:"success",colorMode:"dark",avatar:"V",label:"99+",size:"small",width:"xs"}))):a.a.createElement(h.Tooltip,{title:"Validated Count"},a.a.createElement("span",null,a.a.createElement(h.Chip,{color:"success",colorMode:"dark",avatar:"V",label:d&&d,size:"small",width:"xs"})))),a.a.createElement(h.Expanded,null,c&&c?a.a.createElement(a.a.Fragment,null,m&&m>99?a.a.createElement(h.Tooltip,{title:"In Progress Count: ".concat(m&&m)},a.a.createElement("span",null,a.a.createElement(h.Chip,{color:"warning",colorMode:"dark",avatar:"IP",label:"99+",size:"small",width:"xs"}))):a.a.createElement(h.Tooltip,{title:"In Progress Count"},a.a.createElement("span",null,a.a.createElement(h.Chip,{color:"warning",colorMode:"dark",avatar:"IP",label:m&&m,size:"small",width:"xs"})))):a.a.createElement(a.a.Fragment,null,v&&v>99?a.a.createElement(h.Tooltip,{title:"Pending Count: ".concat(v&&v)},a.a.createElement("span",null,a.a.createElement(h.Chip,{color:"warning",colorMode:"dark",avatar:"P",label:"99+",size:"small",width:"xs"}))):a.a.createElement(h.Tooltip,{title:"Pending Count"},a.a.createElement("span",null,a.a.createElement(h.Chip,{color:"warning",colorMode:"dark",avatar:"P",label:v&&v,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 a.a.createElement(h.Expanded,{flex:1},a.a.createElement(h.Column,null,(null===t||void 0===t?void 0:t.length)>0&&a.a.createElement(a.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 a.a.createElement(h.Row,{key:"".concat(e.licenseId,"_credit_status")},a.a.createElement(h.Typography,{key:e.licenseId,variant:"body1"},e.name),e.licenseStatus===v.Dd.Pending&&a.a.createElement(h.Typography,{variant:"caption",color:"secondary"},"\xa0 Pending Approval"),e.licenseStatus===v.Dd.Denied&&a.a.createElement(h.Typography,{variant:"caption",color:"secondary"},"\xa0 Approval Denied"))})),a.a.createElement(h.Box,{mt:1},a.a.createElement(h.Typography,{variant:"caption"},a.a.createElement(Rs,{session:r},a.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 a.a.createElement(Dn,{menu:[{label:"View",icon:a.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 a.a.createElement(h.Screen,{titleBar:{title:(g&&""!==g.title?g.title:"Instructor View")||"Instructor View",description:g?a.a.createElement(h.Column,null,null!==g.shortDescription&&""!==g.shortDescription&&a.a.createElement(h.TextEditorView,{model:Object(k.a)(g.shortDescription)}),null!==g.text&&""!==g.text&&a.a.createElement(h.Box,{mt:2},a.a.createElement(h.Button,{variant:"outlined",size:"small",onClick:function(){return f(!0)}},"Show More"))):a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Box,{mt:2.5},a.a.createElement(h.Skeleton,{width:"100%",height:20,variant:"rect"})),a.a.createElement(h.Box,{mt:1},a.a.createElement(h.Skeleton,{width:"100%",height:20,variant:"rect"})))}},a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:8}),a.a.createElement(h.Grid,{item:!0,xs:4,alignment:"center-right"}),a.a.createElement(h.Grid,{item:!0,lg:12})),a.a.createElement(qa.a,{advanced:!0,id:"sessionId",key:"courseSessionsGrid",columns:_,data:I&&I.sessions,withRowSelection:!1,loading:void 0===I,onNavigate:function(e,t){T(Object(D.a)(Object(D.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!==(n=null===w||void 0===w?void 0:w.page)&&void 0!==n?n:1,tableActions:a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:3,key:"savedFilter",stretchContent:!0},a.a.createElement(h.Box,null,a.a.createElement(h.SelectField,{variant:"outlined",value:L||"",startAdornment:"View:",fullWidth:!0,onChange:function(e){!function(e){var t=Array();t.push(e),T(Object(D.a)(Object(D.a)({},w),{},{page:1,searchCriteria:t,sortBy:"UpcomingSessionsOnly"===e?"startDate":"-startDate"}))}(e.target.value),J(e.target.value)},formikContext:!1,dense:!0},Y&&Y.map((function(e){return a.a.createElement(h.MenuItem,{key:e.key,value:e.key},a.a.createElement(h.Row,null,a.a.createElement(h.Expanded,{flex:0,mr:1},a.a.createElement(h.Typography,{variant:"body1"},"".concat(e.name," Sessions")))))}))))))}),a.a.createElement(Ea,{open:p,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&&a.a.createElement(Bl,{onClose:function(){return U(!1)},open:R,sessionId:q,onReload:function(e){return z(e)}}))}))),Ml=i(328),ql=i(171),zl=Object(z.makeStyles)((function(e){var t=e.palette,i=e.spacing,r=e.typography;return Object(z.createStyles)({cardTitle:Object(D.a)(Object(D.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(D.a)(Object(D.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}})})),Wl=Object(s.b)((function(){return{}}),(function(e){return{downloadFile:function(t){return e(rr(t))}}}))((function(e){var t,i=e.downloadFile,n=e.materialList,o=Object(r.useState)(!1),s=Object(c.a)(o,2),l=s[0],d=s[1];return a.a.createElement(a.a.Fragment,null,a.a.createElement(h.CardActions,null,a.a.createElement(h.Row,{flex:1,crossAxisAlignment:"middle"},a.a.createElement(h.Expanded,{flex:1,mr:1},a.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},"Materials")),a.a.createElement(h.Expanded,{flex:0},a.a.createElement(h.IconButton,{onClick:function(){return d(!l)}},a.a.createElement(h.SystemIcon,{icon:l?"CollapseVertical":"ExpandVertical",size:"md"}))))),a.a.createElement(h.Collapse,{in:l},a.a.createElement(h.CardContent,null,(t=n||[])?a.a.createElement(h.Grid,{container:!0,spacing:"form"},null===t||void 0===t?void 0:t.map((function(e){var t,r,n;return a.a.createElement(h.Grid,{item:!0,xs:12,sm:12,md:12,lg:12,xl:12,stretchContent:!0,key:e.learningPlanMaterialId},a.a.createElement(h.Row,{crossAxisAlignment:"middle"},a.a.createElement(h.Box,{m:1},a.a.createElement(cn,{fileExtension:null!==(t=null===(r=e.libraryFile)||void 0===r?void 0:r.extension)&&void 0!==t?t:"",color:"primary",type:"duotone",size:"sm"})),a.a.createElement(h.Box,null,a.a.createElement(h.Link,{onClick:function(){var t;if("link"===(null===(t=e.libraryFile)||void 0===t?void 0:t.type)){var r,a,n=null===(r=e.libraryFile)||void 0===r?void 0:r.url;(null===(a=n)||void 0===a?void 0:a.match(/^https?:\/\//i))||(n="http://"+n),window.open(n,"_blank")}else i("".concat(e.fileId))}},null===(n=e.libraryFile)||void 0===n?void 0:n.title))))}))):null)))})),Vl=function(e){var t,i,r,n=e.learningPlan,o=e.onShowDetailDrawer,s=e.onRemovePlan,l=e.hasDeletePermission,c=e.showAllDescription,d=e.isSelfRegistered,u=n&&(null===n||void 0===n||null===(t=n.learningPlanCompetencies)||void 0===t?void 0:t.map((function(e){return e.name}))),p=n&&(null===n||void 0===n||null===(i=n.learningPlanTags)||void 0===i?void 0:i.map((function(e){return e.name}))),f=0===(null===n||void 0===n?void 0:n.status)?"default":1===(null===n||void 0===n?void 0:n.status)?"info":2===(null===n||void 0===n?void 0:n.status)?"success":4===(null===n||void 0===n?void 0:n.status)?"secondary":"error",m=null===n||void 0===n||null===(r=n.learningPlanMaterials)||void 0===r?void 0:r.filter((function(e){return e.isPublic})),y=zl(),g=function(e){return 100===e?"success":e>0?"info":"default"};return a.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},a.a.createElement(h.Card,{variant:"outlined",status:f},a.a.createElement(h.CardHeader,{classes:{root:y.cardHeader,title:y.cardTitle},title:a.a.createElement(h.Row,{crossAxisAlignment:"middle"},a.a.createElement(h.Expanded,{flex:0,mr:1},a.a.createElement(h.Typography,{variant:"subtitle1",weight:"bold"},null===n||void 0===n?void 0:n.title)),d&&a.a.createElement(h.Expanded,{flex:0},a.a.createElement(h.Chip,{label:"Self-Registered",variant:"outlined",avatar:a.a.createElement(h.Avatar,{sizes:"small",customBackgroundColor:"transparent"},a.a.createElement(h.SystemIcon,{icon:"Self-Registered",color:"secondary",size:"sm"})),color:"secondary",colorMode:"dark",size:"small",width:"auto"}))),action:a.a.createElement(h.Wrap,{alignment:"center"},(null===n||void 0===n?void 0:n.status)===v.rd.InProgress?a.a.createElement(h.Expanded,null,a.a.createElement(h.Box,{mr:2},a.a.createElement(h.SystemIcon,{icon:"Repeat",color:"primary",size:"md"}))):(null===n||void 0===n?void 0:n.status)===v.rd.Completed?a.a.createElement(h.Expanded,null,a.a.createElement(h.Box,{mr:2},a.a.createElement(h.SystemIcon,{icon:"Success",color:"success",size:"md"}))):(null===n||void 0===n?void 0:n.status)===v.rd.PastDue?a.a.createElement(h.Expanded,null,a.a.createElement(h.Box,{mr:2},a.a.createElement(h.SystemIcon,{icon:"Error",color:"error",size:"md"}))):""),subheader:""}),a.a.createElement(h.CardContent,{classes:{root:y.cardContent}},a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:7,lg:9},a.a.createElement(h.Box,{marginRight:1},a.a.createElement(h.Typography,{variant:"subtitle2"},(null===n||void 0===n?void 0:n.startDate)||(null===n||void 0===n?void 0:n.endDate)?"".concat((null===n||void 0===n?void 0:n.startDate)?Object(N.c)(null===n||void 0===n?void 0:n.startDate,"MMM DD, YYYY"):"No Date Specified"," - ").concat((null===n||void 0===n?void 0:n.endDate)?Object(N.c)(null===n||void 0===n?void 0:n.endDate,"MMM DD, YYYY"):"No Date Specified"):void 0!==(null===n||void 0===n?void 0:n.timeframeOfCompletion)?"No Date Specified":"Set Timeframe"),a.a.createElement(h.Box,{marginTop:-2.5,marginBottom:2},a.a.createElement(h.Typography,{variant:"body2",className:Object(ro.default)(Object(kn.a)({},y.learningPlanDescription,!c))},a.a.createElement(h.TextEditorView,{model:Object(k.a)(null===n||void 0===n?void 0:n.description)}))),n&&a.a.createElement(h.Box,null,a.a.createElement(ln,{courseCompetencies:u||[],courseTags:p||[]})))),a.a.createElement(h.Grid,{item:!0,xs:5,lg:3,alignment:"top-right"},a.a.createElement(h.Row,{mainAxisAlignment:"end"},a.a.createElement(h.Divider,{orientation:"vertical",variant:"middle",className:y.divider}),a.a.createElement(h.Box,null,["Mandatory Courses","Learner's Choice","Activities"].map((function(e,t){return a.a.createElement(h.Row,{crossAxisAlignment:"middle",mainAxisAlignment:"end",key:"".concat(null===n||void 0===n?void 0:n.learningPlanId,"-").concat(e)},a.a.createElement(h.Column,{crossAxisAlignment:"right",mainAxisAlignment:"space-evenly"},a.a.createElement(h.Box,{mt:1,flex:1},a.a.createElement(h.Typography,{variant:"body2",color:"default"},e))),a.a.createElement(h.Column,{crossAxisAlignment:"left",mainAxisAlignment:"space-around"},a.a.createElement(h.Box,{display:"flex",flexDirection:"row",flexWrap:"wrap",ml:1},0===t?a.a.createElement(h.Chip,{width:"xs",label:n&&n.mandatoryCount&&0!==n.mandatoryCount&&null!==n.mandatoryStatus?"".concat(null===n||void 0===n?void 0:n.mandatoryStatus,"%"):"N/A",size:"small",colorMode:"dark",className:Object(ro.default)(Object(kn.a)({},y.chipDefault,"default"===g((null===n||void 0===n?void 0:n.mandatoryStatus)||0))),color:g((null===n||void 0===n?void 0:n.mandatoryStatus)||0)}):1===t?a.a.createElement(h.Chip,{width:"xs",label:n&&n.learnersChoiceCount&&0!==n.learnersChoiceCount&&null!==n.learnersChoiceStatus?"".concat(null===n||void 0===n?void 0:n.learnersChoiceStatus,"%"):"N/A",size:"small",colorMode:"dark",className:Object(ro.default)(Object(kn.a)({},y.chipDefault,"default"===g((null===n||void 0===n?void 0:n.learnersChoiceStatus)||0))),color:g((null===n||void 0===n?void 0:n.learnersChoiceStatus)||0)}):a.a.createElement(h.Chip,{width:"xs",label:n&&n.activityCount&&0!==n.activityCount&&null!==n.activityStatus?"".concat(null===n||void 0===n?void 0:n.activityStatus,"%"):"N/A",size:"small",colorMode:"dark",className:Object(ro.default)(Object(kn.a)({},y.chipDefault,"default"===g((null===n||void 0===n?void 0:n.activityStatus)||0))),color:g((null===n||void 0===n?void 0:n.activityStatus)||0)}))))}))))))),m&&m.length>0&&a.a.createElement(Wl,{materialList:m}),a.a.createElement(h.CardActions,null,a.a.createElement(h.Row,{crossAxisAlignment:"middle"},a.a.createElement(h.Expanded,null,a.a.createElement(h.Row,{mainAxisAlignment:"start",crossAxisAlignment:"middle"},a.a.createElement(h.Column,null,a.a.createElement(h.Box,{mr:1},a.a.createElement(h.SystemIcon,{size:"sm",type:"light",icon:"Calendar"}))),a.a.createElement(h.Column,null,a.a.createElement(h.Typography,{variant:"body1",align:"left"},function(){var e=new Date;return(null===n||void 0===n?void 0:n.status)===v.rd.Completed?null!==(null===n||void 0===n?void 0:n.completedDate)?"Completed: ".concat(Object(N.c)(null===n||void 0===n?void 0:n.completedDate,"MMM DD, YYYY")):"No Completion Date":(null===n||void 0===n?void 0:n.endDate)0||R&&(null===R||void 0===R?void 0:R.length)>0,G=Yl();Object(r.useEffect)((function(){j(!0),I(void 0),F(null),n&&o?l(n,g).then((function(e){var t,i,r,a=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(a),I(e),j(!1)})):(I(void 0),j(!1))}),[l,n,g,o]);var M={initialValues:{completionDate:J,downloadedMaterialArr:[]},validationSchema:Object(Ta.object)().shape({completionDate:Object(Ta.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,n,(null===f||void 0===f?void 0:f.learningPlanId)||y).then((function(e){A(!1),t.setSubmitting(!1),0===e.length&&s()}))}};return a.a.createElement(h.SideDrawer,{size:"md",open:o,onClose:s,colorMode:"dark"},a.a.createElement(ga.SideDrawerHeader,{titleBar:{title:x?a.a.createElement(h.Skeleton,{width:"400px",height:"32px"}):E&&a.a.createElement(h.Box,null,a.a.createElement(h.Row,{crossAxisAlignment:"middle"},a.a.createElement(h.Typography,{variant:"h5"},E.title)))}}),a.a.createElement(ga.SideDrawerBody,null,x?a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Skeleton,{variant:"text",width:"".concat(Math.floor(Math.random()*Math.floor(100)),"%")}),a.a.createElement(h.Skeleton,{variant:"text",width:"".concat(Math.floor(Math.random()*Math.floor(100)),"%")}),a.a.createElement("br",null),a.a.createElement(h.Skeleton,{variant:"text",width:"".concat(Math.floor(Math.random()*Math.floor(100)),"%")}),a.a.createElement(h.Skeleton,{variant:"text",width:"".concat(Math.floor(Math.random()*Math.floor(100)),"%")}),a.a.createElement(h.Skeleton,{variant:"text",width:"".concat(Math.floor(Math.random()*Math.floor(100)),"%")})):a.a.createElement(wa.Formik,{initialValues:M.initialValues,validationSchema:M.validationSchema,onSubmit:M.onSubmit},(function(e){var t;return a.a.createElement(h.Form,{id:"activityDetails",formikContext:!0},a.a.createElement(h.Grid,{container:!0,spacing:"form"},E&&E.description&&a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.TextEditorView,{model:Object(k.a)(E.description)})),U&&a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(ln,{courseCompetencies:B||[],courseTags:R})),E&&E.activityMaterials&&E.activityMaterials.filter((function(e){return e.isPublic})).length>0&&a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.Typography,{variant:"body1",className:G.title},"Materials")),a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.Card,{background:"grey",variant:"outlined",style:{height:175,maxHeight:175,overflow:"auto"}},a.a.createElement(_l.a,null,a.a.createElement(h.Grid,{container:!0,spacing:1},E.activityMaterials.map((function(t){var i,r;return t.isPublic&&a.a.createElement(h.Grid,{item:!0,lg:3,stretchContent:!0},a.a.createElement(h.Box,{m:.5},a.a.createElement(h.Card,{variant:"outlined",background:"default"},a.a.createElement(h.Box,{m:1},a.a.createElement(h.Row,{crossAxisAlignment:"middle"},a.a.createElement(h.Box,{m:1},a.a.createElement(cn,{fileExtension:null!==(i=t.fileExtension)&&void 0!==i?i:"",color:"primary",type:"duotone",size:"sm"})),a.a.createElement(h.Column,null,a.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))}))}},a.a.createElement(h.Typography,{variant:"body1",color:"primary"},a.a.createElement(h.Tooltip,{title:null!==(r=t.fileName)&&void 0!==r?r:""},a.a.createElement("div",null,a.a.createElement(h.TruncatedMarkup,{lines:1,width:200,ellipsis:"..."},t.fileName))))),a.a.createElement(h.Typography,{variant:"caption"},Object(N.g)(t.fileSize||0))))))))})))))),E.isSelfValidateAllowed&&a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.Typography,{variant:"body1"},"Please read the above materials before attesting to completion of the activity."),a.a.createElement(h.Typography,{variant:"body1"},"Submission will not be possible until all documents have been opened."))),E&&E.isSelfValidateAllowed&&g===(null===v||void 0===v?void 0:v.userId)&&a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.Row,{crossAxisAlignment:"middle",mainAxisAlignment:"start",flex:1},a.a.createElement(h.Typography,{variant:"body1"},"I completed the activity described above on \xa0"),a.a.createElement(h.DateTimeField,{id:"completionDate",type:"date",label:"",required:!0,formikContext:!0,dense:!0,helperText:"",format:Object(N.h)()}),a.a.createElement(h.Button,{size:"small",variant:"contained",color:"primary",type:"submit",width:"xl",loading:P||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")),a.a.createElement(h.Row,{crossAxisAlignment:"middle",mainAxisAlignment:"start",flex:1},a.a.createElement(h.Typography,{color:"error",variant:"caption"},e.errors.completionDate)))))}))))})),Hl=i(659),Kl=i(658),Ql=Object(Hl.a)((function(e){return Object(Kl.a)({listItem:{border:"1px",borderStyle:"solid",borderColor:e.palette.grey[100]}})})),Zl=function(e){var t=e.count,i=e.requirements,n=e.type,o=e.onClick,s=Ql(),l=Object(r.useState)(!1),d=Object(c.a)(l,2),u=d[0],p=d[1],v=Object(r.useState)(void 0),f=Object(c.a)(v,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),T=w[0],P=w[1];return a.a.createElement(a.a.Fragment,null,a.a.createElement(h.List,{subheader:a.a.createElement(h.Box,{className:s.listItem},a.a.createElement(h.ListSubheader,{disableSticky:!0,colorMode:"main"},a.a.createElement(h.Box,{pt:2,pb:2},a.a.createElement(h.Grid,{container:!0},a.a.createElement(h.Grid,{item:!0,xs:1,alignment:"center-left"},a.a.createElement(h.Avatar,{customBackgroundColor:"#ffffff"},a.a.createElement(h.SystemIcon,{icon:1===n?"Cem-Mandatory":2===n?"Cem-LearnersChoice":"Activities",size:"md",color:"primary"}))),a.a.createElement(h.Grid,{item:!0,xs:7,alignment:"center-left"},a.a.createElement(h.Typography,{variant:"subtitle1"},1===n?"Mandatory Courses":2===n?"Learner's Choice":"Activities")),a.a.createElement(h.Grid,{item:!0,xs:4,alignment:"center-right"},a.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 a.a.createElement(h.Box,{className:s.listItem,pt:2,pb:2,key:"list-item-".concat(t.toString())},a.a.createElement(h.ListItem,null,a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:6,alignment:"center-left"},a.a.createElement(h.Box,null,a.a.createElement(h.Link,{underline:"none",onClick:function(){var t,i;o?o():3!==e.requirementType?(t=e.learningPlanId,i=e.requirementId,y(i),p(!0),P(t)):function(e,t){P(e),E(t),x(!0)}(e.learningPlanId,e.requirementId)}},a.a.createElement(h.Typography,{variant:"body1"},e.name)))),a.a.createElement(h.Grid,{item:!0,xs:6,alignment:"center-right"},a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:9,alignment:"center-right"},a.a.createElement(h.Row,{mainAxisAlignment:"end"},a.a.createElement(h.Column,{crossAxisAlignment:"center",mainAxisAlignment:"middle"},a.a.createElement(h.Typography,{variant:"body1"},e.startDate&&!e.isCompletedWithinRequiredDate&&a.a.createElement(h.Typography,{variant:"body1"},a.a.createElement(h.Chip,{label:"Completed Outside of Required Date",size:"small",color:"warning",variant:"outlined"})))))),a.a.createElement(h.Grid,{item:!0,xs:3,alignment:"center-right"},a.a.createElement(h.Row,{mainAxisAlignment:"end"},a.a.createElement(h.Column,{crossAxisAlignment:"center",mainAxisAlignment:"middle"},a.a.createElement(h.Typography,{variant:"body1"},e.startDate&&e.isCompletedWithinRequiredDate?Object(N.c)(e.startDate,"MMM DD, YYYY"):"Incomplete")),a.a.createElement(h.Column,{crossAxisAlignment:"center",mainAxisAlignment:"middle"},a.a.createElement(h.Typography,{variant:"body1"},e.startDate&&e.endDate&&e.isCompletedWithinRequiredDate&&" - ".concat(Object(N.c)(e.endDate,"MMM DD, YYYY")))))))))))}))),a.a.createElement(yn,{courseId:m,categories:[],open:u,onClose:function(){return p(!1)},learningPlanId:T}),a.a.createElement($l,{activityId:S,open:C,onClose:function(){return x(!1)},learningPlanId:T}))},Xl=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(ql.c(t,i))}}}))((function(e){var t=e.getLearningPlanParticipantRequirements,i=e.learningPlan,n=e.onClose,o=e.open,s=e.userId,l=Object(r.useState)(!1),d=Object(c.a)(l,2),u=d[0],p=d[1],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];return Object(r.useEffect)((function(){o&&(p(!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 p(!1)})))}),[t,i,s,o]),a.a.createElement(ba.a,{size:"lg",open:o,onClose:function(){return n()}},a.a.createElement(ga.SideDrawerHeader,{titleBar:{icon:{source:"system",value:"LearningPlans"},title:"Learning Plan"}}),a.a.createElement(ga.SideDrawerBody,{maxWidth:!1,bgColor:"white"},u?a.a.createElement(Ln,{type:"filter-drawer"}):a.a.createElement(h.Column,{size:"max",crossAxisAlignment:"stretch"},a.a.createElement(Vl,{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&&a.a.createElement(h.Expanded,null,a.a.createElement(Zl,{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&&a.a.createElement(h.Expanded,null,a.a.createElement(Zl,{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&&a.a.createElement(h.Expanded,null,a.a.createElement(Zl,{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)&&a.a.createElement(h.Expanded,{maxWidth:430,alignSelf:"center",mt:2},a.a.createElement(h.Alert,{type:"info",variant:"standard"},"No courses or activities associated with this learning plan.")))))})),ec=i(102),tc=Object(z.makeStyles)((function(e){var t=e.palette,i=e.spacing,r=e.typography;return Object(z.createStyles)({cardTitle:Object(D.a)(Object(D.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(D.a)(Object(D.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"}})})),ic=Object(Hl.a)((function(e){var t=e.spacing,i=e.palette;return Object(Kl.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"}})})),rc=function(e){var t=e.count,i=e.learningPlanId,n=e.requirements,o=e.type,s=ic(),l=Object(r.useState)(!1),d=Object(c.a)(l,2),u=d[0],p=d[1],v=Object(r.useState)(void 0),f=Object(c.a)(v,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 a.a.createElement(a.a.Fragment,null,a.a.createElement(h.List,{className:s.list,subheader:a.a.createElement(h.Box,{className:s.listItem},a.a.createElement(h.ListSubheader,{disableSticky:!0,colorMode:"main"},a.a.createElement(h.Box,{pt:2,pb:2},a.a.createElement(h.Grid,{container:!0},a.a.createElement(h.Grid,{item:!0,xs:1},a.a.createElement(h.Avatar,{customBackgroundColor:"#ffffff"},a.a.createElement(h.SystemIcon,{icon:1===o?"Cem-Mandatory":2===o?"Cem-LearnersChoice":"Activities",size:"md",color:"primary"}))),a.a.createElement(h.Grid,{item:!0,xs:7,alignment:"center-left"},a.a.createElement(h.Typography,{variant:"subtitle1"},1===o?"Mandatory Courses":2===o?"Learner's Choice":"Activities")),a.a.createElement(h.Grid,{item:!0,xs:4,alignment:"center-right"},a.a.createElement(h.Typography,{variant:"subtitle1",weight:"semi-bold",component:"span"},"Complete ".concat(null!==t&&void 0!==t?t:null===n||void 0===n?void 0:n.length," out of ").concat(null===n||void 0===n?void 0:n.length)))))))},3!==o?null===n||void 0===n?void 0:n.map((function(e){return a.a.createElement(h.ListItem,{className:s.listItem,key:"list-item-".concat(e.courseId)},a.a.createElement(h.Box,{ml:1.5,pt:.5,pb:.5},a.a.createElement(h.Link,{underline:"none",onClick:function(){var t;t=e.courseId,y(t),p(!0)}},a.a.createElement(h.Typography,{variant:"body1"},e.name))))})):null===n||void 0===n?void 0:n.map((function(e){return a.a.createElement(h.ListItem,{className:s.listItem,key:"list-item-".concat(e.activityId)},a.a.createElement(h.Box,{ml:1.5,pt:.5,pb:.5},a.a.createElement(h.Link,{underline:"none",onClick:function(){var t;t=e.activityId,E(t),x(!0)}},a.a.createElement(h.Typography,{variant:"body1"},e.name))))}))),a.a.createElement(yn,{courseId:m,categories:[],open:u,onClose:function(){return p(!1)},learningPlanId:i}),a.a.createElement($l,{activityId:S,open:C,onClose:function(){return x(!1)},learningPlanId:i}))},ac=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(ql.d(t))},addLearningPlanParticipants:function(t,i){return e(ql.a(t,[i]))},setRequestBody:function(t){return e(ec.d(t))},setCatalogRequestBody:function(t){return e(ec.a(t))}}}))((function(e){var t=e.getLearningPlanRequirements,i=e.learningPlan,n=e.onClose,o=e.open,s=e.userId,l=e.addLearningPlanParticipants,d=e.requestBody,u=e.setRequestBody,p=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),T=w[0],P=w[1],A=Object(r.useState)(),N=Object(c.a)(A,2),k=N[0],L=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}))),P(null===e||void 0===e||null===(i=e.learningPlanCourses)||void 0===i?void 0:i.filter((function(e){return 2===e.type}))),L(null===e||void 0===e?void 0:e.learningPlanActivities),E(!1)})))}),[t,i,o]);return a.a.createElement(ba.a,{size:"lg",open:o,onClose:function(){return n()}},a.a.createElement(ga.SideDrawerHeader,{titleBar:{icon:{source:"system",value:"LearningPlans"},title:"Learning Plan Details"}}),a.a.createElement(ga.SideDrawerBody,{maxWidth:!1,bgColor:"default"},S?a.a.createElement(Ln,{type:"filter-drawer"}):a.a.createElement(h.Column,{size:"max",crossAxisAlignment:"stretch"},a.a.createElement(h.Expanded,{mb:2},s&&a.a.createElement(nc,{learningPlan:i,showAllDescription:!0,onUserRegister:function(){return function(){var e=new v.pd({userId:s,isIncluded:!0,criteriaMet:[],participantCriteriaStatus:v.jb.SelfRegistered});i.learningPlanId&&s&&l(i.learningPlanId,e).then((function(){f(Object(D.a)({},p)),u(Object(D.a)({},d)),n()}))}()},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&&a.a.createElement(h.Expanded,null,a.a.createElement(rc,{requirements:C,type:1,learningPlanId:i.learningPlanId})),1!==(null===i||void 0===i?void 0:i.type)&&((null===T||void 0===T?void 0:T.length)||0)>0&&a.a.createElement(h.Expanded,null,a.a.createElement(rc,{count:null===i||void 0===i?void 0:i.requiredCourses,requirements:T,type:2,learningPlanId:i.learningPlanId})),((null===k||void 0===k?void 0:k.length)||0)>0&&a.a.createElement(h.Expanded,null,a.a.createElement(rc,{requirements:k,type:3,learningPlanId:i.learningPlanId})),0===((null===C||void 0===C?void 0:C.length)||0)&&0===((null===T||void 0===T?void 0:T.length)||0)&&0===((null===k||void 0===k?void 0:k.length)||0)&&a.a.createElement(h.Expanded,{maxWidth:430,alignSelf:"center"},a.a.createElement(h.Alert,{type:"info",variant:"standard"},"No courses or activities associated with this learning plan.")))))})),nc=function(e){var t,i,n=e.learningPlan,o=e.showAllDescription,s=e.onUserRegister,l=e.onUserCancelRegistration,d=e.hasManagePermission,u=e.hasDeletePermission,p=e.showDetailDrawer,f=e.isRegistered,m=e.isRegistrationClosed,y=tc(),g=Object(r.useState)(!1),b=Object(c.a)(g,2),S=b[0],E=b[1],I=void 0===(null===n||void 0===n?void 0:n.status)||null===(null===n||void 0===n?void 0:n.status)?void 0:0===(null===n||void 0===n?void 0:n.status)?"default":1===(null===n||void 0===n?void 0:n.status)?"info":2===(null===n||void 0===n?void 0:n.status)?"success":4===(null===n||void 0===n?void 0:n.status)?"secondary":"error",O=n&&(null===n||void 0===n||null===(t=n.learningPlanCompetencies)||void 0===t?void 0:t.map((function(e){return e.name}))),C=n&&(null===n||void 0===n||null===(i=n.learningPlanTags)||void 0===i?void 0:i.map((function(e){return e.name})));return a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Card,{variant:"outlined",status:I},void 0!==n&&a.a.createElement(a.a.Fragment,null,a.a.createElement(h.CardHeader,{classes:{root:y.cardHeader,title:y.cardTitle},title:a.a.createElement(h.Typography,{variant:"subtitle1"},null===n||void 0===n?void 0:n.title),subheader:""}),a.a.createElement(h.CardContent,{classes:{root:y.cardContent}},a.a.createElement(h.Box,{width:"100%"},a.a.createElement(h.Typography,{variant:"subtitle2",weight:"bold"},n.timeframeOfCompletion===v.ud.CalendarBased?"".concat(n.startDate?Object(N.c)(n.startDate):"No Date Specified"," - ").concat(n.endDate?Object(N.c)(n.endDate):"No Date Specified"):n.timeframeOfCompletion===v.ud.TimeToComplete?"Complete Within ".concat(null===n||void 0===n?void 0:n.duration," ").concat(n&&n.duration&&n.duration>1?v.Ib[(null===n||void 0===n?void 0:n.durationType)||0]:n&&n.durationType&&1===n.durationType?"Day":n&&n.durationType&&2===n.durationType?"Week":"Month"," From Date Added"):"No Date Specified"),a.a.createElement(h.Spacer,{size:1.5,vertical:!0}),a.a.createElement(h.Box,{marginTop:-2.5},a.a.createElement(h.Typography,{variant:"body2",className:Object(ro.default)(Object(kn.a)({},y.learningPlanDescription,!o))},a.a.createElement(h.TextEditorView,{model:""!==n.description?Object(k.a)(n.description):"No description available."}))),n&&a.a.createElement(h.Box,null,a.a.createElement(ln,{courseCompetencies:O||[],courseTags:C||[]}))))),a.a.createElement(h.CardActions,{classes:{root:y.cardActions}},a.a.createElement(h.Row,{crossAxisAlignment:"middle"},p&&a.a.createElement(h.Expanded,{mt:1,mb:1},a.a.createElement(h.Row,{mainAxisAlignment:"start",crossAxisAlignment:"middle"},a.a.createElement(h.Button,{variant:"text",color:"primary",size:"small",onClick:function(){return E(!0)}},a.a.createElement(h.Typography,{variant:"body2"},"Show Learning Plan Details")))),a.a.createElement(h.Expanded,{mt:1,mb:1,textAlign:"right"},m?a.a.createElement(h.Row,{mainAxisAlignment:"end",crossAxisAlignment:"middle"},a.a.createElement(h.Expanded,{flex:0},a.a.createElement(h.Button,{className:y.selfRegisterButton,size:"small",variant:"contained",color:"default",disabled:!0,type:"button",width:"xl"},a.a.createElement(h.Typography,{variant:"body2"},"Registration Closed"))),f&&a.a.createElement(h.Expanded,{flex:0,ml:2.5},a.a.createElement(h.Chip,{width:"lg",variant:"default",color:"primary",colorMode:"dark",label:"Registered"}))):f?a.a.createElement(h.Row,{mainAxisAlignment:"end",crossAxisAlignment:"middle"},a.a.createElement(h.Expanded,{flex:0,mr:2.5},a.a.createElement(h.Button,{variant:"text",color:"primary",size:"small",onClick:function(){l&&l()},disabled:!u},a.a.createElement(h.Typography,{variant:"body2"},"Cancel Registration"))),a.a.createElement(h.Expanded,{flex:0},a.a.createElement(h.Chip,{width:"lg",variant:"default",color:"primary",colorMode:"dark",label:"Registered"}))):a.a.createElement(h.Button,{variant:"contained",color:"primary",size:"small",onClick:function(){return s()},disabled:!d},a.a.createElement(h.Typography,{variant:"body2"},"Self-Register"))))),(null===n||void 0===n?void 0:n.learningPlanMaterials)&&(null===n||void 0===n?void 0:n.learningPlanMaterials.length)>0&&a.a.createElement(Wl,{materialList:null===n||void 0===n?void 0:n.learningPlanMaterials})),p&&n&&a.a.createElement(ac,{open:S,onClose:function(){return E(!1)},learningPlan:n,hasManagePermission:d,hasDeletePermission:u}))},oc=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(ql.b())},addLearningPlanParticipants:function(t,i){return e(ql.a(t,[i]))},setRequestBody:function(t){return e(ec.d(t))},setCatalogRequestBody:function(t){return e(ec.a(t))},getTags:function(){return e(_n())},getCompetencies:function(){return e(Fn())}}}))((function(e){var t,i,n=e.onClose,o=e.open,s=e.getLearningPlanCatalog,l=e.userId,d=e.addLearningPlanParticipants,u=e.setRequestBody,p=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],T=E(v.Kd.ManagePortalLearningPlans),P=E(v.Kd.DeletePortalLearningPlans),A=Object(r.useState)(),N=Object(c.a)(A,2),k=N[0],L=N[1],F=Object(r.useState)(),B=Object(c.a)(F,2),R=B[0],U=B[1],G=Object(r.useState)(""),M=Object(c.a)(G,2),q=M[0],z=M[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(D.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&&(L(void 0),y().then((function(e){L(e.tags)})))}),[y,o]),Object(r.useEffect)((function(){o&&(U(void 0),g().then((function(e){U(e.competencies)})))}),[g,o]);var $=Object(J.useDebounce)((function(e){!function(e){var t=Array();""!==e?(t.push("Title[contains]:".concat(e)),m(Object(D.a)(Object(D.a)({},f),{},{filterBy:t}))):m(Object(D.a)(Object(D.a)({},f),{},{filterBy:[]}))}(e)}),500),H=function(e,t,i){var r,a=Array(),n=null===f||void 0===f||null===(r=f.searchCriteria)||void 0===r?void 0:r.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)]&&a.push(i)}))}));return a},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(Ta.object)().shape({learningPlanType:Object(Ta.array)().notRequired(),learningPlanCompetencies:Object(Ta.array)().notRequired(),learningPlanTags:Object(Ta.array)().notRequired()}),onSubmit:function(e,t){var i=e.learningPlanType,r=e.learningPlanCompetencies,a=e.learningPlanTags,n=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(),",")})),n.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(),",")})),n.push(s.slice(0,-1))}if(a.length>0){var l="LearningPlanTag[or]: ";a.forEach((function(e){var t,i=null!==(t=e.tagId)&&void 0!==t?t:0;l=l.concat(i.toString(),",")})),n.push(l.slice(0,-1))}m(Object(D.a)(Object(D.a)({},f),{},{sortBy:"title",searchCriteria:n})),t.setSubmitting(!1)}};return a.a.createElement(ba.a,{size:"lg",open:o,onClose:function(){return n()}},a.a.createElement(ga.SideDrawerHeader,{titleBar:{icon:{source:"system",value:"LearningPlans"},title:"Learning Plan Catalog"}}),a.a.createElement(ga.SideDrawerBody,{maxWidth:!1,bgColor:"default"},void 0!==k&&void 0!==R?a.a.createElement(a.a.Fragment,null,a.a.createElement(wa.Formik,{initialValues:K.initialValues,validationSchema:K.validationSchema,onSubmit:K.onSubmit,enableReinitialize:!0},(function(e){return a.a.createElement(h.Form,{id:"learningPlanCatalogFilter"},a.a.createElement(h.Grid,{container:!0,spacing:"form",alignment:"center-left"},a.a.createElement(h.Grid,{item:!0,xs:12,sm:6,md:4},a.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})),a.a.createElement(h.Grid,{item:!0,xs:12,sm:6,md:4},a.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})),a.a.createElement(h.Grid,{item:!0,xs:12,sm:6,md:1},(e.values.learningPlanTags.length>=1||e.values.learningPlanCompetencies.length>=1)&&a.a.createElement(h.IconButton,{color:"secondary",component:"span",onClick:function(){return e.setFieldValue("learningPlanType",[]),e.setFieldValue("learningPlanCompetencies",[]),e.setFieldValue("learningPlanTags",[]),void m(Object(D.a)(Object(D.a)({},f),{},{searchCriteria:[]}))}},a.a.createElement(h.SystemIcon,{size:"sm",type:"light",icon:"ClearFilters"}))),a.a.createElement(h.Grid,{item:!0,xs:12,sm:12,md:3},a.a.createElement(h.TextField,{dense:!0,placeholder:"Search",type:"text",startAdornment:a.a.createElement(h.InputAdornment,{position:"start"},a.a.createElement(h.SystemIcon,{icon:"Search"})),onChange:function(e){z(e.target.value),$(e.target.value)},formikContext:!1,fullWidth:!0,value:q}))))})),a.a.createElement(h.Spacer,{size:2,vertical:!0})):a.a.createElement(h.Grid,{container:!0,spacing:"form",alignment:"center-left"},a.a.createElement(h.Grid,{item:!0,xs:12,sm:6,md:4},a.a.createElement(h.TextField,{dense:!0,type:"text",formikContext:!1,fullWidth:!0,loading:!0})),a.a.createElement(h.Grid,{item:!0,xs:12,sm:6,md:4},a.a.createElement(h.TextField,{dense:!0,type:"text",formikContext:!1,fullWidth:!0,loading:!0})),a.a.createElement(h.Grid,{item:!0,xs:12,sm:6,md:1},a.a.createElement(h.IconButton,{color:"default",component:"span"},a.a.createElement(h.SystemIcon,{size:"sm",icon:"ClearFilters"}))),a.a.createElement(h.Grid,{item:!0,xs:12,sm:12,md:3},a.a.createElement(h.TextField,{dense:!0,type:"text",formikContext:!1,fullWidth:!0,loading:!0}))),a.a.createElement(h.Grid,{container:!0,spacing:"card"},void 0===I?a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.Box,null,a.a.createElement(Ln,{type:"filter-drawer"}))):0===(null===I||void 0===I?void 0:I.length)?a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center"},a.a.createElement(h.Box,{width:300},a.a.createElement(h.Alert,{type:"info",variant:"standard"},"No records found."))):a.a.createElement(a.a.Fragment,null,I.map((function(e){return a.a.createElement(h.Grid,{item:!0,xs:12,key:e.learningPlanId},l&&a.a.createElement(nc,{learningPlan:e,showAllDescription:!1,onUserRegister:function(){return e.learningPlanId&&function(e){var t=new v.pd({userId:l,isIncluded:!0,criteriaMet:[],participantCriteriaStatus:v.jb.SelfRegistered});l&&d(e,t).then((function(){u(Object(D.a)({},p)),m(Object(D.a)({},f))}))}(e.learningPlanId)},hasManagePermission:T,showDetailDrawer:!0,isRegistered:!1,isRegistrationClosed:!1,hasDeletePermission:P}))})),(null===I||void 0===I?void 0:I.length)>0&&a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center"},a.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(D.a)(Object(D.a)({},f),{},{page:e}))}(t)}}))))))})),sc=Object(z.makeStyles)((function(e){var t=e.palette,i=e.spacing,r=e.typography;return Object(z.createStyles)({cardTitle:Object(D.a)(Object(D.a)({},r.subtitle1),{},{fontWeight:700}),cardSubheader:Object(D.a)({},r.subtitle2),cardContent:Object(D.a)(Object(D.a)({},r.subtitle2),{},{color:t.grey[500]}),toggleButton:{minWidth:i(37.5)}})})),lc=i(183),cc=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(lc.i(t))},setSelectedLearningPlan:function(t){return e(ec.e(t))},setRequestBody:function(t){return e(ec.d(t))},getScreenDescription:function(t){return e(Object(ia.c)(t))},deleteLearningPlanParticipant:function(t){return e(lc.b([t]))},showConfirmation:function(t){return e(Object(on.b)(t))},getCourseFilters:function(){return e(Object(ia.b)())}}})),dc=Object(Ml.a)(cc((function(e){var t=e.getLearningPlans,i=e.learningPlans,n=e.loggedUser,o=e.getScreenDescription,s=e.deleteLearningPlanParticipant,l=e.showConfirmation,d=e.setSelectedLearningPlan,u=e.isLoading,p=e.setRequestBody,f=e.requestBody,m=e.getCourseFilters,y=e.courseFilters,g=sc(),b=n&&n.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],P=j[1],N=Object(r.useState)(!1),L=Object(c.a)(N,2),J=L[0],F=L[1],B=Object(r.useState)("AllStatuses"),R=Object(c.a)(B,2),U=R[0],G=R[1],M=Object(r.useState)([]),q=Object(c.a)(M,2),z=q[0],W=q[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(v.Kd.DeletePortalLearningPlans);Object(r.useEffect)((function(){var e={userId:Number(null===n||void 0===n?void 0:n.userId),filterBy:[],searchCriteria:["Active"],sortBy:"-endDate",page:1,pageSize:10};p(e)}),[p,n]),Object(r.useEffect)((function(){(null===n||void 0===n?void 0:n.userId)&&t(Number(null===n||void 0===n?void 0:n.userId)).then((function(e){Z(e)}))}),[t,n,f]),Object(r.useEffect)((function(){b&&o(v.Md.LearningPlans).then((function(e){return $(e)}))}),[o,b]),Object(r.useEffect)((function(){b&&null===y&&m()}),[m,b,y]);var ae=[{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"}],ne=function(e){var t,i,r=[];e.statusFilter&&(null===(i=Object.entries(v.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)}))),p(Object(D.a)(Object(D.a)({},f),{},{page:e.page||1,searchCriteria:r.length?r:["Active"]}))},oe=function(e){ne({statusFilter:"".concat(e.target.value),criteriaFilter:z})};return a.a.createElement(h.Screen,{maxWidth:"lg",titleBar:{title:(Y&&""!==Y.title?Y.title:"Learning Plans")||"Learning Plans",description:Y?a.a.createElement(h.Column,null,null!==Y.shortDescription&&""!==Y.shortDescription&&a.a.createElement(h.TextEditorView,{model:Object(k.a)(Y.shortDescription)}),null!==Y.text&&""!==Y.text&&a.a.createElement(h.Box,{mt:2},a.a.createElement(h.Button,{variant:"outlined",size:"small",onClick:function(){return F(!0)}},"Show More"))):a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Box,{mt:2.5},a.a.createElement(h.Skeleton,{width:"100%",height:20,variant:"rect"})),a.a.createElement(h.Box,{mt:1},a.a.createElement(h.Skeleton,{width:"100%",height:20,variant:"rect"}))),sideSection:a.a.createElement(h.Box,{alignSelf:"center"},a.a.createElement(h.Button,{color:"primary",variant:"contained",onClick:function(){return ie(!0)}},"Learning Plan Catalog"))}},a.a.createElement(h.Grid,{container:!0,spacing:"card"},a.a.createElement(h.Grid,{item:!0,xs:12,sm:6,md:6,lg:6},"Excluded"===U?a.a.createElement(h.Box,{maxWidth:300},a.a.createElement(h.Tooltip,{title:"No longer required to complete",placement:"right-start"},a.a.createElement("span",null,a.a.createElement(h.SelectField,{fullWidth:!0,dense:!0,value:U,variant:"outlined",formikContext:!1,onChange:oe,startAdornment:"Status:"},ae.map((function(e,t){return a.a.createElement(h.MenuItem,{key:"menuItem-".concat(t),value:e.key},a.a.createElement(h.Row,null,a.a.createElement(h.Expanded,null,a.a.createElement(h.Typography,{variant:"body1",weight:"semi-bold"},e.name))))})))))):a.a.createElement(h.Box,{maxWidth:300},a.a.createElement(h.SelectField,{fullWidth:!0,dense:!0,value:U,variant:"outlined",formikContext:!1,onChange:oe,startAdornment:"Status:"},ae.map((function(e,t){return a.a.createElement(h.MenuItem,{key:"menuItem-status-".concat(t),value:e.key},a.a.createElement(h.Row,null,a.a.createElement(h.Expanded,null,a.a.createElement(h.Typography,{variant:"body1",weight:"semi-bold"},e.name))))}))))),a.a.createElement(h.Grid,{item:!0,xs:12,sm:6,md:6,lg:6,alignment:"center-right",justifyContent:"flex-end"},a.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||ne({statusFilter:U,criteriaFilter:["Active"]}),1===t.length&&"assigned"===t[0]&&ne({statusFilter:U,criteriaFilter:["Active","ExcludeSelfRegistered"]}),1===t.length&&"selfRegistered"===t[0]&&ne({statusFilter:U,criteriaFilter:["Active","SelfRegistered"]}),C(t)}})),u?a.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},a.a.createElement(h.Card,{variant:"outlined",status:"default"},a.a.createElement(h.CardHeader,{classes:{title:g.cardTitle,subheader:g.cardSubheader},title:a.a.createElement(h.Skeleton,{height:32}),subheader:a.a.createElement(h.Skeleton,{width:"40%"})}),a.a.createElement(h.CardContent,{classes:{root:g.cardContent},noTopPadding:!0},a.a.createElement(h.Skeleton,{width:"60%"})),a.a.createElement(h.CardActions,null,a.a.createElement(h.Skeleton,{width:"30%"})))):a.a.createElement(a.a.Fragment,null,0===(null===i||void 0===i?void 0:i.length)&&a.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0,alignContent:"center",alignItems:"center",alignment:"center"},a.a.createElement(h.Widget,null,a.a.createElement(h.Box,null,a.a.createElement(h.Box,{width:"100%",minHeight:"64px",bgcolor:"#F1F1F1"},a.a.createElement(h.Box,{ml:1},a.a.createElement(A.a,{title:""}))),a.a.createElement(h.Box,{width:"100%"},a.a.createElement(T.a,null,a.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 a.a.createElement(Vl,{learningPlan:e,onShowDetailDrawer:function(){d(e),P(!0)},onRemovePlan:e.criteriaStatus===v.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(){p(Object(D.a)({},f))}))}});var t}:void 0,isSelfRegistered:e.criteriaStatus===v.jb.SelfRegistered,hasDeletePermission:re,showAllDescription:!1,key:e.learningPlanId})})),i&&(null===i||void 0===i?void 0:i.length)>0&&a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center"},a.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){p(Object(D.a)(Object(D.a)({},f),{},{page:e}))}(t)}})))),a.a.createElement(Xl,{open:w,onClose:function(){return P(!1)}}),a.a.createElement(Ea,{open:J,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}),a.a.createElement(oc,{open:te,onClose:function(){return ie(!1)}}))}))),uc=Object(r.createContext)({removeFromCollection:!1,setRemoveFromCollection:function(){},updateCollection:!1,setUpdateCollection:function(){}}),hc=function(){return Object(r.useContext)(uc)};function pc(){pc=function(){return e};var e={},t=Object.prototype,i=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",n=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 a=t&&t.prototype instanceof u?t:u,n=Object.create(a.prototype),o=new O(r||[]);return n._invoke=function(e,t,i){var r="suspendedStart";return function(a,n){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw n;return x()}for(i.method=a,i.arg=n;;){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),n}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 p(){}var v={};s(v,a,(function(){return this}));var f=Object.getPrototypeOf,m=f&&f(f(C([])));m&&m!==t&&i.call(m,a)&&(v=m);var y=p.prototype=u.prototype=Object.create(v);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(a,n){function o(){return new t((function(r,o){!function r(a,n,o,s){var l=c(e[a],e,n);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)}(a,n,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 a=r.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):a:(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[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r=0;--a){var n=this.tryEntries[a],o=n.completion;if("root"===n.tryLoc)return r("end");if(n.tryLoc<=this.prev){var s=i.call(n,"catchLoc"),l=i.call(n,"finallyLoc");if(s&&l){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&i.call(a,"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 a=r.arg;I(i)}return a}}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 vc=al(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 U.m.getCollection(e,void 0).then((function(e){return e})).catch((function(e){throw t(Object(G.b)(e)),e}))}}(t))},getUserCourseCollectionByCollectionId:function(t){return e(function(e){return function(t){return U.m.getAllCourseCollectionByCollectionId(void 0,v.hd.fromJS(e)).then((function(e){return e})).catch((function(e){throw t(Object(G.b)(e)),e}))}}(t))},removeCourseFromCollection:function(t,i){return e(Or(t,i))},showNotification:function(t,i){return e(G.a({message:t,variant:i}))},showConfirmation:function(t){return e(Object(on.b)(t))},updateCollection:function(t){return e(function(e){return function(t){return U.m.updateCollection(void 0,v.xe.fromJS(e)).then((function(e){return e})).catch((function(e){throw t(Object(G.b)(e)),e}))}}(t))},validateCollection:function(t,i){return e(function(e,t){return function(i,r){var a=r().users.loggedUser,n=null===a||void 0===a?void 0:a.userId;return U.m.validateCollection(void 0,v.Ue.fromJS(new v.Ue({userId:n,collectionIds:e,title:t}))).then((function(e){return e})).catch((function(e){throw i(Object(G.b)(e)),e}))}}(t,i))}}}))((function(e){var t,i,n=e.collectionId,o=e.getCollection,s=e.getUserCourseCollectionByCollectionId,d=e.onClose,u=e.open,p=e.showConfirmation,v=e.showNotification,f=e.removeCourseFromCollection,m=e.updateCollection,y=e.userId,g=e.validateCollection,b=Object(il.useDataGridContext)(),S=b.setSelectedIdList,E=b.selectedIdList,I=hc(),O=I.setRemoveFromCollection,C=I.setUpdateCollection,x=ol(E),j=Object(r.useState)({}),w=Object(c.a)(j,2),T=w[0],P=w[1],A=Object(r.useState)(),N=Object(c.a)(A,2),k=N[0],L=N[1],J=Object(r.useState)(),F=Object(c.a)(J,2),B=F[0],R=F[1],U=Object(r.useState)(0),G=Object(c.a)(U,2),M=G[0],q=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 L(void 0),e||o(n).then((function(e){L(e)})),function(){e=!0}}),[n,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:[]};P(e)}}),[k,y]),Object(r.useEffect)((function(){R(void 0),q(0),s(T).then((function(e){R((null===e||void 0===e?void 0:e.courses)||[]),q((null===e||void 0===e?void 0:e.recordCount)||0)}))}),[s,T]);var Y=function(e,t){P(Object(D.a)(Object(D.a)({},T),{},{page:e,pageSize:t}))},$=function(){var e=Object(l.a)(pc().mark((function e(){return pc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:x.selectedIds.length>0?p({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(n,x.selectedIds).then((function(){S({}),R(void 0),O&&O(!0),s(T).then((function(e){R((null===e||void 0===e?void 0:e.courses)||[]),q((null===e||void 0===e?void 0:e.recordCount)||0)})),v("The courses selected has been successfully removed from the collection.","success")})),O&&O(!1)}}):v("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(D.a)(Object(D.a)({},T),{},{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 a.a.createElement(h.Column,null,a.a.createElement(h.Typography,{variant:"body1"},i.value),a.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 a.a.createElement(h.IconButton,{onClick:function(){return t&&function(e){p({message:"Are you sure you want to remove the course from the collection?",title:"Remove Course",OnConfirm:function(){f(n,[e]).then((function(){R(void 0),O&&O(!0),s(T).then((function(e){R((null===e||void 0===e?void 0:e.courses)||[]),q((null===e||void 0===e?void 0:e.recordCount)||0)})),v("The course has been successfully removed from the collection.","success")}))}}),O&&O(!1)}(t)}},a.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(Ta.object)().shape({collectionTitle:Object(Ta.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)(pc().mark((function e(t){var i;return pc().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(Ta.string)().max(500,"Description must not exceed 500 characters.")}),onSubmit:function(e,t){var i=e.collectionTitle,r=e.description,a={userId:y,collectionId:null===k||void 0===k?void 0:k.collectionId,collectionTitle:i,description:r};V||(_(!0),p({message:"Are you sure you want to update the collection?",title:"Update Collection",OnConfirm:function(){m(a).then((function(){C&&C(!0),v("The collection has been successfully updated.","success"),d()})).catch((function(e){throw d(),e})),C&&C(!1)}})),_(!1),t.setSubmitting(!1)}};return a.a.createElement(ba.a,{open:u,onClose:d,size:"md"},a.a.createElement(wa.Formik,{initialValues:Q.initialValues,validationSchema:Q.validationSchema,onSubmit:Q.onSubmit,enableReinitialize:!0},(function(e){var t,i,r=e.dirty,n=[{label:"Details",component:a.a.createElement(a.a.Fragment,{key:1},a.a.createElement(ga.SideDrawerBody,null,k?a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.TextField,{id:"collectionTitle",required:!0,label:"Collection Title",fullWidth:!0})),a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.TextField,{id:"description",label:"Description",fullWidth:!0,multiline:!0,rows:"5",rowsMax:"6"}))):a.a.createElement(Ln,{type:"filter-drawer"})),a.a.createElement(ga.SideDrawerFooter,null,a.a.createElement(h.Grid,{container:!0,spacing:"form",justify:"center"},a.a.createElement(h.Grid,{item:!0,lg:3,md:4,xs:6},a.a.createElement(h.Button,{color:"default",variant:"outlined",fullWidth:!0,onClick:function(){return d()}},"Cancel")),a.a.createElement(h.Grid,{item:!0,lg:3,md:4,xs:6},a.a.createElement(h.Button,{color:"primary",type:"submit",variant:"contained",fullWidth:!0,disabled:!r},"Save")))))},{label:"Courses",component:a.a.createElement(ga.SideDrawerBody,{maxWidth:!1,key:2,bgColor:"white"},a.a.createElement(qa.a,{id:"courseId",columns:K||[],data:B||[],onSelectAll:H,advanced:!0,withRowSelection:!0,loading:void 0===B,totalRecords:null!==M&&void 0!==M?M:0,pageIndex:null!==(t=null===T||void 0===T?void 0:T.page)&&void 0!==t?t:1,pageSize:null!==(i=null===T||void 0===T?void 0:T.pageSize)&&void 0!==i?i:10,onNavigate:Y,tableActions:a.a.createElement(h.Box,{display:"flex",justifyContent:"flex-end"},a.a.createElement(h.Button,{color:"primary",size:"small",onClick:function(){return $()}},"Remove from Collection"))}))}];return a.a.createElement(h.Form,{id:"update-collection"},a.a.createElement(ga.SideDrawerHeader,{titleBar:{title:"Edit Collection"},tabs:n}))})))}))),fc=Object(z.makeStyles)((function(e){var t=e.palette,i=e.spacing,r=e.typography;return Object(z.createStyles)({cardTitle:Object(D.a)(Object(D.a)({},r.subtitle1),{},{fontWeight:700}),cardSubheader:Object(D.a)({},r.subtitle2),cardContent:Object(D.a)(Object(D.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)}})})),mc=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 U.m.deleteCollection(void 0,new v.qb({collectionId:e})).then((function(){return!0})).catch((function(e){return t(Object(G.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 U.m.getUserCourseCollection(r,void 0).then((function(e){return e})).catch((function(t){throw e(Object(G.b)(t)),t}))}))},showConfirmation:function(t){return e(Object(on.b)(t))},showNotification:function(t,i){return e(G.a({message:t,variant:i}))}}}))((function(e){var t=e.deleteCollection,i=e.getUserCourseCollection,n=e.loggedUserId,o=e.showConfirmation,s=e.showNotification,l=hc(),d=l.removeFromCollection,u=l.updateCollection,p=fc(),v=Object(r.useState)(),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)(0),O=Object(c.a)(I,2),C=O[0],x=O[1],j=Object(r.useState)(!1),w=Object(c.a)(j,2),T=w[0],P=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(z.useTheme)(),U=Object(z.useMediaQuery)(R.breakpoints.down("xs"));Object(r.useEffect)((function(){y(void 0),i().then((function(e){y(e)}))}),[k,i,d,u,n]);return a.a.createElement(a.a.Fragment,null,void 0===m?a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Box,{mb:1},a.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},a.a.createElement(h.Skeleton,{width:"20%"}))),a.a.createElement(h.Grid,{container:!0,spacing:"card"},[1,2,3,4,5,6].map((function(e){return a.a.createElement(h.Grid,{key:e,item:!0,xs:12,sm:U?12:6,lg:U?12:4,stretchContent:!0},a.a.createElement(h.Card,{variant:"outlined",status:"default"},a.a.createElement(h.CardHeader,{classes:{title:p.cardTitle,subheader:p.cardSubheader},title:a.a.createElement(h.Skeleton,{height:32}),subheader:a.a.createElement(h.Skeleton,{width:"40%"})}),a.a.createElement(h.CardContent,{classes:{root:p.cardContent},noTopPadding:!0},a.a.createElement(h.Skeleton,{width:"60%"})),a.a.createElement(h.CardActions,null,a.a.createElement(h.Skeleton,{width:"30%"}))))})))):0===m.length?a.a.createElement(h.Grid,{container:!0,spacing:"card"},a.a.createElement(h.Grid,{item:!0,xs:12,sm:12,lg:12,justify:"center"},a.a.createElement(h.Box,{maxWidth:"300px",margin:"0 auto"},a.a.createElement(h.Alert,{variant:"standard",type:"info",icon:"Info"},a.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,n,l,c=(null===e||void 0===e||null===(i=e.userCourseCollections)||void 0===i?void 0:i.length)||0;return a.a.createElement(h.Box,{mb:6,key:null===e||void 0===e?void 0:e.collectionId},a.a.createElement(h.Row,{mainAxisAlignment:"start",crossAxisAlignment:"middle"},a.a.createElement(h.Expanded,{mb:1,flex:0},a.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},""===(null===e||void 0===e?void 0:e.collectionDescription)?a.a.createElement("b",null,null===e||void 0===e?void 0:e.collectionTitle):a.a.createElement(h.Tooltip,{title:a.a.createElement("pre",{className:p.tooltip},null===e||void 0===e?void 0:e.collectionDescription)||""},a.a.createElement("b",null,null===e||void 0===e?void 0:e.collectionTitle)),a.a.createElement(h.Box,{component:"span",ml:.5},"(",c," ",c>1?"items":" item",")"))),a.a.createElement(h.Expanded,{mb:1,flex:0,ml:2},a.a.createElement(h.Typography,{variant:"subtitle2"},a.a.createElement(h.Row,null,a.a.createElement(h.Box,null,a.a.createElement(h.Button,{variant:"text",color:"primary",onClick:function(){x((null===e||void 0===e?void 0:e.collectionId)||0),E(!0)}},"Edit")),a.a.createElement(h.Box,null,a.a.createElement(h.Button,{variant:"text",color:"primary",disabled:!!((null===(r=e.userCourseCollections)||void 0===r?void 0:r.length)&&(null===(n=e.userCourseCollections)||void 0===n?void 0:n.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?a.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,n=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 a.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},a.a.createElement(h.Card,{variant:"outlined",status:"primary"},a.a.createElement(h.CardHeader,{classes:{title:p.cardTitle,subheader:p.cardSubheader},title:null===e||void 0===e?void 0:e.title}),a.a.createElement(h.CardContent,{classes:{root:p.cardContent},noTopPadding:!0},a.a.createElement(h.Typography,{variant:"subtitle2"},null===e||void 0===e?void 0:e.providerName)),a.a.createElement(h.CardActions,null,a.a.createElement(h.Row,{crossAxisAlignment:"middle"},a.a.createElement(h.Expanded,{flex:1},s?a.a.createElement(h.Tooltip,{title:"On-demand",placement:"bottom"},a.a.createElement("span",{className:s?p.iconEnabled:p.iconDisabled},a.a.createElement(za,{format:"On-demand",size:"sm",type:s?"duotone":"light"}))):a.a.createElement("span",{className:s?p.iconEnabled:p.iconDisabled},a.a.createElement(za,{format:"On-demand",size:"sm",type:s?"duotone":"light"})),n?a.a.createElement(h.Tooltip,{title:"Classroom",placement:"bottom"},a.a.createElement("span",{className:n?p.iconEnabled:p.iconDisabled},a.a.createElement(za,{format:"Classroom",size:"sm",type:n?"duotone":"light"}))):a.a.createElement("span",{className:n?p.iconEnabled:p.iconDisabled},a.a.createElement(za,{format:"Classroom",size:"sm",type:n?"duotone":"light"})),o?a.a.createElement(h.Tooltip,{title:"Webinar",placement:"bottom"},a.a.createElement("span",{className:o?p.iconEnabled:p.iconDisabled},a.a.createElement(za,{format:"Webcast",size:"sm",type:o?"duotone":"light"}))):a.a.createElement("span",{className:o?p.iconEnabled:p.iconDisabled},a.a.createElement(za,{format:"Webcast",size:"sm",type:o?"duotone":"light"}))),a.a.createElement(h.Button,{variant:"text",color:"primary",onClick:function(){return t=e.courseId,B(t),void P(!0);var t}},"Details")))))}))):a.a.createElement(h.Grid,{item:!0,xs:12,sm:U?12:6,lg:U?12:4,stretchContent:!0},a.a.createElement(h.Alert,{variant:"standard",type:"info"},"No course is assigned to the collection.")))})),a.a.createElement(yn,{hidePastSessions:!1,courseId:F,categories:["On-demand","Classroom","Webcast","Others"],open:T,onClose:function(){return P(!1)}}),S&&a.a.createElement(vc,{open:S,onClose:function(){return E(!1)},collectionId:C}))})),yc=i(77),gc=i.n(yc),bc=Object(J.makeStyles)((function(e){var t=e.palette,i=e.spacing,r=e.typography;return Object(J.createStyles)({cardContainer:{minHeight:i(22.75)},cardTitle:Object(D.a)(Object(D.a)({},r.subtitle1),{},{fontWeight:700}),cardSubheader:Object(D.a)({},r.subtitle2),cardContent:Object(D.a)(Object(D.a)({},r.subtitle2),{},{color:t.grey[500],paddingTop:i(0)})})})),Sc=function(){var e=bc();return a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Box,{mb:1},a.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},a.a.createElement(h.Skeleton,{width:"40%"}))),[1,2,3].map((function(t){return a.a.createElement(h.Box,{mb:3,key:t},a.a.createElement(h.Card,{variant:"outlined",status:"default",className:e.cardContainer},a.a.createElement(h.CardHeader,{classes:{title:e.cardTitle,subheader:e.cardSubheader},title:a.a.createElement(h.Skeleton,{height:32}),subheader:a.a.createElement(h.Skeleton,{width:"40%"})}),a.a.createElement(h.CardContent,{classes:{root:e.cardContent},noTopPadding:!0},a.a.createElement(h.Skeleton,{width:"60%"})),a.a.createElement(h.CardActions,null,a.a.createElement(h.Skeleton,{width:"100%"}))))})))},Ec=Object(J.makeStyles)((function(e){var t=e.palette,i=e.spacing,r=e.typography;return Object(J.createStyles)({cardContainer:{minHeight:i(22.75)},cardTitle:Object(D.a)(Object(D.a)({},r.subtitle1),{},{fontWeight:700}),cardSubheader:Object(D.a)({},r.subtitle2),cardContent:Object(D.a)(Object(D.a)({},r.subtitle2),{},{color:t.grey[500],paddingTop:i(0),display:"flex",alignItems:"center",justifyContent:"center"}),iconActive:{color:t.grey[700]}})})),Ic=function(e){var t=Ec(),i=e.isOnDemand;return a.a.createElement(h.Card,{variant:"outlined",status:"default",className:t.cardContainer},a.a.createElement(h.CardContent,{classes:{root:t.cardContent},noTopPadding:!0},a.a.createElement(h.Box,{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",flexDirection:"column",textAlign:"center"},a.a.createElement(h.Box,{mb:1},a.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},i?"You have no on-demand courses in-progress.":"You are not enrolled in any courses.")),a.a.createElement(h.Box,{className:t.iconActive,mt:1},i?a.a.createElement(h.Tooltip,{title:"On-demand",placement:"bottom"},a.a.createElement("span",null,a.a.createElement(za,{format:"On-demand",size:"sm",type:"duotone"}))):a.a.createElement(h.Row,null,a.a.createElement(h.Box,{mr:1},a.a.createElement(h.Tooltip,{title:"Classroom",placement:"bottom"},a.a.createElement("span",null,a.a.createElement(za,{format:"Classroom",size:"sm",type:"duotone"})," "))),a.a.createElement(h.Box,null,a.a.createElement(h.Tooltip,{title:"Webinar",placement:"bottom"},a.a.createElement("span",null,a.a.createElement(za,{format:"Webcast",size:"sm",type:"duotone"})))))))))},Oc=Object(J.makeStyles)((function(e){var t=e.palette,i=e.spacing,r=e.typography;return Object(J.createStyles)({cardContainer:{minHeight:i(22.75)},cardTitle:Object(D.a)(Object(D.a)({},r.subtitle1),{},{fontWeight:700}),cardSubheader:Object(D.a)({},r.subtitle2),cardContent:Object(D.a)(Object(D.a)({},r.subtitle2),{},{color:t.grey[500],paddingTop:i(0)}),iconActive:{color:t.grey[700]},iconInActive:{color:t.grey[300]}})})),Cc=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,a){return e(gn(i,t,r,a))}}}))((function(e){var t=e.getUserCourseSession,i=e.loggedUserId,n=Oc(),o=Object(r.useState)(),s=Object(c.a)(o,2),l=s[0],d=s[1],u=Object(r.useState)(),p=Object(c.a)(u,2),f=p[0],m=p[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],T=j[1],P=Object(r.useState)(0),A=Object(c.a)(P,2),N=A[0],k=A[1],D=Object(z.useTheme)(),L=Object(z.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=a.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 a.a.createElement(En.Provider,{value:J},void 0===f&&void 0===l?a.a.createElement(Sc,null):0===f||0===(null===l||void 0===l?void 0:l.filter((function(e){return!e.isInstructor})).length)?a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Box,{mb:1},a.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},a.a.createElement("b",null,"Enrolled")," (",null!==f&&void 0!==f?f:0,")")),a.a.createElement(Ic,null)):a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Box,{mb:1},a.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},a.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)===v.oe.Multipart||(null===e||void 0===e?void 0:e.sessionTypeId)===v.oe.Recurring)&&(null===e||void 0===e?void 0:e.title)!==(null===e||void 0===e?void 0:e.courseTitle),r=ja()().format("MM/DD/YYYY").toString(),o=new Date(r),s=ja()(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 a.a.createElement(h.Box,{mb:3,key:t},a.a.createElement(h.Card,{variant:"outlined",status:"primary",elevation:0,className:n.cardContainer},a.a.createElement(h.CardHeader,{classes:{title:n.cardTitle,subheader:n.cardSubheader},title:a.a.createElement(h.Column,null,a.a.createElement(h.Expanded,{mb:.5},a.a.createElement(h.Typography,{variant:"body1"},a.a.createElement("b",null,"Session Date:",e.endDate&&Object(ii.e)(e.startDate,"MM/DD/YYYY")!==Object(ii.e)(e.endDate,"MM/DD/YYYY")?" ".concat(Object(ii.e)(e.startDate,"MM/DD/YYYY")," - ").concat(Object(ii.e)(e.endDate,"MM/DD/YYYY")):" ".concat(Object(ii.e)(e.startDate,"MM/DD/YYYY"))),l<=10&&l>=1&&" - In ".concat(l," day(s)"))),a.a.createElement(h.Expanded,null,a.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},a.a.createElement("b",null,e.courseTitle)))),subheader:i?a.a.createElement(h.Typography,{variant:"subtitle2"},null===e||void 0===e?void 0:e.title):""}),a.a.createElement(h.CardContent,{classes:{root:n.cardContent}},e.providerName),a.a.createElement(h.CardActions,null,a.a.createElement(h.Grid,{container:!0,spacing:L?1:"card"},a.a.createElement(h.Grid,{item:!0,xs:12,sm:c?4:5,lg:c?5:6,alignment:L?"center-right":"center-left"},a.a.createElement(h.Box,{mt:L?1.5:0},a.a.createElement(h.Row,{size:"min",crossAxisAlignment:"middle",mainAxisAlignment:L?"end":"start"},a.a.createElement(h.Expanded,{flex:0,mr:1},a.a.createElement(h.Box,{component:"span",className:"On-demand"===e.courseFormatPortalCategory?n.iconActive:n.iconInActive},"On-demand"===e.courseFormatPortalCategory?a.a.createElement(h.Tooltip,{title:"On-demand",placement:"bottom"},a.a.createElement("span",null,a.a.createElement(za,{format:"On-demand",size:"sm",type:"On-demand"===e.courseFormatPortalCategory?"duotone":"light"}))):a.a.createElement(za,{format:"On-demand",size:"sm",type:"On-demand"===e.courseFormatPortalCategory?"duotone":"light"}))),a.a.createElement(h.Expanded,{flex:0,mr:1},a.a.createElement(h.Box,{component:"span",className:"Classroom"===e.courseFormatPortalCategory?n.iconActive:n.iconInActive},"Classroom"===e.courseFormatPortalCategory?a.a.createElement(h.Tooltip,{title:"Classroom",placement:"bottom"},a.a.createElement("span",null,a.a.createElement(za,{format:"Classroom",size:"sm",type:"Classroom"===e.courseFormatPortalCategory?"duotone":"light"}))):a.a.createElement(za,{format:"Classroom",size:"sm",type:"Classroom"===e.courseFormatPortalCategory?"duotone":"light"}))),a.a.createElement(h.Expanded,{flex:0},a.a.createElement(h.Box,{component:"span",className:"Webcast"===e.courseFormatPortalCategory?n.iconActive:n.iconInActive},"Webcast"===e.courseFormatPortalCategory?a.a.createElement(h.Tooltip,{title:"Webinar",placement:"bottom"},a.a.createElement("span",null,a.a.createElement(za,{format:"Webcast",size:"sm",type:"Webcast"===e.courseFormatPortalCategory?"duotone":"light"}))):a.a.createElement(za,{format:"Webcast",size:"sm",type:"Webcast"===e.courseFormatPortalCategory?"duotone":"light"})))))),c&&a.a.createElement(h.Grid,{item:!0,xs:12,sm:4,lg:5,alignment:"center-right"},a.a.createElement(h.Row,{crossAxisAlignment:"middle",mainAxisAlignment:"end"},a.a.createElement(h.Expanded,{flex:0,mr:1},a.a.createElement(h.Typography,null,"Instructor")),a.a.createElement(h.Expanded,{flex:0},a.a.createElement(h.SystemIcon,{icon:"SystemUser"})))),a.a.createElement(h.Grid,{item:!0,xs:12,sm:c?4:7,lg:c?2:6,alignment:"center-right"},a.a.createElement(h.Button,{variant:"text",onClick:function(){S(!0),k(e.courseId||0),T(e.sessionId||0)}},a.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular",color:"primary"},a.a.createElement("b",null,"Details"))))))))})),a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center"},f&&f>10&&a.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&&a.a.createElement(In,{open:b,sessionId:w,onClose:function(){return S(!1)},courseId:N})))})),xc=Object(J.makeStyles)((function(e){var t=e.palette,i=e.spacing,r=e.typography;return Object(J.createStyles)({cardContainer:{minHeight:i(22.75)},cardTitle:Object(D.a)(Object(D.a)({},r.subtitle1),{},{fontWeight:700}),cardSubheader:Object(D.a)({},r.subtitle2),cardContent:Object(D.a)(Object(D.a)({},r.subtitle2),{},{color:t.grey[500],paddingTop:i(0)}),iconActive:{color:t.grey[700]},iconInActive:{color:t.grey[300]}})})),jc=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(gn(i,t))}}}))((function(e){var t,i=e.getUserCourseSession,n=e.loggedUserId,o=e.authenticatedUser,s=e.isImpersonated,l=Object(d.k)(),u=Object(d.l)(),p=xc(),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(z.useTheme)(),C=Object(z.useMediaQuery)(O.breakpoints.down("xs")),x=null!==(t=o&&o.userRole&&o.userRole[0].subRoleId)&&void 0!==t?t:0,j=x===v.re.AdministrativeAssistant||x===v.re.Supervisor,w=a.a.useState(0),T=Object(c.a)(w,2),P=T[0],A=T[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,n]);return void 0===E&&void 0===y?a.a.createElement(Sc,null):0===E||0===(null===y||void 0===y?void 0:y.filter((function(e){return!e.isInstructor})).length)?a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Box,{mb:1},a.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},a.a.createElement("b",null,"On-Demand In Progress")," (",E,")")),a.a.createElement(Ic,{isOnDemand:!0})):a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Box,{mb:1},a.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},a.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)===v.oe.Multipart||(null===e||void 0===e?void 0:e.sessionTypeId)===v.oe.Recurring)&&(null===e||void 0===e?void 0:e.title)!==(null===e||void 0===e?void 0:e.courseTitle);return a.a.createElement(h.Box,{mb:3,key:e.sessionId},a.a.createElement(un,{status:e.sessionParticipantStatusId}),a.a.createElement(h.Card,{variant:"outlined",elevation:0,className:p.cardContainer},a.a.createElement(h.CardHeader,{classes:{title:p.cardTitle,subheader:p.cardSubheader},title:a.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},a.a.createElement("b",null,e.courseTitle)),subheader:t?a.a.createElement(h.Typography,{variant:"subtitle2"},null===e||void 0===e?void 0:e.title):""}),a.a.createElement(h.CardContent,{classes:{root:p.cardContent}},e.providerName),a.a.createElement(h.CardActions,null,a.a.createElement(h.Grid,{container:!0,spacing:C?1:"card"},a.a.createElement(h.Grid,{item:!0,xs:12,sm:e.isInstructor?4:5,lg:e.isInstructor?5:6,alignment:C?"center-right":"center-left"},a.a.createElement(h.Box,{mt:C?1.5:0},a.a.createElement(h.Row,{size:"min",crossAxisAlignment:"middle",mainAxisAlignment:C?"end":"start"},a.a.createElement(h.Expanded,{flex:0,mr:1},a.a.createElement(h.Box,{component:"span",className:"On-demand"===e.courseFormatPortalCategory?p.iconActive:p.iconInActive},"On-demand"===e.courseFormatPortalCategory?a.a.createElement(h.Tooltip,{title:"On-demand",placement:"bottom"},a.a.createElement("span",null,a.a.createElement(za,{format:"On-demand",size:"sm",type:"On-demand"===e.courseFormatPortalCategory?"duotone":"light"}))):a.a.createElement(za,{format:"On-demand",size:"sm",type:"On-demand"===e.courseFormatPortalCategory?"duotone":"light"}))),a.a.createElement(h.Expanded,{flex:0,mr:1},a.a.createElement(h.Box,{component:"span",className:"Classroom"===e.courseFormatPortalCategory?p.iconActive:p.iconInActive},"Classroom"===e.courseFormatPortalCategory?a.a.createElement(h.Tooltip,{title:"Classroom",placement:"bottom"},a.a.createElement("span",null,a.a.createElement(za,{format:"Classroom",size:"sm",type:"Classroom"===e.courseFormatPortalCategory?"duotone":"light"}))):a.a.createElement(za,{format:"Classroom",size:"sm",type:"Classroom"===e.courseFormatPortalCategory?"duotone":"light"}))),a.a.createElement(h.Expanded,{flex:0},a.a.createElement(h.Box,{component:"span",className:"Webcast"===e.courseFormatPortalCategory?p.iconActive:p.iconInActive},"Webcast"===e.courseFormatPortalCategory?a.a.createElement(h.Tooltip,{title:"Webinar",placement:"bottom"},a.a.createElement("span",null,a.a.createElement(za,{format:"Webcast",size:"sm",type:"Webcast"===e.courseFormatPortalCategory?"duotone":"light"}))):a.a.createElement(za,{format:"Webcast",size:"sm",type:"Webcast"===e.courseFormatPortalCategory?"duotone":"light"})))))),e.isInstructor&&a.a.createElement(h.Grid,{item:!0,xs:12,sm:4,lg:5,alignment:"center-right"},a.a.createElement(h.Row,{crossAxisAlignment:"middle",mainAxisAlignment:"end"},a.a.createElement(h.Expanded,{flex:0,mr:1},a.a.createElement(h.Typography,null,"Instructor")),a.a.createElement(h.Expanded,{flex:0},a.a.createElement(h.SystemIcon,{icon:"SystemUser"})))),a.a.createElement(h.Grid,{item:!0,xs:12,sm:e.isInstructor?4:7,lg:e.isInstructor?2:6,alignment:"center-right"},a.a.createElement(h.Button,{color:"primary",variant:"text",disabled:s&&(o&&(null===o||void 0===o?void 0:o.userId))!==n||j&&(o&&(null===o||void 0===o?void 0:o.userId))!==n||e.sessionParticipantStatusId===v.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===v.ke.Disqualified||e.sessionParticipantStatusId===v.ke.Validated||e.sessionParticipantStatusId===v.ke.Failed)&&a.a.createElement("b",null,"View Again"),(e.sessionParticipantStatusId===v.ke.Registered||e.sessionParticipantStatusId===v.ke.Unexcused||e.sessionParticipantStatusId===v.ke.Tentative||e.sessionParticipantStatusId===v.ke.Pending)&&a.a.createElement("b",null,"View On-Demand"),e.sessionParticipantStatusId===v.ke.InProgress&&a.a.createElement("b",null,"Resume")))))))})),a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center"},E&&E>10&&a.a.createElement(h.TablePagination,{count:E,page:P,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:[]})))})),wc=function(){return a.a.createElement(gc.a,{container:!0,spacing:"card"},a.a.createElement(gc.a,{item:!0,xs:12,sm:12,md:6,lg:6},a.a.createElement(jc,null)),a.a.createElement(gc.a,{item:!0,xs:12,sm:12,md:6,lg:6},a.a.createElement(Cc,null)))},Tc=Object(s.b)((function(e){return{loggedUser:e.users.loggedUser}}),(function(e){return{getScreenDescription:function(t){return e(Object(ia.c)(t))}}})),Pc=Object(an.a)(Object(d.o)(Tc((function(e){var t=e.getScreenDescription,i=e.loggedUser,n=e.history,o=i&&i.userRole,s=Object(r.useState)(),l=Object(c.a)(s,2),d=l[0],u=l[1],p=Object(r.useState)(!1),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)(!1),O=Object(c.a)(I,2),C=O[0],x=O[1],j=Object(r.useState)(!1),w=Object(c.a)(j,2),T=w[0],P=w[1];Object(r.useEffect)((function(){var e=n.location.state;(null===e||void 0===e?void 0:e.fromCourseCatalog)&&(P(!0),n.push({state:{fromCourseCatalog:!1}}))}),[n]),Object(r.useEffect)((function(){t(v.Md.UserCourses).then((function(e){return u(e)}))}),[t,o]);var A={removeFromCollection:S,setRemoveFromCollection:E,updateCollection:C,setUpdateCollection:x};return a.a.createElement(h.Screen,{titleBar:{title:(d&&""!==d.title?d.title:"My Courses")||"My Courses",description:d?a.a.createElement(h.Column,null,null!==d.shortDescription&&""!==d.shortDescription&&a.a.createElement(h.TextEditorView,{model:Object(k.a)(d.shortDescription)}),null!==d.text&&""!==d.text&&a.a.createElement(h.Box,{mt:2},a.a.createElement(h.Button,{variant:"outlined",size:"small",onClick:function(){return y(!0)}},"Show More"))):a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Box,{mt:2.5},a.a.createElement(h.Skeleton,{width:"100%",height:20,variant:"rect"})),a.a.createElement(h.Box,{mt:1},a.a.createElement(h.Skeleton,{width:"100%",height:20,variant:"rect"}))),actionRow:T&&a.a.createElement(h.Button,{variant:"outlined",size:"small",color:"default",onClick:function(){n.push("/course-catalog")}},"Return to Course Catalog")},tabs:[{path:"/my-courses",label:"My Courses",component:a.a.createElement(wc,null)},{path:"/my-collections",label:"My Collections",component:a.a.createElement(uc.Provider,{value:A},a.a.createElement(mc,null))}]},a.a.createElement(Ea,{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}))})))),Ac=Object(s.b)(null,(function(e){return{setIsInitialLoad:function(t){return e(Object(ia.d)(t))}}}))((function(e){var t=e.setIsInitialLoad,i=Object(ta.useMdsAppContext)().paths;return Object(r.useEffect)((function(){t(!0)}),[t]),a.a.createElement(d.c,{to:i.home})})),Nc=i(72),kc=i.n(Nc),Dc=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(on.b)(t))},addNotification:function(t){return e(G.a({message:t,variant:"success"}))},deleteFromSessionWaitlist:function(t,i){return e(ir(t,i))},registerParticipant:function(t,i,r){return e(Zi(t,i,!1,r))},registerParticipantByGuid:function(t,i,r){return e(function(e,t,i,r){return function(a){return U.R.createByGuid(t,r,i,void 0,v.Hc.fromJS({guid:e})).then((function(e){return e})).catch((function(e){a(Object(G.a)({message:e.detail,variant:"error"}))}))}}(t,i,!1,r))},updateParticipant:function(t,i,r){return e(Xi(t,i,!1,!1,r,!1))},updateParticipantByGuid:function(t,i,r,a,n,o){return e(function(e,t,i,r){var a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],n=arguments.length>5&&void 0!==arguments[5]&&arguments[5];return function(o){return U.R.updateByGuid(t,i,r,n,a,void 0,v.Hc.fromJS({guid:e})).then((function(e){return e})).catch((function(e){o(Object(G.b)(e))}))}}(t,i,r,a,n,o))},deleteParticipant:function(t,i,r){return e(er(t,i,r))},deleteParticipantByGuid:function(t,i,r){return e(function(e,t,i){return function(r){return U.R.deleteByGuid(t,i,void 0,v.Hc.fromJS({guid:e})).then((function(e){return e})).catch((function(e){r(Object(G.a)({message:e.detail,variant:"error"}))}))}}(t,i,r))},addUsersToWaitlist:function(t,i,r,a){return e(tr(t,i,r,a))},addToWaitlistByGuid:function(t,i){return e(function(e,t){return function(i){return U.R.addToWaitlistByGuid(t,void 0,v.Hc.fromJS({guid:e})).then((function(e){return e})).catch((function(e){i(Object(G.a)({message:e.detail,variant:"error"}))}))}}(t,i))},deleteFromWaitlistByGuid:function(t,i){return e(function(e,t){return function(i){return U.R.deleteFromWaitlist(t,void 0,v.Hc.fromJS({guid:e})).then((function(e){return e})).catch((function(e){i(Object(G.a)({message:e.detail,variant:"error"}))}))}}(t,i))},declineParticipant:function(t,i){return e(function(e,t){return function(i){var r=new v.nb({sessionId:e,userId:t});return U.R.decline(void 0,r).then((function(e){return e})).catch((function(e){i(Object(G.a)({message:e.detail,variant:"error"}))}))}}(t,i))},declineInvite:function(t,i){return e(function(e,t){return function(i){return U.R.declineInviteByGuid(t,void 0,v.Hc.fromJS({guid:e})).then((function(e){return e})).catch((function(e){i(Object(G.a)({message:e.detail,variant:"error"}))}))}}(t,i))},updateInvite:function(t){return e(function(e){return function(t){return U.R.updateInviteByGuid(void 0,v.Hc.fromJS({guid:e})).then((function(e){return e})).catch((function(e){t(Object(G.a)({message:e.detail,variant:"error"}))}))}}(t))},setType:function(t){return e(Object(O.h)(t))},getLearningSettings:function(){return e(Object(Ca.a)())}}})),Lc=Object(d.o)(Dc((function(e){var t,i,n,o=e.courseSessions,l=e.showConfirmation,c=e.addNotification,d=e.registerParticipant,u=e.registerParticipantByGuid,p=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,T=e.match,P=e.history,A=e.isRegistrationLink,N=e.setType,k=e.getLearningSettings,D=e.learningSettings,L=e.isFromGroupedSessions,J=ja()(new Date).format("MM/DD/YYYY").toString(),F=new Date(J),B=T.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",M=null!==(t=localStorage.getItem("userLoginSessionId"))&&void 0!==t?t:oa(),q=null!==(i=null!=D&&(null===(n=D.find((function(e){return e.learningSettingEnumType===v.wd.AllowTentativeReg})))||void 0===n?void 0:n.valueBit))&&void 0!==i&&i;Object(r.useEffect)((function(){N(null)}),[N]),Object(r.useEffect)((function(){k()}),[k]),A&&!R&&""!==M?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&&""===M&&(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,a,n){var o="",s="";o="Are you sure you want to register for this session?",s="You have now been successfully registered for this session.",n&&(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."),a&&(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,n).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(){p([i],n?v.ke.Tentative:v.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,n).then((function(){z(),S&&S(),c(s)}))}}):t===v.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,v.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,n?v.ke.Tentative:v.ke.Registered,!1,!1).then((function(){z(),S&&S(),c("Your registration status has been updated.")}))}}))};return a.a.createElement(a.a.Fragment,null,void 0===o&&[1,2,3].map((function(e){return a.a.createElement(h.Box,{mt:1,key:e},a.a.createElement(pn,{loading:!0}))})),o&&0===(null===o||void 0===o?void 0:o.length)&&a.a.createElement(h.Grid,{container:!0,spacing:"form",justify:"center"},a.a.createElement(h.Grid,{item:!0,lg:6,md:8,xs:12,alignment:"center",stretchContent:!0},a.a.createElement(h.Box,{mt:1},a.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||ja()(e.startDate).isSameOrAfter(ja()(),"day")})).map((function(e){var t,i,r,n,s,d,u,p,f,g,E,I,O,j=ja()(null===e||void 0===e?void 0:e.startDate).format("MM/DD/YYYY").toString(),T=new Date(j)>=F,N=null!==(t=null===e||void 0===e?void 0:e.sessionInstructors)&&void 0!==t?t:[],k=null===N||void 0===N?void 0:N.filter((function(e){return e.isInstructor})).map((function(e){return"".concat(e.firstName," ").concat(e.lastName)})),D=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:[],L=null===e||void 0===e||null===(n=e.sessionParticipant)||void 0===n?void 0:n.filter((function(e){return!(!e.isInstructor&&A)||e.userId===w})),J=L&&(null===(s=L[0])||void 0===s?void 0:s.sessionParticipantStatusId),U=L&&(null===(d=L[0])||void 0===d?void 0:d.sessionParticipantId),G=0!==(null!==(u=(null===e||void 0===e?void 0:e.sessionWaitlist)&&(null===e||void 0===e||null===(p=e.sessionWaitlist[0])||void 0===p?void 0:p.userId))&&void 0!==u?u:0),_=null===e||void 0===e?void 0:e.sessionMediaFiles;return _&&_.length>0&&void 0===_.find((function(e){var t;return void 0===(null===(t=e.libraryFile)||void 0===t?void 0:t.archivedDate)}))?1===o.length?a.a.createElement(h.Grid,{container:!0,spacing:"form",justify:"center"},a.a.createElement(h.Grid,{item:!0,lg:6,md:8,xs:12,alignment:"center",stretchContent:!0},a.a.createElement(h.Box,{mt:1},a.a.createElement(h.Row,{mainAxisAlignment:"center",crossAxisAlignment:"middle"},a.a.createElement(h.Alert,{variant:"standard",type:"info"},"No active media files associated to this session."))))):void 0:a.a.createElement(h.Box,{mt:1,key:e.sessionId},a.a.createElement(pn,{guid:b,status:G?v.ke.Registered:J,statusChip:a.a.createElement(vn,{status:J,isWaitlisted:G}),actionButton:a.a.createElement(nn,{status:J,isCancelled:void 0!==e.cancelledDate,isLapsed:!T,isOnDemand:null!==(f=null===e||void 0===e?void 0:e.isOnlineLearning)&&void 0!==f&&f,isWaitlistAllowed:null===e||void 0===e?void 0:e.isWaitlistingAllowed,registrationLimit:null!==(g=null===e||void 0===e?void 0:e.registrationLimit)&&void 0!==g?g:0,participantCount:null!==(E=null===e||void 0===e?void 0:e.participantCount)&&void 0!==E?E:0,isWaitlisted:G,isInvitation:B,isApprovalRequired:null!==(I=null===e||void 0===e?void 0:e.isRegistrationApprovalNeeded)&&void 0!==I&&I,isTentativeAllowed:q,onViewOnDemand:function(){return function(e){if(e){var t,i=window.location.hostname.split("."),r=i&&i.length>0?i[0]:"localhost",a=null!==(t="https://{host}.{app}.micronapps.com/".replace("{host}",r).replace("{app}","cem"))&&void 0!==t?t:"",n=encodeURIComponent("/course-player?sessionId=".concat(e));z(),R?P.push("/course-player?sessionId=".concat(e)):window.location.href=""===M||void 0===M||null===M?"".concat(a,"login?redirectUrl=").concat(n):"".concat(a,"users/portal?redirectUrl=").concat(n)}}(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!==J&&void 0!==J?J:0,null!==U&&void 0!==U?U: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!==J&&void 0!==J?J:0,null!==U&&void 0!==U?U: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,U)},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:k,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:D,timeZone:e.timeZone,isOnDemand:null!==(O=null===e||void 0===e?void 0:e.isOnlineLearning)&&void 0!==O&&O,courseTitle:null===e||void 0===e?void 0:e.courseTitle,sessionTitle:null===e||void 0===e?void 0:e.title}))}))))}))),Jc=function(e){var t,i,r,n,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})),p=null===l||void 0===l||null===(n=l.courseLevels)||void 0===n?void 0:n.map((function(e){return e.name})),v=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||p&&(null===p||void 0===p?void 0:p.length)>0||v&&(null===v||void 0===v?void 0:v.length)||f&&(null===f||void 0===f?void 0:f.length)>0;return a.a.createElement(h.Card,{variant:"outlined"},a.a.createElement(h.CardContent,null,void 0===l&&a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Skeleton,{variant:"text",width:"".concat(Math.floor(Math.random()*Math.floor(100)),"%")}),a.a.createElement(h.Skeleton,{variant:"text",width:"".concat(Math.floor(Math.random()*Math.floor(100)),"%")}),a.a.createElement("br",null),a.a.createElement(h.Skeleton,{variant:"text",width:"".concat(Math.floor(Math.random()*Math.floor(100)),"%")}),a.a.createElement(h.Skeleton,{variant:"text",width:"".concat(Math.floor(Math.random()*Math.floor(100)),"%")}),a.a.createElement(h.Skeleton,{variant:"text",width:"".concat(Math.floor(Math.random()*Math.floor(100)),"%")})),void 0!==l&&a.a.createElement(h.Grid,{container:!0,spacing:"card",justify:"center"},a.a.createElement(h.Grid,{item:!0,lg:12,md:12,xs:12,alignment:"center"},a.a.createElement(h.Box,{mt:2,mb:1,alignItems:"center"},a.a.createElement(h.Column,{crossAxisAlignment:"center"},a.a.createElement(h.Typography,{variant:"h3",color:"primary"},null===l||void 0===l?void 0:l.title),a.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},null===l||void 0===l?void 0:l.provider))),a.a.createElement(h.Grid,{item:!0,lg:12,md:12,xs:12,alignment:"center"},(null===l||void 0===l?void 0:l.description)&&a.a.createElement(h.TextEditorView,{model:Object(k.a)(null===l||void 0===l?void 0:l.description)}),m&&a.a.createElement(ln,{courseClassYears:v,courseCompetencies:c||[],courseDepartments:d,courseLevels:p,coursePracticeAreas:u,courseTags:f}))))))},Fc=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?U.l.getRegistrationCourseDetailByScheduleGuid(void 0,v.Xc.fromJS({guid:e})).then((function(e){return e})).catch((function(e){throw r(Object(G.b)(e)),e})):U.l.getRegistrationCourseDetailByGuid(void 0,v.cd.fromJS({guid:e})).then((function(e){return e})).catch((function(e){throw r(Object(G.b)(e)),e})):U.l.getCourseDetailByGuid(void 0,v.Hc.fromJS({guid:e})).then((function(e){return e})).catch((function(e){throw r(Object(G.b)(e)),e}))}}(t,i,r))},getCourseSessions:function(t,i,r,a){return e(function(e,t,i,r){return function(a){return t?i?U.l.getCourseSessionRegistrationLinkByScheduleyGuid(void 0,v.Xc.fromJS({guid:e,userId:r})).then((function(e){return e})).catch((function(e){throw a(Object(G.b)(e)),e})):U.l.getCourseSessionRegistrationLinkByGuid(void 0,v.cd.fromJS({guid:e,userId:r})).then((function(e){return e})).catch((function(e){throw a(Object(G.b)(e)),e})):U.l.getCourseSessionsByGuid(void 0,v.Hc.fromJS({guid:e})).then((function(e){return e})).catch((function(e){throw a(Object(G.b)(e)),e}))}}(t,i,r,a))},setToken:function(t){return e(Object(O.k)(t))},SetJwtExpiration:function(t){return e(Object(O.b)(t))},getPortalBranding:function(t){return e(Object(ia.a)(t))},getPasswordPolicy:function(){return e(Object(Ca.b)())}}})),Bc=Object(an.a)(Object(d.o)(Fc((function(e){var t,i,n=e.authentication,o=e.getCourseDetail,l=e.getCourseSessions,d=e.history,u=e.match,p=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],T=Object(s.c)((function(e){return e.authentication.jwtExpiration})),P=u.params.guid,A=E(v.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=sa();localStorage.setItem("userLoginSessionId",F);var B=Object(r.useCallback)((function(){O(void 0),w(void 0),void 0!==P&&(o(P,k,D).then((function(e){O(e)})),l(P,k,D,p).then((function(e){w(e)})))}),[P,o,l,k,p,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){Xr.a.configure(e),Xr.a.currentSession().then((function(){Xr.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]),a.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")},a.a.createElement(Nc.ExternalScreenHeader,{maxWidth:"lg"},void 0!==S&&void 0!==j&&a.a.createElement(h.Box,{textAlign:"right",mt:4,mb:4},N?a.a.createElement(h.Button,{variant:"outlined",color:"default",onClick:function(){if(!n.authenticated||T0?V[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}",_).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),U(void 0),w(void 0),I(void 0),p(e).then((function(e){if(L(e.attendanceForm),z(e.sessionRecords),w(e.printOption),I(e.sessionTemplateId),e.printOption===v.p.PrintCombined)if(0!==e.sessionTemplateId)U(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;U(e.sessionRecords&&e.sessionRecords.filter((function(e){return e.sessionId===i})))}else U(e.sessionRecords)})).catch((function(){m.push("/error404")}))}),[m,p]);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!==(n=(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!==n?n:[],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 v.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 v.n.Email:r="".concat(null===i||void 0===i?void 0:i.email);break;default:r=""}return a.a.createElement("div",{key:"".concat(e.type,"_data_row_cell"),style:{overflowWrap:"break-word"}},""!==r&&e.type===v.n.Name&&(null===i||void 0===i?void 0:i.isInstructor)?a.a.createElement(h.Typography,{style:{fontWeight:500,color:"black"}},r," ",a.a.createElement("i",null,"(Instructor)")):a.a.createElement(a.a.Fragment,null,e.type===v.n.LicenseDetails&&(null===i||void 0===i?void 0:i.userLicenseDetails)&&(null===i||void 0===i?void 0:i.userLicenseDetails.length)>0?a.a.createElement(a.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 a.a.createElement(h.Column,{key:"".concat(e.type,"_data_row_cell_").concat(t.licenseId)},a.a.createElement(h.Typography,{style:{fontWeight:500,color:"black"}},a.a.createElement("span",{dangerouslySetInnerHTML:{__html:"".concat(t.licenseName,": ").concat(""!==t.barNumber?t.barNumber:"-")}})))})))):a.a.createElement(h.Typography,{style:{fontWeight:500,color:"black"}},r)))}}}(e)}));return a.a.createElement(kc.a,{redirectSignInUrl:"".concat(null!==(l=null==="https://{host}.{app}.micronapps.com/"?void 0:"https://{host}.{app}.micronapps.com/".replace("{host}",_).replace("{app}","cem"))&&void 0!==l?l:"","login")},a.a.createElement(Nc.ExternalScreenBody,{maxWidth:"lg"},a.a.createElement(h.Grid,{container:!0,spacing:"card"},a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center-right",alignItems:"flex-end",alignContent:"flex-end",className:y.printButton},a.a.createElement(h.Box,{width:"100%",textAlign:"right"},a.a.createElement(h.Button,{onClick:function(){return window.print(),!1},variant:"contained",color:"primary",size:"small"},"Print")))),a.a.createElement(h.Box,{margin:"20px auto",maxWidth:"1100px"},a.a.createElement(a.a.Fragment,null,void 0===D||void 0===R?a.a.createElement(h.Backdrop,{open:!0},a.a.createElement(h.CircularProgress,{color:"secondary"})):a.a.createElement(a.a.Fragment,null,null===R||void 0===R?void 0:R.map((function(e){var t,i,r,n,o,s,l,c,p,f,m,g,b,S,I,O,C=Array(),w=Array(),P=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===(n=e.title)||void 0===n?void 0:n.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"):"",U=(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):"",M=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,_=""===U&&""===G?"-":G?"".concat(U," ").concat(G," ").concat(null===M?"":M):"".concat(U," ").concat(null===M?"":M),Y=null===(p=null!==(f=null===e||void 0===e?void 0:e.sessionInstructors)&&void 0!==f?f:[])||void 0===p?void 0:p.map((function(e){return"".concat(e.firstName," ").concat(e.lastName)}));if((j&&j)!==v.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)===v.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)===v.p.PrintBlank)&&Array.from({length:O},(function(e,t){return t+1})).forEach((function(e){var t=new v.he;t.sessionParticipantId=e,C.push(t)}));var ae=w.concat(null!==C&&void 0!==C?C:[]),ne=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 a.a.createElement(h.Box,{key:P,className:y.boxName},a.a.createElement(h.Box,{className:y.pageName},a.a.createElement(h.Box,{className:y.boxElement},a.a.createElement(h.Widget,null,a.a.createElement(h.Box,{ml:2,mr:2,mb:2,mt:2},a.a.createElement(A.a,{title:""}),a.a.createElement(T.a,{dense:!0},a.a.createElement(h.Grid,{container:!0,spacing:void 0},(null===D||void 0===D?void 0:D.headerIncludeFirmLogo)&&!Object(x.isEmpty)(d)&&a.a.createElement(h.Grid,{item:!0,xs:12,alignContent:"center",alignItems:"center",alignment:"center"},a.a.createElement("img",{src:d,alt:"Logo",width:"260px",height:"60px"})),a.a.createElement(h.Grid,{item:!0,xs:12,alignContent:"center",alignItems:"center",alignment:"center"},a.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)),a.a.createElement(h.Grid,{item:!0,xs:12,alignContent:"center",alignItems:"center",alignment:"center"},a.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)&&a.a.createElement(h.Grid,{item:!0,xs:12,alignContent:"center",alignItems:"center",alignment:"center"},a.a.createElement(h.TextEditorView,{model:null!==(S=null===D||void 0===D?void 0:D.headerText)&&void 0!==S?S:""}))))))),a.a.createElement(a.a.Fragment,null,j===v.p.PrintCombined&&0===E?a.a.createElement(a.a.Fragment,null,null===q||void 0===q?void 0:q.map((function(e){return function(e){var t,i,r,n,o,s,l,c,d,u,p,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!==(n=null===e||void 0===e?void 0:e.courseFormat)&&void 0!==n?n:"",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),P=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===(p=e.sessionLicenses)||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})))&&void 0!==u?u:[];return a.a.createElement(h.Box,{className:y.boxElement},a.a.createElement(h.Widget,null,a.a.createElement(h.Box,{ml:2,mr:2,mb:2,mt:2},a.a.createElement(A.a,{title:""}),a.a.createElement(T.a,{dense:!0,disableGutters:!0},a.a.createElement(h.Box,{ml:2,mr:2},a.a.createElement(h.Grid,{container:!0,spacing:void 0,alignContent:"center"},a.a.createElement(h.Hidden,{mdDown:0===Q.length||0===Z.length},a.a.createElement(h.Grid,{item:!0,lg:1,xl:1})),a.a.createElement(h.Grid,{item:!0,xs:0===Z.length?12:6,lg:0===Z.length?12:5},a.a.createElement(h.Grid,{container:!0,spacing:void 0},Q.map((function(e){var t=e.column,i=e.label,r=e.type,n="";switch(r){case v.o.Title:n=null!==f&&void 0!==f?f:"";break;case v.o.Format:n=m;break;case v.o.Instructor:n=P.length>0?P.join(", "):"-";break;case v.o.Credits:n="[No Credits]";break;default:n=""}return a.a.createElement(a.a.Fragment,{key:"".concat(r,"_").concat(t)},a.a.createElement(h.Grid,{item:!0,xs:6,alignment:"top-right"},a.a.createElement(h.Typography,null,a.a.createElement("b",null,i,": "))),a.a.createElement(h.Grid,{item:!0,xs:6,className:y.data},a.a.createElement(a.a.Fragment,null,r===v.o.Credits&&(null===k||void 0===k?void 0:k.length)>0?a.a.createElement(a.a.Fragment,null,k&&k.map((function(e){var t,i,r="",n="",o=e&&e.licenseStatus===v.Dd.Pending,s=e&&e.licenseStatus===v.Dd.Denied;return a.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&&(n=n.concat("(".concat(e.propertyLabel,") "))),"Participatory"===e.propertyLabel&&(n=n.concat("(".concat(e.propertyLabel,") ")))})),a.a.createElement(h.Row,null,a.a.createElement(h.Typography,{style:{fontWeight:500,color:"black"}},a.a.createElement("span",{dangerouslySetInnerHTML:{__html:"".concat(e.name,": ").concat(""!==r?"".concat(r.slice(0,-2)," ").concat(""!==n?" - ".concat(n):""):"[No Credits]")}}),o&&a.a.createElement(h.Typography,{component:"span"},a.a.createElement("i",null,"(Pending)")),s&&a.a.createElement(h.Typography,{component:"span"},a.a.createElement("i",null,"(Denied)")))))}))):a.a.createElement(h.Box,{maxWidth:"350px"},a.a.createElement(h.Typography,{style:{fontWeight:500,color:"black"}},n)))))})))),a.a.createElement(h.Grid,{item:!0,xs:0===Q.length?12:6,lg:0===Q.length?12:5},a.a.createElement(h.Grid,{container:!0,spacing:void 0},Z.map((function(e){var t=e.column,i=e.label,r=e.type,n="";switch(r){case v.o.Date:n=j;break;case v.o.Location:n=O;break;case v.o.Time:n=w;break;case v.o.Room:n=C;break;default:n=""}return a.a.createElement(a.a.Fragment,{key:"".concat(r,"_").concat(t)},a.a.createElement(h.Grid,{item:!0,xs:6,alignment:"top-right"},a.a.createElement(h.Typography,null,a.a.createElement("b",null,i,": "))),a.a.createElement(h.Grid,{item:!0,xs:6,className:y.data},a.a.createElement(h.Box,{maxWidth:"350px"},a.a.createElement(h.Typography,{style:{fontWeight:500,color:"black"}},n))))})))),a.a.createElement(h.Hidden,{mdDown:0===Q.length||0===Z.length},a.a.createElement(h.Grid,{item:!0,lg:1,xl:1}))))))))}(e)}))):a.a.createElement(h.Box,{className:y.boxElement},a.a.createElement(h.Widget,null,a.a.createElement(h.Box,{ml:2,mr:2,mb:2,mt:2},a.a.createElement(A.a,{title:""}),a.a.createElement(T.a,{dense:!0,disableGutters:!0},a.a.createElement(h.Box,{ml:2,mr:2},a.a.createElement(h.Grid,{container:!0,spacing:void 0,alignContent:"center"},a.a.createElement(h.Hidden,{mdDown:0===Q.length||0===Z.length},a.a.createElement(h.Grid,{item:!0,lg:1,xl:1})),a.a.createElement(h.Grid,{item:!0,xs:0===Z.length?12:6,lg:0===Z.length?12:5},a.a.createElement(h.Grid,{container:!0,spacing:void 0},Q.map((function(e){var t=e.column,i=e.label,r=e.type,n="";switch(r){case v.o.Title:n=null!==k&&void 0!==k?k:"";break;case v.o.Format:n=L;break;case v.o.Instructor:n=Y.length>0?Y.join(", "):"-";break;case v.o.Credits:n="[No Credits]";break;default:n=""}return a.a.createElement(a.a.Fragment,{key:"".concat(r,"_").concat(t)},a.a.createElement(h.Grid,{item:!0,xs:6,alignment:"top-right"},a.a.createElement(h.Typography,null,a.a.createElement("b",null,i,": "))),a.a.createElement(h.Grid,{item:!0,xs:6,className:y.data},a.a.createElement(a.a.Fragment,null,r===v.o.Credits&&(null===ne||void 0===ne?void 0:ne.length)>0?a.a.createElement(a.a.Fragment,null,ne&&ne.map((function(e){var t,i,r="",n="",o=e&&e.licenseStatus===v.Dd.Pending,s=e&&e.licenseStatus===v.Dd.Denied;return a.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&&(n=n.concat("(".concat(e.propertyLabel,") "))),"Participatory"===e.propertyLabel&&(n=n.concat("(".concat(e.propertyLabel,") ")))})),a.a.createElement(h.Row,null,a.a.createElement(h.Typography,{style:{fontWeight:500,color:"black"}},a.a.createElement("span",{dangerouslySetInnerHTML:{__html:"".concat(e.name,": ").concat(""!==r?"".concat(r.slice(0,-2)," ").concat(""!==n?" - ".concat(n):""):"[No Credits]")}}),o&&a.a.createElement(h.Typography,{component:"span"},a.a.createElement("i",null,"(Pending)")),s&&a.a.createElement(h.Typography,{component:"span"},a.a.createElement("i",null,"(Denied)")))))}))):a.a.createElement(h.Box,{maxWidth:"350px"},a.a.createElement(h.Typography,{style:{fontWeight:500,color:"black"}},n)))))})))),a.a.createElement(h.Grid,{item:!0,xs:0===Q.length?12:6,lg:0===Q.length?12:5},a.a.createElement(h.Grid,{container:!0,spacing:void 0},Z.map((function(e){var t=e.column,i=e.label,r=e.type,n="";switch(r){case v.o.Date:n=V;break;case v.o.Location:n=z;break;case v.o.Time:n=_;break;case v.o.Room:n=W;break;default:n=""}return a.a.createElement(a.a.Fragment,{key:"".concat(r,"_").concat(t)},a.a.createElement(h.Grid,{item:!0,xs:6,alignment:"top-right"},a.a.createElement(h.Typography,null,a.a.createElement("b",null,i,": "))),a.a.createElement(h.Grid,{item:!0,xs:6,className:y.data},a.a.createElement(h.Box,{maxWidth:"350px"},a.a.createElement(h.Typography,{style:{fontWeight:500,color:"black"}},n))))})))),a.a.createElement(h.Hidden,{mdDown:0===Q.length||0===Z.length},a.a.createElement(h.Grid,{item:!0,lg:1,xl:1}))))))))),a.a.createElement(h.Box,{className:y.elementSpacing},a.a.createElement(B,{data:ae,columns:te,width:1100,isResizing:!0})),!Object(x.isEmpty)(null===D||void 0===D?void 0:D.footerText)&&a.a.createElement(h.Box,{className:y.elementSpacing,textAlign:"center"},a.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!==R&&a.a.createElement(h.Grid,{container:!0,spacing:"card",className:y.card},a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center"},a.a.createElement(h.Column,{crossAxisAlignment:"center"},a.a.createElement(h.Box,{mt:3,mb:1},a.a.createElement(h.Typography,{variant:"caption"},a.a.createElement("b",null,"Micron Systems, Inc."))),a.a.createElement(h.Row,null,a.a.createElement(h.Box,{mr:1,mt:1},a.a.createElement(h.Typography,{variant:"caption"},"Generated by")),a.a.createElement("img",{alt:"",width:"125",height:"30",src:"../../../../images/cemanager-logo.png"})),a.a.createElement(h.Box,{mb:3,mt:1},a.a.createElement(h.Typography,{variant:"caption"},"on ",Object(N.c)(new Date,"MMMM DD, YYYY"))))))))})))))))}))),Gc=Object(s.b)(null,(function(e){return{getDetails:function(t){return e(function(e){return function(t){return U.g.getSessionTemplateDetailsByGuid(e,void 0).then((function(e){return e})).catch((function(e){t(Object(G.b)(e))}))}}(t))}}}))((function(e){var t,i,n,o,l=Y(),d=e.getDetails,u=e.match,p=e.history,v=Object(r.useState)(),f=Object(c.a)(v,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(){p.push("/error404")}))}),[p,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!==(n=null===m||void 0===m?void 0:m.userId)&&void 0!==n?n: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:sa(),T=window.location.hostname.split("."),P=T&&T.length>0?T[0]:"localhost";return x&&!j&&""!==w&&(window.location.href="".concat("https://{host}.{app}.micronapps.com/".replace("{host}",P).replace("{app}","cem"),"users/portal?guid=").concat(g,"&type=","certificate-link")||!1),a.a.createElement(h.ExternalScreen,null,a.a.createElement(h.Box,{margin:"20px auto",maxWidth:"940px"},a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center-right",alignItems:"flex-end",alignContent:"flex-end",className:l.printButton},a.a.createElement(h.Box,{mr:4,width:"100%",textAlign:"right"},a.a.createElement(h.Button,{onClick:function(){return window.print()},variant:"contained",color:"primary",size:"small"},"Print"))),a.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)?a.a.createElement(h.Backdrop,{open:!0},a.a.createElement(h.CircularProgress,{color:"secondary"})):a.a.createElement(Pi,{certificate:S,sessionDetails:E,isInstructor:I,licenseId:O,userId:C})))))})),Mc=function(e){var t,i=e.match.params.guid,r=window.location.hostname.split("."),n=r&&r.length>0?r[0]:"localhost";return a.a.createElement(h.ExternalScreen,{redirectSignInUrl:"".concat(null!==(t=null==="https://{host}.{app}.micronapps.com/"?void 0:"https://{host}.{app}.micronapps.com/".replace("{host}",n).replace("{app}","cem"))&&void 0!==t?t:"","login")},a.a.createElement(Nc.ExternalScreenBody,{maxWidth:!1},a.a.createElement(Za,{guid:i,userId:0,licenseId:0,userLicenses:void 0})))},qc=function(e,t){return a.a.createElement(h.Box,{m:1},a.a.createElement(h.Card,{variant:"outlined"},a.a.createElement(h.Grid,{container:!0,spacing:"form",justify:"center"},a.a.createElement(h.Grid,{item:!0,lg:6,md:8,xs:12,alignment:"center"},a.a.createElement(h.Box,{mt:2,mb:1,alignItems:"center"},a.a.createElement(h.Column,{crossAxisAlignment:"center"},a.a.createElement(h.Typography,{variant:"h3",color:"textPrimary"},e),t&&a.a.createElement(h.Typography,{variant:"h6"},null===t||void 0===t?void 0:t.firstName," ",null===t||void 0===t?void 0:t.lastName),a.a.createElement(h.Typography,{variant:"caption"},Object(N.c)((new Date).toString(),"MMM DD, YYYY, hh:mm A"))))))))},zc=Object(s.b)(null,(function(e){return{declineSessionEvaluation:function(t){return e(function(e){return function(t){return U.R.declineSessionEvaluationByGuid(e,void 0).then((function(e){return e})).catch((function(e){t("Invalid Guid"===e?Object(G.a)({message:e,variant:"error"}):Object(G.b)(e))}))}}(t))},getAllSessionInstructors:function(t){return e(Pr(t))}}}))((function(e){var t,i,n,o,s,l,d,u,p,v,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,T=window.location.hostname.split("."),P=T&&T.length>0?T[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 a.a.createElement(h.ExternalScreen,{redirectSignInUrl:"".concat(null!==(t=null==="https://{host}.{app}.micronapps.com/"?void 0:"https://{host}.{app}.micronapps.com/".replace("{host}",P).replace("{app}","cem"))&&void 0!==t?t:"","login")},a.a.createElement(Nc.ExternalScreenHeader,{maxWidth:"lg"},qc("Decline Confirmation")),a.a.createElement(Nc.ExternalScreenBody,{maxWidth:"lg"},a.a.createElement(h.Backdrop,{open:!E},a.a.createElement(h.CircularProgress,{color:"secondary"})),(null===E||void 0===E?void 0:E.course)&&(null===E||void 0===E?void 0:E.session)&&a.a.createElement(h.Box,{mb:2},a.a.createElement(h.Box,{marginBottom:2},a.a.createElement(h.Grid,{container:!0,spacing:"card"},a.a.createElement(h.Grid,{item:!0,xs:12},a.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)),a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.Typography,{variant:"subtitle2"},"You have declined evaluation of the following course:")))),a.a.createElement(h.Card,{variant:"outlined",status:"primary"},a.a.createElement(h.CardHeader,{style:{padding:"8px"},title:a.a.createElement(h.Box,{display:"flex"},a.a.createElement(h.Box,{p:1,pr:2,my:"auto"},a.a.createElement(h.SystemIcon,{icon:"Courses",size:"md"})),a.a.createElement(h.Box,{flex:1},a.a.createElement(h.Typography,{variant:"h6",color:"textPrimary"},null===E||void 0===E||null===(n=E.course)||void 0===n?void 0:n.title),a.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)))}),a.a.createElement(h.Collapse,{in:!0},a.a.createElement(h.Divider,null),a.a.createElement(h.CardContent,null,a.a.createElement(h.Box,{display:"flex"},a.a.createElement(h.Box,{pr:2,minWidth:70,my:"auto"},a.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})),a.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())&&a.a.createElement(h.Box,{mb:.5},a.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},E.session.title)),a.a.createElement(h.Box,{display:"flex",mb:.5},a.a.createElement(h.Box,{pr:1,minWidth:30,textAlign:"center"},a.a.createElement(h.SystemIcon,{icon:"Clock",color:"primary"})),a.a.createElement(h.Box,{flex:1},a.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))&&a.a.createElement(h.Box,{display:"flex",mb:.5},a.a.createElement(h.Box,{pr:1,minWidth:30,textAlign:"center"},a.a.createElement(h.SystemIcon,{icon:"Location",color:"primary",type:"solid"})),a.a.createElement(h.Box,{flex:1},a.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):""))),a.a.createElement(h.Box,{display:"flex"},a.a.createElement(h.Box,{pr:1,minWidth:30,textAlign:"center"},function(e){switch(e){case"Classroom":return a.a.createElement(h.SystemIcon,{icon:"Cem-Classroom",type:"duotone",color:"primary"});case"On-demand":return a.a.createElement(h.SystemIcon,{icon:"Cem-OnDemand",type:"duotone",color:"primary"});case"Webcast":return a.a.createElement(h.SystemIcon,{icon:"Cem-Webinar",type:"duotone",color:"primary"});default:return a.a.createElement(h.SystemIcon,{icon:"Cem-OtherFormat",type:"duotone",color:"primary"})}}(null!==(p=null===(v=E.session.courseFormat)||void 0===v?void 0:v.portalCategory)&&void 0!==p?p:"")),a.a.createElement(h.Box,{flex:1},a.a.createElement(h.Typography,{variant:"body1"},null===E||void 0===E||null===(f=E.session.courseFormat)||void 0===f?void 0:f.name)))),a.a.createElement(h.Box,{flex:1,my:"auto"},x&&x.length>0&&(A={icon:a.a.createElement(h.SystemIcon,{icon:"Instructor",color:"primary",type:"solid"}),label:a.a.createElement(h.Box,{style:{display:"flex",alignItems:"center",justifyItems:"center"}},a.a.createElement(h.Typography,{variant:"body2"},"Instructor(s): ",x.map((function(e){return e.fullName})).join(", ")))},a.a.createElement(h.Row,{crossAxisAlignment:"middle"},a.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)&&a.a.createElement(h.Box,{mt:2,dangerouslySetInnerHTML:{__html:Object(k.a)(null===E||void 0===E?void 0:E.session.detail)}})))))))})),Wc=Object(s.b)(null,(function(e){return{confirmDialog:function(t){return e(Object(on.b)(t))},getSessionEvaluation:function(t){return e(function(e){return function(t){return U.R.getSessionEvaluationByGuid(e,void 0).then((function(e){return e})).catch((function(e){t("Invalid Guid"===e?Object(G.a)({message:e,variant:"error"}):Object(G.b)(e))}))}}(t))},getAllSessionInstructors:function(t){return e(Pr(t))},saveSessionEvaluationAnswers:function(t,i,r,a){return e(function(e,t,i,r){return function(a){return U.R.saveSupportingPageSessionEvaluationAnswers(e,void 0,v.Yd.fromJS({sessionEvaluationId:t,answers:i,isSubmit:"submit"===r})).then((function(e){return"save"===r?a(Object(G.a)({message:"Save Successful!",variant:"success"})):"submit"===r&&a(Object(G.a)({message:"Submit Successful!",variant:"success"})),e})).catch((function(e){throw a(Object(G.b)(e)),e}))}}(t,i,r,a))}}}))(Object(oo.a)((function(e){var t,i,n,o,s,l,d,u,p,v,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],T=j[1],P=Object(r.useState)(void 0),A=Object(c.a)(P,2),L=A[0],J=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),M=Object(c.a)(G,2),q=M[0],z=M[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),ae=re[0],ne=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],pe=ue[1],ve=Object(r.useState)(!1),fe=Object(c.a)(ve,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],Te=S.params.guid,Pe=window.location.hostname.split("."),Ae=Pe&&Pe.length>0?Pe[0]:"localhost",Ne=function(e){var t=new Array;return e.forEach((function(e){var i=null===q||void 0===q?void 0:q.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(Te).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)),T(null===e||void 0===e?void 0:e.evaluation)}))}),[y,Te,m]),Object(r.useEffect)((function(){w&&(J((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,a,n,o,s,l,c,d,u,h,p,v,f=Object(D.a)({},L),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),J(f)):(f=(null===(p=m)||void 0===p||null===(v=p.questions)||void 0===v?void 0:v.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,J(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===(a=f)||void 0===a?void 0:a.sequence)!==(null===(n=m)||void 0===n||null===(o=n.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),ae&&ne(!1)},Le=function(){var e,t,i,r,a,n,o,s,l,c,d,u,h=Object(D.a)({},L),p=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?(p=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=p)||void 0===i?void 0:i.sequence)&&void 0!==t?t:0)-1}))[0],h=(null===(s=p)||void 0===s||null===(l=s.questions)||void 0===l?void 0:l.filter((function(e){var t,i;return e.sequence===(null===(t=p)||void 0===t||null===(i=t.questions)||void 0===i?void 0:i.length)}))[0])||void 0,U(null===(c=p)||void 0===c?void 0:c.sectionId),J(h)):(h=(null===(d=p)||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,J(h));1!==(null===(i=p)||void 0===i?void 0:i.sequence)||1!==(null===(r=h)||void 0===r?void 0:r.sequence)&&0!==(null===(a=p)||void 0===a||null===(n=a.questions)||void 0===n?void 0:n.length)||ne(!0),ee&&te(!1)},Je=function(e){ce(e),"save"!==e&&pe(!0)},Fe=function(e,t){ye(!0),b(Te,(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 a.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")},a.a.createElement(Nc.ExternalScreenHeader,{maxWidth:"lg"},qc("Evaluation Request")),a.a.createElement(Nc.ExternalScreenBody,{maxWidth:"lg"},a.a.createElement(h.Backdrop,{open:!O||!w||!q},a.a.createElement(h.CircularProgress,{color:"secondary"})),(null===O||void 0===O?void 0:O.course)&&(null===O||void 0===O?void 0:O.session)&&a.a.createElement(h.Box,{mb:2},a.a.createElement(h.Card,{variant:"outlined",status:"primary"},a.a.createElement(h.CardHeader,{style:{padding:"8px"},title:a.a.createElement(h.Box,{display:"flex"},a.a.createElement(h.Box,{p:1,pr:2,my:"auto"},a.a.createElement(h.SystemIcon,{icon:"Courses",size:"md"})),a.a.createElement(h.Box,{flex:1},a.a.createElement(h.Typography,{variant:"h6",color:"textPrimary"},null===O||void 0===O||null===(i=O.course)||void 0===i?void 0:i.title),a.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular",color:"textPrimary"},null===O||void 0===O||null===(n=O.course)||void 0===n?void 0:n.provider)),a.a.createElement(h.Box,{p:1,my:"auto"},a.a.createElement(h.IconButton,{onClick:function(){return Ee(!Se)}},a.a.createElement(h.SystemIcon,{icon:Se?"CollapseVertical":"ExpandVertical",size:"md"}))))}),a.a.createElement(h.Collapse,{in:Se},a.a.createElement(h.Divider,null),a.a.createElement(h.CardContent,null,a.a.createElement(h.Box,{display:"flex"},a.a.createElement(h.Box,{pr:2,minWidth:70,my:"auto"},a.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})),a.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())&&a.a.createElement(h.Box,{mb:.5},a.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},O.session.title)),a.a.createElement(h.Box,{display:"flex",mb:.5},a.a.createElement(h.Box,{pr:1,minWidth:30,textAlign:"center"},a.a.createElement(h.SystemIcon,{icon:"Clock",color:"primary"})),a.a.createElement(h.Box,{flex:1},a.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))&&a.a.createElement(h.Box,{display:"flex",mb:.5},a.a.createElement(h.Box,{pr:1,minWidth:30,textAlign:"center"},a.a.createElement(h.SystemIcon,{icon:"Location",color:"primary",type:"solid"})),a.a.createElement(h.Box,{flex:1},a.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):""))),a.a.createElement(h.Box,{display:"flex"},a.a.createElement(h.Box,{pr:1,minWidth:30,textAlign:"center"},function(e){switch(e){case"Classroom":return a.a.createElement(h.SystemIcon,{icon:"Cem-Classroom",type:"duotone",color:"primary"});case"On-demand":return a.a.createElement(h.SystemIcon,{icon:"Cem-OnDemand",type:"duotone",color:"primary"});case"Webcast":return a.a.createElement(h.SystemIcon,{icon:"Cem-Webinar",type:"duotone",color:"primary"});default:return a.a.createElement(h.SystemIcon,{icon:"Cem-OtherFormat",type:"duotone",color:"primary"})}}(null!==(u=null===(p=O.session.courseFormat)||void 0===p?void 0:p.portalCategory)&&void 0!==u?u:"")),a.a.createElement(h.Box,{flex:1},a.a.createElement(h.Typography,{variant:"body1"},null===O||void 0===O||null===(v=O.session.courseFormat)||void 0===v?void 0:v.name)))),a.a.createElement(h.Box,{flex:1,my:"auto"},je&&je.length>0&&(ke={icon:a.a.createElement(h.SystemIcon,{icon:"Instructor",color:"primary",type:"solid"}),label:a.a.createElement(h.Box,{style:{display:"flex",alignItems:"center",justifyItems:"center"}},a.a.createElement(h.Typography,{variant:"body1"},"Instructor(s): ",je.map((function(e){return e.fullName})).join(", ")))},a.a.createElement(h.Row,{crossAxisAlignment:"middle"},a.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)&&a.a.createElement(h.Box,{mt:2,dangerouslySetInnerHTML:{__html:Object(k.a)(null===O||void 0===O?void 0:O.session.detail)}}))))),a.a.createElement(h.Box,{mb:8},O&&w&&_&&je?a.a.createElement($r,{disabled:K,evaluation:w,currentQuestion:L,currentSectionId:R,validate:he,evaluationAnswers:_,instructors:je,setValidate:pe,onValidate:function(e,t){if("next"===le||"back"===le){var i=t.filter((function(e){return e.questionId===(null===L||void 0===L?void 0:L.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(", "))||""}}):a.a.createElement(Ln,{type:"filter-drawer"}))),w&&q&&a.a.createElement(Nc.ExternalScreenFooter,{maxWidth:"lg"},a.a.createElement(h.Hidden,{smDown:!0},!K&&a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:4,sm:3,alignment:"center-left"}),a.a.createElement(h.Grid,{item:!0,xs:4,sm:3,alignment:"center-left"},a.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")),a.a.createElement(h.Grid,{item:!0,xs:4,sm:3,alignment:"center-left"},a.a.createElement(h.Button,{fullWidth:!0,color:"primary",variant:"contained",onClick:function(){Be()},disabled:"submit"!==le&&me,loading:"submit"===le&&me},"Submit")),a.a.createElement(h.Grid,{item:!0,xs:4,sm:3,alignment:"center-left"}))),a.a.createElement(h.Hidden,{mdUp:!0},a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Hidden,{xsDown:!0},a.a.createElement(h.Grid,{item:!0,sm:2,alignment:"center-left"})),a.a.createElement(h.Grid,{item:!0,xs:6,sm:4,alignment:"center-left"},a.a.createElement(h.Button,{fullWidth:!0,color:"default",variant:"contained",type:"submit",onClick:function(){K?Le():Je("back")},disabled:ae||me&&"submit"===le},"Back")),ee?a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Grid,{item:!0,xs:6,sm:4,alignment:"center-left"},a.a.createElement(h.Button,{fullWidth:!0,color:"primary",variant:"contained",onClick:function(){Be()},disabled:K,loading:"submit"===le&&me},"Submit"))):a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Grid,{item:!0,xs:6,sm:4,alignment:"center-left"},a.a.createElement(h.Button,{fullWidth:!0,color:"primary",variant:"contained",onClick:function(){K?De():Je("next")},disabled:ee},"Next")))),a.a.createElement(h.Hidden,{xsDown:!0},a.a.createElement(h.Grid,{item:!0,sm:2,alignment:"center-left"})))))}))),Vc=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(lc.a)(t,[i]))},deleteLearningPlanParticipantById:function(t,i){return e(Object(lc.c)([t],i))},getLearningPlanRegistrationLinkDetailsByGuid:function(t,i){return e(Object(lc.f)(t,i))},setType:function(t){return e(Object(O.h)(t))},showConfirmation:function(t){return e(Object(on.b)(t))}}})),_c=Object(Ml.a)(Vc((function(e){var t,i,n,o,l,d,u=e.addLearningPlanParticipants,p=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(v.Kd.ManagePortalLearningPlans),w=E(v.Kd.ViewPortalLearningPlans),T=E(v.Kd.DeletePortalLearningPlans),P=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(P,g).then((function(e){x(e)}))}),[P,f,g,b]);var L=null!==(t=localStorage.getItem("userLoginSessionId"))&&void 0!==t?t:sa();A||""===L?A||""!==L||(window.location.href="".concat("https://{host}.{app}.micronapps.com/".replace("{host}",D).replace("{app}","cem"),"login?guid=").concat(P,"&type=learning-plan-link")||!1):window.location.href="".concat("https://{host}.{app}.micronapps.com/".replace("{host}",D).replace("{app}","cem"),"users/portal?guid=").concat(P,"&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===(n=C.learningPlanCourses)||void 0===n?void 0:n.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 a.a.createElement(a.a.Fragment,null,a.a.createElement(kc.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")},a.a.createElement(Nc.ExternalScreenBody,{maxWidth:"lg"},a.a.createElement(h.Box,{textAlign:"right",mt:4,mb:4},w?a.a.createElement(h.Button,{variant:"outlined",color:"default",onClick:function(){S.push("/learning-plans")}},"Redirect to Portal Learning Plans"):a.a.createElement(h.Button,{variant:"outlined",color:"default",onClick:function(){S.push("/home")}},"Redirect to Portal Home")),void 0===C?a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Backdrop,{open:void 0===C},a.a.createElement(h.CircularProgress,{color:"secondary"})),a.a.createElement(h.Card,{variant:"outlined"},a.a.createElement(h.CardHeader,{title:a.a.createElement(h.Skeleton,{height:32}),subheader:a.a.createElement(h.Skeleton,{width:"40%"})}),a.a.createElement(h.CardContent,{noTopPadding:!0},a.a.createElement(h.Skeleton,{width:"60%"})),a.a.createElement(h.CardActions,null,a.a.createElement(h.Skeleton,{width:"30%"})))):w?a.a.createElement(h.Column,{size:"max",crossAxisAlignment:"stretch"},a.a.createElement(h.Expanded,{mb:2},a.a.createElement(nc,{isRegistered:Boolean(R),learningPlan:C||{},showAllDescription:!0,hasManagePermission:j,hasDeletePermission:T,showDetailDrawer:!1,onUserRegister:function(){return function(){var e=new v.pd({userId:g,isIncluded:!0,criteriaMet:[],participantCriteriaStatus:v.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(P,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&&p(g,null===C||void 0===C?void 0:C.learningPlanId).then((function(){x(void 0),f(P,g).then((function(e){x(e)}))}))}})},isRegistrationClosed:Object(N.e)(ja()(new Date).format("LL"))>Object(N.e)(ja()(C.endDate).format("LL"))&&1===C.timeframeOfCompletion||void 0!==C.archivedDate||!C.isSelfEnrolled})),2!==C.type&&J&&Number(C.mandatoryCount)>0&&a.a.createElement(h.Expanded,null,a.a.createElement(rc,{requirements:J,type:1,learningPlanId:C.learningPlanId})),1!==C.type&&F&&Number(C.learnersChoiceCount)>0&&a.a.createElement(h.Expanded,null,a.a.createElement(rc,{requirements:F,type:2,learningPlanId:C.learningPlanId,count:C.requiredCourses})),B&&Number(C.activityCount)>0&&a.a.createElement(h.Expanded,null,a.a.createElement(rc,{requirements:B,type:3,learningPlanId:C.learningPlanId}))):a.a.createElement(h.Box,null,a.a.createElement(h.Row,{mainAxisAlignment:"center",crossAxisAlignment:"middle"},a.a.createElement(h.Alert,{type:"info",variant:"standard"},"Sorry, you don't have access to this information. Please contact the system administrator."))))))}))),Yc=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(lc.g)(t))},setType:function(t){return e(Object(O.h)(t))}}}))((function(e){var t,i,n,o,l,d,u,p,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),T=Object(c.a)(w,2),P=T[0],A=T[1],N=E(v.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:sa();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]),a.a.createElement(a.a.Fragment,null,a.a.createElement(kc.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")},a.a.createElement(Nc.ExternalScreenHeader,{maxWidth:"xl"},qc("Learning Plan Report",null===x||void 0===x?void 0:x.user)),a.a.createElement(Nc.ExternalScreenBody,{maxWidth:"lg"},P&&a.a.createElement(h.Box,{textAlign:"right",mb:4},N?a.a.createElement(h.Button,{variant:"outlined",color:"default",onClick:function(){I.push("/learning-plans")}},"Redirect to Portal Learning Plans"):a.a.createElement(h.Button,{variant:"outlined",color:"default",onClick:function(){I.push("/home")}},"Redirect to Portal Home")),void 0===x?a.a.createElement(h.Backdrop,{open:!0},a.a.createElement(h.CircularProgress,{color:"secondary"})):a.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)?a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Expanded,{mb:2},a.a.createElement(Vl,{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)&&a.a.createElement(h.Expanded,null,a.a.createElement(Zl,{requirements:(null===x||void 0===x||null===(n=x.learningPlanParticipantRequirementList)||void 0===n||null===(o=n.learningPlanParticipantRequirements)||void 0===o?void 0:o.filter((function(e){return 1===e.requirementType})))||[],type:1,onClick:P?void 0:function(){return F()}})),1!==(null===x||void 0===x||null===(l=x.userLearningPlan)||void 0===l?void 0:l.type)&&a.a.createElement(h.Expanded,null,a.a.createElement(Zl,{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===(p=u.learningPlanParticipantRequirements)||void 0===p?void 0:p.filter((function(e){return 2===e.requirementType})))||[],type:2,onClick:P?void 0:function(){return F()}})),a.a.createElement(h.Expanded,null,a.a.createElement(Zl,{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:P?void 0:function(){return F()}}))):a.a.createElement(h.Expanded,{mt:1,mb:1,flex:1},a.a.createElement(h.Box,{maxWidth:400,margin:"0 auto"},a.a.createElement(h.Alert,{type:"info",variant:"standard"},"You are no longer registered on this learning plan.")))))))})),$c=Object(z.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}}})),Hc=Object(s.b)(null,(function(e){return{downloadFile:function(t){return e((i=t,function(e){return U.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(G.b)(t)),t}))}));var i},getDetails:function(t){return e(function(e){return function(t){return U.D.getFileByGuid(e,void 0).then((function(e){return e})).catch((function(e){throw t(Object(G.b)(e)),e}))}}(t))}}}))((function(e){var t,i=e.downloadFile,n=e.getDetails,o=e.match,s=e.history,l=o.params.guid,d=Object(r.useState)(),u=Object(c.a)(d,2),p=u[0],v=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=$c(),T=window.location.hostname.split("."),P=T&&T.length>0?T[0]:"localhost",A=Object(r.useCallback)((function(e){v(void 0),n(e).then((function(e){var t;v(e),I(null!==(t=e.activeFile)&&void 0!==t?t:0)})).catch((function(){s.push("/error404")}))}),[s,n]);Object(r.useEffect)((function(){A(l)}),[l,A]);var k=function(e){j(e),g(!0),i(e).then((function(){g(!1)}))};return a.a.createElement(h.ExternalScreen,{redirectSignInUrl:"".concat(null!==(t=null==="https://{host}.{app}.micronapps.com/"?void 0:"https://{host}.{app}.micronapps.com/".replace("{host}",P).replace("{app}","cem"))&&void 0!==t?t:"","login")},a.a.createElement(Nc.ExternalScreenHeader,{maxWidth:"md"},a.a.createElement(h.Box,{m:1},a.a.createElement(h.Grid,{container:!0,spacing:"form",justify:"center"},a.a.createElement(h.Grid,{item:!0,lg:6,md:8,xs:12,alignment:"center"},a.a.createElement(h.Box,{mt:2,mb:1,alignItems:"center"},a.a.createElement(h.Row,{mainAxisAlignment:"center",crossAxisAlignment:"middle"},a.a.createElement(h.SystemIcon,{icon:"Download",size:"md"}),a.a.createElement(h.Box,{ml:2},a.a.createElement(h.Typography,{variant:"h3",color:"textPrimary"},"File Download")))))))),a.a.createElement(Nc.ExternalScreenBody,{maxWidth:"md"},void 0===p?a.a.createElement(h.Backdrop,{open:!0},a.a.createElement(h.CircularProgress,{color:"secondary"})):a.a.createElement(a.a.Fragment,null,p.files&&p.files.map((function(e){var t,i,r,n,o="link"===e.type;return a.a.createElement(h.Box,{key:e.fileId,m:1},a.a.createElement(h.Card,{variant:"outlined",className:Object(ro.default)(w.cardContainer,Object(kn.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)}},a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:2,style:{alignSelf:"center"}},a.a.createElement(h.Column,{crossAxisAlignment:"center",mainAxisAlignment:"middle"},a.a.createElement(h.Avatar,{variant:"circular",className:w.large,colorMode:"light",style:{color:"#424242",backgroundColor:"#e2e2e2"}},a.a.createElement(cn,{fileExtension:null!==(i=e.extension)&&void 0!==i?i:"",size:"lg",type:"duotone",linkFlag:o})))),a.a.createElement(h.Grid,{item:!0,xs:8,stretchContent:!0},a.a.createElement(h.Column,{crossAxisAlignment:"left",mainAxisAlignment:"middle"},a.a.createElement(h.Typography,{variant:"subtitle1"},a.a.createElement(h.Link,{style:{whiteSpace:"pre-wrap"},onClick:function(){if(o)window.open(e.url,"_blank");else{if(!p||(null===p||void 0===p?void 0:p.activeFile)!==e.fileId)return;var t;k(null!==(t=e.fileId)&&void 0!==t?t:0)}},underline:"none"},e.title)),a.a.createElement(h.Typography,{variant:"body1"},o?e.url:e.name))),a.a.createElement(h.Grid,{item:!0,xs:2,style:{alignSelf:"center",textAlign:"center"}},E===(null!==(r=e.fileId)&&void 0!==r?r:0)?a.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?a.a.createElement(a.a.Fragment,null,a.a.createElement(h.SystemIcon,{icon:"Url",color:"info",type:"light",size:"sm"})):a.a.createElement(a.a.Fragment,null,y&&x===(null!==(n=e.fileId)&&void 0!==n?n:0)?a.a.createElement(h.SystemIcon,{icon:"Loading",color:"info",spin:!0,type:"light",size:"sm"}):a.a.createElement(h.SystemIcon,{icon:"DataExport",color:"info",type:"light",size:"sm"}))):a.a.createElement(h.Typography,{variant:"subtitle1",align:"center"},o?a.a.createElement(a.a.Fragment,null):a.a.createElement(a.a.Fragment,null,Object(N.g)(e.size||0)))))))})))))})),Kc=i(2),Qc=Object(s.b)(null,(function(e){return{getReport:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e(Tr(t,i))}}})),Zc=function(e){if(e){var t=function(e,t){var i,r=[],a=new Map,n=Object(Kc.a)(e);try{for(n.s();!(i=n.n()).done;){var o=i.value;a.has(o[t])||(a.set(o[t],!0),r.push("".concat(o[t])))}}catch(s){n.e(s)}finally{n.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&&a.a.createElement(h.Row,{crossAxisAlignment:"middle"},a.a.createElement(h.Box,{ml:1,mr:1},a.a.createElement(h.Typography,{variant:"caption"},a.a.createElement("strong",null,e.value))),a.a.createElement(h.Typography,{variant:"caption"},e.creditName))}));return a.a.createElement(h.Column,null,a.a.createElement(h.Typography,{variant:"body1"},t),a.a.createElement(h.Column,null,r))}))}return"No Credits"},Xc=Qc((function(e){var t,i,n,o,s,l,d,u,p=e.getReport,v=e.match,f=e.history,m=Object(r.useState)(),y=Object(c.a)(m,2),g=y[0],b=y[1],S=v.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),p(e,t).then((function(e){b(e)})).catch((function(){f.push("/error404")}))}),[f,p]);Object(r.useEffect)((function(){O(S,0)}),[S,O]);return a.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")},a.a.createElement(Nc.ExternalScreenHeader,{maxWidth:"xl"},qc("Transcript Report",null===g||void 0===g?void 0:g.user)),a.a.createElement(Nc.ExternalScreenBody,{maxWidth:"xl"},g&&a.a.createElement(h.Box,{m:1},a.a.createElement(h.Grid,{container:!0,alignItems:"flex-end"},a.a.createElement(h.Grid,{item:!0,xs:12},a.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},a.a.createElement(h.MenuItem,{value:-1},"All Courses and Activities"),a.a.createElement(h.MenuItem,{disabled:!0,value:""},a.a.createElement("em",null,a.a.createElement("b",null,"License"))),(null===g||void 0===g||null===(i=g.user)||void 0===i?void 0:i.userLicense)&&(null===(n=g.user)||void 0===n||null===(o=n.userLicense)||void 0===o?void 0:o.sort((function(e,t){var i,r,a,n;return(null!==(i=e.name)&&void 0!==i?i:"")>(null!==(r=t.name)&&void 0!==r?r:"")?1:(null!==(a=e.name)&&void 0!==a?a:"")<(null!==(n=t.name)&&void 0!==n?n:"")?-1:0})).map((function(e){return a.a.createElement(h.MenuItem,{key:e.licenseId,value:e.licenseId},a.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)&&a.a.createElement(h.Grid,{container:!0,justify:"center"},a.a.createElement(h.Grid,{item:!0,alignment:"center",stretchContent:!0,lg:4,md:6,xs:12,alignItems:"center"},a.a.createElement(h.Alert,{type:"info",variant:"standard"},"No records found"))))),void 0===g?a.a.createElement(a.a.Fragment,null,[2020,2019,2018,2017].map((function(e){return a.a.createElement(h.Grid,{item:!0,xs:12,key:e},a.a.createElement(h.Box,{m:1},a.a.createElement(h.Widget,null,a.a.createElement(h.Box,{width:"100%"},a.a.createElement(h.Box,{width:"100%",bgcolor:"#F1F1F1"},a.a.createElement(h.Box,{ml:1},a.a.createElement(A.a,{title:a.a.createElement(h.Skeleton,{width:"100%"})}))),a.a.createElement(h.Box,{width:"100%"},a.a.createElement(T.a,null,a.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,n,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 a.a.createElement(h.Typography,{variant:"body1"},Object(ii.e)(t.completionDate),t.shouldDisplayDateRange&&t.endDate&&Object(ii.e)(t.endDate)!==Object(ii.e)(t.startDate)&&" - ".concat(Object(ii.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,n=0!==t.providerId&&0===t.activityId&&void 0!==r&&i!==r;return a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Typography,{variant:"body1"},"".concat(i).concat(n?" : ":"")),n&&a.a.createElement(h.Typography,{variant:"body1"},r))}},{width:50,accessor:"isInstructor",Cell:function(e){var t=e.cell.value;return a.a.createElement(a.a.Fragment,null,!0===t?a.a.createElement(h.Tooltip,{title:"Instructed",placement:"bottom"},a.a.createElement("span",null,a.a.createElement(h.SystemIcon,{icon:"Instructor",color:"primary",type:"duotone",size:"sm"}))):a.a.createElement(a.a.Fragment,null))},disableSortBy:!0},{width:50,accessor:"formatId",Cell:function(e){var t,i,r=e.row.original;return a.a.createElement(a.a.Fragment,null,0!==(null===r||void 0===r?void 0:r.formatId)?a.a.createElement(h.Tooltip,{title:null!==(t=r.formatPortalCategory)&&void 0!==t?t:"",placement:"bottom"},a.a.createElement("span",null,a.a.createElement(za,{format:null!==(i=r.formatPortalCategory)&&void 0!==i?i:"",type:"duotone",color:"inherit",size:"sm"}))):a.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 a.a.createElement(h.Typography,{variant:"body1"},t)}},{Header:"Credits",width:350,wrapText:!0,accessor:"credits",Cell:function(e){var t=e.row.original;return a.a.createElement(h.Typography,{variant:"body1"},Zc(null===t||void 0===t?void 0:t.userLicenseCreditValues))}}];return a.a.createElement(h.Box,{m:1},a.a.createElement(h.Widget,null,a.a.createElement(h.Box,null,a.a.createElement(h.Box,{width:"100%",bgcolor:"#F1F1F1"},a.a.createElement(h.Box,{ml:1},a.a.createElement(A.a,{title:a.a.createElement(h.Typography,{variant:"h6"},e)}))),a.a.createElement(h.Box,{width:"100%"},a.a.createElement(T.a,{dense:!0},a.a.createElement(h.DataGrid,{advanced:!0,columns:s,data:o,hideRowCountDisplay:!0,hideRowsPerPage:!0,pageSize:null!==(r=null===g||void 0===g||null===(n=g.transcript)||void 0===n?void 0:n.recordCount)&&void 0!==r?r:0}))))))}))))})),ed=i(674),td=(i(513),i(135)),id=(i(209),i(205)),rd=function(e){var t=e.industry,i=e.size,r=e.type;switch(t){case"Law":return a.a.createElement(h.SystemIcon,{icon:"Cem-Legal",size:i,type:r});case"Accounting":return a.a.createElement(h.SystemIcon,{icon:"Cem-Accounting",size:i,type:r});case"Custom License":return a.a.createElement(h.SystemIcon,{icon:"Cem-InFirm",size:i,type:r});default:return a.a.createElement(h.SystemIcon,{icon:"Cem-Certificate",size:i,type:r})}},ad=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(td.b(t))}}}))((function(e){var t,i=e.showLimitedLicenses,n=e.open,o=e.onClose,s=e.title,l=e.firmLicenses,d=e.selectedFirmLicenses,u=e.setSelectedFirmLicenses,p=e.userLicenseLimitation,v=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(kn.a)({},"".concat(e.licenseId),t);y=Object(D.a)(Object(D.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(kn.a)({},"".concat(e.licenseId,"-fav"),t);y=Object(D.a)(Object(D.a)({},y),i)})),y)},validationSchema:Object(Ta.object)().shape({}),onSubmit:function(e){var t=e.licenseListForm,i=Array(),r=[];t&&Object.keys(t).forEach((function(e){g&&g.forEach((function(a){t[e]&&e==="".concat(a.licenseId)&&(i.push(a),a.licenseId&&r.push(a.licenseId))}))})),v&&v(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&&p&&p.length>0)||(null===p||void 0===p?void 0:p.includes(e.licenseId))})),x=g&&g.filter((function(e){return"Law"===e.industryId})).filter((function(e){return!(!i&&p&&p.length>0)||(null===p||void 0===p?void 0:p.includes(e.licenseId))})),j=g&&g.filter((function(e){return"Accounting"===e.industryId})).filter((function(e){return!(!i&&p&&p.length>0)||(null===p||void 0===p?void 0:p.includes(e.licenseId))})),w=g&&g.filter((function(e){return"Certification"===e.industryId})).filter((function(e){return!(!i&&p&&p.length>0)||(null===p||void 0===p?void 0:p.includes(e.licenseId))})),P=g&&g.filter((function(e){return"Custom License"===e.industryId})).filter((function(e){return!(!i&&p&&p.length>0)||(null===p||void 0===p?void 0:p.includes(e.licenseId))}));return Object(r.useEffect)((function(){I(!1),C&&C.forEach((function(e){9999===e.licenseId&&I(!0)}))}),[C,E]),a.a.createElement(ba.a,{size:"sm",open:n,onClose:o},a.a.createElement(wa.Formik,{initialValues:O.initialValues,validationSchema:O.validationSchema,onSubmit:O.onSubmit,enableReinitialize:!0},(function(e){var t,i,r=e.setFieldValue,n=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===Q}));return a.a.createElement(h.Form,{id:"license-list",formikContext:!0},a.a.createElement(ga.SideDrawerHeader,{titleBar:{icon:{source:"custom",value:a.a.createElement(h.Button,{variant:"text",color:"primary",type:"reset",onClick:o},a.a.createElement(h.SystemIcon,{size:"sm",icon:"Back"}))},title:s}}),a.a.createElement(ga.SideDrawerBody,{maxWidth:!1},a.a.createElement(h.Grid,{container:!0,spacing:"form"},C&&C.length>0&&(m&&E||(!m||!E)&&C.length>1)&&a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.Widget,{color:"important"},a.a.createElement(h.Box,{ml:2},a.a.createElement(A.a,{icon:a.a.createElement(h.SystemIcon,{icon:"Star",type:"duotone",size:"sm",color:"secondary"}),action:a.a.createElement(h.Box,{display:"flex",justifyContent:"flex-end"},a.a.createElement(h.Button,{size:"small",color:"primary",variant:"text",onClick:function(){return n(C)}},"Select All")),title:a.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular",color:"secondary"},"Firm Favorites")}),a.a.createElement(T.a,{dense:!0},a.a.createElement(h.List,{hover:!0},m&&E&&a.a.createElement(h.ListItem,{key:Q,dense:!0,alignItems:"flex-start"},a.a.createElement(h.Box,{mt:1,flex:1},a.a.createElement(h.Typography,{variant:"body1"},"Fields of Study")),a.a.createElement(h.Box,{alignContent:"center"},a.a.createElement(h.Checkbox,{formikContext:!0,id:"favoriteLicenseListForm.".concat(Q,"-fav"),disabled:null!==(t=u&&void 0!==u)&&void 0!==t&&t,onChange:function(e,t){l(Q,t)}}))),C&&C.filter((function(e){return e.licenseId!==Q})).map((function(e){var t,i=e.licenseId,r=e.name,n=d&&d.find((function(e){return e.licenseId===i}));return i&&a.a.createElement(h.ListItem,{key:i,dense:!0,alignItems:"flex-start"},a.a.createElement(h.Box,{mt:1,flex:1},a.a.createElement(h.Typography,{variant:"body1"},r)),a.a.createElement(h.Box,{alignContent:"center"},a.a.createElement(h.Checkbox,{formikContext:!0,id:"favoriteLicenseListForm.".concat(i,"-fav"),disabled:null!==(t=n&&void 0!==n)&&void 0!==t&&t,onChange:function(e,t){l(i,t)}})))}))))))),x&&x.length>0&&a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.Widget,null,a.a.createElement(h.Box,{ml:2},a.a.createElement(A.a,{icon:a.a.createElement(rd,{industry:"Law",type:"duotone"}),action:a.a.createElement(h.Box,{display:"flex",justifyContent:"flex-end"},a.a.createElement(h.Button,{size:"small",color:"primary",variant:"text",onClick:function(){return n(x)}},"Select All")),title:"Law"}),a.a.createElement(T.a,{dense:!0},a.a.createElement(h.List,{hover:!0},x&&x.map((function(e){var t,i=e.licenseId,r=e.name,n=d&&d.find((function(e){return e.licenseId===i}));return i&&a.a.createElement(h.ListItem,{key:i,dense:!0,alignItems:"flex-start"},a.a.createElement(h.Box,{mt:1,flex:1},a.a.createElement(h.Typography,{variant:"body1"},r)),a.a.createElement(h.Box,{alignContent:"center"},a.a.createElement(h.Checkbox,{formikContext:!0,id:"licenseListForm.".concat(i),disabled:null!==(t=n&&void 0!==n)&&void 0!==t&&t,onChange:function(e,t){c(i,t)}})))}))))))),j&&j.length>0&&a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.Widget,null,a.a.createElement(h.Box,{ml:2},a.a.createElement(A.a,{icon:a.a.createElement(rd,{industry:"Accounting",type:"duotone"}),action:a.a.createElement(h.Box,{display:"flex",justifyContent:"flex-end"},a.a.createElement(h.Button,{size:"small",color:"primary",variant:"text",onClick:function(){return n(j)}},"Select All")),title:"Accounting"}),a.a.createElement(T.a,{dense:!0},a.a.createElement(h.List,{hover:!0},m&&a.a.createElement(h.ListItem,{key:Q,dense:!0,alignItems:"flex-start"},a.a.createElement(h.Box,{mt:1,flex:1},a.a.createElement(h.Typography,{variant:"body1"},"Fields of Study")),a.a.createElement(h.Box,{alignContent:"center"},a.a.createElement(h.Checkbox,{formikContext:!0,id:"licenseListForm.".concat(Q),disabled:null!==(i=u&&void 0!==u)&&void 0!==i&&i,onChange:function(e,t){c(Q,t)}}))),j&&j.filter((function(e){return e.licenseId!==Q})).map((function(e){var t,i=e.licenseId,r=e.name,n=d&&d.find((function(e){return e.licenseId===i}));return i&&a.a.createElement(h.ListItem,{key:i,dense:!0,alignItems:"flex-start"},a.a.createElement(h.Box,{mt:1,flex:1},a.a.createElement(h.Typography,{variant:"body1"},r)),a.a.createElement(h.Box,{alignContent:"center"},a.a.createElement(h.Checkbox,{formikContext:!0,id:"licenseListForm.".concat(i),disabled:null!==(t=n&&void 0!==n)&&void 0!==t&&t,onChange:function(e,t){c(i,t)}})))}))))))),w&&w.length>0&&a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.Widget,null,a.a.createElement(h.Box,{ml:2},a.a.createElement(A.a,{icon:a.a.createElement(rd,{industry:"Certification",type:"duotone"}),action:a.a.createElement(h.Box,{display:"flex",justifyContent:"flex-end"},a.a.createElement(h.Button,{size:"small",color:"primary",variant:"text",onClick:function(){return n(w)}},"Select All")),title:"Certification"}),a.a.createElement(T.a,{dense:!0},a.a.createElement(h.List,{hover:!0},w&&w.map((function(e){var t,i=e.licenseId,r=e.name,n=d&&d.find((function(e){return e.licenseId===i}));return i&&a.a.createElement(h.ListItem,{key:i,dense:!0,alignItems:"flex-start"},a.a.createElement(h.Box,{mt:1,flex:1},a.a.createElement(h.Typography,{variant:"body1"},r)),a.a.createElement(h.Box,{alignContent:"center"},a.a.createElement(h.Checkbox,{formikContext:!0,id:"licenseListForm.".concat(i),disabled:null!==(t=n&&void 0!==n)&&void 0!==t&&t,onChange:function(e,t){c(i,t)}})))}))))))),P&&P.length>0&&a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.Widget,null,a.a.createElement(h.Box,{ml:2},a.a.createElement(A.a,{icon:a.a.createElement(rd,{industry:"Custom License",type:"duotone"}),action:a.a.createElement(h.Box,{display:"flex",justifyContent:"flex-end"},a.a.createElement(h.Button,{size:"small",color:"primary",variant:"text",onClick:function(){return n(P)}},"Select All")),title:"Custom License"}),a.a.createElement(T.a,{dense:!0},a.a.createElement(h.List,{hover:!0},P&&P.map((function(e){var t,i=e.licenseId,r=e.name,n=d&&d.find((function(e){return e.licenseId===i}));return i&&a.a.createElement(h.ListItem,{key:i,dense:!0,alignItems:"flex-start"},a.a.createElement(h.Box,{mt:1,flex:1},a.a.createElement(h.Typography,{variant:"body1"},r)),a.a.createElement(h.Box,{alignContent:"center"},a.a.createElement(h.Checkbox,{formikContext:!0,id:"licenseListForm.".concat(i),disabled:null!==(t=n&&void 0!==n)&&void 0!==t&&t,onChange:function(e,t){c(i,t)}})))}))))))))),a.a.createElement(ga.SideDrawerFooter,null,a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:6,alignment:"center-right"},a.a.createElement(h.Button,{color:"default",type:"reset",onClick:o,variant:"outlined",fullWidth:!0},"Cancel")),a.a.createElement(h.Grid,{item:!0,xs:6,alignment:"center-left"},a.a.createElement(h.Button,{color:"primary",variant:"contained",type:"submit",fullWidth:!0},"Add")))))})))}));function nd(){nd=function(){return e};var e={},t=Object.prototype,i=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",n=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 a=t&&t.prototype instanceof u?t:u,n=Object.create(a.prototype),o=new O(r||[]);return n._invoke=function(e,t,i){var r="suspendedStart";return function(a,n){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw n;return x()}for(i.method=a,i.arg=n;;){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),n}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 p(){}var v={};s(v,a,(function(){return this}));var f=Object.getPrototypeOf,m=f&&f(f(C([])));m&&m!==t&&i.call(m,a)&&(v=m);var y=p.prototype=u.prototype=Object.create(v);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(a,n){function o(){return new t((function(r,o){!function r(a,n,o,s){var l=c(e[a],e,n);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)}(a,n,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 a=r.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):a:(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[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r=0;--a){var n=this.tryEntries[a],o=n.completion;if("root"===n.tryLoc)return r("end");if(n.tryLoc<=this.prev){var s=i.call(n,"catchLoc"),l=i.call(n,"finallyLoc");if(s&&l){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&i.call(a,"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 a=r.arg;I(i)}return a}}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 od=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(id.a())},setSelectedSession:function(t){return e(Vi(t))},setSelectedFirmLicenses:function(t){return e(td.b(t))},getAllNYCounty:function(){return e((function(e){return U.S.getAllNYCounty(void 0).then((function(e){return e})).catch((function(t){throw e(Object(G.b)(t)),t}))}))}}}))((function(e){var t=e.adjustedLicenseIdList,i=e.editsession,n=e.firmLicenses,o=e.getLicenses,s=e.isLoading,l=e.isTPCourseElearning,d=e.parentFormState,u=e.selectedFirmLicenses,p=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,T=E(v.Kd.ManagePortalTeam),P=u&&u.map((function(e){return e.licenseId})),A=(null===P||void 0===P?void 0:P.length)===(null===t||void 0===t?void 0:t.length)||void 0!==t&&(0!==t.length&&!Object(x.isEmpty)(Object(x.xor)(P,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===le}))){var e=d.getFieldProps("licensePropsList.".concat(p,"-381_6")).value;""!==e&&void 0!==e||d.setFieldValue("licensePropsList.".concat(p,"-381_6"),null)}}),[u,d,p]),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 a.a.createElement(h.Row,{size:"max",crossAxisAlignment:"middle",mainAxisAlignment:"start"},a.a.createElement(h.Column,{mainAxisAlignment:"middle",size:"max",crossAxisAlignment:"left"},a.a.createElement(h.Expanded,{flex:0},a.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===fe)if(r.find((function(e){return 3===e})))d.setFieldValue("licensePropsList.".concat(p,"-").concat(e,"_grouped_properties"),i);else if(r.find((function(e){return 5===e}))){var a=i.filter((function(e){return 3===e.id}));d.setFieldValue("licensePropsList.".concat(p,"-").concat(e,"_checkbox_properties"),a)}},G=function(e,t){return e===fe&&6===t?[{label:"Yes",value:0},{label:"No",value:1}]:(e===fe||e===le)&&9===t||e===ve&&17===t?[{label:"No Financial Hardship",value:0},{label:"Financial Hardship Requested",value:1},{label:"Financial Hardship Granted",value:2}]:[]};return a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Grid,{item:!0,xs:12},null===n&&i?a.a.createElement(h.Skeleton,{height:30,width:"100%"}):a.a.createElement(a.a.Fragment,null,0===(null===u||void 0===u?void 0:u.length)||null===u?a.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},a.a.createElement(h.Grid,{container:!0,spacing:"form",justify:"center"},a.a.createElement(h.Grid,{item:!0,lg:6,xs:12,stretchContent:!0,alignment:"center"},C?a.a.createElement(h.Box,{mt:.75,textAlign:"center"},a.a.createElement(h.Button,{size:"medium",variant:"contained",color:"primary",startIcon:a.a.createElement(h.SystemIcon,{size:"md",icon:"Add",color:"inherit"}),onClick:function(){return j&&j()}},"Add Credits")):a.a.createElement(h.Box,{m:5},a.a.createElement(h.Alert,{variant:"standard",type:"info",icon:"Info"},"No credits selected"))))):a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"bottom-right"},((null===u||void 0===u?void 0:u.length)||0)>0&&!y&&!A?a.a.createElement(h.Link,{variant:"body1",onClick:function(){return f([]),void(C&&w&&w())}},"Remove All"):a.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,n,o,l,c,v,b,S,E,O,x,j,P,A,D,L,F,M,q,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!==(n=!T||m&&m.length>0&&!m.includes(null===e||void 0===e?void 0:e.licenseId))&&void 0!==n&&n,Z=0,X="",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===fe&&(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})))&&(Z=null!==(F=null===(M=e.licenseProperties.find((function(e){return null!==e.licensePropertyGroupId})))||void 0===M?void 0:M.licensePropertyGroupId)&&void 0!==F?F:0,X=null!==(q=null===(z=e.licenseProperties.find((function(e){return e.licensePropertyGroupId===Z})))||void 0===z?void 0:z.licensePropertyGroupLabel)&&void 0!==q?q:"",Z&&e.licenseProperties.map((function(t){if(5===t.typeId&&t.licensePropertyGroupId===Z&&e.licenseId!==Q){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!==Q){var i,r={id:null!==(i=t.propertyId)&&void 0!==i?i:0,name:t.label};return _.push(r),_}return null})),e.licenseId===Q&&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===Z&&H.push(r),null})));return a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.Box,{mt:1},a.a.createElement(h.Card,{background:"grey",variant:"outlined"},a.a.createElement(h.CardHeader,{title:a.a.createElement(h.Row,null,a.a.createElement(h.Typography,{variant:"h6"},e.name),e.licenseId===oe&&a.a.createElement(h.Box,{ml:2},a.a.createElement(h.Column,null,a.a.createElement(h.Typography,{variant:"caption"},a.a.createElement("i",null,"*Enter the total number of credits as either Regular or In-House/Self-Study.")),a.a.createElement(h.Typography,{variant:"caption"},a.a.createElement("i",null," ","The portion of total credits that count towards the sub-requirement should be entered in the remaining credit categories.")),a.a.createElement(h.Typography,{variant:"caption"},a.a.createElement("i",null,"(Note: the same credits may count towards more than one sub-requirement.)")))),e.licenseId===se&&a.a.createElement(h.Box,{ml:2},a.a.createElement(h.Column,null,a.a.createElement(h.Typography,{variant:"caption"},a.a.createElement("i",null,"*Enter the total number of credits as General.")),a.a.createElement(h.Typography,{variant:"caption"},a.a.createElement("i",null,"The portion of General credits that count towards the sub-requirement should be entered in the remaining credit categories.")),a.a.createElement(h.Typography,{variant:"caption"},a.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))?a.a.createElement(h.Typography,{variant:"body1",color:"textSecondary"},"Remove"):a.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")}),a.a.createElement(h.CardContent,null,a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,lg:2,md:2,xs:12,stretchContent:!0},B("Credits")),a.a.createElement(h.Grid,{item:!0,lg:10,md:10,xs:12,stretchContent:!0,alignment:"center-left"},!i&&a.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===(v=c.filter((function(e){return!e.isArchived})))||void 0===v?void 0:v.map((function(t){var i,r="licenseCreditsList.".concat(p,"-").concat(e.licenseId,"_").concat(t.creditId);return a.a.createElement(h.Grid,{item:!0,lg:6,md:6,xs:6,key:"".concat(r,"_grid")},a.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&&a.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(p,"-").concat(e.licenseId,"_").concat(t.creditId);return a.a.createElement(h.Grid,{item:!0,lg:4,md:6,xs:6,key:"".concat(r,"_grid")},a.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&&a.a.createElement(h.Typography,{color:"error",variant:"caption"},"Invalid input")}))}))),i&&a.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(p,"-").concat(e.licenseId,"_").concat(t.creditId);return a.a.createElement(h.Grid,{item:!0,lg:6,md:6,xs:6,key:"".concat(r,"_grid")},a.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&&a.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,n="licenseCreditsList.".concat(p,"-").concat(e.licenseId,"_").concat(t.creditId),o=d.getFieldProps(n).value;return t.isArchived?t.isArchived&&o>0?a.a.createElement(h.Grid,{item:!0,lg:4,md:6,xs:6},a.a.createElement(h.Row,null,a.a.createElement(h.TextField,{fullWidth:!0,id:n,key:n,label:R(null!==(r=t.name)&&void 0!==r?r:""),type:"text",formikContext:!0,loading:s,disabled:K||V,helperText:d.getFieldProps(n).value<0&&a.a.createElement(h.Typography,{color:"error",variant:"caption"},"Invalid input")}),a.a.createElement(h.Box,{mb:2,ml:.5},a.a.createElement(h.Tooltip,{title:"This credit type has been archived.",placement:"top",style:{maxWidth:10}},a.a.createElement("span",null,"\xa0",a.a.createElement(h.SystemIcon,{icon:"Help"})))))):a.a.createElement(a.a.Fragment,null):a.a.createElement(h.Grid,{item:!0,lg:4,md:6,xs:6},a.a.createElement(h.TextField,{fullWidth:!0,id:n,key:n,label:R(null!==(i=t.name)&&void 0!==i?i:""),type:"text",formikContext:!0,loading:s,disabled:K||V,helperText:d.getFieldProps(n).value<0&&a.a.createElement(h.Typography,{color:"error",variant:"caption"},"Invalid input")}))})))),(_&&_.length>0||$&&$.length>0)&&a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Grid,{item:!0,lg:2,md:2,xs:12,stretchContent:!0},B("Properties")),a.a.createElement(h.Grid,{item:!0,lg:10,md:10,xs:12,stretchContent:!0,alignment:"center-left"},a.a.createElement(h.Grid,{container:!0,spacing:1},_&&_.length>0&&a.a.createElement(h.Grid,{item:!0,lg:4,md:6,xs:12,alignment:"top-left",key:"".concat(e.licenseId,"_select_properties"),stretchContent:!0},a.a.createElement(h.ComboBox,{id:"licensePropsList.".concat(p,"-").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&&a.a.createElement(h.Grid,{item:!0,lg:4,md:6,xs:12,alignment:"top-left",key:"".concat(e.licenseId,"_select_properties_nasba"),stretchContent:!0},a.a.createElement(h.ComboBox,{id:"licensePropsList.".concat(p,"-").concat(e.licenseId,"_nasbacheckbox_properties"),label:"Jurisdictions Qualifiers",fullWidth:!0,multiple:!0,options:Y||[],formikContext:!0,loading:s,disabled:K||V})),$&&$.length>0&&a.a.createElement(h.Grid,{item:!0,lg:4,md:6,xs:12,alignment:"top-left",key:"".concat(e.licenseId,"_grouped_properties"),stretchContent:!0},a.a.createElement(h.ComboBox,{id:"licensePropsList.".concat(p,"-").concat(e.licenseId,"_grouped_properties"),label:X,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&&a.a.createElement(h.Grid,{item:!0,lg:4,md:6,xs:12,alignment:"top-left",key:"".concat(e.licenseId,"_grouped_properties_nasba"),stretchContent:!0},a.a.createElement(h.ComboBox,{id:"licensePropsList.".concat(p,"-").concat(e.licenseId,"_nasbagrouped_properties"),label:"Jurisdictions Course Groups",fullWidth:!0,multiple:!0,options:H||[],formikContext:!0,loading:s,disabled:K||V})),e.licenseId===de&&(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 a.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},a.a.createElement(h.TextField,{id:"licensePropsList.".concat(p,"-").concat(e.licenseId,"_").concat(t.propertyId),label:t.label,type:"text",fullWidth:!0,formikContext:!0,loading:s,disabled:K||V}))})))))),(e.licenseId===le&&0!==ee.filter((function(e){var t;return[Ke.PCAMID,Ke.PCAMReApprovalDate,Ke.FinancialHardship].includes(null!==(t=e.propertyId)&&void 0!==t?t:0)})).length||e.licenseId===fe&&0!==ee.filter((function(e){var t;return[Qe.RequestInNYYearEndReport,Qe.AverageFee,Qe.SelectNYLocation,Qe.FinancialHardship].includes(null!==(t=e.propertyId)&&void 0!==t?t:0)})).length||e.licenseId===ve&&ee.find((function(e){return e.propertyId===Ze})))&&a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Grid,{item:!0,lg:2,md:2,xs:12,stretchContent:!0},B("Special Conditions")),a.a.createElement(h.Grid,{item:!0,lg:10,md:10,xs:12,stretchContent:!0,alignment:"center-left"},a.a.createElement(h.Grid,{container:!0,spacing:1},ee&&ee.filter((function(e){return!e.isForInstructorValidation})).map((function(t){var i,r,n,o,l,c="licensePropsList.".concat(p,"-").concat(e.licenseId,"_").concat(t.propertyId);if(1!==t.propertyId&&(e.licenseId!==fe||7!==t.propertyId&&6!==t.propertyId))switch(t.typeId){case 1:return a.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},a.a.createElement(h.TextField,{id:"licensePropsList.".concat(p,"-").concat(e.licenseId,"_").concat(t.propertyId),label:t.label,type:"text",fullWidth:!0,formikContext:!0,loading:s,disabled:K||V}));case 2:return a.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},a.a.createElement(h.SelectField,{id:"licensePropsList.".concat(p,"-").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 a.a.createElement(h.MenuItem,{key:e.value,value:e.value},e.label)}))));case 3:return a.a.createElement(h.Grid,{item:!0,lg:4,md:6,xs:12,alignment:"top-left",key:c,stretchContent:!0},a.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 a.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},a.a.createElement(h.TextField,{id:"licensePropsList.".concat(p,"-").concat(e.licenseId,"_").concat(t.propertyId),label:t.label,type:"number",fullWidth:!0,formikContext:!0,loading:s,disabled:K||V}));default:return a.a.createElement(a.a.Fragment,null)}return e.licenseId===fe?7===t.propertyId?a.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},a.a.createElement(h.SelectField,{id:"licensePropsList.".concat(p,"-").concat(e.licenseId,"_").concat(t.propertyId),label:t.label,fullWidth:!0,formikContext:!0,loading:s,maxLabelLength:20,disabled:K||V,value:null!==(n=d.getFieldProps("licensePropsList.".concat(p,"-").concat(e.licenseId,"_").concat(t.propertyId)).value)&&void 0!==n?n:I,onChange:function(i){void 0!==d&&d.setFieldValue("licensePropsList.".concat(p,"-").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,a;e={label:null!==(r=i.name)&&void 0!==r?r:"",value:null!==(a=i.name)&&void 0!==a?a:""},t.push(e)}));return t}().map((function(e){return a.a.createElement(h.MenuItem,{key:e.value,value:e.value},e.label)})))):6===t.propertyId?a.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},a.a.createElement(h.SelectField,{id:"licensePropsList.".concat(p,"-").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(p,"-").concat(e.licenseId,"_").concat(t.propertyId)).value)&&void 0!==o?o:"0",onChange:function(i){void 0!==d&&d.setFieldValue("licensePropsList.".concat(p,"-").concat(e.licenseId,"_").concat(t.propertyId),i.target.value)}},G(W,null!==(l=t.propertyId)&&void 0!==l?l:0).map((function(e){return a.a.createElement(h.MenuItem,{key:e.value,value:e.value},e.label)})))):null:a.a.createElement(a.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})))&&a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Grid,{item:!0,lg:2,md:2,xs:12,stretchContent:!0},B("Approval")),a.a.createElement(h.Grid,{item:!0,lg:10,md:10,xs:12,stretchContent:!0,alignment:"center-left"},a.a.createElement(h.Grid,{container:!0,spacing:1},a.a.createElement(h.Grid,{item:!0,lg:4,md:4,xs:12},a.a.createElement(h.SelectField,{id:"licenseStatus.".concat(p,"-").concat(e.licenseId),label:"Credit Approval",fullWidth:!0,formikContext:!0,loading:s,disabled:K||V,value:null!==(P=d.getFieldProps("licenseStatus.".concat(p,"-").concat(e.licenseId)).value)&&void 0!==P?P:1,onChange:function(t){void 0!==d&&d.setFieldValue("licenseStatus.".concat(p,"-").concat(e.licenseId),t.target.value)}},a.a.createElement(h.MenuItem,{key:1,value:1},"Approved"),a.a.createElement(h.MenuItem,{key:2,value:2},"Pending"),i&&a.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!==le&&e.licenseId!==fe&&e.licenseId!==ve&&e.licenseId!==de||1===t.propertyId)switch(t.typeId){case 1:return a.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},a.a.createElement(h.TextField,{id:"licensePropsList.".concat(p,"-").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(p,"-").concat(e.licenseId)).value||3===d.getFieldProps("licenseStatus.".concat(p,"-").concat(e.licenseId)).value)}));case 2:return a.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},a.a.createElement(h.TextField,{id:"licensePropsList.".concat(p,"-").concat(e.licenseId,"_").concat(t.propertyId),label:t.label,type:"number",fullWidth:!0,formikContext:!0,loading:s,disabled:K||V}));case 3:return a.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},a.a.createElement(h.DateTimeField,{type:"date",id:"licensePropsList.".concat(p,"-").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 a.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},a.a.createElement(h.Box,{mt:1,mb:1},a.a.createElement(h.TextField,{id:"licensePropsList.".concat(p,"-").concat(e.licenseId,"_").concat(t.propertyId),label:t.label,type:"number",fullWidth:!0,formikContext:!0,loading:s,disabled:K||V})));default:return a.a.createElement(a.a.Fragment,null)}return null})))))),k&&a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Grid,{item:!0,lg:2,md:2,xs:12,stretchContent:!0},B("Credits Expiration")),a.a.createElement(h.Grid,{item:!0,lg:10,md:10,xs:12,stretchContent:!0,alignment:"center-left"},a.a.createElement(h.Grid,{container:!0,spacing:1},a.a.createElement(h.Grid,{item:!0,lg:4,md:6,xs:12,alignment:"top-left",key:"licenseExpiration.".concat(p,"-").concat(e.licenseId),stretchContent:!0},a.a.createElement(h.DateTimeField,{type:"date",id:"licenseExpiration.".concat(p,"-").concat(e.licenseId),label:"Expiration Date",fullWidth:!0,formikContext:!0,loading:s,disabled:K||V,format:Object(N.h)()})))))))))))}))))))})),sd=i(249),ld=Object(s.b)(null,(function(e){return{uploadCertificate:function(t,i){return e(function(e,t){return function(){var i=Object(l.a)(nd().mark((function i(r){var a,n;return nd().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return a=Array.from(t).map((function(e){return{fileName:e.name,data:e}})),i.prev=1,i.next=4,U.R.uploadCertificateV2(e,void 0,a);case 4:return n=i.sent,i.abrupt("return",n);case 8:throw i.prev=8,i.t0=i.catch(1),r(Object(G.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 U.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(G.b)(e)),e}))}}(t))}}}))((function(e){var t=e.downloadCertificate,i=e.uploadCertificate,n=e.id,o=e.formState,s=Object(r.useRef)(null),l=Object(r.useState)(!1),d=Object(c.a)(l,2),u=d[0],p=d[1],v=Object(r.useState)(0),f=Object(c.a)(v,2),m=f[0],y=f[1],g=o.getFieldProps("startDate").value,b=H()(o.getFieldProps("startDate").value)>H()(new Date),S=Object(z.useTheme)(),E=Object(z.useMediaQuery)(S.breakpoints.down("xs"));return a.a.createElement(h.Box,{maxWidth:"190px"},b||0===o.getFieldProps("participantList.".concat(n,".certificateFileId")).value?a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Button,{type:"button",variant:"text",onClick:function(){y(n),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(n,".user")).value},a.a.createElement(h.Typography,{color:u||null===g||b||void 0===o.getFieldProps("participantList.".concat(n,".user")).value?"default":"secondary",variant:"body1",align:"center"},a.a.createElement(h.SystemIcon,{icon:!0===o.getFieldProps("participantList.".concat(n,".isUploading")).value?"Loading":"Upload",size:"sm",spin:!0===o.getFieldProps("participantList.".concat(n,".isUploading")).value,type:"duotone",color:u||null===g||b||void 0===o.getFieldProps("participantList.".concat(n,".user")).value?"inherit":"secondary"})," ",E?"Upload":"Upload Certificate")),a.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),p(!0),i(m,t).then((function(e){r("participantList.".concat(m,".certificateFileId"),e[0].fileId)})).finally((function(){r("participantList.".concat(m,".isUploading"),!1),p(!1)}))));var t,r},name:"files",multiple:!1,accept:"image/*, application/x-pdf, application/pdf"})):a.a.createElement(h.Button,{type:"button",variant:"text",onClick:function(){var e,i,r,a;i=n,r=null!==(e=o.getFieldProps("participantList.".concat(n,".certificateFileId")).value)&&void 0!==e?e:0,a=o.setFieldValue,r&&(a("participantList.".concat(i,".isDownloading"),!0),p(!0),t(r).then().finally((function(){a("participantList.".concat(i,".isDownloading"),!1),p(!1)})))},disabled:u},a.a.createElement(h.Typography,{color:u?"default":"primary",variant:"body1",align:"center"},a.a.createElement(h.SystemIcon,{icon:!0===o.getFieldProps("participantList.".concat(n,".isDownloading")).value?"Loading":"Cem-Certificate",color:u?"inherit":"primary",spin:!0===o.getFieldProps("participantList.".concat(n,".isDownloading")).value,type:"duotone",size:"sm"})," ",E?"Download":"Download Certificate")))})),cd=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:v.cb.fromJS(e)};return U.n.createThirdParty(void 0,v.bb.fromJS(i)).then((function(e){return t(Object(td.b)(null)),e})).catch((function(e){throw t(Object(G.b)(e)),e}))}}(t))},addNotification:function(t,i){return e(G.a({message:t,variant:i}))},getMaintenanceTables:function(){return e((function(e){e(Object(id.a)()),e(Mn())}))},getProviders:function(){return e(Vn())},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 a={courseTitle:e,providerId:t,courseCode:i},n=new v.Ve({courseDto:v.Xe.fromJS(a)});return U.n.validateCourse(void 0,n).then((function(e){return e})).catch((function(e){r(Object(G.b)(e))}))}}(t,i,r))},setSelectedFirmLicense:function(t){return e(Object(td.b)(t))},getUsers:function(t){return e(Object(sd.c)(t))},saveSession:function(t){return e(function(e){return function(t){var i={courseDto:v.eb.fromJS(e)};return U.n.createThirdPartySession(void 0,v.db.fromJS(i)).then((function(e){return t(Object(td.b)(null)),e})).catch((function(e){throw t(Object(G.b)(e)),e}))}}(t))},showConfirmation:function(t){return e(Object(on.b)(t))}}})),dd={filterBy:[],searchCriteria:["UserAdminAssistant"],sortBy:"lastName",page:1,pageSize:-1},ud=Object(d.o)(cd((function(e){var t,i,n,o,s,l,d,u,p,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,T=e.saveSession,P=e.showConfirmation,A=e.getUsers,k=e.selectedFirmLicenses,L=e.setSelectedFirmLicense,J=e.userId,F=e.validateCourse,B=Object(r.useRef)(!0),R=Object(r.useState)(!1),U=Object(c.a)(R,2),G=U[0],M=U[1],q=Object(r.useState)(),z=Object(c.a)(q,2),W=z[0],V=z[1],_=Object(r.useState)(),Y=Object(c.a)(_,2),$=Y[0],K=Y[1],Z=Object(r.useState)(),X=Object(c.a)(Z,2),ee=X[0],te=X[1],ie=Object(D.a)(Object(D.a)({},dd),{},{searchCriteria:["UserAdminAssistant:".concat(null!==(t=null===g||void 0===g?void 0:g.userId)&&void 0!==t?t:0)]}),re=Object(r.useState)(),ae=Object(c.a)(re,2),ne=ae[0],oe=ae[1],se=Object(r.useState)(),ce=Object(c.a)(se,2),de=ce[0],ue=ce[1],he=Object(r.useState)([]),pe=Object(c.a)(he,2),ve=pe[0],me=pe[1],ye=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(v.Kd.ManagePortalTeam);Object(r.useEffect)((function(){I().then((function(e){var t;K(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,a,n,o,s,l,c,d,u,h,p,v,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!==(a=e.getFieldProps("providerId").value)&&void 0!==a?a:[],description:null!==(n=e.getFieldProps("description").value)&&void 0!==n?n:"",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!==(p=e.getFieldProps("licensePropsList").value)&&void 0!==p?p:{},licenseExpiration:null!==(v=e.getFieldProps("licenseExpiration").value)&&void 0!==v?v:{}};oe(f)},xe=function(e){Ce(e),L(k),Oe(!0)},je=Array(),we={initialValues:{title:null!==(i=null===ne||void 0===ne?void 0:ne.title)&&void 0!==i?i:"",idLabel:null!==(n=null===ne||void 0===ne?void 0:ne.idLabel)&&void 0!==n?n:"",providerId:null!==(o=null===ne||void 0===ne?void 0:ne.providerId)&&void 0!==o?o:[],description:null!==(s=null===ne||void 0===ne?void 0:ne.description)&&void 0!==s?s:"",note:null!==(l=null===ne||void 0===ne?void 0:ne.note)&&void 0!==l?l:"",startDate:null!==(d=null===ne||void 0===ne?void 0:ne.startDate)&&void 0!==d?d:null,courseFormat:null!==(u=null===ne||void 0===ne?void 0:ne.courseFormat)&&void 0!==u?u:[],mediaTypeId:null!==(p=null===ne||void 0===ne?void 0:ne.mediaTypeId)&&void 0!==p?p:0,participantList:null!==(f=null===ne||void 0===ne?void 0:ne.participantList)&&void 0!==f?f:Object(x.isEmpty)(j)||0===J?[{isInstructor:!1,certificateFileId:0,isUploading:!1,isDownloading:!1}]:[{user:{userId:J,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(D.a)(Object(D.a)({},e),{},Object(kn.a)({},"1-".concat(t.licenseId),r))})),Object(x.isEmpty)(null===ne||void 0===ne?void 0:ne.licenseStatus)?e:Object(D.a)(Object(D.a)({},e),null===ne||void 0===ne?void 0:ne.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,a,n,o=null===je||void 0===je||null===(r=je.find((function(e){return e.licenseId===t.licenseId})))||void 0===r||null===(a=r.sessionLicenseCredits)||void 0===a||null===(n=a.find((function(t){return t.creditId===e.creditId})))||void 0===n?void 0:n.creditValue;o&&o>0&&(o=parseFloat(o.toString()),i=Object(D.a)(Object(D.a)({},i),{},Object(kn.a)({},"1-".concat(t.licenseId,"_").concat(e.creditId),o)))})),e=Object(D.a)(Object(D.a)({},e),i)})),Object(x.isEmpty)(null===ne||void 0===ne?void 0:ne.licenseCreditsList)?e:Object(D.a)(Object(D.a)({},e),null===ne||void 0===ne?void 0:ne.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(),a=Array(),n=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===fe&&6===e.propertyId&&(d="0")),t.licenseId===le&&6===e.propertyId&&(void 0!==d&&""!==d||(d=Object(N.f)(ee))),i=Object(D.a)(Object(D.a)({},i),{},Object(kn.a)({},"1-".concat(t.licenseId,"_").concat(e.propertyId),"null"===d?null:d));else if("true"===d){var u,h,p={id:null!==(u=e.propertyId)&&void 0!==u?u:0,name:e.label};if(null!==e.licensePropertyGroupId)if(t.licenseId===Q)p.name=null===(h=p.name)||void 0===h?void 0:h.replace("Accounting",""),o.push(p);else a.push(p);else if(t.licenseId===Q&&e.propertyId&&e.propertyId>2){var v;p.name=null===(v=p.name)||void 0===v?void 0:v.replace("Accounting",""),n.push(p)}else r.push(p)}})),i=Object(D.a)(Object(D.a)({},i),{},Object(kn.a)({},"1-".concat(t.licenseId,"_checkbox_properties"),r)),i=Object(D.a)(Object(D.a)({},i),{},Object(kn.a)({},"1-".concat(t.licenseId,"_grouped_properties"),a)),t.licenseId===Q&&(i=Object(D.a)(Object(D.a)({},i),{},Object(kn.a)({},"1-".concat(t.licenseId,"_nasbacheckbox_properties"),n)),i=Object(D.a)(Object(D.a)({},i),{},Object(kn.a)({},"1-".concat(t.licenseId,"_nasbagrouped_properties"),o))),e=Object(D.a)(Object(D.a)({},e),i)})),Object(x.isEmpty)(null===ne||void 0===ne?void 0:ne.licensePropsList)?e:Object(D.a)(Object(D.a)({},e),null===ne||void 0===ne?void 0:ne.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(D.a)(Object(D.a)({},e),{},Object(kn.a)({},"1-".concat(t.licenseId),r))})),Object(x.isEmpty)(null===ne||void 0===ne?void 0:ne.licenseExpiration)?e:Object(D.a)(Object(D.a)({},e),null===ne||void 0===ne?void 0:ne.licenseExpiration)}()},validationSchema:Object(Ta.object)().shape({title:Object(Ta.string)().required("Course title is required.").max(1e3,"Course title must not exceed 1000 characters.").trim(),providerId:Object(Ta.string)().nullable().required("Provider is required"),idLabel:Object(Ta.string)().max(100,"Course Code must not exceed 100 characters."),note:Object(Ta.string)().max(1e3,"Notes must not exceed 1000 characters."),startDate:Object(Ta.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(Ta.object)().required("Format is required").nullable(),licenseCreditsList:Object(Ta.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(Ta.number)().min(0,"Invalid input.").typeError("Invalid input.");e["1-".concat(t.licenseId,"_").concat(i.creditId)]=r}))})),e}()),licensePropsList:Object(Ta.object)().shape(function(){var e,t={},i=null!==(e=k&&k.filter((function(e){return e.licenseId===le||e.licenseId===fe})))&&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(Ta.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(Ta.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 a=Object(Ta.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)]=a})),e}()),participantList:Object(Ta.array)().of(Object(Ta.object)().shape({user:Object(Ta.object)().nullable(),isInstructor:Object(Ta.boolean)(),isUploading:Object(Ta.boolean)(),isDownloading:Object(Ta.boolean)(),certificateFileId:Object(Ta.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 me(t.duplicateItems),!(t.duplicateItems.length>0)}))}),onSubmit:function(e,t){var i=function(){var i=e.title,r=e.idLabel,a=e.providerId,n=e.description,o=e.note,s=e.startDate,l=e.courseFormat,c=e.mediaTypeId,d=e.licenseStatus,u=e.licenseCreditsList,h=e.licensePropsList,p=e.licenseExpiration,f=e.participantList,g={title:i.trim(),courseIdLabel:r.trim(),providerId:a.providerId,description:n,note:o},b=Array(),S=Array();k&&k.forEach((function(e){var t=new Array,i=new v.fe;if(i.licenseId=e.licenseId,d){var r=new Array;Object.keys(d).forEach((function(t){var a=t.split("-")[1],n=d[t];r.push(parseInt(a,10)),a==="".concat(e.licenseId)&&void 0!==n&&(i.licenseStatus=0===n?1:n)})),r.includes(i.licenseId)||(i.licenseStatus=1)}if(p){var a=new Array;Object.keys(p).forEach((function(t){var r=t.split("-")[1],n=p[t];a.push(parseInt(r,10)),r==="".concat(e.licenseId)&&void 0!==n&&null!=n&&(i.expirationDate=Object(N.e)(n))}))}var n=Array();u&&Object.keys(u).forEach((function(i){var r=i.split("_")[0];r=r.split("-")[1];var a=parseInt(i.split("_")[1],10),o=u[i];if(r==="".concat(e.licenseId)&&void 0!==a&&null!==a&&parseFloat(o)>0){t.push(a);var s=new v.ee;s.creditId=a,s.creditValue=parseFloat(o),n.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),a=h[t];if(i==="".concat(e.licenseId)&&null!==r&&null!==a&&""!==a){var n=new v.ge;n.propertyId=r,H.a.isMoment(a)&&a.isValid()?(n.propertyValue=Object(N.f)(a.toDate()),o.push(n)):H.a.isMoment(a)||(n.propertyValue=String(a),o.push(n))}}else{h[t].forEach((function(e){var t=new v.ge;t.propertyId=e.id,t.propertyValue="true",o.push(t)}))}})),e.licenseId===fe)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 a=new v.ge;a.propertyId=4,a.propertyValue="true",o.push(a)}}));else if(!o.find((function(e){return 3===e.propertyId||4===e.propertyId||5===e.propertyId}))){var s=new v.ge;s.propertyId=4,s.propertyValue="true",o.push(s)}i.sessionLicenseCredits=n,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:ye,title:i.trim(),url:""},I={sessions:[v.Z.fromJS(E)],sessionRecurrencePattern:void 0};f&&f.forEach((function(e){if(e.user){var t={userId:e.user.userId,isInstructor:e.isInstructor,certificateFileId:H()(s)>H()(new Date)?0:e.certificateFileId};S.push(v.R.fromJS(t))}}));var C={course:v.O.fromJS(g),session:v.Q.fromJS(I),sessionParticipants:S};Object(x.isEmpty)(ve)?F(i.trim(),a.providerId,r.trim()).then((function(e){if(e.error)if("A course with the same course code is already existing."===e.validationMessage){var n;y(null!==(n=e.validationMessage)&&void 0!==n?n:"","error"),t.setSubmitting(!1)}else{var o={courseTitle:i.trim(),courseProviderId:a.providerId,courseCode:r.trim(),session:v.Q.fromJS(I),sessionParticipants:S};T(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():P({message:"You have not added any credits. Are you sure you want to proceed?",title:"Confirm",OnConfirm:i,onCancel:function(){return t.setSubmitting(!1)}})}},Te=function(e){return"On-demand"===e.portalCategory?"On-demand":"Classroom"===e.portalCategory?"Classroom":"Webcast"===e.portalCategory?"Webcast":"All"===e.portalCategory?"":"Other"};return a.a.createElement(wa.Formik,{initialValues:we.initialValues,validationSchema:we.validationSchema,onSubmit:we.onSubmit,enableReinitialize:!0,key:"add-course"},(function(e){var t=e.getFieldProps("participantList").value;return a.a.createElement(h.Form,{id:"add-course",formikContext:!0},a.a.createElement(sl.WizardDialogBody,{titleBar:{title:C}},a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:3,alignment:"top-left"},a.a.createElement(h.Typography,{variant:"h5"},"Course Details")),a.a.createElement(h.Grid,{item:!0,xs:9,alignment:"center-left"},a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"top-left"},a.a.createElement(h.TextField,{required:!0,id:"title",label:"Course Title",formikContext:!0,fullWidth:!0,loading:void 0===$})),a.a.createElement(h.Grid,{item:!0,xs:6,alignment:"top-left"},a.a.createElement(h.ComboBox,{disableCloseOnSelect:!1,addOption:be?{icon:"Add",label:"Add options",onClick:function(){V(ge),M(!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===$})),a.a.createElement(h.Grid,{item:!0,xs:6,alignment:"top-left"},a.a.createElement(h.TextField,{id:"idLabel",label:"Course Code",formikContext:!0,fullWidth:!0,loading:void 0===$})),a.a.createElement(h.Grid,{item:!0,xs:12,sm:6,alignment:"top-left"},a.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:Te})),a.a.createElement(h.Grid,{item:!0,xs:12,sm:6},a.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),H()(t).isValid()&&te(t)}})))),a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.Divider,null)),a.a.createElement(h.Grid,{item:!0,xs:12,sm:3,alignment:"top-left"},a.a.createElement(h.Column,null,a.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&&a.a.createElement(h.Box,{mt:.75,textAlign:"center"},a.a.createElement(h.Link,{style:{display:"flex"},underline:"none",onClick:function(){return xe(e)}},a.a.createElement(h.Box,{mr:.75},a.a.createElement(h.SystemIcon,{icon:"Add",color:"info"})),a.a.createElement(h.Typography,{variant:"body1",color:"info"},"Add Credits"))))),a.a.createElement(h.Grid,{item:!0,xs:12,sm:9},void 0===$?a.a.createElement(h.Box,{display:"flex",justifyContent:"center"},a.a.createElement(h.TextField,{loading:!0})):a.a.createElement(od,{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)}})),a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.Divider,null)),a.a.createElement(h.Grid,{item:!0,xs:12,sm:3,alignment:"top-left"},a.a.createElement(h.Typography,{variant:"h5"},"Participant & Certificate")),a.a.createElement(h.Grid,{item:!0,xs:12,sm:9,alignment:"center-left"},$&&a.a.createElement(wa.FieldArray,{name:"participantList",render:function(i){var r=i.remove,n=i.push;return a.a.createElement(a.a.Fragment,null,t&&t.length>0&&t.map((function(i,o){return function(e,t,i,r,n,o){return a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center-left"},a.a.createElement(h.Grid,{container:!0,spacing:"form",key:e},a.a.createElement(h.Grid,{item:!0,lg:6,md:6,xs:12,alignment:"center-left"},a.a.createElement(h.Row,{flex:1},void 0!==ve&&ve.length>0&&!Object(x.isEmpty)(null===t||void 0===t?void 0:t.user)&&ve.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)}))&&a.a.createElement(h.Expanded,{flex:0,mr:1},a.a.createElement(h.Tooltip,{title:"Duplicate participation"},a.a.createElement("span",null,a.a.createElement(h.SystemIcon,{icon:"Error",color:"error",size:"sm"})))),a.a.createElement(h.Expanded,{flex:1},a.a.createElement(h.ComboBox,{id:"participantList.".concat(e,".user"),formikContext:!0,label:"Participant",fullWidth:!0,loading:void 0===de,options:(null===de||void 0===de?void 0:de.map((function(e){return{userId:e.userId,name:"".concat(e.lastName,", ").concat(e.firstName," (").concat(e.email,")")}})))||[]})))),a.a.createElement(h.Grid,{item:!0,lg:6,md:6,xs:12,alignment:"center-left"},a.a.createElement(h.Row,{crossAxisAlignment:"middle",size:"max"},a.a.createElement(h.Box,{maxWidth:"163px"},a.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)}})),a.a.createElement(h.Spacer,{size:3}),a.a.createElement(ld,{id:e,formState:r}),a.a.createElement(a.a.Fragment,null,e===i.length-1&&20!==i.length?a.a.createElement(h.Row,{mainAxisAlignment:"center"},i.length>1&&a.a.createElement(h.IconButton,{disabled:i.length<=1,onClick:function(){n(e)}},a.a.createElement(h.Typography,{color:i.length<=1?"textSecondary":"primary"},a.a.createElement(h.SystemIcon,{icon:"Delete",size:"sm",type:"duotone"}))),a.a.createElement(h.IconButton,{onClick:function(){o({isInstructor:!1,certificateFileId:0,isUploading:!1,isDownloading:!1})}},a.a.createElement(h.Typography,{color:"primary"},a.a.createElement(h.SystemIcon,{icon:"Add",size:"md",type:"duotone"})))):a.a.createElement(h.IconButton,{disabled:i.length<=1,onClick:function(){n(e)}},a.a.createElement(h.Typography,{color:i.length<=1?"textSecondary":"primary"},a.a.createElement(h.SystemIcon,{icon:"Delete",size:"sm",type:"duotone"})))))))),a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.Box,{mb:2},a.a.createElement(h.Divider,null))))}(o,i,t,e,r,n)})))}}),!$&&a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center-left"},a.a.createElement(h.Grid,{container:!0,spacing:"form",key:"skeleton"},a.a.createElement(h.Grid,{item:!0,lg:6,md:6,xs:12,alignment:"center-left"},a.a.createElement(h.SelectField,{required:!0,label:"Participant",loading:void 0===$,fullWidth:!0,formikContext:!1},a.a.createElement(h.MenuItem,{key:-1,value:""}))),a.a.createElement(h.Grid,{item:!0,xs:6,alignment:"center-left"},a.a.createElement(h.Row,{crossAxisAlignment:"middle",size:"max"},a.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===$}))))))),a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.Divider,null))),G&&a.a.createElement(Is,{isAddMode:!0,open:G,onClose:function(){return M(!1)},onAddNewProvider:function(t){return function(t){e.setFieldTouched("providerId",!0),e.setFieldValue("providerId",t)}(t)},providerName:W}),Ie&&a.a.createElement(ad,{title:"Add Credits",open:Ie,onClose:function(){Oe(!1)},showFOSLicense:!0,showProfileLicenses:!1})),a.a.createElement(sl.WizardDialogFooter,{buttons:"custom"},a.a.createElement(h.Grid,{container:!0,justify:"center",spacing:"form"},a.a.createElement(h.Grid,{item:!0,lg:2,md:4,xs:6,stretchContent:!0,alignment:"center"},a.a.createElement(h.Button,{onClick:function(){L(null),w()},variant:"contained",color:"default"},"Cancel")),a.a.createElement(h.Grid,{item:!0,lg:2,md:4,xs:6,stretchContent:!0,alignment:"center"},a.a.createElement(h.Button,{type:"submit",variant:"contained",color:"primary",fullWidth:!0,disabled:e.isSubmitting,loading:e.isSubmitting},"Save")))))}))}))),hd=Object(s.b)(null,(function(e){return{showConfirmation:function(t){return e(Object(on.b)(t))},setSelectedFirmLicense:function(t){return e(Object(td.b)(t))}}}))((function(e){var t=e.name,i=e.open,r=e.onClose,n=e.setOpen,o=e.setSelectedFirmLicense,s=e.showConfirmation,l=e.userId;return a.a.createElement(ll.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),n(!1)}})},fullScreen:!0,steps:[{component:a.a.createElement(ud,{onClose:r,labelTitle:"Add 3rd-Party Course",name:t,userId:l})}]},a.a.createElement(sl.WizardDialogHeader,{titleBar:{title:"Add Course"}}),a.a.createElement(sl.WizardDialogStepContent,null))})),pd=Object(z.makeStyles)((function(e){var t=e.breakpoints,i=e.spacing;return Object(z.createStyles)({cardContent:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center","& img":{marginTop:i(2),height:i(16),maxWidth:"100%"}},userCard:Object(kn.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)}})})),vd=function(e){var t=e.actions,i=e.addButton,r=e.avatar,n=e.details,o=e.email,s=e.fullName,l=e.hasManageTeamPermission,c=void 0!==l&&l,d=e.buttonLabel,u=e.onSelect,p=e.size,v=e.disabled,f=void 0!==v&&v,m=pd(),y=function(){return a.a.createElement(h.Button,{size:"small",variant:"Unselect"===d?"contained":"outlined",color:"primary",onClick:u,disabled:f||"Unselect"===d&&void 0===o},d)};return a.a.createElement(h.Card,{variant:"outlined",className:Object(ro.default)(m.userCard,Object(kn.a)({},m.userCardSelected,"Unselect"===d&&void 0!==o))},a.a.createElement(h.CardContent,{classes:{root:m.cardContent}},a.a.createElement(h.Grid,{container:!0,spacing:0},a.a.createElement(h.Grid,{item:!0,xs:12,sm:12,md:"sm"===p?12:3,lg:"sm"===p?12:3,xl:"sm"===p?12:3},a.a.createElement(h.Hidden,{mdUp:"sm"!==p},a.a.createElement(y,null))),a.a.createElement(h.Grid,{item:!0,xs:12,sm:12,md:"sm"===p?12:6,lg:"sm"===p?12:6,xl:"sm"===p?12:6},a.a.createElement(h.Box,{mt:1},a.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)),a.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},a.a.createElement("strong",null,s))),a.a.createElement(h.Grid,{item:!0,xs:12,sm:12,md:"sm"===p?12:3,lg:"sm"===p?12:3,xl:"sm"===p?12:3,alignment:"top-right"},a.a.createElement(h.Hidden,{xsUp:"sm"===p,smDown:"sm"!==p},a.a.createElement(y,null)))),o&&a.a.createElement(h.Column,{crossAxisAlignment:"center"},o&&a.a.createElement(h.Box,{mb:1,color:"#979797"},a.a.createElement(h.Typography,{variant:"body1",color:"inherit"},o)),n&&a.a.createElement(h.Box,{mb:1},n),!f&&t&&a.a.createElement(h.Box,null,t)),!f&&c&&a.a.createElement(h.Column,{crossAxisAlignment:"center"},i&&a.a.createElement(h.Box,{m:1},i))))};vd.defaultProps={size:"lg"};var fd=vd,md=function(e,t,i){return function(r){var a=new v.rc({userId:e,subRoleId:t,filterBy:[],searchCriteria:["Active"],sortBy:"name",page:1,pageSize:10});return U.K.getAll(void 0,i?v.rc.fromJS(i):a).then((function(e){return e})).catch((function(e){throw r(Object(G.b)(e)),e}))}},yd=Object(z.makeStyles)((function(e){var t=e.palette,i=e.typography;return Object(z.createStyles)({cardTitle:Object(D.a)(Object(D.a)({},i.subtitle1),{},{fontWeight:700}),cardSubheader:Object(D.a)({},i.subtitle2),cardContent:Object(D.a)(Object(D.a)({},i.subtitle2),{},{color:t.grey[500]})})})),gd=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(md(t,i,r))},getScreenDescription:function(t){return e(Object(ia.c)(t))},setLoggedUser:function(t){return e(Object(sd.b)(t))}}})),bd=Object(an.a)(gd(Object(d.o)((function(e){var t,i,n,o,l,d,u,p,f,m,y,g,b,S,I,O,C=e.getScreenDescription,x=e.getTeamViewUsers,j=e.setLoggedUser,w=e.history,T=Object(r.useState)(!1),P=Object(c.a)(T,2),A=P[0],N=P[1],L=Object(r.useState)({name:"",userId:0}),J=Object(c.a)(L,2),F=J[0],B=J[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})),M=null!==(i=G&&G.userRole&&G.userRole[0].subRoleId)&&void 0!==i?i:0,q=Object(s.c)((function(e){return e.users.isImpersonated})),W=q?M:U,V=null!==(n=q?null===G||void 0===G?void 0:G.userId:null===R||void 0===R?void 0:R.userId)&&void 0!==n?n:0,_={userId:V,subRoleId:W,page:1,pageSize:6,filterBy:[],searchCriteria:[]},Y=yd(),$=Object(z.useTheme)(),H=Object(z.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],ae=Object(r.useState)(),ne=Object(c.a)(ae,2),oe=ne[0],se=ne[1],le=Object(r.useState)(Object(D.a)({},_)),ce=Object(c.a)(le,2),de=ce[0],ue=ce[1],he=Object(r.useState)(!1),pe=Object(c.a)(he,2),ve=pe[0],fe=pe[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(v.Kd.ManagePortalTeam),xe=W===v.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(v.Kd.ViewPortalCourseCalendar),Te=E(v.Kd.ViewPortalUserCourses),Pe=E(v.Kd.ViewPortalUserCompliance),Ae=E(v.Kd.ViewPortalLearningPlans),Ne=E(v.Kd.ViewPortalTranscripts);Object(r.useEffect)((function(){G&&C(v.Md.TeamView).then((function(e){return se(e)}))}),[C,G]),Object(r.useEffect)((function(){Oe(void 0),be(void 0),fe(!0),x(V,W,de).then((function(e){void 0!==e&&(Oe(e),be(e.users)),fe(!1)}))}),[x,de,V,W]);var ke=function(e){w.push("/".concat(e))},De=Object(ed.useDebounce)((function(e){ue(""!==e?Object(D.a)(Object(D.a)({},de),{},{page:1,filterBy:["Name[contains]:".concat(e)]}):Object(D.a)(Object(D.a)({},de),{},{page:1,filterBy:[]}))}),500);return a.a.createElement(h.Screen,{maxWidth:"lg",titleBar:{title:(oe&&""!==oe.title?oe.title:"Team View")||"Team View",description:oe?a.a.createElement(h.Column,null,null!==oe.shortDescription&&""!==oe.shortDescription&&a.a.createElement(h.TextEditorView,{model:Object(k.a)(oe.shortDescription)}),null!==oe.text&&""!==oe.text&&a.a.createElement(h.Box,{mt:2},a.a.createElement(h.Button,{variant:"outlined",size:"small",onClick:function(){return re(!0)}},"Show More"))):a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Box,{mt:2.5},a.a.createElement(h.Skeleton,{width:"100%",height:20,variant:"rect"})),a.a.createElement(h.Box,{mt:1},a.a.createElement(h.Skeleton,{width:"100%",height:20,variant:"rect"}))),sideSection:a.a.createElement(a.a.Fragment,null,H?"":a.a.createElement(a.a.Fragment,null,q?a.a.createElement(fd,{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:q}):a.a.createElement(fd,{avatar:{source:null===R||void 0===R||null===(p=R.userAvatar)||void 0===p?void 0:p.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?a.a.createElement(a.a.Fragment,null,q?a.a.createElement(fd,{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:q}):a.a.createElement(fd,{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})):"",a.a.createElement(h.Box,{mt:3}),a.a.createElement(h.Grid,{container:!0,spacing:"card"},a.a.createElement(h.Grid,{item:!0,xs:10,stretchContent:!0,alignment:"center-right"},a.a.createElement(h.Row,{mainAxisAlignment:"end"},a.a.createElement(h.TextField,{inputRef:function(e){return e},placeholder:"Search",startAdornment:a.a.createElement(h.InputAdornment,{position:"start"},a.a.createElement(h.SystemIcon,{icon:"Search"})),onChange:function(e){return De(e.target.value)},formikContext:!1,dense:!0})),a.a.createElement(h.Row,{mainAxisAlignment:"end",flex:0},a.a.createElement(h.Box,{hidden:H},a.a.createElement(h.Tooltip,{title:"Cards View"},a.a.createElement(h.IconButton,{onClick:function(){return X("grid")},color:"grid"===Z?"primary":"default"},a.a.createElement(h.SystemIcon,{icon:"ViewAsGrid",size:"sm"}))),a.a.createElement(h.Tooltip,{title:"List View"},a.a.createElement(h.IconButton,{onClick:function(){return X("list")},color:"list"===Z?"primary":"default"},a.a.createElement(h.SystemIcon,{icon:"ViewAsList",size:"sm"})))))),ve?[1,2,3,4,5,6].map((function(e){return a.a.createElement(h.Grid,{key:e,item:!0,xs:12,sm:"grid"===Z?6:12,lg:"grid"===Z?4:12,stretchContent:!0},a.a.createElement(h.Card,{variant:"outlined",status:"default"},a.a.createElement(h.CardHeader,{classes:{title:Y.cardTitle,subheader:Y.cardSubheader},title:a.a.createElement(h.Skeleton,{height:32}),subheader:a.a.createElement(h.Skeleton,{width:"40%"})}),a.a.createElement(h.CardContent,{classes:{root:Y.cardContent},noTopPadding:!0},a.a.createElement(h.Skeleton,{width:"60%"}))))})):a.a.createElement(a.a.Fragment,null,Ie&&0!==Ie.recordCount?a.a.createElement(a.a.Fragment,null,ge&&(null===ge||void 0===ge?void 0:ge.map((function(e){var t,i,r,n=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,n,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===(n=e.userPosition)||void 0===n?void 0:n.map((function(e){return e.name}))),p=d&&d[0],v=d&&d.splice(1,d.length),f=u&&u[0],m=u&&u.splice(1,u.length);return a.a.createElement(h.Row,null,a.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)&&a.a.createElement(a.a.Fragment,null,1===(null===e||void 0===e||null===(s=e.userDepartment)||void 0===s?void 0:s.length)?a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Box,{component:"span",ml:"4px",mr:"4px",color:"#979797"},"|"),a.a.createElement("span",null,null===e||void 0===e?void 0:e.userDepartment[0].name)):a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Box,{component:"span",ml:"4px",mr:"4px",color:"#979797"},"|"),a.a.createElement("span",null,p,","),a.a.createElement(h.Tooltip,{title:v.join(" \u2022 ")},a.a.createElement("span",null," +",v&&v.length)))),0!==(null===e||void 0===e||null===(l=e.userPosition)||void 0===l?void 0:l.length)&&a.a.createElement(a.a.Fragment,null,1===(null===e||void 0===e||null===(c=e.userPosition)||void 0===c?void 0:c.length)?a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Box,{component:"span",ml:"4px",mr:"4px",color:"#979797"},"|"),a.a.createElement("span",null,null===e||void 0===e?void 0:e.userPosition[0].name)):a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Box,{component:"span",ml:"4px",mr:"4px",color:"#979797"},"|"),a.a.createElement("span",null,f,","),a.a.createElement(h.Tooltip,{title:m.join(" \u2022 ")},a.a.createElement("span",null," +",m&&m.length))))))}return a.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 a.a.createElement(h.Row,{crossAxisAlignment:"middle"},a.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"},Pe&&a.a.createElement(h.Tooltip,{title:"Compliance",placement:"bottom"},a.a.createElement(h.Button,{size:"small",variant:"outlined",color:"default",onClick:function(){return ke("compliance")}},a.a.createElement(h.Box,{color:"#979797",display:"flex",alignItems:"center",justifyContent:"center"},a.a.createElement(h.SystemIcon,{icon:"Cem-Compliance",color:"inherit",type:"light",size:"sm"})))),Ae&&a.a.createElement(h.Tooltip,{title:"Learning Plans",placement:"bottom"},a.a.createElement(h.Button,{size:"small",variant:"outlined",color:"default",onClick:function(){return ke("learning-plans")}},a.a.createElement(h.Box,{color:"#979797",display:"flex",alignItems:"center",justifyContent:"center"},a.a.createElement(h.SystemIcon,{icon:"LearningPlans",color:"inherit",type:"light",size:"sm"})))),je&&e.hasPortalDevelopmentPlanAccess&&e.hasUKLicense&&a.a.createElement(h.Tooltip,{title:"Development Plans",placement:"bottom"},a.a.createElement(h.Button,{size:"small",variant:"outlined",color:"default",onClick:function(){return ke("development-plans")}},a.a.createElement(h.Box,{color:"#979797",display:"flex",alignItems:"center",justifyContent:"center"},a.a.createElement(h.SystemIcon,{icon:"DevelopmentPlan",color:"inherit",type:"light",size:"sm"})))),Ne&&a.a.createElement(h.Tooltip,{title:"Transcripts",placement:"bottom"},a.a.createElement(h.Button,{size:"small",variant:"outlined",color:"default",onClick:function(){return ke("transcripts")}},a.a.createElement(h.Box,{color:"#979797",display:"flex",alignItems:"center",justifyContent:"center"},a.a.createElement(h.SystemIcon,{icon:"Transcript",color:"inherit",type:"light",size:"sm"})))),we&&a.a.createElement(h.Tooltip,{title:"Course Calendar",placement:"bottom"},a.a.createElement(h.Button,{size:"small",variant:"outlined",color:"default",onClick:function(){return ke("course-calendar")}},a.a.createElement(h.Box,{color:"#979797",display:"flex",alignItems:"center",justifyContent:"center"},a.a.createElement(h.SystemIcon,{icon:"Calendar",color:"inherit",type:"light",size:"sm"})))),Te&&a.a.createElement(h.Tooltip,{title:"Courses",placement:"bottom"},a.a.createElement(h.Button,{size:"small",variant:"outlined",color:"default",onClick:function(){return ke("user-courses")}},a.a.createElement(h.Box,{color:"#979797",display:"flex",alignItems:"center",justifyContent:"center"},a.a.createElement(h.SystemIcon,{icon:"MyCourses",color:"inherit",type:"light",size:"sm"}))))))};return a.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},a.a.createElement(fd,{actions:a.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:a.a.createElement(n,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?a.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,a,n;return a="".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:"",")"),n=null!==(r=null===e||void 0===e?void 0:e.userId)&&void 0!==r?r:0,B({name:a,userId:n}),void N(!0)}},"Add Program Attendance"):a.a.createElement(a.a.Fragment,null),hasManageTeamPermission:!0,disabled:q}))}))),a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center"},a.a.createElement(no.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(D.a)(Object(D.a)({},de),{},{page:e}))}(t)}}))):a.a.createElement(h.Grid,{item:!0,xs:12,sm:12,lg:12,alignment:"center"},a.a.createElement(h.Alert,{variant:"standard",type:"info",icon:"Info"},a.a.createElement(h.Typography,{color:"primary",weight:"semi-bold"},"No users found."))))),A&&a.a.createElement(hd,{open:A,onClose:function(){B({name:"",userId:0}),N(!1)},setOpen:N,name:F.name,userId:F.userId}),a.a.createElement(Ea,{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}))})))),Sd=i(677),Ed=i.n(Sd),Id=function(e){var t=e.status,i=e.size,r=e.type,n=e.color;switch(t){case v.u.Certificate:return a.a.createElement(h.SystemIcon,{icon:"Cem-Certificate",size:i,type:r,color:n});case v.u.Upload:return a.a.createElement(h.SystemIcon,{icon:"Upload",size:i,type:r,color:n});case v.u.Print:return a.a.createElement(h.SystemIcon,{icon:"Print",size:i,type:r,color:n});default:return a.a.createElement(a.a.Fragment,null)}};function Od(){Od=function(){return e};var e={},t=Object.prototype,i=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",n=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 a=t&&t.prototype instanceof u?t:u,n=Object.create(a.prototype),o=new O(r||[]);return n._invoke=function(e,t,i){var r="suspendedStart";return function(a,n){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw n;return x()}for(i.method=a,i.arg=n;;){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),n}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 p(){}var v={};s(v,a,(function(){return this}));var f=Object.getPrototypeOf,m=f&&f(f(C([])));m&&m!==t&&i.call(m,a)&&(v=m);var y=p.prototype=u.prototype=Object.create(v);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(a,n){function o(){return new t((function(r,o){!function r(a,n,o,s){var l=c(e[a],e,n);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)}(a,n,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 a=r.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):a:(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[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r=0;--a){var n=this.tryEntries[a],o=n.completion;if("root"===n.tryLoc)return r("end");if(n.tryLoc<=this.prev){var s=i.call(n,"catchLoc"),l=i.call(n,"finallyLoc");if(s&&l){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&i.call(a,"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 a=r.arg;I(i)}return a}}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 Cd=function(e){var t=e.open,i=e.onClose,n=e.exportToCsv,o=e.exportToPdf,s=e.pdfDisabled,d=e.exportToWord,u=e.exportToXls,p=e.copyToClipboard,v=Object(r.useState)(!1),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=function(){var e=Object(l.a)(Od().mark((function e(t){return Od().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=n,!e.t1){e.next=9;break}return e.next=9,n();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=p,!e.t5){e.next=29;break}return e.next=29,p();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 a.a.createElement(Oa.a,{open:t,onClose:i,maxWidth:"xs",fullWidth:!0},a.a.createElement(Ia.DialogHeader,{titleBar:{title:"Choose a Format",onClose:i}}),a.a.createElement(Ia.DialogBody,null,a.a.createElement(h.Grid,{container:!0,spacing:"form",alignContent:"center",alignItems:"center",justify:"center"},n&&a.a.createElement(h.Grid,{item:!0,xs:12,md:12,lg:12},a.a.createElement(h.Card,{variant:"outlined"},a.a.createElement(h.CardActionArea,{disabled:void 0===n,onClick:function(){return I("CSV")}},a.a.createElement(h.ListItem,null,a.a.createElement(h.Row,{mainAxisAlignment:"center",crossAxisAlignment:"middle"},a.a.createElement(h.Box,{m:1,flex:1},a.a.createElement(h.SystemIcon,{icon:"CustomReports",size:"lg",color:"primary"})),a.a.createElement(h.Expanded,null,a.a.createElement(h.ListItemText,{primary:"CSV"})),a.a.createElement(h.Box,{m:1,flex:1},m&&"CSV"===S&&a.a.createElement(h.SystemIcon,{icon:"Loading",size:"sm",spin:!0}))))))),u&&a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.Card,{variant:"outlined"},a.a.createElement(h.CardActionArea,{disabled:void 0===u,onClick:function(){return I("XLS")}},a.a.createElement(h.ListItem,null,a.a.createElement(h.Row,{mainAxisAlignment:"center",crossAxisAlignment:"middle"},a.a.createElement(h.Box,{m:1,flex:1},a.a.createElement(h.SystemIcon,{icon:"StandardReports",size:"lg",color:"primary"})),a.a.createElement(h.Expanded,null,a.a.createElement(h.ListItemText,{primary:"Excel"})),a.a.createElement(h.Box,{m:1,flex:1},m&&"XLS"===S&&a.a.createElement(h.SystemIcon,{icon:"Loading",size:"sm",spin:!0}))))))),o&&a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.Card,{variant:"outlined"},a.a.createElement(h.CardActionArea,{disabled:void 0===o||s,onClick:function(){return I("PDF")}},a.a.createElement(h.ListItem,null,a.a.createElement(h.Row,{mainAxisAlignment:"center",crossAxisAlignment:"middle"},a.a.createElement(h.Box,{m:1,flex:1},a.a.createElement(h.SystemIcon,{icon:"PdfExport",size:"lg",color:s?"grey300":"primary"})),a.a.createElement(h.Expanded,null,a.a.createElement(h.ListItemText,{primary:"PDF"})),a.a.createElement(h.Box,{m:1,flex:1},m&&"PDF"===S&&a.a.createElement(h.SystemIcon,{icon:"Loading",size:"sm",spin:!0}))))))),d&&a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.Card,{variant:"outlined"},a.a.createElement(h.CardActionArea,{disabled:void 0===d,onClick:function(){return I("WORD")}},a.a.createElement(h.ListItem,null,a.a.createElement(h.Row,{mainAxisAlignment:"center",crossAxisAlignment:"middle"},a.a.createElement(h.Box,{m:1,flex:1},a.a.createElement(h.SystemIcon,{icon:"FileWord",size:"lg",color:"primary"})),a.a.createElement(h.Expanded,null,a.a.createElement(h.ListItemText,{primary:"Word"})),a.a.createElement(h.Box,{m:1,flex:1},m&&"WORD"===S&&a.a.createElement(h.SystemIcon,{icon:"Loading",size:"sm",spin:!0}))))))),p&&a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.Card,{variant:"outlined"},a.a.createElement(h.CardActionArea,{disabled:void 0===p,onClick:function(){return p&&p()}},a.a.createElement(h.ListItem,null,a.a.createElement(h.Row,{mainAxisAlignment:"center",crossAxisAlignment:"middle"},a.a.createElement(h.Box,{m:1,flex:1},a.a.createElement(h.SystemIcon,{icon:"Copy",size:"lg",color:"primary"})),a.a.createElement(h.Expanded,null,a.a.createElement(h.ListItemText,{primary:"Copy to Clipboard"})),a.a.createElement(h.Box,{m:1,flex:1},m&&"COPY"===S&&a.a.createElement(h.SystemIcon,{icon:"Loading",size:"sm",spin:!0}))))))))))},xd=i(327),jd=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(xd.e(t))},getLicenseRecords:function(t){return e(function(e){return function(t){return U.S.getSessionLicenses(void 0,new v.ed({sessionId:e})).then((function(e){return e})).catch((function(e){throw t(Object(G.b)(e)),e}))}}(t))}}}))((function(e){var t=e.isBulkPrint,i=void 0!==t&&t,n=e.getLicenseRecords,o=e.onClose,s=e.open,l=e.records,d=e.userId,u=e.sessionDetails,p=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}));n(e).then((function(e){E(e)}))}}),[u,d,n,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(v.fe.fromJS({licenseId:null!==(t=e.licenseId)&&void 0!==t?t:0,name:null!==(i=e.name)&&void 0!==i?i:""}))}));else{var T,P,A,k,D,L=l[0].completionDate,J=(null===(T=l[0].userLicensePropertyValues)||void 0===T||null===(P=T.filter((function(e){return"Reciprocal"===e.propertyLabel&&!0===e.valueBit})))||void 0===P?void 0:P.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(Q);var B=[v.Dd.Denied,v.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,a,n;return(null!==(i=e.name)&&void 0!==i?i:"")>(null!==(r=t.name)&&void 0!==r?r:"")?1:(null!==(a=e.name)&&void 0!==a?a:"")<(null!==(n=t.name)&&void 0!==n?n:"")?-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,a,n,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){p({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,a,n,o=null!==(t=null===(r=u[0])||void 0===r?void 0:r.sessionId)&&void 0!==t?t:0,s=null!==(a=null===(n=u[0])||void 0===n?void 0:n.isInstructor)&&void 0!==a&&a;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===(a=w)||void 0===a||null===(n=a.filter((function(e){return-1!==e.id})))||void 0===n?void 0:n.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 a.a.createElement(Oa.a,{maxWidth:"sm",fullWidth:!0,open:s,onClose:o},a.a.createElement(wa.Formik,{initialValues:U.initialValues,onSubmit:U.onSubmit,enableReinitialize:!0},(function(e){return a.a.createElement(h.Form,{id:"roleDetails",formikContext:!0},a.a.createElement(Ia.DialogHeader,{titleBar:{title:"Print Certificates",onClose:o}}),a.a.createElement(Ia.DialogBody,null,a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"top-left",stretchContent:!0},a.a.createElement(h.Collapse,{in:C},a.a.createElement(h.Alert,{type:"error",onClose:function(){return x(!1)}},"Please select at least one license."))),i&&a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"top-left",stretchContent:!0},a.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.")),a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center-left",stretchContent:!0},a.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})),a=-1===i.findIndex((function(e){return-1===e.id}));t.length>0?x(!1):x(!0),a&&r?e.setFieldValue("licenseId",t.filter((function(e){return-1===e.id}))):!a&&r?e.setFieldValue("licenseId",t.filter((function(e){return-1!==e.id}))):e.setFieldValue("licenseId",t)}(i)},loading:void 0===S})))),a.a.createElement(Ia.DialogFooter,null,a.a.createElement(h.Grid,{container:!0,spacing:"form",justify:"center"},a.a.createElement(h.Grid,{item:!0,lg:2,md:4,xs:6,stretchContent:!0,alignment:"center"},a.a.createElement(h.Button,{type:"submit",variant:"contained",color:"primary"},"View")))))})))})),wd=Object(s.b)(null,(function(e){return{updateCompletionDate:function(t,i,r){return e(function(e,t,i){return function(r){return U.R.updateCompletionDate(void 0,v.ye.fromJS({sessionParticipantIds:e,completionDate:t,sessionId:i})).then((function(e){return r(Object(G.a)({message:"Completion date has been updated.",variant:"success"})),e})).catch((function(e){r(Object(G.b)(e))}))}}(t,i,r))}}}))((function(e){var t=e.onClose,i=e.open,r=e.onSuccess,n=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(Ta.object)().shape({completionDate:Object(Ta.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(Ta.date)().notRequired().nullable()}),onSubmit:function(e,i){var a=e.completionDate,o=e.completionTime,l=new Date(ja()(a).startOf("day").toString()),d=new Date(o),u=null!==o?new Date(l.setHours(d.getHours(),d.getMinutes(),d.getSeconds())):new Date(ja()(a).startOf("day").toString());c([n],new Date(Object(ii.j)(u)),s).then((function(){t&&t(),r&&r(),i.setSubmitting(!1)}))}};return a.a.createElement(Oa.a,{maxWidth:"sm",fullWidth:!0,color:"default",open:i,onClose:t},a.a.createElement(wa.Formik,{initialValues:d.initialValues,validationSchema:d.validationSchema,onSubmit:d.onSubmit},(function(e){return a.a.createElement(h.Form,{id:"course-save-filter",formikContext:!0},a.a.createElement(Ia.DialogHeader,{titleBar:{title:l,onClose:t}}),a.a.createElement(Ia.DialogBody,{maxWidth:!1},a.a.createElement(h.Grid,{container:!0,spacing:2},a.a.createElement(h.Grid,{item:!0,xs:12,key:"caption",stretchContent:!0,alignment:"top-left"},a.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular"},"Please set a completion date for the participant validation.")),a.a.createElement(h.Grid,{item:!0,xs:12,key:"name",stretchContent:!0,alignment:"top-left"},a.a.createElement(h.Grid,{container:!0,spacing:1},a.a.createElement(h.Grid,{item:!0,xs:6},a.a.createElement(h.DateTimeField,{id:"completionDate",type:"date",formikContext:!0,format:"".concat(Object(N.h)()),required:!0,fullWidth:!0})),a.a.createElement(h.Grid,{item:!0,xs:6},a.a.createElement(h.DateTimeField,{id:"completionTime",type:"time",fullWidth:!0})))))),a.a.createElement(Ia.DialogFooter,null,a.a.createElement(h.Grid,{container:!0,spacing:"form",justify:"center"},a.a.createElement(h.Grid,{item:!0,lg:3,md:4,xs:6,alignment:"center"},a.a.createElement(h.Button,{color:"default",variant:"outlined",type:"reset",onClick:function(){t()},fullWidth:!0},"Cancel")),a.a.createElement(h.Grid,{item:!0,lg:3,md:4,xs:6,alignment:"center"},a.a.createElement(h.Button,{loading:e.isSubmitting,color:"primary",variant:"contained",type:"submit",fullWidth:!0},"Save")))))})))})),Td=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)(nd().mark((function i(r){var a,n;return nd().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return a=new v.Wc({sessionParticipantId:e,filterBy:[],searchCriteria:[],sortBy:"fileName",page:1,pageSize:-1}),i.prev=1,i.next=4,U.R.getPortalSessionParticipantCertificates(void 0,t?v.Wc.fromJS({request:t,sessionParticipantId:e}):a);case 4:return n=i.sent,i.abrupt("return",n);case 8:throw i.prev=8,i.t0=i.catch(1),r(Object(G.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)(nd().mark((function i(r){var a,n;return nd().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return a=Array.from(t).map((function(e){return{fileName:e.name,data:e}})),i.prev=1,i.next=4,U.R.uploadCertificate(e,void 0,a);case 4:return n=i.sent,i.abrupt("return",n);case 8:throw i.prev=8,i.t0=i.catch(1),r(Object(G.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)(nd().mark((function e(t){var r;return nd().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,U.R.deleteCertificate(void 0,v.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(G.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 U.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(G.b)(t)),t}))}));var i},downloadPLICertificate:function(t,i){return e(function(e,t){return function(i){return U.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(G.b)(e)),e}))}}(t,i))}}}))((function(e){var t,i=e.loggedUser,n=e.onClose,o=e.onSuccess,s=e.open,l=e.sessionParticipantId,d=e.deleteCertificates,u=e.downloadCertificate,p=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],T=j[1],P=Object(r.useState)([]),A=Object(c.a)(P,2),k=A[0],D=A[1],L=Object(r.useRef)(null),J=Object(r.useCallback)((function(){p(l).then((function(e){S(e)}))}),[p,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&&(T([e]),d([e]).then((function(){T([]),o&&o(),J()})))},R=[{Header:"File Name",accessor:"fileName",Cell:function(e){var t=e.row.original;return a.a.createElement(h.Typography,{variant:"body2"},a.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 a.a.createElement(h.Row,{mainAxisAlignment:"center"},a.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 a.a.createElement(h.Row,{mainAxisAlignment:"end"},a.a.createElement(h.IconButton,{onClick:function(){return F(t.sessionParticipantCertificateId,t.integrationId,t.integrationSessionParticipantCertificateId)}},k.includes(t.sessionParticipantCertificateId||0)?a.a.createElement(h.SystemIcon,{icon:"Loading",color:"info",spin:!0,type:"duotone",size:"sm"}):a.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)===v.Re.Administrator||(null===t||void 0===t?void 0:t.createdByUserType)!==v.Re.Administrator)&&a.a.createElement(h.IconButton,{onClick:function(){return B(t.sessionParticipantCertificateId)},disabled:"PLI"===t.integrationId},w.includes(t.sessionParticipantCertificateId||0)?a.a.createElement(h.SystemIcon,{icon:"Loading",color:"info",spin:!0,type:"duotone",size:"sm"}):a.a.createElement(h.SystemIcon,{icon:"Delete",color:"PLI"===t.integrationId?"inherit":"info",type:"duotone",size:"sm"})))}}];return a.a.createElement(Oa.a,{open:s,onClose:n,fullWidth:!0,maxWidth:"md"},a.a.createElement(Ia.DialogHeader,{titleBar:{title:"Certificates",onClose:n},colorMode:"light"}),a.a.createElement(Ia.DialogBody,{maxWidth:!1,bgColor:"white"},a.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})),a.a.createElement(Ia.DialogFooter,{bgColor:"white"},a.a.createElement(h.Grid,{container:!0,spacing:"form",justify:"center"},a.a.createElement(h.Grid,{item:!0,lg:2,md:3,xs:6,stretchContent:!0,alignment:"center"},a.a.createElement(h.Button,{color:"default",fullWidth:!0,variant:"outlined",type:"reset",onClick:function(){n()}},"Close")),a.a.createElement(h.Grid,{item:!0,lg:2,md:3,xs:6,stretchContent:!0,alignment:"center"},a.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"),a.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"})))))})),Pd=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(id.a)())},updateParticipantsAndLicenses:function(t,i,r,a,n){return e(function(e,t,i,r,a){return function(n){var o={sessionParticipantIds:e,sessionId:t,userLicenseCreditValues:i,userLicenseProperties:r,isAdjusted:a};return U.R.updateParticipantAndLicense(void 0,v.De.fromJS(o)).then((function(e){return n(Object(G.a)({message:"Credits have been updated successfully.",variant:"success"})),e})).catch((function(e){n(Object(G.b)(e))}))}}(t,i,r,a,n))},confirmDialog:function(t){return e(Object(on.b)(t))}}}))((function(e){var t=e.firmLicenses,i=e.isLoading,n=e.open,o=e.participants,s=e.session,l=e.title,d=e.userLicenseLimitations,u=e.getLicenses,p=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(v.Kd.ManagePortalTeam),C=Object(r.useRef)(I);C.current=I;var x=function(e,t){return a.a.createElement(h.Row,{size:"max",crossAxisAlignment:"middle",mainAxisAlignment:"center"},a.a.createElement(h.Column,{mainAxisAlignment:"middle",size:"max",crossAxisAlignment:"center"},a.a.createElement(h.Expanded,{flex:0},a.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular",color:"inherit"},e)),t))},j=Object(r.useState)(),w=Object(c.a)(j,2),T=w[0],P=w[1],A=Object(r.useState)(Array()),N=Object(c.a)(A,2),k=N[0],L=N[1],J=Object(r.useState)(!1),F=Object(c.a)(J,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=[],a=[],n=new v.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 v.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,n=null===(r=i.sessionLicenseProperties)||void 0===r?void 0:r.find((function(e){return e.propertyId===t.propertyId})),o=new v.ge;o.propertyId=t.propertyId,o.propertyLabel=null===n||void 0===n?void 0:n.propertyLabel,o.propertyValue=i.licenseId===ve&&17===t.propertyId||(i.licenseId===le||i.licenseId===fe)&&9===t.propertyId||i.licenseId===fe&&14===t.propertyId?"".concat(e.valueInt):t.isForInstructorValidation&&i.licenseId!==fe&&i.licenseId!==ve?"".concat(e.valueChar):"".concat(e.valueBit),a.push(o)}))})):a=i.sessionLicenseProperties}else{var p=null===e||void 0===e?void 0:e.find((function(e){return e.licenseId===i.licenseId})),f=null===p||void 0===p?void 0:p.licenseCredits,m=new Array;f&&f.forEach((function(e){var t,r,a=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 v.ee({creditId:e.creditId,creditName:e.name,creditValue:null!==a&&void 0!==a?a:0}))})),r=m,a=i.sessionLicenseProperties}n.licenseId=i&&i.licenseId,n.name=i.name,n.sessionLicenseCredits=r,n.sessionLicenseProperties=a,t.push(n)})),L(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)})),P(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)})),P(e),e.length>0?U(e):R(!1))}),[t,U,u]);Object(r.useEffect)((function(){G()}),[G]);var M={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,a,n,o=null===k||void 0===k||null===(r=k.find((function(e){return e.licenseId===t.licenseId})))||void 0===r||null===(a=r.sessionLicenseCredits)||void 0===a||null===(n=a.find((function(t){return t.creditId===e.creditId})))||void 0===n?void 0:n.creditValue;o=void 0===o?0:parseFloat(o.toString()),i=Object(D.a)(Object(D.a)({},i),{},Object(kn.a)({},"".concat(S,"-").concat(t.licenseId,"_").concat(e.creditId),o))})),e=Object(D.a)(Object(D.a)({},e),i)})),e}(),licensePropsList:function(){var e={};return T&&(null===T||void 0===T?void 0:T.length)>0&&T.forEach((function(t){var i,r,a={},n=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=""),a=Object(D.a)(Object(D.a)({},a),{},Object(kn.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===Q?null===(u=e.label)||void 0===u?void 0:u.replace("Accounting",""):e.label};null!==e.licensePropertyGroupId?o.push(h):t.licenseId===Q&&e.propertyId&&e.propertyId>2?s.push(h):n.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,n,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===(n=r.find((function(t){return t.propertyId===e.propertyId})))||void 0===n?void 0:n.propertyValue;if(5!==e.typeId)void 0===o&&(o=""),a=Object(D.a)(Object(D.a)({},a),{},Object(kn.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)}})),a=Object(D.a)(Object(D.a)({},a),{},Object(kn.a)({},"".concat(S,"-").concat(t.licenseId,"_checkbox_properties"),n)),a=Object(D.a)(Object(D.a)({},a),{},Object(kn.a)({},"".concat(S,"-").concat(t.licenseId,"_grouped_properties"),o)),a=Object(D.a)(Object(D.a)({},a),{},Object(kn.a)({},"".concat(S,"-").concat(t.licenseId,"_FOS_qualifiers"),s)),a=Object(D.a)(Object(D.a)({},a),{},Object(kn.a)({},"".concat(S,"-").concat(t.licenseId,"_instructor_properties"),l)),e=Object(D.a)(Object(D.a)({},e),a)})),e}()},validationSchema:Object(Ta.object)().shape({licenseCreditsList:Object(Ta.object)().shape(function(){var e={};return T&&(null===T||void 0===T?void 0:T.length)>0&&T.forEach((function(t){t.licenseCredits&&t.licenseCredits.forEach((function(i){var r=Object(Ta.number)().min(0,"Invalid input.").typeError("Invalid input.");e["".concat(S,"-").concat(t.licenseId,"_").concat(i.creditId)]=r}))})),e}()),licensePropsList:Object(Ta.object)().shape(function(){var e={};return T&&(null===T||void 0===T?void 0:T.length)>0&&T.forEach((function(t){t.licenseProperties&&t.licenseProperties.forEach((function(i){if(i.isForInstructorValidation&&1===i.typeId){var r=Object(Ta.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,a=new Array,n=!1,l=0,c=0,d=0,u=0;k.forEach((function(e){t&&Object.keys(t).forEach((function(i){var a=i.split("_")[0],n=parseInt(i.split("_")[1],10),o=t[i];a==="".concat(S,"-").concat(e.licenseId)&&void 0!==n&&null!==n&&(e.licenseId===le&&(l+=parseFloat(o)),r.push(new v.Me({sessionParticipantId:0,creditId:n,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 n=parseInt(t.split("_")[1],10),o=i[t],s=parseInt(r,10);r==="".concat(e.licenseId)&&null!==n&&""!==o&&"null"!==o&&(s===le&&(10===n?c=parseInt(o,10):11===n?d=parseInt(o,10):12===n&&(u=parseInt(o,10))),(s===fe||s===le)&&9===n||s===ve&&17===n||s===fe&&14===n?null!==o&&a.push(new v.Ne({sessionParticipantId:0,licenseId:s,propertyId:n,valueInt:parseInt(o,10)})):a.push(new v.Ne({sessionParticipantId:0,licenseId:s,propertyId:n,valueChar:String(o)})))}else{i[t].forEach((function(e){a.push(new v.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),n=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,a);var C=function(e){var t=new Array;return T&&(null===T||void 0===T?void 0:T.length)>0&&T.forEach((function(i){var r,a,n=null===(r=i.licenseProperties)||void 0===r?void 0:r.filter((function(e){return!e.isUserLevelAdjustable})),o=s&&s.sessionLicenses&&(null===(a=s.sessionLicenses.find((function(e){return e.licenseId===i.licenseId})))||void 0===a?void 0:a.sessionLicenseProperties);n&&(null===n||void 0===n?void 0:n.length)>0&&n.forEach((function(r){var a=null===o||void 0===o?void 0:o.find((function(e){return e.propertyId===r.propertyId}));if(a){var n=new v.Ne({sessionParticipantId:e,propertyId:a.propertyId,licenseId:i.licenseId});switch(r.typeId){case 1:n.valueChar=a.propertyValue;break;case 2:n.valueInt=parseInt("".concat(a.propertyValue),10);break;case 3:n.valueDate=ja()(a.propertyValue).isValid()?new Date("".concat(a.propertyValue)):void 0;break;case 4:n.valueDecimal=parseInt("".concat(a.propertyValue),10);break;case 5:n.valueBit="true"===a.propertyValue}n&&t.push(n)}}))})),t}(0);O.push.apply(O,Object(Li.a)(C));var x=function(e,t){var i=!1,r=e.filter((function(t){return t.sessionParticipantId===e[0].sessionParticipantId})),a=t.filter((function(e){return e.sessionParticipantId===t[0].sessionParticipantId}));return s&&s.sessionLicenses&&s.sessionLicenses.forEach((function(e){var t,n=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=a.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===ve&&17===t.propertyId||(e.licenseId===fe||e.licenseId===le)&&9===t.propertyId)&&(r=-1!==l.findIndex((function(e){return e.propertyId===t.propertyId&&"".concat(e.valueInt)===t.propertyValue}))),r||(i=!0)})),!i&&n&&(n.length!==s.length?i=!0:n.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);n?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(),p&&p(),m()}))}}):y(I,S,r,O,x).then((function(){f&&f(),p&&p(),m()}))}};return a.a.createElement(h.SideDrawer,{colorMode:"dark",size:"lg",open:n,onClose:m},a.a.createElement(ga.SideDrawerHeader,{titleBar:{title:"Adjust Credits",subtitle:l}}),null===T||void 0===T?a.a.createElement(ga.SideDrawerBody,{maxWidth:!1},a.a.createElement(h.Box,null,a.a.createElement(h.Box,{pb:2},a.a.createElement(h.Skeleton,{height:35,width:"100%",variant:"rect",style:{borderRadius:"4px"}})),a.a.createElement(h.Box,{pb:2},a.a.createElement(h.Skeleton,{height:35,width:"100%",variant:"rect",style:{borderRadius:"4px"}})),a.a.createElement(h.Box,{pb:2},a.a.createElement(h.Skeleton,{height:35,width:"100%",variant:"rect",style:{borderRadius:"4px"}})))):a.a.createElement(a.a.Fragment,null,!B&&a.a.createElement(a.a.Fragment,null,a.a.createElement(ga.SideDrawerBody,{maxWidth:!1},a.a.createElement(h.Alert,{type:"info",variant:"standard"},"Session does not have any associated Licenses."))),B&&a.a.createElement(wa.Formik,{key:"creditAdjustmentForm",initialValues:M.initialValues,onSubmit:M.onSubmit,validationSchema:M.validationSchema,enableReinitialize:!0},(function(e){return a.a.createElement(h.Form,{formikContext:!0,id:"creditAdjustment",key:"creditAdjustmentForm"},a.a.createElement(ga.SideDrawerBody,{maxWidth:!1,bgColor:"white"},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(t){var r,n,l,c,u,p,v,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!==(v=null===(f=g.find((function(e){return null!==e.licensePropertyGroupId})))||void 0===f?void 0:f.licensePropertyGroupId)&&void 0!==v?v: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,a={id:null!==(i=e.propertyId)&&void 0!==i?i:0,name:t.licenseId===Q?null===(r=e.label)||void 0===r?void 0:r.replace("Accounting",""):e.label};return 5!==e.typeId||null!==e.licensePropertyGroupId||t.licenseId===Q&&e.propertyId&&e.propertyId>2?t.licenseId===Q&&e.propertyId&&e.propertyId>2?(I.push(a),I):null:(b.push(a),b)})));var w=new Array,P=null===(n=t.licenseProperties)||void 0===n?void 0:n.filter((function(e){return e.isForInstructorValidation&&5===e.typeId}));P&&P.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,L=P&&P.length>0?P[0].licensePropertyGroupLabel:"",J=null!==(l=!O||d&&d.length>0&&!d.includes(null===t||void 0===t?void 0:t.licenseId))&&void 0!==l&&l;return a.a.createElement(h.Grid,{container:!0,spacing:"form",key:"".concat(t.licenseId,".license_information_form")},a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.Box,{mt:1},a.a.createElement(h.Card,{background:"grey",variant:"outlined"},a.a.createElement(h.CardHeader,{title:a.a.createElement(h.Row,null,a.a.createElement(h.Typography,{variant:"h6"},t.name),t.licenseId===oe&&a.a.createElement(h.Box,{ml:2},a.a.createElement(h.Column,null,a.a.createElement(h.Typography,{variant:"caption"},a.a.createElement("i",null,"*Enter the total number of credits as either Regular or In-House/Self-Study.")),a.a.createElement(h.Typography,{variant:"caption"},a.a.createElement("i",null,"The portion of total credits that count towards the sub-requirement should be entered in the remaining credit categories.")),a.a.createElement(h.Typography,{variant:"caption"},a.a.createElement("i",null,"(Note: the same credits may count towards more than one sub-requirement.)")))),t.licenseId===se&&a.a.createElement(h.Box,{ml:2},a.a.createElement(h.Column,null,a.a.createElement(h.Typography,{variant:"caption"},a.a.createElement("i",null,"*Enter the total number of credits as General.")),a.a.createElement(h.Typography,{variant:"caption"},a.a.createElement("i",null,"The portion of General credits that count towards the sub-requirement should be entered in the remaining credit categories.")),a.a.createElement(h.Typography,{variant:"caption"},a.a.createElement("i",null,"(Note: the same credit may count towards more than one sub-requirement.)"))))),action:J?a.a.createElement(h.Typography,{variant:"body1",color:"textSecondary",colorMode:"light"},"Reset to Session Credits"):a.a.createElement(h.Link,{variant:"body1",color:"primary",onClick:function(){!function(t){var i=null===s||void 0===s?void 0:s.sessionLicenses,r={},a={};i&&(null===i||void 0===i?void 0:i.length)>0&&i.forEach((function(n){var o=null===T||void 0===T?void 0:T.find((function(e){return e.licenseId===n.licenseId}));if(o){var s,l,c,d={},u={},h=Array(),p=new Array,v=new Array,f=null!==(s=null===(l=n.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(n.licenseId!==t.licenseId){var a="".concat(S,"-").concat(n.licenseId,"_").concat(i.creditId);r=e.values.licenseCreditsList[a]}else if(f.includes(i.creditId)){var o,s,l=null===(o=n.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(D.a)(Object(D.a)({},d),{},Object(kn.a)({},"".concat(S,"-").concat(n.licenseId,"_").concat(i.creditId),r))})),r=Object(D.a)(Object(D.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 a,o,s,l=null===i||void 0===i||null===(a=i.find((function(e){return e.licenseId===n.licenseId})))||void 0===a||null===(o=a.sessionLicenseProperties)||void 0===o||null===(s=o.find((function(e){return e.propertyId===r.propertyId})))||void 0===s?void 0:s.propertyValue;if(n.licenseId!==t.licenseId){var c=e.values.licensePropsList["".concat(S,"-").concat(n.licenseId,"_checkbox_properties")],d=e.values.licensePropsList["".concat(S,"-").concat(n.licenseId,"_grouped_properties")],u=e.values.licensePropsList["".concat(S,"-").concat(n.licenseId,"_FOS_qualifiers")];c.forEach((function(e){null!==r.licensePropertyGroupId||n.licenseId===Q&&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===p.findIndex((function(t){return t.id===e.id}))&&p.push(e)})),u.forEach((function(e){null===r.licensePropertyGroupId&&n.licenseId===Q&&r.propertyId&&r.propertyId>2&&-1===v.findIndex((function(t){return t.id===e.id}))&&v.push(e)}))}else if("true"===l){var f,m,y={id:null!==(f=r.propertyId)&&void 0!==f?f:0,name:n.licenseId===Q?null===(m=r.label)||void 0===m?void 0:m.replace("Accounting",""):r.label};null!==r.licensePropertyGroupId?p.push(y):n.licenseId===Q&&r.propertyId&&r.propertyId>2?v.push(y):h.push(y)}})),u=Object(D.a)(Object(D.a)({},u),{},Object(kn.a)({},"".concat(S,"-").concat(n.licenseId,"_checkbox_properties"),h)),u=Object(D.a)(Object(D.a)({},u),{},Object(kn.a)({},"".concat(S,"-").concat(n.licenseId,"_grouped_properties"),p)),u=Object(D.a)(Object(D.a)({},u),{},Object(kn.a)({},"".concat(S,"-").concat(n.licenseId,"_FOS_qualifiers"),v)),n.licenseId===le||n.licenseId===fe||n.licenseId===ve){var y,g,b,E,I,O=n.licenseId===ve?17:9,C=null!==(y=null===i||void 0===i||null===(g=i.find((function(e){return e.licenseId===n.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(n.licenseId,"_").concat(n.licenseId===ve?17:9)])&&void 0!==I?I:null;u=Object(D.a)(Object(D.a)({},u),{},Object(kn.a)({},"".concat(S,"-").concat(n.licenseId,"_").concat(O),n.licenseId===t.licenseId?C:x))}a=Object(D.a)(Object(D.a)({},a),u)}})),e.setValues({licenseCreditsList:r,licensePropsList:a})}(t)}},"Reset to Session Credits")}),a.a.createElement(h.CardContent,null,a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,lg:2,md:2,xs:12,stretchContent:!0},x("Credits")),a.a.createElement(h.Grid,{item:!0,lg:10,md:10,xs:12,stretchContent:!0,alignment:"center-left"},a.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,n,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!==(n=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!==n?n:0;return e.isArchived?e.isArchived&&l>0?a.a.createElement(h.Grid,{item:!0,lg:4,md:6,xs:6,key:"licenseCreditsList.".concat(S,"-").concat(t.licenseId,"_").concat(e.creditId)},a.a.createElement(h.Row,null,a.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:J}),a.a.createElement(h.Box,{mb:2,ml:.5},a.a.createElement(h.Tooltip,{title:"This credit type has been archived.",placement:"top",style:{maxWidth:10}},a.a.createElement("span",null,"\xa0",a.a.createElement(h.SystemIcon,{icon:"Help"})))))):a.a.createElement(a.a.Fragment,null):a.a.createElement(h.Grid,{item:!0,lg:4,md:6,xs:6,key:"licenseCreditsList.".concat(S,"-").concat(t.licenseId,"_").concat(e.creditId)},a.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:J}))}))))),(b&&b.length>0||E&&E.length>0)&&a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Grid,{item:!0,lg:2,md:2,xs:12,stretchContent:!0},x("Properties")),a.a.createElement(h.Grid,{item:!0,lg:10,md:10,xs:12,stretchContent:!0,alignment:"center-left"},a.a.createElement(h.Grid,{container:!0,spacing:1},b&&b.length>0&&a.a.createElement(h.Grid,{item:!0,lg:6,md:6,xs:12,alignment:"top-left",key:"".concat(t.licenseId,"_select_properties"),stretchContent:!0},a.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:J})),E&&E.length>0&&a.a.createElement(h.Grid,{item:!0,lg:6,md:6,xs:12,alignment:"top-left",key:"".concat(t.licenseId,"_grouped_properties"),stretchContent:!0},a.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:J})),I&&I.length>0&&a.a.createElement(h.Grid,{item:!0,lg:6,md:6,xs:12,alignment:"top-left",key:"".concat(t.licenseId,"_FOS_qualifiers"),stretchContent:!0},a.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:J})),t.licenseId===fe&&a.a.createElement(h.Grid,{item:!0,lg:4,md:6,xs:12,alignment:"top-left",key:"".concat(t.licenseId,"_",14,"_",2),stretchContent:!0},a.a.createElement(h.SelectField,{id:"licensePropsList.".concat(S,"-").concat(t.licenseId,"_",14),label:"Participation Method",fullWidth:!0,formikContext:!0,loading:i,maxLabelLength:20,disabled:J},a.a.createElement(h.MenuItem,{key:0,value:""}),(A=null!==(u=t.licenseId)&&void 0!==u?u:0,N=14,A===fe&&14===N?[{label:"Group Participation",value:1},{label:"Self-Study",value:2}]:[]).map((function(e){return a.a.createElement(h.MenuItem,{key:e.value,value:e.value},e.label)}))))))),o.find((function(e){return e.isInstructor}))&&a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Grid,{item:!0,lg:2,md:2,xs:12,stretchContent:!0}),a.a.createElement(h.Grid,{item:!0,lg:10,md:10,xs:12,stretchContent:!0,alignment:"center-left"},a.a.createElement(h.Grid,{container:!0,spacing:1},null===(p=t.licenseProperties)||void 0===p?void 0:p.filter((function(e){return e.isUserLevelAdjustable&&e.isForInstructorValidation})).map((function(e){return 1===e.typeId?a.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},a.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:J})):a.a.createElement(a.a.Fragment,null)})),w&&w.length>0&&a.a.createElement(h.Grid,{item:!0,lg:6,md:6,xs:12,alignment:"top-left",key:"".concat(t.licenseId,"_instructor_properties"),stretchContent:!0},a.a.createElement(h.ComboBox,{id:"licensePropsList.".concat(S,"-").concat(t.licenseId,"_instructor_properties"),label:L,fullWidth:!0,multiple:!0,options:w||[],formikContext:!0,loading:i,disabled:J})))))))))))}))),a.a.createElement(ga.SideDrawerFooter,{key:"EditDrawerFooter"},a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:3}),a.a.createElement(h.Grid,{item:!0,xs:3,alignment:"center-right",stretchContent:!0},a.a.createElement(h.Button,{color:"default",type:"reset",onClick:function(){m()},variant:"outlined"},"Cancel")),a.a.createElement(h.Grid,{item:!0,xs:3,alignment:"center-left",stretchContent:!0},a.a.createElement(h.Button,{loading:e.isSubmitting,color:"primary",variant:"contained",type:"submit",disabled:!O},"Save")),a.a.createElement(h.Grid,{item:!0,xs:3}))))}))))}));function Ad(){Ad=function(){return e};var e={},t=Object.prototype,i=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",n=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 a=t&&t.prototype instanceof u?t:u,n=Object.create(a.prototype),o=new O(r||[]);return n._invoke=function(e,t,i){var r="suspendedStart";return function(a,n){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw n;return x()}for(i.method=a,i.arg=n;;){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),n}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 p(){}var v={};s(v,a,(function(){return this}));var f=Object.getPrototypeOf,m=f&&f(f(C([])));m&&m!==t&&i.call(m,a)&&(v=m);var y=p.prototype=u.prototype=Object.create(v);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(a,n){function o(){return new t((function(r,o){!function r(a,n,o,s){var l=c(e[a],e,n);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)}(a,n,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 a=r.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):a:(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[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r=0;--a){var n=this.tryEntries[a],o=n.completion;if("root"===n.tryLoc)return r("end");if(n.tryLoc<=this.prev){var s=i.call(n,"catchLoc"),l=i.call(n,"finallyLoc");if(s&&l){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&i.call(a,"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 a=r.arg;I(i)}return a}}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 Nd=function(e){var t=e.onConfirmation,i=e.onClose,n=e.open,o=Object(r.useState)(!1),s=Object(c.a)(o,2),d=s[0],u=s[1],p=function(){var e=Object(l.a)(Ad().mark((function e(){return Ad().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 a.a.createElement(Oa.a,{open:n,onClose:i,maxWidth:"xs",fullWidth:!0},a.a.createElement(Ia.DialogHeader,{titleBar:{title:"Download Certificates",onClose:i}}),a.a.createElement(Ia.DialogBody,{maxWidth:!1},a.a.createElement(h.Backdrop,{open:d},a.a.createElement(h.CircularProgress,{color:"secondary"})),a.a.createElement(h.Grid,{container:!0,spacing:"form",alignContent:"center",alignItems:"center",justify:"center"},a.a.createElement(h.Grid,{item:!0,xs:12,md:12,lg:12},a.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?")))),a.a.createElement(Ia.DialogFooter,null,a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:6,alignment:"center-right"},a.a.createElement(h.Button,{color:"default",variant:"outlined",type:"reset",onClick:function(){i()},fullWidth:!0},"No")),a.a.createElement(h.Grid,{item:!0,xs:6,alignment:"center-left"},a.a.createElement(h.Button,{disabled:d,color:"primary",variant:"contained",type:"submit",fullWidth:!0,onClick:function(){return p()}},"Yes")))))},kd=function(e){var t,i,n=e.year,o=e.columns,s=e.records,l=e.summaryRecords,d=Object(r.useState)(10),u=Object(c.a)(d,2),p=u[0],v=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,p);v(p),g(e)}),[s,p,v]);return a.a.createElement(h.Widget,null,a.a.createElement(h.ExpandableCard,{onCardExpand:function(){var e=j.a.take(s,10);v(10),g(e)},expanded:n===ja()().year(),variant:"none",summary:a.a.createElement(A.a,{title:a.a.createElement(h.Typography,{variant:"h6"},n)}),details:a.a.createElement(T.a,{dense:!0},a.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}),a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center"},a.a.createElement(h.Box,{mt:2},p<(null!==(t=null===s||void 0===s?void 0:s.length)&&void 0!==t?t:0)?a.a.createElement(h.Button,{color:"primary",variant:"outlined",size:"small",onClick:function(){v(p+10)}},"Show More"):a.a.createElement(a.a.Fragment,null,(null!==(i=null===s||void 0===s?void 0:s.length)&&void 0!==i?i:0)<=10?a.a.createElement(a.a.Fragment,null):a.a.createElement(h.Button,{color:"primary",variant:"outlined",size:"small",onClick:function(){v(10)}},"Show Less")))))}))},Dd=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(G.a)(t))},deleteParticipant:function(t,i){return e(function(e,t){return function(i){var r=new v.xb({sessionId:t,sessionParticipantIdList:e,sendEmailConfirmation:!0});return U.R.delete(void 0,r).then((function(e){return i(Object(G.a)({message:"Session participant successfully deleted.",variant:"success"})),e})).catch((function(e){i(Object(G.b)(e))}))}}(t,i))},downloadFile:function(t){return e((i=t,function(e){var t=Bi(i);U.D.downloadFile(void 0,new v.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(G.b)(t)),t}))}));var i},downloadMultipleCertificates:function(t){return e(Object(Ys.a)(t))},getTranscripts:function(t){return e(function(e){return function(t){return U.ab.getAllPortalUserCompletedTranscriptSummary(void 0,v.kc.fromJS(e)).then((function(e){return e})).catch((function(e){t(Object(G.b)(e))}))}}(t))},getScreenDescription:function(t){return e(Object(ia.c)(t))},getSessionDetails:function(t){return e(function(e){return function(t){return t(Vi(null)),t(Ui(!0)),U.S.get(e,void 0).then((function(e){return t(Vi(e)),t(Ui(!1)),e})).catch((function(){t(Vi()),t(Ui(!1))}))}}(t))},getSessionParticipantAdjustedCredits:function(t){return e(function(e){return function(t){return U.R.getSessionParticipantAdjustedCredit(void 0,new v.fd({sessionParticipantId:e})).then((function(e){return e})).catch((function(e){throw t(Object(G.b)(e)),e}))}}(t))},showConfirmation:function(t){return e(Object(on.b)(t))},exportUserTranscripts:function(t,i){return e(function(e,t){return function(i){return("csv"===t?U.ab.exportUserTranscriptCsv(void 0,v.kc.fromJS(e)):U.ab.exportUserTranscriptExcel(void 0,v.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(G.b)(e))}))}}(t,i))},setReport:function(t){return e(Object(Ba.h)(t))},getReportId:function(t){return e(Object(Ba.e)(t))},getReportFilters:function(t){return e(Object(Ba.f)(t))},exportReport:function(t,i,r){return e(Object(Ba.b)(t,i,r))}}}))(Object(oo.a)((function(e){var t,i,n,o,l,d,u,p=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,P=e.exportUserTranscripts,N=e.getReportId,L=e.getReportFilters,J=e.exportReport,F=e.reportTokens,B=e.setReport,R=Object(z.useTheme)(),U=Object(z.useMediaQuery)(R.breakpoints.down("xs")),G=null!==(t=Ed.a.parse(O.search)["?licenseId"])&&void 0!==t?t:0,M=C&&C.userRole,q=Object(r.useState)(),W=Object(c.a)(q,2),V=W[0],_=W[1],Y=Object(r.useState)(!1),$=Object(c.a)(Y,2),H=$[0],K=$[1],Z=Object(r.useState)(!1),X=Object(c.a)(Z,2),ee=X[0],te=X[1],ie=E(v.Kd.ManagePortalTeam),re=Object(s.c)((function(e){return e.users.authenticatedUser})),ae=(null!==(i=re&&re.userRole&&re.userRole[0].subRoleId)&&void 0!==i?i:0)===v.re.AdministrativeAssistant,ne={userId:j,page:1,pageSize:-1,filterBy:[],searchCriteria:[+G>0?"License: ".concat(G):"Type: 0"]},oe=Object(r.useState)(Object(D.a)({},ne)),se=Object(c.a)(oe,2),le=se[0],ce=se[1];Object(r.useEffect)((function(){j!==le.userId&&ce(Object(D.a)(Object(D.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],pe=ue[1],ve=Object(r.useState)(),fe=Object(c.a)(ve,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),Te=we[0],Pe=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],Me=Ue[1],qe=Object(r.useState)(),ze=Object(c.a)(qe,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],at=Object(r.useState)(),nt=Object(c.a)(at,2),ot=nt[0],st=nt[1],lt=Array();Object(r.useEffect)((function(){ye(void 0),Ee(void 0),pe(!0),I(le).then((function(e){void 0!==e&&(ye(e),Ee(e.userTranscripts)),pe(!1)}))}),[I,le]),Object(r.useEffect)((function(){g(v.Md.Transcripts).then((function(e){return _(e)}))}),[g,_,M]);var ct=function(e){var t;if("TypeAndLicense"===e){var i,r,a=null===le||void 0===le||null===(i=le.searchCriteria)||void 0===i?void 0:i.find((function(e){return e.includes("Type")})),n=null===a||void 0===a?void 0:a.substring(a.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!==n&&void 0!==n?n: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,a=null===e||void 0===e?void 0:e.certificateDisplayStatusId,n=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(Q),a!==v.u.Upload&&a!==v.u.Certificate||xe({open:!0,sessionParticipantId:o}),a===v.u.Print){var s,l=v.me.fromJS({sessionId:n,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,a=i.certificateDisplayStatusId;0!==(null===i||void 0===i?void 0:i.sessionParticipantId)&&a===v.u.Print&&(t.push(i),e.push(null!==(r=i.sessionParticipantId)&&void 0!==r?r:0))})),0===e.length?p({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(Q);var i=Array(),r=0;e&&e.forEach((function(e){var t,a,n;r=null!==(t=e.userId)&&void 0!==t?t:0,i.push(v.me.fromJS({sessionId:null!==(a=e.sessionId)&&void 0!==a?a:0,isInstructor:null!==(n=e.isInstructor)&&void 0!==n&&n}))})),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,a=i.certificateDisplayStatusId;0!==(null===i||void 0===i?void 0:i.sessionParticipantId)&&a===v.u.Certificate&&(t.push(i),e.push(null!==(r=i.sessionParticipantId)&&void 0!==r?r:0))})),0===e.length)p({message:"No records selected.",variant:"warning"});else{var i=Array(),r=0;t&&t.forEach((function(e){var t,a;r=null!==(t=e.userId)&&void 0!==t?t:0,i.push(null!==(a=e.sessionParticipantId)&&void 0!==a?a:0)})),st({sessionParticipantDetails:i,userId:r}),rt(!0)}},pt=Object(r.useCallback)((function(){ce(Object(D.a)(Object(D.a)({},le),{},{page:1,pageSize:-1}))}),[le]),vt=Object(r.useState)({open:!1,sessionId:0,completionDate:void 0,participantId:0}),ft=Object(c.a)(vt,2),mt=ft[0],yt=ft[1],gt=Object(r.useCallback)((function(e,t){b(t).then((function(i){var r,a=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(a),S(e).then((function(e){Ve(e),Me(!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(){pt()}))}})}),[f,pt,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],Tt=null!==(n="".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!==n?n:"",Pt=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 P(Object(D.a)(Object(D.a)({},le),{},{pageSize:-1}),e);N("Transcript Report").then((function(e){e&&(B({name:e.name}),L(e.id).then((function(t){var i=Object(ea.v4)(),r=[];return t.forEach((function(e){var t,i,a,n,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===(a=le.searchCriteria)||void 0===a?void 0:a.find((function(e){return e.includes("License")}));c="".concat(h?h.split(": ")[1]:"");break;case"@filter_datefrom":var p=null===le||void 0===le||null===(n=le.searchCriteria)||void 0===n?void 0:n.find((function(e){return e.includes("StartDate")}));c="".concat(p?p.split(": ")[1]:"");break;case"@filter_dateto":var v=null===le||void 0===le||null===(o=le.searchCriteria)||void 0===o?void 0:o.find((function(e){return e.includes("EndDate")}));c="".concat(v?v.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:""})})),J({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 a.a.createElement(h.Typography,{variant:"body1"},Object(ii.e)(t.completionDate),t.shouldDisplayDateRange&&t.endDate&&Object(ii.e)(t.endDate)!==Object(ii.e)(t.startDate)&&" - ".concat(Object(ii.e)(t.endDate)||""))}},{width:15,accessor:"formatId",showOnMobile:!0,Cell:function(e){var t,i,r=e.row.original;return a.a.createElement(a.a.Fragment,null,0!==(null===r||void 0===r?void 0:r.formatId)?a.a.createElement(h.Tooltip,{title:null!==(t="Webcast"===r.formatPortalCategory?"Webinar":r.formatPortalCategory)&&void 0!==t?t:"",placement:"bottom"},a.a.createElement("span",null,a.a.createElement(za,{format:null!==(i=r.formatPortalCategory)&&void 0!==i?i:"",type:"duotone",color:"inherit",size:"sm"}))):a.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 a.a.createElement(h.Row,null,a.a.createElement(h.Expanded,null,a.a.createElement(h.Column,null,a.a.createElement(h.Typography,{variant:"body1"},"".concat(null===t||void 0===t?void 0:t.title).concat(i?" : ":"")),i&&a.a.createElement(h.Typography,{variant:"body1"},null===t||void 0===t?void 0:t.sessionTitle),a.a.createElement(h.Typography,{variant:"body1"},null===t||void 0===t?void 0:t.providerName),a.a.createElement(h.Row,{crossAxisAlignment:"middle"},0!==(null===t||void 0===t?void 0:t.sessionId)&&a.a.createElement(a.a.Fragment,null,0!==(null===t||void 0===t?void 0:t.locationId)&&a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{style:{marginBottom:"2px",marginRight:"8px",textAlign:"center",width:"20px"}},a.a.createElement(h.SystemIcon,{icon:"Location",color:"primary",type:"solid"})),a.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)&&a.a.createElement(a.a.Fragment,null,0!==(null===t||void 0===t?void 0:t.locationId)&&a.a.createElement("div",{style:{marginLeft:"16px",marginRight:"16px"}},"|"),a.a.createElement(h.Tooltip,{title:"Instructed",placement:"bottom"},a.a.createElement("span",null,a.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,n=e.row.original,o=n.userLicenseCreditValues,s=n.userLicensePropertyValues,l=n.completionDate,c=n.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===Q})))&&void 0!==r?r:[]));return a.a.createElement(a.a.Fragment,null,0!==(null===o||void 0===o?void 0:o.length)&&a.a.createElement(h.Typography,{variant:"body1"},function(e,t,i,r){if(e){var n=Object(x.uniq)(e.map((function(e){return e.licenseId})));return null===n||void 0===n?void 0:n.map((function(n){var o,s,l,c=e.filter((function(e){return e.licenseId===n})),d=c[0].licenseFullName,u=c[0].licenseStatus,p=c&&c[0].expirationDate,f=i.find((function(e){return e.licenseId===n&&"Reciprocal"===e.propertyLabel&&!0===e.valueBit})),m=r.length&&(null===r||void 0===r||null===(o=r.find((function(e){return e.licenseId===n})))||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 a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Typography,{variant:"body1"},e.value," ",e.creditName))}));return a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{style:{display:"flex",flexDirection:"row"}},a.a.createElement(h.Typography,null,d),f&&a.a.createElement(h.Typography,{variant:"caption",color:"default",component:"span"},a.a.createElement("i",null," (Reciprocal)")),u===v.Dd.Denied&&a.a.createElement(h.Typography,{variant:"caption",color:"secondary",component:"span"},a.a.createElement("i",null," (Denied)")),u===v.Dd.Pending&&a.a.createElement(h.Typography,{variant:"caption",color:"secondary",component:"span"},a.a.createElement("i",null," (Pending)"))),a.a.createElement("div",{style:{marginLeft:"32px"}},p&&null!==p&&Object(ii.f)(p)<=Object(ii.f)(t)||Object(x.isEmpty)(g)?"[No Credits]":g,!Object(x.isEmpty)(y)&&a.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 a.a.createElement(a.a.Fragment,null,0!==(null===i||void 0===i?void 0:i.length)&&a.a.createElement(h.Column,{flex:1},i&&i.map((function(e){var t,i,r;return a.a.createElement(h.Row,{flex:1,key:"".concat(e.fileId,"_mtrl")},a.a.createElement(h.Expanded,{flex:0,mr:1},a.a.createElement(cn,{fileExtension:null!==(t=null===(i=e.libraryFile)||void 0===i?void 0:i.extension)&&void 0!==t?t:"",color:"primary",type:"duotone",size:"sm"})),a.a.createElement(h.Expanded,null,a.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 a.a.createElement(a.a.Fragment,null,i!==v.u.NotApplicable?a.a.createElement(h.Tooltip,{title:i===v.u.Upload?"Upload Certificate":"View Certificate",placement:"bottom"},a.a.createElement("span",null,a.a.createElement(h.IconButton,{onClick:function(){return dt(t)}},a.a.createElement(Id,{status:i,color:i===v.u.Upload?"secondary":"primary",type:"duotone",size:"md"})))):a.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 a.a.createElement(a.a.Fragment,null,(null===t||void 0===t?void 0:t.evaluationDisplayStatusId)===v.Lb.NotApplicable?a.a.createElement(a.a.Fragment,null):a.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),Pe(!0))}},(null===t||void 0===t?void 0:t.evaluationDisplayStatusId)===v.Lb.ViewEvaluation?"View Evaluation":"Evaluate"))}},{Header:"",width:50,accessor:"transcriptId",showOnMobile:!0,Cell:function(e){var t,i,r,n,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,p=null!==(r=null===s||void 0===s?void 0:s.sessionParticipantId)&&void 0!==r?r:0,f=null!==(n=null===s||void 0===s?void 0:s.sessionId)&&void 0!==n?n:0,m=null!==(o=s.completionDate)&&void 0!==o?o:void 0;return a.a.createElement(a.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)?a.a.createElement(Dn,{menu:[{label:"Adjust Credits",disable:v.ke.Validated!==u||l||c,icon:a.a.createElement(h.SystemIcon,{icon:"AdjustedCredits"}),onClick:function(){Xe(null===s||void 0===s?void 0:s.title),gt(p,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:a.a.createElement(h.SystemIcon,{icon:"Calendar"}),disable:!(v.ke.Validated===u||v.ke.Failed===u)||!d||l||c,onClick:function(){!function(e,t,i){yt({open:!0,sessionId:i,completionDate:t,participantId:e})}(p,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:a.a.createElement(h.SystemIcon,{icon:"Delete"}),disable:l||c,onClick:function(){bt(p,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."}]}):a.a.createElement(a.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 a.a.createElement(a.a.Fragment,null,me&&0!==me.recordCount?a.a.createElement(a.a.Fragment,null,me.yearGrouping&&me.yearGrouping.map((function(e){return a.a.createElement(h.Grid,{item:!0,xs:12,key:e},a.a.createElement(kd,{year:e,columns:Ft(),records:Se&&Se.filter((function(t){return t.yearGrouping===e})),summaryRecords:me}))}))):a.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0,alignContent:"center",alignItems:"center",alignment:"center"},a.a.createElement(h.Widget,null,a.a.createElement("div",null,a.a.createElement("div",{style:{width:"100%",minHeight:"64px",backgroundColor:"#F1F1F1"}},a.a.createElement("div",{style:{marginLeft:"16px"}},a.a.createElement(A.a,{title:""}))),a.a.createElement("div",{style:{width:"100%"}},a.a.createElement(T.a,null,a.a.createElement(h.Typography,{variant:"body1",align:"center"},"NO RECORDS FOUND")))))))}),[me,Se,Ft]);return a.a.createElement(h.Screen,{maxWidth:"xl",titleBar:{title:(V&&""!==V.title?V.title:"Transcripts")||"Transcripts",description:V?null!==V.shortDescription&&""!==V.shortDescription&&a.a.createElement(h.Column,null,a.a.createElement(h.TextEditorView,{model:Object(k.a)(V.shortDescription)}),null!==V.text&&""!==V.text&&a.a.createElement("div",{style:{marginTop:"32px"}},a.a.createElement(h.Button,{variant:"outlined",size:"small",onClick:function(){return K(!0)}},"Show More"))):a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{style:{marginTop:"40px"}},a.a.createElement(h.Skeleton,{width:"100%",height:20,variant:"rect"})),a.a.createElement("div",{style:{marginTop:"16px"}},a.a.createElement(h.Skeleton,{width:"100%",height:20,variant:"rect"})))}},a.a.createElement("div",{style:{height:"100%"}},a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},a.a.createElement(wa.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(Ta.object)().shape({filterType:Object(Ta.array)().nullable(),startDate:Object(Ta.date)().nullable().typeError("Please enter date in ".concat(Object(ii.l)()," format or select from the calendar")),endDate:Object(Ta.date)().nullable().min(Object(Ta.ref)("startDate"),"End date should be later than start date").typeError("Please enter date in ".concat(Object(ii.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(ii.i)(i))),null!==r&<.push("EndDate: ".concat(Object(ii.i)(r)));var a=t;a>0?lt.push("License: ".concat(t)):lt.push("Type: ".concat(t)),Lt(a),ce(Object(D.a)(Object(D.a)({},le),{},{page:1,searchCriteria:lt}))}},(function(e){var t,i=e.setFieldValue,r=e.submitForm,n=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 a.a.createElement(h.Form,{id:"user-transcript-filter",formikContext:!0},a.a.createElement(h.Grid,{container:!0,spacing:"form",alignItems:"center"},a.a.createElement(h.Grid,{item:!0,xs:12,sm:3,md:3,key:"Type",stretchContent:!0},a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:U?10:12,stretchContent:!0},a.a.createElement(h.SelectField,{formikContext:!0,startAdornment:"Filter By:",id:"filterType",onChange:function(e){return i("filterType",e.target.value),void r()},dense:!0},a.a.createElement(h.MenuItem,{value:0},"All Courses and Activities"),a.a.createElement(h.MenuItem,{value:-1},"All Activities"),a.a.createElement(h.MenuItem,{value:-2},"All Courses"),a.a.createElement(h.MenuItem,{disabled:!0,value:""},a.a.createElement("em",null,a.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,a,n;return(null!==(i=e.name)&&void 0!==i?i:"")>(null!==(r=t.name)&&void 0!==r?r:"")?1:(null!==(a=e.name)&&void 0!==a?a:"")<(null!==(n=t.name)&&void 0!==n?n:"")?-1:0})).map((function(e){return a.a.createElement(h.MenuItem,{key:e.licenseId,value:e.licenseId},a.a.createElement("div",{style:{marginLeft:"32px"}},e.name))}))))),a.a.createElement(h.Hidden,{xsUp:!U},a.a.createElement(h.Grid,{item:!0,xs:2,alignment:"center-right",alignContent:"space-between",alignItems:"flex-end"},a.a.createElement(Dn,{title:U?"":"Actions",icon:a.a.createElement(h.SystemIcon,{icon:"SystemConfiguration",type:"solid",size:"sm"}),menu:[{label:"Download Third-Party Provided Certificates",icon:a.a.createElement(h.SystemIcon,{icon:"Download"}),onClick:ht},{label:"Print Certificates for Firm-Provided Courses",icon:a.a.createElement(h.SystemIcon,{icon:"Print"}),onClick:ut},{label:"Export",icon:a.a.createElement(h.SystemIcon,{icon:"Export"}),onClick:function(){return te(!0)}},{label:"Add Program Attendance",icon:a.a.createElement(h.SystemIcon,{icon:"Add"}),onClick:function(){var e,t;return Pt("".concat(null!==Tt&&void 0!==Tt?Tt:""," (").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:!(ae&&ie&&((null===C||void 0===C?void 0:C.idpId)||"")!==((null===re||void 0===re?void 0:re.idpId)||""))}]}))))),a.a.createElement(h.Grid,{item:!0,xs:12,sm:6,md:4,key:"DateRange",stretchContent:!0},a.a.createElement(h.Grid,{container:!0,spacing:"form",alignItems:"center"},a.a.createElement(h.Grid,{item:!0,xs:5,key:"startDate",stretchContent:!0},a.a.createElement(h.DateTimeField,{formikContext:!0,id:"startDate",type:"date",placeholder:"Start Date",onChange:function(e,t){return n(e,t)},dense:!0,format:Object(ii.l)()})),a.a.createElement(h.Grid,{item:!0,xs:5,key:"endDate",stretchContent:!0},a.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(ii.l)()})),a.a.createElement(h.Grid,{item:!0,xs:2,key:"clearKey",stretchContent:!0},At&&a.a.createElement(h.Button,{size:"small",variant:"text",color:"primary",onClick:function(){return Lt(0),void ce(Object(D.a)(Object(D.a)({},le),{},{page:1,pageSize:-1,searchCriteria:["Type: 0"]}))}},a.a.createElement(h.SystemIcon,{icon:"ClearFilters",color:"secondary"}))))),a.a.createElement(h.Hidden,{smDown:U},a.a.createElement(h.Grid,{item:!0,xs:12,sm:3,md:5,alignment:"center-right",alignContent:"space-between",alignItems:"flex-end"},a.a.createElement(Dn,{title:"Actions",icon:a.a.createElement(h.SystemIcon,{icon:"SystemConfiguration",type:"solid",size:"sm"}),menu:[{label:"Download Third-Party Provided Certificates",icon:a.a.createElement(h.SystemIcon,{icon:"Download"}),onClick:ht},{label:"Print Certificates for Firm-Provided Courses",icon:a.a.createElement(h.SystemIcon,{icon:"Print"}),onClick:ut},{label:"Export",icon:a.a.createElement(h.SystemIcon,{icon:"Export"}),onClick:function(){return te(!0)}},{label:"Add Program Attendance",icon:a.a.createElement(h.SystemIcon,{icon:"Add"}),onClick:function(){var e,t;return Pt("".concat(null!==Tt&&void 0!==Tt?Tt:""," (").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:!(ae&&ie&&((null===C||void 0===C?void 0:C.idpId)||"")!==((null===re||void 0===re?void 0:re.idpId)||""))}]})))))}))),he?a.a.createElement(a.a.Fragment,null,[2020,2019,2018,2017].map((function(e){return a.a.createElement(h.Grid,{item:!0,xs:12,key:e},a.a.createElement(h.Widget,null,a.a.createElement(h.ExpansionPanel,{disabled:!0,summary:a.a.createElement(a.a.Fragment,null),details:a.a.createElement(a.a.Fragment,null)})))}))):a.a.createElement(a.a.Fragment,null,Bt)),Ce.open&&a.a.createElement(Td,{open:Ce.open,sessionParticipantId:Ce.sessionParticipantId,onClose:function(){xe({open:!1,sessionParticipantId:0})},onSuccess:function(){return pt()}}),Fe.open&&a.a.createElement(jd,{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}),Te&&ke&&ke>0&&a.a.createElement(To,{open:Te,sessionEvaluationId:ke,onClose:function(){Pe(!1)},onSubmit:function(){ye(void 0),Ee(void 0),pe(!0),I(le).then((function(e){void 0!==e&&(ye(e),Ee(e.userTranscripts)),pe(!1)})),Pe(!1)}}),mt&&a.a.createElement(wd,{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(){pt()}}),Ge&&a.a.createElement(Pd,{open:Ge,participants:[$e||{}],onSuccess:function(){return pt()},onClose:function(){return Me(!1)},title:"Adjust Credits for ".concat(Ze),selectedParticipantUserLevel:We}),It&&a.a.createElement(hd,{open:It,onClose:function(){wt({name:"",userId:0}),Ot(!1),Lt(0),ce(Object(D.a)(Object(D.a)({},le),{},{page:1,pageSize:-1,searchCriteria:["Type: 0"]}))},setOpen:Ot,name:jt.name,userId:jt.userId}),it&&a.a.createElement(Nd,{open:it,onClose:function(){rt(!1)},onConfirmation:function(){return y(ot)}})),a.a.createElement(Ea,{open:H,onClose:function(){return K(!1)},title:(V&&""!==V.title?V.title:"Transcripts")||"Transcripts",description:null===V||void 0===V?void 0:V.text}),ee&&a.a.createElement(Cd,{open:ee,exportToCsv:function(){return Jt("csv")},exportToXls:function(){return Jt("xlsx")},exportToPdf:function(){return Jt("pdf")},pdfDisabled:null===F,onClose:function(){te(!1)}}))}))),Ld=i(1043),Jd=i(323),Fd=i.n(Jd),Bd=function(e){var t=e.items;if(void 0===t)return a.a.createElement(a.a.Fragment,null);if(t&&t.length<=1)return a.a.createElement("span",null,t[0]);var i=t[0],r=t.splice(1,t.length);return a.a.createElement(h.Row,null,a.a.createElement(h.Expanded,{flex:0,mr:1},a.a.createElement("span",null,i,",")),a.a.createElement(h.Tooltip,{title:r.join(" \u2022 ")},a.a.createElement("span",null," +",r.length)))},Rd=function(){var e=new Date,t=Object(ii.h)(e).getDate(),i=Object(ii.h)(e).getMonth()+1,r=Object(ii.h)(e).getDay();if(i<3||i>11)return!1;if(i>3&&i<11)return!0;var a=t-r;return 3===i?a>=8:11===i&&a<=0},Ud=function(e){var t=e.onClose,i=e.open,r=e.setOpenImageUpload,n=e.onDelete,o=e.hasDelete,s=e.isDeleting;return a.a.createElement(h.Dialog,{open:i,onClose:t,maxWidth:"xs",fullWidth:!0},a.a.createElement(Ia.DialogHeader,{titleBar:{title:"Edit Avatar",onClose:t}}),a.a.createElement(Ia.DialogBody,null,a.a.createElement(h.Grid,{container:!0,spacing:"form",alignContent:"center",alignItems:"center",justify:"center"},a.a.createElement(h.Grid,{item:!0,xs:12,md:12,lg:12},a.a.createElement(h.Card,{variant:"outlined"},a.a.createElement(h.CardActionArea,{onClick:function(){r(!0),t()}},a.a.createElement(h.ListItem,null,a.a.createElement(h.Row,{mainAxisAlignment:"center",crossAxisAlignment:"middle"},a.a.createElement(h.Box,{m:1,flex:1},a.a.createElement(h.SystemIcon,{icon:"Camera",size:"lg",color:"primary"})),a.a.createElement(h.Expanded,null,a.a.createElement(h.ListItemText,{primary:"Upload Avatar"}))))))),o&&a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.Card,{variant:"outlined"},a.a.createElement(h.CardActionArea,{onClick:function(){return n&&n()}},a.a.createElement(h.ListItem,null,a.a.createElement(h.Row,{mainAxisAlignment:"center",crossAxisAlignment:"middle"},a.a.createElement(h.Box,{m:1,flex:1},a.a.createElement(h.SystemIcon,{icon:"Delete",size:"lg",color:"primary"})),a.a.createElement(h.Expanded,null,a.a.createElement(h.ListItemText,{primary:"Remove Avatar"})),a.a.createElement(h.Box,{m:1,flex:1},s&&a.a.createElement(h.SystemIcon,{icon:"Loading",size:"sm",spin:!0}))))))))))},Gd=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,n=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],p=d[1],f=Object(r.useRef)();Object(r.useEffect)((function(){o&&p(!1)}),[o,p]),Object(r.useEffect)((function(){u&&f.current&&f.current.resetForm()}),[f,u]);var m=function(){var e=Object(Ta.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(Ta.object)().shape({oldPassword:m(),newPassword:m(),confirmPassword:m().when("newPassword",{is:function(e){return!!(e&&e.length>0)},then:Object(Ta.string)().oneOf([Object(Ta.ref)("newPassword")],"Passwords does not match")})}),onSubmit:function(e,t){var i=e.oldPassword,r=e.newPassword,a=e.confirmPassword,o=new v.w({oldPassword:i,newPassword:r,confirmPassword:a});n(o).then((function(e){e?(t.setSubmitting(!e),p(!e)):(t.setSubmitting(!1),p(!0))}))}};return a.a.createElement(wa.Formik,{initialValues:y.initialValues,validationSchema:y.validationSchema,onSubmit:y.onSubmit,enableReinitialize:!0,validateOnChange:!1,innerRef:f},(function(e){return a.a.createElement("div",{id:"userPasswordForm"},a.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)?a.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},a.a.createElement(h.Card,{style:{backgroundColor:"#E5F3FA",height:40}},a.a.createElement(h.Box,{color:"#026799",marginTop:.75,marginBottom:.5,marginLeft:1},a.a.createElement(h.Typography,{variant:"body1",align:"left",style:{color:"#026799"}},a.a.createElement(h.SystemIcon,{icon:"Info",size:"sm"}),"\xa0\xa0\xa0A temporary password will be sent when finished. Email is required.")))):u?a.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},a.a.createElement(h.Card,{variant:"outlined",background:"default"},a.a.createElement(h.CardContent,null,a.a.createElement(h.Grid,{container:!0,spacing:"card"},a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.TextField,{required:!0,id:"oldPassword",label:"Current Password",type:"new-password",fullWidth:!0})),a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.TextField,{required:!0,id:"newPassword",label:"New Password",type:"new-password",fullWidth:!0})),a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.TextField,{required:!0,id:"confirmPassword",label:"Confirm New Password",type:"new-password",fullWidth:!0})),u&&a.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Button,{color:"default",variant:"outlined",onClick:function(){return p(!1)}},"Cancel"),a.a.createElement(h.Button,{variant:"outlined",color:"primary",loading:e.isSubmitting,disabled:!e.dirty,onClick:function(){e.submitForm()}},"Save"))))))):a.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},a.a.createElement(h.TextField,{label:"Password",value:"**********",disabled:!0,endAdornment:a.a.createElement(h.Button,{variant:"text",color:"primary",onClick:function(){p(!0)},disabled:t},a.a.createElement(h.Tooltip,{title:"Change your password."},a.a.createElement("span",null,"Change")))}))))}))})),Md=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 U.D.uploadUsersignature(t,void 0,r).then((function(e){return e})).catch((function(e){throw i(Object(G.b)(e)),e}))}}(t,i))},deleteSignature:function(t){return e(function(e){return function(t){return U.D.deleteUserSignature(void 0,v.Cb.fromJS(new v.Cb({userId:e}))).then((function(){return Promise.resolve()})).catch((function(e){throw t(Object(G.b)(e)),e}))}}(t))}}}))((function(e){var t=e.isLoading,i=e.userId,n=e.uploadSignature,o=e.deleteSignature,s=e.logoUrl,l=E(v.Kd.ViewPortalUserPreference),d=Object(r.useState)(!1),u=Object(c.a)(d,2),p=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),T=w[0],P=w[1],A=Object(r.useState)(!1),N=Object(c.a)(A,2),k=N[0],D=N[1],L=Fd()();return Object(r.useEffect)((function(){t||C(s)}),[t,s]),a.a.createElement(h.Box,{marginTop:2},a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"top-left"},a.a.createElement(h.Column,null,a.a.createElement(h.Typography,{variant:"h5"},"Signature"),a.a.createElement(h.Typography,{variant:"caption",color:"textSecondary"},"Add signature for auto-population"))),a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"bottom-left"},a.a.createElement(h.Column,null,(null===g||void 0===g?void 0:g.data)?a.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?a.a.createElement(h.Skeleton,{variant:"rect",width:320,height:80}):a.a.createElement(a.a.Fragment,null,O&&!Object(x.isEmpty)(O)?a.a.createElement("img",{src:O,alt:"Change Signature",title:"Change Signature",width:"270px",height:"auto"}):a.a.createElement(h.Card,{background:"grey",variant:"outlined"},a.a.createElement(h.CardContent,{style:{width:"270px",height:"auto"},onClick:function(){f(l)},title:"Add Signature",color:"red"},a.a.createElement(h.Grid,{container:!0},a.a.createElement(h.Grid,{item:!0,alignment:"center"},a.a.createElement(h.Column,{mainAxisAlignment:"middle",crossAxisAlignment:"center"},a.a.createElement(h.Typography,{color:"default",variant:"h5"},"[Add Here]"))))))),a.a.createElement(h.Row,{mainAxisAlignment:"end"},a.a.createElement(h.Box,{m:.5},a.a.createElement(h.ButtonGroup,{disabled:!l||t,variant:"outlined",color:"primary"},a.a.createElement(h.Button,{size:"small",color:"primary",disabled:void 0===O||null===O,loading:T,onClick:function(){P(!0),o(i).then((function(){L("Signature Deleted","success"),P(!1),b(null),C(void 0)}))}},a.a.createElement(h.SystemIcon,{icon:"Delete"})),a.a.createElement(h.Button,{size:"small",color:"primary",loading:k,onClick:function(){f(!0)}},a.a.createElement(h.SystemIcon,{icon:"Edit"}))))))),a.a.createElement(h.Grid,{item:!0,xs:12})),a.a.createElement(h.ImageUpload,{onClose:function(){f(!1)},open:p,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),n(t,i).then((function(){L("Signature Uploaded","success"),D(!1),b(t),C(t.url)}))}}))})),qd=Object(z.makeStyles)((function(e){return{large:{width:e.spacing(8),height:e.spacing(8)}}})),zd=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 a={data:e.data,fileName:e.name},n=r().users,o=n.loggedUser,s=n.authenticatedUser;return U.D.uploadUserAvatar(t,void 0,a).then((function(e){return o&&o.userId===t&&i(Object(Ys.d)(e)),s&&s.userId===t&&i(Object(Ys.b)(e)),e})).catch((function(e){throw i(Object(G.b)(e)),e}))}}(t,i))},deleteAvatar:function(t){return e(function(e){return function(t,i){var r=i().users,a=r.loggedUser,n=r.authenticatedUser;return U.D.deleteUserAvatar(void 0,v.yb.fromJS(new v.yb({userId:e}))).then((function(){return a&&a.userId===e&&t(Object(Ys.d)(null)),n&&n.userId===e&&t(Object(Ys.b)(null)),Promise.resolve()})).catch((function(e){throw t(Object(G.b)(e)),e}))}}(t))},updateUserPreferences:function(t){return e(Object(C.i)(t))}}})),Wd=[{path:"/",exact:!0,title:"Root",component:Ac},{path:"/signin",exact:!0,title:"Sign In",component:na},{path:"/expire",exact:!0,title:"Expire",component:ha},{path:"/signout",exact:!0,title:"Sign Out",component:fa},{path:"/signedout",exact:!0,title:"Signed Out",component:ya},{path:"/redirect",exact:!0,title:"Home",component:ca},{path:"/home",exact:!0,title:"Home",icon:{source:"system",value:"Home"},component:Bs,private:!0,showInNavMenu:!0},{path:"/course-catalog",exact:!0,title:"Course Catalog",icon:{source:"system",value:"Courses"},component:Eo,private:!0,showInNavMenu:!0},{path:"/course-calendar",exact:!0,title:"Course Calendar",icon:{source:"system",value:"Calendar"},component:io,private:!0,showInNavMenu:!0},{path:"/course-player",exact:!0,title:"Course Media Player",icon:{source:"system",value:"Courses"},component:qo,private:!0,showInNavMenu:!1},{path:"/learning-package-player",exact:!0,title:"Learning Package Player",icon:{source:"system",value:"Courses"},component:zo,private:!1,showInNavMenu:!1,routes:[{path:"/closeWindow",exact:!1,title:"Reports",private:!1,showInNavMenu:!1,component:Wo}]},{path:"/user-courses",exact:!1,title:"My Courses",icon:{source:"system",value:"MyCourses"},component:Pc,private:!0,showInNavMenu:!0},{path:"/compliance",exact:!0,title:"Compliance",icon:{source:"system",value:"Cem-Compliance"},component:en,private:!0,showInNavMenu:!0},{path:"/learning-plans",exact:!1,title:"Learning Plans",icon:{source:"system",value:"LearningPlans"},component:dc,private:!0,showInNavMenu:!0},{path:"/development-plans",exact:!0,title:"Development Plans",icon:{source:"system",value:"DevelopmentPlan"},component:Js,private:!0,showInNavMenu:!0},{path:"/transcripts",exact:!0,title:"Transcripts",icon:{source:"system",value:"Transcript"},component:Dd,private:!0,showInNavMenu:!0},{path:"/users",exact:!0,title:"System Users",icon:{source:"system",value:"User"},component:Bs,private:!0,showInNavMenu:!1,routes:[{path:"/preference",exact:!0,title:"User Preferences",icon:{source:"system",value:"User"},private:!0,showInNavMenu:!1,component:Object(oo.a)(zd((function(e){var t,i,n,o,l=e.history,d=e.dateFormats,u=e.timezones,p=e.getUserPreferences,f=e.getSystemTables,m=e.uploadAvatar,y=e.deleteAvatar,g=e.updateUserPreferences,b=qd(),S=Fd()(),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),T=w[0],P=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),M=G[0],q=G[1],z=null===E||void 0===E||null===(t=E.userRelationship)||void 0===t||null===(i=t.filter((function(e){return e.relationshipTypeId===v.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(),p().then((function(e){P(e),x(!1)}))}),[E,f,p,P,x]);var W=function(){var e;q(!0),y(null!==(e=null===E||void 0===E?void 0:E.userId)&&void 0!==e?e:0).then((function(){q(!1),R(!1),S("Avatar is removed.","success")}))},V=function(){var e,t,i,r,n,o,s;return a.a.createElement(a.a.Fragment,null,a.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")}))}}),a.a.createElement(h.Grid,{container:!0,spacing:"card"},a.a.createElement(h.Grid,{item:!0,xs:12,md:5},a.a.createElement(h.Row,{crossAxisAlignment:"middle"},a.a.createElement(h.Box,{m:1},C?a.a.createElement(h.Skeleton,{width:50,height:50,variant:"circle"}):a.a.createElement(h.IconButton,{onClick:function(){return null==(null===E||void 0===E?void 0:E.userAvatar)?L(!0):R(!0)}},a.a.createElement(h.Tooltip,{title:null==(null===E||void 0===E?void 0:E.userAvatar)?"Upload Avatar":"Change/Remove Avatar",placement:"bottom"},a.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])):a.a.createElement("img",{src:null===(e=E.userAvatar)||void 0===e?void 0:e.userAvatarThumbnailURl,alt:"Loading...",width:"100%"}))))),a.a.createElement(h.Column,{crossAxisAlignment:"left"},C?a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Box,{mb:1},a.a.createElement(h.Skeleton,{width:250,height:20,variant:"rect"})),a.a.createElement(h.Box,{mb:1},a.a.createElement(h.Skeleton,{width:250,height:50,variant:"rect"})),a.a.createElement(h.Box,{mb:1},a.a.createElement(h.Skeleton,{width:100,height:20,variant:"rect"}))):a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Box,{mb:1.5},a.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular",color:"primary"},null===E||void 0===E?void 0:E.email),a.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)),a.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"}))))),a.a.createElement(h.Grid,{item:!0,xs:12,md:2},a.a.createElement(h.Column,{crossAxisAlignment:"left"},a.a.createElement(h.Box,{mb:2},a.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular",color:"textSecondary"},"Personnel ID"),a.a.createElement(h.Box,{mt:1},C?a.a.createElement(h.Skeleton,{width:100,height:20,variant:"rect"}):a.a.createElement(h.Typography,{variant:"body1",weight:"semi-bold"},null===E||void 0===E?void 0:E.personnelId))),a.a.createElement(h.Box,{mb:2},a.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular",color:"textSecondary"},"Hired Date"),a.a.createElement(h.Box,{mt:1},C?a.a.createElement(h.Skeleton,{width:100,height:20,variant:"rect"}):a.a.createElement(h.Typography,{variant:"body1",weight:"semi-bold"},Object(N.c)(null===E||void 0===E?void 0:E.hireDate)))),a.a.createElement(h.Box,{mb:2},a.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular",color:"textSecondary"},"Office"),a.a.createElement(h.Box,{mt:1},C?a.a.createElement(h.Skeleton,{width:100,height:20,variant:"rect"}):a.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:"-"))))),a.a.createElement(h.Grid,{item:!0,xs:12,md:2},a.a.createElement(h.Column,{crossAxisAlignment:"left"},a.a.createElement(h.Box,{mb:2},a.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular",color:"textSecondary"},"Departments"),a.a.createElement(h.Box,{mt:1},C?a.a.createElement(h.Skeleton,{width:100,height:20,variant:"rect"}):a.a.createElement(h.Typography,{variant:"body1"},a.a.createElement(Bd,{items:(null===E||void 0===E?void 0:E.userType)===v.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})):["-"]})))),a.a.createElement(h.Box,{mb:2},a.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular",color:"textSecondary"},"Practice Areas"),a.a.createElement(h.Box,{mt:1},C?a.a.createElement(h.Skeleton,{width:100,height:20,variant:"rect"}):a.a.createElement(h.Typography,{variant:"body1"},a.a.createElement(Bd,{items:(null===E||void 0===E?void 0:E.userType)===v.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===(n=E.userPracticeArea)||void 0===n?void 0:n.map((function(e){return e.name})):["-"]})))),a.a.createElement(h.Box,{mb:2},a.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular",color:"textSecondary"},"Levels"),a.a.createElement(h.Box,{mt:1},C?a.a.createElement(h.Skeleton,{width:100,height:20,variant:"rect"}):a.a.createElement(h.Typography,{variant:"body1"},a.a.createElement(Bd,{items:(null===E||void 0===E?void 0:E.userType)===v.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})):["-"]})))))),a.a.createElement(h.Grid,{item:!0,xs:12,md:2},a.a.createElement(h.Column,{crossAxisAlignment:"left"},a.a.createElement(h.Box,{mb:2},a.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular",color:"textSecondary"},"Class Year"),a.a.createElement(h.Box,{mt:1},C?a.a.createElement(h.Skeleton,{width:100,height:20,variant:"rect"}):a.a.createElement(h.Typography,{variant:"body1"},a.a.createElement(Bd,{items:(null===E||void 0===E?void 0:E.userType)===v.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)===v.Re.Administrator&&a.a.createElement(h.Box,{mb:2},a.a.createElement(h.Typography,{variant:"subtitle1",weight:"regular",color:"textSecondary"},"Administrative Assistant"),a.a.createElement(h.Box,{mt:1},C?a.a.createElement(h.Skeleton,{width:100,height:20,variant:"rect"}):a.a.createElement(h.Typography,{variant:"body1"},a.a.createElement(Bd,{items:z&&z.length>0?z:["-"]}))))))))},_=function(){return a.a.createElement(h.Grid,{spacing:"form",container:!0},a.a.createElement(h.Grid,{item:!0,xs:12}),a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"top-left"},a.a.createElement(h.Column,null,a.a.createElement(h.Typography,{variant:"h5"},"Security"),a.a.createElement(h.Typography,{variant:"caption",color:"textSecondary"},"Login"))),a.a.createElement(h.Grid,{item:!0,lg:4,md:6,xs:12,alignment:"top-left",stretchContent:!0},C?a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},a.a.createElement(h.Skeleton,{width:215,height:50,variant:"rect"})),a.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},a.a.createElement(h.Skeleton,{width:215,height:50,variant:"rect"}))):a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.TextField,{formikContext:!0,fullWidth:!0,id:"userName",label:"Login ID",disabled:!0})),a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(Gd,{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)})))),a.a.createElement(h.Grid,{item:!0,xs:12}))},Y=function(){return a.a.createElement(h.Grid,{spacing:"form",container:!0},a.a.createElement(h.Grid,{item:!0,xs:12}),a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"top-left"},a.a.createElement(h.Column,null,a.a.createElement(h.Typography,{variant:"h5"},"Date & Time Zone"),a.a.createElement(h.Typography,{variant:"caption",color:"textSecondary"},"Set default time zone and date format"))),a.a.createElement(h.Grid,{item:!0,md:8,xs:12,alignment:"top-left",stretchContent:!0},a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.SelectField,{label:"Date Format",formikContext:!0,id:"dateFormat",fullWidth:!0,variant:"outlined",loading:C},d&&d.map((function(e){return a.a.createElement(h.MenuItem,{key:e.dateFormatId,value:e.name},e.name)})))),a.a.createElement(h.Grid,{item:!0,xs:12},a.a.createElement(h.SelectField,{label:"Time Zone",formikContext:!0,id:"timezone",fullWidth:!0,variant:"outlined",loading:C},u&&u.map((function(e){return a.a.createElement(h.MenuItem,{key:e.timezoneId,value:e.timezoneId},Rd()?e.dstName:e.name)})))),a.a.createElement(h.Grid,{item:!0,xs:12}))),a.a.createElement(h.Grid,{item:!0,xs:12}))},$={initialValues:{userName:E&&E.userName,dateFormat:null!==(n=null===T||void 0===T?void 0:T.dateFormat)&&void 0!==n?n:"",timezone:null!==(o=null===T||void 0===T?void 0:T.timezone)&&void 0!==o?o:""},validationSchema:Object(Ta.object)().shape({language:Object(Ta.string)().nullable(),dateFormat:Object(Ta.string)().nullable(),timezone:Object(Ta.string)().nullable()}),onSubmit:function(e,t){var i=e.dateFormat,r=e.timezone;t.setSubmitting(!0);var a=new v.He({dateFormat:i,timezone:r});g(a).then((function(e){t.setSubmitting(!1),P(e)}))}};return a.a.createElement(wa.Formik,{initialValues:$.initialValues,validationSchema:$.validationSchema,onSubmit:$.onSubmit,enableReinitialize:!0},(function(e){var t;return a.a.createElement(h.Screen,{titleBar:{title:"User Preferences",actionRow:a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Button,{variant:"outlined",size:"small",color:"default",onClick:function(){l&&l.goBack()}},"Back"),a.a.createElement(h.Box,{m:1},a.a.createElement(h.Button,{size:"small",variant:"contained",color:"primary",disabled:!e.dirty,onClick:function(){return e.submitForm()},loading:e.isSubmitting},"Save")))}},a.a.createElement(V,null),a.a.createElement(h.Divider,null),a.a.createElement(h.Grid,{container:!0,spacing:"form"},a.a.createElement(h.Grid,{item:!0,md:6,sm:12,stretchContent:!0},a.a.createElement(Y,null)),a.a.createElement(h.Grid,{item:!0,md:6,sm:12,stretchContent:!0},a.a.createElement(Md,{isLoading:C,userId:null!==(t=E&&E.userId)&&void 0!==t?t:0,logoUrl:null===T||void 0===T?void 0:T.signatureUrl}))),a.a.createElement(h.Divider,null),a.a.createElement(_,null),a.a.createElement(h.Divider,null),B&&a.a.createElement(Ud,{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:M}))}))})))},{path:"/admin",exact:!0,title:"My Portal",icon:{source:"system",value:"User"},private:!0,showInNavMenu:!1,component:Ld.a}]},{path:"/team-view",exact:!0,title:"Team View",icon:{source:"system",value:"People"},component:bd,private:!0,showInNavMenu:!0},{path:"/instructor-view",exact:!0,title:"Instructor View",icon:{source:"system",value:"Cem-Webinar"},component:Gl,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:Di},{path:"/certificatetemplate/preview/user/:userId",exact:!0,title:"Certificate Template Preview",icon:void 0,private:!1,showInNavMenu:!1,component:Ni},{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:Qr},{path:"/help",exact:!0,title:"CE Manager Help",icon:void 0,private:!1,showInNavMenu:!1,component:Zr},{path:"/developmentPlan/print",exact:!0,title:"Development Plan Print Preview",icon:void 0,private:!1,showInNavMenu:!1,component:ls},{path:"/developmentrecord/print",exact:!0,title:"Development Record Print Preview",icon:void 0,private:!1,showInNavMenu:!1,component:Ts},{path:"/developmentoverallreflection/print",exact:!0,title:"Development Overall Reflection Print Preview",icon:void 0,private:!1,showInNavMenu:!1,component:Ds},{path:"/developmentPlan/developmentLearningRecord/print/:isConfirmed",exact:!0,title:"Development Plan Learning Record Preview",icon:void 0,private:!1,showInNavMenu:!1,component:os},{path:"/printComplianceReport/print",exact:!0,title:"Compliance Report",icon:void 0,private:!1,showInNavMenu:!1,component:rn},{path:"/report/compliance/:guid",exact:!0,title:"Compliance Report",icon:void 0,private:!1,showInNavMenu:!1,component:Mc},{path:"/report/learning-plans/:guid",exact:!0,title:"Learning Plan Report",icon:void 0,private:!1,showInNavMenu:!1,component:Yc},{path:"/report/transcript/:guid",exact:!0,title:"Transcript Report",icon:void 0,private:!1,showInNavMenu:!1,component:Xc},{path:"/announcement/:guid",exact:!0,title:"Announcement",icon:void 0,private:!1,showInNavMenu:!1,component:Bc},{path:"/session/:guid",exact:!0,title:"Session",icon:void 0,private:!1,showInNavMenu:!1,component:Bc},{path:"/invite/:guid",exact:!0,title:"Session Invite",icon:void 0,private:!1,showInNavMenu:!1,component:Bc},{path:"/certificate/:guid",exact:!0,title:"Certificate",icon:void 0,private:!1,showInNavMenu:!1,component:Gc},{path:"/evaluation/:guid",exact:!0,title:"Evaluation Request",icon:void 0,private:!1,showInNavMenu:!1,component:Wc},{path:"/decline-evaluation/:guid",exact:!0,title:"Decline Confirmation",icon:void 0,private:!1,showInNavMenu:!1,component:zc},{path:"/registration/:guid",exact:!0,title:"Registration",icon:void 0,private:!1,showInNavMenu:!1,component:Bc},{path:"/schedule/registration/:guid",exact:!0,title:"Registration",icon:void 0,private:!1,showInNavMenu:!1,component:Bc},{path:"/materials/:guid",exact:!0,title:"Materials",icon:void 0,private:!1,showInNavMenu:!1,component:Hc},{path:"/learning-plan/:guid",exact:!0,title:"Learning Plan Registration",icon:void 0,private:!1,showInNavMenu:!1,component:_c},{path:"/attendance-sheet/:guid",exact:!0,title:"Attendance Sheet",icon:void 0,private:!1,showInNavMenu:!1,component:Uc}],Vd=[{label:"User",items:[{label:"Preferences",path:"/users/preference",icon:a.a.createElement(h.SystemIcon,{icon:"Preferences"})}]}],_d=[{label:"User",items:[{label:"Admin View",path:"/users/admin",icon:a.a.createElement(h.SystemIcon,{icon:"Admin"})},{label:"Preferences",path:"/users/preference",icon:a.a.createElement(h.SystemIcon,{icon:"Preferences"})}]}],Yd=Vd,$d=Object(s.b)(null,(function(e){return{getTeamViewUsers:function(t,i,r){return e(md(t,i,r))},setLoggedUser:function(t){return e(Object(sd.b)(t))}}}))(Object(d.o)((function(e){var t,i,n,o,l,d,u,p,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!==(n=null===S||void 0===S?void 0:S.userId)&&void 0!==n?n:0,subRoleId:null!==(o=I&&I[0].subRoleId)&&void 0!==o?o:0,page:1,pageSize:6,filterBy:[],searchCriteria:[]},w=yd(),T=Object(r.useState)(Object(D.a)({},j)),P=Object(c.a)(T,2),A=P[0],N=P[1],k=Object(r.useState)(!1),L=Object(c.a)(k,2),J=L[0],F=L[1],B=Object(r.useState)(),R=Object(c.a)(B,2),U=R[0],G=R[1],M=Object(r.useState)(),q=Object(c.a)(M,2),z=q[0],W=q[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(v.Kd.ViewPortalCourseCalendar),Y=E(v.Kd.ViewPortalUserCourses),$=E(v.Kd.ViewPortalUserCompliance),H=E(v.Kd.ViewPortalLearningPlans),K=E(v.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 a.a.createElement(h.SideDrawer,{size:"sm",open:b,onClose:g,colorMode:"light"},a.a.createElement(ga.SideDrawerHeader,{titleBar:{icon:{source:"system",value:"People"},title:"Team View"}}),a.a.createElement(ga.SideDrawerBody,{maxWidth:"sm"},a.a.createElement(h.Grid,{container:!0,spacing:"card"},a.a.createElement(h.Grid,{key:S&&(null===S||void 0===S?void 0:S.userId),item:!0,xs:12,stretchContent:!0},a.a.createElement(fd,{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===(p=S.lastName)||void 0===p?void 0:p.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"})),a.a.createElement(h.Grid,{item:!0,xs:12,stretchContent:!0},a.a.createElement(h.Divider,{style:{height:"2px"}})),J?[1,2,3,4,5,6].map((function(e){return a.a.createElement(h.Grid,{key:e,item:!0,xs:12,stretchContent:!0},a.a.createElement(h.Card,{variant:"outlined",status:"default"},a.a.createElement(h.CardHeader,{classes:{title:w.cardTitle,subheader:w.cardSubheader},title:a.a.createElement(h.Skeleton,{height:32}),subheader:a.a.createElement(h.Skeleton,{width:"40%"})}),a.a.createElement(h.CardContent,{classes:{root:w.cardContent},noTopPadding:!0},a.a.createElement(h.Skeleton,{width:"60%"}))))})):a.a.createElement(a.a.Fragment,null,z&&0!==z.recordCount?a.a.createElement(a.a.Fragment,null,U&&(null===U||void 0===U?void 0:U.map((function(e){var t,i,r,n=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,n,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===(n=e.userPosition)||void 0===n?void 0:n.map((function(e){return e.name}))),p=d&&d[0],v=d&&d.splice(1,d.length),f=u&&u[0],m=u&&u.splice(1,u.length);return a.a.createElement(h.Row,null,a.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)&&a.a.createElement(a.a.Fragment,null,1===(null===e||void 0===e||null===(s=e.userDepartment)||void 0===s?void 0:s.length)?a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Box,{component:"span",ml:"4px",mr:"4px",color:"#979797"},"|"),a.a.createElement("span",null,null===e||void 0===e?void 0:e.userDepartment[0].name)):a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Box,{component:"span",ml:"4px",mr:"4px",color:"#979797"},"|"),a.a.createElement("span",null,p,","),a.a.createElement(h.Tooltip,{title:v.join(" \u2022 ")},a.a.createElement("span",null," +",v&&v.length)))),0!==(null===e||void 0===e||null===(l=e.userPosition)||void 0===l?void 0:l.length)&&a.a.createElement(a.a.Fragment,null,1===(null===e||void 0===e||null===(c=e.userPosition)||void 0===c?void 0:c.length)?a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Box,{component:"span",ml:"4px",mr:"4px",color:"#979797"},"|"),a.a.createElement("span",null,null===e||void 0===e?void 0:e.userPosition[0].name)):a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Box,{component:"span",ml:"4px",mr:"4px",color:"#979797"},"|"),a.a.createElement("span",null,f,","),a.a.createElement(h.Tooltip,{title:m.join(" \u2022 ")},a.a.createElement("span",null," +",m&&m.length))))))}return a.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 a.a.createElement(h.Row,{crossAxisAlignment:"middle"},a.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"},$&&a.a.createElement(h.Tooltip,{title:"Compliance",placement:"bottom"},a.a.createElement(h.Button,{disabled:"compliance"===y.location.pathname.slice(1),size:"small",variant:"outlined",color:"default",onClick:function(){return Q("compliance")}},a.a.createElement(h.Box,{color:"#979797",display:"flex",alignItems:"center",justifyContent:"center"},a.a.createElement(h.SystemIcon,{icon:"Cem-Compliance",color:"inherit",type:"light",size:"sm"})))),H&&a.a.createElement(h.Tooltip,{title:"Learning Plans",placement:"bottom"},a.a.createElement(h.Button,{disabled:"learning-plans"===y.location.pathname.slice(1),size:"small",variant:"outlined",color:"default",onClick:function(){return Q("learning-plans")}},a.a.createElement(h.Box,{color:"#979797",display:"flex",alignItems:"center",justifyContent:"center"},a.a.createElement(h.SystemIcon,{icon:"LearningPlans",color:"inherit",type:"light",size:"sm"})))),V&&e.hasPortalDevelopmentPlanAccess&&e.hasUKLicense&&a.a.createElement(h.Tooltip,{title:"Development Plans",placement:"bottom"},a.a.createElement(h.Button,{size:"small",variant:"outlined",color:"default",onClick:function(){return Q("development-plans")}},a.a.createElement(h.Box,{color:"#979797",display:"flex",alignItems:"center",justifyContent:"center"},a.a.createElement(h.SystemIcon,{icon:"DevelopmentPlan",color:"inherit",type:"light",size:"sm"})))),K&&a.a.createElement(h.Tooltip,{title:"Transcripts",placement:"bottom"},a.a.createElement(h.Button,{disabled:"transcripts"===y.location.pathname.slice(1),size:"small",variant:"outlined",color:"default",onClick:function(){return Q("transcripts")}},a.a.createElement(h.Box,{color:"#979797",display:"flex",alignItems:"center",justifyContent:"center"},a.a.createElement(h.SystemIcon,{icon:"Transcript",color:"inherit",type:"light",size:"sm"})))),_&&a.a.createElement(h.Tooltip,{title:"Course Calendar",placement:"bottom"},a.a.createElement(h.Button,{disabled:"course-calendar"===y.location.pathname.slice(1),size:"small",variant:"outlined",color:"default",onClick:function(){return Q("course-calendar")}},a.a.createElement(h.Box,{color:"#979797",display:"flex",alignItems:"center",justifyContent:"center"},a.a.createElement(h.SystemIcon,{icon:"Calendar",color:"inherit",type:"light",size:"sm"})))),Y&&a.a.createElement(h.Tooltip,{title:"Courses",placement:"bottom"},a.a.createElement(h.Button,{disabled:"user-courses"===y.location.pathname.slice(1),size:"small",variant:"outlined",color:"default",onClick:function(){return Q("user-courses")}},a.a.createElement(h.Box,{color:"#979797",display:"flex",alignItems:"center",justifyContent:"center"},a.a.createElement(h.SystemIcon,{icon:"MyCourses",color:"inherit",type:"light",size:"sm"}))))))};return a.a.createElement(h.Grid,{key:e.userId,item:!0,xs:12,stretchContent:!0},a.a.createElement(fd,{actions:a.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:a.a.createElement(n,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"}))}))),a.a.createElement(h.Grid,{item:!0,xs:12,alignment:"center"},a.a.createElement(no.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(D.a)(Object(D.a)({},A),{},{page:e}))}(t)}}))):a.a.createElement(h.Grid,{item:!0,xs:12,sm:12,lg:12,alignment:"center"},a.a.createElement(h.Alert,{variant:"standard",type:"info",icon:"Info"},a.a.createElement(h.Typography,{color:"primary",weight:"semi-bold"},"No users found.")))))))}))),Hd=Object(s.b)((function(){return{}}),(function(){return{}}))(Object(d.o)((function(e){var t,i,n,o=e.disableChangeProfile,l=void 0===o||o,d=e.match,u=Object(s.c)((function(e){return e.users.authenticatedUser})),p=Object(s.c)((function(e){return e.users.loggedUser})),v=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=v||f||m||y||g||b,E=Object(r.useState)(!1),I=Object(c.a)(E,2),O=I[0],C=I[1];return u&&p&&(null===u||void 0===u?void 0:u.userId)!==(null===p||void 0===p?void 0:p.userId)&&!S?a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Box,{borderRadius:26,bgcolor:"#FFF",color:"#000"},a.a.createElement(h.Row,{mainAxisAlignment:"start",crossAxisAlignment:"middle"},a.a.createElement(h.Avatar,{src:null===p||void 0===p||null===(t=p.userAvatar)||void 0===t?void 0:t.userAvatarThumbnailURl,style:{height:52,width:52}},"".concat(null===p||void 0===p||null===(i=p.firstName)||void 0===i?void 0:i.substr(0,1)).concat(null===p||void 0===p||null===(n=p.lastName)||void 0===n?void 0:n.substr(0,1))),a.a.createElement(h.Column,{mainAxisAlignment:"middle"},a.a.createElement(h.Box,{ml:1.5,mr:3},a.a.createElement(h.Typography,{color:"default",variant:"caption"},"Viewing"),a.a.createElement(h.Typography,{color:"default",variant:"body1",weight:"bold"},"".concat(null===p||void 0===p?void 0:p.firstName," ").concat(null===p||void 0===p?void 0:p.lastName)))),!1===l&&a.a.createElement(a.a.Fragment,null,a.a.createElement(h.Divider,{orientation:"vertical",flexItem:!0,style:{marginTop:8,marginBottom:8}}),a.a.createElement(h.Button,{color:"primary",variant:"text",size:"small",onClick:function(){return C(!0)}},"Change Profile")))),O&&a.a.createElement($d,{open:O,onClose:function(){return C(!1)}})):a.a.createElement(a.a.Fragment,null)}))),Kd=i(360);function Qd(){Qd=function(){return e};var e={},t=Object.prototype,i=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",n=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 a=t&&t.prototype instanceof u?t:u,n=Object.create(a.prototype),o=new O(r||[]);return n._invoke=function(e,t,i){var r="suspendedStart";return function(a,n){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw n;return x()}for(i.method=a,i.arg=n;;){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),n}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 p(){}var v={};s(v,a,(function(){return this}));var f=Object.getPrototypeOf,m=f&&f(f(C([])));m&&m!==t&&i.call(m,a)&&(v=m);var y=p.prototype=u.prototype=Object.create(v);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(a,n){function o(){return new t((function(r,o){!function r(a,n,o,s){var l=c(e[a],e,n);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)}(a,n,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 a=r.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):a:(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[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r=0;--a){var n=this.tryEntries[a],o=n.completion;if("root"===n.tryLoc)return r("end");if(n.tryLoc<=this.prev){var s=i.call(n,"catchLoc"),l=i.call(n,"finallyLoc");if(s&&l){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&i.call(a,"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 a=r.arg;I(i)}return a}}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 Zd=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,n,o,S=e.authentication,C=e.verifyUser,x=e.getUserPermissionSet,j=e.checkUserAccessToken,w=e.setIsExpired,T=e.isUserAccessTokenAdded,P=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)(Wd),U=Object(c.a)(R,2),G=U[0],M=U[1],q=null!==(t="sZH1rB3B5C6B4A4E4iAa1Tb1YZNYAh1CUKUEQOHFVANUqD1G1F4B3B1C8E5D2C4E4==")?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(v.Kd.ViewPortalTeamView)&&V&&V.userRole&&[v.re.AdministrativeAssistant,v.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(v.Kd.ViewPortalCourseCatalog)),ee=Object(r.useRef)(E(v.Kd.ViewPortalCourseCalendar)),te=Object(r.useRef)(E(v.Kd.ViewPortalUserCourses)),ie=Object(r.useRef)(E(v.Kd.ViewPortalUserCompliance)),re=Object(r.useRef)(E(v.Kd.ViewPortalLearningPlans)),ae=Object(r.useRef)(E(v.Kd.ViewPortalDevelopmentPlans)),ne=Object(r.useRef)(E(v.Kd.ViewPortalTranscripts)),oe=Object(r.useRef)(E(v.Kd.ViewPortalInstructorView)),se=Object(r.useRef)(!1);se.current=_;var le="cem_".concat(function(){var e=window.location.hostname.split("."),t="";return e.includes("micronapps")?t="live":e.includes("local")||e.includes("localhost")?t="local":e.includes("dev")?t="dev":e.includes("main")?t="main":e.includes("stg")&&(t="stg"),t}(),"_").concat(Object(Kd.a)()),ce={visitor:{id:"".concat(null===V||void 0===V?void 0:V.email),email:"".concat(null===V||void 0===V?void 0:V.email),full_name:"".concat(null===V||void 0===V?void 0:V.firstName," ").concat(null===V||void 0===V?void 0:V.lastName),role:function(){switch(null===V||void 0===V?void 0:V.userType){case 1:return"Administrator";case 2:return"Employee";case 3:return"Client";default:return""}}(),account_id:le},account:{id:le,name:le}},de=Object(r.useState)(!1),ue=Object(c.a)(de,2),he=ue[0],pe=ue[1];Object(r.useEffect)((function(){var e;e="93ca02c3-5454-42c1-417b-1382a56b76ee",function(t,i,r,a,n){var o,s,l,c,d;for((n=t[a]=t[a]||{})._q=n._q||[],s=0,l=(o=["initialize","identify","updateOptions","pageLoad","track"]).length;s0?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:!P||null!=B,customToolbar:a.a.createElement(be,null),customHeader:a.a.createElement(Hd,{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:P,expired:S.isExpired,theme:p.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)===v.Re.Administrator?_d:Yd,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:q},events:{onPageChanged:function(e){"/signout"!==e.location.pathname?(S.accessToken&&S.jwtExpiration2&&void 0!==arguments[2]&&arguments[2];return function(o){var s=new a.f({learningPlanId:e,participantList:t,sendEmailConfirmation:i});return r.y.add(void 0,s).then((function(){o(Object(n.a)({message:"You have been sucessfully registered to the learning plan.",variant:"success"}))})).catch((function(e){o(Object(n.a)({message:e.detail,variant:"error"}))}))}},f=function(e,t){return function(i){return r.A.getLearningPlanRegistrationLinkDetailsByGuid(void 0,a.Lc.fromJS({guid:e,userId:t})).then((function(e){return e})).catch((function(e){throw i(Object(n.b)(e)),e}))}}},188:function(e,t,i){"use strict";i.d(t,"b",(function(){return r})),i.d(t,"a",(function(){return a}));var r=function(e){return{type:"SET_LOGGED_USER",payload:e}},a=function(e){return{type:"SET_AUTHENTICATED_USER",payload:e}}},200:function(e,t,i){"use strict";i.d(t,"a",(function(){return v})),i.d(t,"c",(function(){return f})),i.d(t,"d",(function(){return m})),i.d(t,"b",(function(){return y}));i(139),i(354);var r=i(174),a=i(208),n=i(251),o=(i(156),i(129)),s=i(15),l=i(188),c=i(134),d=i(69),u=i(211),h=i(205),p=i(103),v=function(e,t,i){return function(a){var o;a(Object(l.b)(null)),a(Object(l.a)(null)),a(r.n(e)),a(g((null===e||void 0===e?void 0:e.idpId)||"-",null!==t&&void 0!==t?t:"")),a(n.a(t)),a(Object(h.b)()),a(Object(c.c)(!0)),a(Object(d.a)(null!==(o=null!==t&&void 0!==t?t:null===e||void 0===e?void 0:e.idpId)&&void 0!==o?o:"-")),a(Object(u.c)("admin"===i)),a(Object(p.g)())}},f=function(e){return function(t){t(r.n(e)),t(o.g((null===e||void 0===e?void 0:e.idpId)||"-")),t(n.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(p.g)())}},m=function(){return function(e){e(a.b(null)),e(Object(l.b)(null)),e(r.o())}},y=function(e,t,i){return function(a){var o;return a(r.n(e)),a(g((null===e||void 0===e?void 0:e.idpId)||"-",null!==t&&void 0!==t?t:"")),a(n.a()),a(Object(h.b)()),a(Object(c.c)(!0)),a(Object(d.a)(null!==(o=null!==t&&void 0!==t?t:null===e||void 0===e?void 0:e.idpId)&&void 0!==o?o:"-")),a(Object(u.c)("admin"===i)),a(Object(p.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}))}}},201:function(e,t,i){"use strict";i.d(t,"a",(function(){return a})),i.d(t,"b",(function(){return n}));var r=i(253),a=function(){return{type:r.a,payload:null}},n=function(e){return{type:r.b,payload:e}}},205:function(e,t,i){"use strict";i.d(t,"a",(function(){return o})),i.d(t,"b",(function(){return s}));var r=i(135),a=i(15),n=i(35),o=function(){return function(e){return e(r.a(null)),a.E.getAllFirmLicenses(void 0).then((function(t){return e(r.a(t.licenses)),t.licenses})).catch((function(t){throw e(r.a([])),e(Object(n.b)(t)),t}))}},s=function(){return function(e){return e(r.c(null)),a.E.getUserLicenseLimitation(void 0).then((function(t){e(r.c(t))})).catch((function(){e(r.c([]))}))}}},208:function(e,t,i){"use strict";i.d(t,"a",(function(){return a})),i.d(t,"b",(function(){return n}));var r=i(252),a=function(e){return{type:r.a,payload:e}},n=function(e){return{type:r.b,payload:e}}},209:function(e,t,i){"use strict";i.d(t,"a",(function(){return r})),i.d(t,"b",(function(){return a})),i.d(t,"c",(function(){return n}));var r="GET_FIRM_LICENSES",a="SET_SELECTED_FIRM_LICENSES",n="SET_USER_LICENSE_LIMITATIONS"},211:function(e,t,i){"use strict";i(516);var r=i(327);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(144);var a=i(249);i.d(t,"a",(function(){return a.a}))},227:function(e,t,i){"use strict";i.d(t,"a",(function(){return r})),i.d(t,"b",(function(){return a}));var r="ADD_NOTIFICATION",a="REMOVE_NOTIFICATION"},230:function(e,t,i){"use strict";var r=i(321);i.d(t,"a",(function(){return r.a}))},231:function(e,t,i){"use strict";i.d(t,"a",(function(){return a})),i.d(t,"d",(function(){return n})),i.d(t,"c",(function(){return o})),i.d(t,"b",(function(){return s}));var r=i(173),a=function(e){return{type:r.a,payload:e}},n=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}}},249: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(327),a=i(15),n=i(7),o=i(35),s=function(e){return function(t){return a.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 n.zc({filterBy:t,searchCriteria:i,sortBy:"firstName",page:1,pageSize:-1});return function(e){return a.ab.getAll(void 0,n.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 a.R.mergeCertificate(void 0,n.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"}))}))}}},251:function(e,t,i){"use strict";i.d(t,"a",(function(){return o}));var r=i(208),a=i(15),n=i(16),o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return function(t){return t(r.b(null)),a.I.getUserPermissionSets(e,void 0).then((function(e){return t(r.b(e)),e})).catch((function(e){t(r.b([])),t(Object(n.b)(e))}))}}},252:function(e,t,i){"use strict";i.d(t,"a",(function(){return r})),i.d(t,"b",(function(){return a}));var r="SET_PERMISSION_SETS",a="SET_USER_PERMISSIONS"},253:function(e,t,i){"use strict";i.d(t,"b",(function(){return r})),i.d(t,"a",(function(){return a}));var r="SHOW_CONFIRM",a="CLOSE_CONFIRM"},254:function(e,t,i){"use strict";i.d(t,"a",(function(){return r})),i.d(t,"b",(function(){return a}));var r="SET_FORMATS",a="SET_LOADING"},255:function(e,t,i){"use strict";i.d(t,"a",(function(){return r})),i.d(t,"b",(function(){return a}));var r="SET_DEVELOPMENT_PLANS",a="SET_PRINT_REQUEST"},261:function(e,t,i){"use strict";i.d(t,"b",(function(){return a})),i.d(t,"a",(function(){return n})),i.d(t,"d",(function(){return o})),i.d(t,"c",(function(){return s}));var r=i(172),a=function(e){return{type:r.b,payload:e}},n=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}}},32:function(e,t,i){"use strict";var r=i(12);t.a=function(e,t){return Object(r.a)(Object(r.a)({},e),t)}},321:function(e,t,i){"use strict";i.d(t,"a",(function(){return R}));var r=i(186),a=i(1031),n=i(1033),o=i(508),s=i(509),l=i(121),c=i(32),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(51),p=i(351),v=i(85),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 v.b:return Object(c.a)(t,{filters:i.payload});case v.d:return Object(c.a)(t,{savedFilterId:i.payload});case v.c:return Object(c.a)(t,{savedFilters:i.payload});case v.g:return Object(c.a)(t,{searchOptionTextFilter:i.payload});case v.e:return Object(c.a)(t,{searchOptionCategories:i.payload});case v.f:return Object(c.a)(t,{searchOptionFavoritesOnly:i.payload});case v.h:return Object(c.a)(t,{searchRequestBody:i.payload});case v.k:return Object(c.a)(t,{searchResultsLoading:i.payload});case v.i:return Object(c.a)(t,{searchResults:i.payload});case v.j:return Object(c.a)(t,{searchResultsCount:i.payload});case v.a:return Object(c.a)(t,{searchResults:Object(p.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(176),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(177),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(510),C=i(511),x=i(512),j=i(513),w=i(514),T=i(515),P=i(516),A=i(517),N=i(518),k=i(519),D=i(103),L=i(521),J=i(522),F=Object(a.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}}}),n.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:T.a,reports:D.a,sessions:u,portalSettings:k.a,systemTables:A.a,users:P.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)},324:function(e,t,i){"use strict";i.d(t,"a",(function(){return r}));var r="SET_FILES_TO_UPLOAD"},325:function(e,t,i){"use strict";var r=i(0),a=i(20);t.a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500;return Object(r.useCallback)(Object(a.debounce)(e,t),[e,t])}},326:function(e,t,i){"use strict";i.d(t,"a",(function(){return r}));var r="SET_SELECTED_COMPLIANCE_REPORT_TO_PRINT"},327:function(e,t,i){"use strict";i.d(t,"c",(function(){return a})),i.d(t,"d",(function(){return n})),i.d(t,"a",(function(){return o})),i.d(t,"b",(function(){return s})),i.d(t,"e",(function(){return l}));var r=i(144),a=function(e){return{type:r.d,payload:e}},n=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}}},328:function(e,t,i){"use strict";var r=i(165);i.d(t,"a",(function(){return r.a}))},33:function(e,t,i){"use strict";var r=i(1040),a=i.n(r);t.a=function(e){return a.a.sanitize(null!==e&&void 0!==e?e:"")}},35:function(e,t,i){"use strict";i.d(t,"a",(function(){return r.a})),i.d(t,"b",(function(){return r.b}));i(514);var r=i(16);i(227)},360:function(e,t,i){"use strict";t.a=function(){var e=window.location.hostname.split(".");return e&&e.length>0?e[0]:"localhost"}},41: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 p})),i.d(t,"c",(function(){return v})),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),a=i(185),n=i(30),o=i.n(n),s=function(){var e=a.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 a=e.split(/[-./]/g),n=Object(r.a)(a,3),s=n[0],c=n[1],d=n[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()},p=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"):"-"},v=function(e){var t="",i="",a="",n=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],a=c[2]}if(Number(i)>12){var d=t;t=i,i=d}if(""!==i&&""!==t&&""!==a){var u="".concat(i,"/").concat(t,"/").concat(a),h=p(u,l());n=e.replace(u,h)}return n},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 a,n=o()(i,"HH:mm:ss a"),s=o()(r,"HH:mm:ss a"),l=o()(e).set({hour:n.get("hour"),minute:n.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(a=parseInt("".concat(d.asMinutes()),10))>0?"".concat(a," minute").concat(1===a?"":"s"):""},S=function(e,t){var i="",r=0;if(""!==e||""!==t){var a=o()(e,"HH:mm:ss a"),n=o()(t,"HH:mm:ss a"),s=o.a.duration(n.diff(a));i=(r=parseInt("".concat(s.asMinutes()),10))>0?"".concat(r," minute").concat(1===r?"":"s"):""}return i}},441: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),a=i(7),n=i(35),o=i(231),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,a.Vc.fromJS({roleId:l,portalScreen:e})).then((function(e){return e})).catch((function(e){throw t(Object(n.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(n.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,a.Uc.fromJS({roleId:c}));return e(Object(o.d)(null)),d.then((function(t){var i,r,a,n,s,l,c,d,u,h,p,v,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!==(a=t.portalPracticeAreaFilterIds)&&void 0!==a?a:[],locationIds:null!==(n=t.portalLocationFilterIds)&&void 0!==n?n:[],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!==(p=t.portalCalendarLevelFilterIds)&&void 0!==p?p:[],practiceAreaIds:null!==(v=t.portalCalendarPracticeAreaFilterIds)&&void 0!==v?v:[],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(n.b)(t))}))}}},508:function(e,t,i){"use strict";var r=i(32),a=i(62),n={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]:n,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case a.o:return Object(r.a)(e,t.payload);case a.p:return Object(r.a)(e,{authenticated:!1,accessToken:"",jwtExpiration:0});case a.a:return Object(r.a)(e,t.payload);case a.n:return Object(r.a)(e,{accessToken:t.payload});case a.b:return Object(r.a)(e,{adminRedirectIdpId:t.payload});case a.k:return Object(r.a)(e,{redirectUrl:t.payload});case a.m:return Object(r.a)(e,{source:t.payload});case a.f:return Object(r.a)(e,{guid:t.payload});case a.j:return Object(r.a)(e,{redirectionType:t.payload});case a.l:return Object(r.a)(e,{refreshToken:t.payload});case a.e:return Object(r.a)(e,{clientId:t.payload});case a.i:return Object(r.a)(e,{jwtExpiration:t.payload});case a.g:return Object(r.a)(e,{isExpired:t.payload});case a.h:return Object(r.a)(e,{isUserAccessTokenAdded:t.payload});case a.d:return Object(r.a)(e,{cancelTokenSource:t.payload});case a.c:return Object(r.a)(e,{cancelToken:t.payload});default:return e}}},509:function(e,t,i){"use strict";var r=i(253),a=i(32),n={message:null};t.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 r.b:return Object(a.a)(e,{message:t.payload});case r.a:return Object(a.a)(e,{message:null});default:return e}}},510:function(e,t,i){"use strict";var r=i(254),a=i(32),n={formats:null,loading:!1};t.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 r.a:return Object(a.a)(e,{formats:t.payload});case r.b:return Object(a.a)(e,{loading:t.payload});default:return e}}},511:function(e,t,i){"use strict";var r=i(136),a=i(32),n={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]:n,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case r.a:return Object(a.a)(e,{learningPlans:t.payload});case r.f:return Object(a.a)(e,{selectedLearningPlan:t.payload});case r.e:return Object(a.a)(e,{learningPlanLoading:t.payload});case r.b:return Object(a.a)(e,{catalogRequestBody:t.payload});case r.d:return Object(a.a)(e,{requestBody:t.payload});case r.c:return Object(a.a)(e,{recordCount:t.payload});default:return e}}},512:function(e,t,i){"use strict";var r=i(324),a=i(32),n={filesToUpdate:null};t.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 r.a:return Object(a.a)(e,{filesToUpdate:t.payload});default:return e}}},513:function(e,t,i){"use strict";var r=i(32),a=i(209),n={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]:n,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case a.a:return Object(r.a)(e,{firmLicenses:t.payload});case a.b:return Object(r.a)(e,{selectedFirmLicenses:t.payload});case a.c:return Object(r.a)(e,{userLicenseLimitations:t.payload});default:return e}}},514:function(e,t,i){"use strict";var r=i(227),a=i(32),n={message:null};t.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 r.a:return Object(a.a)(e,{message:t.payload});case r.b:return Object(a.a)(e,{message:null});default:return e}}},515:function(e,t,i){"use strict";var r=i(32),a=i(252),n={permissionSets:null,userPermissionSets:null};t.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 a.a:return Object(r.a)(e,{permissionSets:t.payload});case a.b:return Object(r.a)(e,{userPermissionSets:t.payload});default:return e}}},516:function(e,t,i){"use strict";var r=i(681),a=i.n(r),n=i(144),o=i(32),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 n.d:return Object(o.a)(e,{loggedUser:t.payload});case n.c:return Object(o.a)(e,{isImpersonated:t.payload});case n.a:return Object(o.a)(e,{authenticatedUser:t.payload});case n.e:return a()(e,{loggedUser:{userAvatar:{$set:t.payload}}});case n.b:return a()(e,{authenticatedUser:{userAvatar:{$set:t.payload}}});case n.f:return Object(o.a)(e,{multipleCertificatePrintRequest:t.payload});default:return e}}},517:function(e,t,i){"use strict";var r=i(151),a=i(32),n={countries:null,states:null,timezones:null,counties:null,dateFormats:null};t.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 r.b:return Object(a.a)(e,{countries:t.payload});case r.d:return Object(a.a)(e,{states:t.payload});case r.e:return Object(a.a)(e,{timezones:t.payload});case r.a:return Object(a.a)(e,{counties:t.payload});case r.c:return Object(a.a)(e,{dateFormats:t.payload});default:return e}}},518:function(e,t,i){"use strict";var r=i(32),a=i(172),n={firm:null,firmName:null,passwordPolicy:null,isPasswordPolicyLoading:!0,learningSettings:null};t.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 a.a:return Object(r.a)(e,{firm:t.payload});case a.b:return Object(r.a)(e,{firmName:t.payload});case a.d:return Object(r.a)(e,{passwordPolicy:t.payload});case a.c:return Object(r.a)(e,{learningSettings:t.payload});default:return e}}},519:function(e,t,i){"use strict";var r=i(14),a=i(173),n={branding:null,courseFilters:null,calendarFilters:null,isInitialLoad:!0};t.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 a.a:return Object(r.j)(e,{branding:t.payload});case a.d:return Object(r.j)(e,{courseFilters:t.payload});case a.c:return Object(r.j)(e,{calendarFilters:t.payload});case a.b:return Object(r.j)(e,{isInitialLoad:t.payload});default:return e}}},520: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("")}},521:function(e,t,i){"use strict";var r=i(12),a=i(32),n=i(255),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 n.a:return Object(a.a)(e,Object(r.a)(Object(r.a)({},e),{},{devPlanState:t.payload}));case n.b:return Object(a.a)(e,{printRequestBody:t.payload});default:return e}}},522:function(e,t,i){"use strict";var r=i(32),a=i(326),n={selectedComplianceReportToPrint:null};t.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 a.a:return Object(r.a)(e,{selectedComplianceReportToPrint:t.payload});default:return e}}},523:function(e,t,i){"use strict";i.d(t,"c",(function(){return h})),i.d(t,"b",(function(){return p})),i.d(t,"a",(function(){return v}));var r=i(46),a=i(185),n=(i(7),i(15)),o=i(261),s=i(16),l=i(134);function c(){c=function(){return e};var e={},t=Object.prototype,i=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",n=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 a=t&&t.prototype instanceof h?t:h,n=Object.create(a.prototype),o=new C(r||[]);return n._invoke=function(e,t,i){var r="suspendedStart";return function(a,n){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw n;return j()}for(i.method=a,i.arg=n;;){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),n}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 p(){}function v(){}var f={};s(f,a,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(x([])));y&&y!==t&&i.call(y,a)&&(f=y);var g=v.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(a,n){function o(){return new t((function(r,o){!function r(a,n,o,s){var l=d(e[a],e,n);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)}(a,n,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 a=r.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):a:(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[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r=0;--a){var n=this.tryEntries[a],o=n.completion;if("root"===n.tryLoc)return r("end");if(n.tryLoc<=this.prev){var s=i.call(n,"catchLoc"),l=i.call(n,"finallyLoc");if(s&&l){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&i.call(a,"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 a=r.arg;O(i)}return a}}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,n.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,n.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!==a.a.getItem("preferences")&&e&&a.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 n,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:"",a.a.setItem("preferences",i));return t(Object(o.a)(r)),t(Object(o.b)(null!==(n=null===r||void 0===r?void 0:r.name)&&void 0!==n?n:"")),r})).catch((function(e){t(Object(s.b)(e))}))}},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 t(Object(o.d)(null)),e.next=3,n.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)}}()},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 e.next=2,n.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)}}()}},62:function(e,t,i){"use strict";i.d(t,"o",(function(){return r})),i.d(t,"p",(function(){return a})),i.d(t,"a",(function(){return n})),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 p})),i.d(t,"i",(function(){return v})),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",a="SIGNOUT",n="INITIALIZE",o="SET_TOKEN",s="SET_ADMINREDIRECTIDPID",l="SET_REDIRECTURL",c="SET_SOURCE",d="SET_GUID",u="SET_REDIRECTION_TYPE",h="SET_REFRESH_TOKEN",p="SET_CLIENT_ID",v="SET_JWTEXPIRATION",f="SET_ISEXPIRED",m="SET_IS_USER_ACCESS_TOKEN_ADDED",y="SET_CANCEL_TOKEN_SOURCE",g="SET_CANCEL_TOKEN"},69:function(e,t,i){"use strict";i(519);var r=i(231);i.d(t,"d",(function(){return r.b}));i(173);var a=i(441);i.d(t,"a",(function(){return a.a})),i.d(t,"b",(function(){return a.b})),i.d(t,"c",(function(){return a.c}))},7:function(e,t,i){"use strict";i.d(t,"a",(function(){return h})),i.d(t,"d",(function(){return p})),i.d(t,"b",(function(){return v})),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 T})),i.d(t,"E",(function(){return P})),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 M})),i.d(t,"Jb",(function(){return q})),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 ae})),i.d(t,"qd",(function(){return ne})),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 pe})),i.d(t,"Jd",(function(){return ve})),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 Te})),i.d(t,"ne",(function(){return Pe})),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 at})),i.d(t,"j",(function(){return nt})),i.d(t,"n",(function(){return r})),i.d(t,"o",(function(){return pt})),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 ar})),i.d(t,"L",(function(){return nr})),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 pr})),i.d(t,"U",(function(){return vr})),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 Tr})),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 Mr})),i.d(t,"qb",(function(){return qr})),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 ea})),i.d(t,"Hb",(function(){return fa})),i.d(t,"Ib",(function(){return sa})),i.d(t,"Lb",(function(){return Ga})),i.d(t,"Xb",(function(){return En})),i.d(t,"Yb",(function(){return In})),i.d(t,"Zb",(function(){return On})),i.d(t,"ac",(function(){return Cn})),i.d(t,"bc",(function(){return xn})),i.d(t,"cc",(function(){return jn})),i.d(t,"dc",(function(){return wn})),i.d(t,"ec",(function(){return Tn})),i.d(t,"fc",(function(){return Pn})),i.d(t,"gc",(function(){return An})),i.d(t,"hc",(function(){return Nn})),i.d(t,"ic",(function(){return kn})),i.d(t,"jc",(function(){return Dn})),i.d(t,"kc",(function(){return Ln})),i.d(t,"lc",(function(){return Jn})),i.d(t,"mc",(function(){return Fn})),i.d(t,"nc",(function(){return Bn})),i.d(t,"oc",(function(){return Rn})),i.d(t,"pc",(function(){return Un})),i.d(t,"qc",(function(){return Gn})),i.d(t,"rc",(function(){return Mn})),i.d(t,"sc",(function(){return qn})),i.d(t,"tc",(function(){return zn})),i.d(t,"uc",(function(){return Wn})),i.d(t,"vc",(function(){return Vn})),i.d(t,"wc",(function(){return _n})),i.d(t,"xc",(function(){return Yn})),i.d(t,"zc",(function(){return $n})),i.d(t,"yc",(function(){return Hn})),i.d(t,"Ac",(function(){return Kn})),i.d(t,"Bc",(function(){return Qn})),i.d(t,"Cc",(function(){return Zn})),i.d(t,"Dc",(function(){return Xn})),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 ao})),i.d(t,"Jc",(function(){return no})),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 po})),i.d(t,"Rc",(function(){return vo})),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 To})),i.d(t,"gd",(function(){return Po})),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 pl})),i.d(t,"Dd",(function(){return jl})),i.d(t,"Gd",(function(){return ql})),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 zd})),i.d(t,"Zd",(function(){return Wd})),i.d(t,"ee",(function(){return Tu})),i.d(t,"fe",(function(){return Pu})),i.d(t,"ge",(function(){return Nu})),i.d(t,"he",(function(){return Vu})),i.d(t,"ie",(function(){return _u})),i.d(t,"ke",(function(){return ou})),i.d(t,"le",(function(){return ah})),i.d(t,"me",(function(){return oh})),i.d(t,"oe",(function(){return th})),i.d(t,"pe",(function(){return mh})),i.d(t,"re",(function(){return uh})),i.d(t,"ue",(function(){return Lh})),i.d(t,"ve",(function(){return Uh})),i.d(t,"we",(function(){return Gh})),i.d(t,"xe",(function(){return Mh})),i.d(t,"ye",(function(){return qh})),i.d(t,"ze",(function(){return zh})),i.d(t,"Ae",(function(){return Wh})),i.d(t,"Be",(function(){return Vh})),i.d(t,"Ce",(function(){return $h})),i.d(t,"De",(function(){return Hh})),i.d(t,"Ee",(function(){return Kh})),i.d(t,"Fe",(function(){return Qh})),i.d(t,"Ge",(function(){return Zh})),i.d(t,"He",(function(){return Xh})),i.d(t,"Ke",(function(){return Fh})),i.d(t,"Me",(function(){return Dp})),i.d(t,"Ne",(function(){return Bp})),i.d(t,"Re",(function(){return Ep})),i.d(t,"Se",(function(){return fv})),i.d(t,"Te",(function(){return mv})),i.d(t,"Ue",(function(){return yv})),i.d(t,"Ve",(function(){return gv})),i.d(t,"We",(function(){return bv})),i.d(t,"Xe",(function(){return Sv})),i.d(t,"Ye",(function(){return Iv})),i.d(t,"Ze",(function(){return Ov})),i.d(t,"af",(function(){return Cv})),i.d(t,"bf",(function(){return jv}));var r,a=i(111),n=i(112),o=i(563),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,a=this.baseUrl+"/api/AccreditationForm/GetAll";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Me.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getById",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/AccreditationForm/GetById?";if(null===e)throw new Error("The parameter 'accreditationFormId' cannot be null.");void 0!==e&&(a+="accreditationFormId="+encodeURIComponent(""+e)+"&");var n={method:"GET",url:a=a.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Ge.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getByLicenseIds",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/AccreditationForm/GetByLicenseIds";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Me.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"archive",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/AccreditationForm/Archive";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"create",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/AccreditationForm/Create";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Ge.fromJS(n),Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/AccreditationForm/Update";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Ge.fromJS(n),Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"delete",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/AccreditationForm/Delete";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"validateAccreditationName",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/AccreditationForm/ValidateAccreditationName";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"uploadFile",value:function(e,t,i,r){var a=this,n=this.baseUrl+"/api/AccreditationForm/UploadFile?";if(null===e)throw new Error("The parameter 'isPublic' cannot be null.");void 0!==e&&(n+="isPublic="+encodeURIComponent(""+e)+"&"),n=n.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:n,headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:r};return this.instance.request(s).catch((function(e){if(Pv(e)&&e.response)return e.response;throw e})).then((function(e){return a.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 a,n=e.data;return a=gl.fromJS(n),Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"getLibraryFileById",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/AccreditationForm/GetLibraryFileById?";if(null===e)throw new Error("The parameter 'libraryFileId' cannot be null.");void 0!==e&&(a+="libraryFileId="+encodeURIComponent(""+e)+"&");var n={method:"GET",url:a=a.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=gl.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}}]),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,a=this.baseUrl+"/api/Activity/GetAll";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Ye.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"exportCsv",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Activity/ExportCsv";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportExcel",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Activity/ExportExcel";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"get",value:function(e,t,i,r){var a=this,n=this.baseUrl+"/api/Activity/Get/{activityId}?";if(void 0===e||null===e)throw new Error("The parameter 'activityId' must be defined.");if(n=n.replace("{activityId}",encodeURIComponent(""+e)),null===t)throw new Error("The parameter 'userId' cannot be null.");void 0!==t&&(n+="userId="+encodeURIComponent(""+t)+"&");var o={method:"GET",url:n=n.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(Pv(e)&&e.response)return e.response;throw e})).then((function(e){return a.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 a,n=e.data;return a=Ve.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"create",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Activity/Create";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Ve.fromJS(n),Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Activity/Update";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Ve.fromJS(n),Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"delete",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Activity/Delete";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(Ve.fromJS(c))}}catch(m){l.e(m)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(204===t)return Tv("Success",t,e.data,i);if(400===t){var d=e.data,u=d;return Tv("Bad Request",t,d,i,xv.fromJS(u))}if(404===t){var h=e.data,p=h;return Tv("Not Found",t,h,i,Ih.fromJS(p))}var v=e.data,f=v;return Tv("Error",t,v,i,Ih.fromJS(f))}},{key:"archive",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Activity/Archive";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"validateActivityTitle",value:function(e,t,i,r){var a=this,n=this.baseUrl+"/api/Activity/ValidateActivityTitle?";if(null===e)throw new Error("The parameter 'activityId' cannot be null.");if(void 0!==e&&(n+="activityId="+encodeURIComponent(""+e)+"&"),null===t)throw new Error("The parameter 'name' cannot be null.");void 0!==t&&(n+="name="+encodeURIComponent(""+t)+"&");var o={method:"POST",url:n=n.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(Pv(e)&&e.response)return e.response;throw e})).then((function(e){return a.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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getActivityDevelopmentRecordCredit",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Activity/GetActivityDevelopmentRecordCredit";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(We.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}}]),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,a=this.baseUrl+"/api/ActivityParticipant/GetAll";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Ke.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"exportCsv",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/ActivityParticipant/ExportCsv";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportExcel",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/ActivityParticipant/ExportExcel";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getAllAvailableActivityParticipants",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/ActivityParticipant/GetAllAvailableActivityParticipants";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Mp.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"add",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/ActivityParticipant/Add";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(He.fromJS(c))}}catch(d){l.e(d)}finally{l.f()}}else a=null;return Promise.resolve(a)}return 200!==t&&204!==t?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"update",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/ActivityParticipant/Update";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(He.fromJS(c))}}catch(b){l.e(b)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(201===t){var d=null,u=e.data;if(Array.isArray(u)){d=[];var h,p=Object(s.a)(u);try{for(p.s();!(h=p.n()).done;){var v=h.value;d.push(He.fromJS(v))}}catch(b){p.e(b)}finally{p.f()}}else d=null;return Promise.resolve(d)}if(400===t){var f=e.data,m=f;return Tv("Bad Request",t,f,i,xv.fromJS(m))}var y=e.data,g=y;return Tv("Error",t,y,i,Ih.fromJS(g))}},{key:"delete",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/ActivityParticipant/Delete";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.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,a=this.baseUrl+"/api/ActivitySavedFilter/GetAll";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Ze.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"get",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/ActivitySavedFilter/Get";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Qe.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"create",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/ActivitySavedFilter/Create";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Qe.fromJS(n),Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/ActivitySavedFilter/Update";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Qe.fromJS(n),Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"delete",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/ActivitySavedFilter/Delete";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"validateActivitySavedFilterName",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/ActivitySavedFilter/ValidateActivitySavedFilterName";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Tv("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,a=this.baseUrl+"/api/AffidavitForm/GetAll";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=st.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getById",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/AffidavitForm/GetById?";if(null===e)throw new Error("The parameter 'affidavitFormId' cannot be null.");void 0!==e&&(a+="affidavitFormId="+encodeURIComponent(""+e)+"&");var n={method:"GET",url:a=a.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=ot.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"archive",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/AffidavitForm/Archive";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"create",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/AffidavitForm/Create";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=ot.fromJS(n),Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/AffidavitForm/Update";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=ot.fromJS(n),Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.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,a=this.baseUrl+"/api/Affiliation/GetAll";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=ct.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"exportCsv",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Affiliation/ExportCsv";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportExcel",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Affiliation/ExportExcel";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getAffiliationListById",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Affiliation/GetAffiliationListById";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(lt.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"getById",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Affiliation/GetById/{affiliationId}";if(void 0===e||null===e)throw new Error("The parameter 'affiliationId' must be defined.");var n={method:"GET",url:a=(a=a.replace("{affiliationId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=lt.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getByCode",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Affiliation/GetByCode/{affiliationCode}";if(void 0===e||null===e)throw new Error("The parameter 'affiliationCode' must be defined.");var n={method:"GET",url:a=(a=a.replace("{affiliationCode}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=lt.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"create",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Affiliation/Create";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=lt.fromJS(n),Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Affiliation/Update";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=lt.fromJS(n),Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"delete",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Affiliation/Delete";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(lt.fromJS(c))}}catch(m){l.e(m)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(204===t)return Tv("Success",t,e.data,i);if(400===t){var d=e.data,u=d;return Tv("Bad Request",t,d,i,xv.fromJS(u))}if(404===t){var h=e.data,p=h;return Tv("Not Found",t,h,i,Ih.fromJS(p))}var v=e.data,f=v;return Tv("Error",t,v,i,Ih.fromJS(f))}},{key:"archive",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Affiliation/Archive";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"merge",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Affiliation/Merge";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateAffiliationName",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Affiliation/ValidateAffiliationName";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateAffiliationCode",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Affiliation/ValidateAffiliationCode";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Tv("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,a=this.baseUrl+"/api/AmazonS3/UploadFile";a=a.replace(/[?&]$/,"");var n=new FormData;if(null===t||void 0===t)throw new Error("The parameter 'file' cannot be null.");n.append("file",t.data,t.fileName?t.fileName:"file");var o={data:n,method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:""},cancelToken:i};return this.instance.request(o).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}var o=e.data,s=o;return Tv("Error",t,o,i,Ih.fromJS(s))}},{key:"attachFile",value:function(e,t,i,r){var a=this,n=this.baseUrl+"/api/AmazonS3/AttachFile?";if(null===e)throw new Error("The parameter 'isPublic' cannot be null.");void 0!==e&&(n+="isPublic="+encodeURIComponent(""+e)+"&"),n=n.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:n,headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:r};return this.instance.request(s).catch((function(e){if(Pv(e)&&e.response)return e.response;throw e})).then((function(e){return a.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 a,n=e.data;return a=gl.fromJS(n),Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"uploadMedia",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/AmazonS3/UploadMedia";a=a.replace(/[?&]$/,"");var n=new FormData;if(null===t||void 0===t)throw new Error("The parameter 'file' cannot be null.");n.append("file",t.data,t.fileName?t.fileName:"file");var o={data:n,method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"",Accept:"application/json"},cancelToken:i};return this.instance.request(o).catch((function(e){if(Pv(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 a,n=e.data;return a=gl.fromJS(n),Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"uploadPublicFile",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/AmazonS3/UploadPublicFile";a=a.replace(/[?&]$/,"");var n=new FormData;if(null===t||void 0===t)throw new Error("The parameter 'files' cannot be null.");t.forEach((function(e){return n.append("files",e.data,e.fileName?e.fileName:"files")}));var o={data:n,method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:""},cancelToken:i};return this.instance.request(o).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}var o=e.data,s=o;return Tv("Error",t,o,i,Ih.fromJS(s))}},{key:"deleteFile",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/AmazonS3/DeleteFile";a=a.replace(/[?&]$/,"");var n=new FormData;if(null===t||void 0===t)throw new Error("The parameter 'src' cannot be null.");n.append("src",t.toString());var o={data:n,method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:""},cancelToken:i};return this.instance.request(o).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getAllImages",value:function(e,t){var i=this,r=this.baseUrl+"/api/AmazonS3/GetAllImages",a={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(a).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(Ko.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}}]),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,a=this.baseUrl+"/api/AttendanceForm/GetAll";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=bt.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getById",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/AttendanceForm/GetById?";if(null===e)throw new Error("The parameter 'attendanceFormId' cannot be null.");void 0!==e&&(a+="attendanceFormId="+encodeURIComponent(""+e)+"&");var n={method:"GET",url:a=a.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=vt.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"archive",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/AttendanceForm/Archive";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(ft.fromJS(c))}}catch(m){l.e(m)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(204===t)return Tv("Success",t,e.data,i);if(400===t){var d=e.data,u=d;return Tv("Bad Request",t,d,i,xv.fromJS(u))}if(404===t){var h=e.data,p=h;return Tv("Not Found",t,h,i,Ih.fromJS(p))}var v=e.data,f=v;return Tv("Error",t,v,i,Ih.fromJS(f))}},{key:"create",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/AttendanceForm/Create";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=ft.fromJS(n),Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/AttendanceForm/Update";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=vt.fromJS(n),Promise.resolve(a)}if(201===t){var o,s=e.data;return o=vt.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"setAsDefault",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/AttendanceForm/SetAsDefault";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=ft.fromJS(n),Promise.resolve(a)}return 200!==t&&204!==t?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"delete",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/AttendanceForm/Delete";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(ft.fromJS(c))}}catch(m){l.e(m)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(204===t)return Tv("Success",t,e.data,i);if(400===t){var d=e.data,u=d;return Tv("Bad Request",t,d,i,xv.fromJS(u))}if(404===t){var h=e.data,p=h;return Tv("Not Found",t,h,i,Ih.fromJS(p))}var v=e.data,f=v;return Tv("Error",t,v,i,Ih.fromJS(f))}},{key:"validateAttendanceFormName",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/AttendanceForm/ValidateAttendanceFormName";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getSessionFormDetails",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/AttendanceForm/GetSessionFormDetails/{sessionId}";if(void 0===e||null===e)throw new Error("The parameter 'sessionId' must be defined.");var n={method:"GET",url:a=(a=a.replace("{sessionId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Ou.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getScheduleSessionFormDetails",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/AttendanceForm/GetScheduleSessionFormDetails";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(Ou.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"getAttendanceFormDetailsByGuid",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/AttendanceForm/GetAttendanceFormDetailsByGuid?";if(null===e)throw new Error("The parameter 'guid' cannot be null.");void 0!==e&&(a+="guid="+encodeURIComponent(""+e)+"&");var n={method:"POST",url:a=a.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Et.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.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,a=this.baseUrl+"/api/AuditLog/GetAll";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Ot.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getById",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/AuditLog/GetById/{auditId}";if(void 0===e||null===e)throw new Error("The parameter 'auditId' must be defined.");var n={method:"GET",url:a=(a=a.replace("{auditId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=It.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.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,a=this.baseUrl+"/api/CalendarSavedFilter/GetAll";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Dt.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"get",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/CalendarSavedFilter/Get";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=kt.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"create",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/CalendarSavedFilter/Create";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=kt.fromJS(n),Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/CalendarSavedFilter/Update";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=kt.fromJS(n),Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"delete",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/CalendarSavedFilter/Delete";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"validateCalendarSavedFilterName",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/CalendarSavedFilter/ValidateCalendarSavedFilterName";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Tv("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,a=this.baseUrl+"/api/CatalogSavedFilter/GetAll";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Bt.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"get",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/CatalogSavedFilter/Get";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Ft.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"create",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/CatalogSavedFilter/Create";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Ft.fromJS(n),Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/CatalogSavedFilter/Update";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Ft.fromJS(n),Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"delete",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/CatalogSavedFilter/Delete";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"validateCatalogSavedFilterName",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/CatalogSavedFilter/ValidateCatalogSavedFilterName";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Tv("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,a=this.baseUrl+"/api/Certificate/GetAll";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Mt.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getById",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Certificate/GetById?";if(null===e)throw new Error("The parameter 'certificateId' cannot be null.");void 0!==e&&(a+="certificateId="+encodeURIComponent(""+e)+"&");var n={method:"GET",url:a=a.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Rt.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getByLicense",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Certificate/GetByLicense";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Rt.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getByMultipleLicense",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Certificate/GetByMultipleLicense";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(Ql.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"archive",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Certificate/Archive";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(Gt.fromJS(c))}}catch(m){l.e(m)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(204===t)return Tv("Success",t,e.data,i);if(400===t){var d=e.data,u=d;return Tv("Bad Request",t,d,i,xv.fromJS(u))}if(404===t){var h=e.data,p=h;return Tv("Not Found",t,h,i,Ih.fromJS(p))}var v=e.data,f=v;return Tv("Error",t,v,i,Ih.fromJS(f))}},{key:"delete",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Certificate/Delete";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(Gt.fromJS(c))}}catch(m){l.e(m)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(204===t)return Tv("Success",t,e.data,i);if(400===t){var d=e.data,u=d;return Tv("Bad Request",t,d,i,xv.fromJS(u))}if(404===t){var h=e.data,p=h;return Tv("Not Found",t,h,i,Ih.fromJS(p))}var v=e.data,f=v;return Tv("Error",t,v,i,Ih.fromJS(f))}},{key:"create",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Certificate/Create";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Gt.fromJS(n),Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Certificate/Update";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Gt.fromJS(n),Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"validateCertificateName",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Certificate/ValidateCertificateName";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getSessionTemplateDetails",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Certificate/GetSessionTemplateDetails";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=ch.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getMultipleSessionTemplateDetails",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Certificate/GetMultipleSessionTemplateDetails";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(Zl.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"getSessionTemplateDetailsByGuid",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Certificate/GetSessionTemplateDetailsByGuid?";if(null===e)throw new Error("The parameter 'guid' cannot be null.");void 0!==e&&(a+="guid="+encodeURIComponent(""+e)+"&");var n={method:"POST",url:a=a.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=dh.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.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,a=this.baseUrl+"/api/ClassYear/GetAll";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Vt.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"exportCsv",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/ClassYear/ExportCsv";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportExcel",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/ClassYear/ExportExcel";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getClassYearListById",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/ClassYear/GetClassYearListById";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(Wt.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"get",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/ClassYear/Get/{classYearId}";if(void 0===e||null===e)throw new Error("The parameter 'classYearId' must be defined.");var n={method:"GET",url:a=(a=a.replace("{classYearId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Wt.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"create",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/ClassYear/Create";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Wt.fromJS(n),Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/ClassYear/Update";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Wt.fromJS(n),Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"delete",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/ClassYear/Delete";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(Wt.fromJS(c))}}catch(m){l.e(m)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(204===t)return Tv("Success",t,e.data,i);if(400===t){var d=e.data,u=d;return Tv("Bad Request",t,d,i,xv.fromJS(u))}if(404===t){var h=e.data,p=h;return Tv("Not Found",t,h,i,Ih.fromJS(p))}var v=e.data,f=v;return Tv("Error",t,v,i,Ih.fromJS(f))}},{key:"archive",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/ClassYear/Archive";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"merge",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/ClassYear/Merge";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateClassYearName",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/ClassYear/ValidateClassYearName";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateClassYearCode",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/ClassYear/ValidateClassYearCode";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Tv("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,a=this.baseUrl+"/api/Competency/GetAll";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Ht.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"exportCsv",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Competency/ExportCsv";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportExcel",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Competency/ExportExcel";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getCompetencyListById",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Competency/GetCompetencyListById";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(Yt.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"get",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Competency/Get/{competencyId}";if(void 0===e||null===e)throw new Error("The parameter 'competencyId' must be defined.");var n={method:"GET",url:a=(a=a.replace("{competencyId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Yt.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"create",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Competency/Create";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Yt.fromJS(n),Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Competency/Update";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Yt.fromJS(n),Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"delete",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Competency/Delete";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(Yt.fromJS(c))}}catch(m){l.e(m)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(204===t)return Tv("Success",t,e.data,i);if(400===t){var d=e.data,u=d;return Tv("Bad Request",t,d,i,xv.fromJS(u))}if(404===t){var h=e.data,p=h;return Tv("Not Found",t,h,i,Ih.fromJS(p))}var v=e.data,f=v;return Tv("Error",t,v,i,Ih.fromJS(f))}},{key:"archive",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Competency/Archive";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"merge",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Competency/Merge";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateCompetencyName",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Competency/ValidateCompetencyName";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateCompetencyCode",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Competency/ValidateCompetencyCode";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Tv("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",a={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(a).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push($t.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}}]),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,a=this.baseUrl+"/api/Compliance/GetAll";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Qt.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getAllUsersWithCompliance",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Compliance/GetAllUsersWithCompliance";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(e)&&e.response)return e.response;throw e})).then((function(e){return r.processGetAllUsersWithCompliance(e)}))}},{key:"processGetAllUsersWithCompliance",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Qt.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"exportCsv",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Compliance/ExportCsv";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportExcel",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Compliance/ExportExcel";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getStatistics",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Compliance/GetStatistics";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Si.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"exportStatisticsCsv",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Compliance/ExportStatisticsCsv";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportStatisticsExcel",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Compliance/ExportStatisticsExcel";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getLicenseStatusUserStatistics",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Compliance/GetLicenseStatusUserStatistics";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=ti.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.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,a=this.baseUrl+"/api/ComplianceLicenseeSavedFilter/GetAll";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Xt.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"get",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/ComplianceLicenseeSavedFilter/Get";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Zt.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"create",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/ComplianceLicenseeSavedFilter/Create";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Zt.fromJS(n),Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/ComplianceLicenseeSavedFilter/Update";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Zt.fromJS(n),Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"delete",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/ComplianceLicenseeSavedFilter/Delete";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"validateComplianceLicenseeSavedFilterName",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/ComplianceLicenseeSavedFilter/ValidateComplianceLicenseeSavedFilterName";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}}]),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/Country/GetAll",a={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(a).catch((function(e){if(Pv(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 a,n=e.data;return a=xi.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}}]),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/County/GetAll",a={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(a).catch((function(e){if(Pv(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 a,n=e.data;return a=Ti.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.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,a=this.baseUrl+"/api/Course/GetAll";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=_i.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"exportCsv",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Course/ExportCsv";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportExcel",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Course/ExportExcel";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"get",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Course/Get/{courseId}";if(void 0===e||null===e)throw new Error("The parameter 'courseId' must be defined.");var n={method:"GET",url:a=(a=a.replace("{courseId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=rr.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getCourseWithCategories",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Course/GetCourseWithCategories/{courseId}";if(void 0===e||null===e)throw new Error("The parameter 'courseId' must be defined.");var n={method:"GET",url:a=(a=a.replace("{courseId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Ji.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getCourseDetails",value:function(e,t,i,r){var a=this,n=this.baseUrl+"/api/Course/GetCourseDetails/{courseId}?";if(void 0===e||null===e)throw new Error("The parameter 'courseId' must be defined.");if(n=n.replace("{courseId}",encodeURIComponent(""+e)),null===t)throw new Error("The parameter 'scheduleId' cannot be null.");void 0!==t&&(n+="scheduleId="+encodeURIComponent(""+t)+"&");var o={method:"GET",url:n=n.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(Pv(e)&&e.response)return e.response;throw e})).then((function(e){return a.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 a,n=e.data;return a=Mi.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getCourseSessions",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Course/GetCourseSessions";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=tr.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getCourseSessionGroup",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Course/GetCourseSessionGroup";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Zi.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getPortalCourseSessions",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Course/GetPortalCourseSessions";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=yc.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"create",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Course/Create";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"createThirdParty",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Course/CreateThirdParty";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"createThirdPartySession",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Course/CreateThirdPartySession";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Course/Update";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"toggleCourseFavorite",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Course/ToggleCourseFavorite";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"delete",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Course/Delete";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(qi.fromJS(c))}}catch(m){l.e(m)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(204===t)return Tv("Success",t,e.data,i);if(400===t){var d=e.data,u=d;return Tv("Bad Request",t,d,i,xv.fromJS(u))}if(404===t){var h=e.data,p=h;return Tv("Not Found",t,h,i,Ih.fromJS(p))}var v=e.data,f=v;return Tv("Error",t,v,i,Ih.fromJS(f))}},{key:"archive",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Course/Archive";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"merge",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Course/Merge";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateCourse",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Course/ValidateCourse";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Ev.fromJS(n),Promise.resolve(a)}return 200!==t&&204!==t?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateCourseMerge",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Course/ValidateCourseMerge";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Tv("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,a=this.baseUrl+"/api/CourseCatalog/GetAll";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Ni.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getAllWithMultiSessions",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/CourseCatalog/GetAllWithMultiSessions";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Li.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getCourseDetail",value:function(e,t,i,r){var a=this,n=this.baseUrl+"/api/CourseCatalog/GetCourseDetail/{courseId}?";if(void 0===e||null===e)throw new Error("The parameter 'courseId' must be defined.");if(n=n.replace("{courseId}",encodeURIComponent(""+e)),null===t)throw new Error("The parameter 'userId' cannot be null.");void 0!==t&&(n+="userId="+encodeURIComponent(""+t)+"&");var o={method:"GET",url:n=n.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(Pv(e)&&e.response)return e.response;throw e})).then((function(e){return a.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 a,n=e.data;return a=Pi.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getCourseSessions",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/CourseCatalog/GetCourseSessions";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(ki.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"getCourseDetailByGuid",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/CourseCatalog/GetCourseDetailByGuid";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Pi.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getCourseSessionsByGuid",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/CourseCatalog/GetCourseSessionsByGuid";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(ki.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"getRegistrationCourseDetailByGuid",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/CourseCatalog/GetRegistrationCourseDetailByGuid";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Pi.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getCourseSessionRegistrationLinkByGuid",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/CourseCatalog/GetCourseSessionRegistrationLinkByGuid";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(ki.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"getRegistrationCourseDetailByScheduleGuid",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/CourseCatalog/GetRegistrationCourseDetailByScheduleGuid";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Pi.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getCourseSessionRegistrationLinkByScheduleyGuid",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/CourseCatalog/GetCourseSessionRegistrationLinkByScheduleyGuid";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(ki.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}}]),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,a=this.baseUrl+"/api/CourseCollection/Create";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=_t.fromJS(n),Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"addToCollection",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/CourseCollection/AddToCollection";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Bi.fromJS(n),Promise.resolve(a)}return 200!==t&&204!==t?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getAllUserCollections",value:function(e,t,i,r){var a=this,n=this.baseUrl+"/api/CourseCollection/GetAllUserCollections?";if(null===e)throw new Error("The parameter 'userId' cannot be null.");if(void 0!==e&&(n+="userId="+encodeURIComponent(""+e)+"&"),null===t)throw new Error("The parameter 'courseId' cannot be null.");void 0!==t&&(n+="courseId="+encodeURIComponent(""+t)+"&");var o={method:"GET",url:n=n.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(Pv(e)&&e.response)return e.response;throw e})).then((function(e){return a.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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(_t.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"getCourseCollectionById",value:function(e,t,i,r,a){var n=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:a};return this.instance.request(s).catch((function(e){if(Pv(e)&&e.response)return e.response;throw e})).then((function(e){return n.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 a,n=e.data;return a=Ri.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getUserCourseCollectionByCourseId",value:function(e,t,i,r){var a=this,n=this.baseUrl+"/api/CourseCollection/GetUserCourseCollectionByCourseId?";if(null===e)throw new Error("The parameter 'userId' cannot be null.");if(void 0!==e&&(n+="userId="+encodeURIComponent(""+e)+"&"),null===t)throw new Error("The parameter 'courseId' cannot be null.");void 0!==t&&(n+="courseId="+encodeURIComponent(""+t)+"&");var o={method:"GET",url:n=n.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(Pv(e)&&e.response)return e.response;throw e})).then((function(e){return a.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 a,n=e.data;return a=Ri.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getUserCourseCollection",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/CourseCollection/GetUserCourseCollection?";if(null===e)throw new Error("The parameter 'userId' cannot be null.");void 0!==e&&(a+="userId="+encodeURIComponent(""+e)+"&");var n={method:"GET",url:a=a.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(lp.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"getCollection",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/CourseCollection/GetCollection?";if(null===e)throw new Error("The parameter 'collectionId' cannot be null.");void 0!==e&&(a+="collectionId="+encodeURIComponent(""+e)+"&");var n={method:"GET",url:a=a.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=_t.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"removeCourseFromCollection",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/CourseCollection/RemoveCourseFromCollection";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getAllCourseCollectionByCollectionId",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/CourseCollection/GetAllCourseCollectionByCollectionId";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=hp.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"updateCollection",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/CourseCollection/UpdateCollection";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=_t.fromJS(n),Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"validateCollection",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/CourseCollection/ValidateCollection";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"deleteCollection",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/CourseCollection/DeleteCollection";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.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",a={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(a).catch((function(e){if(Pv(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 a,n=e.data;return a=Wi.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getAllActive",value:function(e,t){var i=this,r=this.baseUrl+"/api/CourseFormat/GetAllActive",a={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(a).catch((function(e){if(Pv(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 a,n=e.data;return a=Wi.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"get",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/CourseFormat/Get/{courseFormatId}";if(void 0===e||null===e)throw new Error("The parameter 'courseFormatId' must be defined.");var n={method:"GET",url:a=(a=a.replace("{courseFormatId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=zi.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"archive",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/CourseFormat/Archive";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.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,a=this.baseUrl+"/api/CourseSavedFilter/GetAll";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Hi.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"get",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/CourseSavedFilter/Get";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=$i.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"create",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/CourseSavedFilter/Create";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=$i.fromJS(n),Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/CourseSavedFilter/Update";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=$i.fromJS(n),Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"delete",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/CourseSavedFilter/Delete";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"validateCourseSavedFilterName",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/CourseSavedFilter/ValidateCourseSavedFilterName";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Tv("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,a=this.baseUrl+"/api/Dashboard/GetAllSessions";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Dr.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getReportingPeriodStatistics",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Dashboard/GetReportingPeriodStatistics";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Nr.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getMarketingEmails",value:function(e,t){var i=this,r=this.baseUrl+"/api/Dashboard/GetMarketingEmails",a={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(a).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(Ho.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"getUserFavoriteReports",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Dashboard/GetUserFavoriteReports";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Jr.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.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",a={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(a).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(Fr.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}}]),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,a=this.baseUrl+"/api/DeclineCode/GetAll";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Rr.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"exportCsv",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/DeclineCode/ExportCsv";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportExcel",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/DeclineCode/ExportExcel";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getDeclineListById",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/DeclineCode/GetDeclineListById";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(Br.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"get",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/DeclineCode/Get/{declineCodeId}";if(void 0===e||null===e)throw new Error("The parameter 'declineCodeId' must be defined.");var n={method:"GET",url:a=(a=a.replace("{declineCodeId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Br.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"create",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/DeclineCode/Create";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Br.fromJS(n),Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/DeclineCode/Update";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Br.fromJS(n),Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"delete",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/DeclineCode/Delete";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(Br.fromJS(c))}}catch(m){l.e(m)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(204===t)return Tv("Success",t,e.data,i);if(400===t){var d=e.data,u=d;return Tv("Bad Request",t,d,i,xv.fromJS(u))}if(404===t){var h=e.data,p=h;return Tv("Not Found",t,h,i,Ih.fromJS(p))}var v=e.data,f=v;return Tv("Error",t,v,i,Ih.fromJS(f))}},{key:"archive",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/DeclineCode/Archive";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"merge",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/DeclineCode/Merge";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateDeclineCodeName",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/DeclineCode/ValidateDeclineCodeName";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateDeclineCodeCode",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/DeclineCode/ValidateDeclineCodeCode";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Tv("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,a=this.baseUrl+"/api/Department/GetAll";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=ia.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"exportCsv",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Department/ExportCsv";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportExcel",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Department/ExportExcel";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getDepartmentListById",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Department/GetDepartmentListById";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(ta.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"get",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Department/Get/{departmentId}";if(void 0===e||null===e)throw new Error("The parameter 'departmentId' must be defined.");var n={method:"GET",url:a=(a=a.replace("{departmentId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=ta.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"create",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Department/Create";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=ta.fromJS(n),Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Department/Update";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=ta.fromJS(n),Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"delete",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Department/Delete";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(ta.fromJS(c))}}catch(m){l.e(m)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(204===t)return Tv("Success",t,e.data,i);if(400===t){var d=e.data,u=d;return Tv("Bad Request",t,d,i,xv.fromJS(u))}if(404===t){var h=e.data,p=h;return Tv("Not Found",t,h,i,Ih.fromJS(p))}var v=e.data,f=v;return Tv("Error",t,v,i,Ih.fromJS(f))}},{key:"archive",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Department/Archive";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"merge",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Department/Merge";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateDepartmentName",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Department/ValidateDepartmentName";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateDepartmentCode",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Department/ValidateDepartmentCode";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Tv("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,a=this.baseUrl+"/api/DevelopmentOverallReflection/Get";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=ra.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"create",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/DevelopmentOverallReflection/Create";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=ra.fromJS(n),Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/DevelopmentOverallReflection/Update";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=ra.fromJS(n),Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.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,a=this.baseUrl+"/api/DevelopmentPlan/GetUserLicenseComplianceProfile";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(oa.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"getDevelopmentPlanFrameworkId",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/DevelopmentPlan/GetDevelopmentPlanFrameworkId";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getDevelopmentPlanFramework",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/DevelopmentPlan/GetDevelopmentPlanFramework";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(na.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"getAllByLicense",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/DevelopmentPlan/GetAllByLicense";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(c)}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"create",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/DevelopmentPlan/Create";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/DevelopmentPlan/Update";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"confirm",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/DevelopmentPlan/Confirm";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Tv("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:"createCourseDevelopmentRecord",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/DevelopmentRecord/CreateCourseDevelopmentRecord";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"deleteCourseDevelopmentRecord",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/DevelopmentRecord/DeleteCourseDevelopmentRecord";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getAllUserUkLicenses",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/DevelopmentRecord/GetAllUserUkLicenses";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(dv.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"createActivityDevelopmentRecord",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/DevelopmentRecord/CreateActivityDevelopmentRecord";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"getAllDevelopmentRecords",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/DevelopmentRecord/GetAllDevelopmentRecords";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=ha.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"createDevelopmentRecordReflection",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/DevelopmentRecord/CreateDevelopmentRecordReflection";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}var o=e.data,s=o;return Tv("Error",t,o,i,Ih.fromJS(s))}},{key:"deleteActivityDevelopmentRecord",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/DevelopmentRecord/DeleteActivityDevelopmentRecord";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"deleteLearningNeedDevelopmentRecord",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/DevelopmentRecord/DeleteLearningNeedDevelopmentRecord";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getAllDevelopmentRecordLearningNeeds",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/DevelopmentRecord/GetAllDevelopmentRecordLearningNeeds";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=ua.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"createLearningNeedDevelopmentRecord",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/DevelopmentRecord/CreateLearningNeedDevelopmentRecord";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}var o=e.data,s=o;return Tv("Error",t,o,i,Ih.fromJS(s))}},{key:"updateDevelopmentRecordCredits",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/DevelopmentRecord/UpdateDevelopmentRecordCredits";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}var o=e.data,s=o;return Tv("Error",t,o,i,Ih.fromJS(s))}},{key:"getAllDevelopmentRecordByLicenseIdList",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/DevelopmentRecord/GetAllDevelopmentRecordByLicenseIdList";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=ha.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"validateCourseDevelopmentRecord",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/DevelopmentRecord/ValidateCourseDevelopmentRecord";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Ev.fromJS(n),Promise.resolve(a)}return 200!==t&&204!==t?Tv("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:"getAllEmail",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Email/GetAllEmail";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=xa.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getEmailById",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Email/GetEmailById?";if(null===e)throw new Error("The parameter 'emailId' cannot be null.");void 0!==e&&(a+="emailId="+encodeURIComponent(""+e)+"&");var n={method:"GET",url:a=a.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Ia.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getAllEmailTransactionById",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Email/GetAllEmailTransactionById";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Ba.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getEmailTokenById",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Email/GetEmailTokenById?";if(null===e)throw new Error("The parameter 'emailTypeId' cannot be null.");void 0!==e&&(a+="emailTypeId="+encodeURIComponent(""+e)+"&");var n={method:"GET",url:a=a.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Ja.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getAllEmailType",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Email/GetAllEmailType";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Ma.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getEmailTypeById",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Email/GetEmailTypeById/{EmailTypeId}";if(void 0===e||null===e)throw new Error("The parameter 'emailTypeId' must be defined.");var n={method:"GET",url:a=(a=a.replace("{EmailTypeId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Ua.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getAllEmailTemplate",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Email/GetAllEmailTemplate";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=ka.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getEmailTemplate",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Email/GetEmailTemplate/{EmailTemplateId}";if(void 0===e||null===e)throw new Error("The parameter 'emailTemplateId' must be defined.");var n={method:"GET",url:a=(a=a.replace("{EmailTemplateId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Na.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getEmailRecipientsBySessionIds",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Email/GetEmailRecipientsBySessionIds";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(Pa.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"archiveEmail",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Email/ArchiveEmail";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"createEmailCommand",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Email/CreateEmailCommand";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Ia.fromJS(n),Promise.resolve(a)}if(201===t){var o,s=e.data;return o=Ia.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"createEmailByRecipient",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Email/CreateEmailByRecipient";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}var o=e.data,s=o;return Tv("Error",t,o,i,Ih.fromJS(s))}},{key:"previewEmailCommand",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Email/PreviewEmailCommand";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"reprocessEmailCommand",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Email/ReprocessEmailCommand";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Ia.fromJS(n),Promise.resolve(a)}return 200!==t&&204!==t?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"createEmailTemplate",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Email/CreateEmailTemplate";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Na.fromJS(n),Promise.resolve(a)}if(201===t){var o,s=e.data;return o=Na.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"updateEmailTemplate",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Email/UpdateEmailTemplate";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Na.fromJS(n),Promise.resolve(a)}if(201===t){var o,s=e.data;return o=Na.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"assignTemplate",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Email/AssignTemplate";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Ua.fromJS(n),Promise.resolve(a)}return 200!==t&&204!==t?Tv("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",a={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(a).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"deleteEmailTemplate",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Email/DeleteEmailTemplate";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getSavedEmailTemplateById",value:function(e,t,i,r){var a=this,n=this.baseUrl+"/api/Email/GetSavedEmailTemplateById?";if(null===e)throw new Error("The parameter 'key' cannot be null.");if(void 0!==e&&(n+="key="+encodeURIComponent(""+e)+"&"),null===t)throw new Error("The parameter 'emailTypeId' cannot be null.");void 0!==t&&(n+="emailTypeId="+encodeURIComponent(""+t)+"&");var o={method:"GET",url:n=n.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(Pv(e)&&e.response)return e.response;throw e})).then((function(e){return a.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 a,n=e.data;return a=Ud.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"saveSessionEmail",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Email/SaveSessionEmail";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(e)&&e.response)return e.response;throw e})).then((function(e){return r.processSaveSessionEmail(e)}))}},{key:"processSaveSessionEmail",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=qd.fromJS(n),Promise.resolve(a)}return 200!==t&&204!==t?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getSessionSavedEmail",value:function(e,t,i,r){var a=this,n=this.baseUrl+"/api/Email/GetSessionSavedEmail?";if(null===e)throw new Error("The parameter 'sessionId' cannot be null.");if(void 0!==e&&(n+="sessionId="+encodeURIComponent(""+e)+"&"),null===t)throw new Error("The parameter 'emailTypeId' cannot be null.");void 0!==t&&(n+="emailTypeId="+encodeURIComponent(""+t)+"&");var o={method:"GET",url:n=n.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(Pv(e)&&e.response)return e.response;throw e})).then((function(e){return a.processGetSessionSavedEmail(e)}))}},{key:"processGetSessionSavedEmail",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=qd.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"updateSavedSessionEmail",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Email/UpdateSavedSessionEmail";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateSavedSessionEmail(e)}))}},{key:"processUpdateSavedSessionEmail",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=qd.fromJS(n),Promise.resolve(a)}if(201===t){var o,s=e.data;return o=qd.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"deleteSavedSessionEmail",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Email/DeleteSavedSessionEmail";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDeleteSavedSessionEmail(e)}))}},{key:"processDeleteSavedSessionEmail",value:function(e){var t=e.status,i={};if(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"saveScheduleEmail",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Email/SaveScheduleEmail";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(e)&&e.response)return e.response;throw e})).then((function(e){return r.processSaveScheduleEmail(e)}))}},{key:"processSaveScheduleEmail",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Md.fromJS(n),Promise.resolve(a)}return 200!==t&&204!==t?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getScheduleSavedEmail",value:function(e,t,i,r){var a=this,n=this.baseUrl+"/api/Email/GetScheduleSavedEmail?";if(null===e)throw new Error("The parameter 'scheduleId' cannot be null.");if(void 0!==e&&(n+="scheduleId="+encodeURIComponent(""+e)+"&"),null===t)throw new Error("The parameter 'emailTypeId' cannot be null.");void 0!==t&&(n+="emailTypeId="+encodeURIComponent(""+t)+"&");var o={method:"GET",url:n=n.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(Pv(e)&&e.response)return e.response;throw e})).then((function(e){return a.processGetScheduleSavedEmail(e)}))}},{key:"processGetScheduleSavedEmail",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Md.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"updateSavedScheduleEmail",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Email/UpdateSavedScheduleEmail";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateSavedScheduleEmail(e)}))}},{key:"processUpdateSavedScheduleEmail",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Md.fromJS(n),Promise.resolve(a)}if(201===t){var o,s=e.data;return o=Md.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"deleteSavedScheduleEmail",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Email/DeleteSavedScheduleEmail";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDeleteSavedScheduleEmail(e)}))}},{key:"processDeleteSavedScheduleEmail",value:function(e){var t=e.status,i={};if(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"saveCourseEmail",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Email/SaveCourseEmail";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(e)&&e.response)return e.response;throw e})).then((function(e){return r.processSaveCourseEmail(e)}))}},{key:"processSaveCourseEmail",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Rd.fromJS(n),Promise.resolve(a)}return 200!==t&&204!==t?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getCourseSavedEmail",value:function(e,t,i,r){var a=this,n=this.baseUrl+"/api/Email/GetCourseSavedEmail?";if(null===e)throw new Error("The parameter 'courseId' cannot be null.");if(void 0!==e&&(n+="courseId="+encodeURIComponent(""+e)+"&"),null===t)throw new Error("The parameter 'emailTypeId' cannot be null.");void 0!==t&&(n+="emailTypeId="+encodeURIComponent(""+t)+"&");var o={method:"GET",url:n=n.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(Pv(e)&&e.response)return e.response;throw e})).then((function(e){return a.processGetCourseSavedEmail(e)}))}},{key:"processGetCourseSavedEmail",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Rd.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"updateSavedCourseEmail",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Email/UpdateSavedCourseEmail";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(e)&&e.response)return e.response;throw e})).then((function(e){return r.processUpdateSavedCourseEmail(e)}))}},{key:"processUpdateSavedCourseEmail",value:function(e){var t=e.status,i={};if(e.headers&&"object"===typeof e.headers)for(var r in e.headers)e.headers.hasOwnProperty(r)&&(i[r]=e.headers[r]);if(200===t){var a,n=e.data;return a=Rd.fromJS(n),Promise.resolve(a)}if(201===t){var o,s=e.data;return o=Rd.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"deleteSavedCourseEmail",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Email/DeleteSavedCourseEmail";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(e)&&e.response)return e.response;throw e})).then((function(e){return r.processDeleteSavedCourseEmail(e)}))}},{key:"processDeleteSavedCourseEmail",value:function(e){var t=e.status,i={};if(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"sendSessionParticipantRegistrationEmail",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Email/SendSessionParticipantRegistrationEmail";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"sendSessionParticipantRegistrationUpdateEmail",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Email/SendSessionParticipantRegistrationUpdateEmail";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"sendSessionParticipantRegistrationCancellationEmail",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Email/SendSessionParticipantRegistrationCancellationEmail";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"sendScheduleParticipantRegistrationEmail",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Email/SendScheduleParticipantRegistrationEmail";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"sendScheduleParticipantRegistrationUpdateEmail",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Email/SendScheduleParticipantRegistrationUpdateEmail";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"sendScheduleParticipantRegistrationCancellationEmail",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Email/SendScheduleParticipantRegistrationCancellationEmail";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"sendSessionParticipantWaitlistConfirmationEmail",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Email/SendSessionParticipantWaitlistConfirmationEmail";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"sendSessionParticipantWaitlistCancellationEmail",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Email/SendSessionParticipantWaitlistCancellationEmail";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"sendSessionCancellationEmail",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Email/SendSessionCancellationEmail";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getDuplicateEmailRecipient",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Email/GetDuplicateEmailRecipient";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(mp.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}}]),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,a=this.baseUrl+"/api/Ethnicity/GetAll";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=za.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"exportCsv",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Ethnicity/ExportCsv";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportExcel",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Ethnicity/ExportExcel";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getEthnicityListById",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Ethnicity/GetEthnicityListById";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(qa.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"get",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Ethnicity/Get/{ethnicityId}";if(void 0===e||null===e)throw new Error("The parameter 'ethnicityId' must be defined.");var n={method:"GET",url:a=(a=a.replace("{ethnicityId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=qa.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"create",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Ethnicity/Create";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=qa.fromJS(n),Promise.resolve(a)}if(201===t){var o,s=e.data;return o=qa.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Ethnicity/Update";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=qa.fromJS(n),Promise.resolve(a)}if(201===t){var o,s=e.data;return o=qa.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"delete",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Ethnicity/Delete";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(qa.fromJS(c))}}catch(m){l.e(m)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(204===t)return Tv("Success",t,e.data,i);if(400===t){var d=e.data,u=d;return Tv("Bad Request",t,d,i,xv.fromJS(u))}if(404===t){var h=e.data,p=h;return Tv("Not Found",t,h,i,Ih.fromJS(p))}var v=e.data,f=v;return Tv("Error",t,v,i,Ih.fromJS(f))}},{key:"archive",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Ethnicity/Archive";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"merge",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Ethnicity/Merge";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateEthnicityName",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Ethnicity/ValidateEthnicityName";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateEthnicityCode",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Ethnicity/ValidateEthnicityCode";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Tv("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,a=this.baseUrl+"/api/Evaluation/GetAll";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Ya.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getById",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Evaluation/GetById";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(Va.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"archive",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Evaluation/Archive";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"create",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Evaluation/Create";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Va.fromJS(n),Promise.resolve(a)}if(201===t){var o,s=e.data;return o=Va.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Evaluation/Update";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Va.fromJS(n),Promise.resolve(a)}if(201===t){var o,s=e.data;return o=Va.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"delete",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Evaluation/Delete";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(Va.fromJS(c))}}catch(m){l.e(m)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(204===t)return Tv("Success",t,e.data,i);if(400===t){var d=e.data,u=d;return Tv("Bad Request",t,d,i,xv.fromJS(u))}if(404===t){var h=e.data,p=h;return Tv("Not Found",t,h,i,Ih.fromJS(p))}var v=e.data,f=v;return Tv("Error",t,v,i,Ih.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,a=this.baseUrl+"/api/EvaluationQuestion/Create";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}var o=e.data,s=o;return Tv("Error",t,o,i,Ih.fromJS(s))}},{key:"update",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/EvaluationQuestion/Update";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}var o=e.data,s=o;return Tv("Error",t,o,i,Ih.fromJS(s))}},{key:"delete",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/EvaluationQuestion/Delete";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"copy",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/EvaluationQuestion/Copy";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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?Tv("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,a=this.baseUrl+"/api/EvaluationQuestionType/GetAll";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Ka.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.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,a=this.baseUrl+"/api/EvaluationSection/Create";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}var o=e.data,s=o;return Tv("Error",t,o,i,Ih.fromJS(s))}},{key:"update",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/EvaluationSection/Update";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}var o=e.data,s=o;return Tv("Error",t,o,i,Ih.fromJS(s))}},{key:"delete",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/EvaluationSection/Delete";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"copy",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/EvaluationSection/Copy";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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?Tv("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,a=this.baseUrl+"/api/Excuse/GetAll";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=tn.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"exportCsv",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Excuse/ExportCsv";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportExcel",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Excuse/ExportExcel";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getExcuseListById",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Excuse/GetExcuseListById";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(en.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"get",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Excuse/Get/{excuseId}";if(void 0===e||null===e)throw new Error("The parameter 'excuseId' must be defined.");var n={method:"GET",url:a=(a=a.replace("{excuseId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=en.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"create",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Excuse/Create";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=en.fromJS(n),Promise.resolve(a)}if(201===t){var o,s=e.data;return o=en.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Excuse/Update";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=en.fromJS(n),Promise.resolve(a)}if(201===t){var o,s=e.data;return o=en.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"delete",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Excuse/Delete";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(en.fromJS(c))}}catch(m){l.e(m)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(204===t)return Tv("Success",t,e.data,i);if(400===t){var d=e.data,u=d;return Tv("Bad Request",t,d,i,xv.fromJS(u))}if(404===t){var h=e.data,p=h;return Tv("Not Found",t,h,i,Ih.fromJS(p))}var v=e.data,f=v;return Tv("Error",t,v,i,Ih.fromJS(f))}},{key:"archive",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Excuse/Archive";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"merge",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Excuse/Merge";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateExcuseName",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Excuse/ValidateExcuseName";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateExcuseCode",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Excuse/ValidateExcuseCode";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Tv("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,a=this.baseUrl+"/api/Export/ExportCoursesToCsv";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Tv("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",a={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(a).catch((function(e){if(Pv(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 a,n=e.data;return a=on.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getSettings",value:function(e,t){var i=this,r=this.baseUrl+"/api/Firm/GetSettings",a={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(a).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(pn.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"update",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Firm/Update";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=on.fromJS(n),Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"updateSettings",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Firm/UpdateSettings";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}var o=e.data,s=o;return Tv("Error",t,o,i,Ih.fromJS(s))}},{key:"getFirmLoginScreenDetails",value:function(e,t){var i=this,r=this.baseUrl+"/api/Firm/GetFirmLoginScreenDetails",a={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(a).catch((function(e){if(Pv(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 a,n=e.data;return a=cn.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getFirmNotification",value:function(e,t){var i=this,r=this.baseUrl+"/api/Firm/GetFirmNotification",a={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(a).catch((function(e){if(Pv(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 a,n=e.data;return a=hn.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"updateFirmNotification",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Firm/UpdateFirmNotification";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=hn.fromJS(n),Promise.resolve(a)}if(201===t){var o,s=e.data;return o=hn.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"getFirmNotificationBasicDetails",value:function(e,t){var i=this,r=this.baseUrl+"/api/Firm/GetFirmNotificationBasicDetails",a={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(a).catch((function(e){if(Pv(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 a,n=e.data;return a=un.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getStatementSchedule",value:function(e,t){var i=this,r=this.baseUrl+"/api/Firm/GetStatementSchedule",a={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(a).catch((function(e){if(Pv(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 a,n=e.data;return a=Eh.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getReminderSchedule",value:function(e,t){var i=this,r=this.baseUrl+"/api/Firm/GetReminderSchedule",a={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(a).catch((function(e){if(Pv(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 a,n=e.data;return a=qc.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getDueToReportSchedule",value:function(e,t){var i=this,r=this.baseUrl+"/api/Firm/GetDueToReportSchedule",a={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(a).catch((function(e){if(Pv(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 a,n=e.data;return a=ya.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"updateFirmNotificationStatus",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Firm/UpdateFirmNotificationStatus";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}var o=e.data,s=o;return Tv("Error",t,o,i,Ih.fromJS(s))}},{key:"getTenantLoginEnabled",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Firm/GetTenantLoginEnabled/{hostName}";if(void 0===e||null===e)throw new Error("The parameter 'hostName' must be defined.");var n={method:"GET",url:a=(a=a.replace("{hostName}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getFirmUsageReport",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Firm/GetFirmUsageReport";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=vn.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"exportCsv",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Firm/ExportCsv";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportExcel",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Firm/ExportExcel";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportFileCsv",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Firm/ExportFileCsv";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportFileExcel",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Firm/ExportFileExcel";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("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",a={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(a).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(an.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"update",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/FirmAnnouncement/Update";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(an.fromJS(c))}}catch(b){l.e(b)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(201===t){var d=null,u=e.data;if(Array.isArray(u)){d=[];var h,p=Object(s.a)(u);try{for(p.s();!(h=p.n()).done;){var v=h.value;d.push(an.fromJS(v))}}catch(b){p.e(b)}finally{p.f()}}else d=null;return Promise.resolve(d)}if(400===t){var f=e.data,m=f;return Tv("Bad Request",t,f,i,xv.fromJS(m))}var y=e.data,g=y;return Tv("Error",t,y,i,Ih.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,a=this.baseUrl+"/api/FormNumberExclude/GetAll";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=mn.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.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,a=this.baseUrl+"/api/FormNumberStyle/GetAll";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=gn.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.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,a=this.baseUrl+"/api/Gender/GetAll";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Sn.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"exportCsv",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Gender/ExportCsv";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportExcel",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Gender/ExportExcel";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getGenderListById",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Gender/GetGenderListById";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(bn.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"get",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Gender/Get/{genderId}";if(void 0===e||null===e)throw new Error("The parameter 'genderId' must be defined.");var n={method:"GET",url:a=(a=a.replace("{genderId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=bn.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"create",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Gender/Create";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=bn.fromJS(n),Promise.resolve(a)}if(201===t){var o,s=e.data;return o=bn.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Gender/Update";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=bn.fromJS(n),Promise.resolve(a)}if(201===t){var o,s=e.data;return o=bn.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"delete",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Gender/Delete";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(bn.fromJS(c))}}catch(m){l.e(m)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(204===t)return Tv("Success",t,e.data,i);if(400===t){var d=e.data,u=d;return Tv("Bad Request",t,d,i,xv.fromJS(u))}if(404===t){var h=e.data,p=h;return Tv("Not Found",t,h,i,Ih.fromJS(p))}var v=e.data,f=v;return Tv("Error",t,v,i,Ih.fromJS(f))}},{key:"archive",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Gender/Archive";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"merge",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Gender/Merge";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateGenderName",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Gender/ValidateGenderName";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateGenderCode",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Gender/ValidateGenderCode";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Tv("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",a={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(a).catch((function(e){if(Pv(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 a,n=e.data;return a=us.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getAllIntegrationJob",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Integration/GetAllIntegrationJob";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=ls.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getIntegrationJobById",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Integration/GetIntegrationJobById?";if(null===e)throw new Error("The parameter 'integrationJobId' cannot be null.");void 0!==e&&(a+="IntegrationJobId="+encodeURIComponent(""+e)+"&");var n={method:"GET",url:a=a.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=os.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getIntegrationLogsById",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Integration/GetIntegrationLogsById?";if(null===e)throw new Error("The parameter 'integrationJobId' cannot be null.");void 0!==e&&(a+="IntegrationJobId="+encodeURIComponent(""+e)+"&");var n={method:"GET",url:a=a.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=ps.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getAllIntegrationTags",value:function(e,t){var i=this,r=this.baseUrl+"/api/Integration/GetAllIntegrationTags",a={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(a).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(c)}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"getIntegrationJobCoursesById",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Integration/GetIntegrationJobCoursesById";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=ns.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getIntegrationJobSessionsById",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Integration/GetIntegrationJobSessionsById";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=ds.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getIntegrationJobAttendeesById",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Integration/GetIntegrationJobAttendeesById";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=rs.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"archiveIntegrationJob",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Integration/ArchiveIntegrationJob";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"downloadIntegrationJobFeed",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Integration/DownloadIntegrationJobFeed?";if(null===e)throw new Error("The parameter 'integrationJobId' cannot be null.");void 0!==e&&(a+="IntegrationJobId="+encodeURIComponent(""+e)+"&");var n={responseType:"blob",method:"GET",url:a=a.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getById",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Integration/GetById?";if(null===e)throw new Error("The parameter 'integrationId' cannot be null.");void 0!==e&&(a+="integrationId="+encodeURIComponent(""+e)+"&");var n={method:"GET",url:a=a.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=ts.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"update",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Integration/Update";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=ts.fromJS(n),Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"trigger",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Integration/Trigger";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=os.fromJS(n),Promise.resolve(a)}return 200!==t&&204!==t?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"downloadPLICertificate",value:function(e,t,i,r){var a=this,n=this.baseUrl+"/api/Integration/DownloadPLICertificate?";if(null===e)throw new Error("The parameter 'sessionParticipantId' cannot be null.");if(void 0!==e&&(n+="sessionParticipantId="+encodeURIComponent(""+e)+"&"),null===t)throw new Error("The parameter 'integraionSessionParticipantCertificateId' cannot be null.");void 0!==t&&(n+="integraionSessionParticipantCertificateId="+encodeURIComponent(""+t)+"&");var o={responseType:"blob",method:"GET",url:n=n.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(Pv(e)&&e.response)return e.response;throw e})).then((function(e){return a.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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("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,a=this.baseUrl+"/api/JurisdictionReport/Generate";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("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",a={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(a).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(ms.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}}]),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:"get",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/LearningPlan/Get/{learningPlanId}";if(void 0===e||null===e)throw new Error("The parameter 'learningPlanId' must be defined.");var n={method:"GET",url:a=(a=a.replace("{learningPlanId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=$s.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getByGuid",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/LearningPlan/GetByGuid?";if(null===e)throw new Error("The parameter 'guid' cannot be null.");void 0!==e&&(a+="guid="+encodeURIComponent(""+e)+"&");var n={method:"POST",url:a=a.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=nl.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getAll",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/LearningPlan/GetAll";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=cl.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getAllDashboard",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/LearningPlan/GetAllDashboard";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Ms.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getAllId",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/LearningPlan/GetAllId";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Ys.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getLearningPlanListById",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/LearningPlan/GetLearningPlanListById";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=cl.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"create",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/LearningPlan/Create";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=qs.fromJS(n),Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/LearningPlan/Update";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=_h.fromJS(n),Promise.resolve(a)}if(201===t){var o,s=e.data;return o=_h.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"delete",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/LearningPlan/Delete";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"archive",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/LearningPlan/Archive";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getLearningPlanFilterList",value:function(e,t){var i=this,r=this.baseUrl+"/api/LearningPlan/GetLearningPlanFilterList",a={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(a).catch((function(e){if(Pv(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 a,n=e.data;return a=_s.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getAllActiveLearningPlanNames",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/LearningPlan/GetAllActiveLearningPlanNames";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(qe.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"validate",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/LearningPlan/Validate";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getLearningPlanCatalog",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/LearningPlan/GetLearningPlanCatalog";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Ls.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"generateLearningPlanLinkGuid",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/LearningPlan/GenerateLearningPlanLinkGuid";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Hs.fromJS(n),Promise.resolve(a)}return 200!==t&&204!==t?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getLearningPlanRegistrationLinkDetailsByGuid",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/LearningPlan/GetLearningPlanRegistrationLinkDetailsByGuid";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=al.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"updateLearningPlanEmailSetting",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/LearningPlan/UpdateLearningPlanEmailSetting";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}var o=e.data,s=o;return Tv("Error",t,o,i,Ih.fromJS(s))}},{key:"createLearningPlanNotificationEmailSetting",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/LearningPlan/CreateLearningPlanNotificationEmailSetting";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Qs.fromJS(n),Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"updateLearningPlanNotificationEmailSetting",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/LearningPlan/UpdateLearningPlanNotificationEmailSetting";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Qs.fromJS(n),Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"getLearningPlanNotificationEmailSetting",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/LearningPlan/GetLearningPlanNotificationEmailSetting";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Zs.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}}]),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,i){var r=this,a=this.baseUrl+"/api/LearningPlanParticipant/GetAll";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=el.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"add",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/LearningPlanParticipant/Add";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(Xs.fromJS(c))}}catch(d){l.e(d)}finally{l.f()}}else a=null;return Promise.resolve(a)}return 200!==t&&204!==t?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"delete",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/LearningPlanParticipant/Delete";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(Xs.fromJS(c))}}catch(m){l.e(m)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(204===t)return Tv("Success",t,e.data,i);if(400===t){var d=e.data,u=d;return Tv("Bad Request",t,d,i,xv.fromJS(u))}if(404===t){var h=e.data,p=h;return Tv("Not Found",t,h,i,Ih.fromJS(p))}var v=e.data,f=v;return Tv("Error",t,v,i,Ih.fromJS(f))}},{key:"update",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/LearningPlanParticipant/Update";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"getAllAvailableUsers",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/LearningPlanParticipant/GetAllAvailableUsers";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Mp.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getAllLearningPlanParticipantRequirements",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/LearningPlanParticipant/GetAllLearningPlanParticipantRequirements";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=il.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"exclude",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/LearningPlanParticipant/Exclude";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(Xs.fromJS(c))}}catch(d){l.e(d)}finally{l.f()}}else a=null;return Promise.resolve(a)}return 200!==t&&204!==t?Tv("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,a=this.baseUrl+"/api/LearningPlanRequirement/Get";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=ol.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"update",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/LearningPlanRequirement/Update";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=qs.fromJS(n),Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"getAvailableLearningPlanCourses",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/LearningPlanRequirement/GetAvailableLearningPlanCourses";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Pt.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getAvailableLearningPlanCoursesById",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/LearningPlanRequirement/GetAvailableLearningPlanCoursesById";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(Tt.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"getAvailableLearningPlanActivities",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/LearningPlanRequirement/GetAvailableLearningPlanActivities";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=wt.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getAvailableLearningPlanActivitiesById",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/LearningPlanRequirement/GetAvailableLearningPlanActivitiesById";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(jt.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"getRequirementSessions",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/LearningPlanRequirement/GetRequirementSessions";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(sl.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}}]),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",a={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(a).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(hl.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"updateLearningSettings",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/LearningSetting/UpdateLearningSettings";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(hl.fromJS(c))}}catch(b){l.e(b)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(201===t){var d=null,u=e.data;if(Array.isArray(u)){d=[];var h,p=Object(s.a)(u);try{for(p.s();!(h=p.n()).done;){var v=h.value;d.push(hl.fromJS(v))}}catch(b){p.e(b)}finally{p.f()}}else d=null;return Promise.resolve(d)}if(400===t){var f=e.data,m=f;return Tv("Bad Request",t,f,i,xv.fromJS(m))}var y=e.data,g=y;return Tv("Error",t,y,i,Ih.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,a=this.baseUrl+"/api/Level/GetAll";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=fl.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"exportCsv",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Level/ExportCsv";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportExcel",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Level/ExportExcel";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getLeveListById",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Level/GetLeveListById";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(vl.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"get",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Level/Get/{levelId}";if(void 0===e||null===e)throw new Error("The parameter 'levelId' must be defined.");var n={method:"GET",url:a=(a=a.replace("{levelId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=vl.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"create",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Level/Create";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=vl.fromJS(n),Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Level/Update";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=vl.fromJS(n),Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"delete",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Level/Delete";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(vl.fromJS(c))}}catch(m){l.e(m)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(204===t)return Tv("Success",t,e.data,i);if(400===t){var d=e.data,u=d;return Tv("Bad Request",t,d,i,xv.fromJS(u))}if(404===t){var h=e.data,p=h;return Tv("Not Found",t,h,i,Ih.fromJS(p))}var v=e.data,f=v;return Tv("Error",t,v,i,Ih.fromJS(f))}},{key:"archive",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Level/Archive";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"merge",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Level/Merge";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateLevelName",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Level/ValidateLevelName";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateLevelCode",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Level/ValidateLevelCode";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Tv("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,a=this.baseUrl+"/api/LibraryFile/GetAll";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Sl.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"exportCsv",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/LibraryFile/ExportCsv";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportExcel",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/LibraryFile/ExportExcel";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getLibraryFileListById",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/LibraryFile/GetLibraryFileListById";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Sl.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getSessionsByLibraryFileId",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/LibraryFile/GetSessionsByLibraryFileId";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=tr.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getAllMaterials",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/LibraryFile/GetAllMaterials";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Sl.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getAllFirmLogos",value:function(e,t){var i=this,r=this.baseUrl+"/api/LibraryFile/GetAllFirmLogos",a={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(a).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(dn.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"createFile",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/LibraryFile/CreateFile";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=gl.fromJS(n),Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"createLink",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/LibraryFile/CreateLink";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(gl.fromJS(c))}}catch(b){l.e(b)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(201===t){var d=null,u=e.data;if(Array.isArray(u)){d=[];var h,p=Object(s.a)(u);try{for(p.s();!(h=p.n()).done;){var v=h.value;d.push(gl.fromJS(v))}}catch(b){p.e(b)}finally{p.f()}}else d=null;return Promise.resolve(d)}if(400===t){var f=e.data,m=f;return Tv("Bad Request",t,f,i,xv.fromJS(m))}var y=e.data,g=y;return Tv("Error",t,y,i,Ih.fromJS(g))}},{key:"uploadFile",value:function(e,t,i,r){var a=this,n=this.baseUrl+"/api/LibraryFile/UploadFile?";if(null===e)throw new Error("The parameter 'isPublic' cannot be null.");void 0!==e&&(n+="isPublic="+encodeURIComponent(""+e)+"&"),n=n.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:n,headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:r};return this.instance.request(s).catch((function(e){if(Pv(e)&&e.response)return e.response;throw e})).then((function(e){return a.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 a,n=e.data;return a=gl.fromJS(n),Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"uploadAudio",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/LibraryFile/UploadAudio",n={data:t,method:"POST",url:a=a.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(n).catch((function(e){if(Pv(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 a,n=e.data;return a=gl.fromJS(n),Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"uploadCertificateSignature",value:function(e,t,i,r){var a=this,n=this.baseUrl+"/api/LibraryFile/UploadCertificateSignature?";if(null===e)throw new Error("The parameter 'certificateId' cannot be null.");void 0!==e&&(n+="certificateId="+encodeURIComponent(""+e)+"&"),n=n.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:n,headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:r};return this.instance.request(s).catch((function(e){if(Pv(e)&&e.response)return e.response;throw e})).then((function(e){return a.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 a,n=e.data;return a=qt.fromJS(n),Promise.resolve(a)}if(201===t){var o,s=e.data;return o=qt.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"deleteCertificateSignature",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/LibraryFile/DeleteCertificateSignature";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"uploadUserAvatar",value:function(e,t,i,r){var a=this,n=this.baseUrl+"/api/LibraryFile/UploadUserAvatar?";if(null===e)throw new Error("The parameter 'userId' cannot be null.");void 0!==e&&(n+="userId="+encodeURIComponent(""+e)+"&"),n=n.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:n,headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:r};return this.instance.request(s).catch((function(e){if(Pv(e)&&e.response)return e.response;throw e})).then((function(e){return a.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 a,n=e.data;return a=ap.fromJS(n),Promise.resolve(a)}if(201===t){var o,s=e.data;return o=ap.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"deleteUserAvatar",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/LibraryFile/DeleteUserAvatar";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"uploadUsersignature",value:function(e,t,i,r){var a=this,n=this.baseUrl+"/api/LibraryFile/UploadUsersignature?";if(null===e)throw new Error("The parameter 'userId' cannot be null.");void 0!==e&&(n+="userId="+encodeURIComponent(""+e)+"&"),n=n.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:n,headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:r};return this.instance.request(s).catch((function(e){if(Pv(e)&&e.response)return e.response;throw e})).then((function(e){return a.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 a,n=e.data;return a=iv.fromJS(n),Promise.resolve(a)}if(201===t){var o,s=e.data;return o=iv.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"deleteUserSignature",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/LibraryFile/DeleteUserSignature";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"uploadFirmLogo",value:function(e,t,i,r,a){var n=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:a};return this.instance.request(l).catch((function(e){if(Pv(e)&&e.response)return e.response;throw e})).then((function(e){return n.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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"deleteFirmLogo",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/LibraryFile/DeleteFirmLogo";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"updateFile",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/LibraryFile/UpdateFile";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=gl.fromJS(n),Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"updateFiles",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/LibraryFile/UpdateFiles";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(gl.fromJS(c))}}catch(b){l.e(b)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(201===t){var d=null,u=e.data;if(Array.isArray(u)){d=[];var h,p=Object(s.a)(u);try{for(p.s();!(h=p.n()).done;){var v=h.value;d.push(gl.fromJS(v))}}catch(b){p.e(b)}finally{p.f()}}else d=null;return Promise.resolve(d)}if(400===t){var f=e.data,m=f;return Tv("Bad Request",t,f,i,xv.fromJS(m))}var y=e.data,g=y;return Tv("Error",t,y,i,Ih.fromJS(g))}},{key:"createCourses",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/LibraryFile/CreateCourses";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(qi.fromJS(c))}}catch(b){l.e(b)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(201===t){var d=null,u=e.data;if(Array.isArray(u)){d=[];var h,p=Object(s.a)(u);try{for(p.s();!(h=p.n()).done;){var v=h.value;d.push(qi.fromJS(v))}}catch(b){p.e(b)}finally{p.f()}}else d=null;return Promise.resolve(d)}if(400===t){var f=e.data,m=f;return Tv("Bad Request",t,f,i,xv.fromJS(m))}var y=e.data,g=y;return Tv("Error",t,y,i,Ih.fromJS(g))}},{key:"deleteFiles",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/LibraryFile/DeleteFiles";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(gl.fromJS(c))}}catch(m){l.e(m)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(204===t)return Tv("Success",t,e.data,i);if(400===t){var d=e.data,u=d;return Tv("Bad Request",t,d,i,xv.fromJS(u))}if(404===t){var h=e.data,p=h;return Tv("Not Found",t,h,i,Ih.fromJS(p))}var v=e.data,f=v;return Tv("Error",t,v,i,Ih.fromJS(f))}},{key:"archiveFiles",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/LibraryFile/ArchiveFiles";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"downloadFile",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/LibraryFile/DownloadFile";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"downloadFileFromInvite",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/LibraryFile/DownloadFileFromInvite?";if(null===e)throw new Error("The parameter 'fileId' cannot be null.");void 0!==e&&(a+="fileId="+encodeURIComponent(""+e)+"&");var n={responseType:"blob",method:"GET",url:a=a.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"downloadFileByGuid",value:function(e,t,i,r){var a=this,n=this.baseUrl+"/api/LibraryFile/DownloadFileByGuid?";if(null===e)throw new Error("The parameter 'fileId' cannot be null.");void 0!==e&&(n+="fileId="+encodeURIComponent(""+e)+"&"),n=n.replace(/[?&]$/,"");var o={data:JSON.stringify(i),responseType:"blob",method:"POST",url:n,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(Pv(e)&&e.response)return e.response;throw e})).then((function(e){return a.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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getFileByGuid",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/LibraryFile/GetFileByGuid?";if(null===e)throw new Error("The parameter 'guid' cannot be null.");void 0!==e&&(a+="guid="+encodeURIComponent(""+e)+"&");var n={method:"GET",url:a=a.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Il.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.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,a=this.baseUrl+"/api/LibraryFileSetting/Get/{libraryFileId}";if(void 0===e||null===e)throw new Error("The parameter 'libraryFileId' must be defined.");var n={method:"GET",url:a=(a=a.replace("{libraryFileId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(xl.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"updateLibraryFileSettings",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/LibraryFileSetting/UpdateLibraryFileSettings";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(xl.fromJS(c))}}catch(b){l.e(b)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(201===t){var d=null,u=e.data;if(Array.isArray(u)){d=[];var h,p=Object(s.a)(u);try{for(p.s();!(h=p.n()).done;){var v=h.value;d.push(xl.fromJS(v))}}catch(b){p.e(b)}finally{p.f()}}else d=null;return Promise.resolve(d)}if(400===t){var f=e.data,m=f;return Tv("Bad Request",t,f,i,xv.fromJS(m))}var y=e.data,g=y;return Tv("Error",t,y,i,Ih.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,a=this.baseUrl+"/api/License/GetAll";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Fl.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getAllActive",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/License/GetAllActive";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Fl.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getAllFirmLicenses",value:function(e,t){var i=this,r=this.baseUrl+"/api/License/GetAllFirmLicenses",a={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(a).catch((function(e){if(Pv(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 a,n=e.data;return a=Fl.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getLicense",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/License/GetLicense?";if(null===e)throw new Error("The parameter 'licenseId' cannot be null.");void 0!==e&&(a+="licenseId="+encodeURIComponent(""+e)+"&");var n={method:"GET",url:a=a.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Al.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getUserLicenseLimitation",value:function(e,t){var i=this,r=this.baseUrl+"/api/License/GetUserLicenseLimitation",a={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(a).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(c)}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"getLicensePropertyFields",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/License/GetLicensePropertyFields/{licenseId}";if(void 0===e||null===e)throw new Error("The parameter 'licenseId' must be defined.");var n={method:"GET",url:a=(a=a.replace("{licenseId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Dl.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getLicenseSubfilters",value:function(e,t){var i=this,r=this.baseUrl+"/api/License/GetLicenseSubfilters",a={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(a).catch((function(e){if(Pv(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 a,n=e.data;return a=Gl.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"create",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/License/Create";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=sn.fromJS(n),Promise.resolve(a)}if(201===t){var o,s=e.data;return o=sn.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/License/Update";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=sn.fromJS(n),Promise.resolve(a)}if(201===t){var o,s=e.data;return o=sn.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"delete",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/License/Delete";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"archive",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/License/Archive";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"favorite",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/License/Favorite";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"assignCertificate",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/License/AssignCertificate";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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?Tv("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,a=this.baseUrl+"/api/LicenseSummary/GetAll";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Wl.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"get",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/LicenseSummary/Get/{licenseId}";if(void 0===e||null===e)throw new Error("The parameter 'licenseId' must be defined.");var n={method:"GET",url:a=(a=a.replace("{licenseId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=zl.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.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:"getAll",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Location/GetAll";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=_l.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getAllFirmOffice",value:function(e,t){var i=this,r=this.baseUrl+"/api/Location/GetAllFirmOffice",a={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(a).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(ln.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"exportCsv",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Location/ExportCsv";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportExcel",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Location/ExportExcel";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getLocationListById",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Location/GetLocationListById";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(Vl.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"get",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Location/Get/{locationId}";if(void 0===e||null===e)throw new Error("The parameter 'locationId' must be defined.");var n={method:"GET",url:a=(a=a.replace("{locationId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Vl.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"create",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Location/Create";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Vl.fromJS(n),Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Location/Update";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Vl.fromJS(n),Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"delete",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Location/Delete";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(Vl.fromJS(c))}}catch(m){l.e(m)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(204===t)return Tv("Success",t,e.data,i);if(400===t){var d=e.data,u=d;return Tv("Bad Request",t,d,i,xv.fromJS(u))}if(404===t){var h=e.data,p=h;return Tv("Not Found",t,h,i,Ih.fromJS(p))}var v=e.data,f=v;return Tv("Error",t,v,i,Ih.fromJS(f))}},{key:"archive",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Location/Archive";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"merge",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Location/Merge";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateLocationName",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Location/ValidateLocationName";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateLocationCode",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Location/ValidateLocationCode";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}}]),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:"getPasswordPolicy",value:function(e,t){var i=this,r=this.baseUrl+"/api/PasswordPolicy/GetPasswordPolicy",a={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(a).catch((function(e){if(Pv(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 a,n=e.data;return a=dt.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"updatePasswordPolicy",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/PasswordPolicy/UpdatePasswordPolicy";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}var o=e.data,s=o;return Tv("Error",t,o,i,Ih.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,a=this.baseUrl+"/api/PermissionSet/GetUserPermissionSets?";if(null===e)throw new Error("The parameter 'idpId' cannot be null.");void 0!==e&&(a+="idpId="+encodeURIComponent(""+e)+"&");var n={method:"GET",url:a=a.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(c)}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"get",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/PermissionSet/Get/{roleTypeId}";if(void 0===e||null===e)throw new Error("The parameter 'roleTypeId' must be defined.");var n={method:"GET",url:a=(a=a.replace("{roleTypeId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=dc.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.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,a=this.baseUrl+"/api/PortalSetting/GetBrandingSetting/{roleId}";if(void 0===e||null===e)throw new Error("The parameter 'roleId' must be defined.");var n={method:"GET",url:a=(a=a.replace("{roleId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=hc.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getElearningSetting",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/PortalSetting/GetElearningSetting/{roleId}";if(void 0===e||null===e)throw new Error("The parameter 'roleId' must be defined.");var n={method:"GET",url:a=(a=a.replace("{roleId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=gc.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getRoleElearningSetting",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/PortalSetting/GetRoleElearningSetting";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=gc.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getScreenInformation",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/PortalSetting/GetScreenInformation";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Sc.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"updateBranding",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/PortalSetting/UpdateBranding";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=hc.fromJS(n),Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"updateSetting",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/PortalSetting/UpdateSetting";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=gc.fromJS(n),Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"getPortalBranding",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/PortalSetting/GetPortalBranding/{idpId}";if(void 0===e||null===e)throw new Error("The parameter 'idpId' must be defined.");var n={method:"GET",url:a=(a=a.replace("{idpId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=uc.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.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,a=this.baseUrl+"/api/PortalTeamView/GetAll";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Cc.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getTeamByUserId",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/PortalTeamView/GetTeamByUserId";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Cc.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.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,a=this.baseUrl+"/api/Position/GetAll";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=kc.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"exportCsv",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Position/ExportCsv";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportExcel",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Position/ExportExcel";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getPositionListById",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Position/GetPositionListById";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(Nc.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"get",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Position/Get/{positionId}";if(void 0===e||null===e)throw new Error("The parameter 'positionId' must be defined.");var n={method:"GET",url:a=(a=a.replace("{positionId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Nc.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"create",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Position/Create";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Nc.fromJS(n),Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Position/Update";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Nc.fromJS(n),Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"delete",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Position/Delete";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(Nc.fromJS(c))}}catch(m){l.e(m)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(204===t)return Tv("Success",t,e.data,i);if(400===t){var d=e.data,u=d;return Tv("Bad Request",t,d,i,xv.fromJS(u))}if(404===t){var h=e.data,p=h;return Tv("Not Found",t,h,i,Ih.fromJS(p))}var v=e.data,f=v;return Tv("Error",t,v,i,Ih.fromJS(f))}},{key:"archive",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Position/Archive";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"merge",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Position/Merge";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validatePositionCode",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Position/ValidatePositionCode";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Tv("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,a=this.baseUrl+"/api/PracticeArea/GetAll";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Lc.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"exportCsv",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/PracticeArea/ExportCsv";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportExcel",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/PracticeArea/ExportExcel";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getPracticeAreaListById",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/PracticeArea/GetPracticeAreaListById";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(Dc.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"get",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/PracticeArea/Get/{practiceAreaId}";if(void 0===e||null===e)throw new Error("The parameter 'practiceAreaId' must be defined.");var n={method:"GET",url:a=(a=a.replace("{practiceAreaId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Dc.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"create",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/PracticeArea/Create";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Dc.fromJS(n),Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/PracticeArea/Update";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Dc.fromJS(n),Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"delete",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/PracticeArea/Delete";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(Dc.fromJS(c))}}catch(m){l.e(m)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(204===t)return Tv("Success",t,e.data,i);if(400===t){var d=e.data,u=d;return Tv("Bad Request",t,d,i,xv.fromJS(u))}if(404===t){var h=e.data,p=h;return Tv("Not Found",t,h,i,Ih.fromJS(p))}var v=e.data,f=v;return Tv("Error",t,v,i,Ih.fromJS(f))}},{key:"archive",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/PracticeArea/Archive";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"merge",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/PracticeArea/Merge";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validatePracticeAreaName",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/PracticeArea/ValidatePracticeAreaName";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validatePracticeAreaCode",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/PracticeArea/ValidatePracticeAreaCode";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Tv("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,a=this.baseUrl+"/api/Provider/GetAll";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Uc.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"exportCsv",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Provider/ExportCsv";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportExcel",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Provider/ExportExcel";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getProviderListById",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Provider/GetProviderListById";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(Rc.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"get",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Provider/Get/{providerId}";if(void 0===e||null===e)throw new Error("The parameter 'providerId' must be defined.");var n={method:"GET",url:a=(a=a.replace("{providerId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Rc.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"create",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Provider/Create";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Rc.fromJS(n),Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Provider/Update";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Rc.fromJS(n),Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"delete",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Provider/Delete";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(Rc.fromJS(c))}}catch(m){l.e(m)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(204===t)return Tv("Success",t,e.data,i);if(400===t){var d=e.data,u=d;return Tv("Bad Request",t,d,i,xv.fromJS(u))}if(404===t){var h=e.data,p=h;return Tv("Not Found",t,h,i,Ih.fromJS(p))}var v=e.data,f=v;return Tv("Error",t,v,i,Ih.fromJS(f))}},{key:"archive",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Provider/Archive";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"merge",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Provider/Merge";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateProviderName",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Provider/ValidateProviderName";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateProviderCode",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Provider/ValidateProviderCode";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Tv("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,a=this.baseUrl+"/api/Report/GetAll";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=fd.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"get",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Report/Get";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=td.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getUserFavoriteReports",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Report/GetUserFavoriteReports";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(Sp.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"toggleUserFavoriteReport",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Report/ToggleUserFavoriteReport";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}var o=e.data,s=o;return Tv("Error",t,o,i,Ih.fromJS(s))}},{key:"createUserReportLog",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Report/CreateUserReportLog";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}var o=e.data,s=o;return Tv("Error",t,o,i,Ih.fromJS(s))}},{key:"getToken",value:function(e,t,i,r){var a=this,n=this.baseUrl+"/api/Report/GetToken?";if(null===e)throw new Error("The parameter 'userName' cannot be null.");if(void 0!==e&&(n+="userName="+encodeURIComponent(""+e)+"&"),null===t)throw new Error("The parameter 'tenantUniqueName' cannot be null.");void 0!==t&&(n+="tenantUniqueName="+encodeURIComponent(""+t)+"&");var o={method:"GET",url:n=n.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(Pv(e)&&e.response)return e.response;throw e})).then((function(e){return a.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 a,n=e.data;return a=Cd.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getNewYorkLawYearEndReport",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Report/GetNewYorkLawYearEndReport";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Sd.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"updateNewYorkReportContactProfile",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Report/UpdateNewYorkReportContactProfile";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}var o=e.data,s=o;return Tv("Error",t,o,i,Ih.fromJS(s))}},{key:"getNewYorkLawActivityTable",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Report/GetNewYorkLawActivityTable";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Sd.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getComplianceReport",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Report/GetComplianceReport";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=ed.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getComplianceAuditReport",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Report/GetComplianceAuditReport";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Zc.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getMultimediaUsageReport",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Report/GetMultimediaUsageReport";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Kl.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getNebraskaCPEReportData",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Report/GetNebraskaCPEReportData";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=gd.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getProgramListNasbaReportData",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Report/GetProgramListNasbaReportData";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Od.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getEvaluationSummaryReportData",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Report/GetEvaluationSummaryReportData";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=rd.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getIllinoisLawData",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Report/GetIllinoisLawData";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=cd.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getIllinoisLawAttendanceReportData",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Report/GetIllinoisLawAttendanceReportData";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=ud.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getIllinoisLawCourseReportData",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Report/GetIllinoisLawCourseReportData";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=pd.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getHRExportReportData",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Report/GetHRExportReportData";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=od.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"exportMultimediaUsageReportCsv",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Report/ExportMultimediaUsageReportCsv";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportMultimediaUsageReportExcel",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Report/ExportMultimediaUsageReportExcel";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getCaliforniaLawData",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Report/GetCaliforniaLawData";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Vc.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.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,a=this.baseUrl+"/api/Role/GetRoles";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Ad.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getRolesDetailed",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Role/GetRolesDetailed";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Ad.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getRolesListById",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Role/GetRolesListById";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Ad.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"exportCsv",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Role/ExportCsv";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportExcel",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Role/ExportExcel";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"createRole",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Role/CreateRole";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Td.fromJS(n),Promise.resolve(a)}if(201===t){var o,s=e.data;return o=Td.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"updateRole",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Role/UpdateRole";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Td.fromJS(n),Promise.resolve(a)}if(201===t){var o,s=e.data;return o=Td.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"deleteRole",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Role/DeleteRole";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"mergeRole",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Role/MergeRole";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"assignUserToRole",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Role/AssignUserToRole";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Td.fromJS(n),Promise.resolve(a)}return 200!==t&&204!==t?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"unassignUserFromRole",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Role/UnassignUserFromRole";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"assignApiClientToRole",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Role/AssignApiClientToRole";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Td.fromJS(n),Promise.resolve(a)}return 200!==t&&204!==t?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"addRoleLicenseLimitation",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Role/AddRoleLicenseLimitation";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Td.fromJS(n),Promise.resolve(a)}return 200!==t&&204!==t?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"deleteRoleLicenseLimitation",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Role/DeleteRoleLicenseLimitation";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Td.fromJS(n),Promise.resolve(a)}if(204===t)return Tv("Success",t,e.data,i);if(400===t){var o=e.data,s=o;return Tv("Bad Request",t,o,i,xv.fromJS(s))}if(404===t){var l=e.data,c=l;return Tv("Not Found",t,l,i,Ih.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"getRolesByRoleId",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Role/GetRolesByRoleId";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Ld.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.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,a=this.baseUrl+"/api/Room/GetAll";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Fd.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getAllByLocationId",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Room/GetAllByLocationId";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Fd.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"exportCsv",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Room/ExportCsv";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportExcel",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Room/ExportExcel";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getRoomListById",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Room/GetRoomListById";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(Jd.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"get",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Room/Get/{roomId}";if(void 0===e||null===e)throw new Error("The parameter 'roomId' must be defined.");var n={method:"GET",url:a=(a=a.replace("{roomId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Jd.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"create",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Room/Create";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Jd.fromJS(n),Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Room/Update";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Jd.fromJS(n),Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"delete",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Room/Delete";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(Jd.fromJS(c))}}catch(m){l.e(m)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(204===t)return Tv("Success",t,e.data,i);if(400===t){var d=e.data,u=d;return Tv("Bad Request",t,d,i,xv.fromJS(u))}if(404===t){var h=e.data,p=h;return Tv("Not Found",t,h,i,Ih.fromJS(p))}var v=e.data,f=v;return Tv("Error",t,v,i,Ih.fromJS(f))}},{key:"archive",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Room/Archive";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"merge",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Room/Merge";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateRoomName",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Room/ValidateRoomName";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateRoomCode",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Room/ValidateRoomCode";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Tv("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,a=this.baseUrl+"/api/Rules/Recalculate";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"recalculateOnDemand",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Rules/RecalculateOnDemand";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Tv("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,a=this.baseUrl+"/api/SavedFilterDefault/SetSavedFilterDefault";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Gd.fromJS(n),Promise.resolve(a)}return 200!==t&&204!==t?Tv("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,a=this.baseUrl+"/api/Scorm/CreateScormRegistration";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}var o=e.data,s=o;return Tv("Error",t,o,i,Ih.fromJS(s))}},{key:"createScormRegistrationProgress",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Scorm/CreateScormRegistrationProgress";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Zp.fromJS(n),Promise.resolve(a)}if(201===t){var o,s=e.data;return o=Zp.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"deleteScormRegistration",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Scorm/DeleteScormRegistration";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}if(204===t)return Tv("Success",t,e.data,i);if(400===t){var o=e.data,s=o;return Tv("Bad Request",t,o,i,xv.fromJS(s))}if(404===t){var l=e.data,c=l;return Tv("Not Found",t,l,i,Ih.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"deleteScormRegistrationProgress",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Scorm/DeleteScormRegistrationProgress";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}if(204===t)return Tv("Success",t,e.data,i);if(400===t){var o=e.data,s=o;return Tv("Bad Request",t,o,i,xv.fromJS(s))}if(404===t){var l=e.data,c=l;return Tv("Not Found",t,l,i,Ih.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"getToken",value:function(e,t){var i=this,r=this.baseUrl+"/api/Scorm/GetToken",a={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(a).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getScormRegistrationLaunchLink",value:function(e,t,i,r){var a=this,n=this.baseUrl+"/api/Scorm/GetScormRegistrationLaunchLink?";if(null===e)throw new Error("The parameter 'sessionParticipantId' cannot be null.");if(void 0!==e&&(n+="sessionParticipantId="+encodeURIComponent(""+e)+"&"),null===t)throw new Error("The parameter 'redirectOnExitUrl' cannot be null.");void 0!==t&&(n+="redirectOnExitUrl="+encodeURIComponent(""+t)+"&");var o={method:"GET",url:n=n.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(Pv(e)&&e.response)return e.response;throw e})).then((function(e){return a.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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getScormRegistration",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Scorm/GetScormRegistration?";if(null===e)throw new Error("The parameter 'sessionParticipantId' cannot be null.");void 0!==e&&(a+="sessionParticipantId="+encodeURIComponent(""+e)+"&");var n={method:"GET",url:a=a.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getScormRegistrationByParticipantId",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Scorm/GetScormRegistrationByParticipantId?";if(null===e)throw new Error("The parameter 'sessionParticipantId' cannot be null.");void 0!==e&&(a+="sessionParticipantId="+encodeURIComponent(""+e)+"&");var n={method:"GET",url:a=a.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getScormRegistrationProgress",value:function(e,t,i,r){var a=this,n=this.baseUrl+"/api/Scorm/GetScormRegistrationProgress?";if(null===e)throw new Error("The parameter 'sessionParticipantId' cannot be null.");if(void 0!==e&&(n+="sessionParticipantId="+encodeURIComponent(""+e)+"&"),null===t)throw new Error("The parameter 'fromScormCloud' cannot be null.");void 0!==t&&(n+="fromScormCloud="+encodeURIComponent(""+t)+"&");var o={method:"GET",url:n=n.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(Pv(e)&&e.response)return e.response;throw e})).then((function(e){return a.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 a,n=e.data;return a=Vd.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"setApplicationConfiguration",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Scorm/SetApplicationConfiguration";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"postBackRegistration",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Scorm/PostBackRegistration";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"syncParticipantProgress",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Scorm/SyncParticipantProgress";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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?Tv("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,a=this.baseUrl+"/api/SecurityGroup/GetAllSecurityGroups";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Qd.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getAllSecurityGroupsForFilter",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SecurityGroup/GetAllSecurityGroupsForFilter";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Kd.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"exportCsv",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SecurityGroup/ExportCsv";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportExcel",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SecurityGroup/ExportExcel";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getSecurityGroupListById",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SecurityGroup/GetSecurityGroupListById";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Qd.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"createSecurityGroup",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SecurityGroup/CreateSecurityGroup";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=$d.fromJS(n),Promise.resolve(a)}if(201===t){var o,s=e.data;return o=$d.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"updateSecurityGroup",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SecurityGroup/UpdateSecurityGroup";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=$d.fromJS(n),Promise.resolve(a)}if(201===t){var o,s=e.data;return o=$d.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"deleteSecurityGroup",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SecurityGroup/DeleteSecurityGroup";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"assignUserToSecurityGroup",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SecurityGroup/AssignUserToSecurityGroup";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=$d.fromJS(n),Promise.resolve(a)}return 200!==t&&204!==t?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"assignCriteriaUserToSecurityGroup",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SecurityGroup/AssignCriteriaUserToSecurityGroup";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"unassignUserFromSecurityGroup",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SecurityGroup/UnassignUserFromSecurityGroup";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateSecurityGroupName",value:function(e,t,i,r){var a=this,n=this.baseUrl+"/api/SecurityGroup/ValidateSecurityGroupName?";if(null===e)throw new Error("The parameter 'securityGroupId' cannot be null.");if(void 0!==e&&(n+="securityGroupId="+encodeURIComponent(""+e)+"&"),null===t)throw new Error("The parameter 'name' cannot be null.");void 0!==t&&(n+="name="+encodeURIComponent(""+t)+"&");var o={method:"GET",url:n=n.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(Pv(e)&&e.response)return e.response;throw e})).then((function(e){return a.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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getSecurityGroupUsersByGroupId",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SecurityGroup/GetSecurityGroupUsersByGroupId";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Xd.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getAllAvailableSecurityGroupUsers",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SecurityGroup/GetAllAvailableSecurityGroupUsers";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Mp.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}}]),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:"getAllSecurityUsers",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SecurityUser/GetAllSecurityUsers";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=ru.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getSecurityGroupListById",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SecurityUser/GetSecurityGroupListById";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(iu.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"exportCsv",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SecurityUser/ExportCsv";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportExcel",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SecurityUser/ExportExcel";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"get",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SecurityUser/Get/{userId}";if(void 0===e||null===e)throw new Error("The parameter 'userId' must be defined.");var n={method:"GET",url:a=(a=a.replace("{userId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=tu.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"updateSecurityUser",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SecurityUser/UpdateSecurityUser";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=iu.fromJS(n),Promise.resolve(a)}if(201===t){var o,s=e.data;return o=iu.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"resetSecurityUserPassword",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SecurityUser/ResetSecurityUserPassword";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"addRoleToSecurityUser",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SecurityUser/AddRoleToSecurityUser";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=iu.fromJS(n),Promise.resolve(a)}return 200!==t&&204!==t?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"massAddRoleToSecurityUser",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SecurityUser/MassAddRoleToSecurityUser";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"deleteRoleFromSecurityUser",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SecurityUser/DeleteRoleFromSecurityUser";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"addSecurityGroupToSecurityUser",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SecurityUser/AddSecurityGroupToSecurityUser";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=iu.fromJS(n),Promise.resolve(a)}return 200!==t&&204!==t?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"massAddSecurityGroupToSecurityUser",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SecurityUser/MassAddSecurityGroupToSecurityUser";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"deleteSecurityGroupFromSecurityUser",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SecurityUser/DeleteSecurityGroupFromSecurityUser";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"updateSecurityUserPassword",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SecurityUser/UpdateSecurityUserPassword";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}var o=e.data,s=o;return Tv("Error",t,o,i,Ih.fromJS(s))}},{key:"updateBulkSecurityUserPassword",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SecurityUser/UpdateBulkSecurityUserPassword";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}var o=e.data,s=o;return Tv("Error",t,o,i,Ih.fromJS(s))}},{key:"toggleSecurityUserApplicationAccess",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SecurityUser/ToggleSecurityUserApplicationAccess";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}var o=e.data,s=o;return Tv("Error",t,o,i,Ih.fromJS(s))}},{key:"updateSecurityUserEmailVerification",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SecurityUser/UpdateSecurityUserEmailVerification";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}var o=e.data,s=o;return Tv("Error",t,o,i,Ih.fromJS(s))}},{key:"sendUserVerificationEmail",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SecurityUser/SendUserVerificationEmail";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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?Tv("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:"getAll",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/GetAll";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Lu.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"exportCsv",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/ExportCsv";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportExcel",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/ExportExcel";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getAllSessionByMonth",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/GetAllSessionByMonth";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Jt.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getAllPortalSessionByMonth",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/GetAllPortalSessionByMonth";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=vc.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getAllSessions",value:function(e,t){var i=this,r=this.baseUrl+"/api/Session/GetAllSessions",a={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(a).catch((function(e){if(Pv(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 a,n=e.data;return a=Lu.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getAllSessionsByScheduleId",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/GetAllSessionsByScheduleId?";if(null===e)throw new Error("The parameter 'scheduleId' cannot be null.");void 0!==e&&(a+="scheduleId="+encodeURIComponent(""+e)+"&");var n={method:"GET",url:a=a.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Lu.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"get",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/Get/{sessionId}";if(void 0===e||null===e)throw new Error("The parameter 'sessionId' must be defined.");var n={method:"GET",url:a=(a=a.replace("{sessionId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=lu.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getSessionLicenseWithAdjustedParticipant",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/GetSessionLicenseWithAdjustedParticipant?";if(null===e)throw new Error("The parameter 'sessionId' cannot be null.");void 0!==e&&(a+="sessionId="+encodeURIComponent(""+e)+"&");var n={method:"GET",url:a=a.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(c)}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"getSessionLicensePCAMIDList",value:function(e,t){var i=this,r=this.baseUrl+"/api/Session/GetSessionLicensePCAMIDList",a={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(a).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(c)}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"create",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/Create";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=cu.fromJS(n),Promise.resolve(a)}if(201===t){var o,s=e.data;return o=cu.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/Update";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=cu.fromJS(n),Promise.resolve(a)}if(201===t){var o,s=e.data;return o=cu.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"updateSessionAndLicenses",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/UpdateSessionAndLicenses";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=lu.fromJS(n),Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"updateSessionLicenseProperties",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/UpdateSessionLicenseProperties";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"updatePublishSetting",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/UpdatePublishSetting";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=er.fromJS(n),Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"updateSessionEvaluation",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/UpdateSessionEvaluation";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"cancelSession",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/CancelSession";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=er.fromJS(n),Promise.resolve(a)}return 200!==t&&204!==t?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"updateSessionLicenses",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/UpdateSessionLicenses";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Pu.fromJS(n),Promise.resolve(a)}if(201===t){var o,s=e.data;return o=Pu.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"sendUpdateEmail",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/SendUpdateEmail";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(Ia.fromJS(c))}}catch(d){l.e(d)}finally{l.f()}}else a=null;return Promise.resolve(a)}return 200!==t&&204!==t?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"delete",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/Delete";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(er.fromJS(c))}}catch(m){l.e(m)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(204===t)return Tv("Success",t,e.data,i);if(400===t){var d=e.data,u=d;return Tv("Bad Request",t,d,i,xv.fromJS(u))}if(404===t){var h=e.data,p=h;return Tv("Not Found",t,h,i,Ih.fromJS(p))}var v=e.data,f=v;return Tv("Error",t,v,i,Ih.fromJS(f))}},{key:"getAllSessionWaitlistedUsers",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/GetAllSessionWaitlistedUsers";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=fh.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getAllSessionInstructors",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/GetAllSessionInstructors";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(Wu.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"exportWaitlistsCsv",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/ExportWaitlistsCsv";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportWaitlistsExcel",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/ExportWaitlistsExcel";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"addToSessionWaitlist",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/AddToSessionWaitlist";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=vh.fromJS(n),Promise.resolve(a)}return 200!==t&&204!==t?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"updateSessionWaitlist",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/UpdateSessionWaitlist";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=vh.fromJS(n),Promise.resolve(a)}if(201===t){var o,s=e.data;return o=vh.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"deleteFromSessionWaitlist",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/DeleteFromSessionWaitlist";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getAllSessionInvites",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/GetAllSessionInvites";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=ju.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"exportInvitesCsv",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/ExportInvitesCsv";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportInvitesExcel",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/ExportInvitesExcel";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"deleteSessionInvites",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/DeleteSessionInvites";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"declineSessionInvites",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/DeclineSessionInvites";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getAllSessionEvaluations",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/GetAllSessionEvaluations";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Su.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"exportEvaluationsCsv",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/ExportEvaluationsCsv";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportEvaluationsExcel",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/ExportEvaluationsExcel";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getSessionEmailSetting",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/GetSessionEmailSetting";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=uu.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"createSessionEmailSetting",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/CreateSessionEmailSetting";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=du.fromJS(n),Promise.resolve(a)}if(201===t){var o,s=e.data;return o=du.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"updateSessionEmailSetting",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/UpdateSessionEmailSetting";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=du.fromJS(n),Promise.resolve(a)}if(201===t){var o,s=e.data;return o=du.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"getAllSessionMedia",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/GetAllSessionMedia";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Ru.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"deleteSessionMediaFile",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/DeleteSessionMediaFile?";if(null===e)throw new Error("The parameter 'sessionMediaFileId' cannot be null.");void 0!==e&&(a+="sessionMediaFileId="+encodeURIComponent(""+e)+"&");var n={method:"DELETE",url:a=a.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:""},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"updateSessionMediaFile",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/UpdateSessionMediaFile";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Bu.fromJS(n),Promise.resolve(a)}if(201===t){var o,s=e.data;return o=Bu.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"updateSessionMediaFiles",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/UpdateSessionMediaFiles";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(Bu.fromJS(c))}}catch(b){l.e(b)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(201===t){var d=null,u=e.data;if(Array.isArray(u)){d=[];var h,p=Object(s.a)(u);try{for(p.s();!(h=p.n()).done;){var v=h.value;d.push(Bu.fromJS(v))}}catch(b){p.e(b)}finally{p.f()}}else d=null;return Promise.resolve(d)}if(400===t){var f=e.data,m=f;return Tv("Bad Request",t,f,i,xv.fromJS(m))}var y=e.data,g=y;return Tv("Error",t,y,i,Ih.fromJS(g))}},{key:"createUserFavoriteReport",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/CreateUserFavoriteReport";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=rn.fromJS(n),Promise.resolve(a)}if(201===t){var o,s=e.data;return o=rn.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"deleteUserFavoriteSession",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/DeleteUserFavoriteSession";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getUserFavoriteSession",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/GetUserFavoriteSession";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=rn.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getInstructorSessions",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/GetInstructorSessions";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=tr.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getInstructorSessionById",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/GetInstructorSessionById/{sessionId}";if(void 0===e||null===e)throw new Error("The parameter 'sessionId' must be defined.");var n={method:"GET",url:a=(a=a.replace("{sessionId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=es.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"addInstructorSessionMaterials",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/AddInstructorSessionMaterials";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getAllSessionSubjectAreaRegulatoryMappings",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/GetAllSessionSubjectAreaRegulatoryMappings";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(lh.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"getAllSessionUnapprovedSubjectAreaCredits",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/GetAllSessionUnapprovedSubjectAreaCredits";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(Bh.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"approveSessionSubjectAreaCredits",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/ApproveSessionSubjectAreaCredits";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"saveSessionEvaluationStatistics",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/SaveSessionEvaluationStatistics";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(Iu.fromJS(c))}}catch(d){l.e(d)}finally{l.f()}}else a=null;return Promise.resolve(a)}return 200!==t&&204!==t?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getComputedEvaluationStatistics",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/GetComputedEvaluationStatistics";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=fu.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getEvaluationStatisticsBySessionId",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/GetEvaluationStatisticsBySessionId/{sessionId}";if(void 0===e||null===e)throw new Error("The parameter 'sessionId' must be defined.");var n={method:"GET",url:a=(a=a.replace("{sessionId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(Iu.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"getEvaluationStatisticsByQuestionId",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/GetEvaluationStatisticsByQuestionId/{questionId}";if(void 0===e||null===e)throw new Error("The parameter 'questionId' must be defined.");var n={method:"GET",url:a=(a=a.replace("{questionId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Iu.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getSessionLicenses",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/GetSessionLicenses";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(Pu.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"getAllNYCounty",value:function(e,t){var i=this,r=this.baseUrl+"/api/Session/GetAllNYCounty",a={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(a).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(tc.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"getNYLocation",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/GetNYLocation";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(c)}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"generateSessionLinkGuid",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/GenerateSessionLinkGuid";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Du.fromJS(n),Promise.resolve(a)}return 200!==t&&204!==t?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"clone",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/Clone";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"updateSessionSettings",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/UpdateSessionSettings";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=er.fromJS(n),Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"getSessionSettings",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/GetSessionSettings";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(wu.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"getCourseSessionDetailsById",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/GetCourseSessionDetailsById/{sessionId}";if(void 0===e||null===e)throw new Error("The parameter 'sessionId' must be defined.");var n={method:"GET",url:a=(a=a.replace("{sessionId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Ki.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getCourseSessionsDetails",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/GetCourseSessionsDetails";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(Ki.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"updateMultiSession",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/UpdateMultiSession";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(c)}}catch(b){l.e(b)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(201===t){var d=null,u=e.data;if(Array.isArray(u)){d=[];var h,p=Object(s.a)(u);try{for(p.s();!(h=p.n()).done;){var v=h.value;d.push(v)}}catch(b){p.e(b)}finally{p.f()}}else d=null;return Promise.resolve(d)}if(400===t){var f=e.data,m=f;return Tv("Bad Request",t,f,i,xv.fromJS(m))}var y=e.data,g=y;return Tv("Error",t,y,i,Ih.fromJS(g))}},{key:"getAllSessionsByScheduleIdOrSessionId",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/GetAllSessionsByScheduleIdOrSessionId";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Lu.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"addSessionAttendanceSheets",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/AddSessionAttendanceSheets";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=lu.fromJS(n),Promise.resolve(a)}return 200!==t&&204!==t?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"addToMultiSession",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/AddToMultiSession";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"removeFromMultiSession",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/RemoveFromMultiSession";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"createMultiSession",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/CreateMultiSession";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"getMultiSessionLicenses",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/GetMultiSessionLicenses";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=ec.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"updateMultiSessionLicenses",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/UpdateMultiSessionLicenses";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(c)}}catch(b){l.e(b)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(201===t){var d=null,u=e.data;if(Array.isArray(u)){d=[];var h,p=Object(s.a)(u);try{for(p.s();!(h=p.n()).done;){var v=h.value;d.push(v)}}catch(b){p.e(b)}finally{p.f()}}else d=null;return Promise.resolve(d)}if(400===t){var f=e.data,m=f;return Tv("Bad Request",t,f,i,xv.fromJS(m))}var y=e.data,g=y;return Tv("Error",t,y,i,Ih.fromJS(g))}},{key:"addSessionInviteUsers",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/AddSessionInviteUsers";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"addBulkSessionMaterials",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/AddBulkSessionMaterials";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"updateSessionAttendanceValidated",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Session/UpdateSessionAttendanceValidated";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.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,a=this.baseUrl+"/api/SessionParticipant/GetAll";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Ku.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getAllSessionParticipantIds",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SessionParticipant/GetAllSessionParticipantIds";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(c)}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"exportCsv",value:function(e,t,i,r){var a=this,n=this.baseUrl+"/api/SessionParticipant/ExportCsv?";if(null===e)throw new Error("The parameter 'isSimultaneous' cannot be null.");void 0!==e&&(n+="isSimultaneous="+encodeURIComponent(""+e)+"&"),n=n.replace(/[?&]$/,"");var o={data:JSON.stringify(i),responseType:"blob",method:"POST",url:n,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(Pv(e)&&e.response)return e.response;throw e})).then((function(e){return a.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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportExcel",value:function(e,t,i,r){var a=this,n=this.baseUrl+"/api/SessionParticipant/ExportExcel?";if(null===e)throw new Error("The parameter 'isSimultaneous' cannot be null.");void 0!==e&&(n+="isSimultaneous="+encodeURIComponent(""+e)+"&"),n=n.replace(/[?&]$/,"");var o={data:JSON.stringify(i),responseType:"blob",method:"POST",url:n,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(Pv(e)&&e.response)return e.response;throw e})).then((function(e){return a.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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"update",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SessionParticipant/Update";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Wu.fromJS(n),Promise.resolve(a)}if(201===t){var o,s=e.data;return o=Wu.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"decline",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SessionParticipant/Decline";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validate",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SessionParticipant/Validate";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"updateCompletionDate",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SessionParticipant/UpdateCompletionDate";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}var o=e.data,s=o;return Tv("Error",t,o,i,Ih.fromJS(s))}},{key:"updateParticipantAndLicense",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SessionParticipant/UpdateParticipantAndLicense";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"updateParticipantLicenseCredits",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SessionParticipant/UpdateParticipantLicenseCredits";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=ih.fromJS(n),Promise.resolve(a)}if(201===t){var o,s=e.data;return o=ih.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"updateParticipantLicenseProperties",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SessionParticipant/UpdateParticipantLicenseProperties";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=rh.fromJS(n),Promise.resolve(a)}if(201===t){var o,s=e.data;return o=rh.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"createParticipantLicenseCredits",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SessionParticipant/CreateParticipantLicenseCredits";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Dp.fromJS(n),Promise.resolve(a)}if(201===t){var o,s=e.data;return o=Dp.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"createParticipantLicenseProperties",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SessionParticipant/CreateParticipantLicenseProperties";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Bp.fromJS(n),Promise.resolve(a)}if(201===t){var o,s=e.data;return o=Bp.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"deleteParticipantLicenseCredits",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SessionParticipant/DeleteParticipantLicenseCredits";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"deleteParticipantLicenseProperties",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SessionParticipant/DeleteParticipantLicenseProperties";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"delete",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SessionParticipant/Delete";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"create",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SessionParticipant/Create";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Wu.fromJS(n),Promise.resolve(a)}if(201===t){var o,s=e.data;return o=Wu.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"createByGuid",value:function(e,t,i,r,a,n){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(a),method:"POST",url:s,headers:{"x-api-version":void 0!==r&&null!==r?""+r:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:n};return this.instance.request(l).catch((function(e){if(Pv(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 a,n=e.data;return a=Wu.fromJS(n),Promise.resolve(a)}if(201===t){var o,s=e.data;return o=Wu.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"updateByGuid",value:function(e,t,i,r,a,n,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===a)throw new Error("The parameter 'isUnvalidate' cannot be null.");void 0!==a&&(c+="isUnvalidate="+encodeURIComponent(""+a)+"&"),c=c.replace(/[?&]$/,"");var d={data:JSON.stringify(o),method:"PUT",url:c,headers:{"x-api-version":void 0!==n&&null!==n?""+n:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:s};return this.instance.request(d).catch((function(e){if(Pv(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 a,n=e.data;return a=Wu.fromJS(n),Promise.resolve(a)}if(201===t){var o,s=e.data;return o=Wu.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"deleteByGuid",value:function(e,t,i,r,a){var n=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:a};return this.instance.request(s).catch((function(e){if(Pv(e)&&e.response)return e.response;throw e})).then((function(e){return n.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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"addToWaitlistByGuid",value:function(e,t,i,r){var a=this,n=this.baseUrl+"/api/SessionParticipant/AddToWaitlistByGuid?";if(null===e)throw new Error("The parameter 'sessionId' cannot be null.");void 0!==e&&(n+="sessionId="+encodeURIComponent(""+e)+"&"),n=n.replace(/[?&]$/,"");var o={data:JSON.stringify(i),method:"POST",url:n,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(Pv(e)&&e.response)return e.response;throw e})).then((function(e){return a.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 a,n=e.data;return a=vh.fromJS(n),Promise.resolve(a)}return 200!==t&&204!==t?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"deleteFromWaitlist",value:function(e,t,i,r){var a=this,n=this.baseUrl+"/api/SessionParticipant/DeleteFromWaitlist?";if(null===e)throw new Error("The parameter 'sessionId' cannot be null.");void 0!==e&&(n+="sessionId="+encodeURIComponent(""+e)+"&"),n=n.replace(/[?&]$/,"");var o={data:JSON.stringify(i),method:"DELETE",url:n,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(Pv(e)&&e.response)return e.response;throw e})).then((function(e){return a.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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"declineInviteByGuid",value:function(e,t,i,r){var a=this,n=this.baseUrl+"/api/SessionParticipant/DeclineInviteByGuid?";if(null===e)throw new Error("The parameter 'sessionId' cannot be null.");void 0!==e&&(n+="sessionId="+encodeURIComponent(""+e)+"&"),n=n.replace(/[?&]$/,"");var o={data:JSON.stringify(i),method:"POST",url:n,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(Pv(e)&&e.response)return e.response;throw e})).then((function(e){return a.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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"updateInviteByGuid",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SessionParticipant/UpdateInviteByGuid";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}var o=e.data,s=o;return Tv("Error",t,o,i,Ih.fromJS(s))}},{key:"getAllAvailableSessionParticipants",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SessionParticipant/GetAllAvailableSessionParticipants";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Nt.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getScheduleInstructors",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SessionParticipant/GetScheduleInstructors";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(Wu.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"getSessionParticipantCertificates",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SessionParticipant/GetSessionParticipantCertificates";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=qu.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getPortalSessionParticipantCertificates",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SessionParticipant/GetPortalSessionParticipantCertificates";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Ic.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"uploadCertificate",value:function(e,t,i,r){var a=this,n=this.baseUrl+"/api/SessionParticipant/UploadCertificate?";if(null===e)throw new Error("The parameter 'sessionParticipantId' cannot be null.");void 0!==e&&(n+="sessionParticipantId="+encodeURIComponent(""+e)+"&"),n=n.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:n,headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:r};return this.instance.request(s).catch((function(e){if(Pv(e)&&e.response)return e.response;throw e})).then((function(e){return a.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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(qu.fromJS(c))}}catch(b){l.e(b)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(201===t){var d=null,u=e.data;if(Array.isArray(u)){d=[];var h,p=Object(s.a)(u);try{for(p.s();!(h=p.n()).done;){var v=h.value;d.push(qu.fromJS(v))}}catch(b){p.e(b)}finally{p.f()}}else d=null;return Promise.resolve(d)}if(400===t){var f=e.data,m=f;return Tv("Bad Request",t,f,i,xv.fromJS(m))}var y=e.data,g=y;return Tv("Error",t,y,i,Ih.fromJS(g))}},{key:"uploadCertificateV2",value:function(e,t,i,r){var a=this,n=this.baseUrl+"/api/SessionParticipant/UploadCertificateV2?";if(null===e)throw new Error("The parameter 'participantIndex' cannot be null.");void 0!==e&&(n+="participantIndex="+encodeURIComponent(""+e)+"&"),n=n.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:n,headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:r};return this.instance.request(s).catch((function(e){if(Pv(e)&&e.response)return e.response;throw e})).then((function(e){return a.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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(Mu.fromJS(c))}}catch(b){l.e(b)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(201===t){var d=null,u=e.data;if(Array.isArray(u)){d=[];var h,p=Object(s.a)(u);try{for(p.s();!(h=p.n()).done;){var v=h.value;d.push(Mu.fromJS(v))}}catch(b){p.e(b)}finally{p.f()}}else d=null;return Promise.resolve(d)}if(400===t){var f=e.data,m=f;return Tv("Bad Request",t,f,i,xv.fromJS(m))}var y=e.data,g=y;return Tv("Error",t,y,i,Ih.fromJS(g))}},{key:"mergeCertificate",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SessionParticipant/MergeCertificate";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"deleteCertificate",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SessionParticipant/DeleteCertificate";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(qu.fromJS(c))}}catch(m){l.e(m)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(204===t)return Tv("Success",t,e.data,i);if(400===t){var d=e.data,u=d;return Tv("Bad Request",t,d,i,xv.fromJS(u))}if(404===t){var h=e.data,p=h;return Tv("Not Found",t,h,i,Ih.fromJS(p))}var v=e.data,f=v;return Tv("Error",t,v,i,Ih.fromJS(f))}},{key:"downloadCertificate",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SessionParticipant/DownloadCertificate?";if(null===e)throw new Error("The parameter 'sessionParticipantCertificateId' cannot be null.");void 0!==e&&(a+="sessionParticipantCertificateId="+encodeURIComponent(""+e)+"&");var n={responseType:"blob",method:"GET",url:a=a.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"downloadCertificateV2",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SessionParticipant/DownloadCertificateV2?";if(null===e)throw new Error("The parameter 'fileId' cannot be null.");void 0!==e&&(a+="fileId="+encodeURIComponent(""+e)+"&");var n={responseType:"blob",method:"GET",url:a=a.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getSessionParticipant",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SessionParticipant/GetSessionParticipant";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Ku.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getAttendanceSheet",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SessionParticipant/GetAttendanceSheet";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"saveSessionEvaluation",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SessionParticipant/SaveSessionEvaluation";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getSessionEvaluationById",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SessionParticipant/GetSessionEvaluationById";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=gu.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"saveSessionEvaluationAnswers",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SessionParticipant/SaveSessionEvaluationAnswers";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(vu.fromJS(c))}}catch(d){l.e(d)}finally{l.f()}}else a=null;return Promise.resolve(a)}return 200!==t&&204!==t?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getSessionEvaluationByGuid",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SessionParticipant/GetSessionEvaluationByGuid?";if(null===e)throw new Error("The parameter 'guid' cannot be null.");void 0!==e&&(a+="guid="+encodeURIComponent(""+e)+"&");var n={method:"POST",url:a=a.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=gu.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"declineSessionEvaluationByGuid",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SessionParticipant/DeclineSessionEvaluationByGuid?";if(null===e)throw new Error("The parameter 'guid' cannot be null.");void 0!==e&&(a+="guid="+encodeURIComponent(""+e)+"&");var n={method:"POST",url:a=a.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=gu.fromJS(n),Promise.resolve(a)}return 200!==t&&204!==t?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"saveSupportingPageSessionEvaluationAnswers",value:function(e,t,i,r){var a=this,n=this.baseUrl+"/api/SessionParticipant/SaveSupportingPageSessionEvaluationAnswers?";if(null===e)throw new Error("The parameter 'guid' cannot be null.");void 0!==e&&(n+="guid="+encodeURIComponent(""+e)+"&"),n=n.replace(/[?&]$/,"");var o={data:JSON.stringify(i),method:"POST",url:n,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(Pv(e)&&e.response)return e.response;throw e})).then((function(e){return a.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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(vu.fromJS(c))}}catch(d){l.e(d)}finally{l.f()}}else a=null;return Promise.resolve(a)}return 200!==t&&204!==t?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"updateRegistration",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SessionParticipant/UpdateRegistration";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}var o=e.data,s=o;return Tv("Error",t,o,i,Ih.fromJS(s))}},{key:"getSessionParticipantAdjustedCredit",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SessionParticipant/GetSessionParticipantAdjustedCredit";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Gu.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"hasSessionParticipants",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SessionParticipant/HasSessionParticipants?";if(null===e)throw new Error("The parameter 'sessionId' cannot be null.");void 0!==e&&(a+="sessionId="+encodeURIComponent(""+e)+"&");var n={method:"GET",url:a=a.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getExistingSessionParticipants",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SessionParticipant/GetExistingSessionParticipants";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(eh.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"getSessionParticipantLocation",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SessionParticipant/GetSessionParticipantLocation";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Qu.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getAllSessionParticipantLicense",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SessionParticipant/GetAllSessionParticipantLicense";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(Yu.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"getUserLicensePropertyValueByParticipant",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/SessionParticipant/GetUserLicensePropertyValueByParticipant";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(Bp.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}}]),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",a={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(a).catch((function(e){if(Pv(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 a,n=e.data;return a=bh.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.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,a=this.baseUrl+"/api/Tag/GetAll";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Ah.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"exportCsv",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Tag/ExportCsv";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportExcel",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Tag/ExportExcel";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getTagListById",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Tag/GetTagListById";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(Ph.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"get",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Tag/Get/{tagId}";if(void 0===e||null===e)throw new Error("The parameter 'tagId' must be defined.");var n={method:"GET",url:a=(a=a.replace("{tagId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Ph.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"create",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Tag/Create";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Ph.fromJS(n),Promise.resolve(a)}if(201===t){var o,s=e.data;return o=Ph.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Tag/Update";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Ph.fromJS(n),Promise.resolve(a)}if(201===t){var o,s=e.data;return o=Ph.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"delete",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Tag/Delete";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(Ph.fromJS(c))}}catch(m){l.e(m)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(204===t)return Tv("Success",t,e.data,i);if(400===t){var d=e.data,u=d;return Tv("Bad Request",t,d,i,xv.fromJS(u))}if(404===t){var h=e.data,p=h;return Tv("Not Found",t,h,i,Ih.fromJS(p))}var v=e.data,f=v;return Tv("Error",t,v,i,Ih.fromJS(f))}},{key:"archive",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Tag/Archive";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"merge",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Tag/Merge";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateTagName",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Tag/ValidateTagName";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateTagCode",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/Tag/ValidateTagCode";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Tv("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",a={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(a).catch((function(e){if(Pv(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 a,n=e.data;return a=Dh.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.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,a=this.baseUrl+"/api/User/GetAll";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Mp.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"exportCsv",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/ExportCsv";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportExcel",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/ExportExcel";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getAllUserType",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetAllUserType";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=cv.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getAllAdmin",value:function(e,t){var i=this,r=this.baseUrl+"/api/User/GetAllAdmin",a={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(a).catch((function(e){if(Pv(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 a,n=e.data;return a=Mp.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getAllUserLicensesCurrentPeriod",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetAllUserLicensesCurrentPeriod";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Np.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getAllUserLicensesPortal",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetAllUserLicensesPortal";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(Up.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"getAllUserLicenses",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetAllUserLicenses";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(Rp.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"getGlobalWorkUserCompliance",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetGlobalWorkUserCompliance";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Wo.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getAllUserCompletedTranscripts",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetAllUserCompletedTranscripts";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=nv.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getGlobalWorkUserCompletedTranscripts",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetGlobalWorkUserCompletedTranscripts";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=$o.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"exportUserTranscriptCsv",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/ExportUserTranscriptCsv";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"exportUserTranscriptExcel",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/ExportUserTranscriptExcel";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),responseType:"blob",method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/octet-stream"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.headers?e.headers["content-disposition"]:void 0,n=a?/filename\*=(?:(\\?['"])(.*?)\1|(?:[^\s]+'.*?')?([^;\n]*))/g.exec(a):void 0,o=n&&n.length>1?n[3]||n[2]:void 0;return o=o?decodeURIComponent(o):(n=a?/filename="?([^"]*?)"?(;|$)/g.exec(a):void 0)&&n.length>1?n[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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"getTranscriptListById",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetTranscriptListById";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=nv.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getAllPortalUserCompletedTranscriptSummary",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetAllPortalUserCompletedTranscriptSummary";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Ac.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getAllPortalUserCompletedTranscriptSummaryByGuid",value:function(e,t,i,r){var a=this,n=this.baseUrl+"/api/User/GetAllPortalUserCompletedTranscriptSummaryByGuid?";if(null===e)throw new Error("The parameter 'guid' cannot be null.");if(void 0!==e&&(n+="guid="+encodeURIComponent(""+e)+"&"),null===t)throw new Error("The parameter 'licenseId' cannot be null.");void 0!==t&&(n+="licenseId="+encodeURIComponent(""+t)+"&");var o={method:"POST",url:n=n.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(Pv(e)&&e.response)return e.response;throw e})).then((function(e){return a.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 a,n=e.data;return a=ov.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getAllUserUpcomingTranscripts",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetAllUserUpcomingTranscripts";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=tv.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getAllUserLearningPlans",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetAllUserLearningPlans";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=xp.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getAllUserLearningPlansPrint",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetAllUserLearningPlansPrint";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=wp.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getAllUserUnregisteredLearningPlans",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetAllUserUnregisteredLearningPlans/{userId}";if(void 0===e||null===e)throw new Error("The parameter 'userId' must be defined.");var n={method:"GET",url:a=(a=a.replace("{userId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=pv.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getGlobalWorkUserLearningPlans",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetGlobalWorkUserLearningPlans";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Mo.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getGlobalWorkUserLearningPlanDrawer",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetGlobalWorkUserLearningPlanDrawer";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Uo.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getGlobalWorkUserLearningPlanRequirement",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetGlobalWorkUserLearningPlanRequirement";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=zo.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"get",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/Get/{userId}";if(void 0===e||null===e)throw new Error("The parameter 'userId' must be defined.");var n={method:"GET",url:a=(a=a.replace("{userId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=mp.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getByIdpId",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetByIdpId/{idpId}";if(void 0===e||null===e)throw new Error("The parameter 'idpId' must be defined.");var n={method:"GET",url:a=(a=a.replace("{idpId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=mp.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getUserApplicationByIdpId",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetUserApplicationByIdpId/{idpId}";if(void 0===e||null===e)throw new Error("The parameter 'idpId' must be defined.");var n={method:"GET",url:a=(a=a.replace("{idpId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=rp.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getUserPreferences",value:function(e,t){var i=this,r=this.baseUrl+"/api/User/GetUserPreferences",a={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(a).catch((function(e){if(Pv(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 a,n=e.data;return a=Yp.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"addUserLearningPlanParticipation",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/AddUserLearningPlanParticipation";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"create",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/Create";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=mp.fromJS(n),Promise.resolve(a)}if(201===t){var o,s=e.data;return o=mp.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/Update";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=mp.fromJS(n),Promise.resolve(a)}if(201===t){var o,s=e.data;return o=mp.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"updateLoginId",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/UpdateLoginId";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=mp.fromJS(n),Promise.resolve(a)}if(201===t){var o,s=e.data;return o=mp.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"massUpdate",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/MassUpdate";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"massUpdateRole",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/MassUpdateRole";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"updatePreferences",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/UpdatePreferences";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Yp.fromJS(n),Promise.resolve(a)}if(201===t){var o,s=e.data;return o=Yp.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"deleteUserRelationship",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/DeleteUserRelationship";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push($p.fromJS(c))}}catch(m){l.e(m)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(204===t)return Tv("Success",t,e.data,i);if(400===t){var d=e.data,u=d;return Tv("Bad Request",t,d,i,xv.fromJS(u))}if(404===t){var h=e.data,p=h;return Tv("Not Found",t,h,i,Ih.fromJS(p))}var v=e.data,f=v;return Tv("Error",t,v,i,Ih.fromJS(f))}},{key:"changePassword",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/ChangePassword";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"changeStatus",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/ChangeStatus";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateUserEmail",value:function(e,t,i,r){var a=this,n=this.baseUrl+"/api/User/ValidateUserEmail?";if(null===e)throw new Error("The parameter 'userId' cannot be null.");if(void 0!==e&&(n+="userId="+encodeURIComponent(""+e)+"&"),null===t)throw new Error("The parameter 'email' cannot be null.");void 0!==t&&(n+="email="+encodeURIComponent(""+t)+"&");var o={method:"POST",url:n=n.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(Pv(e)&&e.response)return e.response;throw e})).then((function(e){return a.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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateUserLoginId",value:function(e,t,i,r){var a=this,n=this.baseUrl+"/api/User/ValidateUserLoginId?";if(null===e)throw new Error("The parameter 'userId' cannot be null.");if(void 0!==e&&(n+="userId="+encodeURIComponent(""+e)+"&"),null===t)throw new Error("The parameter 'loginId' cannot be null.");void 0!==t&&(n+="loginId="+encodeURIComponent(""+t)+"&");var o={method:"POST",url:n=n.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(Pv(e)&&e.response)return e.response;throw e})).then((function(e){return a.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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateUserPersonnedlId",value:function(e,t,i,r){var a=this,n=this.baseUrl+"/api/User/ValidateUserPersonnedlId?";if(null===e)throw new Error("The parameter 'userId' cannot be null.");if(void 0!==e&&(n+="userId="+encodeURIComponent(""+e)+"&"),null===t)throw new Error("The parameter 'personnelId' cannot be null.");void 0!==t&&(n+="personnelId="+encodeURIComponent(""+t)+"&");var o={method:"POST",url:n=n.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(Pv(e)&&e.response)return e.response;throw e})).then((function(e){return a.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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateUserPhoneNumber",value:function(e,t,i,r,a){var n=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:a};return this.instance.request(s).catch((function(e){if(Pv(e)&&e.response)return e.response;throw e})).then((function(e){return n.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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateUserAndLicenseDetails",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/ValidateUserAndLicenseDetails";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=vv.fromJS(n),Promise.resolve(a)}return 200!==t&&204!==t?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"validateUserDetails",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/ValidateUserDetails";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=vv.fromJS(n),Promise.resolve(a)}return 200!==t&&204!==t?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"delete",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/Delete";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"deleteUserLicense",value:function(e,t,i,r){var a=this,n=this.baseUrl+"/api/User/DeleteUserLicense?";if(null===e)throw new Error("The parameter 'userId' cannot be null.");void 0!==e&&(n+="userId="+encodeURIComponent(""+e)+"&"),n=n.replace(/[?&]$/,"");var o={data:JSON.stringify(i),method:"DELETE",url:n,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(Pv(e)&&e.response)return e.response;throw e})).then((function(e){return a.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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"deleteUserFromCognito",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/DeleteUserFromCognito";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"deleteCompletedUserTranscript",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/DeleteCompletedUserTranscript";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"deleteUserLearningPlan",value:function(e,t,i,r){var a=this,n=this.baseUrl+"/api/User/DeleteUserLearningPlan?";if(null===e)throw new Error("The parameter 'userId' cannot be null.");void 0!==e&&(n+="userId="+encodeURIComponent(""+e)+"&"),n=n.replace(/[?&]$/,"");var o={data:JSON.stringify(i),method:"DELETE",url:n,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(Pv(e)&&e.response)return e.response;throw e})).then((function(e){return a.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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getAllUsersByRole",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetAllUsersByRole";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(np.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"getUserLicensesWithRetro",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetUserLicensesWithRetro";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(c)}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"updateUserLicenses",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/UpdateUserLicenses";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}var o=e.data,s=o;return Tv("Error",t,o,i,Ih.fromJS(s))}},{key:"batchUpdateUserPassword",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/BatchUpdateUserPassword";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"updateEmail",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/UpdateEmail";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}var o=e.data,s=o;return Tv("Error",t,o,i,Ih.fromJS(s))}},{key:"getLcbcUserCompletedTranscripts",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetLcbcUserCompletedTranscripts";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=As.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getLcbcUserCompliance",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetLcbcUserCompliance";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=js.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getLcbcUserLearningPlanDrawer",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetLcbcUserLearningPlanDrawer";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Es.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getLcbcUserLearningPlanRequirement",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetLcbcUserLearningPlanRequirement";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=xs.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getLcbcUserLearningPlans",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetLcbcUserLearningPlans";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Os.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getDuplicateRecordByName",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/GetDuplicateRecordByName";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(yp.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"updateUserIdpIdAndUsername",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/User/UpdateUserIdpIdAndUsername";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}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 Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.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 a=this,n=this.baseUrl+"/api/UserAccessTokenStore/Get/{userLoginSessionId}?";if(void 0===e||null===e)throw new Error("The parameter 'userLoginSessionId' must be defined.");if(n=n.replace("{userLoginSessionId}",encodeURIComponent(""+e)),null===t)throw new Error("The parameter 'cognitoClientId' cannot be null.");void 0!==t&&(n+="cognitoClientId="+encodeURIComponent(""+t)+"&");var o={method:"GET",url:n=n.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(Pv(e)&&e.response)return e.response;throw e})).then((function(e){return a.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 a,n=e.data;return a=tp.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"check",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/UserAccessTokenStore/Check/{userLoginSessionId}";if(void 0===e||null===e)throw new Error("The parameter 'userLoginSessionId' must be defined.");var n={method:"GET",url:a=(a=a.replace("{userLoginSessionId}",encodeURIComponent(""+e))).replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:"",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"set",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/UserAccessTokenStore/Set";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"delete",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/UserAccessTokenStore/Delete?";if(null===e)throw new Error("The parameter 'userLoginSessionId' cannot be null.");void 0!==e&&(a+="userLoginSessionId="+encodeURIComponent(""+e)+"&");var n={method:"DELETE",url:a=a.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:""},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"clear",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/UserAccessTokenStore/Clear?";if(null===e)throw new Error("The parameter 'userLoginSessionId' cannot be null.");void 0!==e&&(a+="userLoginSessionId="+encodeURIComponent(""+e)+"&");var n={method:"DELETE",url:a=a.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:""},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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?Tv("An unexpected server error occurred.",t,e.data,i):Promise.resolve(null)}},{key:"clearAllUserLoginSession",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/UserAccessTokenStore/ClearAllUserLoginSession?";if(null===e)throw new Error("The parameter 'userName' cannot be null.");void 0!==e&&(a+="userName="+encodeURIComponent(""+e)+"&");var n={method:"DELETE",url:a=a.replace(/[?&]$/,""),headers:{"x-api-version":void 0!==t&&null!==t?""+t:""},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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?Tv("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,a=this.baseUrl+"/api/UserCourseSession/GetAllUserCourseSessions";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=vp.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getCourseSessionByParticipant",value:function(e,t,i,r){var a=this,n=this.baseUrl+"/api/UserCourseSession/GetCourseSessionByParticipant/{sessionId}?";if(void 0===e||null===e)throw new Error("The parameter 'sessionId' must be defined.");if(n=n.replace("{sessionId}",encodeURIComponent(""+e)),null===t)throw new Error("The parameter 'userId' cannot be null.");void 0!==t&&(n+="userId="+encodeURIComponent(""+t)+"&");var o={method:"GET",url:n=n.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(Pv(e)&&e.response)return e.response;throw e})).then((function(e){return a.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 a,n=e.data;return a=Xi.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.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,a=this.baseUrl+"/api/UserLicenseCompliance/GetUserLicenseComplianceReport";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Ap.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getUserLicenseComplianceSubPeriod",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/UserLicenseCompliance/GetUserLicenseComplianceSubPeriod";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(ui.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"getUserLicenseComplianceMainPeriods",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/UserLicenseCompliance/GetUserLicenseComplianceMainPeriods";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(ui.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"getUserLicenseComplianceCourseListing",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/UserLicenseCompliance/GetUserLicenseComplianceCourseListing";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=oi.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getUserLicenseComplianceCourseSummary",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/UserLicenseCompliance/GetUserLicenseComplianceCourseSummary";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=di.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getUserLicenseCompliancePeriodExemptions",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/UserLicenseCompliance/GetUserLicenseCompliancePeriodExemptions";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(pi.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"createUserLicenseExemptionValue",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/UserLicenseCompliance/CreateUserLicenseExemptionValue";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}var o=e.data,s=o;return Tv("Error",t,o,i,Ih.fromJS(s))}},{key:"getUserLicenseList",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/UserLicenseCompliance/GetUserLicenseList";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Jl.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getPeriodRemainingRequirements",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/UserLicenseCompliance/GetPeriodRemainingRequirements";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(hi.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"createUserRetroactiveCredit",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/UserLicenseCompliance/CreateUserRetroactiveCredit";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}var o=e.data,s=o;return Tv("Error",t,o,i,Ih.fromJS(s))}},{key:"getFuturePeriodsAvailableCredits",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/UserLicenseCompliance/GetFuturePeriodsAvailableCredits";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(xt.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"deleteUserRetroactiveCredit",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/UserLicenseCompliance/DeleteUserRetroactiveCredit";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getComplianceReportToPrint",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/UserLicenseCompliance/GetComplianceReportToPrint";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Jc.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getComplianceReportCourseListingToPrint",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/UserLicenseCompliance/GetComplianceReportCourseListingToPrint";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(Fc.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"getPortalComplianceReport",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/UserLicenseCompliance/GetPortalComplianceReport";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=gi.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getPortalComplianceReportByGuid",value:function(e,t,i,r){var a=this,n=this.baseUrl+"/api/UserLicenseCompliance/GetPortalComplianceReportByGuid?";if(null===e)throw new Error("The parameter 'guid' cannot be null.");if(void 0!==e&&(n+="guid="+encodeURIComponent(""+e)+"&"),null===t)throw new Error("The parameter 'isCurrentPeriod' cannot be null.");void 0!==t&&(n+="isCurrentPeriod="+encodeURIComponent(""+t)+"&");var o={method:"POST",url:n=n.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(Pv(e)&&e.response)return e.response;throw e})).then((function(e){return a.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 a,n=e.data;return a=gi.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"getPortalComplianceSubPeriods",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/UserLicenseCompliance/GetPortalComplianceSubPeriods";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(fc.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"getPortalComplianceMainPeriods",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/UserLicenseCompliance/GetPortalComplianceMainPeriods";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(fc.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"getSessionUsersWithRetro",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/UserLicenseCompliance/GetSessionUsersWithRetro";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(ph.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"getUserTranscriptsWithRetro",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/UserLicenseCompliance/GetUserTranscriptsWithRetro";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(c)}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"updateNYLawCourseApproval",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/UserLicenseCompliance/UpdateNYLawCourseApproval";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}var o=e.data,s=o;return Tv("Error",t,o,i,Ih.fromJS(s))}},{key:"getUserCompliancePeriods",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/UserLicenseCompliance/GetUserCompliancePeriods";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(cp.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"getLicensesWithRetroRecords",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/UserLicenseCompliance/GetLicensesWithRetroRecords";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(c)}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"updateNYLawCourseApprovalViaCovidWaiver",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/UserLicenseCompliance/UpdateNYLawCourseApprovalViaCovidWaiver";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}var o=e.data,s=o;return Tv("Error",t,o,i,Ih.fromJS(s))}},{key:"bulkDeleteUserRetroactiveCredit",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/UserLicenseCompliance/BulkDeleteUserRetroactiveCredit";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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?Tv("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,a=this.baseUrl+"/api/UserOnDemandSession/CreateUserOnDemandValidationStatus";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=qp.fromJS(n),Promise.resolve(a)}if(201===t){var o,s=e.data;return o=qp.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"createUserOnDemandVerificationStatus",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/UserOnDemandSession/CreateUserOnDemandVerificationStatus";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Wp.fromJS(n),Promise.resolve(a)}if(201===t){var o,s=e.data;return o=Wp.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"updateUserOnDemandValidationStatus",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/UserOnDemandSession/UpdateUserOnDemandValidationStatus";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=zp.fromJS(n),Promise.resolve(a)}if(201===t){var o,s=e.data;return o=zp.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"updateUserOnDemandVerificationStatus",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/UserOnDemandSession/UpdateUserOnDemandVerificationStatus";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=zp.fromJS(n),Promise.resolve(a)}if(201===t){var o,s=e.data;return o=zp.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"getUserOnDemandSessionDetails",value:function(e,t,i,r){var a=this,n=this.baseUrl+"/api/UserOnDemandSession/GetUserOnDemandSessionDetails?";if(null===e)throw new Error("The parameter 'userId' cannot be null.");if(void 0!==e&&(n+="userId="+encodeURIComponent(""+e)+"&"),null===t)throw new Error("The parameter 'sessionId' cannot be null.");void 0!==t&&(n+="sessionId="+encodeURIComponent(""+t)+"&");var o={method:"GET",url:n=n.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(Pv(e)&&e.response)return e.response;throw e})).then((function(e){return a.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 a=null,n=e.data;if(Array.isArray(n)){a=[];var o,l=Object(s.a)(n);try{for(l.s();!(o=l.n()).done;){var c=o.value;a.push(zp.fromJS(c))}}catch(v){l.e(v)}finally{l.f()}}else a=null;return Promise.resolve(a)}if(404===t){var d=e.data,u=d;return Tv("Not Found",t,d,i,Ih.fromJS(u))}var h=e.data,p=h;return Tv("Error",t,h,i,Ih.fromJS(p))}},{key:"resetDisqualifiedVideo",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/UserOnDemandSession/ResetDisqualifiedVideo";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.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,a=this.baseUrl+"/api/UserSavedFilter/GetAll";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Qp.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"get",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/UserSavedFilter/Get";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Kp.fromJS(n),Promise.resolve(a)}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"create",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/UserSavedFilter/Create";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Kp.fromJS(n),Promise.resolve(a)}if(201===t){var o,s=e.data;return o=Kp.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"update",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/UserSavedFilter/Update";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"PUT",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=Kp.fromJS(n),Promise.resolve(a)}if(201===t){var o,s=e.data;return o=Kp.fromJS(s),Promise.resolve(o)}if(400===t){var l=e.data,c=l;return Tv("Bad Request",t,l,i,xv.fromJS(c))}var d=e.data,u=d;return Tv("Error",t,d,i,Ih.fromJS(u))}},{key:"delete",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/UserSavedFilter/Delete";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"DELETE",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a=e.data,n=a;return Tv("Bad Request",t,a,i,xv.fromJS(n))}if(404===t){var o=e.data,s=o;return Tv("Not Found",t,o,i,Ih.fromJS(s))}var l=e.data,c=l;return Tv("Error",t,l,i,Ih.fromJS(c))}},{key:"validateUserSavedFilterName",value:function(e,t,i){var r=this,a=this.baseUrl+"/api/UserSavedFilter/ValidateUserSavedFilterName";a=a.replace(/[?&]$/,"");var n={data:JSON.stringify(t),method:"POST",url:a,headers:{"x-api-version":void 0!==e&&null!==e?""+e:"","Content-Type":"application/json",Accept:"application/json"},cancelToken:i};return this.instance.request(n).catch((function(e){if(Pv(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 a,n=e.data;return a=void 0!==n?n:null,Promise.resolve(a)}return 200!==t&&204!==t?Tv("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}(),Me=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(a){i.e(a)}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(a){i.e(a)}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.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 a,n=Object(s.a)(e.activityTags);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.activityTags.push(Xe.fromJS(o))}}catch(S){n.e(S)}finally{n.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 p=u.value;this.activityLearningPlans.push(_e.fromJS(p))}}catch(S){h.e(S)}finally{h.f()}}if(Array.isArray(e.activityMaterials)){this.activityMaterials=[];var v,f=Object(s.a)(e.activityMaterials);try{for(f.s();!(v=f.n()).done;){var m=v.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 a,n=Object(s.a)(this.activityTags);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.activityTags.push(o.toJSON())}}catch(S){n.e(S)}finally{n.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 p=u.value;e.activityLearningPlans.push(p.toJSON())}}catch(S){h.e(S)}finally{h.f()}}if(Array.isArray(this.activityMaterials)){e.activityMaterials=[];var v,f=Object(s.a)(this.activityMaterials);try{for(f.s();!(v=f.n()).done;){var m=v.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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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}(),at=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 a,n=Object(s.a)(e.userIds);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.userIds.push(o)}}catch(l){n.e(l)}finally{n.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 a,n=Object(s.a)(this.userIds);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.userIds.push(o)}}catch(l){n.e(l)}finally{n.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}(),nt=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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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?Nh.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 pt,vt=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 a,n=Object(s.a)(e.information);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.information.push(mt.fromJS(o))}}catch(l){n.e(l)}finally{n.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 a,n=Object(s.a)(this.information);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.information.push(o.toJSON())}}catch(l){n.e(l)}finally{n.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"}(pt||(pt={}));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(a){i.e(a)}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(a){i.e(a)}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?vt.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(Ou.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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}(),Tt=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}(),Pt=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(Tt.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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?ap.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(Lp.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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 a,n=Object(s.a)(e.sessionLicenses);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.sessionLicenses.push(Pu.fromJS(o))}}catch(l){n.e(l)}finally{n.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 a,n=Object(s.a)(this.sessionLicenses);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.sessionLicenses.push(o.toJSON())}}catch(l){n.e(l)}finally{n.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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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,this.programName=void 0,this.attendeeStatement=void 0,this.instructorStatement=void 0,this.attendeeStatementOndemand=void 0,t)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,this.programName=e.programName,this.attendeeStatement=e.attendeeStatement,this.instructorStatement=e.instructorStatement,this.attendeeStatementOndemand=e.attendeeStatementOndemand)}},{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.programName=this.programName,e.attendeeStatement=this.attendeeStatement,e.instructorStatement=this.instructorStatement,e.attendeeStatementOndemand=this.attendeeStatementOndemand,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}(),Mt=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(a){i.e(a)}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(a){i.e(a)}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}(),qt=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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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?ap.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(fp.fromJS(r))}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(e.userPracticeArea)){this.userPracticeArea=[];var a,n=Object(s.a)(e.userPracticeArea);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.userPracticeArea.push(_p.fromJS(o))}}catch(l){n.e(l)}finally{n.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 a,n=Object(s.a)(this.userPracticeArea);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.userPracticeArea.push(o.toJSON())}}catch(l){n.e(l)}finally{n.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(a){i.e(a)}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(a){i.e(a)}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}(),ai=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}(),ni=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(Pu.fromJS(r))}}catch(v){i.e(v)}finally{i.f()}}if(Array.isArray(e.userLicenseCreditValues)){this.userLicenseCreditValues=[];var a,n=Object(s.a)(e.userLicenseCreditValues);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.userLicenseCreditValues.push(Dp.fromJS(o))}}catch(v){n.e(v)}finally{n.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(Bp.fromJS(d))}}catch(v){c.e(v)}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 p=u.value;this.userRetroCreditValues.push(li.fromJS(p))}}catch(v){h.e(v)}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(v){i.e(v)}finally{i.f()}}if(Array.isArray(this.userLicenseCreditValues)){e.userLicenseCreditValues=[];var a,n=Object(s.a)(this.userLicenseCreditValues);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.userLicenseCreditValues.push(o.toJSON())}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;e.userRetroCreditValues.push(p.toJSON())}}catch(v){h.e(v)}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(ni.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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(ai.fromJS(r))}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(e.compliancePeriodCourseProperties)){this.compliancePeriodCourseProperties=[];var a,n=Object(s.a)(e.compliancePeriodCourseProperties);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.compliancePeriodCourseProperties.push(si.fromJS(o))}}catch(l){n.e(l)}finally{n.f()}}this.courseCreditTotal=e.courseCreditTotal?ai.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 a,n=Object(s.a)(this.compliancePeriodCourseProperties);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.compliancePeriodCourseProperties.push(o.toJSON())}}catch(l){n.e(l)}finally{n.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(a){i.e(a)}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(a){i.e(a)}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 a,n=Object(s.a)(e.compliancePeriodAdditionalRequirements);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.compliancePeriodAdditionalRequirements.push(ii.fromJS(o))}}catch(y){n.e(y)}finally{n.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 p=u.value;this.compliancePeriodRestrictions.push(fi.fromJS(p))}}catch(y){h.e(y)}finally{h.f()}}if(Array.isArray(e.compliancePeriodSubjectAreas)){this.compliancePeriodSubjectAreas=[];var v,f=Object(s.a)(e.compliancePeriodSubjectAreas);try{for(f.s();!(v=f.n()).done;){var m=v.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 a,n=Object(s.a)(this.compliancePeriodAdditionalRequirements);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.compliancePeriodAdditionalRequirements.push(o.toJSON())}}catch(y){n.e(y)}finally{n.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 p=u.value;e.compliancePeriodRestrictions.push(p.toJSON())}}catch(y){h.e(y)}finally{h.f()}}if(Array.isArray(this.compliancePeriodSubjectAreas)){e.compliancePeriodSubjectAreas=[];var v,f=Object(s.a)(this.compliancePeriodSubjectAreas);try{for(f.s();!(v=f.n()).done;){var m=v.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(ac.fromJS(r))}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(e.appliedRetroCourseCredits)){this.appliedRetroCourseCredits=[];var a,n=Object(s.a)(e.appliedRetroCourseCredits);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.appliedRetroCourseCredits.push(nc.fromJS(o))}}catch(l){n.e(l)}finally{n.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 a,n=Object(s.a)(this.appliedRetroCourseCredits);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.appliedRetroCourseCredits.push(o.toJSON())}}catch(l){n.e(l)}finally{n.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.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(a){i.e(a)}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(a){i.e(a)}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.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(Pu.fromJS(r))}}catch(v){i.e(v)}finally{i.f()}}if(Array.isArray(e.userLicenseCreditValues)){this.userLicenseCreditValues=[];var a,n=Object(s.a)(e.userLicenseCreditValues);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.userLicenseCreditValues.push(Dp.fromJS(o))}}catch(v){n.e(v)}finally{n.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(Bp.fromJS(d))}}catch(v){c.e(v)}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 p=u.value;this.userRetroCreditValues.push(li.fromJS(p))}}catch(v){h.e(v)}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(v){i.e(v)}finally{i.f()}}if(Array.isArray(this.userLicenseCreditValues)){e.userLicenseCreditValues=[];var a,n=Object(s.a)(this.userLicenseCreditValues);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.userLicenseCreditValues.push(o.toJSON())}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;e.userRetroCreditValues.push(p.toJSON())}}catch(v){h.e(v)}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 a,n=Object(s.a)(e.mainLicensePeriods);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.mainLicensePeriods.push(fc.fromJS(o))}}catch(l){n.e(l)}finally{n.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 a,n=Object(s.a)(this.mainLicensePeriods);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.mainLicensePeriods.push(o.toJSON())}}catch(l){n.e(l)}finally{n.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(a){i.e(a)}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(a){i.e(a)}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 a,n=Object(s.a)(e.comments);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.comments.push(o)}}catch(u){n.e(u)}finally{n.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 a,n=Object(s.a)(this.comments);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.comments.push(o)}}catch(u){n.e(u)}finally{n.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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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}(),Ti=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(a){i.e(a)}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(a){i.e(a)}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.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 a,n=Object(s.a)(e.courseCompetencies);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.courseCompetencies.push(Ui.fromJS(o))}}catch(S){n.e(S)}finally{n.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 p=u.value;this.courseLevels.push(Vi.fromJS(p))}}catch(S){h.e(S)}finally{h.f()}}if(Array.isArray(e.coursePracticeAreas)){this.coursePracticeAreas=[];var v,f=Object(s.a)(e.coursePracticeAreas);try{for(f.s();!(v=f.n()).done;){var m=v.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 a,n=Object(s.a)(this.courseCompetencies);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.courseCompetencies.push(o.toJSON())}}catch(S){n.e(S)}finally{n.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 p=u.value;e.courseLevels.push(p.toJSON())}}catch(S){h.e(S)}finally{h.f()}}if(Array.isArray(this.coursePracticeAreas)){e.coursePracticeAreas=[];var v,f=Object(s.a)(this.coursePracticeAreas);try{for(f.s();!(v=f.n()).done;){var m=v.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 a,n=Object(s.a)(e.userCollection);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.userCollection.push(dp.fromJS(o))}}catch(u){n.e(u)}finally{n.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 a,n=Object(s.a)(this.userCollection);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.userCollection.push(o.toJSON())}}catch(u){n.e(u)}finally{n.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(a){i.e(a)}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(a){i.e(a)}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(su.fromJS(r))}}catch(O){i.e(O)}finally{i.f()}}if(Array.isArray(e.sessionLicenses)){this.sessionLicenses=[];var a,n=Object(s.a)(e.sessionLicenses);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.sessionLicenses.push(Pu.fromJS(o))}}catch(O){n.e(O)}finally{n.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(Wu.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 p=u.value;this.sessionInstructors.push(Wu.fromJS(p))}}catch(O){h.e(O)}finally{h.f()}}if(Array.isArray(e.sessionWaitlist)){this.sessionWaitlist=[];var v,f=Object(s.a)(e.sessionWaitlist);try{for(f.s();!(v=f.n()).done;){var m=v.value;this.sessionWaitlist.push(vh.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(Fu.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(Bu.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 a,n=Object(s.a)(this.sessionLicenses);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.sessionLicenses.push(o.toJSON())}}catch(O){n.e(O)}finally{n.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 p=u.value;e.sessionInstructors.push(p.toJSON())}}catch(O){h.e(O)}finally{h.f()}}if(Array.isArray(this.sessionWaitlist)){e.sessionWaitlist=[];var v,f=Object(s.a)(this.sessionWaitlist);try{for(f.s();!(v=f.n()).done;){var m=v.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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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 a,n=Object(s.a)(e.courseCompetency);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.courseCompetency.push(Ui.fromJS(o))}}catch(S){n.e(S)}finally{n.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 p=u.value;this.courseLevel.push(Vi.fromJS(p))}}catch(S){h.e(S)}finally{h.f()}}if(Array.isArray(e.coursePracticeArea)){this.coursePracticeArea=[];var v,f=Object(s.a)(e.coursePracticeArea);try{for(f.s();!(v=f.n()).done;){var m=v.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 a,n=Object(s.a)(this.courseCompetency);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.courseCompetency.push(o.toJSON())}}catch(S){n.e(S)}finally{n.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 p=u.value;e.courseLevel.push(p.toJSON())}}catch(S){h.e(S)}finally{h.f()}}if(Array.isArray(this.coursePracticeArea)){e.coursePracticeArea=[];var v,f=Object(s.a)(this.coursePracticeArea);try{for(f.s();!(v=f.n()).done;){var m=v.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(a){i.e(a)}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(a){i.e(a)}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}(),Mi=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}(),qi=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 a,n=Object(s.a)(e.courseCompetency);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.courseCompetency.push(Ui.fromJS(o))}}catch(O){n.e(O)}finally{n.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 p=u.value;this.courseLevel.push(Vi.fromJS(p))}}catch(O){h.e(O)}finally{h.f()}}if(Array.isArray(e.coursePracticeArea)){this.coursePracticeArea=[];var v,f=Object(s.a)(e.coursePracticeArea);try{for(f.s();!(v=f.n()).done;){var m=v.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 a,n=Object(s.a)(this.courseCompetency);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.courseCompetency.push(o.toJSON())}}catch(O){n.e(O)}finally{n.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 p=u.value;e.courseLevel.push(p.toJSON())}}catch(O){h.e(O)}finally{h.f()}}if(Array.isArray(this.coursePracticeArea)){e.coursePracticeArea=[];var v,f=Object(s.a)(this.coursePracticeArea);try{for(f.s();!(v=f.n()).done;){var m=v.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(a){i.e(a)}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(a){i.e(a)}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(_d.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(su.fromJS(r))}}catch(O){i.e(O)}finally{i.f()}}if(Array.isArray(e.sessionLicenses)){this.sessionLicenses=[];var a,n=Object(s.a)(e.sessionLicenses);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.sessionLicenses.push(Pu.fromJS(o))}}catch(O){n.e(O)}finally{n.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(Wu.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 p=u.value;this.sessionInstructors.push(Wu.fromJS(p))}}catch(O){h.e(O)}finally{h.f()}}if(Array.isArray(e.sessionWaitlist)){this.sessionWaitlist=[];var v,f=Object(s.a)(e.sessionWaitlist);try{for(f.s();!(v=f.n()).done;){var m=v.value;this.sessionWaitlist.push(vh.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(Fu.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(Bu.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 a,n=Object(s.a)(this.sessionLicenses);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.sessionLicenses.push(o.toJSON())}}catch(O){n.e(O)}finally{n.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 p=u.value;e.sessionInstructors.push(p.toJSON())}}catch(O){h.e(O)}finally{h.f()}}if(Array.isArray(this.sessionWaitlist)){e.sessionWaitlist=[];var v,f=Object(s.a)(this.sessionWaitlist);try{for(f.s();!(v=f.n()).done;){var m=v.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 a,n=Object(s.a)(e.sessionLicenses);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.sessionLicenses.push(Pu.fromJS(o))}}catch(l){n.e(l)}finally{n.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 a,n=Object(s.a)(this.sessionLicenses);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.sessionLicenses.push(o.toJSON())}}catch(l){n.e(l)}finally{n.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(a){i.e(a)}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(a){i.e(a)}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 a,n=Object(s.a)(e.courseCompetency);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.courseCompetency.push(o)}}catch(S){n.e(S)}finally{n.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 p=u.value;this.courseLevel.push(p)}}catch(S){h.e(S)}finally{h.f()}}if(Array.isArray(e.coursePracticeArea)){this.coursePracticeArea=[];var v,f=Object(s.a)(e.coursePracticeArea);try{for(f.s();!(v=f.n()).done;){var m=v.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 a,n=Object(s.a)(this.courseCompetency);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.courseCompetency.push(o)}}catch(S){n.e(S)}finally{n.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 p=u.value;e.courseLevel.push(p)}}catch(S){h.e(S)}finally{h.f()}}if(Array.isArray(this.coursePracticeArea)){e.coursePracticeArea=[];var v,f=Object(s.a)(this.coursePracticeArea);try{for(f.s();!(v=f.n()).done;){var m=v.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}(),ar=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(Tl.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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}(),nr=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 a,n=Object(s.a)(e.courseCompetency);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.courseCompetency.push(o)}}catch(S){n.e(S)}finally{n.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 p=u.value;this.courseLevel.push(p)}}catch(S){h.e(S)}finally{h.f()}}if(Array.isArray(e.coursePracticeArea)){this.coursePracticeArea=[];var v,f=Object(s.a)(e.coursePracticeArea);try{for(f.s();!(v=f.n()).done;){var m=v.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 a,n=Object(s.a)(this.courseCompetency);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.courseCompetency.push(o)}}catch(S){n.e(S)}finally{n.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 p=u.value;e.courseLevel.push(p)}}catch(S){h.e(S)}finally{h.f()}}if(Array.isArray(this.coursePracticeArea)){e.coursePracticeArea=[];var v,f=Object(s.a)(this.coursePracticeArea);try{for(f.s();!(v=f.n()).done;){var m=v.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(Tl.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}finally{i.f()}}this.sessionRecurrencePattern=e.sessionRecurrencePattern?nh.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(a){i.e(a)}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}(),pr=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(aa.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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.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(pa.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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(da.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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(su.fromJS(r))}}catch(v){i.e(v)}finally{i.f()}}if(Array.isArray(e.sessionLicenses)){this.sessionLicenses=[];var a,n=Object(s.a)(e.sessionLicenses);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.sessionLicenses.push(Pu.fromJS(o))}}catch(v){n.e(v)}finally{n.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(Fu.fromJS(d))}}catch(v){c.e(v)}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 p=u.value;this.sessionMediaFiles.push(Bu.fromJS(p))}}catch(v){h.e(v)}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(v){i.e(v)}finally{i.f()}}if(Array.isArray(this.sessionLicenses)){e.sessionLicenses=[];var a,n=Object(s.a)(this.sessionLicenses);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.sessionLicenses.push(o.toJSON())}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;e.sessionMediaFiles.push(p.toJSON())}}catch(v){h.e(v)}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 a,n=Object(s.a)(e.extraSessionIds);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.extraSessionIds.push(o)}}catch(l){n.e(l)}finally{n.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 a,n=Object(s.a)(this.extraSessionIds);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.extraSessionIds.push(o)}}catch(l){n.e(l)}finally{n.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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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.verificationCodeMissed=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.verificationCodeMissed=e.verificationCodeMissed,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.verificationCodeMissed=this.verificationCodeMissed,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}(),Tr=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 Pr,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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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}(),Mr=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(a){i.e(a)}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(a){i.e(a)}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}(),qr=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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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}(),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}(),ta=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}(),ia=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(ta.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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.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}(),aa=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}(),na=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(Oh.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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}(),oa=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(uv.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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",e[e.NotStarted=3]="NotStarted"}(Pr||(Pr={}));var sa,la=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(ca.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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}(),ca=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}(),da=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}(),ua=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(va.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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}(),ha=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(la.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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}(),pa=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}(),va=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(a){i.e(a)}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(a){i.e(a)}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}(),fa=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}(),ma=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}(),ya=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?Aa.fromJS(e.template):void 0,this.frequency=e.frequency,this.time=e.time,this.timezoneId=e.timezoneId,this.timezone=e.timezone?kh.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(v){i.e(v)}finally{i.f()}}if(this.monthlyOption=e.monthlyOption,Array.isArray(e.monthlyDay)){this.monthlyDay=[];var a,n=Object(s.a)(e.monthlyDay);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.monthlyDay.push(o)}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;this.recipients.push(wa.fromJS(p))}}catch(v){h.e(v)}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(v){i.e(v)}finally{i.f()}}if(e.monthlyOption=this.monthlyOption,Array.isArray(this.monthlyDay)){e.monthlyDay=[];var a,n=Object(s.a)(this.monthlyDay);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.monthlyDay.push(o)}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;e.recipients.push(p.toJSON())}}catch(v){h.e(v)}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"}(sa||(sa={}));var ga,ba=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"}(ga||(ga={}));var Sa,Ea=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?qi.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}(),Ia=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?mp.fromJS(e.replyToUser):void 0,this.senderId=e.senderId,this.sender=e.sender?mp.fromJS(e.sender):void 0,this.isArchived=e.isArchived,this.emailTemplate=e.emailTemplate?Na.fromJS(e.emailTemplate):void 0,this.emailTypeId=e.emailTypeId,this.emailAlias=e.emailAlias,this.emailType=e.emailType?Ua.fromJS(e.emailType):void 0,this.emailParameter=e.emailParameter?ja.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(Ca.fromJS(r))}}catch(O){i.e(O)}finally{i.f()}}if(Array.isArray(e.sessions)){this.sessions=[];var a,n=Object(s.a)(e.sessions);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.sessions.push(Ta.fromJS(o))}}catch(O){n.e(O)}finally{n.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(Ea.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 p=u.value;this.learningPlans.push(Oa.fromJS(p))}}catch(O){h.e(O)}finally{h.f()}}if(Array.isArray(e.recipients)){this.recipients=[];var v,f=Object(s.a)(e.recipients);try{for(f.s();!(v=f.n()).done;){var m=v.value;this.recipients.push(wa.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(Fa.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(ba.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 a,n=Object(s.a)(this.sessions);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.sessions.push(o.toJSON())}}catch(O){n.e(O)}finally{n.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 p=u.value;e.learningPlans.push(p.toJSON())}}catch(O){h.e(O)}finally{h.f()}}if(Array.isArray(this.recipients)){e.recipients=[];var v,f=Object(s.a)(this.recipients);try{for(f.s();!(v=f.n()).done;){var m=v.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}(),Oa=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?qs.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}(),Ca=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}(),xa=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(Ia.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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}(),ja=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}(),wa=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?mp.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}(),Ta=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?cu.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}(),Pa=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}(),Aa=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?Ra.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}(),Na=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?Ua.fromJS(e.emailType):void 0,this.replyTo=e.replyTo?mp.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}(),ka=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(Na.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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}(),Da=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?Jh.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}(),La=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?Jh.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}(),Ja=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(La.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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}(),Fa=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}(),Ba=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(Fa.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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.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?Aa.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(Da.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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}(),Ua=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?Na.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(La.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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"}(Sa||(Sa={}));var Ga,Ma=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(Ua.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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}(),qa=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}(),za=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(qa.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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"}(Ga||(Ga={}));var Wa,Va=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(_a.fromJS(r))}}catch(u){i.e(u)}finally{i.f()}}if(Array.isArray(e.questions)){this.questions=[];var a,n=Object(s.a)(e.questions);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.questions.push($a.fromJS(o))}}catch(u){n.e(u)}finally{n.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(Xa.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 a,n=Object(s.a)(this.questions);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.questions.push(o.toJSON())}}catch(u){n.e(u)}finally{n.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}(),_a=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}(),Ya=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(Va.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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}(),$a=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}(),Ha=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}(),Ka=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(Ha.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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"}(Wa||(Wa={}));var Qa,Za,Xa=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($a.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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.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}(),tn=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(en.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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}(),rn=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}(),an=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}(),nn=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?Nh.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}(),on=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(pn.fromJS(r))}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(e.firmApplications)){this.firmApplications=[];var a,n=Object(s.a)(e.firmApplications);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.firmApplications.push(nn.fromJS(o))}}catch(l){n.e(l)}finally{n.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 a,n=Object(s.a)(this.firmApplications);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.firmApplications.push(o.toJSON())}}catch(l){n.e(l)}finally{n.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.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}(),ln=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}(),cn=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}(),dn=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}(),un=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?Sh.fromJS(e.statement):void 0,this.dueToReport=e.dueToReport?ma.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}(),hn=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?Eh.fromJS(e.statement):void 0,this.dueToReport=e.dueToReport?ya.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}(),pn=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}(),vn=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(mp.fromJS(r))}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(e.files)){this.files=[];var a,n=Object(s.a)(e.files);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.files.push(gl.fromJS(o))}}catch(l){n.e(l)}finally{n.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 a,n=Object(s.a)(this.files);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.files.push(o.toJSON())}}catch(l){n.e(l)}finally{n.f()}}return 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.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}(),mn=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(fn.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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}(),yn=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}(),gn=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(yn.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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}(),bn=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}(),Sn=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(bn.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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}(),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}(),In=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(v){i.e(v)}finally{i.f()}}if(Array.isArray(e.searchCriteria)){this.searchCriteria=[];var a,n=Object(s.a)(e.searchCriteria);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.searchCriteria.push(o)}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;this.includeIds.push(p)}}catch(v){h.e(v)}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(v){i.e(v)}finally{i.f()}}if(Array.isArray(this.searchCriteria)){e.searchCriteria=[];var a,n=Object(s.a)(this.searchCriteria);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.searchCriteria.push(o)}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;e.includeIds.push(p)}}catch(v){h.e(v)}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}(),On=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(v){i.e(v)}finally{i.f()}}if(Array.isArray(e.searchCriteria)){this.searchCriteria=[];var a,n=Object(s.a)(e.searchCriteria);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.searchCriteria.push(o)}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;this.includeIds.push(p)}}catch(v){h.e(v)}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(v){i.e(v)}finally{i.f()}}if(Array.isArray(this.searchCriteria)){e.searchCriteria=[];var a,n=Object(s.a)(this.searchCriteria);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.searchCriteria.push(o)}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;e.includeIds.push(p)}}catch(v){h.e(v)}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}(),Cn=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(v){i.e(v)}finally{i.f()}}if(Array.isArray(e.searchCriteria)){this.searchCriteria=[];var a,n=Object(s.a)(e.searchCriteria);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.searchCriteria.push(o)}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;this.includeIds.push(p)}}catch(v){h.e(v)}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(v){i.e(v)}finally{i.f()}}if(Array.isArray(this.searchCriteria)){e.searchCriteria=[];var a,n=Object(s.a)(this.searchCriteria);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.searchCriteria.push(o)}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;e.includeIds.push(p)}}catch(v){h.e(v)}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}(),xn=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(v){i.e(v)}finally{i.f()}}if(Array.isArray(e.exemptedIds)){this.exemptedIds=[];var a,n=Object(s.a)(e.exemptedIds);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.exemptedIds.push(o)}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;this.filterBy.push(p)}}catch(v){h.e(v)}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(v){i.e(v)}finally{i.f()}}if(Array.isArray(this.exemptedIds)){e.exemptedIds=[];var a,n=Object(s.a)(this.exemptedIds);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.exemptedIds.push(o)}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;e.filterBy.push(p)}}catch(v){h.e(v)}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}(),jn=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(v){i.e(v)}finally{i.f()}}if(Array.isArray(e.exemptedIds)){this.exemptedIds=[];var a,n=Object(s.a)(e.exemptedIds);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.exemptedIds.push(o)}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;this.filterBy.push(p)}}catch(v){h.e(v)}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(v){i.e(v)}finally{i.f()}}if(Array.isArray(this.exemptedIds)){e.exemptedIds=[];var a,n=Object(s.a)(this.exemptedIds);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.exemptedIds.push(o)}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;e.filterBy.push(p)}}catch(v){h.e(v)}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}(),wn=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(v){i.e(v)}finally{i.f()}}if(Array.isArray(e.exemptedIds)){this.exemptedIds=[];var a,n=Object(s.a)(e.exemptedIds);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.exemptedIds.push(o)}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;this.filterBy.push(p)}}catch(v){h.e(v)}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(v){i.e(v)}finally{i.f()}}if(Array.isArray(this.exemptedIds)){e.exemptedIds=[];var a,n=Object(s.a)(this.exemptedIds);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.exemptedIds.push(o)}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;e.filterBy.push(p)}}catch(v){h.e(v)}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}(),Tn=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}(),Pn=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}(),An=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(v){i.e(v)}finally{i.f()}}if(Array.isArray(e.searchCriteria)){this.searchCriteria=[];var a,n=Object(s.a)(e.searchCriteria);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.searchCriteria.push(o)}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;this.includeIds.push(p)}}catch(v){h.e(v)}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(v){i.e(v)}finally{i.f()}}if(Array.isArray(this.searchCriteria)){e.searchCriteria=[];var a,n=Object(s.a)(this.searchCriteria);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.searchCriteria.push(o)}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;e.includeIds.push(p)}}catch(v){h.e(v)}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}(),Nn=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(v){i.e(v)}finally{i.f()}}if(Array.isArray(e.exemptedIds)){this.exemptedIds=[];var a,n=Object(s.a)(e.exemptedIds);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.exemptedIds.push(o)}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;this.filterBy.push(p)}}catch(v){h.e(v)}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(v){i.e(v)}finally{i.f()}}if(Array.isArray(this.exemptedIds)){e.exemptedIds=[];var a,n=Object(s.a)(this.exemptedIds);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.exemptedIds.push(o)}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;e.filterBy.push(p)}}catch(v){h.e(v)}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}(),kn=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(v){i.e(v)}finally{i.f()}}if(Array.isArray(e.exemptedIds)){this.exemptedIds=[];var a,n=Object(s.a)(e.exemptedIds);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.exemptedIds.push(o)}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;this.filterBy.push(p)}}catch(v){h.e(v)}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(v){i.e(v)}finally{i.f()}}if(Array.isArray(this.exemptedIds)){e.exemptedIds=[];var a,n=Object(s.a)(this.exemptedIds);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.exemptedIds.push(o)}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;e.filterBy.push(p)}}catch(v){h.e(v)}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}(),Dn=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 a,n=Object(s.a)(e.searchCriteria);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.searchCriteria.push(o)}}catch(y){n.e(y)}finally{n.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 p=u.value;this.includeIds.push(p)}}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 v,f=Object(s.a)(e.portalCategory);try{for(f.s();!(v=f.n()).done;){var m=v.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 a,n=Object(s.a)(this.searchCriteria);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.searchCriteria.push(o)}}catch(y){n.e(y)}finally{n.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 p=u.value;e.includeIds.push(p)}}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 v,f=Object(s.a)(this.portalCategory);try{for(f.s();!(v=f.n()).done;){var m=v.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}(),Ln=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(v){i.e(v)}finally{i.f()}}if(Array.isArray(e.searchCriteria)){this.searchCriteria=[];var a,n=Object(s.a)(e.searchCriteria);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.searchCriteria.push(o)}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;this.includeIds.push(p)}}catch(v){h.e(v)}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(v){i.e(v)}finally{i.f()}}if(Array.isArray(this.searchCriteria)){e.searchCriteria=[];var a,n=Object(s.a)(this.searchCriteria);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.searchCriteria.push(o)}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;e.includeIds.push(p)}}catch(v){h.e(v)}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}(),Jn=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(v){i.e(v)}finally{i.f()}}if(Array.isArray(e.exemptedIds)){this.exemptedIds=[];var a,n=Object(s.a)(e.exemptedIds);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.exemptedIds.push(o)}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;this.filterBy.push(p)}}catch(v){h.e(v)}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(v){i.e(v)}finally{i.f()}}if(Array.isArray(this.exemptedIds)){e.exemptedIds=[];var a,n=Object(s.a)(this.exemptedIds);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.exemptedIds.push(o)}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;e.filterBy.push(p)}}catch(v){h.e(v)}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}(),Fn=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(v){i.e(v)}finally{i.f()}}if(Array.isArray(e.exemptedIds)){this.exemptedIds=[];var a,n=Object(s.a)(e.exemptedIds);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.exemptedIds.push(o)}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;this.filterBy.push(p)}}catch(v){h.e(v)}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(v){i.e(v)}finally{i.f()}}if(Array.isArray(this.exemptedIds)){e.exemptedIds=[];var a,n=Object(s.a)(this.exemptedIds);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.exemptedIds.push(o)}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;e.filterBy.push(p)}}catch(v){h.e(v)}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}(),Bn=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(v){i.e(v)}finally{i.f()}}if(Array.isArray(e.searchCriteria)){this.searchCriteria=[];var a,n=Object(s.a)(e.searchCriteria);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.searchCriteria.push(o)}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;this.includeIds.push(p)}}catch(v){h.e(v)}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(v){i.e(v)}finally{i.f()}}if(Array.isArray(this.searchCriteria)){e.searchCriteria=[];var a,n=Object(s.a)(this.searchCriteria);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.searchCriteria.push(o)}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;e.includeIds.push(p)}}catch(v){h.e(v)}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}(),Rn=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(v){i.e(v)}finally{i.f()}}if(Array.isArray(e.includeIds)){this.includeIds=[];var a,n=Object(s.a)(e.includeIds);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.includeIds.push(o)}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;this.searchCriteria.push(p)}}catch(v){h.e(v)}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(v){i.e(v)}finally{i.f()}}if(Array.isArray(this.includeIds)){e.includeIds=[];var a,n=Object(s.a)(this.includeIds);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.includeIds.push(o)}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;e.searchCriteria.push(p)}}catch(v){h.e(v)}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}(),Un=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(v){i.e(v)}finally{i.f()}}if(Array.isArray(e.searchCriteria)){this.searchCriteria=[];var a,n=Object(s.a)(e.searchCriteria);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.searchCriteria.push(o)}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;this.includeIds.push(p)}}catch(v){h.e(v)}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(v){i.e(v)}finally{i.f()}}if(Array.isArray(this.searchCriteria)){e.searchCriteria=[];var a,n=Object(s.a)(this.searchCriteria);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.searchCriteria.push(o)}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;e.includeIds.push(p)}}catch(v){h.e(v)}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}(),Gn=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(v){i.e(v)}finally{i.f()}}if(Array.isArray(e.exemptedIds)){this.exemptedIds=[];var a,n=Object(s.a)(e.exemptedIds);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.exemptedIds.push(o)}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;this.filterBy.push(p)}}catch(v){h.e(v)}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(v){i.e(v)}finally{i.f()}}if(Array.isArray(this.exemptedIds)){e.exemptedIds=[];var a,n=Object(s.a)(this.exemptedIds);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.exemptedIds.push(o)}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;e.filterBy.push(p)}}catch(v){h.e(v)}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}(),Mn=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(v){i.e(v)}finally{i.f()}}if(Array.isArray(e.searchCriteria)){this.searchCriteria=[];var a,n=Object(s.a)(e.searchCriteria);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.searchCriteria.push(o)}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;this.includeIds.push(p)}}catch(v){h.e(v)}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(v){i.e(v)}finally{i.f()}}if(Array.isArray(this.searchCriteria)){e.searchCriteria=[];var a,n=Object(s.a)(this.searchCriteria);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.searchCriteria.push(o)}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;e.includeIds.push(p)}}catch(v){h.e(v)}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}(),qn=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(v){i.e(v)}finally{i.f()}}if(Array.isArray(e.searchCriteria)){this.searchCriteria=[];var a,n=Object(s.a)(e.searchCriteria);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.searchCriteria.push(o)}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;this.includeIds.push(p)}}catch(v){h.e(v)}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(v){i.e(v)}finally{i.f()}}if(Array.isArray(this.searchCriteria)){e.searchCriteria=[];var a,n=Object(s.a)(this.searchCriteria);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.searchCriteria.push(o)}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;e.includeIds.push(p)}}catch(v){h.e(v)}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}(),zn=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}(),Wn=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(v){i.e(v)}finally{i.f()}}if(Array.isArray(e.searchCriteria)){this.searchCriteria=[];var a,n=Object(s.a)(e.searchCriteria);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.searchCriteria.push(o)}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;this.includeIds.push(p)}}catch(v){h.e(v)}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(v){i.e(v)}finally{i.f()}}if(Array.isArray(this.searchCriteria)){e.searchCriteria=[];var a,n=Object(s.a)(this.searchCriteria);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.searchCriteria.push(o)}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;e.includeIds.push(p)}}catch(v){h.e(v)}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}(),Vn=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}(),_n=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(v){i.e(v)}finally{i.f()}}if(Array.isArray(e.searchCriteria)){this.searchCriteria=[];var a,n=Object(s.a)(e.searchCriteria);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.searchCriteria.push(o)}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;this.includeIds.push(p)}}catch(v){h.e(v)}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(v){i.e(v)}finally{i.f()}}if(Array.isArray(this.searchCriteria)){e.searchCriteria=[];var a,n=Object(s.a)(this.searchCriteria);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.searchCriteria.push(o)}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;e.includeIds.push(p)}}catch(v){h.e(v)}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}(),Yn=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}(),$n=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(v){i.e(v)}finally{i.f()}}if(Array.isArray(e.includeIds)){this.includeIds=[];var a,n=Object(s.a)(e.includeIds);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.includeIds.push(o)}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;this.filterBy.push(p)}}catch(v){h.e(v)}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(v){i.e(v)}finally{i.f()}}if(Array.isArray(this.includeIds)){e.includeIds=[];var a,n=Object(s.a)(this.includeIds);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.includeIds.push(o)}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;e.filterBy.push(p)}}catch(v){h.e(v)}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}(),Hn=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(v){i.e(v)}finally{i.f()}}if(Array.isArray(e.searchCriteria)){this.searchCriteria=[];var a,n=Object(s.a)(e.searchCriteria);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.searchCriteria.push(o)}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;this.includeIds.push(p)}}catch(v){h.e(v)}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(v){i.e(v)}finally{i.f()}}if(Array.isArray(this.searchCriteria)){e.searchCriteria=[];var a,n=Object(s.a)(this.searchCriteria);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.searchCriteria.push(o)}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;e.includeIds.push(p)}}catch(v){h.e(v)}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}(),Kn=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}(),Qn=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 a,n=Object(s.a)(e.sessionDetails);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.sessionDetails.push(oh.fromJS(o))}}catch(u){n.e(u)}finally{n.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(sh.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 a,n=Object(s.a)(this.sessionDetails);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.sessionDetails.push(o.toJSON())}}catch(u){n.e(u)}finally{n.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}(),Zn=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 a,n=Object(s.a)(e.searchCriteria);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.searchCriteria.push(o)}}catch(y){n.e(y)}finally{n.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 p=u.value;this.includeIds.push(p)}}catch(y){h.e(y)}finally{h.f()}}if(Array.isArray(e.portalCategory)){this.portalCategory=[];var v,f=Object(s.a)(e.portalCategory);try{for(f.s();!(v=f.n()).done;){var m=v.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 a,n=Object(s.a)(this.searchCriteria);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.searchCriteria.push(o)}}catch(y){n.e(y)}finally{n.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 p=u.value;e.includeIds.push(p)}}catch(y){h.e(y)}finally{h.f()}}if(Array.isArray(this.portalCategory)){e.portalCategory=[];var v,f=Object(s.a)(this.portalCategory);try{for(f.s();!(v=f.n()).done;){var m=v.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}(),Xn=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(v){i.e(v)}finally{i.f()}}if(this.userId=e.userId,this.scheduleId=e.scheduleId,Array.isArray(e.portalCategory)){this.portalCategory=[];var a,n=Object(s.a)(e.portalCategory);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.portalCategory.push(o)}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;this.formatFilterIds.push(p)}}catch(v){h.e(v)}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(v){i.e(v)}finally{i.f()}}if(e.userId=this.userId,e.scheduleId=this.scheduleId,Array.isArray(this.portalCategory)){e.portalCategory=[];var a,n=Object(s.a)(this.portalCategory);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.portalCategory.push(o)}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;e.formatFilterIds.push(p)}}catch(v){h.e(v)}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(v){i.e(v)}finally{i.f()}}if(Array.isArray(e.searchCriteria)){this.searchCriteria=[];var a,n=Object(s.a)(e.searchCriteria);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.searchCriteria.push(o)}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;this.includeIds.push(p)}}catch(v){h.e(v)}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(v){i.e(v)}finally{i.f()}}if(Array.isArray(this.searchCriteria)){e.searchCriteria=[];var a,n=Object(s.a)(this.searchCriteria);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.searchCriteria.push(o)}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;e.includeIds.push(p)}}catch(v){h.e(v)}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(a){i.e(a)}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(a){i.e(a)}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}(),ao=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(a){i.e(a)}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(a){i.e(a)}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}(),no=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(v){i.e(v)}finally{i.f()}}if(Array.isArray(e.searchCriteria)){this.searchCriteria=[];var a,n=Object(s.a)(e.searchCriteria);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.searchCriteria.push(o)}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;this.includeIds.push(p)}}catch(v){h.e(v)}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(v){i.e(v)}finally{i.f()}}if(Array.isArray(this.searchCriteria)){e.searchCriteria=[];var a,n=Object(s.a)(this.searchCriteria);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.searchCriteria.push(o)}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;e.includeIds.push(p)}}catch(v){h.e(v)}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(v){i.e(v)}finally{i.f()}}if(Array.isArray(e.searchCriteria)){this.searchCriteria=[];var a,n=Object(s.a)(e.searchCriteria);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.searchCriteria.push(o)}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;this.includeIds.push(p)}}catch(v){h.e(v)}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(v){i.e(v)}finally{i.f()}}if(Array.isArray(this.searchCriteria)){e.searchCriteria=[];var a,n=Object(s.a)(this.searchCriteria);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.searchCriteria.push(o)}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;e.includeIds.push(p)}}catch(v){h.e(v)}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 a,n=Object(s.a)(e.formatFilterIds);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.formatFilterIds.push(o)}}catch(l){n.e(l)}finally{n.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 a,n=Object(s.a)(this.formatFilterIds);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.formatFilterIds.push(o)}}catch(l){n.e(l)}finally{n.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}(),po=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}(),vo=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(v){i.e(v)}finally{i.f()}}if(Array.isArray(e.searchCriteria)){this.searchCriteria=[];var a,n=Object(s.a)(e.searchCriteria);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.searchCriteria.push(o)}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;this.includeIds.push(p)}}catch(v){h.e(v)}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(v){i.e(v)}finally{i.f()}}if(Array.isArray(this.searchCriteria)){e.searchCriteria=[];var a,n=Object(s.a)(this.searchCriteria);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.searchCriteria.push(o)}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;e.includeIds.push(p)}}catch(v){h.e(v)}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 a,n=Object(s.a)(e.sessionUsers);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.sessionUsers.push(sh.fromJS(o))}}catch(u){n.e(u)}finally{n.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 a,n=Object(s.a)(this.sessionUsers);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.sessionUsers.push(o.toJSON())}}catch(u){n.e(u)}finally{n.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(v){i.e(v)}finally{i.f()}}if(Array.isArray(e.searchCriteria)){this.searchCriteria=[];var a,n=Object(s.a)(e.searchCriteria);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.searchCriteria.push(o)}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;this.includeIds.push(p)}}catch(v){h.e(v)}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(v){i.e(v)}finally{i.f()}}if(Array.isArray(this.searchCriteria)){e.searchCriteria=[];var a,n=Object(s.a)(this.searchCriteria);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.searchCriteria.push(o)}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;e.includeIds.push(p)}}catch(v){h.e(v)}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(a){i.e(a)}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(a){i.e(a)}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}(),To=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}(),Po=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(v){i.e(v)}finally{i.f()}}if(Array.isArray(e.searchCriteria)){this.searchCriteria=[];var a,n=Object(s.a)(e.searchCriteria);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.searchCriteria.push(o)}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;this.includeIds.push(p)}}catch(v){h.e(v)}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(v){i.e(v)}finally{i.f()}}if(Array.isArray(this.searchCriteria)){e.searchCriteria=[];var a,n=Object(s.a)(this.searchCriteria);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.searchCriteria.push(o)}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;e.includeIds.push(p)}}catch(v){h.e(v)}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(a){i.e(a)}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(a){i.e(a)}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"}(Qa||(Qa={})),function(e){e[e.CalendarBased=1]="CalendarBased",e[e.TimeToComplete=2]="TimeToComplete",e[e.NoneSpecified=3]="NoneSpecified"}(Za||(Za={}));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 a,n=Object(s.a)(e.learningPlanActivities);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.learningPlanActivities.push(Fo.fromJS(o))}}catch(l){n.e(l)}finally{n.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 a,n=Object(s.a)(this.learningPlanActivities);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.learningPlanActivities.push(o.toJSON())}}catch(l){n.e(l)}finally{n.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(a){i.e(a)}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(a){i.e(a)}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 a,n=Object(s.a)(e.learningPlanActivities);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.learningPlanActivities.push(Fo.fromJS(o))}}catch(l){n.e(l)}finally{n.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 a,n=Object(s.a)(this.learningPlanActivities);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.learningPlanActivities.push(o.toJSON())}}catch(l){n.e(l)}finally{n.f()}}return 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.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(a){i.e(a)}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(a){i.e(a)}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}(),qo=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(qo.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(su.fromJS(r))}}catch(v){i.e(v)}finally{i.f()}}if(Array.isArray(e.sessionLicenses)){this.sessionLicenses=[];var a,n=Object(s.a)(e.sessionLicenses);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.sessionLicenses.push(Pu.fromJS(o))}}catch(v){n.e(v)}finally{n.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(Fu.fromJS(d))}}catch(v){c.e(v)}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 p=u.value;this.sessionInstructors.push(p)}}catch(v){h.e(v)}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(v){i.e(v)}finally{i.f()}}if(Array.isArray(this.sessionLicenses)){e.sessionLicenses=[];var a,n=Object(s.a)(this.sessionLicenses);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.sessionLicenses.push(o.toJSON())}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;e.sessionInstructors.push(p)}}catch(v){h.e(v)}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?kh.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 a,n=Object(s.a)(e.settings);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.settings.push(vs.fromJS(o))}}catch(l){n.e(l)}finally{n.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 a,n=Object(s.a)(this.settings);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.settings.push(o.toJSON())}}catch(l){n.e(l)}finally{n.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(a){i.e(a)}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(a){i.e(a)}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}(),as=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?qi.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}(),ns=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(as.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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(v){i.e(v)}finally{i.f()}}if(Array.isArray(e.files)){this.files=[];var a,n=Object(s.a)(e.files);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.files.push(ss.fromJS(o))}}catch(v){n.e(v)}finally{n.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(as.fromJS(d))}}catch(v){c.e(v)}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 p=u.value;this.attendees.push(is.fromJS(p))}}catch(v){h.e(v)}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(v){i.e(v)}finally{i.f()}}if(Array.isArray(this.files)){e.files=[];var a,n=Object(s.a)(this.files);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.files.push(o.toJSON())}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;e.attendees.push(p.toJSON())}}catch(v){h.e(v)}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(a){i.e(a)}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(a){i.e(a)}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 a,n=Object(s.a)(e.attendees);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.attendees.push(is.fromJS(o))}}catch(l){n.e(l)}finally{n.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 a,n=Object(s.a)(this.attendees);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.attendees.push(o.toJSON())}}catch(l){n.e(l)}finally{n.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(a){i.e(a)}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(a){i.e(a)}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 a=i.value;this.children.push(e.fromJS(a))}}catch(n){r.e(n)}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(a){i.e(a)}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}(),ps=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(a){i.e(a)}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(a){i.e(a)}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}(),vs=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 a,n=Object(s.a)(e.learningPlanActivities);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.learningPlanActivities.push(gs.fromJS(o))}}catch(l){n.e(l)}finally{n.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 a,n=Object(s.a)(this.learningPlanActivities);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.learningPlanActivities.push(o.toJSON())}}catch(l){n.e(l)}finally{n.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(a){i.e(a)}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(a){i.e(a)}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 a,n=Object(s.a)(e.learningPlanActivities);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.learningPlanActivities.push(gs.fromJS(o))}}catch(l){n.e(l)}finally{n.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 a,n=Object(s.a)(this.learningPlanActivities);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.learningPlanActivities.push(o.toJSON())}}catch(l){n.e(l)}finally{n.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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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?Ts.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}(),Ts=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}(),Ps=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(Ps.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}finally{i.f()}}this.userAvatar=e.userAvatar?ap.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(a){i.e(a)}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}(),Ms=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(a){i.e(a)}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(a){i.e(a)}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}(),qs=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 a,n=Object(s.a)(e.learningPlanCompetencies);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.learningPlanCompetencies.push(Js.fromJS(o))}}catch(O){n.e(O)}finally{n.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 p=u.value;this.learningPlanCriteria.push(Us.fromJS(p))}}catch(O){h.e(O)}finally{h.f()}}if(Array.isArray(e.learningPlanParticipants)){this.learningPlanParticipants=[];var v,f=Object(s.a)(e.learningPlanParticipants);try{for(f.s();!(v=f.n()).done;){var m=v.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 a,n=Object(s.a)(this.learningPlanCompetencies);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.learningPlanCompetencies.push(o.toJSON())}}catch(O){n.e(O)}finally{n.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 p=u.value;e.learningPlanCriteria.push(p.toJSON())}}catch(O){h.e(O)}finally{h.f()}}if(Array.isArray(this.learningPlanParticipants)){e.learningPlanParticipants=[];var v,f=Object(s.a)(this.learningPlanParticipants);try{for(f.s();!(v=f.n()).done;){var m=v.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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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 a,n=Object(s.a)(e.learningPlanTags);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.learningPlanTags.push(dl.fromJS(o))}}catch(u){n.e(u)}finally{n.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 a,n=Object(s.a)(this.learningPlanTags);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.learningPlanTags.push(o.toJSON())}}catch(u){n.e(u)}finally{n.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 a,n=Object(s.a)(e.recipients);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.recipients.push(wa.fromJS(o))}}catch(l){n.e(l)}finally{n.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 a,n=Object(s.a)(this.recipients);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.recipients.push(o.toJSON())}}catch(l){n.e(l)}finally{n.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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}finally{i.f()}}this.status=e.status,this.userAvatar=e.userAvatar?ap.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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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,al=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 a,n=Object(s.a)(e.learningPlanTags);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.learningPlanTags.push(dl.fromJS(o))}}catch(S){n.e(S)}finally{n.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 p=u.value;this.learningPlanCourses.push(Fs.fromJS(p))}}catch(S){h.e(S)}finally{h.f()}}if(Array.isArray(e.learningPlanParticipants)){this.learningPlanParticipants=[];var v,f=Object(s.a)(e.learningPlanParticipants);try{for(f.s();!(v=f.n()).done;){var m=v.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 a,n=Object(s.a)(this.learningPlanTags);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.learningPlanTags.push(o.toJSON())}}catch(S){n.e(S)}finally{n.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 p=u.value;e.learningPlanCourses.push(p.toJSON())}}catch(S){h.e(S)}finally{h.f()}}if(Array.isArray(this.learningPlanParticipants)){e.learningPlanParticipants=[];var v,f=Object(s.a)(this.learningPlanParticipants);try{for(f.s();!(v=f.n()).done;){var m=v.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}(),nl=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?Cp.fromJS(e.userLearningPlan):void 0,this.learningPlanParticipantRequirementList=e.learningPlanParticipantRequirementList?il.fromJS(e.learningPlanParticipantRequirementList):void 0,this.user=e.user?mp.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 a,n=Object(s.a)(e.learningPlanCourses);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.learningPlanCourses.push(Fs.fromJS(o))}}catch(l){n.e(l)}finally{n.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 a,n=Object(s.a)(this.learningPlanCourses);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.learningPlanCourses.push(o.toJSON())}}catch(l){n.e(l)}finally{n.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(su.fromJS(r))}}catch(O){i.e(O)}finally{i.f()}}if(Array.isArray(e.sessionLicenses)){this.sessionLicenses=[];var a,n=Object(s.a)(e.sessionLicenses);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.sessionLicenses.push(Pu.fromJS(o))}}catch(O){n.e(O)}finally{n.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(Wu.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 p=u.value;this.sessionInstructors.push(Wu.fromJS(p))}}catch(O){h.e(O)}finally{h.f()}}if(Array.isArray(e.sessionWaitlist)){this.sessionWaitlist=[];var v,f=Object(s.a)(e.sessionWaitlist);try{for(f.s();!(v=f.n()).done;){var m=v.value;this.sessionWaitlist.push(vh.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(Fu.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(Bu.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 a,n=Object(s.a)(this.sessionLicenses);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.sessionLicenses.push(o.toJSON())}}catch(O){n.e(O)}finally{n.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 p=u.value;e.sessionInstructors.push(p.toJSON())}}catch(O){h.e(O)}finally{h.f()}}if(Array.isArray(this.sessionWaitlist)){e.sessionWaitlist=[];var v,f=Object(s.a)(this.sessionWaitlist);try{for(f.s();!(v=f.n()).done;){var m=v.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 a,n=Object(s.a)(e.learningPlanTags);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.learningPlanTags.push(dl.fromJS(o))}}catch(u){n.e(u)}finally{n.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 a,n=Object(s.a)(this.learningPlanTags);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.learningPlanTags.push(o.toJSON())}}catch(u){n.e(u)}finally{n.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(a){i.e(a)}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(a){i.e(a)}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 pl,vl=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(vl.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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 a,n=Object(s.a)(e.libraryFileDepartments);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.libraryFileDepartments.push(yl.fromJS(o))}}catch(O){n.e(O)}finally{n.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 p=u.value;this.libraryFileLocations.push(El.fromJS(p))}}catch(O){h.e(O)}finally{h.f()}}if(Array.isArray(e.libraryFilePositions)){this.libraryFilePositions=[];var v,f=Object(s.a)(e.libraryFilePositions);try{for(f.s();!(v=f.n()).done;){var m=v.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 a,n=Object(s.a)(this.libraryFileDepartments);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.libraryFileDepartments.push(o.toJSON())}}catch(O){n.e(O)}finally{n.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 p=u.value;e.libraryFileLocations.push(p.toJSON())}}catch(O){h.e(O)}finally{h.f()}}if(Array.isArray(this.libraryFilePositions)){e.libraryFilePositions=[];var v,f=Object(s.a)(this.libraryFilePositions);try{for(f.s();!(v=f.n()).done;){var m=v.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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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"}(pl||(pl={}));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?jh.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}(),Tl=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}(),Pl=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?sn.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 a,n=Object(s.a)(e.licenseCredits);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.licenseCredits.push(Pl.fromJS(o))}}catch(y){n.e(y)}finally{n.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 p=u.value;this.licenseProfileSettings.push(Bl.fromJS(p))}}catch(y){h.e(y)}finally{h.f()}}if(Array.isArray(e.rulesHistory)){this.rulesHistory=[];var v,f=Object(s.a)(e.rulesHistory);try{for(f.s();!(v=f.n()).done;){var m=v.value;this.rulesHistory.push(Bd.fromJS(m))}}catch(y){f.e(y)}finally{f.f()}}this.subLicense=e.subLicense?wh.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 a,n=Object(s.a)(this.licenseCredits);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.licenseCredits.push(o.toJSON())}}catch(y){n.e(y)}finally{n.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 p=u.value;e.licenseProfileSettings.push(p.toJSON())}}catch(y){h.e(y)}finally{h.f()}}if(Array.isArray(this.rulesHistory)){e.rulesHistory=[];var v,f=Object(s.a)(this.rulesHistory);try{for(f.s();!(v=f.n()).done;){var m=v.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(yh.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(Ml.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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.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 ql,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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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"}(ql||(ql={}));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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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?ch.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(Tu.fromJS(r))}}catch(u){i.e(u)}finally{i.f()}}if(Array.isArray(e.sessionLicenseProperties)){this.sessionLicenseProperties=[];var a,n=Object(s.a)(e.sessionLicenseProperties);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.sessionLicenseProperties.push(Nu.fromJS(o))}}catch(u){n.e(u)}finally{n.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(ph.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 a,n=Object(s.a)(this.sessionLicenseProperties);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.sessionLicenseProperties.push(o.toJSON())}}catch(u){n.e(u)}finally{n.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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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}(),ac=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}(),nc=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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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}(),pc=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}(),vc=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(pc.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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 a,n=Object(s.a)(e.compliancePeriodAdditionalRequirements);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.compliancePeriodAdditionalRequirements.push(ii.fromJS(o))}}catch(S){n.e(S)}finally{n.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 p=u.value;this.compliancePeriodRestrictions.push(fi.fromJS(p))}}catch(S){h.e(S)}finally{h.f()}}if(Array.isArray(e.compliancePeriodSubjectAreas)){this.compliancePeriodSubjectAreas=[];var v,f=Object(s.a)(e.compliancePeriodSubjectAreas);try{for(f.s();!(v=f.n()).done;){var m=v.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(vi.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 a,n=Object(s.a)(this.compliancePeriodAdditionalRequirements);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.compliancePeriodAdditionalRequirements.push(o.toJSON())}}catch(S){n.e(S)}finally{n.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 p=u.value;e.compliancePeriodRestrictions.push(p.toJSON())}}catch(S){h.e(S)}finally{h.f()}}if(Array.isArray(this.compliancePeriodSubjectAreas)){e.compliancePeriodSubjectAreas=[];var v,f=Object(s.a)(this.compliancePeriodSubjectAreas);try{for(f.s();!(v=f.n()).done;){var m=v.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 a,n=Object(s.a)(e.sessionLicenses);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.sessionLicenses.push(Pu.fromJS(o))}}catch(u){n.e(u)}finally{n.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(Fu.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 a,n=Object(s.a)(this.sessionLicenses);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.sessionLicenses.push(o.toJSON())}}catch(u){n.e(u)}finally{n.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(a){i.e(a)}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(a){i.e(a)}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 a,n=Object(s.a)(e.portalLevelFilterIds);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.portalLevelFilterIds.push(o)}}catch(ie){n.e(ie)}finally{n.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 p=u.value;this.portalPracticeAreaFilterIds.push(p)}}catch(ie){h.e(ie)}finally{h.f()}}if(Array.isArray(e.portalProviderFilterIds)){this.portalProviderFilterIds=[];var v,f=Object(s.a)(e.portalProviderFilterIds);try{for(f.s();!(v=f.n()).done;){var m=v.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 T=j.value;this.portalCourseFormatFilterIds.push(T)}}catch(ie){w.e(ie)}finally{w.f()}}if(Array.isArray(e.portalCalendarCourseFormatFilterIds)){this.portalCalendarCourseFormatFilterIds=[];var P,A=Object(s.a)(e.portalCalendarCourseFormatFilterIds);try{for(A.s();!(P=A.n()).done;){var N=P.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 M,q=Object(s.a)(e.portalCalendarPracticeAreaFilterIds);try{for(q.s();!(M=q.n()).done;){var z=M.value;this.portalCalendarPracticeAreaFilterIds.push(z)}}catch(ie){q.e(ie)}finally{q.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 a,n=Object(s.a)(this.portalLevelFilterIds);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.portalLevelFilterIds.push(o)}}catch(ie){n.e(ie)}finally{n.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 p=u.value;e.portalPracticeAreaFilterIds.push(p)}}catch(ie){h.e(ie)}finally{h.f()}}if(Array.isArray(this.portalProviderFilterIds)){e.portalProviderFilterIds=[];var v,f=Object(s.a)(this.portalProviderFilterIds);try{for(f.s();!(v=f.n()).done;){var m=v.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 T=j.value;e.portalCourseFormatFilterIds.push(T)}}catch(ie){w.e(ie)}finally{w.f()}}if(Array.isArray(this.portalCalendarCourseFormatFilterIds)){e.portalCalendarCourseFormatFilterIds=[];var P,A=Object(s.a)(this.portalCalendarCourseFormatFilterIds);try{for(A.s();!(P=A.n()).done;){var N=P.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 M,q=Object(s.a)(this.portalCalendarPracticeAreaFilterIds);try{for(q.s();!(M=q.n()).done;){var z=M.value;e.portalCalendarPracticeAreaFilterIds.push(z)}}catch(ie){q.e(ie)}finally{q.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(a){i.e(a)}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(a){i.e(a)}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?ap.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(fp.fromJS(r))}}catch(S){i.e(S)}finally{i.f()}}if(Array.isArray(e.userPosition)){this.userPosition=[];var a,n=Object(s.a)(e.userPosition);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.userPosition.push(Vp.fromJS(o))}}catch(S){n.e(S)}finally{n.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(Hp.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 p=u.value;this.userLicense.push(Lp.fromJS(p))}}catch(S){h.e(S)}finally{h.f()}}if(Array.isArray(e.sourceRelationShips)){this.sourceRelationShips=[];var v,f=Object(s.a)(e.sourceRelationShips);try{for(f.s();!(v=f.n()).done;){var m=v.value;this.sourceRelationShips.push($p.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($p.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 a,n=Object(s.a)(this.userPosition);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.userPosition.push(o.toJSON())}}catch(S){n.e(S)}finally{n.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 p=u.value;e.userLicense.push(p.toJSON())}}catch(S){h.e(S)}finally{h.f()}}if(Array.isArray(this.sourceRelationShips)){e.sourceRelationShips=[];var v,f=Object(s.a)(this.sourceRelationShips);try{for(f.s();!(v=f.n()).done;){var m=v.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(a){i.e(a)}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(a){i.e(a)}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(Jp.fromJS(r))}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(e.compliancePeriods)){this.compliancePeriods=[];var a,n=Object(s.a)(e.compliancePeriods);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.compliancePeriods.push(fc.fromJS(o))}}catch(l){n.e(l)}finally{n.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 a,n=Object(s.a)(this.compliancePeriods);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.compliancePeriods.push(o.toJSON())}}catch(l){n.e(l)}finally{n.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(Pu.fromJS(r))}}catch(y){i.e(y)}finally{i.f()}}if(Array.isArray(e.sessionMaterials)){this.sessionMaterials=[];var a,n=Object(s.a)(e.sessionMaterials);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.sessionMaterials.push(Fu.fromJS(o))}}catch(y){n.e(y)}finally{n.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 p=u.value;this.userLicensePropertyValues.push(Bp.fromJS(p))}}catch(y){h.e(y)}finally{h.f()}}if(this.evaluation=e.evaluation?bp.fromJS(e.evaluation):void 0,this.evaluationDisplayStatusId=e.evaluationDisplayStatusId,this.evaluationDisplayStatus=e.evaluationDisplayStatus,Array.isArray(e.certificates)){this.certificates=[];var v,f=Object(s.a)(e.certificates);try{for(f.s();!(v=f.n()).done;){var m=v.value;this.certificates.push(op.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 a,n=Object(s.a)(this.sessionMaterials);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.sessionMaterials.push(o.toJSON())}}catch(y){n.e(y)}finally{n.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 p=u.value;e.userLicensePropertyValues.push(p.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 v,f=Object(s.a)(this.certificates);try{for(f.s();!(v=f.n()).done;){var m=v.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}(),Tc=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 a,n=Object(s.a)(e.yearGrouping);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.yearGrouping.push(o)}}catch(l){n.e(l)}finally{n.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 a,n=Object(s.a)(this.yearGrouping);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.yearGrouping.push(o)}}catch(l){n.e(l)}finally{n.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}(),Pc=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(Pu.fromJS(r))}}catch(y){i.e(y)}finally{i.f()}}if(Array.isArray(e.sessionMaterials)){this.sessionMaterials=[];var a,n=Object(s.a)(e.sessionMaterials);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.sessionMaterials.push(Fu.fromJS(o))}}catch(y){n.e(y)}finally{n.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 p=u.value;this.userLicensePropertyValues.push(Bp.fromJS(p))}}catch(y){h.e(y)}finally{h.f()}}if(this.sessionParticipantStatusId=e.sessionParticipantStatusId,this.withRetro=e.withRetro,this.evaluation=e.evaluation?bp.fromJS(e.evaluation):void 0,this.evaluationDisplayStatusId=e.evaluationDisplayStatusId,this.evaluationDisplayStatus=e.evaluationDisplayStatus,Array.isArray(e.certificates)){this.certificates=[];var v,f=Object(s.a)(e.certificates);try{for(f.s();!(v=f.n()).done;){var m=v.value;this.certificates.push(op.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 a,n=Object(s.a)(this.sessionMaterials);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.sessionMaterials.push(o.toJSON())}}catch(y){n.e(y)}finally{n.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 p=u.value;e.userLicensePropertyValues.push(p.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 v,f=Object(s.a)(this.certificates);try{for(f.s();!(v=f.n()).done;){var m=v.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(Pc.fromJS(r))}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(e.yearGrouping)){this.yearGrouping=[];var a,n=Object(s.a)(e.yearGrouping);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.yearGrouping.push(o)}}catch(l){n.e(l)}finally{n.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 a,n=Object(s.a)(this.yearGrouping);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.yearGrouping.push(o)}}catch(l){n.e(l)}finally{n.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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(Jp.fromJS(r))}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(e.periodsList)){this.periodsList=[];var a,n=Object(s.a)(e.periodsList);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.periodsList.push(Bc.fromJS(o))}}catch(l){n.e(l)}finally{n.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 a,n=Object(s.a)(this.periodsList);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.periodsList.push(o.toJSON())}}catch(l){n.e(l)}finally{n.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(v){i.e(v)}finally{i.f()}}if(Array.isArray(e.sessionLicenses)){this.sessionLicenses=[];var a,n=Object(s.a)(e.sessionLicenses);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.sessionLicenses.push(Pu.fromJS(o))}}catch(v){n.e(v)}finally{n.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(Dp.fromJS(d))}}catch(v){c.e(v)}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 p=u.value;this.userLicensePropertyValues.push(Bp.fromJS(p))}}catch(v){h.e(v)}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(v){i.e(v)}finally{i.f()}}if(Array.isArray(this.sessionLicenses)){e.sessionLicenses=[];var a,n=Object(s.a)(this.sessionLicenses);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.sessionLicenses.push(o.toJSON())}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;e.userLicensePropertyValues.push(p.toJSON())}}catch(v){h.e(v)}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 a,n=Object(s.a)(e.compliancePeriodAdditionalRequirements);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.compliancePeriodAdditionalRequirements.push(ii.fromJS(o))}}catch(S){n.e(S)}finally{n.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 p=u.value;this.compliancePeriodRestrictions.push(fi.fromJS(p))}}catch(S){h.e(S)}finally{h.f()}}if(Array.isArray(e.compliancePeriodSubjectAreas)){this.compliancePeriodSubjectAreas=[];var v,f=Object(s.a)(e.compliancePeriodSubjectAreas);try{for(f.s();!(v=f.n()).done;){var m=v.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(vi.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 a,n=Object(s.a)(this.compliancePeriodAdditionalRequirements);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.compliancePeriodAdditionalRequirements.push(o.toJSON())}}catch(S){n.e(S)}finally{n.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 p=u.value;e.compliancePeriodRestrictions.push(p.toJSON())}}catch(S){h.e(S)}finally{h.f()}}if(Array.isArray(this.compliancePeriodSubjectAreas)){e.compliancePeriodSubjectAreas=[];var v,f=Object(s.a)(this.compliancePeriodSubjectAreas);try{for(f.s();!(v=f.n()).done;){var m=v.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(a){i.e(a)}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(a){i.e(a)}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,Mc=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}(),qc=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?Na.fromJS(e.template):void 0,this.frequency=e.frequency,this.time=e.time,this.timezoneId=e.timezoneId,this.timezone=e.timezone?kh.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(v){i.e(v)}finally{i.f()}}if(this.monthlyOption=e.monthlyOption,Array.isArray(e.monthlyDay)){this.monthlyDay=[];var a,n=Object(s.a)(e.monthlyDay);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.monthlyDay.push(o)}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;this.recipients.push(wa.fromJS(p))}}catch(v){h.e(v)}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(v){i.e(v)}finally{i.f()}}if(e.monthlyOption=this.monthlyOption,Array.isArray(this.monthlyDay)){e.monthlyDay=[];var a,n=Object(s.a)(this.monthlyDay);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.monthlyDay.push(o)}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;e.recipients.push(p.toJSON())}}catch(v){h.e(v)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(Dp.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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 a,n=Object(s.a)(e.creditRequirements);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.creditRequirements.push(Pl.fromJS(o))}}catch(l){n.e(l)}finally{n.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 a,n=Object(s.a)(this.creditRequirements);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.creditRequirements.push(o.toJSON())}}catch(l){n.e(l)}finally{n.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 a,n=Object(s.a)(e.totals);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.totals.push(Hc.fromJS(o))}}catch(l){n.e(l)}finally{n.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 a,n=Object(s.a)(this.totals);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.totals.push(o.toJSON())}}catch(l){n.e(l)}finally{n.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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(ad.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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}(),ad=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 a,n=Object(s.a)(e.responses);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.responses.push(nd.fromJS(o))}}catch(l){n.e(l)}finally{n.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 a,n=Object(s.a)(this.responses);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.responses.push(o.toJSON())}}catch(l){n.e(l)}finally{n.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.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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(vd.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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}(),pd=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(a){i.e(a)}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(a){i.e(a)}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}(),vd=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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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}(),Td=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 a,n=Object(s.a)(e.rolePermissionSets);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.rolePermissionSets.push(Nd.fromJS(o))}}catch(u){n.e(u)}finally{n.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(Pd.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 a,n=Object(s.a)(this.rolePermissionSets);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.rolePermissionSets.push(o.toJSON())}}catch(u){n.e(u)}finally{n.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}(),Pd=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(Td.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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(a){i.e(a)}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.courseId=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.sendSeparateCCCopy=void 0,this.includeMatchedSessionsOnly=void 0,this.body=void 0,t)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.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.sendSeparateCCCopy=e.sendSeparateCCCopy,this.includeMatchedSessionsOnly=e.includeMatchedSessionsOnly,this.body=e.body)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).courseId=this.courseId,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.sendSeparateCCCopy=this.sendSeparateCCCopy,e.includeMatchedSessionsOnly=this.includeMatchedSessionsOnly,e.body=this.body,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.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?Aa.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}(),Gd=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}(),Md=function(){function e(t){if(Object(l.a)(this,e),this.scheduleId=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.sendSeparateCCCopy=void 0,this.includeMatchedSessionsOnly=void 0,this.body=void 0,t)for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i])}return Object(c.a)(e,[{key:"init",value:function(e){e&&(this.scheduleId=e.scheduleId,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.sendSeparateCCCopy=e.sendSeparateCCCopy,this.includeMatchedSessionsOnly=e.includeMatchedSessionsOnly,this.body=e.body)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).scheduleId=this.scheduleId,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.sendSeparateCCCopy=this.sendSeparateCCCopy,e.includeMatchedSessionsOnly=this.includeMatchedSessionsOnly,e.body=this.body,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.sessionId=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.sendSeparateCCCopy=void 0,this.includeMatchedSessionsOnly=void 0,this.body=void 0,t)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.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.sendSeparateCCCopy=e.sendSeparateCCCopy,this.includeMatchedSessionsOnly=e.includeMatchedSessionsOnly,this.body=e.body)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sessionId=this.sessionId,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.sendSeparateCCCopy=this.sendSeparateCCCopy,e.includeMatchedSessionsOnly=this.includeMatchedSessionsOnly,e.body=this.body,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.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(vu.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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}(),Wd=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(a){i.e(a)}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(a){i.e(a)}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}(),Vd=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}(),_d=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 a,n=Object(s.a)(e.coursePracticeArea);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.coursePracticeArea.push(Yi.fromJS(o))}}catch(l){n.e(l)}finally{n.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 a,n=Object(s.a)(this.coursePracticeArea);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.coursePracticeArea.push(o.toJSON())}}catch(l){n.e(l)}finally{n.f()}}return 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.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}(),$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,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(Zd.fromJS(r))}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(e.securityGroupCriteria)){this.securityGroupCriteria=[];var a,n=Object(s.a)(e.securityGroupCriteria);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.securityGroupCriteria.push(Yd.fromJS(o))}}catch(l){n.e(l)}finally{n.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 a,n=Object(s.a)(this.securityGroupCriteria);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.securityGroupCriteria.push(o.toJSON())}}catch(l){n.e(l)}finally{n.f()}}return 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.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}(),Kd=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(Hd.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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.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(a){i.e(a)}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(a){i.e(a)}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}(),Zd=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}(),Xd=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(Zd.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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}(),eu=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?Nh.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}(),tu=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(nu.fromJS(r))}}catch(u){i.e(u)}finally{i.f()}}if(Array.isArray(e.userRoles)){this.userRoles=[];var a,n=Object(s.a)(e.userRoles);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.userRoles.push(au.fromJS(o))}}catch(u){n.e(u)}finally{n.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(eu.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 a,n=Object(s.a)(this.userRoles);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.userRoles.push(o.toJSON())}}catch(u){n.e(u)}finally{n.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}(),iu=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(nu.fromJS(r))}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(e.userRoles)){this.userRoles=[];var a,n=Object(s.a)(e.userRoles);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.userRoles.push(au.fromJS(o))}}catch(l){n.e(l)}finally{n.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 a,n=Object(s.a)(this.userRoles);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.userRoles.push(o.toJSON())}}catch(l){n.e(l)}finally{n.f()}}return 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.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(iu.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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}(),au=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}(),nu=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 ou,su=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}(),lu=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 a,n=Object(s.a)(e.sessionApprovers);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.sessionApprovers.push(su.fromJS(o))}}catch(S){n.e(S)}finally{n.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(Pu.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 p=u.value;this.sessionParticipant.push(zu.fromJS(p))}}catch(S){h.e(S)}finally{h.f()}}if(Array.isArray(e.sessionMaterials)){this.sessionMaterials=[];var v,f=Object(s.a)(e.sessionMaterials);try{for(f.s();!(v=f.n()).done;){var m=v.value;this.sessionMaterials.push(Fu.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(Bu.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 a,n=Object(s.a)(this.sessionApprovers);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.sessionApprovers.push(o.toJSON())}}catch(S){n.e(S)}finally{n.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 p=u.value;e.sessionParticipant.push(p.toJSON())}}catch(S){h.e(S)}finally{h.f()}}if(Array.isArray(this.sessionMaterials)){e.sessionMaterials=[];var v,f=Object(s.a)(this.sessionMaterials);try{for(f.s();!(v=f.n()).done;){var m=v.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}(),cu=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(su.fromJS(r))}}catch(S){i.e(S)}finally{i.f()}}if(Array.isArray(e.sessionLicenses)){this.sessionLicenses=[];var a,n=Object(s.a)(e.sessionLicenses);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.sessionLicenses.push(Pu.fromJS(o))}}catch(S){n.e(S)}finally{n.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(Wu.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 p=u.value;this.sessionMaterials.push(Fu.fromJS(p))}}catch(S){h.e(S)}finally{h.f()}}if(Array.isArray(e.sessionMediaFiles)){this.sessionMediaFiles=[];var v,f=Object(s.a)(e.sessionMediaFiles);try{for(f.s();!(v=f.n()).done;){var m=v.value;this.sessionMediaFiles.push(Bu.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(ph.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 a,n=Object(s.a)(this.sessionLicenses);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.sessionLicenses.push(o.toJSON())}}catch(S){n.e(S)}finally{n.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 p=u.value;e.sessionMaterials.push(p.toJSON())}}catch(S){h.e(S)}finally{h.f()}}if(Array.isArray(this.sessionMediaFiles)){e.sessionMediaFiles=[];var v,f=Object(s.a)(this.sessionMediaFiles);try{for(f.s();!(v=f.n()).done;){var m=v.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}(),du=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(pu.fromJS(r))}}catch(l){i.e(l)}finally{i.f()}}if(this.recurrence=e.recurrence?hu.fromJS(e.recurrence):void 0,Array.isArray(e.recipients)){this.recipients=[];var a,n=Object(s.a)(e.recipients);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.recipients.push(wa.fromJS(o))}}catch(l){n.e(l)}finally{n.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 a,n=Object(s.a)(this.recipients);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.recipients.push(o.toJSON())}}catch(l){n.e(l)}finally{n.f()}}return 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.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(du.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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}(),hu=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}(),pu=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}(),vu=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}(),fu=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?Va.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(a){i.e(a)}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(a){i.e(a)}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.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}(),yu=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}(),gu=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(bu.fromJS(r))}}catch(u){i.e(u)}finally{i.f()}}if(Array.isArray(e.sessionEvaluationAnswers)){this.sessionEvaluationAnswers=[];var a,n=Object(s.a)(e.sessionEvaluationAnswers);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.sessionEvaluationAnswers.push(vu.fromJS(o))}}catch(u){n.e(u)}finally{n.f()}}if(this.evaluation=e.evaluation?Va.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(hh.fromJS(d))}}catch(u){c.e(u)}finally{c.f()}}this.course=e.course?mu.fromJS(e.course):void 0,this.session=e.session?Eu.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 a,n=Object(s.a)(this.sessionEvaluationAnswers);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.sessionEvaluationAnswers.push(o.toJSON())}}catch(u){n.e(u)}finally{n.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}(),bu=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?Fa.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}(),Su=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(gu.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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}(),Eu=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?yu.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}(),Iu=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}(),Ou=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(Au.fromJS(r))}}catch(u){i.e(u)}finally{i.f()}}if(Array.isArray(e.sessionParticipants)){this.sessionParticipants=[];var a,n=Object(s.a)(e.sessionParticipants);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.sessionParticipants.push(Vu.fromJS(o))}}catch(u){n.e(u)}finally{n.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(Vu.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 a,n=Object(s.a)(this.sessionParticipants);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.sessionParticipants.push(o.toJSON())}}catch(u){n.e(u)}finally{n.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}(),Cu=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(xu.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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}(),xu=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?Fa.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}(),ju=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(Cu.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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}(),wu=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}(),Tu=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}(),Pu=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(Tu.fromJS(r))}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(e.sessionLicenseProperties)){this.sessionLicenseProperties=[];var a,n=Object(s.a)(e.sessionLicenseProperties);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.sessionLicenseProperties.push(Nu.fromJS(o))}}catch(l){n.e(l)}finally{n.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 a,n=Object(s.a)(this.sessionLicenseProperties);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.sessionLicenseProperties.push(o.toJSON())}}catch(l){n.e(l)}finally{n.f()}}return 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.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(Tu.fromJS(r))}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(e.sessionLicenseProperties)){this.sessionLicenseProperties=[];var a,n=Object(s.a)(e.sessionLicenseProperties);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.sessionLicenseProperties.push(Nu.fromJS(o))}}catch(l){n.e(l)}finally{n.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 a,n=Object(s.a)(this.sessionLicenseProperties);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.sessionLicenseProperties.push(o.toJSON())}}catch(l){n.e(l)}finally{n.f()}}return 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.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}(),ku=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}(),Du=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}(),Lu=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(cu.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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}(),Ju=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}(),Fu=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}(),Bu=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.verificationDisplayDuration=void 0,this.verificationCodeEnabled=void 0,this.viewingVerificationEnabled=void 0,this.viewingVerificationDisplayLimit=void 0,this.viewingVerificationDisplayDuration=void 0,this.allowedToBeViewed=void 0,this.libraryFile=void 0,this.sessionMediaFileVerificationCodes=void 0,t)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.sessionMediaFileId=e.sessionMediaFileId,this.sessionId=e.sessionId,this.fileId=e.fileId,this.isRequired=e.isRequired,this.displayOrder=e.displayOrder,this.verificationDisplayDuration=e.verificationDisplayDuration,this.verificationCodeEnabled=e.verificationCodeEnabled,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,Array.isArray(e.sessionMediaFileVerificationCodes))){this.sessionMediaFileVerificationCodes=[];var t,i=Object(s.a)(e.sessionMediaFileVerificationCodes);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.sessionMediaFileVerificationCodes.push(Uu.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}}},{key:"toJSON",value:function(e){if((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.verificationDisplayDuration=this.verificationDisplayDuration,e.verificationCodeEnabled=this.verificationCodeEnabled,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,Array.isArray(this.sessionMediaFileVerificationCodes)){e.sessionMediaFileVerificationCodes=[];var t,i=Object(s.a)(this.sessionMediaFileVerificationCodes);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.sessionMediaFileVerificationCodes.push(r.toJSON())}}catch(a){i.e(a)}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}(),Ru=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(Bu.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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.sessionMediaFileVerificationCodeId=void 0,this.sessionMediaFileId=void 0,this.sequence=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.sessionMediaFileVerificationCodeId=e.sessionMediaFileVerificationCodeId,this.sessionMediaFileId=e.sessionMediaFileId,this.sequence=e.sequence,this.verificationCode=e.verificationCode)}},{key:"toJSON",value:function(e){return(e="object"===typeof e?e:{}).sessionMediaFileVerificationCodeId=this.sessionMediaFileVerificationCodeId,e.sessionMediaFileId=this.sessionMediaFileId,e.sequence=this.sequence,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}(),Gu=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(Dp.fromJS(r))}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(e.userLicensePropertyValues)){this.userLicensePropertyValues=[];var a,n=Object(s.a)(e.userLicensePropertyValues);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.userLicensePropertyValues.push(Bp.fromJS(o))}}catch(l){n.e(l)}finally{n.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 a,n=Object(s.a)(this.userLicensePropertyValues);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.userLicensePropertyValues.push(o.toJSON())}}catch(l){n.e(l)}finally{n.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.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}(),qu=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(Mu.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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}(),zu=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}(),Wu=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(Pp.fromJS(r))}}catch(S){i.e(S)}finally{i.f()}}if(Array.isArray(e.userLicenseCreditValues)){this.userLicenseCreditValues=[];var a,n=Object(s.a)(e.userLicenseCreditValues);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.userLicenseCreditValues.push(Dp.fromJS(o))}}catch(S){n.e(S)}finally{n.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(Bp.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 p=u.value;this.departments.push(fp.fromJS(p))}}catch(S){h.e(S)}finally{h.f()}}if(Array.isArray(e.positions)){this.positions=[];var v,f=Object(s.a)(e.positions);try{for(f.s();!(v=f.n()).done;){var m=v.value;this.positions.push(Vp.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(_p.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 a,n=Object(s.a)(this.userLicenseCreditValues);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.userLicenseCreditValues.push(o.toJSON())}}catch(S){n.e(S)}finally{n.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 p=u.value;e.departments.push(p.toJSON())}}catch(S){h.e(S)}finally{h.f()}}if(Array.isArray(this.positions)){e.positions=[];var v,f=Object(s.a)(this.positions);try{for(f.s();!(v=f.n()).done;){var m=v.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}(),Vu=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($u.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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}(),_u=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}(),Yu=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}(),$u=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}(),Hu=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}(),Ku=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(Wu.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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}(),Qu=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(Zu.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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}(),Zu=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}(),Xu=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(a){i.e(a)}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(a){i.e(a)}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}(),eh=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"}(ou||(ou={}));var th,ih=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}(),rh=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}(),ah=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?Xu.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(_u.fromJS(r))}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(e.userLicensePropertyValues)){this.userLicensePropertyValues=[];var a,n=Object(s.a)(e.userLicensePropertyValues);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.userLicensePropertyValues.push(Hu.fromJS(o))}}catch(l){n.e(l)}finally{n.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 a,n=Object(s.a)(this.userLicensePropertyValues);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.userLicensePropertyValues.push(o.toJSON())}}catch(l){n.e(l)}finally{n.f()}}return 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.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(a){i.e(a)}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(a){i.e(a)}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}(),oh=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(a){i.e(a)}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(a){i.e(a)}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}(),sh=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}(),lh=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(Ch.fromJS(r))}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(e.subjectAreaRegulatoryProperties)){this.subjectAreaRegulatoryProperties=[];var a,n=Object(s.a)(e.subjectAreaRegulatoryProperties);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.subjectAreaRegulatoryProperties.push(xh.fromJS(o))}}catch(l){n.e(l)}finally{n.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 a,n=Object(s.a)(this.subjectAreaRegulatoryProperties);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.subjectAreaRegulatoryProperties.push(o.toJSON())}}catch(l){n.e(l)}finally{n.f()}}return 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.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?Ju.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(ku.fromJS(r))}}catch(v){i.e(v)}finally{i.f()}}if(Array.isArray(e.sessionInstructors)){this.sessionInstructors=[];var a,n=Object(s.a)(e.sessionInstructors);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.sessionInstructors.push(ah.fromJS(o))}}catch(v){n.e(v)}finally{n.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(ah.fromJS(d))}}catch(v){c.e(v)}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 p=u.value;this.sessionLicenses.push(Pu.fromJS(p))}}catch(v){h.e(v)}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(v){i.e(v)}finally{i.f()}}if(Array.isArray(this.sessionInstructors)){e.sessionInstructors=[];var a,n=Object(s.a)(this.sessionInstructors);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.sessionInstructors.push(o.toJSON())}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;e.sessionLicenses.push(p.toJSON())}}catch(v){h.e(v)}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}(),dh=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?ch.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"}(th||(th={}));var uh,hh=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}(),ph=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}(),vh=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}(),fh=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(vh.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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}(),mh=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}(),yh=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}(),gh=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}(),bh=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(gh.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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}(),Sh=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}(),Eh=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?Aa.fromJS(e.template):void 0,this.frequency=e.frequency,this.time=e.time,this.timezoneId=e.timezoneId,this.timezone=e.timezone?kh.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(v){i.e(v)}finally{i.f()}}if(this.monthlyOption=e.monthlyOption,Array.isArray(e.monthlyDay)){this.monthlyDay=[];var a,n=Object(s.a)(e.monthlyDay);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.monthlyDay.push(o)}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;this.recipients.push(wa.fromJS(p))}}catch(v){h.e(v)}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(v){i.e(v)}finally{i.f()}}if(e.monthlyOption=this.monthlyOption,Array.isArray(this.monthlyDay)){e.monthlyDay=[];var a,n=Object(s.a)(this.monthlyDay);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.monthlyDay.push(o)}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;e.recipients.push(p.toJSON())}}catch(v){h.e(v)}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}(),Ih=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}(),Oh=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}(),Ch=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}(),xh=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}(),jh=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}(),wh=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(Pl.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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"}(uh||(uh={}));var Th,Ph=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}(),Ah=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(Ph.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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}(),Nh=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}(),kh=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}(),Dh=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(kh.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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.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}(),Jh=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"}(Th||(Th={}));var Fh,Bh=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(Rh.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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}(),Rh=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}(),Uh=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}(),Gh=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}(),Mh=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}(),qh=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(a){i.e(a)}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(a){i.e(a)}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}(),zh=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}(),Wh=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(aa.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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}(),Vh=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(a){i.e(a)}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(a){i.e(a)}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}(),_h=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 a,n=Object(s.a)(e.learningPlanParticipants);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.learningPlanParticipants.push(Yh.fromJS(o))}}catch(u){n.e(u)}finally{n.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 a,n=Object(s.a)(this.learningPlanParticipants);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.learningPlanParticipants.push(o.toJSON())}}catch(u){n.e(u)}finally{n.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}(),Yh=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}(),$h=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}(),Hh=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 a,n=Object(s.a)(e.userLicenseCreditValues);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.userLicenseCreditValues.push(ih.fromJS(o))}}catch(u){n.e(u)}finally{n.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(rh.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 a,n=Object(s.a)(this.userLicenseCreditValues);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.userLicenseCreditValues.push(o.toJSON())}}catch(u){n.e(u)}finally{n.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}(),Kh=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(a){i.e(a)}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(a){i.e(a)}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}(),Qh=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.verificationCodeMissed=void 0,this.verificationCodeValidated=void 0,this.verificationCode=void 0,this.isVerificationCodeValidated=void 0,t)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.verificationCodeMissed=e.verificationCodeMissed,this.verificationCodeValidated=e.verificationCodeValidated,this.verificationCode=e.verificationCode,this.isVerificationCodeValidated=e.isVerificationCodeValidated)}},{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.verificationCodeMissed=this.verificationCodeMissed,e.verificationCodeValidated=this.verificationCodeValidated,e.verificationCode=this.verificationCode,e.isVerificationCodeValidated=this.isVerificationCodeValidated,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.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}(),Xh=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}(),ep=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}(),tp=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(ep.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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}(),ip=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}(),rp=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(a){i.e(a)}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(a){i.e(a)}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}(),ap=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}(),np=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}(),op=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}(),sp=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}(),lp=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(up.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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}(),cp=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}(),dp=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}(),up=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(a){i.e(a)}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(a){i.e(a)}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}(),hp=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(up.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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}(),pp=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}(),vp=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(pp.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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}(),fp=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}(),mp=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?bn.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?ap.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(sp.fromJS(r))}}catch(k){i.e(k)}finally{i.f()}}if(Array.isArray(e.userDepartment)){this.userDepartment=[];var a,n=Object(s.a)(e.userDepartment);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.userDepartment.push(fp.fromJS(o))}}catch(k){n.e(k)}finally{n.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(gp.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 p=u.value;this.userLevel.push(Tp.fromJS(p))}}catch(k){h.e(k)}finally{h.f()}}if(Array.isArray(e.userPracticeArea)){this.userPracticeArea=[];var v,f=Object(s.a)(e.userPracticeArea);try{for(f.s();!(v=f.n()).done;){var m=v.value;this.userPracticeArea.push(_p.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(Vp.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(Lp.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(Hp.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 T=j.value;this.securityUserSecurityGroup.push(nu.fromJS(T))}}catch(k){w.e(k)}finally{w.f()}}if(Array.isArray(e.userRelationship)){this.userRelationship=[];var P,A=Object(s.a)(e.userRelationship);try{for(A.s();!(P=A.n()).done;){var N=P.value;this.userRelationship.push($p.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 a,n=Object(s.a)(this.userDepartment);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.userDepartment.push(o.toJSON())}}catch(k){n.e(k)}finally{n.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 p=u.value;e.userLevel.push(p.toJSON())}}catch(k){h.e(k)}finally{h.f()}}if(Array.isArray(this.userPracticeArea)){e.userPracticeArea=[];var v,f=Object(s.a)(this.userPracticeArea);try{for(f.s();!(v=f.n()).done;){var m=v.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 T=j.value;e.securityUserSecurityGroup.push(T.toJSON())}}catch(k){w.e(k)}finally{w.f()}}if(Array.isArray(this.userRelationship)){e.userRelationship=[];var P,A=Object(s.a)(this.userRelationship);try{for(A.s();!(P=A.n()).done;){var N=P.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}(),yp=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?ap.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(sp.fromJS(r))}}catch(S){i.e(S)}finally{i.f()}}if(Array.isArray(e.userDepartment)){this.userDepartment=[];var a,n=Object(s.a)(e.userDepartment);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.userDepartment.push(fp.fromJS(o))}}catch(S){n.e(S)}finally{n.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(gp.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 p=u.value;this.userLevel.push(Tp.fromJS(p))}}catch(S){h.e(S)}finally{h.f()}}if(Array.isArray(e.userPracticeArea)){this.userPracticeArea=[];var v,f=Object(s.a)(e.userPracticeArea);try{for(f.s();!(v=f.n()).done;){var m=v.value;this.userPracticeArea.push(_p.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(Vp.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 a,n=Object(s.a)(this.userDepartment);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.userDepartment.push(o.toJSON())}}catch(S){n.e(S)}finally{n.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 p=u.value;e.userLevel.push(p.toJSON())}}catch(S){h.e(S)}finally{h.f()}}if(Array.isArray(this.userPracticeArea)){e.userPracticeArea=[];var v,f=Object(s.a)(this.userPracticeArea);try{for(f.s();!(v=f.n()).done;){var m=v.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}(),gp=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}(),bp=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}(),Sp=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"}(Fh||(Fh={}));var Ep,Ip=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}(),Op=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}(),Cp=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 a,n=Object(s.a)(e.learningPlanTags);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.learningPlanTags.push(dl.fromJS(o))}}catch(y){n.e(y)}finally{n.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(Op.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 p=u.value;this.learningPlanActivities.push(Ip.fromJS(p))}}catch(y){h.e(y)}finally{h.f()}}if(Array.isArray(e.learningPlanMaterials)){this.learningPlanMaterials=[];var v,f=Object(s.a)(e.learningPlanMaterials);try{for(f.s();!(v=f.n()).done;){var m=v.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 a,n=Object(s.a)(this.learningPlanTags);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.learningPlanTags.push(o.toJSON())}}catch(y){n.e(y)}finally{n.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 p=u.value;e.learningPlanActivities.push(p.toJSON())}}catch(y){h.e(y)}finally{h.f()}}if(Array.isArray(this.learningPlanMaterials)){e.learningPlanMaterials=[];var v,f=Object(s.a)(this.learningPlanMaterials);try{for(f.s();!(v=f.n()).done;){var m=v.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}(),xp=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(Cp.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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}(),jp=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 a,n=Object(s.a)(e.learningPlanActivities);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.learningPlanActivities.push(tl.fromJS(o))}}catch(l){n.e(l)}finally{n.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 a,n=Object(s.a)(this.learningPlanActivities);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.learningPlanActivities.push(o.toJSON())}}catch(l){n.e(l)}finally{n.f()}}return e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),wp=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(jp.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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}(),Tp=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}(),Pp=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}(),Ap=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(Jp.fromJS(r))}}catch(l){i.e(l)}finally{i.f()}}if(Array.isArray(e.compliancePeriods)){this.compliancePeriods=[];var a,n=Object(s.a)(e.compliancePeriods);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.compliancePeriods.push(ui.fromJS(o))}}catch(l){n.e(l)}finally{n.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 a,n=Object(s.a)(this.compliancePeriods);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.compliancePeriods.push(o.toJSON())}}catch(l){n.e(l)}finally{n.f()}}return 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.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(kp.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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}(),kp=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?rv.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}(),Dp=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}(),Lp=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,this.isNewLicense=void 0,t)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.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(Fp.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}this.isNewLicense=e.isNewLicense}}},{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(a){i.e(a)}finally{i.f()}}return e.isNewLicense=this.isNewLicense,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Jp=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}(),Fp=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}(),Bp=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}(),Rp=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}(),Up=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}(),Gp=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}(),Mp=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(mp.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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}(),qp=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}(),zp=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,this.verificationCodeMissed=void 0,t)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,this.verificationCodeMissed=e.verificationCodeMissed)}},{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.verificationCodeMissed=this.verificationCodeMissed,e}}],[{key:"fromJS",value:function(t){t="object"===typeof t?t:{};var i=new e;return i.init(t),i}}]),e}(),Wp=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}(),Vp=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}(),_p=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}(),Yp=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}(),$p=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}(),Hp=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}(),Kp=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}(),Qp=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(Kp.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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}(),Zp=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}(),Xp=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(Pu.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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.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(sv.fromJS(r))}}catch(a){i.e(a)}finally{i.f()}}this.session=e.session?Xp.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(a){i.e(a)}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}(),tv=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(ev.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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.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}(),rv=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}(),av=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(Lp.fromJS(r))}}catch(v){i.e(v)}finally{i.f()}}if(Array.isArray(e.userLicenseCreditValues)){this.userLicenseCreditValues=[];var a,n=Object(s.a)(e.userLicenseCreditValues);try{for(n.s();!(a=n.n()).done;){var o=a.value;this.userLicenseCreditValues.push(Dp.fromJS(o))}}catch(v){n.e(v)}finally{n.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(Bp.fromJS(d))}}catch(v){c.e(v)}finally{c.f()}}if(this.session=e.session?Xp.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 p=u.value;this.certificates.push(op.fromJS(p))}}catch(v){h.e(v)}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?ip.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(v){i.e(v)}finally{i.f()}}if(Array.isArray(this.userLicenseCreditValues)){e.userLicenseCreditValues=[];var a,n=Object(s.a)(this.userLicenseCreditValues);try{for(n.s();!(a=n.n()).done;){var o=a.value;e.userLicenseCreditValues.push(o.toJSON())}}catch(v){n.e(v)}finally{n.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(v){c.e(v)}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 p=u.value;e.certificates.push(p.toJSON())}}catch(v){h.e(v)}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}(),nv=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(av.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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}(),ov=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?Tc.fromJS(e.transcript):void 0,this.user=e.user?mp.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}(),sv=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}(),lv=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"}(Ep||(Ep={}));var cv=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(lv.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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}(),dv=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}(),uv=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}(),hv=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}(),pv=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(hv.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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}(),vv=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(Gp.fromJS(r))}}catch(a){i.e(a)}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(a){i.e(a)}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}(),fv=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}(),mv=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}(),yv=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(a){i.e(a)}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(a){i.e(a)}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}(),gv=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?Sv.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}(),bv=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}(),Sv=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}(),Ev=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}(),Iv=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(a){i.e(a)}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(a){i.e(a)}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}(),Ov=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(a){i.e(a)}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(a){i.e(a)}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}(),Cv=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(a){i.e(a)}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(a){i.e(a)}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}(),xv=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}(),jv=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}(),wv=function(e){Object(a.a)(i,e);var t=Object(n.a)(i);function i(e,r,a,n,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=a,s.headers=n,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 Tv(e,t,i,r,a){throw null!==a&&void 0!==a?a:new wv(e,t,i,r,null)}function Pv(e){return e&&!0===e.isAxiosError}},76:function(e,t,i){"use strict";i(508);var r=i(174);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 a=i(200);i.d(t,"l",(function(){return a.c}));i(62)},85:function(e,t,i){"use strict";i.d(t,"b",(function(){return r})),i.d(t,"c",(function(){return a})),i.d(t,"d",(function(){return n})),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 p}));var r="SET_FILTERS",a="SET_SAVED_FILTERS",n="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",p="SET_COURSE_FAVORITE"}},[[1058,1,2]]]);