[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@18.226.159.94: ~ $
"use strict";(self["webpackChunktutor"]=self["webpackChunktutor"]||[]).push([[558],{4558:(t,e,r)=>{r.r(e);r.d(e,{default:()=>Re});var n=r(917);var i=r(202);var o=r(2141);var a=r(8003);var u=r(7363);var c=r(7536);var s=r(9250);var l=r(6907);var d=r(74);var f=r(2798);var p=r(6595);var v=r(96);var h=r(1624);var m=r(5453);var y=r(1162);var g=r(8898);var b=r(8305);var Z=r(1537);var _=r(5460);var w=r(4900);var x=r(125);const k=r.p+"images/1d246f342bcfae95d1c25cf16480188f-addon-disabled-2x.webp";const S=r.p+"images/64c59fbc6d60d2e69d821a0fd58e8901-addon-disabled.webp";const C=r.p+"images/0807df3bda222a2334c674c106073bdf-prerequisites-2x.webp";const W=r.p+"images/ec5640e219546af0a227e9787705bec1-prerequisites.webp";var E=!!b.y.tutor_pro_url;var A=function t(){return(0,n.tZ)("div",{css:T.emptyState},(0,n.tZ)("img",{css:T.placeholderImage,src:!E?W:S,srcSet:!E?"".concat(W," 1x, ").concat(C," 2x"):"".concat(S," 1x, ").concat(k," 2x"),alt:(0,a.__)("Pro Placeholder","tutor")}),(0,n.tZ)("div",{css:T.featureAndActionWrapper},(0,n.tZ)("div",{css:T.featuresWithTitle},(0,n.tZ)("div",{css:E&&x.i.text.align.center},!E?(0,a.__)("Guide Students with Course Prerequisites","tutor"):(0,a.__)("Activate the “Prerequisites” addon to use this feature.","tutor")),(0,n.tZ)(w.Z,{when:!E},(0,n.tZ)("div",{css:T.features},(0,n.tZ)("div",{css:T.feature},(0,n.tZ)(p.Z,{name:"materialCheck",width:20,height:20,style:T.checkIcon}),(0,n.tZ)("span",null,(0,a.__)("Easily set prerequisites to structure your courses and guide student progress.","tutor"))),(0,n.tZ)("div",{css:T.feature},(0,n.tZ)(p.Z,{name:"materialCheck",width:20,height:20,style:T.checkIcon}),(0,n.tZ)("span",null,(0,a.__)("Offer customized learning journeys by setting multiple prerequisites for any course.","tutor"))))))),(0,n.tZ)(w.Z,{when:E},(0,n.tZ)("div",{css:T.actionsButton},(0,n.tZ)(d.Z,{size:"small",variant:"secondary",icon:(0,n.tZ)(p.Z,{name:"linkExternal",width:24,height:24}),onClick:function t(){window.open(b.Z.TUTOR_ADDONS_PAGE,"_blank","noopener")}},(0,a.__)("Enable Prerequisites Addon","tutor")))))};const O=A;var T={emptyState:(0,n.iv)("padding:",Z.W0[12]," ",Z.W0[12]," ",Z.W0[24]," ",Z.W0[12],";",x.i.display.flex("column")," gap:",Z.W0[20],";border:1px solid ",Z.Jv.stroke.divider,";border-radius:",Z.E0.card,";background-color:",Z.Jv.background.white,";"+(true?"":0),true?"":0),placeholderImage:(0,n.iv)("max-width:100%;width:100%;height:112px;object-fit:cover;object-position:center;border-radius:",Z.E0[6],";"+(true?"":0),true?"":0),featureAndActionWrapper:(0,n.iv)(x.i.display.flex("column")," align-items:center;gap:",Z.W0[12],";padding-inline:",Z.W0[4],";"+(true?"":0),true?"":0),featuresWithTitle:(0,n.iv)(x.i.display.flex("column")," gap:",Z.W0[8],";",_.c.caption("medium"),";"+(true?"":0),true?"":0),features:(0,n.iv)(x.i.display.flex("column")," gap:",Z.W0[8],";"+(true?"":0),true?"":0),feature:(0,n.iv)(_.c.small(),";",x.i.display.flex()," gap:",Z.W0[12],";color:",Z.Jv.text.title,";text-wrap:pretty;"+(true?"":0),true?"":0),checkIcon:(0,n.iv)("flex-shrink:0;color:",Z.Jv.text.success,";"+(true?"":0),true?"":0),actionsButton:(0,n.iv)(x.i.flexCenter()," margin-top:",Z.W0[4],";"+(true?"":0),true?"":0)};var L=r(9612);var j=r(7583);var I=r(6413);var P=r(7034);var D=r(3366);var N=r(5219);var B=r(9546);var R=r(1933);var J=r(6873);var M=r(932);var G=r(7363);function z(t){"@babel/helpers - typeof";return z="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},z(t)}function U(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */U=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 S(i||[]);return n(a,"_invoke",{value:_(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 p(){}function v(){}var h={};c(h,o,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(C([])));y&&y!==e&&r.call(y,o)&&(h=y);var g=v.prototype=f.prototype=Object.create(h);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function Z(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"==z(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 _(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 W()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var u=w(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 w(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,w(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 x(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 k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function C(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:W}}function W(){return{value:undefined,done:!0}}return p.prototype=v,n(g,"constructor",{value:v,configurable:!0}),n(v,"constructor",{value:p,configurable:!0}),p.displayName=c(v,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,c(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(Z.prototype),c(Z.prototype,a,(function(){return this})),t.AsyncIterator=Z,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new Z(s(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,u,"Generator"),c(g,o,(function(){return this})),c(g,"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=C,S.prototype={constructor:S,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(k),!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),k(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;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function t(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=undefined),d}},t}function F(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 q(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){F(o,n,i,a,u,"next",t)}function u(t){F(o,n,i,a,u,"throw",t)}a(undefined)}))}}function Q(t,e){return V(t)||K(t,e)||$(t,e)||Y()}function Y(){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 $(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 K(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 V(t){if(Array.isArray(t))return t}var X=(0,P.zs)();var tt=function t(e){var r=e.data,i=e.topicId;var o=(0,u.useState)(false),c=Q(o,2),s=c[0],l=c[1];var f=(0,u.useState)(false),v=Q(f,2),h=v[0],m=v[1];var y=(0,J.qN)(String(X),{"post-id":r.ID,"event-id":r.meeting_data.id});var g=(0,u.useRef)(null);var b=(0,u.useRef)(null);var _=r.meeting_data,w=r.post_title;var k=function(){var t=q(U().mark((function t(){var e;return U().wrap((function t(r){while(1)switch(r.prev=r.next){case 0:r.next=2;return y.mutateAsync();case 2:e=r.sent;if(e.status_code===200){m(false)}case 4:case"end":return r.stop()}}),t)})));return function e(){return t.apply(this,arguments)}}();var S=(0,B["default"])(new Date(_.start_datetime),I.E_.day);var C=(0,B["default"])(new Date(_.start_datetime),I.E_.month);var W=(0,B["default"])(new Date(_.start_datetime),I.E_.year);var E=(0,B["default"])(new Date(_.start_datetime),I.E_.hoursMinutes).split(" "),A=Q(E,2),O=A[0],T=A[1],j=T===void 0?"":T;return(0,n.tZ)(G.Fragment,null,(0,n.tZ)("div",{css:rt.card({isPopoverOpen:h||s})},(0,n.tZ)("div",{css:rt.cardTitle},w),(0,n.tZ)("div",{css:rt.cardContent},(0,n.tZ)("span",{css:rt.inlineContent},(0,a.__)("Start time","tutor"),(0,n.tZ)("div",{css:rt.hyphen}),(0,n.tZ)("div",{css:rt.meetingDateTime,className:"date-time"},(0,n.tZ)("span",{css:(0,n.iv)({fontWeight:Z.Ue.semiBold},true?"":0,true?"":0)},"".concat(S," ")),(0,n.tZ)("span",null,"".concat(C," ")),(0,n.tZ)("span",{css:(0,n.iv)({fontWeight:Z.Ue.semiBold},true?"":0,true?"":0)},"".concat(W,", ")),(0,n.tZ)("span",{css:(0,n.iv)({fontWeight:Z.Ue.semiBold},true?"":0,true?"":0)},"".concat(O," ")),(0,n.tZ)("span",null,"".concat(j," ")))),(0,n.tZ)("div",{css:rt.buttonWrapper},(0,n.tZ)(d.Z,{variant:"secondary",size:"small",type:"button",onClick:function t(){window.open(_.meet_link,"_blank","noopener")}},(0,a.__)("Start Meeting","tutor")),(0,n.tZ)("div",{css:rt.actions},(0,n.tZ)("button",{ref:g,type:"button",css:x.i.actionButton,"data-visually-hidden":true,onClick:function t(){return l(true)}},(0,n.tZ)(p.Z,{name:"edit",width:24,height:24})),(0,n.tZ)("button",{type:"button",css:x.i.actionButton,"data-visually-hidden":true,onClick:function t(){m(true)},ref:b},(0,n.tZ)(p.Z,{name:"delete",width:24,height:24})))))),(0,n.tZ)(L.Z,{isOpen:s,triggerRef:g,closePopover:function t(){return l(false)},maxWidth:"306px"},(0,n.tZ)(M.Z,{data:r,topicId:i,onCancel:function t(){l(false)}})),(0,n.tZ)(R.Z,{isOpen:h,triggerRef:b,closePopover:N.ZT,maxWidth:"258px",title:(0,a.sprintf)((0,a.__)('Delete "%s"',"tutor"),w),message:(0,a.__)("Are you sure you want to delete this meeting? This cannot be undone.","tutor"),animationType:D.ru.slideUp,arrow:"auto",hideArrow:true,isLoading:y.isPending,confirmButton:{text:(0,a.__)("Delete","tutor"),variant:"text",isDelete:true},cancelButton:{text:(0,a.__)("Cancel","tutor"),variant:"text"},onConfirmation:q(U().mark((function t(){return U().wrap((function t(e){while(1)switch(e.prev=e.next){case 0:e.next=2;return k();case 2:case"end":return e.stop()}}),t)}))),onCancel:function t(){m(false)}}))};const et=tt;var rt={card:function t(e){var r=e.isPopoverOpen,i=r===void 0?false:r;return(0,n.iv)(x.i.display.flex("column")," padding:",Z.W0[8]," ",Z.W0[12]," ",Z.W0[12]," ",Z.W0[12],";gap:",Z.W0[8],";border-radius:",Z.E0[6],";transition:background 0.3s ease;[data-visually-hidden]{opacity:0;transition:opacity 0.3s ease-in-out;}",i&&(0,n.iv)("background-color:",Z.Jv.background.hover,";[data-visually-hidden]{opacity:1;}.date-time{background:none;}"+(true?"":0),true?"":0)," &:hover{background-color:",Z.Jv.background.hover,";[data-visually-hidden]{opacity:1;}.date-time{background:none;}}"+(true?"":0),true?"":0)},cardTitle:(0,n.iv)(_.c.caption("medium")," color:",Z.Jv.text.title,";"+(true?"":0),true?"":0),cardContent:(0,n.iv)(x.i.display.flex("column")," gap:",Z.W0[8],";"+(true?"":0),true?"":0),hyphen:(0,n.iv)("width:5px;height:2px;background:",Z.Jv.stroke["default"],";"+(true?"":0),true?"":0),inlineContent:(0,n.iv)(_.c.small("regular")," ",x.i.display.flex()," align-items:center;gap:",Z.W0[6],";"+(true?"":0),true?"":0),meetingDateTime:(0,n.iv)("padding:",Z.W0[4]," ",Z.W0[6],";border-radius:",Z.E0[4],";background:",Z.Jv.background.status.processing,";transition:background 0.3s ease-in-out;"+(true?"":0),true?"":0),buttonWrapper:(0,n.iv)(x.i.display.flex(),";margin-top:",Z.W0[8],";justify-content:space-between;"+(true?"":0),true?"":0),actions:(0,n.iv)(x.i.display.flex(),";align-items:center;gap:",Z.W0[8],";"+(true?"":0),true?"":0)};var nt=r(7100);var it=r(7363);function ot(t){"@babel/helpers - typeof";return ot="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},ot(t)}function at(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */at=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 S(i||[]);return n(a,"_invoke",{value:_(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 p(){}function v(){}var h={};c(h,o,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(C([])));y&&y!==e&&r.call(y,o)&&(h=y);var g=v.prototype=f.prototype=Object.create(h);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function Z(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"==ot(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 _(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 W()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var u=w(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 w(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,w(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 x(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 k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function C(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:W}}function W(){return{value:undefined,done:!0}}return p.prototype=v,n(g,"constructor",{value:v,configurable:!0}),n(v,"constructor",{value:p,configurable:!0}),p.displayName=c(v,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,c(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(Z.prototype),c(Z.prototype,a,(function(){return this})),t.AsyncIterator=Z,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new Z(s(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,u,"Generator"),c(g,o,(function(){return this})),c(g,"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=C,S.prototype={constructor:S,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(k),!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),k(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;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function t(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=undefined),d}},t}function ut(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 ct(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){ut(o,n,i,a,u,"next",t)}function u(t){ut(o,n,i,a,u,"throw",t)}a(undefined)}))}}function st(t,e){return vt(t)||pt(t,e)||dt(t,e)||lt()}function lt(){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 dt(t,e){if(!t)return;if(typeof t==="string")return ft(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 ft(t,e)}function ft(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 pt(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 vt(t){if(Array.isArray(t))return t}var ht=(0,P.zs)();var mt=function t(e){var r=e.data,i=e.meetingHost,o=e.topicId;var c=(0,u.useState)(false),s=st(c,2),l=s[0],f=s[1];var v=(0,u.useState)(false),h=st(v,2),m=h[0],y=h[1];var g=(0,J.m8)(String(ht));var b=(0,u.useRef)(null);var _=(0,u.useRef)(null);var k=r.ID,S=r.meeting_data,C=r.post_title,W=r.meeting_starts_at;var E=function(){var t=ct(at().mark((function t(){var e;return at().wrap((function t(r){while(1)switch(r.prev=r.next){case 0:r.next=2;return g.mutateAsync(k);case 2:e=r.sent;if(e.success){y(false)}case 4:case"end":return r.stop()}}),t)})));return function e(){return t.apply(this,arguments)}}();var A=(0,B["default"])(new Date(W),I.E_.day);var O=(0,B["default"])(new Date(W),I.E_.month);var T=(0,B["default"])(new Date(W),I.E_.year);var j=(0,B["default"])(new Date(W),I.E_.hoursMinutes).split(" "),P=st(j,2),M=P[0],G=P[1],z=G===void 0?"":G;return(0,n.tZ)(it.Fragment,null,(0,n.tZ)("div",{css:gt.card({isPopoverOpen:m||l})},(0,n.tZ)("div",{css:gt.cardTitle},C),(0,n.tZ)("div",{css:gt.cardContent},(0,n.tZ)("span",{css:gt.inlineContent},(0,a.__)("Start time","tutor"),(0,n.tZ)("div",{css:gt.hyphen}),(0,n.tZ)("div",{css:gt.meetingDateTime,className:"date-time"},(0,n.tZ)("span",{css:(0,n.iv)({fontWeight:Z.Ue.semiBold},true?"":0,true?"":0)},"".concat(A," ")),(0,n.tZ)("span",null,"".concat(O," ")),(0,n.tZ)("span",{css:(0,n.iv)({fontWeight:Z.Ue.semiBold},true?"":0,true?"":0)},"".concat(T,", ")),(0,n.tZ)("span",{css:(0,n.iv)({fontWeight:Z.Ue.semiBold},true?"":0,true?"":0)},"".concat(M," ")),(0,n.tZ)("span",null,"".concat(z," ")))),(0,n.tZ)(w.Z,{when:S.id},(0,n.tZ)("div",{css:gt.inlineContent},(0,a.__)("Meeting Token","tutor"),(0,n.tZ)("div",{css:gt.hyphen}),(0,n.tZ)("div",null,S.id))),(0,n.tZ)(w.Z,{when:S.password},(0,n.tZ)("div",{css:gt.inlineContent},(0,a.__)("Password","tutor"),(0,n.tZ)("div",{css:gt.hyphen}),(0,n.tZ)("div",null,S.password))),(0,n.tZ)("div",{css:gt.buttonWrapper},(0,n.tZ)(d.Z,{variant:"secondary",size:"small",type:"button",onClick:function t(){window.open(S.start_url,"_blank","noopener")}},(0,a.__)("Start Meeting","tutor")),(0,n.tZ)("div",{css:gt.actions},(0,n.tZ)("button",{ref:b,type:"button",css:x.i.actionButton,"data-visually-hidden":true,onClick:function t(){f(true)}},(0,n.tZ)(p.Z,{name:"edit",width:24,height:24})),(0,n.tZ)("button",{type:"button",css:x.i.actionButton,"data-visually-hidden":true,onClick:function t(){return y(true)},ref:_},(0,n.tZ)(p.Z,{name:"delete",width:24,height:24})))))),(0,n.tZ)(L.Z,{isOpen:l,triggerRef:b,closePopover:function t(){return f(false)},maxWidth:"306px"},(0,n.tZ)(nt.Z,{data:r,meetingHost:i,topicId:o,onCancel:function t(){f(false)}})),(0,n.tZ)(R.Z,{isOpen:m,triggerRef:_,closePopover:N.ZT,maxWidth:"258px",title:(0,a.sprintf)((0,a.__)('Delete "%s"',"tutor"),C),message:(0,a.__)("Are you sure you want to delete this meeting? This cannot be undone.","tutor"),animationType:D.ru.slideUp,arrow:"auto",hideArrow:true,isLoading:g.isPending,confirmButton:{text:(0,a.__)("Delete","tutor"),variant:"text",isDelete:true},cancelButton:{text:(0,a.__)("Cancel","tutor"),variant:"text"},onConfirmation:ct(at().mark((function t(){return at().wrap((function t(e){while(1)switch(e.prev=e.next){case 0:e.next=2;return E();case 2:case"end":return e.stop()}}),t)}))),onCancel:function t(){y(false)}}))};const yt=mt;var gt={card:function t(e){var r=e.isPopoverOpen,i=r===void 0?false:r;return(0,n.iv)(x.i.display.flex("column")," padding:",Z.W0[8]," ",Z.W0[12]," ",Z.W0[12]," ",Z.W0[12],";gap:",Z.W0[8],";border-radius:",Z.E0[6],";transition:background 0.3s ease;[data-visually-hidden]{opacity:0;transition:opacity 0.3s ease-in-out;}",i&&(0,n.iv)("background-color:",Z.Jv.background.hover,";[data-visually-hidden]{opacity:1;}.date-time{background:none;}"+(true?"":0),true?"":0)," &:hover{background-color:",Z.Jv.background.hover,";[data-visually-hidden]{opacity:1;}.date-time{background:none;}}"+(true?"":0),true?"":0)},cardTitle:(0,n.iv)(_.c.caption("medium")," color:",Z.Jv.text.title,";"+(true?"":0),true?"":0),cardContent:(0,n.iv)(x.i.display.flex("column")," gap:",Z.W0[8],";"+(true?"":0),true?"":0),hyphen:(0,n.iv)("width:5px;height:2px;background:",Z.Jv.stroke["default"],";"+(true?"":0),true?"":0),inlineContent:(0,n.iv)(_.c.small("regular")," ",x.i.display.flex()," align-items:center;gap:",Z.W0[6],";"+(true?"":0),true?"":0),meetingDateTime:(0,n.iv)("padding:",Z.W0[4]," ",Z.W0[6],";border-radius:",Z.E0[4],";background:",Z.Jv.background.status.processing,";transition:background 0.3s ease-in-out;"+(true?"":0),true?"":0),buttonWrapper:(0,n.iv)(x.i.display.flex(),";margin-top:",Z.W0[8],";justify-content:space-between;"+(true?"":0),true?"":0),actions:(0,n.iv)(x.i.display.flex(),";align-items:center;gap:",Z.W0[8],";"+(true?"":0),true?"":0)};const bt=r.p+"images/ce30a118f93885425aa8ace20559a99e-live-class-2x.webp";const Zt=r.p+"images/b3a93f8abedeeefea14556d1f4bac6b1-live-class.webp";function _t(t,e){return Ct(t)||St(t,e)||xt(t,e)||wt()}function wt(){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 xt(t,e){if(!t)return;if(typeof t==="string")return kt(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 kt(t,e)}function kt(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 St(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 Ct(t){if(Array.isArray(t))return t}function Wt(){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 Et=!!b.y.tutor_pro_url;var At=(0,P.ro)(I.AO.TUTOR_ZOOM_INTEGRATION);var Ot=(0,P.ro)(I.AO.TUTOR_GOOGLE_MEET_INTEGRATION);var Tt=(0,P.zs)();var Lt=true?{name:"1d3w5wq",styles:"width:100%"}:0;var jt=true?{name:"1d3w5wq",styles:"width:100%"}:0;var It=function t(){var e,r,o;var c=(0,i.NL)();var s=c.getQueryData(["CourseDetails",Tt]);var l=(e=s===null||s===void 0?void 0:s.zoom_meetings)!==null&&e!==void 0?e:[];var h=(r=s===null||s===void 0?void 0:s.zoom_users)!==null&&r!==void 0?r:{};var m=(o=s===null||s===void 0?void 0:s.google_meet_meetings)!==null&&o!==void 0?o:[];var y=(0,u.useState)(null),g=_t(y,2),Z=g[0],_=g[1];var x=(0,u.useRef)(null);var C=(0,u.useRef)(null);return(0,n.tZ)("div",{css:Dt.liveClass},(0,n.tZ)("span",{css:Dt.label},(0,a.__)("Schedule Live Class","tutor"),!Et&&(0,n.tZ)(f.Z,{content:(0,a.__)("Pro","tutor")})),(0,n.tZ)(w.Z,{when:Et,fallback:(0,n.tZ)(v.Z,{size:"small",removeBorder:false,emptyStateImage:Zt,emptyStateImage2x:bt,imageAltText:(0,a.__)("Tutor LMS PRO","tutor"),title:(0,a.__)("Bring your courses to life and engage students with interactive live classes.","tutor"),actions:(0,n.tZ)(d.Z,{size:"small",icon:(0,n.tZ)(p.Z,{name:"crown",width:24,height:24}),onClick:function t(){window.open(b.Z.TUTOR_PRICING_PAGE,"_blank","noopener")}},(0,a.__)("Get Tutor LMS Pro","tutor"))})},(0,n.tZ)(w.Z,{when:At||Ot,fallback:(0,n.tZ)(v.Z,{size:"small",removeBorder:false,emptyStateImage:S,emptyStateImage2x:k,imageAltText:(0,a.__)("No live class addons found","tutor"),title:(0,a.__)("Activate the Google Meet or Zoom addon to use this feature.","tutor"),description:(0,a.__)("Engage students in real-time with live classes using Google Meet or Zoom.","tutor"),actions:(0,n.tZ)(d.Z,{size:"small",variant:"secondary",onClick:function t(){window.open(b.Z.TUTOR_ADDONS_PAGE,"_blank","noopener")},icon:(0,n.tZ)(p.Z,{name:"linkExternal",width:24,height:24})},(0,a.__)("Go to Addons","tutor"))})},(0,n.tZ)(w.Z,{when:At},(0,n.tZ)("div",{css:Dt.meetingsWrapper({hasMeeting:l.length>0})},(0,n.tZ)(j.Z,{each:l},(function(t){return(0,n.tZ)("div",{key:t.ID,css:Dt.meeting({hasMeeting:l.length>0})},(0,n.tZ)(yt,{data:t,meetingHost:h}))})),(0,n.tZ)("div",{css:Dt.meetingsFooter({hasMeeting:l.length>0})},(0,n.tZ)(d.Z,{variant:"secondary",icon:(0,n.tZ)(p.Z,{name:"zoomColorize",width:24,height:24}),buttonCss:jt,onClick:function t(){return _("zoom")},ref:x},(0,a.__)("Create a Zoom Meeting","tutor"))))),(0,n.tZ)(w.Z,{when:Ot},(0,n.tZ)("div",{css:Dt.meetingsWrapper({hasMeeting:m.length>0})},(0,n.tZ)(j.Z,{each:m},(function(t){return(0,n.tZ)("div",{key:t.ID,css:Dt.meeting({hasMeeting:m.length>0})},(0,n.tZ)(et,{data:t}))})),(0,n.tZ)("div",{css:Dt.meetingsFooter({hasMeeting:m.length>0})},(0,n.tZ)(d.Z,{variant:"secondary",icon:(0,n.tZ)(p.Z,{name:"googleMeetColorize",width:24,height:24}),buttonCss:Lt,onClick:function t(){return _("google_meet")},ref:C},(0,a.__)("Create a Google Meet Link","tutor"))))))),(0,n.tZ)(L.Z,{triggerRef:x,isOpen:Z==="zoom",closePopover:N.ZT,animationType:D.ru.slideUp,closeOnEscape:false},(0,n.tZ)(nt.Z,{data:null,meetingHost:h,onCancel:function t(){_(null)}})),(0,n.tZ)(L.Z,{triggerRef:C,isOpen:Z==="google_meet",closePopover:N.ZT,animationType:D.ru.slideUp,closeOnEscape:false},(0,n.tZ)(M.Z,{data:null,onCancel:function t(){_(null)}})))};const Pt=It;var Dt={label:(0,n.iv)(x.i.display.inlineFlex()," align-items:center;gap:",Z.W0[4],";",_.c.body()," color:",Z.Jv.text.title,";"+(true?"":0),true?"":0),liveClass:(0,n.iv)(x.i.display.flex("column")," gap:",Z.W0[8],";"+(true?"":0),true?"":0),meetingsWrapper:function t(e){var r=e.hasMeeting;return(0,n.iv)(x.i.display.flex("column")," background-color:",Z.Jv.background.white,";border-radius:",Z.E0.card,";",r&&(0,n.iv)("border:1px solid ",Z.Jv.stroke["default"],";"+(true?"":0),true?"":0),";"+(true?"":0),true?"":0)},meeting:function t(e){var r=e.hasMeeting;return(0,n.iv)("padding:",Z.W0[8]," ",Z.W0[8]," ",Z.W0[12]," ",Z.W0[8],";",r&&(0,n.iv)("border-bottom:1px solid ",Z.Jv.stroke.divider,";"+(true?"":0),true?"":0),";"+(true?"":0),true?"":0)},meetingsFooter:function t(e){var r=e.hasMeeting;return(0,n.iv)("width:100%;",r&&(0,n.iv)("padding:",Z.W0[12]," ",Z.W0[8],";"+(true?"":0),true?"":0),";"+(true?"":0),true?"":0)}};var Nt=r(2322);var Bt=r(6051);const Rt=r.p+"images/a980852605189e7bcfedc3c12a7844d0-attachments-2x.webp";const Jt=r.p+"images/8f57a0f5b77c41a0b937b821ca4b4e29-attachments.webp";var Mt=r(5043);var Gt=r(6895);var zt=r(9592);function Ut(t,e){return $t(t)||Yt(t,e)||qt(t,e)||Ft()}function Ft(){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 qt(t,e){if(!t)return;if(typeof t==="string")return Qt(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 Qt(t,e)}function Qt(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 Yt(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 $t(t){if(Array.isArray(t))return t}function Ht(){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 Kt=function t(e){var r=e.certificates,i=e.selectedCertificate,o=e.currentCertificate,c=e.onSelectCertificate,s=e.closeModal;var l=(0,u.useState)(i),f=Ut(l,2),v=f[0],h=f[1];var m=(0,u.useState)(o),y=Ut(m,2),g=y[0],b=y[1];var Z=(0,u.useRef)(null);var _=r.findIndex((function(t){return t.key===g.key}));var x=Math.max(-1,_-1);var k=Math.min(r.length,_+1);(0,u.useEffect)((function(){var t=function t(e){if(e.key==="ArrowLeft"){C("previous")}else if(e.key==="ArrowRight"){C("next")}else if(e.key==="Enter"){S(g)}else if(e.key==="Escape"){s({action:"CLOSE"})}};window.addEventListener("keydown",t);return function(){window.removeEventListener("keydown",t)}}),[_,r]);(0,u.useEffect)((function(){if(Z.current){Z.current.focus()}}),[]);var S=function t(e){if(e.key===v){return}c(e);h(e.key)};var C=function t(e){if(e==="previous"&&_>0){b(r[x])}else if(e==="next"&&_<r.length-1){b(r[k])}};return(0,n.tZ)("div",{css:Xt.container},g&&(0,n.tZ)("div",{css:Xt.content},(0,n.tZ)("div",{css:Xt.certificateAndActions},(0,n.tZ)("img",{css:Xt.certificate,src:g.preview_src,alt:g.name}),(0,n.tZ)("div",{css:Xt.actionsWrapper},(0,n.tZ)(Mt.Z,{placement:"right",content:(0,a.__)("Close","tutor")},(0,n.tZ)("button",{ref:Z,type:"button",css:[Xt.actionButton,Xt.closeButton,true?"":0,true?"":0],onClick:function t(){s({action:"CLOSE"})}},(0,n.tZ)(p.Z,{name:"cross",width:40,height:40}))),(0,n.tZ)(w.Z,{when:g.edit_url},(function(t){return(0,n.tZ)(Mt.Z,{placement:"right",content:(0,a.__)("Edit in Certificate Builder","tutor")},(0,n.tZ)("button",{type:"button",css:[Xt.actionButton,Xt.editButton,true?"":0,true?"":0],onClick:function e(){window.open(t,"_blank","noopener")}},(0,n.tZ)(p.Z,{name:"edit",width:40,height:40})))}))))),(0,n.tZ)("div",{css:Xt.navigatorWrapper},(0,n.tZ)("div",{css:Xt.navigator},(0,n.tZ)("button",{type:"button",css:[Xt.actionButton,Xt.navigatorButton,true?"":0,true?"":0],onClick:function t(){return C("previous")},disabled:x<0},(0,n.tZ)(p.Z,{name:"chevronLeft",width:40,height:40})),(0,n.tZ)(d.Z,{variant:"primary",onClick:function t(){S(g);s({action:"CONFIRM"})},disabled:v===g.key},v===g.key?(0,a.__)("Selected","tutor"):(0,a.__)("Select","tutor")),(0,n.tZ)("button",{type:"button",css:[Xt.actionButton,Xt.navigatorButton,true?"":0,true?"":0],onClick:function t(){return C("next")},disabled:k>r.length-1},(0,n.tZ)(p.Z,{name:"chevronRight",width:40,height:40})))))};const Vt=Kt;var Xt={container:(0,n.iv)("width:100%;height:100%;",x.i.display.flex("column"),";justify-content:center;align-items:center;gap:",Z.W0[16],";"+(true?"":0),true?"":0),content:(0,n.iv)(x.i.display.flex("column"),";justify-content:center;align-items:center;object-fit:contain;"+(true?"":0),true?"":0),certificateAndActions:(0,n.iv)("position:relative;",x.i.display.flex(),";justify-content:center;align-items:center;gap:",Z.W0[20],";"+(true?"":0),true?"":0),certificate:true?{name:"kqgfli",styles:"max-height:80dvh;height:100%;object-fit:contain"}:0,actionsWrapper:(0,n.iv)("position:absolute;top:0;right:-",Z.W0[56],";bottom:0;",x.i.display.flex("column"),";justify-content:space-between;"+(true?"":0),true?"":0),actionButton:(0,n.iv)("place-self:center start;",x.i.resetButton,";display:inline-flex;align-items:center;justify-content:center;svg{color:",Z.Jv.action.secondary["default"],";transition:color 0.3s ease-in-out;}"+(true?"":0),true?"":0),closeButton:true?{name:"j2duhg",styles:"place-self:center start"}:0,editButton:true?{name:"ak8e88",styles:"place-self:center end"}:0,navigatorWrapper:(0,n.iv)(true?"":0,true?"":0),navigator:(0,n.iv)(x.i.display.flex(),";gap:",Z.W0[16],";justify-content:center;background:",Z.Jv.background.white,";padding:",Z.W0[12],";border-radius:",Z.E0[8],";"+(true?"":0),true?"":0),navigatorButton:(0,n.iv)("svg{color:",Z.Jv.icon["default"],";}:disabled{cursor:not-allowed;svg{color:",Z.Jv.icon.hints,";}}"+(true?"":0),true?"":0)};var te=(0,P.zs)();var ee=function t(e){var r,o;var u=e.selectedCertificate,c=u===void 0?"":u,s=e.data,l=e.orientation,f=e.onSelectCertificate;var v=(0,zt.d)(),h=v.showModal;var m=(0,i.NL)();var y=m.getQueryData(["CourseDetails",te]);var g=(r=((o=y===null||y===void 0?void 0:y.course_certificates_templates)!==null&&o!==void 0?o:[]).filter((function(t){return t.orientation===l&&(s.is_default?t.is_default===true:t.is_default===false)})))!==null&&r!==void 0?r:[];return(0,n.tZ)("div",{css:ne.wrapper({isSelected:c===s.key,isLandScape:l==="landscape"})},(0,n.tZ)("div",{"data-overlay":true,onClick:function t(){return f(s.key)},onKeyDown:function t(e){if(e.key==="Enter"||e.key===" "){f(s.key)}}}),(0,n.tZ)(w.Z,{when:s.preview_src,fallback:(0,n.tZ)("div",{css:ne.emptyCard},(0,n.tZ)(p.Z,{name:"outlineNone",width:49,height:49}),(0,n.tZ)("span",null,(0,a.__)("None","tutor")))},(function(t){return(0,n.tZ)("img",{css:ne.certificateImage,src:t,alt:s.name})})),(0,n.tZ)(w.Z,{when:s.preview_src||s.key!==c},(0,n.tZ)("div",{"data-footer-actions":true,css:ne.footerWrapper},(0,n.tZ)(w.Z,{when:s.preview_src},(0,n.tZ)(d.Z,{variant:"secondary",isOutlined:true,size:"small",onClick:function t(){h({component:Vt,props:{certificates:g,currentCertificate:s,selectedCertificate:c,onSelectCertificate:function t(e){f(e.key)}}})}},(0,a.__)("Preview","tutor"))),(0,n.tZ)(w.Z,{when:s.key!==c},(0,n.tZ)(d.Z,{variant:"primary",size:"small",onClick:function t(){return f(s.key)}},(0,a.__)("Select","tutor"))))),(0,n.tZ)("div",{css:ne.checkIcon({isSelected:c===s.key})},(0,n.tZ)(p.Z,{name:"checkFilledWhite",width:32,height:32})))};const re=ee;var ne={wrapper:function t(e){var r=e.isSelected,i=r===void 0?false:r,o=e.isLandScape,a=o===void 0?false:o;return(0,n.iv)(x.i.centeredFlex,";background-color:",Z.Jv.surface.courseBuilder,";max-height:",a?"154px":"217px",";min-height:",a?"154px":"217px",";height:100%;position:relative;outline:",i?"2px":"1px"," solid ",i?Z.Jv.stroke.brand:Z.Jv.stroke["default"],";border-radius:",Z.E0.card,";transition:all 0.15s ease-in-out;[data-overlay]{position:absolute;top:0;left:0;right:0;bottom:0;border-radius:",Z.E0.card,";}",i&&(0,n.iv)("[data-overlay]{background:",Z.Jv.brand.blue,";opacity:0.1;}"+(true?"":0),true?"":0)," &:hover,&:focus-within{border-color:",Z.Jv.stroke.brand,";[data-footer-actions]{opacity:1;}[data-overlay]{background:",Z.Jv.brand.blue,";opacity:0.1;}}"+(true?"":0),true?"":0)},emptyCard:(0,n.iv)(x.i.flexCenter(),";flex-direction:column;height:100%;width:100%;gap:",Z.W0[8],";",_.c.caption("medium"),";svg{color:",Z.Jv.color.black[20],";}"+(true?"":0),true?"":0),certificateImage:(0,n.iv)("width:100%;height:100%;object-fit:contain;border-radius:",Z.E0.card,";"+(true?"":0),true?"":0),footerWrapper:(0,n.iv)("opacity:0;position:absolute;left:0px;right:0px;bottom:0px;",x.i.flexCenter(),";align-items:center;gap:",Z.W0[4],";padding-block:",Z.W0[8],";background:",Z.Jv.bg.white,";border-bottom-left-radius:",Z.E0.card,";border-bottom-right-radius:",Z.E0.card,";"+(true?"":0),true?"":0),checkIcon:function t(e){var r=e.isSelected,i=r===void 0?false:r;return(0,n.iv)("opacity:",i?1:0,";position:absolute;top:-14px;right:-14px;border-bottom-left-radius:",Z.E0.card,";svg{color:",Z.Jv.icon.brand,";}"+(true?"":0),true?"":0)}};var ie=r(2676);var oe=r(1604);const ae=r.p+"images/ce66848f153ead20b9a1a038f1d68fe7-certificates-2x.webp";const ue=r.p+"images/d68012d900d127a80f22fbc9302fad33-certificates.webp";var ce=!!b.y.tutor_pro_url;var se=function t(){return(0,n.tZ)("div",{css:de.emptyState},(0,n.tZ)("img",{css:de.placeholderImage,src:!ce?ue:S,srcSet:!ce?"".concat(ue," 1x, ").concat(ae," 2x"):"".concat(S," 1x, ").concat(k," 2x"),alt:!ce?(0,a.__)("Pro Placeholder","tutor"):(0,a.__)("Addon Disabled","tutor")}),(0,n.tZ)("div",{css:de.featureAndActionWrapper},(0,n.tZ)(w.Z,{when:!ce},(0,n.tZ)("h5",{css:de.title},(0,a.__)("Award Students with Custom Certificates","tutor"))),(0,n.tZ)("div",{css:de.featuresWithTitle},(0,n.tZ)(w.Z,{when:!ce,fallback:(0,n.tZ)("h6",{css:_.c.heading6("medium")},(0,a.__)("Activate the “Certificate” addon to use this feature.","tutor"))},(0,n.tZ)("div",null,(0,a.__)("Celebrate success with personalized certificates. Recognize student achievements with unique designs that inspire and motivate students.","tutor")),(0,n.tZ)("div",{css:de.features},(0,n.tZ)("div",{css:de.feature},(0,n.tZ)(p.Z,{name:"materialCheck",width:20,height:20,style:de.checkIcon}),(0,n.tZ)("span",null,(0,a.__)("Design personalized certificates that highlight their accomplishments and boost their confidence.","tutor"))),(0,n.tZ)("div",{css:de.feature},(0,n.tZ)(p.Z,{name:"materialCheck",width:20,height:20,style:de.checkIcon}),(0,n.tZ)("span",null,(0,a.__)("Inspire them with a touch of credibility and recognition tailored just for them.","tutor"))))))),(0,n.tZ)("div",{css:de.actionsButton},(0,n.tZ)(d.Z,{variant:!ce?"primary":"secondary",icon:(0,n.tZ)(p.Z,{name:!ce?"crown":"linkExternal",width:24,height:24}),onClick:function t(){window.open(!ce?b.Z.TUTOR_PRICING_PAGE:b.Z.TUTOR_ADDONS_PAGE,"_blank","noopener")}},!ce?(0,a.__)("Get Tutor LMS Pro","tutor"):(0,a.__)("Enable Certificate Addon","tutor"))))};const le=se;var de={emptyState:(0,n.iv)("padding-bottom:",Z.W0[12],";",x.i.display.flex("column")," gap:",Z.W0[20],";"+(true?"":0),true?"":0),placeholderImage:function t(e){var r=e.notFound;return(0,n.iv)("max-width:100%;width:100%;height:",r?"189px":"312px;",";object-fit:cover;object-position:center;border-radius:",Z.E0[6],";"+(true?"":0),true?"":0)},featureAndActionWrapper:(0,n.iv)(x.i.display.flex("column")," align-items:center;gap:",Z.W0[12],";"+(true?"":0),true?"":0),title:(0,n.iv)(_.c.heading5("medium")," color:",Z.Jv.text.primary,";"+(true?"":0),true?"":0),featuresWithTitle:(0,n.iv)(x.i.display.flex("column")," width:500px;gap:",Z.W0[8],";",_.c.body("regular"),";"+(true?"":0),true?"":0),features:(0,n.iv)(x.i.display.flex("column")," gap:",Z.W0[8],";"+(true?"":0),true?"":0),feature:(0,n.iv)(x.i.display.flex()," gap:",Z.W0[12],";color:",Z.Jv.text.title,";text-wrap:pretty;"+(true?"":0),true?"":0),checkIcon:(0,n.iv)("flex-shrink:0;color:",Z.Jv.text.success,";"+(true?"":0),true?"":0),actionsButton:(0,n.iv)(x.i.flexCenter()," margin-top:",Z.W0[4],";"+(true?"":0),true?"":0)};function fe(t,e){return ye(t)||me(t,e)||ve(t,e)||pe()}function pe(){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 ve(t,e){if(!t)return;if(typeof t==="string")return he(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 he(t,e)}function he(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 me(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 ye(t){if(Array.isArray(t))return t}function ge(){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 be=[{label:(0,a.__)("Templates","tutor"),value:"templates"},{label:(0,a.__)("Custom Certificates","tutor"),value:"custom_certificates"}];var Ze=(0,P.zs)();var _e=!!b.y.tutor_pro_url;var we=(0,P.ro)(I.AO.TUTOR_CERTIFICATE);var xe=function t(){var e;var r=(0,i.NL)();var o=r.getQueryData(["CourseDetails",Ze]);var s=(e=o===null||o===void 0?void 0:o.course_certificates_templates)!==null&&e!==void 0?e:[];var l=(0,c.Gc)();var d=l.watch("tutor_course_certificate_template");var f=(0,u.useState)("templates"),v=fe(f,2),h=v[0],m=v[1];var y=(0,u.useState)("landscape"),g=fe(y,2),b=g[0],k=g[1];var S=(0,u.useState)(d),C=fe(S,2),W=C[0],E=C[1];var A=s.some((function(t){return t.orientation==="landscape"&&(h==="templates"?t.is_default:!t.is_default)}));var O=s.some((function(t){return t.orientation==="portrait"&&(h==="templates"?t.is_default:!t.is_default)}));(0,u.useEffect)((function(){if(d==="none"){E(d);return}var t=s.find((function(t){return t.key===(d||"default")}));if(t){if(b!==t.orientation){k(t.orientation)}m(t.is_default?"templates":"custom_certificates");E(t.key)}}),[d,s]);var T=s.filter((function(t){return t.orientation===b&&(h==="templates"?t===null||t===void 0?void 0:t.is_default:!(t!==null&&t!==void 0&&t.is_default))}));var L=function t(e){m(e);var r=s.some((function(t){return t.orientation==="landscape"&&(e==="templates"?t.is_default:!t.is_default)}));var n=s.some((function(t){return t.orientation==="portrait"&&(e==="templates"?t.is_default:!t.is_default)}));k((function(t){if(r&&n){return t}return s.find((function(t){return t.orientation==="landscape"}))?"landscape":"portrait"}))};var I=function t(e){k(e)};var P=function t(e){l.setValue("tutor_course_certificate_template",e);E(e)};return(0,n.tZ)(w.Z,{when:_e&&we,fallback:(0,n.tZ)(le,null)},(0,n.tZ)(w.Z,{when:we},(0,n.tZ)("div",{css:Ce.tabs},(0,n.tZ)(Gt.Z,{tabList:be,activeTab:h,onChange:L}),(0,n.tZ)("div",{css:Ce.orientation},(0,n.tZ)(w.Z,{when:A&&O},(0,n.tZ)(Mt.Z,{delay:200,content:(0,a.__)("Landscape","tutor")},(0,n.tZ)("button",{type:"button",css:[x.i.resetButton,Ce.orientationButton({isActive:b==="landscape"}),true?"":0,true?"":0],onClick:function t(){return I("landscape")}},(0,n.tZ)(p.Z,{name:b==="landscape"?"landscapeFilled":"landscape",width:32,height:32}))),(0,n.tZ)(Mt.Z,{delay:200,content:(0,a.__)("Portrait","tutor")},(0,n.tZ)("button",{type:"button",css:[x.i.resetButton,Ce.orientationButton({isActive:b==="portrait"}),true?"":0,true?"":0],onClick:function t(){return I("portrait")}},(0,n.tZ)(p.Z,{name:b==="portrait"?"portraitFilled":"portrait",width:32,height:32})))))),(0,n.tZ)("div",{css:Ce.certificateWrapper({hasCertificates:T.length>0,activeCertificateTab:h})},(0,n.tZ)(w.Z,{when:h==="templates"},(0,n.tZ)(re,{selectedCertificate:W,onSelectCertificate:P,data:{key:"none",name:(0,a.__)("None","tutor"),preview_src:"",background_src:"",orientation:"landscape",url:""},orientation:b})),(0,n.tZ)(w.Z,{when:T.length>0,fallback:(0,n.tZ)(w.Z,{when:h==="custom_certificates"},(0,n.tZ)("div",{css:Ce.emptyState},(0,n.tZ)("img",{css:Ce.placeholderImage({notFound:true}),src:oe.Z,srcSet:"".concat(oe.Z," 1x, ").concat(ie.Z," 2x"),alt:(0,a.__)("Not Found","tutor")}),(0,n.tZ)("div",{css:Ce.featureAndActionWrapper},(0,n.tZ)("p",{css:(0,n.iv)(_.c.body("medium")," color:",Z.Jv.text.subdued,";"+(true?"":0),true?"":0)},(0,a.__)("You didn’t create any certificate yet!","tutor")))))},(0,n.tZ)(j.Z,{each:T},(function(t){return(0,n.tZ)(re,{key:t.key,selectedCertificate:W,onSelectCertificate:P,data:t,orientation:b})}))))))};const ke=xe;var Se=true?{name:"1vm53vd",styles:"grid-template-columns:1fr;place-items:center"}:0;var Ce={tabs:true?{name:"bjn8wh",styles:"position:relative"}:0,certificateWrapper:function t(e){var r=e.hasCertificates,i=e.activeCertificateTab;return(0,n.iv)("display:grid;grid-template-columns:1fr 1fr 1fr;gap:",Z.W0[16],";padding-top:",Z.W0[12],";",!r&&i!=="templates"&&Se,";"+(true?"":0),true?"":0)},orientation:(0,n.iv)(x.i.display.flex()," gap:",Z.W0[8],";position:absolute;height:32px;right:0;bottom:",Z.W0[4],";"+(true?"":0),true?"":0),orientationButton:function t(e){var r=e.isActive;return(0,n.iv)("display:inline-flex;color:",r?Z.Jv.icon.brand:Z.Jv.icon["default"],";border-radius:",Z.E0[4],";&:focus-visible{outline:2px solid ",Z.Jv.stroke.brand,";outline-offset:1px;}"+(true?"":0),true?"":0)},emptyState:(0,n.iv)("padding-block:",Z.W0[16]," ",Z.W0[12],";",x.i.display.flex("column")," gap:",Z.W0[20],";"+(true?"":0),true?"":0),placeholderImage:function t(e){var r=e.notFound;return(0,n.iv)("max-width:100%;width:100%;height:",r?"189px":"312px;",";object-fit:cover;object-position:center;border-radius:",Z.E0[6],";"+(true?"":0),true?"":0)},featureAndActionWrapper:(0,n.iv)(x.i.display.flex("column")," align-items:center;gap:",Z.W0[12],";"+(true?"":0),true?"":0),actionsButton:(0,n.iv)(x.i.flexCenter()," margin-top:",Z.W0[4],";"+(true?"":0),true?"":0)};function We(){We=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 We.apply(this,arguments)}function Ee(t){return Le(t)||Te(t)||Oe(t)||Ae()}function Ae(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Oe(t,e){if(!t)return;if(typeof t==="string")return je(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 je(t,e)}function Te(t){if(typeof Symbol!=="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Le(t){if(Array.isArray(t))return je(t)}function je(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 Ie(){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 Pe=!!b.y.tutor_pro_url;var De=(0,P.zs)();var Ne=(0,P.ro)(I.AO.TUTOR_PREREQUISITES);var Be=function t(){var e=(0,s.s0)();(0,u.useEffect)((function(){if(!De){e("/",{replace:true})}}),[e]);if(!De){return null}var r=(0,c.Gc)();var Z=(0,i.NL)();var _=(0,o.y)({queryKey:["CourseDetails",De]});var x=Z.getQueryData(["CourseDetails",De]);var C=((x===null||x===void 0?void 0:x.course_prerequisites)||[]).map((function(t){return String(t.id)}));var W=(0,J.$N)({excludedIds:[String(De)].concat(Ee(C)),isEnabled:!!Ne&&!_});return(0,n.tZ)("div",{css:Je.wrapper},(0,n.tZ)("div",{css:Je.leftSide},(0,n.tZ)(Nt.Z,{title:(0,a.__)("Additional","tutor"),backUrl:"/curriculum"}),(0,n.tZ)("div",{css:Je.formWrapper},(0,n.tZ)(l.xu,{bordered:true},(0,n.tZ)("div",{css:Je.titleAndSub},(0,n.tZ)(l.$K,null,(0,a.__)("Overview","tutor")),(0,n.tZ)(l.Jg,null,(0,a.__)("Provide essential course information to attract and inform potential students","tutor"))),(0,n.tZ)("div",{css:Je.fieldsWrapper},(0,n.tZ)(c.Qr,{name:"course_benefits",control:r.control,render:function t(e){return(0,n.tZ)(g.Z,We({},e,{label:(0,a.__)("What Will I Learn?","tutor"),placeholder:(0,a.__)("Define the key takeaways from this course (list one benefit per line)","tutor"),rows:2,enableResize:true,loading:!!_&&!e.field.value}))}}),(0,n.tZ)(c.Qr,{name:"course_target_audience",control:r.control,render:function t(e){return(0,n.tZ)(g.Z,We({},e,{label:(0,a.__)("Target Audience","tutor"),placeholder:(0,a.__)("Specify the target audience that will benefit the most from the course.(One Line Per target audience)","tutor"),rows:2,enableResize:true,loading:!!_&&!e.field.value}))}}),(0,n.tZ)("div",{css:Je.totalCourseDuration},(0,n.tZ)(c.Qr,{name:"course_duration_hours",control:r.control,render:function t(e){return(0,n.tZ)(y.Z,We({},e,{type:"number",label:(0,a.__)("Total Course Duration","tutor"),placeholder:"0",contentPosition:"right",content:(0,a.__)("hour(s)","tutor"),loading:!!_&&!e.field.value}))}}),(0,n.tZ)(c.Qr,{name:"course_duration_minutes",control:r.control,render:function t(e){return(0,n.tZ)(y.Z,We({},e,{type:"number",placeholder:"0",contentPosition:"right",content:(0,a.__)("min(s)","tutor"),loading:!!_&&!e.field.value}))}})),(0,n.tZ)(c.Qr,{name:"course_material_includes",control:r.control,render:function t(e){return(0,n.tZ)(g.Z,We({},e,{label:(0,a.__)("Materials Included","tutor"),placeholder:(0,a.__)("A list of assets you will be providing for the students in this course (One Per Line)","tutor"),rows:4,enableResize:true,loading:!!_&&!e.field.value}))}}),(0,n.tZ)(c.Qr,{name:"course_requirements",control:r.control,render:function t(e){return(0,n.tZ)(g.Z,We({},e,{label:(0,a.__)("Requirements/Instructions","tutor"),placeholder:(0,a.__)("Additional requirements or special instructions for the students (One Per Line)","tutor"),rows:2,enableResize:true,loading:!!_&&!e.field.value}))}}))),(0,n.tZ)(l.xu,{bordered:true},(0,n.tZ)("div",{css:Je.titleAndSub},(0,n.tZ)(l.$K,{css:Je.titleWithBadge},(0,a.__)("Certificate","tutor"),(0,n.tZ)(w.Z,{when:!Pe},(0,n.tZ)(f.Z,{content:(0,a.__)("Pro","tutor")}))),(0,n.tZ)(w.Z,{when:Pe&&(0,P.ro)(I.AO.TUTOR_CERTIFICATE)},(0,n.tZ)(l.Jg,null,(0,a.__)("Select a certificate to award your learners.","tutor")))),(0,n.tZ)(ke,null))),(0,n.tZ)(Bt.Z,null)),(0,n.tZ)("div",{css:Je.sidebar},(0,n.tZ)("div",null,(0,n.tZ)("div",{css:Je.label},(0,a.__)("Course Prerequisites","tutor"),!Pe&&(0,n.tZ)(f.Z,{content:(0,a.__)("Pro","tutor")})),(0,n.tZ)(w.Z,{when:Pe&&Ne,fallback:(0,n.tZ)(O,null)},(0,n.tZ)(c.Qr,{name:"course_prerequisites",control:r.control,render:function t(e){return(0,n.tZ)(h.Z,We({},e,{placeholder:(0,a.__)("Search courses for prerequisites","tutor"),options:W.data||[],isSearchable:true,loading:W.isLoading||!!_&&!e.field.value}))}}))),(0,n.tZ)("div",null,(0,n.tZ)("div",{css:Je.label},(0,a.__)("Attachments","tutor"),!Pe&&(0,n.tZ)(f.Z,{content:(0,a.__)("Pro","tutor")})),(0,n.tZ)(w.Z,{when:Pe&&(0,P.ro)(I.AO.TUTOR_COURSE_ATTACHMENTS),fallback:(0,n.tZ)(v.Z,{size:"small",removeBorder:false,emptyStateImage:!Pe?Jt:S,emptyStateImage2x:!Pe?Rt:k,title:!Pe?(0,a.__)("Provide additional resources like downloadable files and reference materials.","tutor"):(0,a.__)("Activate the “Course Attachments” addon to use this feature.","tutor"),description:Pe?(0,a.__)("Provide additional resources to support your student's learning. Attachments can include documents, audio or video files.","tutor"):"",actions:Pe&&(0,n.tZ)(d.Z,{size:"small",variant:"secondary",icon:(0,n.tZ)(p.Z,{name:"linkExternal",width:24,height:24}),onClick:function t(){window.open(b.Z.TUTOR_ADDONS_PAGE,"_blank","noopener")}},(0,a.__)("Enable Course Attachments Addon","tutor"))})},(0,n.tZ)(c.Qr,{name:"course_attachments",control:r.control,render:function t(e){return(0,n.tZ)(m.Z,We({},e,{buttonText:(0,a.__)("Upload Attachment","tutor"),selectMultiple:true}))}}))),(0,n.tZ)(Pt,null)))};const Re=Be;var Je={wrapper:true?{name:"11aev7e",styles:"display:grid;grid-template-columns:1fr 338px"}:0,leftSide:(0,n.iv)("padding:",Z.W0[32]," ",Z.W0[32]," ",Z.W0[32]," 0;",x.i.display.flex("column")," gap:",Z.W0[32],";"+(true?"":0),true?"":0),formWrapper:(0,n.iv)(x.i.display.flex("column")," gap:",Z.W0[24],";"+(true?"":0),true?"":0),titleAndSub:(0,n.iv)(x.i.display.flex("column")," gap:",Z.W0[4],";margin-bottom:",Z.W0[20],";"+(true?"":0),true?"":0),titleWithBadge:(0,n.iv)("span{",x.i.display.flex(),";align-items:centerTC;gap:",Z.W0[4],";}"+(true?"":0),true?"":0),fieldsWrapper:(0,n.iv)(x.i.display.flex("column")," gap:",Z.W0[24],";"+(true?"":0),true?"":0),totalCourseDuration:(0,n.iv)(x.i.display.flex()," align-items:end;gap:",Z.W0[8],";&>div{flex:1;}"+(true?"":0),true?"":0),sidebar:(0,n.iv)(x.i.display.flex("column")," padding:",Z.W0[32]," 0 ",Z.W0[32]," ",Z.W0[32],";border-left:1px solid ",Z.Jv.stroke.divider,";min-height:calc(100vh - (",Z.J9,"px + ",Z.xQ,"px));gap:",Z.W0[16],";"+(true?"":0),true?"":0),label:(0,n.iv)(x.i.display.inlineFlex()," align-items:center;gap:",Z.W0[4],";",_.c.body("medium")," color:",Z.Jv.text.title,";margin-bottom:",Z.W0[8],";"+(true?"":0),true?"":0)}},2141:(t,e,r)=>{r.d(e,{y:()=>a});var n=r(7363);var i=r(7037);var o=r(202);"use client";function a(t,e){const r=(0,o.NL)(e);const a=r.getQueryCache();return n.useSyncExternalStore(n.useCallback((t=>a.subscribe(i.V.batchCalls(t))),[a]),(()=>r.isFetching(t)),(()=>r.isFetching(t)))}}}]);

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