(()=>{var t={99210:function(){window.selectSearchField=t=>{var e=document.querySelectorAll(t);(()=>{e.forEach(t=>{if(t&&!t.classList.contains("tutor-js-form-select")&&!t.hasAttribute("noDropdown")&&!t.classList.contains("no-tutor-dropdown")){var e=t.hasAttribute("data-searchable");var o=t.options[t.selectedIndex];t.style.display="none";var i,n,s,c,u,l,d,v;t.insertAdjacentHTML("afterend",r(t.options,t.value,e));i=t.nextElementSibling;n=i.querySelector(".tutor-form-select-search");s=n&&n.querySelector("input");v=i.querySelector(".tutor-form-select-dropdown");var f=i.querySelector(".tutor-form-select-label");f.innerText=o&&o.text;i.onclick=t=>{t.stopPropagation();a(document.querySelectorAll(".tutor-js-form-select"),i);i.classList.toggle("is-active");if(s){setTimeout(()=>{s.focus()},100)}v.onclick=t=>{t.stopPropagation()}};a(document.querySelectorAll(".tutor-js-form-select"));u=i.querySelector(".tutor-form-select-options");l=u&&u.querySelectorAll(".tutor-form-select-option");if(l){l.forEach(e=>{e.onclick=a=>{a.stopPropagation();var r=Array.from(t.options);r.forEach((r,o)=>{if(r.value===a.target.dataset.key){var n;(n=u.querySelector(".is-active"))===null||n===void 0?void 0:n.classList.remove("is-active");e.classList.add("is-active");i.classList.remove("is-active");f.innerText=a.target.innerText;f.dataset.value=r.value;t.value=r.value;var s=document.getElementById("save_tutor_option");if(s){s.disabled=false}}});var o=new Event("change",{bubbles:true});t.dispatchEvent(o)}})}var p=t=>{var e=0;t.forEach(t=>{if(t.style.display!=="none"){e+=1}});return e};if(s){s.oninput=t=>{var e,a=false;c=t.target.value.toUpperCase();l.forEach(t=>{d=t.querySelector("[tutor-dropdown-item]");e=d.textContent||d.innerText;if(e.toUpperCase().indexOf(c)>-1){t.style.display="";a="false"}else{a="true";t.style.display="none"}});var r='\n							<div class="tutor-form-select-option noItem tutor-text-center tutor-fs-7">\n								'.concat(window.wp.i18n.__("No item found","tutor"),"\n							</div>\n						");var o=v.querySelector(".tutor-form-select-options");if(0==p(l)){var i=false;o.querySelectorAll(".tutor-form-select-option").forEach(t=>{if(t.classList.contains("noItem")==true){i=true}});if(false==i){o.insertAdjacentHTML("beforeend",r);i=true}}else{if(null!==v.querySelector(".noItem")){v.querySelector(".noItem").remove()}}}}}});var t=document.querySelectorAll(".tutor-js-form-select");t.forEach(t=>{if(t.nextElementSibling){if(t.nextElementSibling.classList.contains("tutor-js-form-select")){t.nextElementSibling.remove()}}});var o=document.querySelectorAll(".tutor-js-form-select");document.onclick=t=>{a(o)}})();function a(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(t){t.forEach(t=>{if(t!==e){t.classList.remove("is-active")}})}}function r(t,e,a){var r="";Array.from(t).forEach(t=>{r+='\n            <div class="tutor-form-select-option '.concat(e===t.value?"is-active":"",'">\n				<span tutor-dropdown-item data-key="').concat(tutor_esc_attr(t.value),'" class="tutor-nowrap-ellipsis" title="').concat(tutor_esc_attr(t.text),'">').concat(tutor_esc_html(t.text),"</span>\n            </div>\n            ")});var o="";if(a){o='\n				<div class="tutor-form-select-search tutor-pt-8 tutor-px-8">\n					<div class="tutor-form-wrap">\n						<span class="tutor-form-icon">\n							<i class="tutor-icon-search" aria-hidden="true"></i>\n						</span>\n						<input type="search" class="tutor-form-control" placeholder="'.concat(window.wp.i18n.__("Search ...","tutor"),'" />\n					</div>\n				</div>\n			')}var i='\n			<div class="tutor-form-control tutor-form-select tutor-js-form-select">\n				<span class="tutor-form-select-label" tutor-dropdown-label>'.concat(window.wp.i18n.__("Select","tutor"),'</span>\n				<div class="tutor-form-select-dropdown">\n					').concat(o,'\n					<div class="tutor-form-select-options">\n						').concat(r,"\n					</div>\n				</div>\n			</div>\n        ");return i}};selectSearchField(".tutor-form-select")},14609:function(){/**
 * Tutor accrodion
 */(window.tutorAccordion=()=>{(function(t){var e=document.querySelectorAll(".tutor-accordion-item-header");if(e.length){e.forEach(e=>{e.addEventListener("click",()=>{e.classList.toggle("is-active");var a=e.nextElementSibling;if(e.classList.contains("is-active")){t(a).slideDown()}else{t(a).slideUp()}})})}})(jQuery)})()},55059:function(){/**
 * Toggle Expandable -> .input-plan-details
 */var t=document.querySelectorAll(".tutor-course-sidebar-card-pick-plan.has-input-expandable .tutor-form-check-input");if(t){t.forEach(t=>{var e=document.querySelectorAll(".tutor-course-sidebar-card-pick-plan-label .input-plan-details");if(t.checked){t.parentElement.querySelector(".input-plan-details").style.maxHeight="max-content"}t.addEventListener("change",t=>{var a=t.target.closest(".tutor-course-sidebar-card-pick-plan-label").querySelector(".input-plan-details");e.forEach(t=>{t.style.maxHeight=0});if(t.target.checked){a.style.maxHeight=a.scrollHeight+"px"}})})}},43432:function(){// Alignment field functions 
(function t(){var t=document.querySelectorAll(".tutor-form-alignment");t.forEach(t=>{var e=t.querySelector("input");var a=t.querySelectorAll("button");a.forEach(t=>{if(t.dataset.position===e.value){t.classList.remove("tutor-btn-secondary");t.classList.add("tutor-btn-primary")}t.addEventListener("click",function(r){var o=t.dataset.position;e.value=o;e.dispatchEvent(new Event("input"));a.forEach(t=>t.classList.remove("tutor-btn-primary"));a.forEach(t=>t.classList.add("tutor-btn-secondary"));t.classList.remove("tutor-btn-secondary");t.classList.add("tutor-btn-primary")})})})})()},94447:function(){(function t(){document.addEventListener("click",t=>{var e;/**
		 * Tutor Default Tab
		 */var a="data-tutor-tab-target";var r=document.querySelectorAll(".tab-header-item.is-active, .tab-body-item.is-active");var o=null;if(t.target.hasAttribute(a)){o=t.target}else if((e=t.target.closest("[".concat(a,"]")))===null||e===void 0?void 0:e.hasAttribute(a)){o=t.target.closest("[".concat(a,"]"))}var i=o?o.getAttribute(a):null;if(i){t.preventDefault();var n=document.getElementById(i);if(n){r.forEach(t=>{t.classList.remove("is-active")});o.classList.add("is-active");n.classList.add("is-active")}}// Nav
var s="data-tutor-nav-target";var c=t.target.hasAttribute(s)?t.target:t.target.closest("[".concat(s,"]"));var u=document.querySelectorAll(".tutor-nav-link.is-active, .tutor-tab-item.is-active, .tutor-dropdown-item.is-active, .tutor-nav-more-item.is-active");if(c&&c.hasAttribute(s)){t.preventDefault();var l=c.getAttribute(s);var d=document.getElementById(l);if(d){u.forEach(t=>{var e=["tutor-tab-item","is-active"].every(e=>t.classList.contains(e));var a=["tutor-nav-more-item","is-active"].every(e=>t.classList.contains(e));if(e||a||t.closest("[".concat(s,"]"))){t.classList.remove("is-active")}});if(c.closest(".tutor-nav-more")!=undefined){c.closest(".tutor-nav-more").querySelector(".tutor-nav-more-item").classList.add("is-active")}c.classList.add("is-active");if(c.classList.contains("tutor-dropdown-item")){var v=c===null||c===void 0?void 0:c.getAttribute(s);var f=document.querySelectorAll(".tutor-nav-link");f===null||f===void 0?void 0:f.forEach(t=>{if((t===null||t===void 0?void 0:t.getAttribute(s))===v){var e;t===null||t===void 0?void 0:(e=t.classList)===null||e===void 0?void 0:e.add("is-active")}})}if(c.hasAttribute("data-tutor-query-variable")&&c.hasAttribute("data-tutor-query-value")){var p=c.getAttribute("data-tutor-query-variable");var m=c.getAttribute("data-tutor-query-value");if(p&&m){var h=new URL(window.location);h.searchParams.set(p,m);window.history.pushState({},"",h)}}d.classList.add("is-active");// Trigger event after tab change
var g=new CustomEvent("tutor_tab_changed",{detail:{tabId:l}});document.dispatchEvent(g)}}})})()},86842:function(){var t=document.querySelector(".tutor-dropdown-select");if(t){var e=document.querySelector(".tutor-dropdown-select-selected");var a=document.querySelector(".tutor-dropdown-select-options-container");var r=document.querySelectorAll(".tutor-dropdown-select-option");e.addEventListener("click",t=>{t.stopPropagation();a.classList.toggle("is-active")});r.forEach(t=>{t.addEventListener("click",r=>{var o=r.target.dataset.key;if(o==="custom"){document.querySelector(".tutor-v2-date-range-picker.inactive").classList.add("active");document.querySelector(".tutor-v2-date-range-picker.inactive input").click();document.querySelector(".tutor-v2-date-range-picker.inactive input").style.display="none";document.querySelector(".tutor-v2-date-range-picker.inactive .tutor-form-icon").style.display="none"}e.innerHTML=t.querySelector("label").innerHTML;a.classList.remove("is-active")})})}// console.log(tutorDropdownSelect);
},93995:function(){(function(t){t(document).on("click","[data-td-target]",function(e){var a=t(this);var r=a.data("td-target");a.toggleClass("is-active");t("#"+r).toggle()})})(jQuery)},3718:function(){/**
 * Tutor Modal – Accessible & Keyboard-friendly
 *
 * Features:
 *  - Focus trap (Tab / Shift+Tab cycle within the modal)
 *  - Escape key closes topmost modal
 *  - Focus management: prioritizes [autofocus] then first input
 *  - Focus restoration on close (supports stacked modals)
 *  - Body scroll lock
 *  - Auto-initialization for modals active on page load or class toggle
 *
 * @since 1.0.0
 */(function(){var t=['a[href]:not([disabled]):not([tabindex="-1"])','button:not([disabled]):not([tabindex="-1"])','textarea:not([disabled]):not([tabindex="-1"])','input:not([disabled]):not([tabindex="-1"]):not([type="hidden"])','select:not([disabled]):not([tabindex="-1"])','[tabindex]:not([tabindex="-1"])'].join(", ");/** @type {HTMLElement[]} Stack of elements that opened modals – for focus restoration */var e=[];/**
	 * Get the topmost active modal in the DOM.
	 *
	 * @returns {HTMLElement|null}
	 */function a(){var t=document.querySelectorAll(".tutor-modal.tutor-is-active");return t.length?t[t.length-1]:null}/**
	 * Open a modal by element reference.
	 *
	 * @param {HTMLElement} modal  The `.tutor-modal` element to activate.
	 * @param {HTMLElement} [trigger] The element that triggered the open (for focus restore).
	 */function r(a,r){if(!a)return;// Save the trigger element to the stack for focus restoration.
var o=r||document.activeElement;if(o&&!e.includes(o)){e.push(o)}a.classList.add("tutor-is-active");a.setAttribute("aria-hidden","false");document.body.classList.add("tutor-modal-open");// Move focus into the modal.
requestAnimationFrame(()=>{var e=a.querySelector("[autofocus]");var r=a.querySelector('input:not([type="hidden"]), textarea, select');var o=a.querySelector(t);var i=e||r||o;if(i){i.focus()}else{var n=a.querySelector(".tutor-modal-window");if(n){n.setAttribute("tabindex","-1");n.focus()}}});// Dispatch legacy custom event.
window.dispatchEvent(new CustomEvent("tutor_modal_shown",{detail:r}))}/**
	 * Close a modal by element reference.
	 *
	 * @param {HTMLElement} modal          The `.tutor-modal` element to deactivate.
	 * @param {boolean}     [restoreFocus=true] Whether to restore focus to the trigger.
	 */function o(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:true;if(!t)return;t.classList.remove("tutor-is-active");t.setAttribute("aria-hidden","true");// Only remove body class when no other modals are active.
if(!document.querySelector(".tutor-modal.tutor-is-active")){document.body.classList.remove("tutor-modal-open")}if(a&&e.length){var r=e.pop();if(r&&typeof r.focus==="function"){r.focus()}}}/**
	 * Trap focus within the topmost active modal.
	 */function i(e){var r=a();if(!r)return;var o=r.querySelectorAll(t);if(!o.length)return;var i=o[0];var n=o[o.length-1];if(e.shiftKey){if(document.activeElement===i){e.preventDefault();n.focus()}}else{if(document.activeElement===n){e.preventDefault();i.focus()}}}// Keyboard Listeners
document.addEventListener("keydown",t=>{var e=a();if(!e)return;if(t.key==="Escape"||t.key==="Esc"){t.preventDefault();o(e)}else if(t.key==="Tab"){i(t)}});// Click Listeners
document.addEventListener("click",t=>{var e="data-tutor-modal-target";var a="data-tutor-modal-close";var i="tutor-modal-overlay";var n=t.target.hasAttribute(e)?t.target:t.target.closest("[".concat(e,"]"));if(n){t.preventDefault();var s=n.getAttribute(e);var c=document.getElementById(s);if(c)r(c,n);return}if(t.target.hasAttribute(a)||t.target.classList.contains(i)||t.target.closest("[".concat(a,"]"))){t.preventDefault();var u=t.target.closest(".tutor-modal.tutor-is-active");if(u)o(u)}});// MutationObserver to watch for class changes – Ultimate fix for legacy script interference.
var n=new MutationObserver(t=>{t.forEach(t=>{if(t.type==="attributes"&&t.attributeName==="class"){var e=t.target;if(e.classList.contains("tutor-is-active")&&e.getAttribute("aria-hidden")!=="false"){r(e)}}})});// Initial setup & start observing
document.addEventListener("DOMContentLoaded",()=>{var t=document.querySelectorAll(".tutor-modal");t.forEach(t=>{n.observe(t,{attributes:true,attributeFilter:["class"]});// Initialize already-active modals.
if(t.classList.contains("tutor-is-active")){r(t)}})})})()},62282:function(){(function(t){// Nav
t.fn.tutorNav=function(e){this.each(function(){var e=this;var a=t(e).find(">.tutor-nav-item:not('.tutor-nav-more')");var r=function r(){this.init=function(){var e=this;this.buildList();this.setup();t(window).on("resize",function(){e.cleanList();e.setup()})};this.setup=function(){var r=a.first().position();var o=t();var i=true;a.each(function(e){var n=t(this);var s=n.position();if(s.top!==r.top){o=o.add(n);if(i){o=o.add(a.eq(e-1));i=false}}});if(o.length){var n=o.clone();n.find("a.tutor-nav-link").addClass("tutor-dropdown-item").removeClass("tutor-nav-link");o.addClass("tutor-d-none");t(e).find(".tutor-nav-more-list").append(n);t(e).find(".tutor-nav-more").removeClass("tutor-d-none").addClass("tutor-d-inline-block");if(t(e).find(".tutor-dropdown-item.is-active").length){t(e).find(".tutor-nav-more-item").addClass("is-active")}}};this.cleanList=function(){if(!t(e).find(".tutor-nav-more-list .is-active").length){t(e).find(".tutor-nav-more-item").removeClass("is-active")}t(e).find(".tutor-nav-more-list").empty();t(e).find(".tutor-nav-more").removeClass("tutor-d-inline-block").addClass("tutor-d-none").find(".tutor-dropdown-item").removeClass("is-active");a.removeClass("tutor-d-none")};this.buildList=function(){t(e).find(".tutor-nav-more-item").on("click",function(a){a.preventDefault();if(t(e).find(".tutor-dropdown-item.is-active").length){t(this).addClass("is-active")}t(this).parent().toggleClass("tutor-nav-opened")});t(document).mouseup(a=>{if(t(e).find(".tutor-nav-more-link").has(a.target).length===0){t(e).find(".tutor-nav-more").removeClass("tutor-nav-opened")}})}};new r().init()})};t("[tutor-priority-nav]").tutorNav()})(window.jQuery)},34309:function(){/**
 * Tutor Notification Tab
 */(function t(){document.addEventListener("click",t=>{var e="data-tutor-notification-tab-target";var a=document.querySelectorAll(".tab-header-item.is-active, .tab-body-item.is-active");if(t.target.hasAttribute(e)){t.preventDefault();var r=t.target.hasAttribute(e)?t.target.getAttribute(e):t.target.closest("[".concat(e,"]")).getAttribute(e);var o=document.getElementById(r);if(t.target.hasAttribute(e)&&o){a.forEach(t=>{t.classList.remove("is-active")});t.target.classList.add("is-active");o.classList.add("is-active")}}})})()},77438:function(){/**
 * Tutor Off Canvas
 */(function t(){document.addEventListener("click",t=>{var e="data-tutor-offcanvas-target";var a="data-tutor-offcanvas-close";var r="tutor-offcanvas-backdrop";// Opening Offcanvas
if(t.target.hasAttribute(e)){t.preventDefault();var o=t.target.hasAttribute(e)?t.target.getAttribute(e):t.target.closest("[".concat(e,"]")).getAttribute(e);var i=document.getElementById(o);if(i){i.classList.add("is-active")}}// Closing Offcanvas
if(t.target.hasAttribute(a)||t.target.classList.contains(r)||t.target.closest("[".concat(a,"]"))){t.preventDefault();var n=document.querySelectorAll(".tutor-offcanvas.is-active");n.forEach(t=>{t.classList.remove("is-active")})}});// Closing Offcanvas on esc key
document.addEventListener("keydown",t=>{if(t.key==="Escape"){var e=document.querySelectorAll(".tutor-offcanvas.is-active");e.forEach(t=>{t.classList.remove("is-active")})}})})()},76940:function(){/**
 * Tutor Password Strength Checker
 */(function t(){var t=document.querySelectorAll(".tutor-password-field input.password-checker");var e=document.querySelector(".tutor-password-strength-hint .weak");var a=document.querySelector(".tutor-password-strength-hint .medium");var r=document.querySelector(".tutor-password-strength-hint .strong");var{__,_x:o,_n:i,_nx:n}=wp.i18n;var s=/[a-z]/;var c=/\d+/;var u=/.[!,@,#,$,%,^,&,*,?,_,~,-,(,)]/;if(t){t.forEach(t=>{t.addEventListener("input",o=>{var i,n,l;var d=t&&t.closest(".tutor-password-field").querySelector(".show-hide-btn");var v=t.closest(".tutor-password-strength-checker");if(v){i=v&&v.querySelector(".indicator");n=v&&v.querySelector(".text")}var f=o.target;if(f.value!=""){if(i){i.style.display="flex"}if(f.value.length<=3&&(f.value.match(s)||f.value.match(c)||f.value.match(u)))l=1;if(f.value.length>=6&&(f.value.match(s)&&f.value.match(c)||f.value.match(c)&&f.value.match(u)||f.value.match(s)&&f.value.match(u)))l=2;if(f.value.length>=6&&f.value.match(s)&&f.value.match(c)&&f.value.match(u))l=3;if(l==1){e.classList.add("active");if(n){n.style.display="block";n.textContent=__("weak","tutor")}}if(l==2){a.classList.add("active");if(n){n.textContent=__("medium","tutor")}}else{a.classList.remove("active");if(n){// noticeText.classList.remove('medium');
}}if(l==3){e.classList.add("active");a.classList.add("active");r.classList.add("active");if(n){n.textContent=__("strong","tutor");// noticeText.classList.add('strong');
}}else{r.classList.remove("active");if(n){// noticeText.classList.remove('strong');
}}if(d){d.style.display="block";d.onclick=function(){if(f.type=="password"){f.type="text";d.style.color="#23ad5c";d.classList.add("hide-btn")}else{f.type="password";d.style.color="#000";d.classList.remove("hide-btn")}}}}else{if(i){i.style.display="none"}if(n){i.style.display="none"}if(n){n.style.display="none"}d.style.display="none"}})})}})()},82123:function(){(function t(){// It is managed by mediachooser.js
return;/**
	 * Image Preview : Logo and Signature Upload
	 * Selector -> .tutor-option-field-input.image-previewer
	 */var t=document.querySelectorAll(".tutor-thumbnail-uploader");var e=document.querySelectorAll(".tutor-thumbnail-uploader img");var a=document.querySelectorAll(".tutor-thumbnail-uploader input[type=file]");var r=document.querySelectorAll(".tutor-thumbnail-uploader .delete-btn");if(a&&r){// Checking Img Src when document loads
document.addEventListener("DOMContentLoaded",()=>{t.forEach(t=>{e.forEach(e=>{if(e.getAttribute("src")){e.closest(".image-previewer").classList.add("is-selected")}else{t.classList.remove("is-selected")}console.log(e)})})});// Updating Image Preview
a.forEach(t=>{t.addEventListener("change",function(e){var a=this.files[0];var r=t.closest(".image-previewer");var i=r.querySelector("img");var n=r.querySelector(".preview-loading");if(a){n.classList.add("is-loading");o(a,i);r.classList.add("is-selected");setTimeout(()=>{n.classList.remove("is-loading")},200)}})});// Deleting Image Preview
r.forEach(t=>{t.addEventListener("click",function(t){var e=this.closest(".image-previewer");var a=e.querySelector("img");a.setAttribute("src","");e.classList.remove("is-selected")})})}// Get Image file as Data URL
var o=(t,e)=>{var a=new FileReader;a.onload=function t(){e.setAttribute("src",this.result)};a.readAsDataURL(t)}})()},70362:function(){(function t(){var{__}=wp.i18n;document.addEventListener("click",t=>{var e="data-tutor-toggle-more";var a=t.target.hasAttribute(e)?t.target:t.target.closest("[".concat(e,"]"));if(a&&a.hasAttribute(e)){t.preventDefault();var r=a.getAttribute(e);console.log(r);var o=document.querySelector(r);if(o.classList.contains("tutor-toggle-more-collapsed")){o.classList.remove("tutor-toggle-more-collapsed");o.style.height="auto";a.classList.remove("is-active");a.querySelector(".tutor-toggle-btn-icon").classList.replace("tutor-icon-plus","tutor-icon-minus");a.querySelector(".tutor-toggle-btn-text").innerText=__("Show Less","tutor")}else{o.classList.add("tutor-toggle-more-collapsed");o.style.height=o.getAttribute("data-toggle-height")+"px";a.classList.add("is-active");a.querySelector(".tutor-toggle-btn-icon").classList.replace("tutor-icon-minus","tutor-icon-plus");a.querySelector(".tutor-toggle-btn-text").innerText=__("Show More","tutor")}}})})()}};// The module cache
var e={};// The require function
function a(r){// Check if module is in cache
var o=e[r];if(o!==undefined){return o.exports}// Create a new module (and put it into the cache)
var i=e[r]={exports:{}};// Execute the module function
t[r](i,i.exports,a);// Return the exports of the module
return i.exports}// webpack/runtime/rspack_version
(()=>{a.rv=()=>"1.6.4"})();// webpack/runtime/rspack_unique_id
(()=>{a.ruid="bundler=rspack@1.6.4"})();// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
(()=>{"use strict";// EXTERNAL MODULE: ./assets/react/front/_select_dd_search.js
var t=a(99210);// CONCATENATED MODULE: ./node_modules/@swc/helpers/esm/_async_to_generator.js
function e(t,e,a,r,o,i,n){try{var s=t[i](n);var c=s.value}catch(t){a(t);return}if(s.done)e(c);else Promise.resolve(c).then(r,o)}function r(t){return function(){var a=this,r=arguments;return new Promise(function(o,i){var n=t.apply(a,r);function s(t){e(n,o,i,s,c,"next",t)}function c(t){e(n,o,i,s,c,"throw",t)}s(undefined)})}}// EXTERNAL MODULE: ./v2-library/src/js/modal.js
var o=a(3718);// EXTERNAL MODULE: ./v2-library/src/js/thumbnailPreview.js
var i=a(82123);// CONCATENATED MODULE: ./v2-library/src/js/popupMenu.js
// dropdown
(function t(){var t=new Event("tutor_dropdown_closed");document.addEventListener("click",e=>{var a="action-tutor-dropdown";var r=e.target.hasAttribute(a)?e.target:e.target.closest("[".concat(a,"]"));if(r&&r.hasAttribute(a)){e.preventDefault();var o=r.closest(".tutor-dropdown-parent");if(o.classList.contains("is-open")){o.classList.remove("is-open");o.dispatchEvent(t)}else{document.querySelectorAll(".tutor-dropdown-parent").forEach(t=>{t.classList.remove("is-open")});o.classList.add("is-open")}}else{var i=["data-tutor-copy-target","data-tutor-dropdown-persistent"];var n="data-tutor-dropdown-close";var s=i.some(t=>{return e.target.hasAttribute(t)||e.target.closest("[".concat(t,"]"))||e.target.closest(".react-datepicker")||e.target.classList.contains("react-datepicker__close-icon")});if(!s||e.target.hasAttribute(n)||e.target.closest("[".concat(n,"]"))){document.querySelectorAll(".tutor-dropdown-parent").forEach(e=>{if(e.classList.contains("is-open")){e.classList.remove("is-open");e.dispatchEvent(t)}})}}})})();/**
 * Copy to clipboard
 */document.addEventListener("click",t=>r(function*(){var e="data-tutor-copy-target";if(t.target.hasAttribute(e)){var a=t.target.getAttribute(e);/* Get the text field */var r=document.getElementById(a).textContent.trim();yield n(r);if(r){s(t.target,"Copied")}else{s(t.target,"Nothing Found!")}}})());// Copy text to clipboard
var n=t=>{return new Promise(e=>{var a=document.createElement("textarea");a.value=t;document.body.appendChild(a);a.select();document.execCommand("copy");document.body.removeChild(a);e()})};// Showing tooltip
var s=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Copied!";var a='<span class="tutor-tooltip tooltip-wrap"><span class="tooltip-txt tooltip-top">'.concat(e,"</span></span>");t.insertAdjacentHTML("afterbegin",a);setTimeout(()=>{document.querySelector(".tutor-tooltip").remove()},500)};/**
 * Input Field - Copy/Paste to/from clipboard
 */document.addEventListener("click",t=>r(function*(){var e="data-tutor-clipboard-copy-target";var a="data-tutor-clipboard-paste-target";if(t.target.hasAttribute(e)){var r=t.target.getAttribute(e);/* Get the text field */var o=document.getElementById(r).value;/* Copy text into clipboard */if(o){yield navigator.clipboard.writeText(o);s(t.target,"Copied")}}if(t.target.hasAttribute(a)){var i=t.target.getAttribute(a);var n=yield navigator.clipboard.readText();/* Pasting on the text field */if(n){document.getElementById(i).value=n;s(t.target,"Pasted")}}})());/**
 * Toggle disabled .tutor-clipboard-input-field .tutor-btn
 * .tutor-clipboard-input-field .tutor-btn
 */var c=document.querySelector(".tutor-clipboard-input-field .tutor-btn");if(c){document.querySelector(".tutor-clipboard-input-field .tutor-form-control").addEventListener("input",t=>{t.target.value?c.removeAttribute("disabled"):c.setAttribute("disabled","")})}// EXTERNAL MODULE: ./v2-library/src/js/offcanvas.js
var u=a(77438);// EXTERNAL MODULE: ./v2-library/src/js/notificationTab.js
var l=a(34309);// EXTERNAL MODULE: ./v2-library/src/js/defaultTab.js
var d=a(94447);// EXTERNAL MODULE: ./v2-library/src/js/nav.js
var v=a(62282);// EXTERNAL MODULE: ./v2-library/src/js/passwordStrengthChecker.js
var f=a(76940);// EXTERNAL MODULE: ./v2-library/src/js/general.js
var p=a(93995);// EXTERNAL MODULE: ./v2-library/src/js/accordion.js
var m=a(14609);// EXTERNAL MODULE: ./v2-library/src/js/accordionRadioFields.js
var h=a(55059);// EXTERNAL MODULE: ./v2-library/src/js/dropdownSelect.js
var g=a(86842);// EXTERNAL MODULE: ./v2-library/src/js/toggleMore.js
var b=a(70362);// EXTERNAL MODULE: ./v2-library/src/js/alignmentField.js
var y=a(43432);// CONCATENATED MODULE: ./v2-library/src/js/main.js
;// CONCATENATED MODULE: ./assets/react/helper/ajax-handler.js
function w(t){return r(function*(){try{var e=yield fetch(window._tutorobject.ajaxurl,{method:"POST",body:t});return e}catch(t){tutor_toast(__("Operation failed","tutor"),t,"error")}})()};// CONCATENATED MODULE: ./assets/react/helper/tutor-formdata.js
/**
 * Prepare custom form data, while setting form data
 * it will also set tutor nonce field.
 * 
 * @since v2.1.0
 * 
 * @param formId  form id attribute
 * @param data array of objects of form elements. Key value par
 * like: [{name: 'john doe'}, {age: 100}]
 * 
 * @return mixed formData on success, false on any error
 */if(!window.tutor_get_nonce_data){window.tutor_get_nonce_data=function(t){var e=window._tutorobject||{};var a=e.nonce_key||"";var r=e[a]||"";if(t){return{key:a,value:r}}return{[a]:r}}}function _(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];var e=new FormData;t.forEach(t=>{for(var[a,r]of Object.entries(t)){e.set(a,r)}});e.set(window.tutor_get_nonce_data(true).key,window.tutor_get_nonce_data(true).value);return e}/* export default */const k=_;// CONCATENATED MODULE: ./assets/react/lib/tutor.js
var{__:L}=wp.i18n;window.defaultErrorMessage=L("Something went wrong","tutor");window.tutor_get_nonce_data=function(t){var e=window._tutorobject||{};var a=e.nonce_key||"";var r=e[a]||"";if(t){return{key:a,value:r}}return{[a]:r}};window.tutor_popup=function(t,e){var a=this;var r;this.popup_wrapper=function(t){var a="<"+t+' id="tutor-legacy-modal" class="tutor-modal tutor-is-active">';a+='<div class="tutor-modal-overlay"></div>';a+='<div class="tutor-modal-window">';a+='<div class="tutor-modal-content tutor-modal-content-white">';a+='<button class="tutor-iconic-btn tutor-modal-close-o" data-tutor-modal-close><span class="tutor-icon-times" aria-hidden="true"></span></button>';a+='<div class="tutor-modal-body tutor-text-center">';a+='<div class="tutor-px-lg-48 tutor-py-lg-24">';if(e){a+='<div class="tutor-mt-24"><img class="tutor-d-inline-block" src="'+window._tutorobject.tutor_url+"assets/images/"+e+'.svg" /></div>'}a+='<div class="tutor-modal-content-container"></div>';// Buttons
a+='<div class="tutor-d-flex tutor-justify-center tutor-mt-48 tutor-mb-24 tutor-modal-actions"></div>';a+="</div>";a+="</div>";a+="</div>";a+="</div>";a+="</"+t+">";return a};this.popup=function(e){var o=e.title?'<div class="tutor-fs-3 tutor-fw-medium tutor-color-black tutor-mb-12">'+e.title+"</div>":"";var i=e.description?'<div class="tutor-fs-6 tutor-color-muted">'+e.description+"</div>":"";var n=Object.keys(e.buttons||{}).map(function(a){var r=e.buttons[a];var o=r.id?"tutor-popup-"+r.id:"";var i=r.attr?" "+r.attr:"";return t('<button id="'+o+'" class="'+r.class+'"'+i+">"+r.title+"</button>").click(function(){r.callback(t(this))})});r=t(a.popup_wrapper(e.wrapper_tag||"div"));var s=r.find(".tutor-modal-content-container");s.append(o);s.append(i);t("body").append(r);t("body").addClass("tutor-modal-open");for(var c=0;c<n.length;c++){r.find(".tutor-modal-actions").append(n[c])}return r};return{popup:this.popup}};window.tutor_date_picker=()=>{if(jQuery.datepicker){var t=_tutorobject.wp_date_format;if(!t){t="yy-mm-dd"}$(".tutor_date_picker").datepicker({dateFormat:t})}};jQuery(document).ready(function(t){"use strict";var{__,_x:e,_n:a,_nx:r}=wp.i18n;/**
	 * Video source tabs
	 */if(jQuery().select2){t(".videosource_select2").select2({width:"100%",templateSelection:o,templateResult:o,allowHtml:true})}//videosource_select2
function o(e){var a=e.element;return t('<span><i class="tutor-icon-'+t(a).data("icon")+'"></i> '+e.text+"</span>")}/**
	 * Course Builder
	 *
	 * @since v.1.3.4
	 */t(document).on("click",".tutor-course-thumbnail-upload-btn",function(e){e.preventDefault();var a=t(this);var r;if(r){r.open();return}r=wp.media({title:__("Select or Upload Media Of Your Chosen Persuasion","tutor"),button:{text:__("Use this media","tutor")},multiple:false});r.on("select",function(){var e=r.state().get("selection").first().toJSON();a.closest(".tutor-thumbnail-wrap").find(".thumbnail-img").attr("src",e.url);a.closest(".tutor-thumbnail-wrap").find("input").val(e.id);t(".tutor-course-thumbnail-delete-btn").show()});r.open()});//Delete Thumbnail
t(document).on("click",".tutor-course-thumbnail-delete-btn",function(e){e.preventDefault();var a=t(this);var r=a.closest(".tutor-thumbnail-wrap").find(".thumbnail-img").attr("data-placeholder-src");a.closest(".tutor-thumbnail-wrap").find(".thumbnail-img").attr("src",r);a.closest(".tutor-thumbnail-wrap").find("input").val("");t(".tutor-course-thumbnail-delete-btn").hide()});t(document).on("change keyup",".course-edit-topic-title-input",function(e){e.preventDefault();t(this).closest(".tutor-topics-top").find(".topic-inner-title").html(t(this).val())});/**
	 * Delete Lesson from course builder
	 */t(document).on("click",".tutor-delete-lesson-btn",function(e){e.preventDefault();if(!confirm(__("Are you sure to delete?","tutor"))){return}var a=t(this);var r=a.attr("data-lesson-id");t.ajax({url:window._tutorobject.ajaxurl,type:"POST",data:{lesson_id:r,action:"tutor_delete_lesson_by_id"},beforeSend:function t(){a.addClass("is-loading")},success:function t(t){if(t.success){a.closest(".course-content-item").remove()}},complete:function t(){a.removeClass("is-loading")}})});/**
	 * Delete Quiz
	 * @since v.1.0.0
	 */t(document).on("click",".tutor-delete-quiz-btn",function(e){e.preventDefault();if(!confirm(__("Are you sure to delete?","tutor"))){return}var a=t(this);var r=a.attr("data-quiz-id");t.ajax({url:window._tutorobject.ajaxurl,type:"POST",data:{quiz_id:r,action:"tutor_delete_quiz_by_id"},beforeSend:function t(){a.addClass("is-loading")},success:function t(t){var{data:e={},success:r}=t||{};var{message:o=__("Something Went Wrong!")}=e;if(r){a.closest(".course-content-item").remove();return}tutor_toast(__("Error!","tutor"),o,"error")},complete:function t(){a.removeClass("is-loading")}})});// @todo: find out the usage
t(document).on("click",".settings-tabs-navs li",function(e){e.preventDefault();var a=t(this);var r=a.find("a").attr("data-target");var o=a.find("a").attr("href");a.addClass("active").siblings("li.active").removeClass("active");t(".settings-tab-wrap").removeClass("active").hide();t(r).addClass("active").show();window.history.pushState({},"",o)});/**
	 * Tutor number validation
	 *
	 * @since v.1.6.3
	 */t(document).on("keyup change",".tutor-number-validation",function(e){var a=t(this);var r=parseInt(a.val());var o=parseInt(a.attr("data-min"));var i=parseInt(a.attr("data-max"));if(r<o){a.val(o)}else if(r>i){a.val(i)}});/*
	 * @since v.1.6.4
	 * Quiz Attempts Instructor Feedback
	 */t(document).on("click",".tutor-instructor-feedback",function(e){e.preventDefault();var a=t(this);var r=a.html();t.ajax({url:window.ajaxurl||_tutorobject.ajaxurl,type:"POST",data:{attempt_id:a.data("attempt-id"),feedback:tinymce.activeEditor.getContent(),action:"tutor_instructor_feedback"},beforeSend:function t(){a.text(__("Updating...","tutor")).attr("disabled","disabled").addClass("is-loading")},success:function t(t){if(t.success){a.closest(".course-content-item").remove();tutor_toast(__("Success","tutor"),a.data("toast_success_message"),"success")}},complete:function t(){a.html(r).removeAttr("disabled").removeClass("is-loading")}})});/**
	 * @since v.1.8.6
	 * SUbmit form through ajax
	 */t(".tutor-form-submit-through-ajax").submit(function(e){e.preventDefault();var a=t(this);var r=t(this).attr("action")||window.location.href;var o=t(this).attr("method")||"GET";var i=t(this).serializeObject();t.ajax({url:r,type:o,data:i,beforeSend:function t(){a.find("button").attr("disabled","disabled").addClass("is-loading")},success:function t(t){if(t.success){tutor_toast(__("Success","tutor"),a.data("toast_success_message"),"success")}else{tutor_toast(__("Error!","tutor"),t.data,"error")}},error:function t(t){tutor_toast(__("Error!","tutor"),t.statusText,"error")},complete:function t(){a.find("button").removeAttr("disabled").removeClass("is-loading")}})});/*
	 * @since v.1.7.9
	 * Send wp nonce to every ajax request
	 */t.ajaxSetup({data:tutor_get_nonce_data()})});jQuery.fn.serializeObject=function(){var t={};var e=this.serializeArray();jQuery.each(e,function(){if(t[this.name]){if(!t[this.name].push){t[this.name]=[t[this.name]]}t[this.name].push(this.value||"")}else{t[this.name]=this.value||""}});return t};/**
 * Show toast message
 * 
 * @param {string} title 
 * @param {string} description 
 * @param {'success' | 'warning' | 'error'} type
 * @return {void}
 * 
 * @since 1.0.0
 */window.tutor_toast=function(t,e,a){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:true;if(!jQuery(".tutor-toast-parent").length){jQuery("body").append('<div class="tutor-toast-parent tutor-toast-right"></div>')}var o=a=="success"?"success":a=="error"?"danger":a=="warning"?"warning":"primary";var i=a=="success"?"tutor-icon-circle-mark-line":a=="error"?"tutor-icon-circle-times-line":"tutor-icon-circle-info-o";var n=e!==undefined&&e!==null&&String(e).trim()!=="";var s=jQuery('\n		<div class="tutor-notification tutor-is-'.concat(o,' tutor-mb-16">\n			<div class="tutor-notification-icon">\n				<i class="').concat(i,'"></i>\n			</div>\n			<div class="tutor-notification-content">\n			<h5>').concat(t,'</h5>\n			<p class="').concat(!n?"tutor-d-none":"",'">').concat(e,'</p>\n			</div>\n			<button class="tutor-notification-close">\n				<i class="tutor-icon-times"></i>\n			</button>\n		</div>\n    '));s.find(".tutor-notification-close").click(function(){s.remove()});jQuery(".tutor-toast-parent").append(s);if(r){setTimeout(function(){if(s){s.fadeOut("fast",function(){jQuery(this).remove()})}},5e3)}};/**
 * Escape HTML and return safe HTML
 * 
 * @since 2.2.4
 * 
 * @param {string} unsafeText HTML string
 * @returns string
 */function S(t){var e="";var a=document.createElement("div");/**
	 * When set an HTML string to an element's innerText
	 * the browser automatically escapes any HTML tags and
	 * treats the content as plain text.
	 */a.innerText=t;e=a.innerHTML;a.remove();return e}window.tutor_esc_html=S;function q(t){return t.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#039;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}window.tutor_esc_attr=q;// enable custom selector when modal opens
window.addEventListener("tutor_modal_shown",t=>{selectSearchField(".tutor-form-select")});/**
 * Create new draft course
 * @since 3.0.0
 */var C=document.querySelectorAll("a.tutor-create-new-course,button.tutor-create-new-course,li.tutor-create-new-course a");C.forEach(t=>{t.addEventListener("click",e=>r(function*(){e.preventDefault();var{__}=wp.i18n;var a=__("Something went wrong, please try again","tutor");try{// For wp-admin bar quick create.
    if(e.target.classList.contains("ab-item")){e.target.innerHTML="Creating..."}t.classList.add("is-loading");t.style.pointerEvents="none";var r=t.classList.contains("tutor-dashboard-create-course");var o=k([{action:"tutor_create_new_draft_course",from_dashboard:r}]);var i=yield w(o);var{status_code:n,data:s,message:c}=yield i.json();if(n===201){window.location=s}else{tutor_toast(__("Failed","tutor"),c,"error")}}catch(t){tutor_toast(__("Failed","tutor"),a,"error")}finally{t.removeAttribute("disabled");t.classList.remove("is-loading")}})())});// CONCATENATED MODULE: ./assets/react/admin-dashboard/tutor-setup.js
jQuery.fn.serializeObject=function(){var t=jQuery;var e={};var a=this.serializeArray();jQuery.each(a,function(){if(e[this.name]){if(!e[this.name].push){e[this.name]=[e[this.name]]}e[this.name].push(this.value||"")}else{e[this.name]=this.value||""}});// Map array value
t(this).find("input:checkbox").each(function(){e[t(this).attr("name")]=t(this).prop("checked")?t(this).attr("data-on")!==undefined?t(this).attr("data-on"):"on":t(this).attr("data-off")!==undefined?t(this).attr("data-off"):"off"});return e};jQuery(document).ready(function(t){"use strict";selectSearchField(".tutor-form-select");var e=window.location.href;var a=new URLSearchParams(window.location.search);var r=a.get("marketplace");if(e.indexOf("#")>0){t(".tutor-wizard-container > div").removeClass("active");t(".tutor-wizard-container > div.tutor-setup-wizard-settings").addClass("active");var o=e.split("#");if(o[1]){var i=t(".tutor-setup-title li."+o[1]).index();t(".tutor-setup-title li").removeClass("current");t(".tutor-setup-content li").removeClass("active");for(var n=0;n<=i;n++){t(".tutor-setup-title li").eq(n).addClass("active");if(i==n){t(".tutor-setup-title li").eq(n).addClass("current");t(".tutor-setup-content li").eq(n).addClass("active")}}}c(r)}if(r==="off"){t("#enable_course_marketplace-0").prop("checked",true)}t(".tutor-setup-title li").on("click",function(e){e.preventDefault();var a=t(this).closest("li").index();t(".tutor-setup-title li").removeClass("active current");t(".tutor-setup-title li").eq(a).addClass("active current");t(".tutor-setup-content li").removeClass("active");t(".tutor-setup-content li").eq(a).addClass("active");window.location.hash=t("ul.tutor-setup-title li").eq(a).data("url");for(var r=0;r<=a;r++){t(".tutor-setup-title li").eq(r).addClass("active")}});/* ---------------------
	* Navigate Wizard Screens
	* ---------------------- */t(".tutor-type-next").on("click",function(e){e.preventDefault();t(".tutor-setup-wizard-type").removeClass("active");t(".tutor-setup-wizard-settings").addClass("active");t(".tutor-setup-title li").eq(0).addClass("active");var a=t("input[name='enable_course_marketplace']:checked").val();var r=new URL(window.location.href);r.searchParams.set("marketplace",a);r.hash="course";window.history.pushState(null,"",r);c(a)});t(".tutor-type-previous").on("click",function(e){e.preventDefault();t(".tutor-setup-wizard-type").removeClass("active");t(".tutor-setup-wizard-boarding").addClass("active")});/* ---------------------
	* Wizard Action
	* ---------------------- */t(".tutor-setup-previous").on("click",function(e){e.preventDefault();var a=t(this).closest("li").index();t("ul.tutor-setup-title li").eq(a).removeClass("active");if(a>0&&a==t(".tutor-setup-title li.instructor").index()+1&&t(".tutor-setup-title li.instructor").hasClass("hide-this")){a=a-1}if(a>0){t("ul.tutor-setup-title li").eq(a-1).addClass("active");t("ul.tutor-setup-content li").removeClass("active").eq(a-1).addClass("active");t("ul.tutor-setup-title li").removeClass("current").eq(a-1).addClass("current");window.location.hash=t("ul.tutor-setup-title li").eq(a-1).data("url")}else{t(".tutor-setup-wizard-settings").removeClass("active");t(".tutor-setup-wizard-type").addClass("active");window.location.hash=""}u()});t(".tutor-setup-type-previous").on("click",function(e){t(".tutor-setup-wizard-type").removeClass("active");t(".tutor-setup-wizard-boarding").addClass("active")});t(".tutor-setup-skip, .tutor-setup-next").on("click",function(e){e.preventDefault();var a=t(this).closest("li").index()+1;if(a==t(".tutor-setup-title li.instructor").index()&&t(".tutor-setup-title li.instructor").hasClass("hide-this")){a=a+1}t("ul.tutor-setup-title li").eq(a).addClass("active");t("ul.tutor-setup-content li").removeClass("active").eq(a).addClass("active");t("ul.tutor-setup-title li").removeClass("current").eq(a).addClass("current");window.location.hash=t("ul.tutor-setup-title li").eq(a).data("url");u()});/* ---------------------
	* Wizard Skip
	* ---------------------- */t(".tutor-boarding-next, .tutor-boarding-skip").on("click",function(e){e.preventDefault();t(".tutor-setup-wizard-boarding").removeClass("active");t(".tutor-setup-wizard-type").addClass("active")});/* ---------------------
	* Form Submit and Redirect after Finished
	* ---------------------- */t(".tutor-finish-setup").on("click",function(e){e.preventDefault();var a=t(this);var r=t("#tutor-setup-form").serializeObject();var o=a.data("redirect-url");var i=_tutorobject.ajaxurl;t.ajax({url:i,type:"POST",data:r,beforeSend:function t(){a.attr("disabled","disabled").addClass("is-loading")},success:function t(t){if(t.success){window.location=o}},complete:function t(){a.removeAttr("disabled").removeClass("is-loading")}})});/* ---------------------
	* Reset Section
	* ---------------------- */t(".tutor-reset-section").on("click",function(e){t(this).closest("li").find("input").val(function(){switch(this.type){case"text":return this.defaultValue;break;case"checkbox":case"radio":this.checked=this.defaultChecked;break;case"range":var e=t(this).closest(".limit-slider");if(e.find(".range-input").hasClass("double-range-slider")){e.find(".range-value-1").html(this.defaultValue+"%");t(".range-value-data-1").val(this.defaultValue);e.find(".range-value-2").html(100-this.defaultValue+"%");t(".range-value-data-2").val(100-this.defaultValue)}else{e.find(".range-value").html(this.defaultValue);return this.defaultValue}break;case"hidden":return this.value;break}})});/* ---------------------
	* Wizard Tooltip
	* ---------------------- */t(".tooltip-btn").on("click",function(e){e.preventDefault();t(this).toggleClass("active")});/* ---------------------
	* on/of emphasizing after input check click
	* ---------------------- */t(".input-switchbox").each(function(){s(t(this))});function s(t){var e=t.parent().parent();if(t.prop("checked")){e.find(".label-on").addClass("active");e.find(".label-off").removeClass("active")}else{e.find(".label-on").removeClass("active");e.find(".label-off").addClass("active")}}t(".input-switchbox").click(function(){s(t(this))});/* ---------------------
	* Select Option
	* ---------------------- */t(".select-box").click(function(e){e.preventDefault();console.log("ddd");t(this).parent().find(".options-container").toggleClass("active")});t(".select-box .options-container .option").click(function(e){e.stopPropagation();t(this).parent().parent().find(".selected").html(t(this).find("label").html());t(this).parent().removeClass("active")});/* ---------------------
	* Time Limit sliders
	* ---------------------- */t(".range-input").on("change mousemove",function(e){var a=t(this).val();var r=t(this).parent().parent().find(".range-value");r.text(a)});t(".double-range-slider").on("change mousemove",function(){var e=t(this).closest(".settings");e.find(".range-value-1").text(t(this).val()+"%");e.find('input[name="earning_instructor_commission"]').val(t(this).val());e.find(".range-value-2").text(100-t(this).val()+"%");e.find('input[name="earning_admin_commission"]').val(100-t(this).val())});t("#attempts-allowed-1").on("click",function(e){if(t("#attempts-allowed-numer").prop("disabled",true)){t(this).parent().parent().parent().addClass("active");t("#attempts-allowed-numer").prop("disabled",false)}});t("#attempts-allowed-2").on("click",function(e){if(t("#attempts-allowed-2").is(":checked")){t(this).parent().parent().parent().removeClass("active");t("#attempts-allowed-numer").prop("disabled",true)}});t(".wizard-type-item").on("click",function(e){c(t(this).find("input").val())});function c(e){if(e=="on"){t(".tutor-show-hide").addClass("active");t(".tutor-setup-title li.instructor").removeClass("hide-this");t(".tutor-setup-content li").eq(t(".tutor-setup-title li.instructor")).removeClass("hide-this")}else{t(".tutor-show-hide").removeClass("active");t(".tutor-setup-title li.instructor").addClass("hide-this");t(".tutor-setup-content li").eq(t(".tutor-setup-title li.instructor")).addClass("hide-this")}}u();function u(){if(t(".tutor-setup-title li.instructor").hasClass("hide-this")){t(".tutor-steps").html(5);var e=t(".tutor-setup-title li.current").index();if(e>2){t(".tutor-setup-content li.active .tutor-steps-current").html(e)}}else{t(".tutor-steps").html(6);t(".tutor-setup-content li").each(function(){t(this).find(".tutor-steps-current").html(t(this).index()+1)})}}/* ---------------------
	* Attempt Allowed
	* ---------------------- */t("input[name='attempts-allowed']").on("change",function(e){var a=t(this).filter(":checked").val();if(a=="unlimited"){t("input[name='quiz_attempts_allowed']").val(0)}else{t("input[name='quiz_attempts_allowed']").val(t("input[name='attempts-allowed-number").val())}});// Prevent number input out of range
t(document).on("input",'input.tutor-form-number-verify[type="number"]',function(){if(t(this).val()==""){t(this).val("");return}var e=t(this).attr("min");var a=t(this).attr("max");var r=t(this).val().toString();/\D/.test(r)?r="":0;r=parseInt(r||0);t(this).val(Math.abs(t(this).val()));// Prevent number smaller than min
if(!(e===undefined)){r<parseInt(e)?t(this).val(e):0}// Prevent numbers greater than max
if(!(a===undefined)){r>a?t(this).val(a):0}});/* $(document).on('focus', 'input.tutor-form-number-verify[type="number"]', function () {
		$("input[name='attempts-allowed'][value='single']").attr('checked', true);
	}) *//* $("input[name='attempts-allowed-number']").on('change', function (e) {
		$("input[name='quiz_attempts_allowed']").val($(this).val())
	})
	$("input[name='attempts-allowed-number']").on('focus', function (e) {
		$("input[name='attempts-allowed'][value='single']").attr('checked', true);
	}) */});window.tutor_esc_attr=q;window.tutor_esc_html=S})()})();