[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@3.139.70.243: ~ $
"use strict";(self["webpackChunktutor"]=self["webpackChunktutor"]||[]).push([[979],{932:(t,e,r)=>{r.d(e,{Z:()=>J});var n=r(917);var i=r(8003);var o=r.n(i);var a=r(9546);var u=r(7363);var c=r.n(u);var s=r(7536);var l=r(74);var d=r(5033);var f=r(5519);var m=r(7941);var p=r(9768);var _=r(8777);var v=r(8898);var g=r(9447);var h=r(8305);var y=r(6413);var b=r(1537);var w=r(5460);var O=r(2377);var E=r(6264);var Z=r(4900);var x=r(6873);var j=r(5589);var S=r(7034);var D=r(125);var A=r(7151);var L=r(9169);function P(t){"@babel/helpers - typeof";return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},P(t)}function T(){T=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){t[n]=r[n]}}}return t};return T.apply(this,arguments)}function q(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */q=function e(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function t(e,r,n){return e[r]=n}}function s(t,e,r,i){var o=e&&e.prototype instanceof f?e:f,a=Object.create(o.prototype),u=new x(i||[]);return n(a,"_invoke",{value:w(t,r,u)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var d={};function f(){}function m(){}function p(){}var _={};c(_,o,(function(){return this}));var v=Object.getPrototypeOf,g=v&&v(v(j([])));g&&g!==e&&r.call(g,o)&&(_=g);var h=p.prototype=f.prototype=Object.create(_);function y(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function i(n,o,a,u){var c=l(t[n],t,o);if("throw"!==c.type){var s=c.arg,d=s.value;return d&&"object"==P(d)&&r.call(d,"__await")?e.resolve(d.__await).then((function(t){i("next",t,a,u)}),(function(t){i("throw",t,a,u)})):e.resolve(d).then((function(t){s.value=t,a(s)}),(function(t){return i("throw",t,a,u)}))}u(c.arg)}var o;n(this,"_invoke",{value:function t(r,n){function a(){return new e((function(t,e){i(r,n,t,e)}))}return o=o?o.then(a,a):a()}})}function w(t,e,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(t,e){var r=e.method,n=t.iterator[r];if(undefined===n)return e.delegate=null,"throw"===r&&t.iterator["return"]&&(e.method="return",e.arg=undefined,O(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var i=l(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,d;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=undefined),e.delegate=null,d):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function Z(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function j(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=undefined,e.done=!0,e};return i.next=i}}return{next:S}}function S(){return{value:undefined,done:!0}}return m.prototype=p,n(h,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:m,configurable:!0}),m.displayName=c(p,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,u,"GeneratorFunction")),t.prototype=Object.create(h),t},t.awrap=function(t){return{__await:t}},y(b.prototype),c(b.prototype,a,(function(){return this})),t.AsyncIterator=b,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new b(s(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},y(h),c(h,u,"Generator"),c(h,o,(function(){return this})),c(h,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=j,x.prototype={constructor:x,reset:function t(e){if(this.prev=0,this.next=0,this.sent=this._sent=undefined,this.done=!1,this.delegate=null,this.method="next",this.arg=undefined,this.tryEntries.forEach(Z),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=undefined)},stop:function t(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function t(e){if(this.done)throw e;var n=this;function i(t,r){return u.type="throw",u.arg=e,n.next=t,r&&(n.method="next",n.arg=undefined),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],u=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function t(e,n){for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=n&&n<=a.finallyLoc&&(a=null);var u=a?a.completion:{};return u.type=e,u.arg=n,a?(this.method="next",this.next=a.finallyLoc,d):this.complete(u)},complete:function t(e,r){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&r&&(this.next=r),d},finish:function t(e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),Z(n),d}},catch:function t(e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var o=i.arg;Z(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function t(e,r,n){return this.delegate={iterator:j(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=undefined),d}},t}function N(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function k(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?N(Object(r),!0).forEach((function(e){F(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):N(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function F(t,e,r){e=M(e);if(e in t){Object.defineProperty(t,e,{value:r,enumerable:true,configurable:true,writable:true})}else{t[e]=r}return t}function M(t){var e=z(t,"string");return P(e)==="symbol"?e:String(e)}function z(t,e){if(P(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==undefined){var n=r.call(t,e||"default");if(P(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function I(t,e,r,n,i,o,a){try{var u=t[o](a);var c=u.value}catch(t){r(t);return}if(u.done){e(c)}else{Promise.resolve(c).then(n,i)}}function W(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){I(o,n,i,a,u,"next",t)}function u(t){I(o,n,i,a,u,"throw",t)}a(undefined)}))}}var Q=(0,S.zs)();var C=function t(e){var r,o,c;var b=e.onCancel,w=e.data,S=e.topicId,D=e.meetingId;var P=(0,E.a)({defaultValue:true}),N=P.ref,F=P.isScrolling;var M=(0,j.i0)(D?D:"",S?S:"");var z=w!==null&&w!==void 0?w:M.data;var I=(0,O.O)({defaultValues:{meeting_name:(r=z===null||z===void 0?void 0:z.post_title)!==null&&r!==void 0?r:"",meeting_summary:(o=z===null||z===void 0?void 0:z.post_content)!==null&&o!==void 0?o:"",meeting_start_date:z!==null&&z!==void 0&&z.meeting_data.start_datetime?(0,a["default"])(new Date(z.meeting_data.start_datetime),y.E_.yearMonthDay):"",meeting_start_time:z!==null&&z!==void 0&&z.meeting_data.start_datetime?(0,a["default"])(new Date(z.meeting_data.start_datetime),y.E_.hoursMinutes):"",meeting_end_date:z!==null&&z!==void 0&&z.meeting_data.end_datetime?(0,a["default"])(new Date(z.meeting_data.end_datetime),y.E_.yearMonthDay):"",meeting_end_time:z!==null&&z!==void 0&&z.meeting_data.end_datetime?(0,a["default"])(new Date(z.meeting_data.end_datetime),y.E_.hoursMinutes):"",meeting_timezone:(c=z===null||z===void 0?void 0:z.meeting_data.timezone)!==null&&c!==void 0?c:"",meeting_enrolledAsAttendee:(z===null||z===void 0?void 0:z.meeting_data.attendees)==="Yes"},shouldFocusError:true,mode:"onChange"});var C=(0,x.pH)();var J=h.y.timezones;var K=Object.keys(J).map((function(t){return{label:J[t],value:t}}));var R=function(){var t=W(q().mark((function t(e){var r;return q().wrap((function t(n){while(1)switch(n.prev=n.next){case 0:if(Q){n.next=2;break}return n.abrupt("return");case 2:n.next=4;return C.mutateAsync(k(k(k({},z&&{"post-id":Number(z.ID),"event-id":z.meeting_data.id}),S&&{topic_id:S}),{},{course_id:Q,meeting_title:e.meeting_name,meeting_summary:e.meeting_summary,meeting_start_date:e.meeting_start_date,meeting_start_time:e.meeting_start_time,meeting_end_date:e.meeting_end_date,meeting_end_time:e.meeting_end_time,meeting_attendees_enroll_students:e.meeting_enrolledAsAttendee?"Yes":"No",meeting_timezone:e.meeting_timezone,attendees:e.meeting_enrolledAsAttendee?"Yes":"No"}));case 4:r=n.sent;if(r.status_code===200||r.status_code===201){b();I.reset()}case 6:case"end":return n.stop()}}),t)})));return function e(r){return t.apply(this,arguments)}}();(0,u.useEffect)((function(){if((0,A.$K)(z)){I.reset({meeting_name:z.post_title,meeting_summary:z.post_content,meeting_start_date:z.meeting_data.start_datetime?(0,a["default"])(new Date(z.meeting_data.start_datetime),y.E_.yearMonthDay):"",meeting_start_time:z.meeting_data.start_datetime?(0,a["default"])(new Date(z.meeting_data.start_datetime),y.E_.hoursMinutes):"",meeting_end_date:z.meeting_data.end_datetime?(0,a["default"])(new Date(z.meeting_data.end_datetime),y.E_.yearMonthDay):"",meeting_end_time:z.meeting_data.end_datetime?(0,a["default"])(new Date(z.meeting_data.end_datetime),y.E_.hoursMinutes):"",meeting_timezone:z.meeting_data.timezone,meeting_enrolledAsAttendee:z.meeting_data.attendees==="Yes"})}var t=setTimeout((function(){I.setFocus("meeting_name")}),250);return function(){clearTimeout(t)}}),[z]);return(0,n.tZ)("div",{css:G.container},(0,n.tZ)("div",{css:G.formWrapper,ref:N},(0,n.tZ)(Z.Z,{when:!M.isLoading,fallback:(0,n.tZ)(d.fz,null)},(0,n.tZ)(s.Qr,{name:"meeting_name",control:I.control,rules:{required:(0,i.__)("Name is required","tutor")},render:function t(e){return(0,n.tZ)(p.Z,T({},e,{label:(0,i.__)("Meeting Name","tutor"),placeholder:(0,i.__)("Enter meeting name","tutor"),selectOnFocus:true}))}}),(0,n.tZ)(s.Qr,{name:"meeting_summary",control:I.control,rules:{required:(0,i.__)("Summary is required","tutor")},render:function t(e){return(0,n.tZ)(v.Z,T({},e,{label:(0,i.__)("Meeting Summary","tutor"),placeholder:(0,i.__)("Enter meeting summary","tutor"),rows:3,enableResize:true}))}}),(0,n.tZ)("div",{css:G.meetingDateTimeWrapper},(0,n.tZ)("div",{css:G.dateLabel},(0,i.__)("Meeting Start Date","tutor")),(0,n.tZ)("div",{css:G.meetingDateTime},(0,n.tZ)(s.Qr,{name:"meeting_start_date",control:I.control,rules:{required:(0,i.__)("Start date is required","tutor"),validate:L.Ek},render:function t(e){return(0,n.tZ)(m.Z,T({},e,{placeholder:(0,i.__)("Start date","tutor"),disabledBefore:(new Date).toISOString()}))}}),(0,n.tZ)(s.Qr,{name:"meeting_start_time",control:I.control,rules:{required:(0,i.__)("Start time is required","tutor"),validate:L.xB},render:function t(e){return(0,n.tZ)(g.Z,T({},e,{placeholder:(0,i.__)("Start time","tutor")}))}}))),(0,n.tZ)("div",{css:G.meetingDateTimeWrapper},(0,n.tZ)("div",{css:G.dateLabel},(0,i.__)("Meeting End Date","tutor")),(0,n.tZ)("div",{css:G.meetingDateTime},(0,n.tZ)(s.Qr,{name:"meeting_end_date",control:I.control,rules:{required:(0,i.__)("End date is required","tutor"),validate:{invalidDate:L.Ek,checkEndDate:function t(e){var r=I.watch("meeting_start_date");var n=e;if(r&&n){return new Date(r)>new Date(n)?(0,i.__)("End date should be greater than start date","tutor"):undefined}return undefined}},deps:["meeting_start_date"]},render:function t(e){return(0,n.tZ)(m.Z,T({},e,{placeholder:(0,i.__)("End date","tutor"),disabledBefore:I.watch("meeting_start_date")||(new Date).toISOString()}))}}),(0,n.tZ)(s.Qr,{name:"meeting_end_time",control:I.control,rules:{required:(0,i.__)("End time is required","tutor"),validate:{invalidTime:L.xB,checkEndTime:function t(e){var r=I.watch("meeting_start_date");var n=I.watch("meeting_start_time");var o=I.watch("meeting_end_date");var a=e;if(r&&o&&n&&a){return new Date("".concat(r," ").concat(n))>new Date("".concat(o," ").concat(a))?(0,i.__)("End time should be greater than start time","tutor"):undefined}return undefined}},deps:["meeting_start_time","meeting_start_date","meeting_end_date"]},render:function t(e){return(0,n.tZ)(g.Z,T({},e,{placeholder:(0,i.__)("End time","tutor")}))}}))),(0,n.tZ)(s.Qr,{name:"meeting_timezone",control:I.control,rules:{required:(0,i.__)("Timezone is required","tutor")},render:function t(e){return(0,n.tZ)(_.Z,T({},e,{label:(0,i.__)("Timezone","tutor"),placeholder:(0,i.__)("Select time zone","tutor"),options:K,selectOnFocus:true,isSearchable:true}))}}),(0,n.tZ)(s.Qr,{name:"meeting_enrolledAsAttendee",control:I.control,render:function t(e){return(0,n.tZ)(f.Z,T({},e,{label:(0,i.__)("Add enrolled students as attendees","tutor")}))}}))),(0,n.tZ)("div",{css:G.buttonWrapper({isScrolling:F})},(0,n.tZ)(l.Z,{variant:"text",size:"small",onClick:b},(0,i.__)("Cancel","tutor")),(0,n.tZ)(l.Z,{loading:C.isPending,variant:"primary",size:"small",onClick:I.handleSubmit(R)},z||D?(0,i.__)("Update Meeting","tutor"):(0,i.__)("Create Meeting","tutor"))))};const J=C;var G={container:(0,n.iv)(D.i.display.flex("column")," background:",b.Jv.background.white,";padding-block:",b.W0[12],";border-radius:",b.E0.card,";box-shadow:",b.AF.popover,";",w.c.caption("regular"),";*>label{font-size:",b.JB[15],";color:",b.Jv.text.title,";}"+(true?"":0),true?"":0),formWrapper:(0,n.iv)(D.i.display.flex("column"),";",D.i.overflowYAuto,";padding-inline:",b.W0[12],";padding-bottom:",b.W0[8],";gap:",b.W0[12],";height:400px;"+(true?"":0),true?"":0),dateLabel:(0,n.iv)(w.c.caption("medium")," color:",b.Jv.text.title,";"+(true?"":0),true?"":0),meetingDateTimeWrapper:(0,n.iv)(D.i.display.flex("column")," gap:",b.W0[6],";"+(true?"":0),true?"":0),meetingDateTime:(0,n.iv)(D.i.display.flex()," justify-content:space-between;align-items:flex-start;gap:",b.W0[6],";"+(true?"":0),true?"":0),buttonWrapper:function t(e){var r=e.isScrolling,i=r===void 0?false:r;return(0,n.iv)(D.i.display.flex()," padding-top:",b.W0[8],";padding-inline:",b.W0[12],";justify-content:flex-end;gap:",b.W0[8],";z-index:",b.W5.positive,";",i&&(0,n.iv)("box-shadow:",b.AF.scrollable,";"+(true?"":0),true?"":0),";"+(true?"":0),true?"":0)}}},7100:(t,e,r)=>{r.d(e,{Z:()=>C});var n=r(917);var i=r(8003);var o=r.n(i);var a=r(9546);var u=r(7363);var c=r.n(u);var s=r(7536);var l=r(74);var d=r(5033);var f=r(7941);var m=r(9768);var p=r(8898);var _=r(9447);var v=r(1537);var g=r(5460);var h=r(2377);var y=r(8777);var b=r(8305);var w=r(6413);var O=r(4900);var E=r(6873);var Z=r(5589);var x=r(7034);var j=r(6264);var S=r(125);var D=r(7151);var A=r(9169);function L(t){"@babel/helpers - typeof";return L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},L(t)}function P(){P=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){t[n]=r[n]}}}return t};return P.apply(this,arguments)}function T(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */T=function e(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function t(e,r,n){return e[r]=n}}function s(t,e,r,i){var o=e&&e.prototype instanceof f?e:f,a=Object.create(o.prototype),u=new x(i||[]);return n(a,"_invoke",{value:w(t,r,u)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var d={};function f(){}function m(){}function p(){}var _={};c(_,o,(function(){return this}));var v=Object.getPrototypeOf,g=v&&v(v(j([])));g&&g!==e&&r.call(g,o)&&(_=g);var h=p.prototype=f.prototype=Object.create(_);function y(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function i(n,o,a,u){var c=l(t[n],t,o);if("throw"!==c.type){var s=c.arg,d=s.value;return d&&"object"==L(d)&&r.call(d,"__await")?e.resolve(d.__await).then((function(t){i("next",t,a,u)}),(function(t){i("throw",t,a,u)})):e.resolve(d).then((function(t){s.value=t,a(s)}),(function(t){return i("throw",t,a,u)}))}u(c.arg)}var o;n(this,"_invoke",{value:function t(r,n){function a(){return new e((function(t,e){i(r,n,t,e)}))}return o=o?o.then(a,a):a()}})}function w(t,e,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return S()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var u=O(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function O(t,e){var r=e.method,n=t.iterator[r];if(undefined===n)return e.delegate=null,"throw"===r&&t.iterator["return"]&&(e.method="return",e.arg=undefined,O(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var i=l(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,d;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=undefined),e.delegate=null,d):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function Z(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function j(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=undefined,e.done=!0,e};return i.next=i}}return{next:S}}function S(){return{value:undefined,done:!0}}return m.prototype=p,n(h,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:m,configurable:!0}),m.displayName=c(p,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,u,"GeneratorFunction")),t.prototype=Object.create(h),t},t.awrap=function(t){return{__await:t}},y(b.prototype),c(b.prototype,a,(function(){return this})),t.AsyncIterator=b,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new b(s(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},y(h),c(h,u,"Generator"),c(h,o,(function(){return this})),c(h,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=j,x.prototype={constructor:x,reset:function t(e){if(this.prev=0,this.next=0,this.sent=this._sent=undefined,this.done=!1,this.delegate=null,this.method="next",this.arg=undefined,this.tryEntries.forEach(Z),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=undefined)},stop:function t(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function t(e){if(this.done)throw e;var n=this;function i(t,r){return u.type="throw",u.arg=e,n.next=t,r&&(n.method="next",n.arg=undefined),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],u=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function t(e,n){for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=n&&n<=a.finallyLoc&&(a=null);var u=a?a.completion:{};return u.type=e,u.arg=n,a?(this.method="next",this.next=a.finallyLoc,d):this.complete(u)},complete:function t(e,r){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&r&&(this.next=r),d},finish:function t(e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),Z(n),d}},catch:function t(e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var o=i.arg;Z(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function t(e,r,n){return this.delegate={iterator:j(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=undefined),d}},t}function q(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function N(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?q(Object(r),!0).forEach((function(e){k(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):q(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function k(t,e,r){e=F(e);if(e in t){Object.defineProperty(t,e,{value:r,enumerable:true,configurable:true,writable:true})}else{t[e]=r}return t}function F(t){var e=M(t,"string");return L(e)==="symbol"?e:String(e)}function M(t,e){if(L(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==undefined){var n=r.call(t,e||"default");if(L(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function z(t,e,r,n,i,o,a){try{var u=t[o](a);var c=u.value}catch(t){r(t);return}if(u.done){e(c)}else{Promise.resolve(c).then(n,i)}}function I(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){z(o,n,i,a,u,"next",t)}function u(t){z(o,n,i,a,u,"throw",t)}a(undefined)}))}}var W=(0,x.zs)();var Q=function t(e){var r,o,c,v,g,x,S,L,q;var k=e.onCancel,F=e.data,M=e.meetingHost,z=e.topicId,Q=e.meetingId;var C=(0,j.a)({defaultValue:true}),G=C.ref,K=C.isScrolling;var R=(0,Z.qY)(Q?Q:"",z?z:"");var Y=F!==null&&F!==void 0?F:R.data;var X=(r=(o=Y===null||Y===void 0?void 0:Y.meeting_starts_at)!==null&&o!==void 0?o:Y===null||Y===void 0?void 0:Y.meeting_data.start_time)!==null&&r!==void 0?r:"";var B=(0,h.O)({defaultValues:{meeting_name:(c=Y===null||Y===void 0?void 0:Y.post_title)!==null&&c!==void 0?c:"",meeting_summary:(v=Y===null||Y===void 0?void 0:Y.post_content)!==null&&v!==void 0?v:"",meeting_date:X?(0,a["default"])(new Date(X),w.E_.yearMonthDay):"",meeting_time:X?(0,a["default"])(new Date(X),w.E_.hoursMinutes):"",meeting_duration:Y!==null&&Y!==void 0&&Y.meeting_data.duration?String(Y===null||Y===void 0?void 0:Y.meeting_data.duration):"60",meeting_duration_unit:(g=Y===null||Y===void 0?void 0:Y.meeting_data.duration_unit)!==null&&g!==void 0?g:"min",meeting_timezone:(x=Y===null||Y===void 0?void 0:Y.meeting_data.timezone)!==null&&x!==void 0?x:"",auto_recording:(S=Y===null||Y===void 0?void 0:(L=Y.meeting_data.settings)===null||L===void 0?void 0:L.auto_recording)!==null&&S!==void 0?S:"none",meeting_password:(q=Y===null||Y===void 0?void 0:Y.meeting_data.password)!==null&&q!==void 0?q:"",meeting_host:Object.values(M)[0]},shouldFocusError:true,mode:"onChange"});var U=(0,E.Z4)();var H=b.y.timezones;var V=Object.keys(H).map((function(t){return{label:H[t],value:t}}));var $=function(){var t=I(T().mark((function t(e){var r;return T().wrap((function t(n){while(1)switch(n.prev=n.next){case 0:if(W){n.next=2;break}return n.abrupt("return");case 2:n.next=4;return U.mutateAsync(N(N(N({},Y&&{meeting_id:Number(Y.ID)}),z&&{topic_id:Number(z)}),{},{course_id:W,meeting_title:e.meeting_name,meeting_summary:e.meeting_summary,meeting_date:(0,a["default"])(new Date(e.meeting_date),w.E_.yearMonthDay),meeting_time:e.meeting_time,meeting_duration:Number(e.meeting_duration),meeting_duration_unit:e.meeting_duration_unit,meeting_timezone:e.meeting_timezone,auto_recording:e.auto_recording,meeting_password:e.meeting_password,click_form:z?"course_builder":"metabox",meeting_host:Object.keys(M)[0]}));case 4:r=n.sent;if(r.data){k();B.reset()}case 6:case"end":return n.stop()}}),t)})));return function e(r){return t.apply(this,arguments)}}();(0,u.useEffect)((function(){if((0,D.$K)(Y)){var t,e;B.reset({meeting_name:Y.post_title,meeting_summary:Y.post_content,meeting_date:X?(0,a["default"])(new Date(X),w.E_.yearMonthDay):"",meeting_time:X?(0,a["default"])(new Date(X),w.E_.hoursMinutes):"",meeting_duration:String(Y.meeting_data.duration),meeting_duration_unit:Y.meeting_data.duration_unit,meeting_timezone:Y.meeting_data.timezone,auto_recording:(t=(e=Y.meeting_data.settings)===null||e===void 0?void 0:e.auto_recording)!==null&&t!==void 0?t:"none",meeting_password:Y.meeting_data.password,meeting_host:Object.values(M)[0]})}var r=setTimeout((function(){B.setFocus("meeting_name")}),250);return function(){clearTimeout(r)}}),[Y]);return(0,n.tZ)("div",{css:J.container},(0,n.tZ)("div",{css:J.formWrapper,ref:G},(0,n.tZ)(O.Z,{when:!R.isLoading,fallback:(0,n.tZ)(d.fz,null)},(0,n.tZ)(s.Qr,{name:"meeting_name",control:B.control,rules:{required:(0,i.__)("Name is required","tutor")},render:function t(e){return(0,n.tZ)(m.Z,P({},e,{label:(0,i.__)("Meeting Name","tutor"),placeholder:(0,i.__)("Enter meeting name","tutor"),selectOnFocus:true}))}}),(0,n.tZ)(s.Qr,{name:"meeting_summary",control:B.control,rules:{required:(0,i.__)("Summary is required","tutor")},render:function t(e){return(0,n.tZ)(p.Z,P({},e,{label:(0,i.__)("Meeting Summary","tutor"),placeholder:(0,i.__)("Enter meeting summary","tutor"),rows:3,enableResize:true}))}}),(0,n.tZ)("div",{css:J.meetingDateTimeWrapper},(0,n.tZ)(s.Qr,{name:"meeting_date",control:B.control,rules:{required:(0,i.__)("Date is required","tutor")},render:function t(e){return(0,n.tZ)(f.Z,P({},e,{label:(0,i.__)("Meeting Date","tutor"),placeholder:(0,i.__)("Enter meeting date","tutor"),disabledBefore:(new Date).toISOString()}))}}),(0,n.tZ)(s.Qr,{name:"meeting_time",control:B.control,rules:{required:(0,i.__)("Time is required","tutor"),validate:A.xB},render:function t(e){return(0,n.tZ)(_.Z,P({},e,{placeholder:(0,i.__)("Start time","tutor")}))}}),(0,n.tZ)("div",{css:J.meetingTimeWrapper},(0,n.tZ)(s.Qr,{name:"meeting_duration",control:B.control,rules:{required:(0,i.__)("Duration is required","tutor")},render:function t(e){return(0,n.tZ)(m.Z,P({},e,{placeholder:(0,i.__)("Duration","tutor"),type:"number",selectOnFocus:true}))}}),(0,n.tZ)(s.Qr,{name:"meeting_duration_unit",control:B.control,rules:{required:(0,i.__)("Duration unit is required","tutor")},render:function t(e){return(0,n.tZ)(y.Z,P({},e,{options:[{label:"Minutes",value:"min"},{label:"Hours",value:"hr"}]}))}}))),(0,n.tZ)(s.Qr,{name:"meeting_timezone",control:B.control,rules:{required:(0,i.__)("Time zone is required","tutor")},render:function t(e){return(0,n.tZ)(y.Z,P({},e,{label:(0,i.__)("Timezone","tutor"),placeholder:(0,i.__)("Select time zone","tutor"),options:V,selectOnFocus:true,isSearchable:true}))}}),(0,n.tZ)(s.Qr,{name:"auto_recording",control:B.control,rules:{required:(0,i.__)("Auto recording is required","tutor")},render:function t(e){return(0,n.tZ)(y.Z,P({},e,{label:(0,i.__)("Auto Recording","tutor"),placeholder:(0,i.__)("Select auto recording option","tutor"),options:[{label:(0,i.__)("No recordings","tutor"),value:"none"},{label:(0,i.__)("Local","tutor"),value:"local"},{label:(0,i.__)("Cloud","tutor"),value:"cloud"}]}))}}),(0,n.tZ)(s.Qr,{name:"meeting_password",control:B.control,rules:{required:(0,i.__)("Password is required","tutor")},render:function t(e){return(0,n.tZ)(m.Z,P({},e,{label:(0,i.__)("Meeting Password","tutor"),placeholder:(0,i.__)("Enter meeting password","tutor"),type:"password",isPassword:true,selectOnFocus:true}))}}),(0,n.tZ)(s.Qr,{name:"meeting_host",control:B.control,rules:{required:(0,i.__)("Meeting host is required","tutor")},render:function t(e){return(0,n.tZ)(m.Z,P({},e,{label:(0,i.__)("Meeting Host","tutor"),placeholder:(0,i.__)("Enter meeting host","tutor"),disabled:true,selectOnFocus:true}))}}))),(0,n.tZ)("div",{css:J.buttonWrapper({isScrolling:K})},(0,n.tZ)(l.Z,{variant:"text",size:"small",onClick:k},(0,i.__)("Cancel","tutor")),(0,n.tZ)(l.Z,{loading:U.isPending,variant:"primary",size:"small",onClick:B.handleSubmit($)},Y||Q?(0,i.__)("Update Meeting","tutor"):(0,i.__)("Create Meeting","tutor"))))};const C=Q;var J={container:(0,n.iv)(S.i.display.flex("column")," background:",v.Jv.background.white,";padding-block:",v.W0[12],";border-radius:",v.E0.card,";box-shadow:",v.AF.popover,";",g.c.caption("regular"),";*>label{font-size:",v.JB[15],";color:",v.Jv.text.title,";}"+(true?"":0),true?"":0),formWrapper:(0,n.iv)(S.i.display.flex("column"),";",S.i.overflowYAuto,";padding-inline:",v.W0[12],";padding-bottom:",v.W0[8],";gap:",v.W0[12],";height:400px;"+(true?"":0),true?"":0),meetingDateTimeWrapper:(0,n.iv)(S.i.display.flex("column")," gap:",v.W0[6],";"+(true?"":0),true?"":0),meetingTimeWrapper:(0,n.iv)(S.i.display.flex()," justify-content:space-between;align-items:flex-start;gap:",v.W0[6],";"+(true?"":0),true?"":0),buttonWrapper:function t(e){var r=e.isScrolling,i=r===void 0?false:r;return(0,n.iv)(S.i.display.flex()," padding-top:",v.W0[8],";padding-inline:",v.W0[12],";justify-content:flex-end;gap:",v.W0[8],";z-index:",v.W5.positive,";",i&&(0,n.iv)("box-shadow:",v.AF.scrollable,";"+(true?"":0),true?"":0),";"+(true?"":0),true?"":0)}}},2322:(t,e,r)=>{r.d(e,{Z:()=>f});var n=r(917);var i=r(9250);var o=r(74);var a=r(6595);var u=r(1537);var c=r(5460);var s=r(4900);function l(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var d=function t(e){var r=e.title,u=e.backUrl,c=e.rightButton,l=e.isExternalUrl;var d=(0,i.s0)();var f=function t(){if(u){if(l){window.location.href=u;return}d(u)}else{d(-1)}};return(0,n.tZ)("div",{css:m.wrapper},(0,n.tZ)("div",{css:m.left},(0,n.tZ)(s.Z,{when:u},(0,n.tZ)(o.Z,{variant:"text",buttonCss:m.button,onClick:f},(0,n.tZ)(a.Z,{name:"back",width:32,height:32}))),(0,n.tZ)("h6",{css:m.title},r)),c)};const f=d;var m={wrapper:true?{name:"bcffy2",styles:"display:flex;align-items:center;justify-content:space-between"}:0,left:(0,n.iv)("display:flex;align-items:center;gap:",u.W0[16],";"+(true?"":0),true?"":0),button:(0,n.iv)("padding:0;border-radius:",u.E0[2],";"+(true?"":0),true?"":0),title:(0,n.iv)(c.c.heading6("medium"),";"+(true?"":0),true?"":0)}},5589:(t,e,r)=>{r.d(e,{AI:()=>Q,CR:()=>K,FV:()=>P,G4:()=>M,PI:()=>I,P_:()=>Y,SF:()=>j,T3:()=>J,Wn:()=>q,i0:()=>H,iL:()=>S,qY:()=>B,rM:()=>A,ri:()=>$,yO:()=>k});var n=r(8551);var i=r(202);var o=r(6205);var a=r(8003);var u=r.n(a);var c=r(3389);var s=r(6413);var l=r(7034);var d=r(7307);var f=r(3603);var m=r(5219);function p(t){"@babel/helpers - typeof";return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function _(t,e){return b(t)||y(t,e)||g(t,e)||v()}function v(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function g(t,e){if(!t)return;if(typeof t==="string")return h(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor)r=t.constructor.name;if(r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return h(t,e)}function h(t,e){if(e==null||e>t.length)e=t.length;for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function y(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,u=[],c=!0,s=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){s=!0,i=t}finally{try{if(!c&&null!=r["return"]&&(a=r["return"](),Object(a)!==a))return}finally{if(s)throw i}}return u}}function b(t){if(Array.isArray(t))return t}function w(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function O(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?w(Object(r),!0).forEach((function(e){E(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function E(t,e,r){e=Z(e);if(e in t){Object.defineProperty(t,e,{value:r,enumerable:true,configurable:true,writable:true})}else{t[e]=r}return t}function Z(t){var e=x(t,"string");return p(e)==="symbol"?e:String(e)}function x(t,e){if(p(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==undefined){var n=r.call(t,e||"default");if(p(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var j=function t(e,r,n,i){var o,a;return O(O(O(O(O(O({},r&&{lesson_id:r}),{},{topic_id:n,title:e.title,description:e.description,thumbnail_id:(o=(a=e.thumbnail)===null||a===void 0?void 0:a.id)!==null&&o!==void 0?o:null},e.video?Object.fromEntries(Object.entries(e.video).map((function(t){var r;var n=_(t,2),i=n[0],o=n[1];return["video[".concat(i,"]"),i==="source"&&!o?"-1":i==="poster_url"&&!((r=e.video)!==null&&r!==void 0&&r.poster)?"":o]}))):{}),{},{"video[runtime][hours]":e.duration.hour||0,"video[runtime][minutes]":e.duration.minute||0,"video[runtime][seconds]":e.duration.second||0},(0,l.ro)(s.AO.TUTOR_COURSE_PREVIEW)&&{_is_preview:e.lesson_preview?1:0}),{},{tutor_attachments:(e.tutor_attachments||[]).map((function(t){return t.id}))},(0,l.ro)(s.AO.CONTENT_DRIP)&&i==="unlock_by_date"&&{"content_drip_settings[unlock_date]":e.content_drip_settings.unlock_date||""}),(0,l.ro)(s.AO.CONTENT_DRIP)&&i==="specific_days"&&{"content_drip_settings[after_xdays_of_enroll]":e.content_drip_settings.after_xdays_of_enroll||"0"}),(0,l.ro)(s.AO.CONTENT_DRIP)&&i==="after_finishing_prerequisites"&&{"content_drip_settings[prerequisites]":e.content_drip_settings.prerequisites||[]})};var S=function t(e,r,n,i){return O(O(O(O({},r&&{assignment_id:r}),{},{topic_id:n,title:e.title,summary:e.summary,attachments:(e.attachments||[]).map((function(t){return t.id})),"assignment_option[time_duration][time]":e.time_duration.time,"assignment_option[time_duration][value]":e.time_duration.value,"assignment_option[total_mark]":e.total_mark,"assignment_option[pass_mark]":e.pass_mark,"assignment_option[upload_files_limit]":e.upload_files_limit,"assignment_option[upload_file_size_limit]":e.upload_file_size_limit},(0,l.ro)(s.AO.CONTENT_DRIP)&&i==="unlock_by_date"&&{"content_drip_settings[unlock_date]":e.content_drip_settings.unlock_date||""}),(0,l.ro)(s.AO.CONTENT_DRIP)&&i==="specific_days"&&{"content_drip_settings[after_xdays_of_enroll]":e.content_drip_settings.after_xdays_of_enroll||"0"}),(0,l.ro)(s.AO.CONTENT_DRIP)&&i==="after_finishing_prerequisites"&&{"content_drip_settings[prerequisites]":e.content_drip_settings.prerequisites||[]})};var D=function t(e){return d.uF.post(f.Z.ADMIN_AJAX,{action:"tutor_course_contents",course_id:e})};var A=function t(e){return(0,n.a)({queryKey:["Topic",e],queryFn:function t(){return D(e).then((function(t){return t.data.map((function(t){return O(O({},t),{},{contents:t.contents.map((function(t){return O(O({},t),{},{post_type:t.quiz_type?"tutor_h5p_quiz":t.post_type})}))})}))}))},enabled:!!e})};var L=function t(e){return d.uF.post(f.Z.ADMIN_AJAX,O({action:"tutor_save_topic"},e))};var P=function t(){var e=(0,i.NL)();var r=(0,c.p)(),n=r.showToast;return(0,o.D)({mutationFn:L,onSuccess:function t(r){if(r.data){n({message:(0,a.__)("Topic saved successfully","tutor"),type:"success"});e.invalidateQueries({queryKey:["Topic"]})}},onError:function t(e){n({type:"danger",message:(0,m.Mo)(e)})}})};var T=function t(e){return d.uF.post(f.Z.ADMIN_AJAX,{action:"tutor_delete_topic",topic_id:e})};var q=function t(e){var r=(0,i.NL)();var n=(0,c.p)(),u=n.showToast;return(0,o.D)({mutationFn:T,onSuccess:function t(n,i){if(n.status_code===200){u({message:(0,a.__)(n.message,"tutor"),type:"success"});r.setQueryData(["Topic",e],(function(t){var e=JSON.parse(JSON.stringify(t));return e.filter((function(t){return t.id!==i}))}))}},onError:function t(e){u({type:"danger",message:(0,m.Mo)(e)});r.invalidateQueries({queryKey:["Topic"]})}})};var N=function t(e,r){return d.uF.post(f.Z.ADMIN_AJAX,{action:"tutor_lesson_details",topic_id:r,lesson_id:e})};var k=function t(e,r){return(0,n.a)({queryKey:["Lesson",e,r],queryFn:function t(){return N(e,r).then((function(t){return t.data}))},enabled:!!e&&!!r})};var F=function t(e){return d.uF.post(f.Z.ADMIN_AJAX,O({action:"tutor_save_lesson"},e))};var M=function t(e){var r=(0,i.NL)();var n=(0,c.p)(),u=n.showToast;return(0,o.D)({mutationFn:function t(e){return F(e)},onSuccess:function t(n,i){if(n.data){r.invalidateQueries({queryKey:["Topic",e]});r.invalidateQueries({queryKey:["Lesson",i.lesson_id,i.topic_id]});u({message:(0,a.__)("Lesson saved successfully","tutor"),type:"success"})}},onError:function t(e){u({type:"danger",message:(0,m.Mo)(e)})}})};var z=function t(e){return d.uF.post(f.Z.ADMIN_AJAX,{action:"tutor_delete_lesson",lesson_id:e})};var I=function t(){var e=(0,i.NL)();var r=(0,c.p)(),n=r.showToast;return(0,o.D)({mutationFn:z,onSuccess:function t(r){if(r.status_code===200){n({message:(0,a.__)(r.message,"tutor"),type:"success"});e.invalidateQueries({queryKey:["Topic"]})}},onError:function t(e){n({type:"danger",message:(0,m.Mo)(e)})}})};var W=function t(e){return d.uF.post(f.Z.ADMIN_AJAX,O({action:"tutor_update_course_content_order"},e))};var Q=function t(){var e=(0,c.p)(),r=e.showToast;return(0,o.D)({mutationFn:W,onError:function t(e){r({type:"danger",message:(0,m.Mo)(e)})}})};var C=function t(e,r){return d.uF.post(f.Z.ADMIN_AJAX,{action:"tutor_assignment_details",topic_id:r,assignment_id:e})};var J=function t(e,r){return(0,n.a)({queryKey:["Assignment",e,r],queryFn:function t(){return C(e,r).then((function(t){return t.data}))},enabled:!!e&&!!r})};var G=function t(e){return d.uF.post(f.Z.ADMIN_AJAX,O({action:"tutor_assignment_save"},e))};var K=function t(e){var r=(0,i.NL)();var n=(0,c.p)(),u=n.showToast;return(0,o.D)({mutationFn:function t(e){return G(e)},onSuccess:function t(n,i){if(n.status_code===200||n.status_code===201){r.invalidateQueries({queryKey:["Topic",Number(e)]});r.invalidateQueries({queryKey:["Assignment",i.assignment_id,i.topic_id]});u({message:(0,a.__)(n.message,"tutor"),type:"success"})}},onError:function t(e){u({type:"danger",message:(0,m.Mo)(e)})}})};var R=function t(e){return d.uF.post(f.Z.ADMIN_AJAX,O({action:"tutor_duplicate_content"},e))};var Y=function t(e){var r=(0,i.NL)();var n=(0,c.p)(),u=n.showToast;return(0,o.D)({mutationFn:R,onSuccess:function t(n,i){if(n.status_code===200||n.status_code===201){u({message:(0,a.__)(n.message,"tutor"),type:"success"});if(["lesson","assignment","quiz","topic"].includes(i.content_type)){r.invalidateQueries({queryKey:["Topic"]});return}if(["question"].includes(i.content_type)){r.invalidateQueries({queryKey:["Quiz",e]});return}}},onError:function t(n,i){u({message:n.response.data.message,type:"danger"});if(["answer"].includes(i.content_type)){r.invalidateQueries({queryKey:["Quiz",e]})}}})};var X=function t(e,r){return d.uF.post(f.Z.ADMIN_AJAX,{action:"tutor_zoom_meeting_details",meeting_id:e,topic_id:r})};var B=function t(e,r){return(0,n.a)({queryKey:["ZoomMeeting",e],queryFn:function t(){return X(e,r).then((function(t){return t.data}))},enabled:!!e&&!!r})};var U=function t(e,r){return d.uF.post(f.Z.ADMIN_AJAX,{action:"tutor_google_meet_meeting_details",meeting_id:e,topic_id:r})};var H=function t(e,r){return(0,n.a)({queryKey:["GoogleMeet",e],queryFn:function t(){return U(e,r).then((function(t){return t.data}))},enabled:!!e&&!!r})};var V=function t(e){return d.RL.post(f.Z.GET_H5P_LESSON_CONTENT,{search_filter:e}).then((function(t){return t.data}))};var $=function t(e,r){return(0,n.a)({queryKey:["H5PLessonContents",e],queryFn:function t(){return V(e)},enabled:r==="lesson"})}},2676:(t,e,r)=>{r.d(e,{Z:()=>n});const n=r.p+"images/9b6a9d99adc17e88c06f2ee6fb3c387e-not-found-2x.webp"},1604:(t,e,r)=>{r.d(e,{Z:()=>n});const n=r.p+"images/743768c1bc7847c4dff86a04d365c429-not-found.webp"}}]);

Filemanager

Name Type Size Permission Actions
images Folder 0755
lazy-chunks Folder 0755
lib Folder 0755
105.js File 13.95 KB 0644
12.js File 55.83 KB 0644
46.js File 2.62 KB 0644
51.js File 2.88 KB 0644
558.js File 59.24 KB 0644
739.js File 54.35 KB 0644
883.js File 208.07 KB 0644
887.js File 94.43 KB 0644
979.js File 43.56 KB 0644
tutor-addon-list.min.js File 445.56 KB 0644
tutor-admin.min.js File 112.22 KB 0644
tutor-coupon.min.js File 591.12 KB 0644
tutor-course-builder.min.js File 617.22 KB 0644
tutor-front.min.js File 350.61 KB 0644
tutor-gutenberg.min.js File 1.08 KB 0644
tutor-order-details.min.js File 410.39 KB 0644
tutor-payment-settings.min.js File 275.35 KB 0644
tutor-setup.min.js File 69.25 KB 0644
tutor-shared.min.js File 894.53 KB 0644
tutor-tax-settings.min.js File 221.6 KB 0644
tutor.min.js File 369.72 KB 0644