Headline
CVE-2021-24873: Changeset 2615802 for tutor – WordPress Plugin Repository
The Tutor LMS WordPress plugin before 1.9.11 does not sanitise and escape user input before outputting back in attributes in the Student Registration page, leading to a Reflected Cross-Site Scripting issue
tutor/tags/1.9.11/assets/css/tutor-course-builder.css
r2610239
r2615802
876
876
}
877
877
878
body.tutor-screen-course-builder .tutor-certificate-template-tab {
879
max-width: 735px;
880
margin: auto;
881
display: grid;
882
}
883
884
body.tutor-screen-course-builder .tutor-certificate-template-tab .tab-header {
885
justify-self: center;
886
gap: 15px;
887
margin-bottom: 32px;
888
/\* color/primary/fill/30 \*/
889
background: #f6f8fd;
890
border-radius: 5px;
891
padding: 4px;
892
}
893
894
body.tutor-screen-course-builder .tutor-certificate-template-tab .tab-header.d-flex {
895
display: -webkit-box;
896
display: -ms-flexbox;
897
display: flex;
898
display: -o-flex;
899
display: -ms-flex;
900
display: -moz-flex;
901
display: -webkit-flex;
902
}
903
904
body.tutor-screen-course-builder .tutor-certificate-template-tab .tab-header-item {
905
color: #9ca0ac;
906
font-weight: 500;
907
font-size: 15px;
908
line-height: 160%;
909
cursor: pointer;
910
padding: 4px 20px;
911
border-radius: 5px;
912
-webkit-transition: 200ms linear;
913
transition: 200ms linear;
914
}
915
916
body.tutor-screen-course-builder .tutor-certificate-template-tab .tab-header-item .item-wrapper {
917
display: -webkit-box;
918
display: -ms-flexbox;
919
display: flex;
920
-webkit-box-align: center;
921
-ms-flex-align: center;
922
align-items: center;
923
gap: 7px;
924
}
925
926
body.tutor-screen-course-builder .tutor-certificate-template-tab .tab-header-item .item-wrapper .icon {
927
font-size: 24px;
928
}
929
930
body.tutor-screen-course-builder .tutor-certificate-template-tab .tab-header-item.is-active {
931
color: #3e64de;
932
background-color: white;
933
-webkit-box-shadow: 0px 1px 2px rgba(2, 11, 83, 0.2);
934
box-shadow: 0px 1px 2px rgba(2, 11, 83, 0.2);
935
}
936
937
body.tutor-screen-course-builder .tutor-certificate-template-tab .tab-header-item:not(.is-active) img {
938
filter: grayscale(100%);
939
-o-filter: grayscale(100%);
940
-ms-filter: grayscale(100%);
941
-moz-filter: grayscale(100%);
942
-webkit-filter: grayscale(100%);
943
opacity: 0.55;
944
}
945
946
body.tutor-screen-course-builder .tutor-certificate-template {
947
display: grid;
948
gap: 25px;
949
grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
950
grid-template-rows: -webkit-min-content;
951
grid-template-rows: min-content;
952
position: relative;
953
/\* min-height: 580px;
954
max-height: 944px; \*/
955
}
956
957
body.tutor-screen-course-builder .tutor-certificate-template .tutor-certificate-collapsible {
958
display: none;
959
}
960
961
body.tutor-screen-course-builder .tutor-certificate-template label.template-radio-field {
962
display: -webkit-inline-box;
963
display: -ms-inline-flexbox;
964
display: inline-flex;
965
cursor: pointer;
966
position: relative;
967
}
968
969
body.tutor-screen-course-builder .tutor-certificate-template label.template-radio-field img {
970
max-width: 100%;
971
}
972
973
body.tutor-screen-course-builder .tutor-certificate-template label.template-radio-field input\[type='radio'\] {
974
display: none;
975
appearance: none;
976
-moz-appearance: none;
977
-webkit-appearance: none;
978
}
979
980
body.tutor-screen-course-builder .tutor-certificate-template label.template-radio-field input\[type='radio'\]:checked + .icon-wrapper {
981
-webkit-box-shadow: 0 0 0 2px #3e64de;
982
box-shadow: 0 0 0 2px #3e64de;
983
}
984
985
body.tutor-screen-course-builder .tutor-certificate-template label.template-radio-field input\[type='radio'\]:checked + .icon-wrapper::before {
986
opacity: 1;
987
-webkit-transform: scale(1);
988
transform: scale(1);
989
}
990
991
body.tutor-screen-course-builder .tutor-certificate-template label.template-radio-field span.icon-wrapper {
992
-webkit-box-shadow: 0 0 0 1px #eff1f6;
993
box-shadow: 0 0 0 1px #eff1f6;
994
border-radius: 6px;
995
-webkit-transition: -webkit-box-shadow 200ms ease;
996
transition: -webkit-box-shadow 200ms ease;
997
transition: box-shadow 200ms ease;
998
transition: box-shadow 200ms ease, -webkit-box-shadow 200ms ease;
999
position: relative;
1000
}
1001
1002
body.tutor-screen-course-builder .tutor-certificate-template label.template-radio-field span.icon-wrapper::before {
1003
content: '';
1004
position: absolute;
1005
width: 28px;
1006
height: 28px;
1007
background-size: 25px;
1008
background-repeat: no-repeat;
1009
background-position: left 2px center;
1010
background-image: url("data:image/svg+xml,%3Csvg width='25' height='25' viewBox='0 0 25 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.42318 12.9161C6.3686 12.8593 6.32513 12.7929 6.29503 12.7201C6.23499 12.558 6.23499 12.3797 6.29503 12.2175C6.32453 12.1445 6.36807 12.0779 6.42318 12.0215L7.33283 11.1496C7.38636 11.0869 7.45336 11.0371 7.52883 11.0038C7.60148 10.971 7.68026 10.9538 7.76001 10.9536C7.84642 10.9519 7.93217 10.9691 8.01129 11.0038C8.0895 11.0386 8.16031 11.0881 8.21985 11.1496L10.9639 13.8986L16.8539 8.00855C16.9119 7.94744 16.981 7.89797 17.0575 7.8628C17.1368 7.82861 17.2224 7.81149 17.3088 7.81255C17.3898 7.813 17.4698 7.83071 17.5435 7.8645C17.6171 7.8983 17.6827 7.94741 17.7359 8.00855L18.6456 8.89306C18.7007 8.9494 18.7442 9.01598 18.7737 9.08906C18.8338 9.25121 18.8338 9.42949 18.7737 9.59163C18.7436 9.66439 18.7002 9.73087 18.6456 9.78763L11.4061 16.9894C11.3522 17.0523 11.2853 17.1029 11.2101 17.1377C11.0492 17.2041 10.8685 17.2041 10.7076 17.1377C10.6323 17.1029 10.5655 17.0523 10.5116 16.9894L6.42318 12.9161Z' fill='white'/%3E%3C/svg%3E%0A");
1011
/\* text/brand \*/
1012
background-color: #3e64de;
1013
border-radius: 50%;
1014
right: -15px;
1015
top: -15px;
1016
z-index: 1;
1017
opacity: 0;
1018
-webkit-transform: scale(1.15);
1019
transform: scale(1.15);
1020
-webkit-transition: 200ms linear;
1021
transition: 200ms linear;
1022
}
1023
1024
body.tutor-screen-course-builder .tutor-certificate-template label.template-radio-field span.icon-wrapper img {
1025
border-radius: 6px;
1026
}
1027
1028
body.tutor-screen-course-builder .tutor-certificate-template label.template-radio-field .template-item-overlay {
1029
display: -webkit-box;
1030
display: -ms-flexbox;
1031
display: flex;
1032
-webkit-box-align: center;
1033
-ms-flex-align: center;
1034
align-items: center;
1035
-webkit-box-pack: center;
1036
-ms-flex-pack: center;
1037
justify-content: center;
1038
-webkit-box-orient: vertical;
1039
-webkit-box-direction: normal;
1040
-ms-flex-direction: column;
1041
flex-direction: column;
1042
gap: 17px;
1043
position: absolute;
1044
inset: 0;
1045
background: rgba(255, 255, 255, 0.6);
1046
/\* stroke/light20 \*/
1047
-webkit-backdrop-filter: blur(30px);
1048
backdrop-filter: blur(30px);
1049
/\* Note: backdrop-filter has minimal browser support \*/
1050
border-radius: 6px;
1051
visibility: hidden;
1052
opacity: 0;
1053
-webkit-transition: 200ms linear;
1054
transition: 200ms linear;
1055
}
1056
1057
body.tutor-screen-course-builder .tutor-certificate-template label.template-radio-field .template-item-overlay .tutor-btn {
1058
border-radius: 6px;
1059
opacity: 0;
1060
-webkit-transform: translateY(10px);
1061
transform: translateY(10px);
1062
-webkit-transition: 200ms linear;
1063
transition: 200ms linear;
1064
}
1065
1066
body.tutor-screen-course-builder .tutor-certificate-template label.template-radio-field .template-item-overlay .tutor-btn.tutor-is-outline {
1067
background: transparent;
1068
color: var(--tutor-primary);
1069
}
1070
1071
body.tutor-screen-course-builder .tutor-certificate-template label.template-radio-field .template-item-overlay .tutor-btn.tutor-is-outline:hover {
1072
background-color: var(--tutor-primary-hover);
1073
border-color: var(--tutor-primary-hover);
1074
color: var(--tutor-white);
1075
}
1076
1077
body.tutor-screen-course-builder .tutor-certificate-template label.template-radio-field .template-item-overlay .tutor-btn:nth-child(1) {
1078
-webkit-transition-delay: 100ms;
1079
transition-delay: 100ms;
1080
}
1081
1082
body.tutor-screen-course-builder .tutor-certificate-template label.template-radio-field .template-item-overlay .tutor-btn:nth-child(2) {
1083
-webkit-transition-delay: 130ms;
1084
transition-delay: 130ms;
1085
}
1086
1087
body.tutor-screen-course-builder .tutor-certificate-template label.template-radio-field:hover .template-item-overlay {
1088
visibility: visible;
1089
opacity: 1;
1090
}
1091
1092
body.tutor-screen-course-builder .tutor-certificate-template label.template-radio-field:hover .template-item-overlay .tutor-btn {
1093
opacity: 1;
1094
-webkit-transform: translateY(0);
1095
transform: translateY(0);
1096
}
1097
1098
body.tutor-screen-course-builder .tutor-certificate-template .template-load-more {
1099
position: absolute;
1100
width: 100%;
1101
height: 185px;
1102
bottom: 0;
1103
background: -webkit-gradient(linear, left top, left bottom, color-stop(1.31%, rgba(255, 255, 255, 0.0001)), color-stop(15.41%, rgba(255, 255, 255, 0.74)), color-stop(38.83%, rgba(255, 255, 255, 0.92)), to(#ffffff));
1104
background: linear-gradient(180deg, rgba(255, 255, 255, 0.0001) 1.31%, rgba(255, 255, 255, 0.74) 15.41%, rgba(255, 255, 255, 0.92) 38.83%, #ffffff 100%);
1105
text-align: center;
1106
display: grid;
1107
place-content: center;
1108
}
1109
1110
body.tutor-screen-course-builder .tutor-certificate-template .template-load-more .load-more-btn {
1111
border: none;
1112
background: transparent;
1113
outline: none;
1114
display: -webkit-box;
1115
display: -ms-flexbox;
1116
display: flex;
1117
-webkit-box-align: center;
1118
-ms-flex-align: center;
1119
align-items: center;
1120
gap: 5px;
1121
}
1122
1123
body.tutor-screen-course-builder .tutor-certificate-template .template-load-more .load-more-btn span {
1124
font-size: 20px;
1125
}
1126
878
1127
body.tutor-screen-course-builder.tutor-screen-course-builder-frontend {
879
1128
/\*
tutor/tags/1.9.11/assets/css/tutor-course-builder.min.css
r2610239
r2615802
1
body.tutor-screen-course-builder .builder-course-thumbnail-upload-wrap>div{font-size:var(--tutor-text-size);line-height:25px;margin-bottom:20px;font-weight:400}body.tutor-screen-course-builder .builder-course-thumbnail-upload-wrap .button-transparent{float:right;background:transparent !important}body.tutor-screen-course-builder .builder-course-thumbnail-upload-wrap .button-transparent:hover{background:var(--tutor-primary-color) !important}body.tutor-screen-course-builder .builder-course-thumbnail-img-src{position:relative}body.tutor-screen-course-builder .builder-course-thumbnail-img-src .tutor-course-thumbnail-delete-btn{font-size:10px;position:absolute;top:-4px;left:-4px;color:#e53935;-webkit-transition:300ms;transition:300ms;border-radius:50%;width:20px;height:20px;line-height:20px;background:#fff;text-align:center}body.tutor-screen-course-builder .builder-course-thumbnail-img-src .tutor-course-thumbnail-delete-btn i{line-height:20px}body.tutor-screen-course-builder .tutor-video-upload-wrap .video\_source\_wrap\_html5{width:100%}body.tutor-screen-course-builder .tutor-video-upload-wrap .video\_source\_wrap\_html5 .video-metabox-source-html5-upload{background-color:#fff;text-align:center;padding:40px 20px;border:1px solid #dcdfe5;border-radius:3px}body.tutor-screen-course-builder .tutor-video-upload-wrap .video\_source\_wrap\_html5 .video-metabox-source-html5-upload p{margin-bottom:5px}body.tutor-screen-course-builder .tutor-video-upload-wrap .video\_source\_wrap\_html5 .video-metabox-source-html5-upload .video-upload-icon i{font-size:50px;color:var(--tutor-primary-color)}body.tutor-screen-course-builder .tutor-video-upload-wrap .video\_source\_wrap\_html5 .video-metabox-source-html5-upload .video\_source\_upload\_wrap\_html5{margin-top:10px}body.tutor-screen-course-builder .tutor-video-upload-wrap .video\_source\_wrap\_html5 .video-metabox-source-html5-poster{padding-top:20px}body.tutor-screen-course-builder .tutor-video-upload-wrap .video\_source\_wrap\_html5 .video-metabox-source-html5-poster .html5-video-poster{height:100px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}body.tutor-screen-course-builder .tutor-video-upload-wrap .video\_source\_wrap\_html5 .video-metabox-source-html5-poster .html5-video-poster img{height:100%;width:auto}body.tutor-screen-course-builder .tutor-video-upload-wrap .video\_source\_wrap\_html5 .video-metabox-source-html5-poster .html5-video-poster .tutor-builder-course-video-poster-text{text-align:left;padding-left:20px}body.tutor-screen-course-builder.rtl .html5-video-poster .tutor-builder-course-video-poster-text{padding-left:0;padding-right:20px}body.tutor-screen-course-builder .tutor-video-upload-wrap .video\_source\_wrap\_html5 .video-metabox-source-html5-poster .html5-video-poster .tutor-builder-course-video-poster-text h5{font-size:14px;font-weight:700;margin:0 0 6px;line-height:1}body.tutor-screen-course-builder .tutor-video-upload-wrap .video\_source\_wrap\_html5 .video-metabox-source-html5-poster .html5-video-poster .tutor-builder-course-video-poster-text span{font-size:14px;font-weight:400}body.tutor-screen-course-builder .tutor-video-upload-wrap .video\_source\_wrap\_html5 .video-metabox-source-html5-poster .tutor-row{display:-webkit-box;display:-ms-flexbox;display:flex;display:-o-flex;display:-ms-flex;display:-moz-flex;display:-webkit-flex;flex-wrap:wrap;-o-flex-wrap:wrap;-ms-flex-wrap:wrap;-moz-flex-wrap:wrap;-webkit-flex-wrap:wrap;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-o-justify-content:space-between;-ms-justify-content:space-between;-moz-justify-content:space-between;-webkit-justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-o-align-items:center;-ms-align-items:center;-moz-align-items:center;-webkit-align-items:center}body.tutor-screen-course-builder .tutor-video-upload-wrap .video\_source\_wrap\_html5 .video-metabox-source-html5-poster .tutor-row .tutor-col-5{width:38%}body.tutor-screen-course-builder .tutor-video-upload-wrap .video\_source\_wrap\_html5 .video-metabox-source-html5-poster .tutor-row .tutor-col-7{width:62%}body.tutor-screen-course-builder #tutor-metabox-course-settings-tabs{background-color:#fff;border:1px solid #e5e5e5;margin:1em 0}body.tutor-screen-course-builder:not(.tutor-screen-course-builder-frontend) #tutor-metabox-course-settings-tabs{border:none}body.tutor-screen-course-builder #tutor-metabox-course-settings-tabs .settings-tabs-heading{padding:1em;border-bottom:1px solid #e5e5e5}body.tutor-screen-course-builder #tutor-metabox-course-settings-tabs .settings-tabs-heading h3{font-size:14px;margin:0;line-height:1.4}body.tutor-screen-course-builder #tutor-metabox-course-settings-tabs .tutor-field-radio p{margin-top:0}body.tutor-screen-course-builder #tutor-metabox-course-settings-tabs .course-settings-tabs-container{display:-webkit-box;display:-ms-flexbox;display:flex;display:-o-flex;display:-ms-flex;display:-moz-flex;display:-webkit-flex}body.tutor-screen-course-builder #tutor-metabox-course-settings-tabs .course-settings-tabs-container .settings-tabs-navs-wrap{-webkit-box-flex:0;flex:0 0 200px;-o-flex:0 0 200px;-ms-flex:0 0 200px;-moz-flex:0 0 200px;-webkit-flex:0 0 200px;background:#F5F5F5}body.tutor-screen-course-builder #tutor-metabox-course-settings-tabs .course-settings-tabs-container .settings-tabs-navs-wrap .settings-tabs-navs{margin:0;list-style:none}body.tutor-screen-course-builder #tutor-metabox-course-settings-tabs .course-settings-tabs-container .settings-tabs-navs-wrap .settings-tabs-navs li{margin:0}body.tutor-screen-course-builder #tutor-metabox-course-settings-tabs .course-settings-tabs-container .settings-tabs-navs-wrap .settings-tabs-navs li a{display:block;padding-top:10px;padding-bottom:10px;padding-left:15px;padding-right:15px;color:#23282d;text-decoration:none;background:#F5F5F5;text-transform:capitalize;border-bottom:1px solid #e5e5e5;border-left:3px solid transparent}body.tutor-screen-course-builder #tutor-metabox-course-settings-tabs .course-settings-tabs-container .settings-tabs-navs-wrap .settings-tabs-navs li a:focus{-webkit-box-shadow:none;box-shadow:none}body.tutor-screen-course-builder #tutor-metabox-course-settings-tabs .course-settings-tabs-container .settings-tabs-navs-wrap .settings-tabs-navs li.active a{background-color:#ffffff;border-bottom:1px solid #e5e5e5;color:var(--tutor-primary-color);border-left:3px solid var(--tutor-primary-color)}body.tutor-screen-course-builder #tutor-metabox-course-settings-tabs .course-settings-tabs-container .settings-tabs-navs-wrap .settings-tabs-navs li:last-child a{border-bottom:none}body.tutor-screen-course-builder #tutor-metabox-course-settings-tabs .course-settings-tabs-container .settings-tabs-container{padding:1em;-webkit-box-flex:1;flex:1;-o-flex:1;-ms-flex:1;-moz-flex:1;-webkit-flex:1}body.tutor-screen-course-builder .tutor-course-available-instructors{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}body.tutor-screen-course-builder .tutor-course-available-instructors .added-instructor-item{-webkit-box-flex:0;-ms-flex:0 0 calc(50% - 20px);flex:0 0 calc(50% - 20px);max-width:calc(50% - 20px);border:1px solid #dcdfe5;padding:13px;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-radius:4px;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0px 10px 20px}@media (min-width: 1300px){body.tutor-screen-course-builder .tutor-course-available-instructors .added-instructor-item{-ms-flex:0 0 calc(33.333% - 20px);-webkit-box-flex:0;flex:0 0 calc(33.333% - 20px);max-width:calc(33.333% - 20px)}}@media (max-width: 546px){body.tutor-screen-course-builder .tutor-course-available-instructors .added-instructor-item{-ms-flex:0 0 100%;-webkit-box-flex:0;flex:0 0 100%;max-width:100%}}body.tutor-screen-course-builder .tutor-course-available-instructors .added-instructor-item .instructor-control{position:absolute;right:14px;top:50%;font-size:12px;-webkit-transform:translateY(-50%);transform:translateY(-50%);opacity:0;-webkit-transition:300ms;transition:300ms}body.tutor-screen-course-builder .tutor-course-available-instructors .added-instructor-item .instructor-control a{color:red;text-decoration:none}body.tutor-screen-course-builder .tutor-course-available-instructors .added-instructor-item:hover .instructor-control{opacity:1}body.tutor-screen-course-builder .tutor-course-available-instructors .added-instructor-item .instructor-icon{height:45px;width:45px;overflow:hidden;border-radius:50px;margin-right:15px}body.tutor-screen-course-builder .tutor-course-available-instructors .added-instructor-item .instructor-icon img{width:100%;height:auto}body.tutor-screen-course-builder .tutor-course-available-instructors .added-instructor-item .instructor-name{position:relative}body.tutor-screen-course-builder .tutor-course-available-instructors .added-instructor-item .instructor-name i.instructor-name-tooltip{-webkit-transition:300ms;transition:300ms;opacity:0;position:absolute;bottom:34px;right:9px;background:#2a344f;-webkit-transform:translateX(50%);transform:translateX(50%);color:#fff;font-size:12px;font-style:normal;padding:0 8px;border-radius:15px;line-height:20px;z-index:1}body.tutor-screen-course-builder .tutor-course-available-instructors .added-instructor-item .instructor-name i.instructor-name-tooltip::before{content:"";position:absolute;border:5px solid #2a344f;bottom:-3px;left:50%;margin-left:-5px;-webkit-transform:rotate(45deg);transform:rotate(45deg);z-index:-1}body.tutor-screen-course-builder .tutor-course-available-instructors .added-instructor-item .instructor-name img{display:inline-block;margin-left:10px;width:18px}body.tutor-screen-course-builder .tutor-course-available-instructors .added-instructor-item .instructor-name img:hover+i.instructor-name-tooltip{opacity:1}body.tutor-screen-course-builder #tutor-instructors h2{padding:15px;line-height:30px}body.tutor-screen-course-builder #tutor-instructors h2:before{content:"\\e93c";color:var(--tutor-primary-color);font-family:"tutor" !important;speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin-right:10px}body.tutor-screen-course-builder .tutor-course-builder-attachments{display:-webkit-box;display:-ms-flexbox;display:flex;display:-o-flex;display:-ms-flex;display:-moz-flex;display:-webkit-flex;flex-wrap:wrap;-o-flex-wrap:wrap;-ms-flex-wrap:wrap;-moz-flex-wrap:wrap;-webkit-flex-wrap:wrap;margin-left:-25px;-webkit-box-sizing:border-box;box-sizing:border-box}body.tutor-screen-course-builder .tutor-course-builder-attachments:empty{display:none}body.tutor-screen-course-builder .tutor-course-builder-attachments,body.tutor-screen-course-builder .tutor-course-builder-attachments:focus,body.tutor-screen-course-builder .tutor-course-builder-attachments:active,body.tutor-screen-course-builder .tutor-course-builder-attachments:hover,body.tutor-screen-course-builder .tutor-course-builder-attachments \*,body.tutor-screen-course-builder .tutor-course-builder-attachments \*:focus,body.tutor-screen-course-builder .tutor-course-builder-attachments \*:active,body.tutor-screen-course-builder .tutor-course-builder-attachments \*:hover{text-decoration:none;outline:none}body.tutor-screen-course-builder .tutor-course-builder-attachments .tutor-added-attachment{-webkit-box-flex:0;flex:0 0 calc(25% - 30px);-o-flex:0 0 calc(25% - 30px);-ms-flex:0 0 calc(25% - 30px);-moz-flex:0 0 calc(25% - 30px);-webkit-flex:0 0 calc(25% - 30px);max-width:calc(25% - 30px);border:1px solid #DCDFE5;padding:35px 20px 20px;position:relative;text-align:center;margin-left:30px;margin-bottom:30px;border-radius:4px;-webkit-transition:300ms;transition:300ms;min-width:120px}@media (max-width: 480px){body.tutor-screen-course-builder .tutor-course-builder-attachments .tutor-added-attachment{-webkit-box-flex:0;-ms-flex:0 0 calc(50% - 30px);flex:0 0 calc(50% - 30px);max-width:calc(50% - 30px)}}body.tutor-screen-course-builder .tutor-course-builder-attachments .tutor-added-attachment i{font-size:58px;line-height:58px;margin-bottom:25px;display:block}body.tutor-screen-course-builder .tutor-course-builder-attachments .tutor-added-attachment .tutor-delete-attachment{position:absolute;height:22px;width:22px;border:1px solid #DCDFE5;text-align:center;line-height:22px;top:-1px;right:-1px;font-size:10px;border-top-right-radius:4px;color:transparent;-webkit-transition:300ms;transition:300ms}body.tutor-screen-course-builder .tutor-course-builder-attachments .tutor-added-attachment:hover,body.tutor-screen-course-builder .tutor-course-builder-attachments .tutor-added-attachment:hover .tutor-delete-attachment{border-color:#D71830;color:#D71830}body.tutor-screen-course-builder .tutor-course-builder-attachments .tutor-added-attachment span{display:block}body.tutor-screen-course-builder .tutor-course-builder-attachments .tutor-added-attachment span a{font-size:14px;display:block;line-height:20px;color:#606C8F}body.tutor-screen-course-builder #tutor-course-content-builder-root{position:relative}body.tutor-screen-course-builder #tutor-course-content-builder-root .tutor-course-builder-header{line-height:50px;position:absolute;top:-69px;right:40px}body.tutor-screen-course-builder #tutor-course-content-builder-root .tutor-course-builder-header.has-postbox-header{top:-56px;right:96px}body.tutor-screen-course-builder.rtl .tutor-course-builder-header{right:auto;left:40px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .has-postbox-header{position:static !important}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend #tutor-course-content-wrap{border:1px solid #ddd;margin-top:20px}body.tutor-screen-course-builder #tutor-course-content-builder-root .tutor-metabox-add-topics .tutor-option-field-row,body.tutor-screen-course-builder #tutor-course-content-builder-root .tutor-topics-edit-form .tutor-option-field-row{padding:15px 0}body.tutor-screen-course-builder #tutor-course-content-builder-root .tutor-metabox-add-topics .tutor-option-field-row:last-child,body.tutor-screen-course-builder #tutor-course-content-builder-root .tutor-topics-edit-form .tutor-option-field-row:last-child{border-bottom:none}body.tutor-screen-course-builder #tutor-course-content-builder-root .tutor-metabox-add-topics .tutor-option-field-row textarea,body.tutor-screen-course-builder #tutor-course-content-builder-root .tutor-topics-edit-form .tutor-option-field-row textarea{height:120px}body.tutor-screen-course-builder #tutor-course-content-builder-root .new-topic-btn-wrap{padding:0;margin:15px}body.tutor-screen-course-builder #tutor-course-content-builder-root .new-topic-btn-wrap body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .new-topic-btn-wrap{margin-left:0;margin-right:0}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics{position:relative}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap a,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics a{text-decoration:none}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap a:focus,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics a:focus{box-shadow:none;-o-box-shadow:none;-ms-box-shadow:none;-moz-box-shadow:none;-webkit-box-shadow:none}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-quiz-builder-modal-tabs-notice a,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-quiz-builder-modal-tabs-notice a{color:#a4a4a4;text-decoration:underline}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .toggle-indicator:before,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .toggle-indicator:before{margin-top:20px}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-topics-wrap,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-topics-wrap{border-bottom:1px solid #f6f8fa;padding-bottom:0;margin:0}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-topics-wrap:nth-child(2n),body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-topics-wrap:nth-child(2n){background:#f6f8fa}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-topics-wrap .tutor-topic-title,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-topics-wrap .tutor-topic-title{display:-webkit-box;display:-ms-flexbox;display:flex;font-size:16px;font-weight:300;margin:0;line-height:40px;padding-left:15px;-webkit-box-align:center;-ms-flex-align:center;align-items:center}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-topics-wrap .tutor-topic-title a,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-topics-wrap .tutor-topic-title a{color:#393c40}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-topics-wrap .tutor-topic-title .topic-inner-title,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-topics-wrap .tutor-topic-title .topic-inner-title{-webkit-box-flex:1;-ms-flex:1 0 auto;flex:1 0 auto;cursor:pointer;max-width:calc(100% - 154px)}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-topics-wrap .tutor-topic-title span,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-topics-wrap .tutor-topic-title span{padding:0 5px}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-topics-wrap .tutor-topic-title span.expand-collapse-wrap,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-topics-wrap .tutor-topic-title span.expand-collapse-wrap{border-left:1px solid #e7e7e7}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-topics-wrap .tutor-topic-title span.expand-collapse-wrap a,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-topics-wrap .tutor-topic-title span.expand-collapse-wrap a{display:block;padding:0 13px}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-topics-wrap .tutor-topic-title .topic-edit-icon,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-topics-wrap .tutor-topic-title .topic-edit-icon{cursor:pointer}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-topics-wrap .tutor-topic-title .topic-delete-btn,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-topics-wrap .tutor-topic-title .topic-delete-btn{float:right}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-topics-wrap .tutor-topic-title .topic-delete-btn a,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-topics-wrap .tutor-topic-title .topic-delete-btn a{padding:0 10px}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-topics-wrap .tutor-topic-title .topic-delete-btn a:hover,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-topics-wrap .tutor-topic-title .topic-delete-btn a:hover{color:#ff0000}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-topics-wrap .tutor-topic-title .topic-delete-btn .dashicons,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-topics-wrap .tutor-topic-title .topic-delete-btn .dashicons{width:12px;height:12px;font-size:12px}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-topics-wrap .tutor-topics-body,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-topics-wrap .tutor-topics-body{background:#ebeef0;padding:15px 20px}body.tutor-screen-course-builder.rtl .tutor-topics-wrap .tutor-topic-title{padding-left:0;padding-right:15px}body.tutor-screen-course-builder.rtl .tutor-topics-wrap .tutor-topic-title span.expand-collapse-wrap{border-left:none;border-right:1px solid #e7e7e7}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-topics-wrap .course-move-handle,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-topics-wrap .course-move-handle{-ms-flex-item-align:center;align-self:center;-o-align-self:center;-ms-align-self:center;-moz-align-self:center;-webkit-align-self:center;cursor:-webkit-grab;cursor:grab;margin-right:5px}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-topics-wrap .course-move-handle:active,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-topics-wrap .course-move-handle:active{cursor:-webkit-grabbing;cursor:grabbing}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .drop-lessons p,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .drop-lessons p{margin:0}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .course-content-item:hover,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .course-content-item:hover{background-color:#ebeef0}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-lessons,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-lessons{padding-left:0;margin-bottom:20px}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-lessons:empty,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-lessons:empty{display:none}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-lessons.ui-sortable,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-lessons.ui-sortable{min-height:20px}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-lesson-top,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-lesson-top{display:-webkit-box;display:-ms-flexbox;display:flex;display:-o-flex;display:-ms-flex;display:-moz-flex;display:-webkit-flex;font-size:14px}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-lesson-top,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-lesson-top i,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-lesson-top,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-lesson-top i{font-size:15px}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-lesson-top i.tutor-icon-pencil,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-lesson-top i.tutor-icon-pencil{margin:0 10px}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-lesson-top i.tutor-icon-move,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-lesson-top i.tutor-icon-move{margin-right:10px;cursor:-webkit-grab;cursor:grab;line-height:unset}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-lesson-top i.tutor-icon-move:active,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-lesson-top i.tutor-icon-move:active{cursor:-webkit-grabbing;cursor:grabbing}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-lesson-top a,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-lesson-top a{color:#393c40}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-lesson-top a.tutor-updating-message i,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-lesson-top a.tutor-updating-message i{display:none}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-lesson-top a:nth-child(2),body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-lesson-top a:nth-child(2){-webkit-box-flex:1;flex:1;-o-flex:1;-ms-flex:1;-moz-flex:1;-webkit-flex:1}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-lesson-top .open-tutor-quiz-modal i,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-lesson-top .open-tutor-quiz-modal i{display:inline-block;vertical-align:middle;margin-right:5px}body.tutor-screen-course-builder.rtl #tutor-course-content-wrap .tutor-lesson-top i.tutor-icon-move{margin-right:0;margin-left:10px}body.tutor-screen-course-builder.rtl #tutor-course-content-wrap .tutor-lesson-top .open-tutor-quiz-modal i{margin-right:0;margin-left:5px}body.tutor-screen-course-builder .tutor-course-builder-content-container.tutor-untopics-lessons{border:1px solid #eee;padding:20px;margin:0 -1px -1px;background-color:#fbfbfb}body.tutor-screen-course-builder .tutor-course-builder-content-container.tutor-untopics-lessons h3{font-weight:300}body.tutor-screen-course-builder .tutor-course-builder-content-container.tutor-untopics-lessons .tutor-lessons{padding-left:0 !important}body.tutor-screen-course-builder .tutor-course-builder-content-container .course-content-item{padding:10px;border-bottom:1px solid #d9d9d9;background-color:#ebeef0}body.tutor-screen-course-builder .tutor-course-builder-content-container .course-content-item .tutor-lesson-top{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}body.tutor-screen-course-builder .tutor-course-builder-content-container .course-content-item .tutor-lesson-top a{color:#393c40;font-weight:400;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}body.tutor-screen-course-builder .tutor-course-builder-content-container .course-content-item .tutor-lesson-top a:last-child{margin-left:auto}body.tutor-screen-course-builder .tutor-course-builder-content-container .course-content-item .tutor-lesson-top a.open-tutor-lesson-modal{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-o-flex-grow:1;-ms-flex-grow:1;-moz-flex-grow:1;-webkit-flex-grow:1}body.tutor-screen-course-builder .tutor-course-builder-content-container .course-content-item .tutor-lesson-top i{padding-right:7px;color:#393c40}body.tutor-screen-course-builder .tutor-course-builder-content-container .course-content-item .tutor-lesson-top .tutor-updating-message i{display:none}body.tutor-screen-course-builder .tutor-course-builder-content-container .course-content-item .tutor-lesson-top i.tutor-icon-garbage:hover{color:red}body.tutor-screen-course-builder .tutor-add-quiz-button-wrap{padding:0;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center}body.tutor-screen-course-builder .tutor-add-quiz-button-wrap>\*+\*{margin-left:15px}body.tutor-screen-course-builder .tutor-add-quiz-button-wrap a{color:#2756d1}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend.admin-bar .tutor-dashboard-builder-header{top:32px}@media (max-width: 783px){body.tutor-screen-course-builder.tutor-screen-course-builder-frontend.admin-bar .tutor-dashboard-builder-header{top:46px}}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-option-field textarea,body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-form-group textarea{height:100px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-form-row{margin-top:20px;margin-bottom:20px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-section{margin-bottom:60px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-section .tutor-frontend-builder-item-scope{margin-bottom:30px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-section .tutor-frontend-builder-item-scope:last-child{margin-bottom:0}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-section .tutor-frontend-builder-item-scope .tutor-builder-item-heading{font-weight:500;line-height:21px;margin-bottom:10px;display:block}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-section .tutor-course-builder-section-title h3{font-size:20px;font-weight:700;color:#1d1f37;position:relative;overflow:hidden;z-index:1;margin:0 0 25px;cursor:pointer}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-section .tutor-course-builder-section-title h3::after{content:"";position:absolute;top:50%;left:0;width:100%;height:1px;background:var(--tutor-primary-color);z-index:-1}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-section .tutor-course-builder-section-title h3 span,body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-section .tutor-course-builder-section-title h3 i{float:left;background-color:#fff;font-size:20px;line-height:20px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-section .tutor-course-builder-section-title h3 i{color:var(--tutor-primary-color);font-size:14px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-section .tutor-course-builder-section-title h3 span{padding:0 15px 0 9px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-section .course-empty-content{margin:15px 0}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-section .tutor-course-builder-header{margin-top:-15px;text-align:right;font-size:12px;position:static}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-section .tutor-course-builder-header a{color:#393c40}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-section .tutor-course-builder-header a:first-child{padding-right:7px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-section .tutor-course-builder-header a:last-child{padding-left:7px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header{padding:10px 0px;border-bottom:2px solid #DCDFE5;position:fixed;top:0px;background:#fff;width:100%;z-index:99}@media (max-width: 991px){body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header{position:static}}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-row{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}@media (max-width: 991px){body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-row .tutor-col-auto{-webkit-box-flex:0;-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-row .tutor-col-auto:first-child{margin-bottom:15px}}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-button{white-space:nowrap;margin-left:auto}@media (max-width: 991px){body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-button{padding:6px 10px}}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-dashboard-builder-header-left{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-dashboard-builder-header-left .tutor-dashboard-builder-logo{padding:0 25px;position:relative}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-dashboard-builder-header-left .tutor-dashboard-builder-logo img{max-height:32px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-dashboard-builder-header-left button{margin:0;padding:0px 25px;line-height:30px;border:none;border-left:1px solid #DCDFE5;background:transparent;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;color:var(--tutor-text-color);-webkit-transition:300ms;transition:300ms;font-weight:500;white-space:nowrap}@media (max-width: 991px){body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-dashboard-builder-header-left button{border-left:none}}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-dashboard-builder-header-left button i{font-size:24px;line-height:30px;margin-right:9px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-dashboard-builder-header-left button:hover{color:var(--tutor-primary-color);background:transparent}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-dashboard-builder-header-left button:hover i{color:var(--tutor-primary-color)}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-dashboard-builder-header-right{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-dashboard-builder-header-right a{color:var(--tutor-text-color);font-weight:500;line-height:36px;padding:0 25px;-webkit-transition:300ms;transition:300ms;white-space:nowrap}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-dashboard-builder-header-right a i{font-size:36px;line-height:36px;display:inline-block;vertical-align:top;padding-right:9px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-dashboard-builder-header-right a:hover{color:var(--tutor-primary-color)}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-frontend-course-builder-section{padding:113px 0 45px;background-color:#ffffff}@media (max-width: 991px){body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-frontend-course-builder-section{padding-top:60px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-frontend-course-builder-section .tutor-col-8,body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-frontend-course-builder-section .tutor-col-4{width:100%;max-width:100%;-webkit-box-flex:0;-ms-flex:0 0 100%;flex:0 0 100%}}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-metabox-add-topics,body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-topics-edit-form{background:#f1f1f1;border:1px solid #dcdfe5;margin-top:25px;padding:20px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-level-meta{display:-webkit-box;display:-ms-flexbox;display:flex;display:-o-flex;display:-ms-flex;display:-moz-flex;display:-webkit-flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-o-justify-content:space-between;-ms-justify-content:space-between;-moz-justify-content:space-between;-webkit-justify-content:space-between}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-level-meta label{margin:0 40px 0 0;font-weight:600}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-frontend-builder-course-price .tutor-form-group input{margin-bottom:0}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-frontend-builder-course-price .tutor-styled-radio{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-btn-group{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-wrap:wrap;flex-wrap:wrap}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .lesson-modal-form-wrap .lesson-content-drip-wrap{padding:10px;border:1px solid #e4e4e4}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .lesson-modal-form-wrap .lesson-content-drip-wrap h3{margin:0 0 10px 0}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .select2-dropdown.increasezindex{z-index:9999999999999}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .select2-selection\_\_rendered \[class^="tutor-icon-"\]{vertical-align:middle}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-upload-tips{position:fixed;max-width:370px}@media (max-width: 991px){body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-upload-tips{position:static}}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-upload-tips .tutor-course-builder-tips-title{font-size:16px;color:#8C94A8;font-weight:700;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-upload-tips .tutor-course-builder-tips-title i{font-size:24px;color:var(--tutor-primary-color);margin-right:11px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-upload-tips ul{margin:0;padding:0 0 0 35px;list-style:none}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-upload-tips ul li{position:relative;margin-bottom:8px;line-height:24px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-upload-tips ul li::after{content:'';position:absolute;height:8px;width:8px;border-radius:50%;background:#DCDFE5;left:-26px;top:9px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend span.select2-container.select2-container--open{margin-top:32px !important}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .select2-search\_\_field{min-width:1em !important}body.tutor-screen-course-builder:not(.tutor-screen-course-builder-frontend) #tutor-course-topics .postbox-header h2{padding:15px;line-height:30px;display:block}body.tutor-screen-course-builder:not(.tutor-screen-course-builder-frontend) #tutor-course-topics .postbox-header h2:before{content:"\\e936";color:var(--tutor-primary-color);font-family:"tutor" !important;speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin-right:10px}body.tutor-screen-course-builder:not(.tutor-screen-course-builder-frontend) #tutor-course-topics .inside{padding:0;margin:0}body.tutor-screen-course-builder:not(.tutor-screen-course-builder-frontend) #tutor-course-topics .tutor-metabox-add-topics,body.tutor-screen-course-builder:not(.tutor-screen-course-builder-frontend) #tutor-course-topics .tutor-topics-edit-form{background:#f1f1f1;margin:0;padding:15px}
1
body.tutor-screen-course-builder .builder-course-thumbnail-upload-wrap>div{font-size:var(--tutor-text-size);line-height:25px;margin-bottom:20px;font-weight:400}body.tutor-screen-course-builder .builder-course-thumbnail-upload-wrap .button-transparent{float:right;background:transparent !important}body.tutor-screen-course-builder .builder-course-thumbnail-upload-wrap .button-transparent:hover{background:var(--tutor-primary-color) !important}body.tutor-screen-course-builder .builder-course-thumbnail-img-src{position:relative}body.tutor-screen-course-builder .builder-course-thumbnail-img-src .tutor-course-thumbnail-delete-btn{font-size:10px;position:absolute;top:-4px;left:-4px;color:#e53935;-webkit-transition:300ms;transition:300ms;border-radius:50%;width:20px;height:20px;line-height:20px;background:#fff;text-align:center}body.tutor-screen-course-builder .builder-course-thumbnail-img-src .tutor-course-thumbnail-delete-btn i{line-height:20px}body.tutor-screen-course-builder .tutor-video-upload-wrap .video\_source\_wrap\_html5{width:100%}body.tutor-screen-course-builder .tutor-video-upload-wrap .video\_source\_wrap\_html5 .video-metabox-source-html5-upload{background-color:#fff;text-align:center;padding:40px 20px;border:1px solid #dcdfe5;border-radius:3px}body.tutor-screen-course-builder .tutor-video-upload-wrap .video\_source\_wrap\_html5 .video-metabox-source-html5-upload p{margin-bottom:5px}body.tutor-screen-course-builder .tutor-video-upload-wrap .video\_source\_wrap\_html5 .video-metabox-source-html5-upload .video-upload-icon i{font-size:50px;color:var(--tutor-primary-color)}body.tutor-screen-course-builder .tutor-video-upload-wrap .video\_source\_wrap\_html5 .video-metabox-source-html5-upload .video\_source\_upload\_wrap\_html5{margin-top:10px}body.tutor-screen-course-builder .tutor-video-upload-wrap .video\_source\_wrap\_html5 .video-metabox-source-html5-poster{padding-top:20px}body.tutor-screen-course-builder .tutor-video-upload-wrap .video\_source\_wrap\_html5 .video-metabox-source-html5-poster .html5-video-poster{height:100px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}body.tutor-screen-course-builder .tutor-video-upload-wrap .video\_source\_wrap\_html5 .video-metabox-source-html5-poster .html5-video-poster img{height:100%;width:auto}body.tutor-screen-course-builder .tutor-video-upload-wrap .video\_source\_wrap\_html5 .video-metabox-source-html5-poster .html5-video-poster .tutor-builder-course-video-poster-text{text-align:left;padding-left:20px}body.tutor-screen-course-builder.rtl .html5-video-poster .tutor-builder-course-video-poster-text{padding-left:0;padding-right:20px}body.tutor-screen-course-builder .tutor-video-upload-wrap .video\_source\_wrap\_html5 .video-metabox-source-html5-poster .html5-video-poster .tutor-builder-course-video-poster-text h5{font-size:14px;font-weight:700;margin:0 0 6px;line-height:1}body.tutor-screen-course-builder .tutor-video-upload-wrap .video\_source\_wrap\_html5 .video-metabox-source-html5-poster .html5-video-poster .tutor-builder-course-video-poster-text span{font-size:14px;font-weight:400}body.tutor-screen-course-builder .tutor-video-upload-wrap .video\_source\_wrap\_html5 .video-metabox-source-html5-poster .tutor-row{display:-webkit-box;display:-ms-flexbox;display:flex;display:-o-flex;display:-ms-flex;display:-moz-flex;display:-webkit-flex;flex-wrap:wrap;-o-flex-wrap:wrap;-ms-flex-wrap:wrap;-moz-flex-wrap:wrap;-webkit-flex-wrap:wrap;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-o-justify-content:space-between;-ms-justify-content:space-between;-moz-justify-content:space-between;-webkit-justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-o-align-items:center;-ms-align-items:center;-moz-align-items:center;-webkit-align-items:center}body.tutor-screen-course-builder .tutor-video-upload-wrap .video\_source\_wrap\_html5 .video-metabox-source-html5-poster .tutor-row .tutor-col-5{width:38%}body.tutor-screen-course-builder .tutor-video-upload-wrap .video\_source\_wrap\_html5 .video-metabox-source-html5-poster .tutor-row .tutor-col-7{width:62%}body.tutor-screen-course-builder #tutor-metabox-course-settings-tabs{background-color:#fff;border:1px solid #e5e5e5;margin:1em 0}body.tutor-screen-course-builder:not(.tutor-screen-course-builder-frontend) #tutor-metabox-course-settings-tabs{border:none}body.tutor-screen-course-builder #tutor-metabox-course-settings-tabs .settings-tabs-heading{padding:1em;border-bottom:1px solid #e5e5e5}body.tutor-screen-course-builder #tutor-metabox-course-settings-tabs .settings-tabs-heading h3{font-size:14px;margin:0;line-height:1.4}body.tutor-screen-course-builder #tutor-metabox-course-settings-tabs .tutor-field-radio p{margin-top:0}body.tutor-screen-course-builder #tutor-metabox-course-settings-tabs .course-settings-tabs-container{display:-webkit-box;display:-ms-flexbox;display:flex;display:-o-flex;display:-ms-flex;display:-moz-flex;display:-webkit-flex}body.tutor-screen-course-builder #tutor-metabox-course-settings-tabs .course-settings-tabs-container .settings-tabs-navs-wrap{-webkit-box-flex:0;flex:0 0 200px;-o-flex:0 0 200px;-ms-flex:0 0 200px;-moz-flex:0 0 200px;-webkit-flex:0 0 200px;background:#F5F5F5}body.tutor-screen-course-builder #tutor-metabox-course-settings-tabs .course-settings-tabs-container .settings-tabs-navs-wrap .settings-tabs-navs{margin:0;list-style:none}body.tutor-screen-course-builder #tutor-metabox-course-settings-tabs .course-settings-tabs-container .settings-tabs-navs-wrap .settings-tabs-navs li{margin:0}body.tutor-screen-course-builder #tutor-metabox-course-settings-tabs .course-settings-tabs-container .settings-tabs-navs-wrap .settings-tabs-navs li a{display:block;padding-top:10px;padding-bottom:10px;padding-left:15px;padding-right:15px;color:#23282d;text-decoration:none;background:#F5F5F5;text-transform:capitalize;border-bottom:1px solid #e5e5e5;border-left:3px solid transparent}body.tutor-screen-course-builder #tutor-metabox-course-settings-tabs .course-settings-tabs-container .settings-tabs-navs-wrap .settings-tabs-navs li a:focus{-webkit-box-shadow:none;box-shadow:none}body.tutor-screen-course-builder #tutor-metabox-course-settings-tabs .course-settings-tabs-container .settings-tabs-navs-wrap .settings-tabs-navs li.active a{background-color:#ffffff;border-bottom:1px solid #e5e5e5;color:var(--tutor-primary-color);border-left:3px solid var(--tutor-primary-color)}body.tutor-screen-course-builder #tutor-metabox-course-settings-tabs .course-settings-tabs-container .settings-tabs-navs-wrap .settings-tabs-navs li:last-child a{border-bottom:none}body.tutor-screen-course-builder #tutor-metabox-course-settings-tabs .course-settings-tabs-container .settings-tabs-container{padding:1em;-webkit-box-flex:1;flex:1;-o-flex:1;-ms-flex:1;-moz-flex:1;-webkit-flex:1}body.tutor-screen-course-builder .tutor-course-available-instructors{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}body.tutor-screen-course-builder .tutor-course-available-instructors .added-instructor-item{-webkit-box-flex:0;-ms-flex:0 0 calc(50% - 20px);flex:0 0 calc(50% - 20px);max-width:calc(50% - 20px);border:1px solid #dcdfe5;padding:13px;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-radius:4px;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0px 10px 20px}@media (min-width: 1300px){body.tutor-screen-course-builder .tutor-course-available-instructors .added-instructor-item{-ms-flex:0 0 calc(33.333% - 20px);-webkit-box-flex:0;flex:0 0 calc(33.333% - 20px);max-width:calc(33.333% - 20px)}}@media (max-width: 546px){body.tutor-screen-course-builder .tutor-course-available-instructors .added-instructor-item{-ms-flex:0 0 100%;-webkit-box-flex:0;flex:0 0 100%;max-width:100%}}body.tutor-screen-course-builder .tutor-course-available-instructors .added-instructor-item .instructor-control{position:absolute;right:14px;top:50%;font-size:12px;-webkit-transform:translateY(-50%);transform:translateY(-50%);opacity:0;-webkit-transition:300ms;transition:300ms}body.tutor-screen-course-builder .tutor-course-available-instructors .added-instructor-item .instructor-control a{color:red;text-decoration:none}body.tutor-screen-course-builder .tutor-course-available-instructors .added-instructor-item:hover .instructor-control{opacity:1}body.tutor-screen-course-builder .tutor-course-available-instructors .added-instructor-item .instructor-icon{height:45px;width:45px;overflow:hidden;border-radius:50px;margin-right:15px}body.tutor-screen-course-builder .tutor-course-available-instructors .added-instructor-item .instructor-icon img{width:100%;height:auto}body.tutor-screen-course-builder .tutor-course-available-instructors .added-instructor-item .instructor-name{position:relative}body.tutor-screen-course-builder .tutor-course-available-instructors .added-instructor-item .instructor-name i.instructor-name-tooltip{-webkit-transition:300ms;transition:300ms;opacity:0;position:absolute;bottom:34px;right:9px;background:#2a344f;-webkit-transform:translateX(50%);transform:translateX(50%);color:#fff;font-size:12px;font-style:normal;padding:0 8px;border-radius:15px;line-height:20px;z-index:1}body.tutor-screen-course-builder .tutor-course-available-instructors .added-instructor-item .instructor-name i.instructor-name-tooltip::before{content:"";position:absolute;border:5px solid #2a344f;bottom:-3px;left:50%;margin-left:-5px;-webkit-transform:rotate(45deg);transform:rotate(45deg);z-index:-1}body.tutor-screen-course-builder .tutor-course-available-instructors .added-instructor-item .instructor-name img{display:inline-block;margin-left:10px;width:18px}body.tutor-screen-course-builder .tutor-course-available-instructors .added-instructor-item .instructor-name img:hover+i.instructor-name-tooltip{opacity:1}body.tutor-screen-course-builder #tutor-instructors h2{padding:15px;line-height:30px}body.tutor-screen-course-builder #tutor-instructors h2:before{content:"\\e93c";color:var(--tutor-primary-color);font-family:"tutor" !important;speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin-right:10px}body.tutor-screen-course-builder .tutor-course-builder-attachments{display:-webkit-box;display:-ms-flexbox;display:flex;display:-o-flex;display:-ms-flex;display:-moz-flex;display:-webkit-flex;flex-wrap:wrap;-o-flex-wrap:wrap;-ms-flex-wrap:wrap;-moz-flex-wrap:wrap;-webkit-flex-wrap:wrap;margin-left:-25px;-webkit-box-sizing:border-box;box-sizing:border-box}body.tutor-screen-course-builder .tutor-course-builder-attachments:empty{display:none}body.tutor-screen-course-builder .tutor-course-builder-attachments,body.tutor-screen-course-builder .tutor-course-builder-attachments:focus,body.tutor-screen-course-builder .tutor-course-builder-attachments:active,body.tutor-screen-course-builder .tutor-course-builder-attachments:hover,body.tutor-screen-course-builder .tutor-course-builder-attachments \*,body.tutor-screen-course-builder .tutor-course-builder-attachments \*:focus,body.tutor-screen-course-builder .tutor-course-builder-attachments \*:active,body.tutor-screen-course-builder .tutor-course-builder-attachments \*:hover{text-decoration:none;outline:none}body.tutor-screen-course-builder .tutor-course-builder-attachments .tutor-added-attachment{-webkit-box-flex:0;flex:0 0 calc(25% - 30px);-o-flex:0 0 calc(25% - 30px);-ms-flex:0 0 calc(25% - 30px);-moz-flex:0 0 calc(25% - 30px);-webkit-flex:0 0 calc(25% - 30px);max-width:calc(25% - 30px);border:1px solid #DCDFE5;padding:35px 20px 20px;position:relative;text-align:center;margin-left:30px;margin-bottom:30px;border-radius:4px;-webkit-transition:300ms;transition:300ms;min-width:120px}@media (max-width: 480px){body.tutor-screen-course-builder .tutor-course-builder-attachments .tutor-added-attachment{-webkit-box-flex:0;-ms-flex:0 0 calc(50% - 30px);flex:0 0 calc(50% - 30px);max-width:calc(50% - 30px)}}body.tutor-screen-course-builder .tutor-course-builder-attachments .tutor-added-attachment i{font-size:58px;line-height:58px;margin-bottom:25px;display:block}body.tutor-screen-course-builder .tutor-course-builder-attachments .tutor-added-attachment .tutor-delete-attachment{position:absolute;height:22px;width:22px;border:1px solid #DCDFE5;text-align:center;line-height:22px;top:-1px;right:-1px;font-size:10px;border-top-right-radius:4px;color:transparent;-webkit-transition:300ms;transition:300ms}body.tutor-screen-course-builder .tutor-course-builder-attachments .tutor-added-attachment:hover,body.tutor-screen-course-builder .tutor-course-builder-attachments .tutor-added-attachment:hover .tutor-delete-attachment{border-color:#D71830;color:#D71830}body.tutor-screen-course-builder .tutor-course-builder-attachments .tutor-added-attachment span{display:block}body.tutor-screen-course-builder .tutor-course-builder-attachments .tutor-added-attachment span a{font-size:14px;display:block;line-height:20px;color:#606C8F}body.tutor-screen-course-builder #tutor-course-content-builder-root{position:relative}body.tutor-screen-course-builder #tutor-course-content-builder-root .tutor-course-builder-header{line-height:50px;position:absolute;top:-69px;right:40px}body.tutor-screen-course-builder #tutor-course-content-builder-root .tutor-course-builder-header.has-postbox-header{top:-56px;right:96px}body.tutor-screen-course-builder.rtl .tutor-course-builder-header{right:auto;left:40px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .has-postbox-header{position:static !important}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend #tutor-course-content-wrap{border:1px solid #ddd;margin-top:20px}body.tutor-screen-course-builder #tutor-course-content-builder-root .tutor-metabox-add-topics .tutor-option-field-row,body.tutor-screen-course-builder #tutor-course-content-builder-root .tutor-topics-edit-form .tutor-option-field-row{padding:15px 0}body.tutor-screen-course-builder #tutor-course-content-builder-root .tutor-metabox-add-topics .tutor-option-field-row:last-child,body.tutor-screen-course-builder #tutor-course-content-builder-root .tutor-topics-edit-form .tutor-option-field-row:last-child{border-bottom:none}body.tutor-screen-course-builder #tutor-course-content-builder-root .tutor-metabox-add-topics .tutor-option-field-row textarea,body.tutor-screen-course-builder #tutor-course-content-builder-root .tutor-topics-edit-form .tutor-option-field-row textarea{height:120px}body.tutor-screen-course-builder #tutor-course-content-builder-root .new-topic-btn-wrap{padding:0;margin:15px}body.tutor-screen-course-builder #tutor-course-content-builder-root .new-topic-btn-wrap body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .new-topic-btn-wrap{margin-left:0;margin-right:0}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics{position:relative}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap a,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics a{text-decoration:none}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap a:focus,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics a:focus{box-shadow:none;-o-box-shadow:none;-ms-box-shadow:none;-moz-box-shadow:none;-webkit-box-shadow:none}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-quiz-builder-modal-tabs-notice a,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-quiz-builder-modal-tabs-notice a{color:#a4a4a4;text-decoration:underline}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .toggle-indicator:before,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .toggle-indicator:before{margin-top:20px}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-topics-wrap,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-topics-wrap{border-bottom:1px solid #f6f8fa;padding-bottom:0;margin:0}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-topics-wrap:nth-child(2n),body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-topics-wrap:nth-child(2n){background:#f6f8fa}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-topics-wrap .tutor-topic-title,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-topics-wrap .tutor-topic-title{display:-webkit-box;display:-ms-flexbox;display:flex;font-size:16px;font-weight:300;margin:0;line-height:40px;padding-left:15px;-webkit-box-align:center;-ms-flex-align:center;align-items:center}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-topics-wrap .tutor-topic-title a,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-topics-wrap .tutor-topic-title a{color:#393c40}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-topics-wrap .tutor-topic-title .topic-inner-title,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-topics-wrap .tutor-topic-title .topic-inner-title{-webkit-box-flex:1;-ms-flex:1 0 auto;flex:1 0 auto;cursor:pointer;max-width:calc(100% - 154px)}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-topics-wrap .tutor-topic-title span,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-topics-wrap .tutor-topic-title span{padding:0 5px}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-topics-wrap .tutor-topic-title span.expand-collapse-wrap,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-topics-wrap .tutor-topic-title span.expand-collapse-wrap{border-left:1px solid #e7e7e7}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-topics-wrap .tutor-topic-title span.expand-collapse-wrap a,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-topics-wrap .tutor-topic-title span.expand-collapse-wrap a{display:block;padding:0 13px}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-topics-wrap .tutor-topic-title .topic-edit-icon,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-topics-wrap .tutor-topic-title .topic-edit-icon{cursor:pointer}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-topics-wrap .tutor-topic-title .topic-delete-btn,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-topics-wrap .tutor-topic-title .topic-delete-btn{float:right}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-topics-wrap .tutor-topic-title .topic-delete-btn a,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-topics-wrap .tutor-topic-title .topic-delete-btn a{padding:0 10px}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-topics-wrap .tutor-topic-title .topic-delete-btn a:hover,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-topics-wrap .tutor-topic-title .topic-delete-btn a:hover{color:#ff0000}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-topics-wrap .tutor-topic-title .topic-delete-btn .dashicons,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-topics-wrap .tutor-topic-title .topic-delete-btn .dashicons{width:12px;height:12px;font-size:12px}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-topics-wrap .tutor-topics-body,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-topics-wrap .tutor-topics-body{background:#ebeef0;padding:15px 20px}body.tutor-screen-course-builder.rtl .tutor-topics-wrap .tutor-topic-title{padding-left:0;padding-right:15px}body.tutor-screen-course-builder.rtl .tutor-topics-wrap .tutor-topic-title span.expand-collapse-wrap{border-left:none;border-right:1px solid #e7e7e7}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-topics-wrap .course-move-handle,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-topics-wrap .course-move-handle{-ms-flex-item-align:center;align-self:center;-o-align-self:center;-ms-align-self:center;-moz-align-self:center;-webkit-align-self:center;cursor:-webkit-grab;cursor:grab;margin-right:5px}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-topics-wrap .course-move-handle:active,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-topics-wrap .course-move-handle:active{cursor:-webkit-grabbing;cursor:grabbing}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .drop-lessons p,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .drop-lessons p{margin:0}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .course-content-item:hover,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .course-content-item:hover{background-color:#ebeef0}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-lessons,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-lessons{padding-left:0;margin-bottom:20px}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-lessons:empty,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-lessons:empty{display:none}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-lessons.ui-sortable,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-lessons.ui-sortable{min-height:20px}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-lesson-top,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-lesson-top{display:-webkit-box;display:-ms-flexbox;display:flex;display:-o-flex;display:-ms-flex;display:-moz-flex;display:-webkit-flex;font-size:14px}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-lesson-top,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-lesson-top i,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-lesson-top,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-lesson-top i{font-size:15px}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-lesson-top i.tutor-icon-pencil,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-lesson-top i.tutor-icon-pencil{margin:0 10px}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-lesson-top i.tutor-icon-move,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-lesson-top i.tutor-icon-move{margin-right:10px;cursor:-webkit-grab;cursor:grab;line-height:unset}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-lesson-top i.tutor-icon-move:active,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-lesson-top i.tutor-icon-move:active{cursor:-webkit-grabbing;cursor:grabbing}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-lesson-top a,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-lesson-top a{color:#393c40}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-lesson-top a.tutor-updating-message i,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-lesson-top a.tutor-updating-message i{display:none}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-lesson-top a:nth-child(2),body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-lesson-top a:nth-child(2){-webkit-box-flex:1;flex:1;-o-flex:1;-ms-flex:1;-moz-flex:1;-webkit-flex:1}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-lesson-top .open-tutor-quiz-modal i,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-lesson-top .open-tutor-quiz-modal i{display:inline-block;vertical-align:middle;margin-right:5px}body.tutor-screen-course-builder.rtl #tutor-course-content-wrap .tutor-lesson-top i.tutor-icon-move{margin-right:0;margin-left:10px}body.tutor-screen-course-builder.rtl #tutor-course-content-wrap .tutor-lesson-top .open-tutor-quiz-modal i{margin-right:0;margin-left:5px}body.tutor-screen-course-builder .tutor-course-builder-content-container.tutor-untopics-lessons{border:1px solid #eee;padding:20px;margin:0 -1px -1px;background-color:#fbfbfb}body.tutor-screen-course-builder .tutor-course-builder-content-container.tutor-untopics-lessons h3{font-weight:300}body.tutor-screen-course-builder .tutor-course-builder-content-container.tutor-untopics-lessons .tutor-lessons{padding-left:0 !important}body.tutor-screen-course-builder .tutor-course-builder-content-container .course-content-item{padding:10px;border-bottom:1px solid #d9d9d9;background-color:#ebeef0}body.tutor-screen-course-builder .tutor-course-builder-content-container .course-content-item .tutor-lesson-top{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}body.tutor-screen-course-builder .tutor-course-builder-content-container .course-content-item .tutor-lesson-top a{color:#393c40;font-weight:400;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}body.tutor-screen-course-builder .tutor-course-builder-content-container .course-content-item .tutor-lesson-top a:last-child{margin-left:auto}body.tutor-screen-course-builder .tutor-course-builder-content-container .course-content-item .tutor-lesson-top a.open-tutor-lesson-modal{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-o-flex-grow:1;-ms-flex-grow:1;-moz-flex-grow:1;-webkit-flex-grow:1}body.tutor-screen-course-builder .tutor-course-builder-content-container .course-content-item .tutor-lesson-top i{padding-right:7px;color:#393c40}body.tutor-screen-course-builder .tutor-course-builder-content-container .course-content-item .tutor-lesson-top .tutor-updating-message i{display:none}body.tutor-screen-course-builder .tutor-course-builder-content-container .course-content-item .tutor-lesson-top i.tutor-icon-garbage:hover{color:red}body.tutor-screen-course-builder .tutor-add-quiz-button-wrap{padding:0;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center}body.tutor-screen-course-builder .tutor-add-quiz-button-wrap>\*+\*{margin-left:15px}body.tutor-screen-course-builder .tutor-add-quiz-button-wrap a{color:#2756d1}body.tutor-screen-course-builder .tutor-certificate-template-tab{max-width:735px;margin:auto;display:grid}body.tutor-screen-course-builder .tutor-certificate-template-tab .tab-header{justify-self:center;gap:15px;margin-bottom:32px;background:#f6f8fd;border-radius:5px;padding:4px}body.tutor-screen-course-builder .tutor-certificate-template-tab .tab-header.d-flex{display:-webkit-box;display:-ms-flexbox;display:flex;display:-o-flex;display:-ms-flex;display:-moz-flex;display:-webkit-flex}body.tutor-screen-course-builder .tutor-certificate-template-tab .tab-header-item{color:#9ca0ac;font-weight:500;font-size:15px;line-height:160%;cursor:pointer;padding:4px 20px;border-radius:5px;-webkit-transition:200ms linear;transition:200ms linear}body.tutor-screen-course-builder .tutor-certificate-template-tab .tab-header-item .item-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:7px}body.tutor-screen-course-builder .tutor-certificate-template-tab .tab-header-item .item-wrapper .icon{font-size:24px}body.tutor-screen-course-builder .tutor-certificate-template-tab .tab-header-item.is-active{color:#3e64de;background-color:white;-webkit-box-shadow:0px 1px 2px rgba(2,11,83,0.2);box-shadow:0px 1px 2px rgba(2,11,83,0.2)}body.tutor-screen-course-builder .tutor-certificate-template-tab .tab-header-item:not(.is-active) img{filter:grayscale(100%);-o-filter:grayscale(100%);-ms-filter:grayscale(100%);-moz-filter:grayscale(100%);-webkit-filter:grayscale(100%);opacity:0.55}body.tutor-screen-course-builder .tutor-certificate-template{display:grid;gap:25px;grid-template-columns:repeat(auto-fill, minmax(228px, 1fr));grid-template-rows:-webkit-min-content;grid-template-rows:min-content;position:relative}body.tutor-screen-course-builder .tutor-certificate-template .tutor-certificate-collapsible{display:none}body.tutor-screen-course-builder .tutor-certificate-template label.template-radio-field{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;cursor:pointer;position:relative}body.tutor-screen-course-builder .tutor-certificate-template label.template-radio-field img{max-width:100%}body.tutor-screen-course-builder .tutor-certificate-template label.template-radio-field input\[type='radio'\]{display:none;appearance:none;-moz-appearance:none;-webkit-appearance:none}body.tutor-screen-course-builder .tutor-certificate-template label.template-radio-field input\[type='radio'\]:checked+.icon-wrapper{-webkit-box-shadow:0 0 0 2px #3e64de;box-shadow:0 0 0 2px #3e64de}body.tutor-screen-course-builder .tutor-certificate-template label.template-radio-field input\[type='radio'\]:checked+.icon-wrapper::before{opacity:1;-webkit-transform:scale(1);transform:scale(1)}body.tutor-screen-course-builder .tutor-certificate-template label.template-radio-field span.icon-wrapper{-webkit-box-shadow:0 0 0 1px #eff1f6;box-shadow:0 0 0 1px #eff1f6;border-radius:6px;-webkit-transition:-webkit-box-shadow 200ms ease;transition:-webkit-box-shadow 200ms ease;transition:box-shadow 200ms ease;transition:box-shadow 200ms ease, -webkit-box-shadow 200ms ease;position:relative}body.tutor-screen-course-builder .tutor-certificate-template label.template-radio-field span.icon-wrapper::before{content:'';position:absolute;width:28px;height:28px;background-size:25px;background-repeat:no-repeat;background-position:left 2px center;background-image:url("data:image/svg+xml,%3Csvg width='25' height='25' viewBox='0 0 25 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.42318 12.9161C6.3686 12.8593 6.32513 12.7929 6.29503 12.7201C6.23499 12.558 6.23499 12.3797 6.29503 12.2175C6.32453 12.1445 6.36807 12.0779 6.42318 12.0215L7.33283 11.1496C7.38636 11.0869 7.45336 11.0371 7.52883 11.0038C7.60148 10.971 7.68026 10.9538 7.76001 10.9536C7.84642 10.9519 7.93217 10.9691 8.01129 11.0038C8.0895 11.0386 8.16031 11.0881 8.21985 11.1496L10.9639 13.8986L16.8539 8.00855C16.9119 7.94744 16.981 7.89797 17.0575 7.8628C17.1368 7.82861 17.2224 7.81149 17.3088 7.81255C17.3898 7.813 17.4698 7.83071 17.5435 7.8645C17.6171 7.8983 17.6827 7.94741 17.7359 8.00855L18.6456 8.89306C18.7007 8.9494 18.7442 9.01598 18.7737 9.08906C18.8338 9.25121 18.8338 9.42949 18.7737 9.59163C18.7436 9.66439 18.7002 9.73087 18.6456 9.78763L11.4061 16.9894C11.3522 17.0523 11.2853 17.1029 11.2101 17.1377C11.0492 17.2041 10.8685 17.2041 10.7076 17.1377C10.6323 17.1029 10.5655 17.0523 10.5116 16.9894L6.42318 12.9161Z' fill='white'/%3E%3C/svg%3E%0A");background-color:#3e64de;border-radius:50%;right:-15px;top:-15px;z-index:1;opacity:0;-webkit-transform:scale(1.15);transform:scale(1.15);-webkit-transition:200ms linear;transition:200ms linear}body.tutor-screen-course-builder .tutor-certificate-template label.template-radio-field span.icon-wrapper img{border-radius:6px}body.tutor-screen-course-builder .tutor-certificate-template label.template-radio-field .template-item-overlay{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:17px;position:absolute;inset:0;background:rgba(255,255,255,0.6);-webkit-backdrop-filter:blur(30px);backdrop-filter:blur(30px);border-radius:6px;visibility:hidden;opacity:0;-webkit-transition:200ms linear;transition:200ms linear}body.tutor-screen-course-builder .tutor-certificate-template label.template-radio-field .template-item-overlay .tutor-btn{border-radius:6px;opacity:0;-webkit-transform:translateY(10px);transform:translateY(10px);-webkit-transition:200ms linear;transition:200ms linear}body.tutor-screen-course-builder .tutor-certificate-template label.template-radio-field .template-item-overlay .tutor-btn.tutor-is-outline{background:transparent;color:var(--tutor-primary)}body.tutor-screen-course-builder .tutor-certificate-template label.template-radio-field .template-item-overlay .tutor-btn.tutor-is-outline:hover{background-color:var(--tutor-primary-hover);border-color:var(--tutor-primary-hover);color:var(--tutor-white)}body.tutor-screen-course-builder .tutor-certificate-template label.template-radio-field .template-item-overlay .tutor-btn:nth-child(1){-webkit-transition-delay:100ms;transition-delay:100ms}body.tutor-screen-course-builder .tutor-certificate-template label.template-radio-field .template-item-overlay .tutor-btn:nth-child(2){-webkit-transition-delay:130ms;transition-delay:130ms}body.tutor-screen-course-builder .tutor-certificate-template label.template-radio-field:hover .template-item-overlay{visibility:visible;opacity:1}body.tutor-screen-course-builder .tutor-certificate-template label.template-radio-field:hover .template-item-overlay .tutor-btn{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}body.tutor-screen-course-builder .tutor-certificate-template .template-load-more{position:absolute;width:100%;height:185px;bottom:0;background:-webkit-gradient(linear, left top, left bottom, color-stop(1.31%, rgba(255,255,255,0.0001)), color-stop(15.41%, rgba(255,255,255,0.74)), color-stop(38.83%, rgba(255,255,255,0.92)), to(#fff));background:linear-gradient(180deg, rgba(255,255,255,0.0001) 1.31%, rgba(255,255,255,0.74) 15.41%, rgba(255,255,255,0.92) 38.83%, #fff 100%);text-align:center;display:grid;place-content:center}body.tutor-screen-course-builder .tutor-certificate-template .template-load-more .load-more-btn{border:none;background:transparent;outline:none;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:5px}body.tutor-screen-course-builder .tutor-certificate-template .template-load-more .load-more-btn span{font-size:20px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend.admin-bar .tutor-dashboard-builder-header{top:32px}@media (max-width: 783px){body.tutor-screen-course-builder.tutor-screen-course-builder-frontend.admin-bar .tutor-dashboard-builder-header{top:46px}}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-option-field textarea,body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-form-group textarea{height:100px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-form-row{margin-top:20px;margin-bottom:20px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-section{margin-bottom:60px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-section .tutor-frontend-builder-item-scope{margin-bottom:30px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-section .tutor-frontend-builder-item-scope:last-child{margin-bottom:0}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-section .tutor-frontend-builder-item-scope .tutor-builder-item-heading{font-weight:500;line-height:21px;margin-bottom:10px;display:block}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-section .tutor-course-builder-section-title h3{font-size:20px;font-weight:700;color:#1d1f37;position:relative;overflow:hidden;z-index:1;margin:0 0 25px;cursor:pointer}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-section .tutor-course-builder-section-title h3::after{content:"";position:absolute;top:50%;left:0;width:100%;height:1px;background:var(--tutor-primary-color);z-index:-1}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-section .tutor-course-builder-section-title h3 span,body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-section .tutor-course-builder-section-title h3 i{float:left;background-color:#fff;font-size:20px;line-height:20px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-section .tutor-course-builder-section-title h3 i{color:var(--tutor-primary-color);font-size:14px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-section .tutor-course-builder-section-title h3 span{padding:0 15px 0 9px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-section .course-empty-content{margin:15px 0}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-section .tutor-course-builder-header{margin-top:-15px;text-align:right;font-size:12px;position:static}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-section .tutor-course-builder-header a{color:#393c40}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-section .tutor-course-builder-header a:first-child{padding-right:7px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-section .tutor-course-builder-header a:last-child{padding-left:7px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header{padding:10px 0px;border-bottom:2px solid #DCDFE5;position:fixed;top:0px;background:#fff;width:100%;z-index:99}@media (max-width: 991px){body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header{position:static}}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-row{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}@media (max-width: 991px){body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-row .tutor-col-auto{-webkit-box-flex:0;-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-row .tutor-col-auto:first-child{margin-bottom:15px}}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-button{white-space:nowrap;margin-left:auto}@media (max-width: 991px){body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-button{padding:6px 10px}}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-dashboard-builder-header-left{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-dashboard-builder-header-left .tutor-dashboard-builder-logo{padding:0 25px;position:relative}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-dashboard-builder-header-left .tutor-dashboard-builder-logo img{max-height:32px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-dashboard-builder-header-left button{margin:0;padding:0px 25px;line-height:30px;border:none;border-left:1px solid #DCDFE5;background:transparent;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;color:var(--tutor-text-color);-webkit-transition:300ms;transition:300ms;font-weight:500;white-space:nowrap}@media (max-width: 991px){body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-dashboard-builder-header-left button{border-left:none}}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-dashboard-builder-header-left button i{font-size:24px;line-height:30px;margin-right:9px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-dashboard-builder-header-left button:hover{color:var(--tutor-primary-color);background:transparent}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-dashboard-builder-header-left button:hover i{color:var(--tutor-primary-color)}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-dashboard-builder-header-right{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-dashboard-builder-header-right a{color:var(--tutor-text-color);font-weight:500;line-height:36px;padding:0 25px;-webkit-transition:300ms;transition:300ms;white-space:nowrap}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-dashboard-builder-header-right a i{font-size:36px;line-height:36px;display:inline-block;vertical-align:top;padding-right:9px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-dashboard-builder-header-right a:hover{color:var(--tutor-primary-color)}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-frontend-course-builder-section{padding:113px 0 45px;background-color:#ffffff}@media (max-width: 991px){body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-frontend-course-builder-section{padding-top:60px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-frontend-course-builder-section .tutor-col-8,body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-frontend-course-builder-section .tutor-col-4{width:100%;max-width:100%;-webkit-box-flex:0;-ms-flex:0 0 100%;flex:0 0 100%}}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-metabox-add-topics,body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-topics-edit-form{background:#f1f1f1;border:1px solid #dcdfe5;margin-top:25px;padding:20px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-level-meta{display:-webkit-box;display:-ms-flexbox;display:flex;display:-o-flex;display:-ms-flex;display:-moz-flex;display:-webkit-flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-o-justify-content:space-between;-ms-justify-content:space-between;-moz-justify-content:space-between;-webkit-justify-content:space-between}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-level-meta label{margin:0 40px 0 0;font-weight:600}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-frontend-builder-course-price .tutor-form-group input{margin-bottom:0}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-frontend-builder-course-price .tutor-styled-radio{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-btn-group{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-wrap:wrap;flex-wrap:wrap}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .lesson-modal-form-wrap .lesson-content-drip-wrap{padding:10px;border:1px solid #e4e4e4}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .lesson-modal-form-wrap .lesson-content-drip-wrap h3{margin:0 0 10px 0}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .select2-dropdown.increasezindex{z-index:9999999999999}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .select2-selection\_\_rendered \[class^="tutor-icon-"\]{vertical-align:middle}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-upload-tips{position:fixed;max-width:370px}@media (max-width: 991px){body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-upload-tips{position:static}}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-upload-tips .tutor-course-builder-tips-title{font-size:16px;color:#8C94A8;font-weight:700;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-upload-tips .tutor-course-builder-tips-title i{font-size:24px;color:var(--tutor-primary-color);margin-right:11px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-upload-tips ul{margin:0;padding:0 0 0 35px;list-style:none}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-upload-tips ul li{position:relative;margin-bottom:8px;line-height:24px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-upload-tips ul li::after{content:'';position:absolute;height:8px;width:8px;border-radius:50%;background:#DCDFE5;left:-26px;top:9px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend span.select2-container.select2-container--open{margin-top:32px !important}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .select2-search\_\_field{min-width:1em !important}body.tutor-screen-course-builder:not(.tutor-screen-course-builder-frontend) #tutor-course-topics .postbox-header h2{padding:15px;line-height:30px;display:block}body.tutor-screen-course-builder:not(.tutor-screen-course-builder-frontend) #tutor-course-topics .postbox-header h2:before{content:"\\e936";color:var(--tutor-primary-color);font-family:"tutor" !important;speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin-right:10px}body.tutor-screen-course-builder:not(.tutor-screen-course-builder-frontend) #tutor-course-topics .inside{padding:0;margin:0}body.tutor-screen-course-builder:not(.tutor-screen-course-builder-frontend) #tutor-course-topics .tutor-metabox-add-topics,body.tutor-screen-course-builder:not(.tutor-screen-course-builder-frontend) #tutor-course-topics .tutor-topics-edit-form{background:#f1f1f1;margin:0;padding:15px}
tutor/tags/1.9.11/assets/js/tutor-admin.js
r2610239
r2615802
1
(()=>{var o={623:()=>{function g(t){return(g="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})(t)}function y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var o=null==t?null:"undefined"!=typeof Symbol&&t\[Symbol.iterator\]||t\["@@iterator"\];if(null!=o){var a,n,i=\[\],r=!0,s=!1;try{for(o=o.call(t);!(r=(a=o.next()).done)&&(i.push(a.value),!e||i.length!==e);r=!0);}catch(t){s=!0,n=t}finally{try{r||null==o.return||o.return()}finally{if(s)throw n}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return a(t,e);var o=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(o="Object"===o&&t.constructor?t.constructor.name:o)||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?a(t,e):void 0}}(t,e)||function(){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 a(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,a=new Array(e);o<e;o++)a\[o\]=t\[o\];return a}window.tutor\_get\_nonce\_data=function(t){var e=window.\_tutorobject||{},o=e.nonce\_key||"",e=e\[o\]||"";return t?{key:o,value:e}:(t=e,(e=o)in(o={})?Object.defineProperty(o,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):o\[e\]=t,o)},window.tutor\_popup=function(r,o,a){var s,u=this;return this.popup\_wrapper=function(t){var e=""===o?"":'<img class="tutor-pop-icon" src="'+window.\_tutorobject.tutor\_url+"assets/images/"+o+'.svg"/>';return"<"+t+' class="tutor-component-popup-container"> <div class="tutor-component-popup-'+a+'"> <div class="tutor-component-content-container">'+e+'</div> <div class="tutor-component-button-container"></div> </div> </'+t+">"},this.popup=function(o){var t=o.title?"<h3>"+o.title+"</h3>":"",e=o.description?"<p>"+o.description+"</p>":"",a=Object.keys(o.buttons||{}).map(function(t){var e=o.buttons\[t\],t=e.id?"tutor-popup-"+e.id:"";return r('<button id="'+t+'" class="tutor-button tutor-button-'+e.class+'">'+e.title+"</button>").click(e.callback)}),n=(s=r(u.popup\_wrapper(o.wrapper\_tag||"div"))).find(".tutor-component-content-container");n.append(t),o.after\_title&&n.append(o.after\_title),n.append(e),o.after\_description&&n.append(o.after\_description),s.click(function(){r(this).remove()}).children().click(function(t){t.stopPropagation()});for(var i=0;i<a.length;i++)s.find(".tutor-component-button-container").append(a\[i\]);return r("body").append(s),s},{popup:this.popup}},window.tutorDotLoader=function(t){return' \\n <div class="tutor-dot-loader '.concat(t||"",'">\\n <span class="dot dot-1"></span>\\n <span class="dot dot-2"></span>\\n <span class="dot dot-3"></span>\\n <span class="dot dot-4"></span>\\n </div>')},window.tutor\_date\_picker=function(){var t;jQuery.datepicker&&(t=\_tutorobject.wp\_date\_format||"yy-mm-dd",$(".tutor\_date\_picker").datepicker({dateFormat:t}))},jQuery(document).ready(function(d){"use strict";var t=wp.i18n,n=t.\_\_;t.\_x,t.\_n,t.\_nx;function o(){var t;jQuery.datepicker&&(t=\_tutorobject.wp\_date\_format||"yy-mm-dd",d(".tutor\_date\_picker").datepicker({dateFormat:t})),d(document).on("keydown",".hasDatepicker, .tutor\_date\_picker",function(t){8!==t.keyCode&&t.preventDefault()})}function s(){d(".tutor-field-slider").each(function(){var t=d(this),o=t.closest(".tutor-field-type-slider").find('input\[type="hidden"\]'),a=t.closest(".tutor-field-type-slider").find(".tutor-field-type-slider-value"),e=parseFloat(t.closest(".tutor-field-type-slider").attr("data-min")),n=parseFloat(t.closest(".tutor-field-type-slider").attr("data-max"));t.slider({range:"max",min:e,max:n,value:o.val(),slide:function(t,e){a.text(e.value),o.val(e.value)}})})}function e(t){var e=t.element;return d('<span><i class="tutor-icon-'+d(e).data("icon")+'"></i> '+t.text+"</span>")}function i(){jQuery().sortable&&(d(".course-contents").sortable({handle:".course-move-handle",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){a()}}),d(".tutor-lessons:not(.drop-lessons)").sortable({connectWith:".tutor-lessons",items:"div.course-content-item",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){a()}}))}function a(){var i={};d(".tutor-topics-wrap").each(function(t,e){var o=d(this),a=parseInt(o.attr("id").match(/\\d+/)\[0\],10),n={};o.find(".course-content-item").each(function(t,e){var o=d(this),o=parseInt(o.attr("id").match(/\\d+/)\[0\],10);n\[t\]=o}),i\[t\]={topic\_id:a,lesson\_ids:n}}),d("#tutor\_topics\_lessons\_sorting").val(JSON.stringify(i))}function r(){return{init:function(){d(document).on("click",".tutor-select .tutor-select-option",function(t){t.preventDefault();var e=d(this);"true"!==e.attr("data-is-pro")?(t=e.html().trim(),e.closest(".tutor-select").find(".select-header .lead-option").html(t),e.closest(".tutor-select").find(".select-header input.tutor\_select\_value\_holder").val(e.attr("data-value")).trigger("change"),e.closest(".tutor-select-options").hide(),disableAddoption()):alert("Tutor Pro version required")}),d(document).on("click",".tutor-select .select-header",function(t){t.preventDefault(),d(this).closest(".tutor-select").find(".tutor-select-options").slideToggle()}),this.setValue(),this.hideOnOutSideClick()},setValue:function(){d(".tutor-select").each(function(){var t=d(this).find(".tutor-select-option");t.length&&t.each(function(){var t,e=d(this);"selected"===e.attr("data-selected")&&(t=e.html().trim(),e.closest(".tutor-select").find(".select-header .lead-option").html(t),e.closest(".tutor-select").find(".select-header input.tutor\_select\_value\_holder").val(e.attr("data-value")))})})},hideOnOutSideClick:function(){d(document).mouseup(function(t){var e=d(".tutor-select-options");d(t.target).closest(".select-header").length||e.is(t.target)||0!==e.has(t.target).length||e.hide()})},reInit:function(){this.setValue()}}}o(),s(),jQuery().select2&&d(".videosource\_select2").select2({width:"100%",templateSelection:e,templateResult:e,allowHtml:!0}),d(document).on("change",".tutor\_lesson\_video\_source",function(t){var e=d(this),o=d(this).val();o?d(".video-metabox-source-input-wrap").show():d(".video-metabox-source-input-wrap").hide(),e.closest(".tutor-option-field").find(".video-metabox-source-item").hide(),e.closest(".tutor-option-field").find(".video\_source\_wrap\_"+o).show()}),d(document).on("click",".tutor-course-thumbnail-upload-btn",function(t){t.preventDefault();var e,o=d(this);e||(e=wp.media({title:n("Select or Upload Media Of Your Chosen Persuasion","tutor"),button:{text:n("Use this media","tutor")},multiple:!1})).on("select",function(){var t=e.state().get("selection").first().toJSON();o.closest(".tutor-thumbnail-wrap").find(".thumbnail-img").attr("src",t.url),o.closest(".tutor-thumbnail-wrap").find("input").val(t.id),d(".tutor-course-thumbnail-delete-btn").show()}),e.open()}),d(document).on("click",".tutor-course-thumbnail-delete-btn",function(t){t.preventDefault();var e=d(this),t=e.closest(".tutor-thumbnail-wrap").find(".thumbnail-img").attr("data-placeholder-src");e.closest(".tutor-thumbnail-wrap").find(".thumbnail-img").attr("src",t),e.closest(".tutor-thumbnail-wrap").find("input").val(""),d(".tutor-course-thumbnail-delete-btn").hide()}),d(document).on("click",".create\_new\_topic\_btn",function(t){t.preventDefault(),d(".tutor-metabox-add-topics").slideToggle()}),d(document).on("click","#tutor-add-topic-btn",function(t){t.preventDefault();var e=d(this),t=e.closest(".tutor-metabox-add-topics").find("input, textarea").serializeObject();t.action="tutor\_add\_course\_topic",d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(d("#tutor-course-content-wrap").html(t.data.course\_contents),e.closest(".tutor-metabox-add-topics").find('input\[type!="hidden"\], textarea').each(function(){d(this).val("")}),e.closest(".tutor-metabox-add-topics").slideUp(),i())},complete:function(){e.removeClass("tutor-updating-message")}})}),d(".tutor-zoom-meeting-modal-wrap").on("submit",".tutor-meeting-modal-form",function(t){t.preventDefault();var e=d(this),o=e.serializeObject(),t=Intl.DateTimeFormat().resolvedOptions().timeZone;o.timezone=t;var a=e.find('button\[type="submit"\]');d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:o,beforeSend:function(){a.addClass("tutor-updating-message")},success:function(t){t.success?tutor\_toast(n("Success","tutor"),a.data("toast\_success\_message"),"success"):tutor\_toast(n("Update Error","tutor"),n("Meeting Update Failed","tutor"),"error"),t.course\_contents?(d(t.selector).html(t.course\_contents),"#tutor-course-content-wrap"==t.selector&&i(),d(".tutor-zoom-meeting-modal-wrap").removeClass("show")):location.reload()},complete:function(){a.removeClass("tutor-updating-message")}})}),d(document).on("change keyup",".course-edit-topic-title-input",function(t){t.preventDefault(),d(this).closest(".tutor-topics-top").find(".topic-inner-title").html(d(this).val())}),d(document).on("click",".topic-edit-icon",function(t){t.preventDefault(),d(this).closest(".tutor-topics-top").find(".tutor-topics-edit-form").slideToggle()}),d(document).on("click",".tutor-topics-edit-button",function(t){t.preventDefault();var e=d(this),o=e.closest(".tutor-topics-wrap"),t=parseInt(o.attr("id").match(/\\d+/)\[0\],10),a=e.closest(".tutor-topics-wrap").find('\[name="topic\_title"\]').val(),o=e.closest(".tutor-topics-wrap").find('\[name="topic\_summery"\]').val();d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{topic\_title:a,topic\_summery:o,topic\_id:t,action:"tutor\_update\_topic"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(e.closest(".tutor-topics-wrap").find("span.topic-inner-title").text(a),e.closest(".tutor-topics-wrap").find(".tutor-topics-edit-form").slideUp())},complete:function(){e.removeClass("tutor-updating-message")}})}),d(document).on("click",".open-tutor-lesson-modal",function(t){t.preventDefault();var e=d(this),o=e.attr("data-lesson-id"),a=e.attr("data-topic-id"),n=d("#post\_ID").val();d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{lesson\_id:o,topic\_id:a,course\_id:n,action:"tutor\_load\_edit\_lesson\_modal"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){d(".tutor-lesson-modal-wrap .modal-container").html(t.data.output),d(".tutor-lesson-modal-wrap").attr({"data-lesson-id":o,"data-topic-id":a}).addClass("show");t=(t=tinyMCEPreInit.mceInit.tutor\_editor\_config)||tinyMCEPreInit.mceInit.course\_description;tinymce.init(t),tinymce.execCommand("mceRemoveEditor",!1,"tutor\_lesson\_modal\_editor"),tinyMCE.execCommand("mceAddEditor",!1,"tutor\_lesson\_modal\_editor"),d(document).trigger("lesson\_modal\_loaded",{lesson\_id:o,topic\_id:a,course\_id:n})},complete:function(){quicktags({id:"tutor\_lesson\_modal\_editor"}),e.removeClass("tutor-updating-message")}})}),d(document).on("click",".lesson\_thumbnail\_upload\_btn",function(t){t.preventDefault();var e,o=d(this);e||(e=wp.media({title:n("Select or Upload Media Of Your Chosen Persuasion","tutor"),button:{text:n("Use this media","tutor")},multiple:!1})).on("select",function(){var t=e.state().get("selection").first().toJSON();o.closest(".tutor-thumbnail-wrap").find(".thumbnail-img").html('<img src="'+t.url+'" alt="" /><a href="javascript:;" class="tutor-lesson-thumbnail-delete-btn"><i class="tutor-icon-line-cross"></i></a>'),o.closest(".tutor-thumbnail-wrap").find("input").val(t.id),d(".tutor-lesson-thumbnail-delete-btn").show()}),e.open()}),d(document).on("click",".tutor-lesson-thumbnail-delete-btn",function(t){t.preventDefault();t=d(this);t.closest(".tutor-thumbnail-wrap").find(".\_lesson\_thumbnail\_id").val(""),t.closest(".tutor-thumbnail-wrap").find(".thumbnail-img").html(""),t.hide()}),d(document).on("click",".tutor-delete-lesson-btn",function(t){var e;t.preventDefault(),confirm(n("Are you sure?","tutor"))&&(t=(e=d(this)).attr("data-lesson-id"),d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{lesson\_id:t,action:"tutor\_delete\_lesson\_by\_id"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&e.closest(".course-content-item").remove()},complete:function(){e.removeClass("tutor-updating-message")}}))}),d(document).on("click",".topic-delete-btn a",function(t){d(this).attr("data-topic-id");confirm(n("Are you sure to delete?","tutor"))||t.preventDefault()}),d(document).on("click",".tutor-expand-all-topic",function(t){t.preventDefault(),d(".tutor-topics-body").slideDown(),d(".expand-collapse-wrap i").removeClass("tutor-icon-light-down").addClass("tutor-icon-light-up")}),d(document).on("click",".tutor-collapse-all-topic",function(t){t.preventDefault(),d(".tutor-topics-body").slideUp(),d(".expand-collapse-wrap i").removeClass("tutor-icon-light-up").addClass("tutor-icon-light-down")}),d(document).on("click",".topic-inner-title, .expand-collapse-wrap",function(t){t.preventDefault();t=d(this);t.closest(".tutor-topics-wrap").find(".tutor-topics-body").slideToggle(),t.closest(".tutor-topics-wrap").find(".expand-collapse-wrap i").toggleClass("tutor-icon-light-down tutor-icon-light-up")}),d(document).on("click",".quiz-modal-btn-first-step",function(t){t.preventDefault();var e,o,a,n=d(this),i=d('\[name="quiz\_title"\]'),r=i.val(),t=d('\[name="quiz\_description"\]').val();r?(i.closest(".tutor-quiz-builder-group").find(".quiz\_form\_msg").html(""),e=d("#post\_ID").val(),o=n.closest(".tutor-modal-wrap").attr("quiz-for-post-id"),d("#tutor\_quiz\_builder\_quiz\_id").length?(a=d("#tutor\_quiz\_builder\_quiz\_id").val(),d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{quiz\_title:r,quiz\_description:t,quiz\_id:a,topic\_id:o,action:"tutor\_quiz\_builder\_quiz\_update"},beforeSend:function(){n.addClass("tutor-updating-message")},success:function(t){d("#tutor-quiz-"+a).html(t.data.output\_quiz\_row),d('#tutor-quiz-modal-tab-items-wrap a\[href="#quiz-builder-tab-questions"\]').trigger("click"),s()},complete:function(){n.removeClass("tutor-updating-message")}})):d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{quiz\_title:r,quiz\_description:t,course\_id:e,topic\_id:o,action:"tutor\_create\_quiz\_and\_load\_modal"},beforeSend:function(){n.addClass("tutor-updating-message")},success:function(t){d(".tutor-quiz-builder-modal-wrap .modal-container").html(t.data.output),d("#tutor-topics-"+o+" .tutor-lessons").append(t.data.output\_quiz\_row),d('#tutor-quiz-modal-tab-items-wrap a\[href="#quiz-builder-tab-questions"\]').trigger("click"),s(),d(document).trigger("quiz\_modal\_loaded",{topic\_id:o,course\_id:e})},complete:function(){n.removeClass("tutor-updating-message")}})):i.closest(".tutor-quiz-builder-group").find(".quiz\_form\_msg").html("Please enter quiz title")}),d(document).on("click",".open-tutor-quiz-modal",function(t){t.preventDefault();var e=d(this),o=e.attr("data-quiz-id"),a=e.attr("data-topic-id");null==a&&(a=e.closest(".tutor-modal-wrap").attr("quiz-for-post-id"));var n=d("#post\_ID").val();d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{quiz\_id:o,topic\_id:a,course\_id:n,action:"tutor\_load\_edit\_quiz\_modal"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){d(".tutor-quiz-builder-modal-wrap .modal-container").html(t.data.output),d(".tutor-quiz-builder-modal-wrap").attr("data-quiz-id",o).attr("quiz-for-post-id",a).addClass("show"),e.attr("data-back-to-tab")&&(t=e.attr("data-back-to-tab"),d('#tutor-quiz-modal-tab-items-wrap a\[href="'+t+'"\]').trigger("click")),d(document).trigger("quiz\_modal\_loaded",{quiz\_id:o,topic\_id:a,course\_id:n}),s(),jQuery().sortable&&d(".quiz-builder-questions-wrap").sortable({handle:".question-sorting",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){var a;a={},d(".quiz-builder-question-wrap").each(function(t,e){var o=d(this),o=parseInt(o.attr("data-question-id"),10);a\[t\]=o}),d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{sorted\_question\_ids:a,action:"tutor\_quiz\_question\_sorting"}})}})},complete:function(){e.removeClass("tutor-updating-message")}})}),d(document).on("click",".quiz-modal-settings-save-btn",function(t){t.preventDefault();var e=d(this),o=d(".tutor-quiz-builder-modal-wrap").attr("data-quiz-id"),a=d("#current\_topic\_id\_for\_quiz").val(),t=d("#quiz-builder-tab-settings :input, #quiz-builder-tab-advanced-options :input").serializeObject();t.topic\_id=a,t.quiz\_id=o,t.action="tutor\_quiz\_modal\_update\_settings",d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&d("#tutor-course-content-wrap").html(t.data.course\_contents),t.success?tutor\_toast(n("Success","tutor"),e.data("toast\_success\_message"),"success"):tutor\_toast(n("Update Error","tutor"),n("Quiz Update Failed","tutor"),"error")},complete:function(){e.removeClass("tutor-updating-message"),"modal\_close"===e.attr("data-action")&&d(".tutor-modal-wrap").removeClass("show")}})}),d(document).on("click",".quiz-modal-question-save-btn",function(t){t.preventDefault();var e=d(this),o=d(".quiz\_question\_form :input").serializeObject();o.action="tutor\_quiz\_modal\_update\_question";t=e.closest(".tutor-modal-wrap").attr("quiz-for-post-id");o.topic\_id=t,d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:o,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success?e.closest(".tutor-quiz-builder-modal-contents").find(".open-tutor-quiz-modal").trigger("click"):void 0!==t.data&&d("#quiz\_validation\_msg\_wrap").html(t.data.validation\_msg)},complete:function(){e.removeClass("tutor-updating-message")}})}),d(document).on("click",".modal-close-btn",function(t){t.preventDefault(),d(".tutor-modal-wrap").removeClass("show")}),d(document).on("keyup",function(t){27===t.keyCode&&d(".tutor-modal-wrap").removeClass("show")}),d(document).on("click",".tutor-add-quiz-btn",function(t){t.preventDefault();var e=d(this),o=d(this).closest(".tutor\_add\_quiz\_wrap").attr("data-add-quiz-under"),t=d(this).data("topic-id");d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{quiz\_for\_post\_id:o,current\_topic\_id:t,action:"tutor\_load\_quiz\_builder\_modal"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){d(".tutor-quiz-builder-modal-wrap .modal-container").html(t.data.output),d(".tutor-quiz-builder-modal-wrap").attr("quiz-for-post-id",o).addClass("show")},complete:function(){e.removeClass("tutor-updating-message")}})}),d(document).on("click",".tutor-quiz-modal-tab-item",function(t){t.preventDefault();var e=d(this),o=d('\[name="quiz\_title"\]');o.val()?(o.closest(".tutor-quiz-builder-form-row").find(".quiz\_form\_msg").html(""),t=e.attr("href"),d(".quiz-builder-tab-container").hide(),d(t).show(),d("a.tutor-quiz-modal-tab-item").removeClass("active"),e.addClass("active")):o.closest(".tutor-quiz-builder-form-row").find(".quiz\_form\_msg").html('<p class="quiz-form-warning">Please save the quiz first</p>')}),d(document).on("click",".quiz-modal-btn-next, .quiz-modal-btn-back",function(t){t.preventDefault();t=d(this).attr("href");d('#tutor-quiz-modal-tab-items-wrap a\[href="'+t+'"\]').trigger("click")}),d(document).on("click",".quiz-modal-tab-navigation-btn.quiz-modal-btn-cancel",function(t){t.preventDefault(),d(".tutor-modal-wrap").removeClass("show")}),d(document).on("click",".tutor-quiz-open-question-form",function(t){t.preventDefault();var e=d(this),o=d("#tutor\_quiz\_builder\_quiz\_id").val(),a=d("#post\_ID").val(),t=e.attr("data-question-id"),a={quiz\_id:o,course\_id:a,action:"tutor\_quiz\_builder\_get\_question\_form"};t&&(a.question\_id=t),d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:a,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){d(".tutor-quiz-builder-modal-contents").html(t.data.output),r().reInit(),jQuery().sortable&&d("#tutor\_quiz\_question\_answers").sortable({handle:".tutor-quiz-answer-sort-icon",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){var a;a={},d(".tutor-quiz-answer-wrap").each(function(t,e){var o=d(this),o=parseInt(o.attr("data-answer-id"),10);a\[t\]=o}),d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{sorted\_answer\_ids:a,action:"tutor\_quiz\_answer\_sorting"}})}}),disableAddoption()},complete:function(){e.removeClass("tutor-updating-message")}})}),d(document).on("click",".tutor-quiz-question-trash",function(t){t.preventDefault();var e=d(this),t=e.attr("data-question-id");d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{question\_id:t,action:"tutor\_quiz\_builder\_question\_delete"},beforeSend:function(){e.closest(".quiz-builder-question-wrap").remove()}})}),d(document).on("click",".add\_question\_answers\_option:not(.disabled)",function(t){t.preventDefault();var e=d(this),o=e.attr("data-question-id"),t=d(".quiz\_question\_form :input").serializeObject();t.question\_id=o,t.action="tutor\_quiz\_add\_question\_answers",d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){d("#tutor\_quiz\_question\_answer\_form").html(t.data.output),disableAddoption()},complete:function(){e.removeClass("tutor-updating-message")}})}),d(document).on("click",".tutor-quiz-answer-edit a",function(t){t.preventDefault();var e=d(this),t=e.closest(".tutor-quiz-answer-wrap").attr("data-answer-id");d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{answer\_id:t,action:"tutor\_quiz\_edit\_question\_answer"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){d("#tutor\_quiz\_question\_answer\_form").html(t.data.output)},complete:function(){e.removeClass("tutor-updating-message")}})}),d(document).on("click","#quiz-answer-save-btn",function(t){t.preventDefault();var e=d(this),t=d(".quiz\_question\_form :input").serializeObject();t.action="tutor\_save\_quiz\_answer\_options",d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){d("#quiz\_validation\_msg\_wrap").html(""),e.addClass("tutor-updating-message")},success:function(t){d("#tutor\_quiz\_question\_answers").trigger("refresh")},complete:function(){e.removeClass("tutor-updating-message")}})}),d(document).on("click","#quiz-answer-edit-btn",function(t){t.preventDefault();var e=d(this),t=d(".quiz\_question\_form :input").serializeObject();t.action="tutor\_update\_quiz\_answer\_options",d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){d("#tutor\_quiz\_question\_answers").trigger("refresh")},complete:function(){e.removeClass("tutor-updating-message")}})}),d(document).on("change",".tutor-quiz-answers-mark-correct-wrap input",function(t){t.preventDefault();var e=d(this),o=e.val(),t=1;e.prop("checked")||(t=0),d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{answer\_id:o,inputValue:t,action:"tutor\_mark\_answer\_as\_correct"}})}),d(document).on("refresh","#tutor\_quiz\_question\_answers",function(t){t.preventDefault();var e=d(this),o=e.attr("data-question-id"),t=d(".tutor\_select\_value\_holder").val();d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{question\_id:o,question\_type:t,action:"tutor\_quiz\_builder\_get\_answers\_by\_question"},beforeSend:function(){e.addClass("tutor-updating-message"),d("#tutor\_quiz\_question\_answer\_form").html("")},success:function(t){t.success&&e.html(t.data.output)},complete:function(){e.removeClass("tutor-updating-message")}})}),d(document).on("click",".tutor-quiz-answer-trash-wrap a.answer-trash-btn",function(t){t.preventDefault();var e=d(this),t=e.attr("data-answer-id");d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{answer\_id:t,action:"tutor\_quiz\_builder\_delete\_answer"},beforeSend:function(){e.closest(".tutor-quiz-answer-wrap").remove()}})}),d(document).on("click",".tutor-delete-quiz-btn",function(t){var e;t.preventDefault(),confirm(n("Are you sure?","tutor"))&&(t=(e=d(this)).attr("data-quiz-id"),d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{quiz\_id:t,action:"tutor\_delete\_quiz\_by\_id"},beforeSend:function(){e.closest(".course-content-item").remove()}}))}),r().init(),d(document).on("change","input.tutor\_select\_value\_holder",function(t){d(this);d(".add\_question\_answers\_option").trigger("click"),d("#tutor\_quiz\_question\_answers").trigger("refresh")}),d(document).on("click",".tutor-media-upload-btn",function(t){t.preventDefault();var e,o=d(this);e||(e=wp.media({title:n("Select or Upload Media Of Your Chosen Persuasion","tutor"),button:{text:n("Use this media","tutor")},multiple:!1})).on("select",function(){var t=e.state().get("selection").first().toJSON();o.html('<img src="'+t.url+'" alt="" />'),o.closest(".tutor-media-upload-wrap").find("input").val(t.id)}),e.open()}),d(document).on("click",".tutor-media-upload-trash",function(t){t.preventDefault();t=d(this);t.closest(".tutor-media-upload-wrap").find(".tutor-media-upload-btn").html('<i class="tutor-icon-image1"></i>'),t.closest(".tutor-media-upload-wrap").find("input").val("")});var u,c=(u=0,function(t,e){clearTimeout(u),u=setTimeout(t,e)});d(document).on("click",".tutor-add-instructor-btn",function(t){t.preventDefault();var e=d(this),t=d("#post\_ID").val();d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{course\_id:t,action:"tutor\_load\_instructors\_modal"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(d(".tutor-instructors-modal-wrap .modal-container").html(t.data.output),d(".tutor-instructors-modal-wrap").addClass("show"))},complete:function(){e.removeClass("tutor-updating-message")}})}),d(document).on("change keyup",".tutor-instructors-modal-wrap .tutor-modal-search-input",function(t){t.preventDefault();var o=d(this),a=d(".tutor-modal-wrap");c(function(){var t=o.val(),e=d("#post\_ID").val();d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{course\_id:e,search\_terms:t,action:"tutor\_load\_instructors\_modal"},beforeSend:function(){a.addClass("loading")},success:function(t){t.success&&(d(".tutor-instructors-modal-wrap .modal-container").html(t.data.output),d(".tutor-instructors-modal-wrap").addClass("show"))},complete:function(){a.removeClass("loading")}})},1e3)}),d(document).on("click",".add\_instructor\_to\_course\_btn",function(t){t.preventDefault();var e=d(this),o=d(".tutor-modal-wrap"),t=d("#post\_ID").val(),o=o.find("input").serializeObject();o.course\_id=t,o.action="tutor\_add\_instructors\_to\_course",d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:o,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(d(".tutor-course-available-instructors").html(t.data.output),d(".tutor-modal-wrap").removeClass("show"))},complete:function(){e.removeClass("tutor-updating-message")}})}),d(document).on("click",".tutor-instructor-delete-btn",function(t){t.preventDefault();var e=d(this),o=d("#post\_ID").val(),t=e.closest(".added-instructor-item").attr("data-instructor-id");d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{course\_id:o,instructor\_id:t,action:"detach\_instructor\_from\_course"},success:function(t){t.success&&e.closest(".added-instructor-item").remove()}})}),d(document).on("click",".settings-tabs-navs li",function(t){t.preventDefault();var e=d(this),o=e.find("a").attr("data-target"),t=e.find("a").attr("href");e.addClass("active").siblings("li.active").removeClass("active"),d(".settings-tab-wrap").removeClass("active").hide(),d(o).addClass("active").show(),window.history.pushState({},"",t)}),d(document).on("lesson\_modal\_loaded quiz\_modal\_loaded assignment\_modal\_loaded",function(t,e){jQuery().select2&&d(".select2\_multiselect").select2({dropdownCssClass:"increasezindex"}),o()}),d(document).on("lesson\_modal\_loaded",function(t,e){d(".tutor-lesson-modal-wrap .modal-title h1").html(n("Lesson","tutor"))}),d(document).on("assignment\_modal\_loaded",function(t,e){d(".tutor-lesson-modal-wrap .modal-title h1").html(n("Assignment","tutor"))}),d(document).on("keyup change",".tutor-number-validation",function(t){var e=d(this),o=parseInt(e.val()),a=parseInt(e.attr("data-min")),n=parseInt(e.attr("data-max"));o<a?e.val(a):n<o&&e.val(n)}),d(document).on("click",".tutor-instructor-feedback",function(t){t.preventDefault();var e=d(this);d.ajax({url:window.ajaxurl||\_tutorobject.ajaxurl,type:"POST",data:{attempts\_id:e.data("attemptid"),feedback:d(".tutor-instructor-feedback-content").val(),action:"tutor\_instructor\_feedback"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(e.closest(".course-content-item").remove(),tutor\_toast(n("Success","tutor"),e.data("toast\_success\_message"),"success"))},complete:function(){e.removeClass("tutor-updating-message")}})});var l=d(".tutor-announcement-add-new"),m=d(".tutor-announcement-edit"),p=d(".tutor-announcement-delete"),\_=d(".tutor-announcement-details"),t=d(".tutor-announcement-close-btn"),f=d(".tutor-accouncement-create-modal"),h=d(".tutor-accouncement-update-modal"),v=d(".tutor-accouncement-details-modal");function w(t,e){var o=new URL(window.location.href),a=o.searchParams;return a.set(t,e),o.search=a.toString(),\_tutorobject.is\_admin?a.set("paged",1):a.set("current\_page",1),o.search=a.toString(),o.toString()}d(l).click(function(){f.addClass("show"),d("#tutor-annoucement-backend-create-modal").addClass("show")}),d(\_).click(function(){var t=d(this).attr("announcement-date"),e=d(this).attr("announcement-id"),o=d(this).attr("course-id"),a=d(this).attr("course-name"),n=d(this).attr("announcement-title"),i=d(this).attr("announcement-summary");d(".tutor-announcement-detail-content").html("<h3>".concat(n,"</h3><p>").concat(i,"</p>")),d(".tutor-announcement-detail-course-info p").html("".concat(a)),d(".tutor-announcement-detail-date-info p").html("".concat(t)),d("#tutor-announcement-edit-from-detail").attr("announcement-id",e),d("#tutor-announcement-edit-from-detail").attr("course-id",o),d("#tutor-announcement-edit-from-detail").attr("announcement-title",n),d("#tutor-announcement-edit-from-detail").attr("announcement-summary",i),d("#tutor-announcement-delete-from-detail").attr("announcement-id",e),v.addClass("show")}),d(m).click(function(){v&&v.removeClass("show");var t=d(this).attr("announcement-id"),e=d(this).attr("course-id"),o=d(this).attr("announcement-title"),a=d(this).attr("announcement-summary");d("#tutor-announcement-course-id").val(e),d("#announcement\_id").val(t),d("#tutor-announcement-title").val(o),d("#tutor-announcement-summary").val(a),h.addClass("show")}),d(t).click(function(){f.removeClass("show"),h.removeClass("show"),v.removeClass("show"),d("#tutor-annoucement-backend-create-modal").removeClass("show")}),d(".tutor-announcements-form").on("submit",function(t){t.preventDefault();var e=d(this).find('button\[type="submit"\]'),t=d(".tutor-announcements-form").serialize()+"&action=tutor\_announcement\_create&action\_type=create";d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){if(d(".tutor-alert").remove(),"success"==t.status&&location.reload(),"validation\_error"==t.status){d(".tutor-announcements-create-alert").append('<div class="tutor-alert alert-warning"></div>');for(var e=0,o=Object.entries(t.message);e<o.length;e++){var a=y(o\[e\],2),a=(a\[0\],a\[1\]);d(".tutor-announcements-create-alert .tutor-alert").append("<li>".concat(a,"</li>"))}}"fail"==t.status&&d(".tutor-announcements-create-alert").html("<li>".concat(t.message,"</li>"))},error:function(t){console.log(t)}})}),d(".tutor-announcements-update-form").on("submit",function(t){t.preventDefault();var e=d(this).find('button\[type="submit"\]'),t=d(".tutor-announcements-update-form").serialize()+"&action=tutor\_announcement\_create&action\_type=update";d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){if(d(".tutor-alert").remove(),"success"==t.status&&location.reload(),"validation\_error"==t.status){d(".tutor-announcements-update-alert").append('<div class="tutor-alert alert-warning"></div>');for(var e=0,o=Object.entries(t.message);e<o.length;e++){var a=y(o\[e\],2),a=(a\[0\],a\[1\]);d(".tutor-announcements-update-alert > .tutor-alert").append("<li>".concat(a,"</li>"))}}"fail"==t.status&&d(".tutor-announcements-create-alert").html("<li>".concat(t.message,"</li>"))},error:function(){}})}),d(p).click(function(){var t=d(this).attr("announcement-id"),e=d("#tutor-announcement-tr-"+t);confirm("Do you want to delete?")&&d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{action:"tutor\_announcement\_delete",announcement\_id:t},beforeSend:function(){},success:function(t){e.remove(),v.length&&v.removeClass("show"),"fail"==t.status&&console.log(t.message)},error:function(){}})}),d(".tutor-announcement-course-sorting").on("change",function(t){window.location=w("course-id",d(this).val())}),d(".tutor-announcement-order-sorting").on("change",function(t){window.location=w("order",d(this).val())}),d(".tutor-announcement-date-sorting").on("change",function(t){window.location=w("date",d(this).val())}),d(".tutor-announcement-search-sorting").on("click",function(t){window.location=w("search",d(".tutor-announcement-search-field").val())}),d(document).click(function(){d(".tutor-dropdown").removeClass("show")}),d(".tutor-dropdown").click(function(t){t.stopPropagation(),d(".tutor-dropdown").hasClass("show")&&d(".tutor-dropdown").removeClass("show"),d(this).addClass("show")});var b,p=".video\_source\_wrap\_external\_url input, .video\_source\_wrap\_vimeo input, .video\_source\_wrap\_youtube input, .video\_source\_wrap\_html5, .video\_source\_upload\_wrap\_html5";d("body").on("paste",p,function(t){t.stopImmediatePropagation();var r=d(this).closest(".lesson-modal-form-wrap").find(".tutor-option-field-video-duration"),e=r.find("label"),o=d(this).hasClass("video\_source\_wrap\_html5")||d(this).hasClass("video\_source\_upload\_wrap\_html5"),a=d(this).data("autofill\_url");d(this).data("autofill\_url",null);function n(t){t?0==e.find("img").length&&e.append(' <img src="'+window.\_tutorobject.loading\_icon\_url+'" style="display:inline-block"/>'):e.find("img").remove()}function i(t){for(var e=Math.floor(t/3600),o=Math.floor((t-3600\*e)/60),t=Math.round(t-3600\*e-60\*o),a=\[e=e<10?"0"+e:e,o=o<10?"0"+o:o,t=t<10?"0"+t:t\],n=r.find("input"),i=0;i<3;i++)n.eq(i).val(a\[i\])}var s,u,c,t=o?d(this).find("span").data("video\_url"):a||t.originalEvent.clipboardData.getData("text");o||d(this).parent().hasClass("video\_source\_wrap\_external\_url")?((s=document.createElement("video")).addEventListener("loadedmetadata",function(){i(s.duration),n(!1)}),n(!0),s.src=t):d(this).parent().hasClass("video\_source\_wrap\_vimeo")?(u=(c=t.match(/^.\*(vimeo\\.com\\/)((channels\\/\[A-z\]+\\/)|(groups\\/\[A-z\]+\\/videos\\/))?(\[0-9\]+)/))?c\[5\]:null)&&(n(!0),d.getJSON("http://vimeo.com/api/v2/video/"+u+"/json",function(t){Array.isArray(t)&&t\[0\]&&void 0!==t\[0\].duration&&i(t\[0\].duration),n(!1)})):d(this).parent().hasClass("video\_source\_wrap\_youtube")&&(u=!(!(c=t.match(/^.\*((youtu.be\\/)|(v\\/)|(\\/u\\/\\w\\/)|(embed\\/)|(watch\\?))\\??v?=?(\[^#&?\]\*).\*/))||11!=c\[7\].length)&&c\[7\],c=d(this).data("youtube\_api\_key"),u&&c&&(c="https://www.googleapis.com/youtube/v3/videos?id="+u+"&key="+c+"&part=contentDetails",n(!0),d.getJSON(c,function(t){"object"==g(t)&&t.items&&t.items\[0\]&&t.items\[0\].contentDetails&&t.items\[0\].contentDetails.duration&&i(function(t){t=(t=t.match(/PT(\\d+H)?(\\d+M)?(\\d+S)?/)).slice(1).map(function(t){if(null!=t)return t.replace(/\\D/,"")});return 3600\*(parseInt(t\[0\])||0)+60\*(parseInt(t\[1\])||0)+(parseInt(t\[2\])||0)}(t.items\[0\].contentDetails.duration)),n(!1)})))}).on("input",p,function(){b&&clearTimeout(b);var e=d(this);b=setTimeout(function(){var t=(t=e.val())?t.trim():"";console.log("Trigger",t),t&&e.data("autofill\_url",t).trigger("paste")},700)}),d(".tutor-form-submit-through-ajax").submit(function(t){t.preventDefault();var e=d(this),o=d(this).attr("action")||window.location.href,a=d(this).attr("method")||"GET",t=d(this).serializeObject();e.find("button").addClass("tutor-updating-message"),d.ajax({url:o,type:a,data:t,success:function(){tutor\_toast(n("Success","tutor"),e.data("toast\_success\_message"),"success")},complete:function(){e.find("button").removeClass("tutor-updating-message")}})}),d.ajaxSetup({data:tutor\_get\_nonce\_data()})}),jQuery.fn.serializeObject=function(){var t={},e=this.serializeArray();return jQuery.each(e,function(){t\[this.name\]?(t\[this.name\].push||(t\[this.name\]=\[t\[this.name\]\]),t\[this.name\].push(this.value||"")):t\[this.name\]=this.value||""}),t},window.tutor\_toast=function(t,e,o){var a=((window.\_tutorobject||{}).tutor\_url||"")+"assets/images/";jQuery(".tutor-toast-parent").length||jQuery("body").append('<div class="tutor-toast-parent"></div>');var n=jQuery(' <div> <div> <img src="'+{success:a+"icon-check.svg",error:a+"icon-cross.svg"}\[o\]+'"/> </div> <div> <div> <b>'+t+"</b> <span>"+e+'</span> </div> </div> <div> <i class="tutor-toast-close tutor-icon-line-cross"></i> </div> </div>');n.find(".tutor-toast-close").click(function(){n.remove()}),jQuery(".tutor-toast-parent").append(n),setTimeout(function(){n&&n.fadeOut("fast",function(){jQuery(this).remove()})},5e3)},window.disableAddoption=function(){function t(t){t.classList.contains("disabled")||t.classList.add("disabled")}function e(t){t.classList.contains("disabled")&&t.classList.remove("disabled")}var o=document.querySelector(".tutor\_select\_value\_holder").value,a=document.getElementById("tutor\_quiz\_question\_answers"),n=document.getElementById("tutor\_quiz\_question\_answer\_form"),i=document.querySelector(".add\_question\_answers\_option");("open\_ended"===o||"short\_answer"===o||("true\_false"===o||"fill\_in\_the\_blank"===o)&&(n.hasChildNodes()||a.hasChildNodes())?t:e)(i)}}},a={};function i(t){var e=a\[t\];if(void 0!==e)return e.exports;e=a\[t\]={exports:{}};return o\[t\](e,e.exports,i),e.exports}(()=>{"use strict";i(623);function n(t){return(n="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})(t)}jQuery(document).ready(function(r){var t=wp.i18n,i=t.\_\_,e=(t.\_x,t.\_n,t.\_nx,i("Search students","tutor"));function a(){jQuery().sortable&&(r(".course-contents").sortable({handle:".course-move-handle",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){o()}}),r(".tutor-lessons:not(.drop-lessons)").sortable({connectWith:".tutor-lessons",items:"div.course-content-item",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){o()}}))}function o(){var i={};r(".tutor-topics-wrap").each(function(t,e){var o=r(this),a=parseInt(o.attr("id").match(/\\d+/)\[0\],10),n={};o.find(".course-content-item").each(function(t,e){var o=r(this),o=parseInt(o.attr("id").match(/\\d+/)\[0\],10);n\[t\]=o}),i\[t\]={topic\_id:a,lesson\_ids:n}}),r("#tutor\_topics\_lessons\_sorting").val(JSON.stringify(i))}jQuery().wpColorPicker&&r(".tutor\_colorpicker").wpColorPicker(),jQuery().select2&&r(".tutor\_select2").select2(),r(".tutor-option-nav-tabs li a").click(function(t){t.preventDefault();t=r(this).attr("data-tab");r(".option-nav-item").removeClass("current"),r(this).closest("li").addClass("current"),r(".tutor-option-nav-page").hide(),r(t).addClass("current-page").show(),window.history.pushState("obj","",r(this).attr("href"))}),r("#save\_tutor\_option").click(function(t){t.preventDefault(),r(this).closest("form").submit()}),r("#tutor-option-form").submit(function(t){t.preventDefault();var e=r(this),t=e.serializeObject();r.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.find(".button").addClass("tutor-updating-message")},success:function(t){t.success?tutor\_toast(i("Saved","tutor"),e.data("toast\_success\_message"),"success"):tutor\_toast(i("Request Error","tutor"),i("Could not save","tutor"),"error")},complete:function(){e.find(".button").removeClass("tutor-updating-message")}})}),r(document).on("click",".withdraw-method-nav li a",function(t){t.preventDefault();t=r(this).attr("data-target-id");r(".withdraw-method-form-wrap").hide(),r("#"+t).show()}),a(),r(document).on("click",".update\_lesson\_modal\_btn",function(t){t.preventDefault();var e=r(this),o="tutor\_lesson\_modal\_editor",t=tinyMCE.get(o),t=t?t.getContent():r("#"+o).val(),o=r(this).closest("form").serializeObject();o.lesson\_content=t,r.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:o,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(r("#tutor-course-content-wrap").html(t.data.course\_contents),a(),r(".tutor-lesson-modal-wrap").removeClass("show"),tutor\_toast(i("Lesson Updated","tutor"),e.data("toast\_success\_message"),"success"))},complete:function(){e.removeClass("tutor-updating-message")}})}),r(document).on("change",".tutor\_lesson\_video\_source",function(t){var e=r(this).val();r('\[class^="video\_source\_wrap"\]').hide(),r(".video\_source\_wrap\_"+e).show(),"html5"===e?r(".tutor-video-poster-field").show():r(".tutor-video-poster-field").hide()}),r(document).on("click",".video\_source\_wrap\_html5 .video\_upload\_btn",function(t){t.preventDefault();var e,o=r(this);e||(e=wp.media({title:i("Select or Upload Media Of Your Choice","tutor"),button:{text:i("Upload media","tutor")},library:{type:"video"},multiple:!1})).on("select",function(){var t=e.state().get("selection").first().toJSON();o.closest(".video\_source\_wrap\_html5").find("span.video\_media\_id").data("video\_url",t.url).text(t.id).trigger("paste").closest("p").show(),o.closest(".video\_source\_wrap\_html5").find("input.input\_source\_video\_id").val(t.id)}),e.open()}),r(document).on("click","a.tutor-delete-attachment",function(t){t.preventDefault(),r(this).closest(".tutor-added-attachment").remove()}),r(document).on("click",".tutorUploadAttachmentBtn",function(t){t.preventDefault();var a,n=r(this);a||(a=wp.media({title:i("Select or Upload Media Of Your Choice","tutor"),button:{text:i("Upload media","tutor")},multiple:!0})).on("select",function(){var t=a.state().get("selection").toJSON();if(t.length)for(var e=0;e<t.length;e++){var o=t\[e\],o='<div class="tutor-added-attachment"><i class="tutor-icon-archive"></i> <a href="javascript:;" class="tutor-delete-attachment tutor-icon-line-cross"></a> <span> <a href="'+o.url+'">'+o.filename+'</a> </span><input type="hidden" name="tutor\_attachments\[\]" value="'+o.id+'"></div>';n.closest(".tutor-lesson-attachments-metabox").find(".tutor-added-attachments-wrap").append(o)}}),a.open()}),\_tutorobject.open\_tutor\_admin\_menu&&((t=r("#adminmenu")).find('\[href="admin.php?page=tutor"\]').closest("li.wp-has-submenu").addClass("wp-has-current-submenu"),t.find('\[href="admin.php?page=tutor"\]').closest("li.wp-has-submenu").find("a.wp-has-submenu").removeClass("wp-has-current-submenu").addClass("wp-has-current-submenu")),r(document).on("click",".tutor-option-media-upload-btn",function(t){t.preventDefault();var e,o=r(this);e||(e=wp.media({title:i("Select or Upload Media Of Your Choice","tutor"),button:{text:i("Upload media","tutor")},multiple:!1})).on("select",function(){var t=e.state().get("selection").first().toJSON();o.closest(".option-media-wrap").find(".option-media-preview").html('<img src="'+t.url+'" alt="" />'),o.closest(".option-media-wrap").find("input").val(t.id),o.closest(".option-media-wrap").find(".tutor-media-option-trash-btn").show()}),e.open()}),r(document).on("click",".tutor-media-option-trash-btn",function(t){t.preventDefault();t=r(this);t.closest(".option-media-wrap").find("img").remove(),t.closest(".option-media-wrap").find("input").val(""),t.closest(".option-media-wrap").find(".tutor-media-option-trash-btn").hide()}),r(document).on("change",".tutor\_addons\_list\_item",function(t){var e=r(this),o=e.prop("checked")?1:0,e=e.attr("name");r.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{isEnable:o,addonFieldName:e,action:"addon\_enable\_disable"},success:function(t){t.success}})}),r(document).on("submit","#new-instructor-form",function(t){t.preventDefault();var o=r(this),t=o.serializeObject();t.action="tutor\_add\_instructor",r.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,success:function(t){var a,e;t.success?(o.trigger("reset"),r("#form-response").html('<p class="tutor-status-approved-context">'+t.data.msg+"</p>")):(a="",(e=t.data.errors)&&Object.keys(e).length&&(r.each(t.data.errors,function(t,e){var o;(o=e)&&"object"===n(o)&&o.constructor===Object?r.each(e,function(t,e){a+='<p class="tutor-required-fields">'+e\[0\]+"</p>"}):a+='<p class="tutor-required-fields">'+e+"</p>"}),r("#form-response").html(a)))}})}),r(document).on("click","a.instructor-action",function(t){t.preventDefault();var e=r(this),o=e.attr("data-action"),a=e.attr("data-instructor-id"),t=e.attr("data-prompt-message");t&&!confirm(t)||((a={instructor\_id:a,action\_name:o,action:"instructor\_approval\_action"})\[o=\_tutorobject.nonce\_key\]=\_tutorobject\[o\],r.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:a,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){location.reload(!0)},complete:function(){e.removeClass("tutor-updating-message")}}))}),r(document).on("click",".tutor-create-assignments-btn",function(t){t.preventDefault();var e=r(this),o=r(this).attr("data-topic-id"),a=r("#post\_ID").val();r.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{topic\_id:o,course\_id:a,action:"tutor\_load\_assignments\_builder\_modal"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){r(".tutor-lesson-modal-wrap .modal-container").html(t.data.output),r(".tutor-lesson-modal-wrap").attr("data-topic-id",o).addClass("show"),r(document).trigger("assignment\_modal\_loaded",{topic\_id:o,course\_id:a}),tinymce.init(tinyMCEPreInit.mceInit.tutor\_editor\_config),tinymce.execCommand("mceRemoveEditor",!1,"tutor\_assignments\_modal\_editor"),tinyMCE.execCommand("mceAddEditor",!1,"tutor\_assignments\_modal\_editor")},complete:function(){quicktags({id:"tutor\_assignments\_modal\_editor"}),e.removeClass("tutor-updating-message")}})}),r(document).on("click",".open-tutor-assignment-modal",function(t){t.preventDefault();var e=r(this),o=e.attr("data-assignment-id"),a=e.attr("data-topic-id"),n=r("#post\_ID").val();r.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{assignment\_id:o,topic\_id:a,course\_id:n,action:"tutor\_load\_assignments\_builder\_modal"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){r(".tutor-lesson-modal-wrap .modal-container").html(t.data.output),r(".tutor-lesson-modal-wrap").attr({"data-assignment-id":o,"data-topic-id":a}).addClass("show"),r(document).trigger("assignment\_modal\_loaded",{assignment\_id:o,topic\_id:a,course\_id:n}),tinymce.init(tinyMCEPreInit.mceInit.tutor\_editor\_config),tinymce.execCommand("mceRemoveEditor",!1,"tutor\_assignments\_modal\_editor"),tinyMCE.execCommand("mceAddEditor",!1,"tutor\_assignments\_modal\_editor")},complete:function(){quicktags({id:"tutor\_assignments\_modal\_editor"}),e.removeClass("tutor-updating-message")}})}),r(document).on("click",".update\_assignment\_modal\_btn",function(t){t.preventDefault();var e=r(this),o="tutor\_assignments\_modal\_editor",t=tinyMCE.get(o),t=t?t.getContent():r("#"+o).val(),o=r(this).closest("form").serializeObject();o.assignment\_content=t,r.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:o,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(r("#tutor-course-content-wrap").html(t.data.course\_contents),a(),r(".tutor-lesson-modal-wrap").removeClass("show"),tutor\_toast(i("Assignment Updated","tutor"),e.data("toast\_success\_message"),"success"))},complete:function(){e.removeClass("tutor-updating-message")}})}),r(document).on("click",".add-assignment-attachments",function(t){t.preventDefault();var o,a=r(this);o||(o=wp.media({title:i("Select or Upload Media Of Your Choice","tutor"),button:{text:i("Upload media","tutor")},multiple:!1})).on("select",function(){var t=o.state().get("selection").first().toJSON(),e='<div class="tutor-individual-attachment-file"><p class="attachment-file-name">'+t.filename+'</p><input type="hidden" name="tutor\_assignment\_attachments\[\]" value="'+t.id+'"><a href="javascript:;" class="remove-assignment-attachment-a text-muted"> × Remove</a></div>';r("#assignment-attached-file").append(e),a.closest(".video\_source\_wrap\_html5").find("input").val(t.id)}),o.open()}),r(document).on("click",".remove-assignment-attachment-a",function(t){t.preventDefault(),r(this).closest(".tutor-individual-attachment-file").remove()}),r(document).on("click",".tutor\_video\_poster\_upload\_btn",function(t){t.preventDefault();var e,o=r(this);e||(e=wp.media({title:i("Select or Upload Media Of Your Choice","tutor"),button:{text:i("Upload media","tutor")},multiple:!1})).on("select",function(){var t=e.state().get("selection").first().toJSON();o.closest(".tutor-video-poster-wrap").find(".video-poster-img").html('<img src="'+t.sizes.thumbnail.url+'" alt="" />'),o.closest(".tutor-video-poster-wrap").find("input").val(t.id)}),e.open()}),r(document).on("change","#tutor\_pmpro\_membership\_model\_select",function(t){t.preventDefault(),"category\_wise\_membership"===r(this).val()?r(".membership\_course\_categories").show():r(".membership\_course\_categories").hide()}),r(document).on("change","#tutor\_pmpro\_membership\_model\_select",function(t){t.preventDefault(),"category\_wise\_membership"===r(this).val()?r(".membership\_course\_categories").show():r(".membership\_course\_categories").hide()}),r(document).on("submit",".pmpro\_admin form",function(t){var e=r(this);e.find('input\[name="tutor\_action"\]').length&&("category\_wise\_membership"!=e.find('\[name="tutor\_pmpro\_membership\_model"\]').val()||e.find(".membership\_course\_categories input:checked").length||confirm(i("Do you want to save without any category?","tutor"))||t.preventDefault())}),r("#select2\_search\_user\_ajax").select2({allowClear:!0,minimumInputLength:1,placeholder:e,language:{inputTooShort:function(){return i("Please add 1 or more character","tutor")}},escapeMarkup:function(t){return t},ajax:{url:window.\_tutorobject.ajaxurl,type:"POST",dataType:"json",delay:1e3,data:function(t){return{term:t.term,action:"tutor\_json\_search\_students"}},processResults:function(t){var o=\[\];return t&&r.each(t,function(t,e){o.push({id:t,text:e})}),{results:o}},cache:!0}}),r(document).on("click","table.enrolments .delete a",function(t){t.preventDefault();var e=r(this).attr("href"),t={title:i("Delete this enrolment","tutor"),description:i("All of the course data like quiz attempts, assignment, lesson <br/>progress will be deleted if you delete this student's enrollment.","tutor"),buttons:{reset:{title:i("Cancel","tutor"),class:"secondary",callback:function(){o.remove()}},keep:{title:i("Yes, Delete This","tutor"),class:"primary",callback:function(){window.location.replace(e)}}}},o=new window.tutor\_popup(r,"icon-trash",40).popup(t)});e=r('#tutor-attach-product \[name="tutor\_course\_price\_type"\]');0==e.length?r("#\_tutor\_is\_course\_public\_meta\_checkbox").show():e.change(function(){var t;r(this).prop("checked")&&(t="paid"==r(this).val()?"hide":"show",r("#\_tutor\_is\_course\_public\_meta\_checkbox")\[t\]())}).trigger("change"),r(document).on("click",".instructor-layout-template",function(){r(".instructor-layout-template").removeClass("selected-template"),r(this).addClass("selected-template")}),r("#preview-action a.preview").click(function(t){var e=r(this).attr("href");e&&(t.preventDefault(),window.open(e,"\_blank"))})})})()})();
1
(()=>{var o={623:()=>{function g(t){return(g="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})(t)}function y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var o=null==t?null:"undefined"!=typeof Symbol&&t\[Symbol.iterator\]||t\["@@iterator"\];if(null!=o){var a,n,i=\[\],r=!0,s=!1;try{for(o=o.call(t);!(r=(a=o.next()).done)&&(i.push(a.value),!e||i.length!==e);r=!0);}catch(t){s=!0,n=t}finally{try{r||null==o.return||o.return()}finally{if(s)throw n}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return a(t,e);var o=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(o="Object"===o&&t.constructor?t.constructor.name:o)||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?a(t,e):void 0}}(t,e)||function(){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 a(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,a=new Array(e);o<e;o++)a\[o\]=t\[o\];return a}window.tutor\_get\_nonce\_data=function(t){var e=window.\_tutorobject||{},o=e.nonce\_key||"",e=e\[o\]||"";return t?{key:o,value:e}:(t=e,(e=o)in(o={})?Object.defineProperty(o,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):o\[e\]=t,o)},window.tutor\_popup=function(r,o,a){var s,u=this;return this.popup\_wrapper=function(t){var e=""===o?"":'<img class="tutor-pop-icon" src="'+window.\_tutorobject.tutor\_url+"assets/images/"+o+'.svg"/>';return"<"+t+' class="tutor-component-popup-container"> <div class="tutor-component-popup-'+a+'"> <div class="tutor-component-content-container">'+e+'</div> <div class="tutor-component-button-container"></div> </div> </'+t+">"},this.popup=function(o){var t=o.title?"<h3>"+o.title+"</h3>":"",e=o.description?"<p>"+o.description+"</p>":"",a=Object.keys(o.buttons||{}).map(function(t){var e=o.buttons\[t\],t=e.id?"tutor-popup-"+e.id:"";return r('<button id="'+t+'" class="tutor-button tutor-button-'+e.class+'">'+e.title+"</button>").click(e.callback)}),n=(s=r(u.popup\_wrapper(o.wrapper\_tag||"div"))).find(".tutor-component-content-container");n.append(t),o.after\_title&&n.append(o.after\_title),n.append(e),o.after\_description&&n.append(o.after\_description),s.click(function(){r(this).remove()}).children().click(function(t){t.stopPropagation()});for(var i=0;i<a.length;i++)s.find(".tutor-component-button-container").append(a\[i\]);return r("body").append(s),s},{popup:this.popup}},window.tutorDotLoader=function(t){return' \\n <div class="tutor-dot-loader '.concat(t||"",'">\\n <span class="dot dot-1"></span>\\n <span class="dot dot-2"></span>\\n <span class="dot dot-3"></span>\\n <span class="dot dot-4"></span>\\n </div>')},window.tutor\_date\_picker=function(){var t;jQuery.datepicker&&(t=\_tutorobject.wp\_date\_format||"yy-mm-dd",$(".tutor\_date\_picker").datepicker({dateFormat:t}))},jQuery(document).ready(function(d){"use strict";var t=wp.i18n,n=t.\_\_;t.\_x,t.\_n,t.\_nx;function o(){var t;jQuery.datepicker&&(t=\_tutorobject.wp\_date\_format||"yy-mm-dd",d(".tutor\_date\_picker").datepicker({dateFormat:t})),d(document).on("keydown",".hasDatepicker, .tutor\_date\_picker",function(t){8!==t.keyCode&&t.preventDefault()})}function s(){d(".tutor-field-slider").each(function(){var t=d(this),o=t.closest(".tutor-field-type-slider").find('input\[type="hidden"\]'),a=t.closest(".tutor-field-type-slider").find(".tutor-field-type-slider-value"),e=parseFloat(t.closest(".tutor-field-type-slider").attr("data-min")),n=parseFloat(t.closest(".tutor-field-type-slider").attr("data-max"));t.slider({range:"max",min:e,max:n,value:o.val(),slide:function(t,e){a.text(e.value),o.val(e.value)}})})}function e(t){var e=t.element;return d('<span><i class="tutor-icon-'+d(e).data("icon")+'"></i> '+t.text+"</span>")}function i(){jQuery().sortable&&(d(".course-contents").sortable({handle:".course-move-handle",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){a()}}),d(".tutor-lessons:not(.drop-lessons)").sortable({connectWith:".tutor-lessons",items:"div.course-content-item",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){a()}}))}function a(){var i={};d(".tutor-topics-wrap").each(function(t,e){var o=d(this),a=parseInt(o.attr("id").match(/\\d+/)\[0\],10),n={};o.find(".course-content-item").each(function(t,e){var o=d(this),o=parseInt(o.attr("id").match(/\\d+/)\[0\],10);n\[t\]=o}),i\[t\]={topic\_id:a,lesson\_ids:n}}),d("#tutor\_topics\_lessons\_sorting").val(JSON.stringify(i))}function r(){return{init:function(){d(document).on("click",".tutor-select .tutor-select-option",function(t){t.preventDefault();var e=d(this);"true"!==e.attr("data-is-pro")?(t=e.html().trim(),e.closest(".tutor-select").find(".select-header .lead-option").html(t),e.closest(".tutor-select").find(".select-header input.tutor\_select\_value\_holder").val(e.attr("data-value")).trigger("change"),e.closest(".tutor-select-options").hide(),disableAddoption()):alert("Tutor Pro version required")}),d(document).on("click",".tutor-select .select-header",function(t){t.preventDefault(),d(this).closest(".tutor-select").find(".tutor-select-options").slideToggle()}),this.setValue(),this.hideOnOutSideClick()},setValue:function(){d(".tutor-select").each(function(){var t=d(this).find(".tutor-select-option");t.length&&t.each(function(){var t,e=d(this);"selected"===e.attr("data-selected")&&(t=e.html().trim(),e.closest(".tutor-select").find(".select-header .lead-option").html(t),e.closest(".tutor-select").find(".select-header input.tutor\_select\_value\_holder").val(e.attr("data-value")))})})},hideOnOutSideClick:function(){d(document).mouseup(function(t){var e=d(".tutor-select-options");d(t.target).closest(".select-header").length||e.is(t.target)||0!==e.has(t.target).length||e.hide()})},reInit:function(){this.setValue()}}}o(),s(),jQuery().select2&&d(".videosource\_select2").select2({width:"100%",templateSelection:e,templateResult:e,allowHtml:!0}),d(document).on("change",".tutor\_lesson\_video\_source",function(t){var e=d(this),o=d(this).val();o?d(".video-metabox-source-input-wrap").show():d(".video-metabox-source-input-wrap").hide(),e.closest(".tutor-option-field").find(".video-metabox-source-item").hide(),e.closest(".tutor-option-field").find(".video\_source\_wrap\_"+o).show()}),d(document).on("click",".tutor-course-thumbnail-upload-btn",function(t){t.preventDefault();var e,o=d(this);e||(e=wp.media({title:n("Select or Upload Media Of Your Chosen Persuasion","tutor"),button:{text:n("Use this media","tutor")},multiple:!1})).on("select",function(){var t=e.state().get("selection").first().toJSON();o.closest(".tutor-thumbnail-wrap").find(".thumbnail-img").attr("src",t.url),o.closest(".tutor-thumbnail-wrap").find("input").val(t.id),d(".tutor-course-thumbnail-delete-btn").show()}),e.open()}),d(document).on("click",".tutor-course-thumbnail-delete-btn",function(t){t.preventDefault();var e=d(this),t=e.closest(".tutor-thumbnail-wrap").find(".thumbnail-img").attr("data-placeholder-src");e.closest(".tutor-thumbnail-wrap").find(".thumbnail-img").attr("src",t),e.closest(".tutor-thumbnail-wrap").find("input").val(""),d(".tutor-course-thumbnail-delete-btn").hide()}),d(document).on("click",".create\_new\_topic\_btn",function(t){t.preventDefault(),d(".tutor-metabox-add-topics").slideToggle()}),d(document).on("click","#tutor-add-topic-btn",function(t){t.preventDefault();var e=d(this),t=e.closest(".tutor-metabox-add-topics").find("input, textarea").serializeObject();t.action="tutor\_add\_course\_topic",d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(d("#tutor-course-content-wrap").html(t.data.course\_contents),e.closest(".tutor-metabox-add-topics").find('input\[type!="hidden"\], textarea').each(function(){d(this).val("")}),e.closest(".tutor-metabox-add-topics").slideUp(),i())},complete:function(){e.removeClass("tutor-updating-message")}})}),d(".tutor-zoom-meeting-modal-wrap").on("submit",".tutor-meeting-modal-form",function(t){t.preventDefault();var e=d(this),o=e.serializeObject(),t=Intl.DateTimeFormat().resolvedOptions().timeZone;o.timezone=t;var a=e.find('button\[type="submit"\]');d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:o,beforeSend:function(){a.addClass("tutor-updating-message")},success:function(t){t.success?tutor\_toast(n("Success","tutor"),a.data("toast\_success\_message"),"success"):tutor\_toast(n("Update Error","tutor"),n("Meeting Update Failed","tutor"),"error"),t.course\_contents?(d(t.selector).html(t.course\_contents),"#tutor-course-content-wrap"==t.selector&&i(),d(".tutor-zoom-meeting-modal-wrap").removeClass("show")):location.reload()},complete:function(){a.removeClass("tutor-updating-message")}})}),d(document).on("change keyup",".course-edit-topic-title-input",function(t){t.preventDefault(),d(this).closest(".tutor-topics-top").find(".topic-inner-title").html(d(this).val())}),d(document).on("click",".topic-edit-icon",function(t){t.preventDefault(),d(this).closest(".tutor-topics-top").find(".tutor-topics-edit-form").slideToggle()}),d(document).on("click",".tutor-topics-edit-button",function(t){t.preventDefault();var e=d(this),o=e.closest(".tutor-topics-wrap"),t=parseInt(o.attr("id").match(/\\d+/)\[0\],10),a=e.closest(".tutor-topics-wrap").find('\[name="topic\_title"\]').val(),o=e.closest(".tutor-topics-wrap").find('\[name="topic\_summery"\]').val();d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{topic\_title:a,topic\_summery:o,topic\_id:t,action:"tutor\_update\_topic"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(e.closest(".tutor-topics-wrap").find("span.topic-inner-title").text(a),e.closest(".tutor-topics-wrap").find(".tutor-topics-edit-form").slideUp())},complete:function(){e.removeClass("tutor-updating-message")}})}),d(document).on("click",".open-tutor-lesson-modal",function(t){t.preventDefault();var e=d(this),o=e.attr("data-lesson-id"),a=e.attr("data-topic-id"),n=d("#post\_ID").val();d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{lesson\_id:o,topic\_id:a,course\_id:n,action:"tutor\_load\_edit\_lesson\_modal"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){d(".tutor-lesson-modal-wrap .modal-container").html(t.data.output),d(".tutor-lesson-modal-wrap").attr({"data-lesson-id":o,"data-topic-id":a}).addClass("show");t=(t=tinyMCEPreInit.mceInit.tutor\_editor\_config)||tinyMCEPreInit.mceInit.course\_description;tinymce.init(t),tinymce.execCommand("mceRemoveEditor",!1,"tutor\_lesson\_modal\_editor"),tinyMCE.execCommand("mceAddEditor",!1,"tutor\_lesson\_modal\_editor"),d(document).trigger("lesson\_modal\_loaded",{lesson\_id:o,topic\_id:a,course\_id:n})},complete:function(){quicktags({id:"tutor\_lesson\_modal\_editor"}),e.removeClass("tutor-updating-message")}})}),d(document).on("click",".lesson\_thumbnail\_upload\_btn",function(t){t.preventDefault();var e,o=d(this);e||(e=wp.media({title:n("Select or Upload Media Of Your Chosen Persuasion","tutor"),button:{text:n("Use this media","tutor")},multiple:!1})).on("select",function(){var t=e.state().get("selection").first().toJSON();o.closest(".tutor-thumbnail-wrap").find(".thumbnail-img").html('<img src="'+t.url+'" alt="" /><a href="javascript:;" class="tutor-lesson-thumbnail-delete-btn"><i class="tutor-icon-line-cross"></i></a>'),o.closest(".tutor-thumbnail-wrap").find("input").val(t.id),d(".tutor-lesson-thumbnail-delete-btn").show()}),e.open()}),d(document).on("click",".tutor-lesson-thumbnail-delete-btn",function(t){t.preventDefault();t=d(this);t.closest(".tutor-thumbnail-wrap").find(".\_lesson\_thumbnail\_id").val(""),t.closest(".tutor-thumbnail-wrap").find(".thumbnail-img").html(""),t.hide()}),d(document).on("click",".tutor-delete-lesson-btn",function(t){var e;t.preventDefault(),confirm(n("Are you sure?","tutor"))&&(t=(e=d(this)).attr("data-lesson-id"),d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{lesson\_id:t,action:"tutor\_delete\_lesson\_by\_id"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&e.closest(".course-content-item").remove()},complete:function(){e.removeClass("tutor-updating-message")}}))}),d(document).on("click",".topic-delete-btn a",function(t){d(this).attr("data-topic-id");confirm(n("Are you sure to delete?","tutor"))||t.preventDefault()}),d(document).on("click",".tutor-expand-all-topic",function(t){t.preventDefault(),d(".tutor-topics-body").slideDown(),d(".expand-collapse-wrap i").removeClass("tutor-icon-light-down").addClass("tutor-icon-light-up")}),d(document).on("click",".tutor-collapse-all-topic",function(t){t.preventDefault(),d(".tutor-topics-body").slideUp(),d(".expand-collapse-wrap i").removeClass("tutor-icon-light-up").addClass("tutor-icon-light-down")}),d(document).on("click",".topic-inner-title, .expand-collapse-wrap",function(t){t.preventDefault();t=d(this);t.closest(".tutor-topics-wrap").find(".tutor-topics-body").slideToggle(),t.closest(".tutor-topics-wrap").find(".expand-collapse-wrap i").toggleClass("tutor-icon-light-down tutor-icon-light-up")}),d(document).on("click",".quiz-modal-btn-first-step",function(t){t.preventDefault();var e,o,a,n=d(this),i=d('\[name="quiz\_title"\]'),r=i.val(),t=d('\[name="quiz\_description"\]').val();r?(i.closest(".tutor-quiz-builder-group").find(".quiz\_form\_msg").html(""),e=d("#post\_ID").val(),o=n.closest(".tutor-modal-wrap").attr("quiz-for-post-id"),d("#tutor\_quiz\_builder\_quiz\_id").length?(a=d("#tutor\_quiz\_builder\_quiz\_id").val(),d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{quiz\_title:r,quiz\_description:t,quiz\_id:a,topic\_id:o,action:"tutor\_quiz\_builder\_quiz\_update"},beforeSend:function(){n.addClass("tutor-updating-message")},success:function(t){d("#tutor-quiz-"+a).html(t.data.output\_quiz\_row),d('#tutor-quiz-modal-tab-items-wrap a\[href="#quiz-builder-tab-questions"\]').trigger("click"),s()},complete:function(){n.removeClass("tutor-updating-message")}})):d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{quiz\_title:r,quiz\_description:t,course\_id:e,topic\_id:o,action:"tutor\_create\_quiz\_and\_load\_modal"},beforeSend:function(){n.addClass("tutor-updating-message")},success:function(t){d(".tutor-quiz-builder-modal-wrap .modal-container").html(t.data.output),d("#tutor-topics-"+o+" .tutor-lessons").append(t.data.output\_quiz\_row),d('#tutor-quiz-modal-tab-items-wrap a\[href="#quiz-builder-tab-questions"\]').trigger("click"),s(),d(document).trigger("quiz\_modal\_loaded",{topic\_id:o,course\_id:e})},complete:function(){n.removeClass("tutor-updating-message")}})):i.closest(".tutor-quiz-builder-group").find(".quiz\_form\_msg").html("Please enter quiz title")}),d(document).on("click",".open-tutor-quiz-modal",function(t){t.preventDefault();var e=d(this),o=e.attr("data-quiz-id"),a=e.attr("data-topic-id");null==a&&(a=e.closest(".tutor-modal-wrap").attr("quiz-for-post-id"));var n=d("#post\_ID").val();d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{quiz\_id:o,topic\_id:a,course\_id:n,action:"tutor\_load\_edit\_quiz\_modal"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){d(".tutor-quiz-builder-modal-wrap .modal-container").html(t.data.output),d(".tutor-quiz-builder-modal-wrap").attr("data-quiz-id",o).attr("quiz-for-post-id",a).addClass("show"),e.attr("data-back-to-tab")&&(t=e.attr("data-back-to-tab"),d('#tutor-quiz-modal-tab-items-wrap a\[href="'+t+'"\]').trigger("click")),d(document).trigger("quiz\_modal\_loaded",{quiz\_id:o,topic\_id:a,course\_id:n}),s(),jQuery().sortable&&d(".quiz-builder-questions-wrap").sortable({handle:".question-sorting",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){var a;a={},d(".quiz-builder-question-wrap").each(function(t,e){var o=d(this),o=parseInt(o.attr("data-question-id"),10);a\[t\]=o}),d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{sorted\_question\_ids:a,action:"tutor\_quiz\_question\_sorting"}})}})},complete:function(){e.removeClass("tutor-updating-message")}})}),d(document).on("click",".quiz-modal-settings-save-btn",function(t){t.preventDefault();var e=d(this),o=d(".tutor-quiz-builder-modal-wrap").attr("data-quiz-id"),a=d("#current\_topic\_id\_for\_quiz").val(),t=d("#quiz-builder-tab-settings :input, #quiz-builder-tab-advanced-options :input").serializeObject();t.topic\_id=a,t.quiz\_id=o,t.action="tutor\_quiz\_modal\_update\_settings",d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&d("#tutor-course-content-wrap").html(t.data.course\_contents),t.success?tutor\_toast(n("Success","tutor"),e.data("toast\_success\_message"),"success"):tutor\_toast(n("Update Error","tutor"),n("Quiz Update Failed","tutor"),"error")},complete:function(){e.removeClass("tutor-updating-message"),"modal\_close"===e.attr("data-action")&&d(".tutor-modal-wrap").removeClass("show")}})}),d(document).on("click",".quiz-modal-question-save-btn",function(t){t.preventDefault();var e=d(this),o=d(".quiz\_question\_form :input").serializeObject();o.action="tutor\_quiz\_modal\_update\_question";t=e.closest(".tutor-modal-wrap").attr("quiz-for-post-id");o.topic\_id=t,d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:o,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success?e.closest(".tutor-quiz-builder-modal-contents").find(".open-tutor-quiz-modal").trigger("click"):void 0!==t.data&&d("#quiz\_validation\_msg\_wrap").html(t.data.validation\_msg)},complete:function(){e.removeClass("tutor-updating-message")}})}),d(document).on("click",".modal-close-btn",function(t){t.preventDefault(),d(".tutor-modal-wrap").removeClass("show")}),d(document).on("keyup",function(t){27===t.keyCode&&d(".tutor-modal-wrap").removeClass("show")}),d(document).on("click",".tutor-add-quiz-btn",function(t){t.preventDefault();var e=d(this),o=d(this).closest(".tutor\_add\_quiz\_wrap").attr("data-add-quiz-under"),t=d(this).data("topic-id");d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{quiz\_for\_post\_id:o,current\_topic\_id:t,action:"tutor\_load\_quiz\_builder\_modal"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){d(".tutor-quiz-builder-modal-wrap .modal-container").html(t.data.output),d(".tutor-quiz-builder-modal-wrap").attr("quiz-for-post-id",o).addClass("show")},complete:function(){e.removeClass("tutor-updating-message")}})}),d(document).on("click",".tutor-quiz-modal-tab-item",function(t){t.preventDefault();var e=d(this),o=d('\[name="quiz\_title"\]');o.val()?(o.closest(".tutor-quiz-builder-form-row").find(".quiz\_form\_msg").html(""),t=e.attr("href"),d(".quiz-builder-tab-container").hide(),d(t).show(),d("a.tutor-quiz-modal-tab-item").removeClass("active"),e.addClass("active")):o.closest(".tutor-quiz-builder-form-row").find(".quiz\_form\_msg").html('<p class="quiz-form-warning">Please save the quiz first</p>')}),d(document).on("click",".quiz-modal-btn-next, .quiz-modal-btn-back",function(t){t.preventDefault();t=d(this).attr("href");d('#tutor-quiz-modal-tab-items-wrap a\[href="'+t+'"\]').trigger("click")}),d(document).on("click",".quiz-modal-tab-navigation-btn.quiz-modal-btn-cancel",function(t){t.preventDefault(),d(".tutor-modal-wrap").removeClass("show")}),d(document).on("click",".tutor-quiz-open-question-form",function(t){t.preventDefault();var e=d(this),o=d("#tutor\_quiz\_builder\_quiz\_id").val(),a=d("#post\_ID").val(),t=e.attr("data-question-id"),a={quiz\_id:o,course\_id:a,action:"tutor\_quiz\_builder\_get\_question\_form"};t&&(a.question\_id=t),d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:a,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){d(".tutor-quiz-builder-modal-contents").html(t.data.output),r().reInit(),jQuery().sortable&&d("#tutor\_quiz\_question\_answers").sortable({handle:".tutor-quiz-answer-sort-icon",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){var a;a={},d(".tutor-quiz-answer-wrap").each(function(t,e){var o=d(this),o=parseInt(o.attr("data-answer-id"),10);a\[t\]=o}),d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{sorted\_answer\_ids:a,action:"tutor\_quiz\_answer\_sorting"}})}}),disableAddoption()},complete:function(){e.removeClass("tutor-updating-message")}})}),d(document).on("click",".tutor-quiz-question-trash",function(t){t.preventDefault();var e=d(this),t=e.attr("data-question-id");d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{question\_id:t,action:"tutor\_quiz\_builder\_question\_delete"},beforeSend:function(){e.closest(".quiz-builder-question-wrap").remove()}})}),d(document).on("click",".add\_question\_answers\_option:not(.disabled)",function(t){t.preventDefault();var e=d(this),o=e.attr("data-question-id"),t=d(".quiz\_question\_form :input").serializeObject();t.question\_id=o,t.action="tutor\_quiz\_add\_question\_answers",d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){d("#tutor\_quiz\_question\_answer\_form").html(t.data.output),disableAddoption()},complete:function(){e.removeClass("tutor-updating-message")}})}),d(document).on("click",".tutor-quiz-answer-edit a",function(t){t.preventDefault();var e=d(this),t=e.closest(".tutor-quiz-answer-wrap").attr("data-answer-id");d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{answer\_id:t,action:"tutor\_quiz\_edit\_question\_answer"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){d("#tutor\_quiz\_question\_answer\_form").html(t.data.output)},complete:function(){e.removeClass("tutor-updating-message")}})}),d(document).on("click","#quiz-answer-save-btn",function(t){t.preventDefault();var e=d(this),t=d(".quiz\_question\_form :input").serializeObject();t.action="tutor\_save\_quiz\_answer\_options",d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){d("#quiz\_validation\_msg\_wrap").html(""),e.addClass("tutor-updating-message")},success:function(t){d("#tutor\_quiz\_question\_answers").trigger("refresh")},complete:function(){e.removeClass("tutor-updating-message")}})}),d(document).on("click","#quiz-answer-edit-btn",function(t){t.preventDefault();var e=d(this),t=d(".quiz\_question\_form :input").serializeObject();t.action="tutor\_update\_quiz\_answer\_options",d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){d("#tutor\_quiz\_question\_answers").trigger("refresh")},complete:function(){e.removeClass("tutor-updating-message")}})}),d(document).on("change",".tutor-quiz-answers-mark-correct-wrap input",function(t){t.preventDefault();var e=d(this),o=e.val(),t=1;e.prop("checked")||(t=0),d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{answer\_id:o,inputValue:t,action:"tutor\_mark\_answer\_as\_correct"}})}),d(document).on("refresh","#tutor\_quiz\_question\_answers",function(t){t.preventDefault();var e=d(this),o=e.attr("data-question-id"),t=d(".tutor\_select\_value\_holder").val();d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{question\_id:o,question\_type:t,action:"tutor\_quiz\_builder\_get\_answers\_by\_question"},beforeSend:function(){e.addClass("tutor-updating-message"),d("#tutor\_quiz\_question\_answer\_form").html("")},success:function(t){t.success&&e.html(t.data.output)},complete:function(){e.removeClass("tutor-updating-message")}})}),d(document).on("click",".tutor-quiz-answer-trash-wrap a.answer-trash-btn",function(t){t.preventDefault();var e=d(this),t=e.attr("data-answer-id");d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{answer\_id:t,action:"tutor\_quiz\_builder\_delete\_answer"},beforeSend:function(){e.closest(".tutor-quiz-answer-wrap").remove()}})}),d(document).on("click",".tutor-delete-quiz-btn",function(t){var e;t.preventDefault(),confirm(n("Are you sure?","tutor"))&&(t=(e=d(this)).attr("data-quiz-id"),d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{quiz\_id:t,action:"tutor\_delete\_quiz\_by\_id"},beforeSend:function(){e.closest(".course-content-item").remove()}}))}),r().init(),d(document).on("change","input.tutor\_select\_value\_holder",function(t){d(this);d(".add\_question\_answers\_option").trigger("click"),d("#tutor\_quiz\_question\_answers").trigger("refresh")}),d(document).on("click",".tutor-media-upload-btn",function(t){t.preventDefault();var e,o=d(this);e||(e=wp.media({title:n("Select or Upload Media Of Your Chosen Persuasion","tutor"),button:{text:n("Use this media","tutor")},multiple:!1})).on("select",function(){var t=e.state().get("selection").first().toJSON();o.html('<img src="'+t.url+'" alt="" />'),o.closest(".tutor-media-upload-wrap").find("input").val(t.id)}),e.open()}),d(document).on("click",".tutor-media-upload-trash",function(t){t.preventDefault();t=d(this);t.closest(".tutor-media-upload-wrap").find(".tutor-media-upload-btn").html('<i class="tutor-icon-image1"></i>'),t.closest(".tutor-media-upload-wrap").find("input").val("")});var u,c=(u=0,function(t,e){clearTimeout(u),u=setTimeout(t,e)});d(document).on("click",".tutor-add-instructor-btn",function(t){t.preventDefault();var e=d(this),t=d("#post\_ID").val();d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{course\_id:t,action:"tutor\_load\_instructors\_modal"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(d(".tutor-instructors-modal-wrap .modal-container").html(t.data.output),d(".tutor-instructors-modal-wrap").addClass("show"))},complete:function(){e.removeClass("tutor-updating-message")}})}),d(document).on("change keyup",".tutor-instructors-modal-wrap .tutor-modal-search-input",function(t){t.preventDefault();var o=d(this),a=d(".tutor-modal-wrap");c(function(){var t=o.val(),e=d("#post\_ID").val();d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{course\_id:e,search\_terms:t,action:"tutor\_load\_instructors\_modal"},beforeSend:function(){a.addClass("loading")},success:function(t){t.success&&(d(".tutor-instructors-modal-wrap .modal-container").html(t.data.output),d(".tutor-instructors-modal-wrap").addClass("show"))},complete:function(){a.removeClass("loading")}})},1e3)}),d(document).on("click",".add\_instructor\_to\_course\_btn",function(t){t.preventDefault();var e=d(this),o=d(".tutor-modal-wrap"),t=d("#post\_ID").val(),o=o.find("input").serializeObject();o.course\_id=t,o.action="tutor\_add\_instructors\_to\_course",d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:o,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(d(".tutor-course-available-instructors").html(t.data.output),d(".tutor-modal-wrap").removeClass("show"))},complete:function(){e.removeClass("tutor-updating-message")}})}),d(document).on("click",".tutor-instructor-delete-btn",function(t){t.preventDefault();var e=d(this),o=d("#post\_ID").val(),t=e.closest(".added-instructor-item").attr("data-instructor-id");d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{course\_id:o,instructor\_id:t,action:"detach\_instructor\_from\_course"},success:function(t){t.success&&e.closest(".added-instructor-item").remove()}})}),d(document).on("click",".settings-tabs-navs li",function(t){t.preventDefault();var e=d(this),o=e.find("a").attr("data-target"),t=e.find("a").attr("href");e.addClass("active").siblings("li.active").removeClass("active"),d(".settings-tab-wrap").removeClass("active").hide(),d(o).addClass("active").show(),window.history.pushState({},"",t)}),d(document).on("lesson\_modal\_loaded quiz\_modal\_loaded assignment\_modal\_loaded",function(t,e){jQuery().select2&&d(".select2\_multiselect").select2({dropdownCssClass:"increasezindex"}),o()}),d(document).on("lesson\_modal\_loaded",function(t,e){d(".tutor-lesson-modal-wrap .modal-title h1").html(n("Lesson","tutor"))}),d(document).on("assignment\_modal\_loaded",function(t,e){d(".tutor-lesson-modal-wrap .modal-title h1").html(n("Assignment","tutor"))}),d(document).on("keyup change",".tutor-number-validation",function(t){var e=d(this),o=parseInt(e.val()),a=parseInt(e.attr("data-min")),n=parseInt(e.attr("data-max"));o<a?e.val(a):n<o&&e.val(n)}),d(document).on("click",".tutor-instructor-feedback",function(t){t.preventDefault();var e=d(this);d.ajax({url:window.ajaxurl||\_tutorobject.ajaxurl,type:"POST",data:{attempts\_id:e.data("attemptid"),feedback:d(".tutor-instructor-feedback-content").val(),action:"tutor\_instructor\_feedback"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(e.closest(".course-content-item").remove(),tutor\_toast(n("Success","tutor"),e.data("toast\_success\_message"),"success"))},complete:function(){e.removeClass("tutor-updating-message")}})});var l=d(".tutor-announcement-add-new"),m=d(".tutor-announcement-edit"),p=d(".tutor-announcement-delete"),\_=d(".tutor-announcement-details"),t=d(".tutor-announcement-close-btn"),f=d(".tutor-accouncement-create-modal"),h=d(".tutor-accouncement-update-modal"),v=d(".tutor-accouncement-details-modal");function w(t,e){var o=new URL(window.location.href),a=o.searchParams;return a.set(t,e),o.search=a.toString(),\_tutorobject.is\_admin?a.set("paged",1):a.set("current\_page",1),o.search=a.toString(),o.toString()}d(l).click(function(){f.addClass("show"),d("#tutor-annoucement-backend-create-modal").addClass("show")}),d(\_).click(function(){var t=d(this).attr("announcement-date"),e=d(this).attr("announcement-id"),o=d(this).attr("course-id"),a=d(this).attr("course-name"),n=d(this).attr("announcement-title"),i=d(this).attr("announcement-summary");d(".tutor-announcement-detail-content").html("<h3>".concat(n,"</h3><p>").concat(i,"</p>")),d(".tutor-announcement-detail-course-info p").html("".concat(a)),d(".tutor-announcement-detail-date-info p").html("".concat(t)),d("#tutor-announcement-edit-from-detail").attr("announcement-id",e),d("#tutor-announcement-edit-from-detail").attr("course-id",o),d("#tutor-announcement-edit-from-detail").attr("announcement-title",n),d("#tutor-announcement-edit-from-detail").attr("announcement-summary",i),d("#tutor-announcement-delete-from-detail").attr("announcement-id",e),v.addClass("show")}),d(m).click(function(){v&&v.removeClass("show");var t=d(this).attr("announcement-id"),e=d(this).attr("course-id"),o=d(this).attr("announcement-title"),a=d(this).attr("announcement-summary");d("#tutor-announcement-course-id").val(e),d("#announcement\_id").val(t),d("#tutor-announcement-title").val(o),d("#tutor-announcement-summary").val(a),h.addClass("show")}),d(t).click(function(){f.removeClass("show"),h.removeClass("show"),v.removeClass("show"),d("#tutor-annoucement-backend-create-modal").removeClass("show")}),d(".tutor-announcements-form").on("submit",function(t){t.preventDefault();var e=d(this).find('button\[type="submit"\]'),t=d(".tutor-announcements-form").serialize()+"&action=tutor\_announcement\_create&action\_type=create";d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){if(d(".tutor-alert").remove(),"success"==t.status&&location.reload(),"validation\_error"==t.status){d(".tutor-announcements-create-alert").append('<div class="tutor-alert alert-warning"></div>');for(var e=0,o=Object.entries(t.message);e<o.length;e++){var a=y(o\[e\],2),a=(a\[0\],a\[1\]);d(".tutor-announcements-create-alert .tutor-alert").append("<li>".concat(a,"</li>"))}}"fail"==t.status&&d(".tutor-announcements-create-alert").html("<li>".concat(t.message,"</li>"))},error:function(t){console.log(t)}})}),d(".tutor-announcements-update-form").on("submit",function(t){t.preventDefault();var e=d(this).find('button\[type="submit"\]'),t=d(".tutor-announcements-update-form").serialize()+"&action=tutor\_announcement\_create&action\_type=update";d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){if(d(".tutor-alert").remove(),"success"==t.status&&location.reload(),"validation\_error"==t.status){d(".tutor-announcements-update-alert").append('<div class="tutor-alert alert-warning"></div>');for(var e=0,o=Object.entries(t.message);e<o.length;e++){var a=y(o\[e\],2),a=(a\[0\],a\[1\]);d(".tutor-announcements-update-alert > .tutor-alert").append("<li>".concat(a,"</li>"))}}"fail"==t.status&&d(".tutor-announcements-create-alert").html("<li>".concat(t.message,"</li>"))},error:function(){}})}),d(p).click(function(){var t=d(this).attr("announcement-id"),e=d("#tutor-announcement-tr-"+t);confirm("Do you want to delete?")&&d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{action:"tutor\_announcement\_delete",announcement\_id:t},beforeSend:function(){},success:function(t){e.remove(),v.length&&v.removeClass("show"),"fail"==t.status&&console.log(t.message)},error:function(){}})}),d(".tutor-announcement-course-sorting").on("change",function(t){window.location=w("course-id",d(this).val())}),d(".tutor-announcement-order-sorting").on("change",function(t){window.location=w("order",d(this).val())}),d(".tutor-announcement-date-sorting").on("change",function(t){window.location=w("date",d(this).val())}),d(".tutor-announcement-search-sorting").on("click",function(t){window.location=w("search",d(".tutor-announcement-search-field").val())}),d(document).click(function(){d(".tutor-dropdown").removeClass("show")}),d(".tutor-dropdown").click(function(t){t.stopPropagation(),d(".tutor-dropdown").hasClass("show")&&d(".tutor-dropdown").removeClass("show"),d(this).addClass("show")});var b,p=".video\_source\_wrap\_external\_url input, .video\_source\_wrap\_vimeo input, .video\_source\_wrap\_youtube input, .video\_source\_wrap\_html5, .video\_source\_upload\_wrap\_html5";d("body").on("paste",p,function(t){t.stopImmediatePropagation();var r=d(this).closest(".lesson-modal-form-wrap").find(".tutor-option-field-video-duration"),e=r.find("label"),o=d(this).hasClass("video\_source\_wrap\_html5")||d(this).hasClass("video\_source\_upload\_wrap\_html5"),a=d(this).data("autofill\_url");d(this).data("autofill\_url",null);function n(t){t?0==e.find("img").length&&e.append(' <img src="'+window.\_tutorobject.loading\_icon\_url+'" style="display:inline-block"/>'):e.find("img").remove()}function i(t){for(var e=Math.floor(t/3600),o=Math.floor((t-3600\*e)/60),t=Math.round(t-3600\*e-60\*o),a=\[e=e<10?"0"+e:e,o=o<10?"0"+o:o,t=t<10?"0"+t:t\],n=r.find("input"),i=0;i<3;i++)n.eq(i).val(a\[i\])}var s,u,c,t=o?d(this).find("span").data("video\_url"):a||t.originalEvent.clipboardData.getData("text");o||d(this).parent().hasClass("video\_source\_wrap\_external\_url")?((s=document.createElement("video")).addEventListener("loadedmetadata",function(){i(s.duration),n(!1)}),n(!0),s.src=t):d(this).parent().hasClass("video\_source\_wrap\_vimeo")?(u=(c=t.match(/^.\*(vimeo\\.com\\/)((channels\\/\[A-z\]+\\/)|(groups\\/\[A-z\]+\\/videos\\/))?(\[0-9\]+)/))?c\[5\]:null)&&(n(!0),d.getJSON("http://vimeo.com/api/v2/video/"+u+"/json",function(t){Array.isArray(t)&&t\[0\]&&void 0!==t\[0\].duration&&i(t\[0\].duration),n(!1)})):d(this).parent().hasClass("video\_source\_wrap\_youtube")&&(u=!(!(c=t.match(/^.\*((youtu.be\\/)|(v\\/)|(\\/u\\/\\w\\/)|(embed\\/)|(watch\\?))\\??v?=?(\[^#&?\]\*).\*/))||11!=c\[7\].length)&&c\[7\],c=d(this).data("youtube\_api\_key"),u&&c&&(c="https://www.googleapis.com/youtube/v3/videos?id="+u+"&key="+c+"&part=contentDetails",n(!0),d.getJSON(c,function(t){"object"==g(t)&&t.items&&t.items\[0\]&&t.items\[0\].contentDetails&&t.items\[0\].contentDetails.duration&&i(function(t){t=(t=t.match(/PT(\\d+H)?(\\d+M)?(\\d+S)?/)).slice(1).map(function(t){if(null!=t)return t.replace(/\\D/,"")});return 3600\*(parseInt(t\[0\])||0)+60\*(parseInt(t\[1\])||0)+(parseInt(t\[2\])||0)}(t.items\[0\].contentDetails.duration)),n(!1)})))}).on("input",p,function(){b&&clearTimeout(b);var e=d(this);b=setTimeout(function(){var t=(t=e.val())?t.trim():"";console.log("Trigger",t),t&&e.data("autofill\_url",t).trigger("paste")},700)}),d(".tutor-form-submit-through-ajax").submit(function(t){t.preventDefault();var e=d(this),o=d(this).attr("action")||window.location.href,a=d(this).attr("method")||"GET",t=d(this).serializeObject();e.find("button").addClass("tutor-updating-message"),d.ajax({url:o,type:a,data:t,success:function(){tutor\_toast(n("Success","tutor"),e.data("toast\_success\_message"),"success")},complete:function(){e.find("button").removeClass("tutor-updating-message")}})}),d.ajaxSetup({data:tutor\_get\_nonce\_data()})}),jQuery.fn.serializeObject=function(){var t={},e=this.serializeArray();return jQuery.each(e,function(){t\[this.name\]?(t\[this.name\].push||(t\[this.name\]=\[t\[this.name\]\]),t\[this.name\].push(this.value||"")):t\[this.name\]=this.value||""}),t},window.tutor\_toast=function(t,e,o){var a=((window.\_tutorobject||{}).tutor\_url||"")+"assets/images/";jQuery(".tutor-toast-parent").length||jQuery("body").append('<div class="tutor-toast-parent"></div>');var n=jQuery(' <div> <div> <img src="'+{success:a+"icon-check.svg",error:a+"icon-cross.svg"}\[o\]+'"/> </div> <div> <div> <b>'+t+"</b> <span>"+e+'</span> </div> </div> <div> <i class="tutor-toast-close tutor-icon-line-cross"></i> </div> </div>');n.find(".tutor-toast-close").click(function(){n.remove()}),jQuery(".tutor-toast-parent").append(n),setTimeout(function(){n&&n.fadeOut("fast",function(){jQuery(this).remove()})},5e3)},window.disableAddoption=function(){function t(t){t.classList.contains("disabled")||t.classList.add("disabled")}function e(t){t.classList.contains("disabled")&&t.classList.remove("disabled")}var o=document.querySelector(".tutor\_select\_value\_holder").value,a=document.getElementById("tutor\_quiz\_question\_answers"),n=document.getElementById("tutor\_quiz\_question\_answer\_form"),i=document.querySelector(".add\_question\_answers\_option");("open\_ended"===o||"short\_answer"===o||("true\_false"===o||"fill\_in\_the\_blank"===o)&&(n.hasChildNodes()||a.hasChildNodes())?t:e)(i)}},896:()=>{window.jQuery(document).ready(function(o){var a=wp.i18n.\_\_;o(document).on("click",".tutor-copy-text",function(t){t.stopImmediatePropagation(),t.preventDefault();var e=o(this).data("text"),t=o("<input>");o("body").append(t),t.val(e).select(),document.execCommand("copy"),t.remove(),tutor\_toast(a("Copied!","tutor"),e,"success")})})}},a={};function i(t){var e=a\[t\];if(void 0!==e)return e.exports;e=a\[t\]={exports:{}};return o\[t\](e,e.exports,i),e.exports}(()=>{"use strict";i(896),i(623);function n(t){return(n="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})(t)}jQuery(document).ready(function(r){var t=wp.i18n,i=t.\_\_,e=(t.\_x,t.\_n,t.\_nx,i("Search students","tutor"));function a(){jQuery().sortable&&(r(".course-contents").sortable({handle:".course-move-handle",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){o()}}),r(".tutor-lessons:not(.drop-lessons)").sortable({connectWith:".tutor-lessons",items:"div.course-content-item",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){o()}}))}function o(){var i={};r(".tutor-topics-wrap").each(function(t,e){var o=r(this),a=parseInt(o.attr("id").match(/\\d+/)\[0\],10),n={};o.find(".course-content-item").each(function(t,e){var o=r(this),o=parseInt(o.attr("id").match(/\\d+/)\[0\],10);n\[t\]=o}),i\[t\]={topic\_id:a,lesson\_ids:n}}),r("#tutor\_topics\_lessons\_sorting").val(JSON.stringify(i))}jQuery().wpColorPicker&&r(".tutor\_colorpicker").wpColorPicker(),jQuery().select2&&r(".tutor\_select2").select2(),r(".tutor-option-nav-tabs li a").click(function(t){t.preventDefault();t=r(this).attr("data-tab");r(".option-nav-item").removeClass("current"),r(this).closest("li").addClass("current"),r(".tutor-option-nav-page").hide(),r(t).addClass("current-page").show(),window.history.pushState("obj","",r(this).attr("href"))}),r("#save\_tutor\_option").click(function(t){t.preventDefault(),r(this).closest("form").submit()}),r("#tutor-option-form").submit(function(t){t.preventDefault();var e=r(this),t=e.serializeObject();r.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.find(".button").addClass("tutor-updating-message")},success:function(t){t.success?tutor\_toast(i("Saved","tutor"),e.data("toast\_success\_message"),"success"):tutor\_toast(i("Request Error","tutor"),i("Could not save","tutor"),"error")},complete:function(){e.find(".button").removeClass("tutor-updating-message")}})}),r(document).on("click",".withdraw-method-nav li a",function(t){t.preventDefault();t=r(this).attr("data-target-id");r(".withdraw-method-form-wrap").hide(),r("#"+t).show()}),a(),r(document).on("click",".update\_lesson\_modal\_btn",function(t){t.preventDefault();var e=r(this),o="tutor\_lesson\_modal\_editor",t=tinyMCE.get(o),t=t?t.getContent():r("#"+o).val(),o=r(this).closest("form").serializeObject();o.lesson\_content=t,r.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:o,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(r("#tutor-course-content-wrap").html(t.data.course\_contents),a(),r(".tutor-lesson-modal-wrap").removeClass("show"),tutor\_toast(i("Lesson Updated","tutor"),e.data("toast\_success\_message"),"success"))},complete:function(){e.removeClass("tutor-updating-message")}})}),r(document).on("change",".tutor\_lesson\_video\_source",function(t){var e=r(this).val();r('\[class^="video\_source\_wrap"\]').hide(),r(".video\_source\_wrap\_"+e).show(),"html5"===e?r(".tutor-video-poster-field").show():r(".tutor-video-poster-field").hide()}),r(document).on("click",".video\_source\_wrap\_html5 .video\_upload\_btn",function(t){t.preventDefault();var e,o=r(this);e||(e=wp.media({title:i("Select or Upload Media Of Your Choice","tutor"),button:{text:i("Upload media","tutor")},library:{type:"video"},multiple:!1})).on("select",function(){var t=e.state().get("selection").first().toJSON();o.closest(".video\_source\_wrap\_html5").find("span.video\_media\_id").data("video\_url",t.url).text(t.id).trigger("paste").closest("p").show(),o.closest(".video\_source\_wrap\_html5").find("input.input\_source\_video\_id").val(t.id)}),e.open()}),r(document).on("click","a.tutor-delete-attachment",function(t){t.preventDefault(),r(this).closest(".tutor-added-attachment").remove()}),r(document).on("click",".tutorUploadAttachmentBtn",function(t){t.preventDefault();var a,n=r(this);a||(a=wp.media({title:i("Select or Upload Media Of Your Choice","tutor"),button:{text:i("Upload media","tutor")},multiple:!0})).on("select",function(){var t=a.state().get("selection").toJSON();if(t.length)for(var e=0;e<t.length;e++){var o=t\[e\],o='<div class="tutor-added-attachment"><i class="tutor-icon-archive"></i> <a href="javascript:;" class="tutor-delete-attachment tutor-icon-line-cross"></a> <span> <a href="'+o.url+'">'+o.filename+'</a> </span><input type="hidden" name="tutor\_attachments\[\]" value="'+o.id+'"></div>';n.closest(".tutor-lesson-attachments-metabox").find(".tutor-added-attachments-wrap").append(o)}}),a.open()}),\_tutorobject.open\_tutor\_admin\_menu&&((t=r("#adminmenu")).find('\[href="admin.php?page=tutor"\]').closest("li.wp-has-submenu").addClass("wp-has-current-submenu"),t.find('\[href="admin.php?page=tutor"\]').closest("li.wp-has-submenu").find("a.wp-has-submenu").removeClass("wp-has-current-submenu").addClass("wp-has-current-submenu")),r(document).on("click",".tutor-option-media-upload-btn",function(t){t.preventDefault();var e,o=r(this);e||(e=wp.media({title:i("Select or Upload Media Of Your Choice","tutor"),button:{text:i("Upload media","tutor")},multiple:!1})).on("select",function(){var t=e.state().get("selection").first().toJSON();o.closest(".option-media-wrap").find(".option-media-preview").html('<img src="'+t.url+'" alt="" />'),o.closest(".option-media-wrap").find("input").val(t.id),o.closest(".option-media-wrap").find(".tutor-media-option-trash-btn").show()}),e.open()}),r(document).on("click",".tutor-media-option-trash-btn",function(t){t.preventDefault();t=r(this);t.closest(".option-media-wrap").find("img").remove(),t.closest(".option-media-wrap").find("input").val(""),t.closest(".option-media-wrap").find(".tutor-media-option-trash-btn").hide()}),r(document).on("change",".tutor\_addons\_list\_item",function(t){var e=r(this),o=e.prop("checked")?1:0,e=e.attr("name");r.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{isEnable:o,addonFieldName:e,action:"addon\_enable\_disable"},success:function(t){t.success}})}),r(document).on("submit","#new-instructor-form",function(t){t.preventDefault();var o=r(this),t=o.serializeObject();t.action="tutor\_add\_instructor",r.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,success:function(t){var a,e;t.success?(o.trigger("reset"),r("#form-response").html('<p class="tutor-status-approved-context">'+t.data.msg+"</p>")):(a="",(e=t.data.errors)&&Object.keys(e).length&&(r.each(t.data.errors,function(t,e){var o;(o=e)&&"object"===n(o)&&o.constructor===Object?r.each(e,function(t,e){a+='<p class="tutor-required-fields">'+e\[0\]+"</p>"}):a+='<p class="tutor-required-fields">'+e+"</p>"}),r("#form-response").html(a)))}})}),r(document).on("click","a.instructor-action",function(t){t.preventDefault();var e=r(this),o=e.attr("data-action"),a=e.attr("data-instructor-id"),t=e.attr("data-prompt-message");t&&!confirm(t)||((a={instructor\_id:a,action\_name:o,action:"instructor\_approval\_action"})\[o=\_tutorobject.nonce\_key\]=\_tutorobject\[o\],r.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:a,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){location.reload(!0)},complete:function(){e.removeClass("tutor-updating-message")}}))}),r(document).on("click",".tutor-create-assignments-btn",function(t){t.preventDefault();var e=r(this),o=r(this).attr("data-topic-id"),a=r("#post\_ID").val();r.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{topic\_id:o,course\_id:a,action:"tutor\_load\_assignments\_builder\_modal"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){r(".tutor-lesson-modal-wrap .modal-container").html(t.data.output),r(".tutor-lesson-modal-wrap").attr("data-topic-id",o).addClass("show"),r(document).trigger("assignment\_modal\_loaded",{topic\_id:o,course\_id:a}),tinymce.init(tinyMCEPreInit.mceInit.tutor\_editor\_config),tinymce.execCommand("mceRemoveEditor",!1,"tutor\_assignments\_modal\_editor"),tinyMCE.execCommand("mceAddEditor",!1,"tutor\_assignments\_modal\_editor")},complete:function(){quicktags({id:"tutor\_assignments\_modal\_editor"}),e.removeClass("tutor-updating-message")}})}),r(document).on("click",".open-tutor-assignment-modal",function(t){t.preventDefault();var e=r(this),o=e.attr("data-assignment-id"),a=e.attr("data-topic-id"),n=r("#post\_ID").val();r.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{assignment\_id:o,topic\_id:a,course\_id:n,action:"tutor\_load\_assignments\_builder\_modal"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){r(".tutor-lesson-modal-wrap .modal-container").html(t.data.output),r(".tutor-lesson-modal-wrap").attr({"data-assignment-id":o,"data-topic-id":a}).addClass("show"),r(document).trigger("assignment\_modal\_loaded",{assignment\_id:o,topic\_id:a,course\_id:n}),tinymce.init(tinyMCEPreInit.mceInit.tutor\_editor\_config),tinymce.execCommand("mceRemoveEditor",!1,"tutor\_assignments\_modal\_editor"),tinyMCE.execCommand("mceAddEditor",!1,"tutor\_assignments\_modal\_editor")},complete:function(){quicktags({id:"tutor\_assignments\_modal\_editor"}),e.removeClass("tutor-updating-message")}})}),r(document).on("click",".update\_assignment\_modal\_btn",function(t){t.preventDefault();var e=r(this),o="tutor\_assignments\_modal\_editor",t=tinyMCE.get(o),t=t?t.getContent():r("#"+o).val(),o=r(this).closest("form").serializeObject();o.assignment\_content=t,r.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:o,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(r("#tutor-course-content-wrap").html(t.data.course\_contents),a(),r(".tutor-lesson-modal-wrap").removeClass("show"),tutor\_toast(i("Assignment Updated","tutor"),e.data("toast\_success\_message"),"success"))},complete:function(){e.removeClass("tutor-updating-message")}})}),r(document).on("click",".add-assignment-attachments",function(t){t.preventDefault();var o,a=r(this);o||(o=wp.media({title:i("Select or Upload Media Of Your Choice","tutor"),button:{text:i("Upload media","tutor")},multiple:!1})).on("select",function(){var t=o.state().get("selection").first().toJSON(),e='<div class="tutor-individual-attachment-file"><p class="attachment-file-name">'+t.filename+'</p><input type="hidden" name="tutor\_assignment\_attachments\[\]" value="'+t.id+'"><a href="javascript:;" class="remove-assignment-attachment-a text-muted"> × Remove</a></div>';r("#assignment-attached-file").append(e),a.closest(".video\_source\_wrap\_html5").find("input").val(t.id)}),o.open()}),r(document).on("click",".remove-assignment-attachment-a",function(t){t.preventDefault(),r(this).closest(".tutor-individual-attachment-file").remove()}),r(document).on("click",".tutor\_video\_poster\_upload\_btn",function(t){t.preventDefault();var e,o=r(this);e||(e=wp.media({title:i("Select or Upload Media Of Your Choice","tutor"),button:{text:i("Upload media","tutor")},multiple:!1})).on("select",function(){var t=e.state().get("selection").first().toJSON();o.closest(".tutor-video-poster-wrap").find(".video-poster-img").html('<img src="'+t.sizes.thumbnail.url+'" alt="" />'),o.closest(".tutor-video-poster-wrap").find("input").val(t.id)}),e.open()}),r(document).on("change","#tutor\_pmpro\_membership\_model\_select",function(t){t.preventDefault(),"category\_wise\_membership"===r(this).val()?r(".membership\_course\_categories").show():r(".membership\_course\_categories").hide()}),r(document).on("change","#tutor\_pmpro\_membership\_model\_select",function(t){t.preventDefault(),"category\_wise\_membership"===r(this).val()?r(".membership\_course\_categories").show():r(".membership\_course\_categories").hide()}),r(document).on("submit",".pmpro\_admin form",function(t){var e=r(this);e.find('input\[name="tutor\_action"\]').length&&("category\_wise\_membership"!=e.find('\[name="tutor\_pmpro\_membership\_model"\]').val()||e.find(".membership\_course\_categories input:checked").length||confirm(i("Do you want to save without any category?","tutor"))||t.preventDefault())}),r("#select2\_search\_user\_ajax").select2({allowClear:!0,minimumInputLength:1,placeholder:e,language:{inputTooShort:function(){return i("Please add 1 or more character","tutor")}},escapeMarkup:function(t){return t},ajax:{url:window.\_tutorobject.ajaxurl,type:"POST",dataType:"json",delay:1e3,data:function(t){return{term:t.term,action:"tutor\_json\_search\_students"}},processResults:function(t){var o=\[\];return t&&r.each(t,function(t,e){o.push({id:t,text:e})}),{results:o}},cache:!0}}),r(document).on("click","table.enrolments .delete a",function(t){t.preventDefault();var e=r(this).attr("href"),t={title:i("Delete this enrolment","tutor"),description:i("All of the course data like quiz attempts, assignment, lesson <br/>progress will be deleted if you delete this student's enrollment.","tutor"),buttons:{reset:{title:i("Cancel","tutor"),class:"secondary",callback:function(){o.remove()}},keep:{title:i("Yes, Delete This","tutor"),class:"primary",callback:function(){window.location.replace(e)}}}},o=new window.tutor\_popup(r,"icon-trash",40).popup(t)});e=r('#tutor-attach-product \[name="tutor\_course\_price\_type"\]');0==e.length?r("#\_tutor\_is\_course\_public\_meta\_checkbox").show():e.change(function(){var t;r(this).prop("checked")&&(t="paid"==r(this).val()?"hide":"show",r("#\_tutor\_is\_course\_public\_meta\_checkbox")\[t\]())}).trigger("change"),r(document).on("click",".instructor-layout-template",function(){r(".instructor-layout-template").removeClass("selected-template"),r(this).addClass("selected-template")}),r("#preview-action a.preview").click(function(t){var e=r(this).attr("href");e&&(t.preventDefault(),window.open(e,"\_blank"))})})})()})();
tutor/tags/1.9.11/assets/js/tutor-course-builder.js
r2610239
r2615802
1
window.jQuery(document).ready(function(t){t(".tutor-certificate-template-tab \[data-tutor-tab-target\]").click(function(){t(this).addClass("is-active").siblings().removeClass("is-active"),t("#"+t(this).data("tutor-tab-target")).show().siblings().hide()}),t(".").click(function(){t(this).siblings().filter("tutor-certificate-collapsible")})});
tutor/tags/1.9.11/assets/js/tutor-front.js
r2610239
r2615802
1
(()=>{var o={623:()=>{function b(t){return(b="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})(t)}function y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var o=null==t?null:"undefined"!=typeof Symbol&&t\[Symbol.iterator\]||t\["@@iterator"\];if(null!=o){var n,a,i=\[\],r=!0,s=!1;try{for(o=o.call(t);!(r=(n=o.next()).done)&&(i.push(n.value),!e||i.length!==e);r=!0);}catch(t){s=!0,a=t}finally{try{r||null==o.return||o.return()}finally{if(s)throw a}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return n(t,e);var o=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(o="Object"===o&&t.constructor?t.constructor.name:o)||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?n(t,e):void 0}}(t,e)||function(){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 n(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,n=new Array(e);o<e;o++)n\[o\]=t\[o\];return n}window.tutor\_get\_nonce\_data=function(t){var e=window.\_tutorobject||{},o=e.nonce\_key||"",e=e\[o\]||"";return t?{key:o,value:e}:(t=e,(e=o)in(o={})?Object.defineProperty(o,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):o\[e\]=t,o)},window.tutor\_popup=function(r,o,n){var s,u=this;return this.popup\_wrapper=function(t){var e=""===o?"":'<img class="tutor-pop-icon" src="'+window.\_tutorobject.tutor\_url+"assets/images/"+o+'.svg"/>';return"<"+t+' class="tutor-component-popup-container"> <div class="tutor-component-popup-'+n+'"> <div class="tutor-component-content-container">'+e+'</div> <div class="tutor-component-button-container"></div> </div> </'+t+">"},this.popup=function(o){var t=o.title?"<h3>"+o.title+"</h3>":"",e=o.description?"<p>"+o.description+"</p>":"",n=Object.keys(o.buttons||{}).map(function(t){var e=o.buttons\[t\],t=e.id?"tutor-popup-"+e.id:"";return r('<button id="'+t+'" class="tutor-button tutor-button-'+e.class+'">'+e.title+"</button>").click(e.callback)}),a=(s=r(u.popup\_wrapper(o.wrapper\_tag||"div"))).find(".tutor-component-content-container");a.append(t),o.after\_title&&a.append(o.after\_title),a.append(e),o.after\_description&&a.append(o.after\_description),s.click(function(){r(this).remove()}).children().click(function(t){t.stopPropagation()});for(var i=0;i<n.length;i++)s.find(".tutor-component-button-container").append(n\[i\]);return r("body").append(s),s},{popup:this.popup}},window.tutorDotLoader=function(t){return' \\n <div class="tutor-dot-loader '.concat(t||"",'">\\n <span class="dot dot-1"></span>\\n <span class="dot dot-2"></span>\\n <span class="dot dot-3"></span>\\n <span class="dot dot-4"></span>\\n </div>')},window.tutor\_date\_picker=function(){var t;jQuery.datepicker&&(t=\_tutorobject.wp\_date\_format||"yy-mm-dd",$(".tutor\_date\_picker").datepicker({dateFormat:t}))},jQuery(document).ready(function(l){"use strict";var t=wp.i18n,a=t.\_\_;t.\_x,t.\_n,t.\_nx;function o(){var t;jQuery.datepicker&&(t=\_tutorobject.wp\_date\_format||"yy-mm-dd",l(".tutor\_date\_picker").datepicker({dateFormat:t})),l(document).on("keydown",".hasDatepicker, .tutor\_date\_picker",function(t){8!==t.keyCode&&t.preventDefault()})}function s(){l(".tutor-field-slider").each(function(){var t=l(this),o=t.closest(".tutor-field-type-slider").find('input\[type="hidden"\]'),n=t.closest(".tutor-field-type-slider").find(".tutor-field-type-slider-value"),e=parseFloat(t.closest(".tutor-field-type-slider").attr("data-min")),a=parseFloat(t.closest(".tutor-field-type-slider").attr("data-max"));t.slider({range:"max",min:e,max:a,value:o.val(),slide:function(t,e){n.text(e.value),o.val(e.value)}})})}function e(t){var e=t.element;return l('<span><i class="tutor-icon-'+l(e).data("icon")+'"></i> '+t.text+"</span>")}function i(){jQuery().sortable&&(l(".course-contents").sortable({handle:".course-move-handle",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){n()}}),l(".tutor-lessons:not(.drop-lessons)").sortable({connectWith:".tutor-lessons",items:"div.course-content-item",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){n()}}))}function n(){var i={};l(".tutor-topics-wrap").each(function(t,e){var o=l(this),n=parseInt(o.attr("id").match(/\\d+/)\[0\],10),a={};o.find(".course-content-item").each(function(t,e){var o=l(this),o=parseInt(o.attr("id").match(/\\d+/)\[0\],10);a\[t\]=o}),i\[t\]={topic\_id:n,lesson\_ids:a}}),l("#tutor\_topics\_lessons\_sorting").val(JSON.stringify(i))}function r(){return{init:function(){l(document).on("click",".tutor-select .tutor-select-option",function(t){t.preventDefault();var e=l(this);"true"!==e.attr("data-is-pro")?(t=e.html().trim(),e.closest(".tutor-select").find(".select-header .lead-option").html(t),e.closest(".tutor-select").find(".select-header input.tutor\_select\_value\_holder").val(e.attr("data-value")).trigger("change"),e.closest(".tutor-select-options").hide(),disableAddoption()):alert("Tutor Pro version required")}),l(document).on("click",".tutor-select .select-header",function(t){t.preventDefault(),l(this).closest(".tutor-select").find(".tutor-select-options").slideToggle()}),this.setValue(),this.hideOnOutSideClick()},setValue:function(){l(".tutor-select").each(function(){var t=l(this).find(".tutor-select-option");t.length&&t.each(function(){var t,e=l(this);"selected"===e.attr("data-selected")&&(t=e.html().trim(),e.closest(".tutor-select").find(".select-header .lead-option").html(t),e.closest(".tutor-select").find(".select-header input.tutor\_select\_value\_holder").val(e.attr("data-value")))})})},hideOnOutSideClick:function(){l(document).mouseup(function(t){var e=l(".tutor-select-options");l(t.target).closest(".select-header").length||e.is(t.target)||0!==e.has(t.target).length||e.hide()})},reInit:function(){this.setValue()}}}o(),s(),jQuery().select2&&l(".videosource\_select2").select2({width:"100%",templateSelection:e,templateResult:e,allowHtml:!0}),l(document).on("change",".tutor\_lesson\_video\_source",function(t){var e=l(this),o=l(this).val();o?l(".video-metabox-source-input-wrap").show():l(".video-metabox-source-input-wrap").hide(),e.closest(".tutor-option-field").find(".video-metabox-source-item").hide(),e.closest(".tutor-option-field").find(".video\_source\_wrap\_"+o).show()}),l(document).on("click",".tutor-course-thumbnail-upload-btn",function(t){t.preventDefault();var e,o=l(this);e||(e=wp.media({title:a("Select or Upload Media Of Your Chosen Persuasion","tutor"),button:{text:a("Use this media","tutor")},multiple:!1})).on("select",function(){var t=e.state().get("selection").first().toJSON();o.closest(".tutor-thumbnail-wrap").find(".thumbnail-img").attr("src",t.url),o.closest(".tutor-thumbnail-wrap").find("input").val(t.id),l(".tutor-course-thumbnail-delete-btn").show()}),e.open()}),l(document).on("click",".tutor-course-thumbnail-delete-btn",function(t){t.preventDefault();var e=l(this),t=e.closest(".tutor-thumbnail-wrap").find(".thumbnail-img").attr("data-placeholder-src");e.closest(".tutor-thumbnail-wrap").find(".thumbnail-img").attr("src",t),e.closest(".tutor-thumbnail-wrap").find("input").val(""),l(".tutor-course-thumbnail-delete-btn").hide()}),l(document).on("click",".create\_new\_topic\_btn",function(t){t.preventDefault(),l(".tutor-metabox-add-topics").slideToggle()}),l(document).on("click","#tutor-add-topic-btn",function(t){t.preventDefault();var e=l(this),t=e.closest(".tutor-metabox-add-topics").find("input, textarea").serializeObject();t.action="tutor\_add\_course\_topic",l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(l("#tutor-course-content-wrap").html(t.data.course\_contents),e.closest(".tutor-metabox-add-topics").find('input\[type!="hidden"\], textarea').each(function(){l(this).val("")}),e.closest(".tutor-metabox-add-topics").slideUp(),i())},complete:function(){e.removeClass("tutor-updating-message")}})}),l(".tutor-zoom-meeting-modal-wrap").on("submit",".tutor-meeting-modal-form",function(t){t.preventDefault();var e=l(this),o=e.serializeObject(),t=Intl.DateTimeFormat().resolvedOptions().timeZone;o.timezone=t;var n=e.find('button\[type="submit"\]');l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:o,beforeSend:function(){n.addClass("tutor-updating-message")},success:function(t){t.success?tutor\_toast(a("Success","tutor"),n.data("toast\_success\_message"),"success"):tutor\_toast(a("Update Error","tutor"),a("Meeting Update Failed","tutor"),"error"),t.course\_contents?(l(t.selector).html(t.course\_contents),"#tutor-course-content-wrap"==t.selector&&i(),l(".tutor-zoom-meeting-modal-wrap").removeClass("show")):location.reload()},complete:function(){n.removeClass("tutor-updating-message")}})}),l(document).on("change keyup",".course-edit-topic-title-input",function(t){t.preventDefault(),l(this).closest(".tutor-topics-top").find(".topic-inner-title").html(l(this).val())}),l(document).on("click",".topic-edit-icon",function(t){t.preventDefault(),l(this).closest(".tutor-topics-top").find(".tutor-topics-edit-form").slideToggle()}),l(document).on("click",".tutor-topics-edit-button",function(t){t.preventDefault();var e=l(this),o=e.closest(".tutor-topics-wrap"),t=parseInt(o.attr("id").match(/\\d+/)\[0\],10),n=e.closest(".tutor-topics-wrap").find('\[name="topic\_title"\]').val(),o=e.closest(".tutor-topics-wrap").find('\[name="topic\_summery"\]').val();l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{topic\_title:n,topic\_summery:o,topic\_id:t,action:"tutor\_update\_topic"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(e.closest(".tutor-topics-wrap").find("span.topic-inner-title").text(n),e.closest(".tutor-topics-wrap").find(".tutor-topics-edit-form").slideUp())},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click",".open-tutor-lesson-modal",function(t){t.preventDefault();var e=l(this),o=e.attr("data-lesson-id"),n=e.attr("data-topic-id"),a=l("#post\_ID").val();l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{lesson\_id:o,topic\_id:n,course\_id:a,action:"tutor\_load\_edit\_lesson\_modal"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){l(".tutor-lesson-modal-wrap .modal-container").html(t.data.output),l(".tutor-lesson-modal-wrap").attr({"data-lesson-id":o,"data-topic-id":n}).addClass("show");t=(t=tinyMCEPreInit.mceInit.tutor\_editor\_config)||tinyMCEPreInit.mceInit.course\_description;tinymce.init(t),tinymce.execCommand("mceRemoveEditor",!1,"tutor\_lesson\_modal\_editor"),tinyMCE.execCommand("mceAddEditor",!1,"tutor\_lesson\_modal\_editor"),l(document).trigger("lesson\_modal\_loaded",{lesson\_id:o,topic\_id:n,course\_id:a})},complete:function(){quicktags({id:"tutor\_lesson\_modal\_editor"}),e.removeClass("tutor-updating-message")}})}),l(document).on("click",".lesson\_thumbnail\_upload\_btn",function(t){t.preventDefault();var e,o=l(this);e||(e=wp.media({title:a("Select or Upload Media Of Your Chosen Persuasion","tutor"),button:{text:a("Use this media","tutor")},multiple:!1})).on("select",function(){var t=e.state().get("selection").first().toJSON();o.closest(".tutor-thumbnail-wrap").find(".thumbnail-img").html('<img src="'+t.url+'" alt="" /><a href="javascript:;" class="tutor-lesson-thumbnail-delete-btn"><i class="tutor-icon-line-cross"></i></a>'),o.closest(".tutor-thumbnail-wrap").find("input").val(t.id),l(".tutor-lesson-thumbnail-delete-btn").show()}),e.open()}),l(document).on("click",".tutor-lesson-thumbnail-delete-btn",function(t){t.preventDefault();t=l(this);t.closest(".tutor-thumbnail-wrap").find(".\_lesson\_thumbnail\_id").val(""),t.closest(".tutor-thumbnail-wrap").find(".thumbnail-img").html(""),t.hide()}),l(document).on("click",".tutor-delete-lesson-btn",function(t){var e;t.preventDefault(),confirm(a("Are you sure?","tutor"))&&(t=(e=l(this)).attr("data-lesson-id"),l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{lesson\_id:t,action:"tutor\_delete\_lesson\_by\_id"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&e.closest(".course-content-item").remove()},complete:function(){e.removeClass("tutor-updating-message")}}))}),l(document).on("click",".topic-delete-btn a",function(t){l(this).attr("data-topic-id");confirm(a("Are you sure to delete?","tutor"))||t.preventDefault()}),l(document).on("click",".tutor-expand-all-topic",function(t){t.preventDefault(),l(".tutor-topics-body").slideDown(),l(".expand-collapse-wrap i").removeClass("tutor-icon-light-down").addClass("tutor-icon-light-up")}),l(document).on("click",".tutor-collapse-all-topic",function(t){t.preventDefault(),l(".tutor-topics-body").slideUp(),l(".expand-collapse-wrap i").removeClass("tutor-icon-light-up").addClass("tutor-icon-light-down")}),l(document).on("click",".topic-inner-title, .expand-collapse-wrap",function(t){t.preventDefault();t=l(this);t.closest(".tutor-topics-wrap").find(".tutor-topics-body").slideToggle(),t.closest(".tutor-topics-wrap").find(".expand-collapse-wrap i").toggleClass("tutor-icon-light-down tutor-icon-light-up")}),l(document).on("click",".quiz-modal-btn-first-step",function(t){t.preventDefault();var e,o,n,a=l(this),i=l('\[name="quiz\_title"\]'),r=i.val(),t=l('\[name="quiz\_description"\]').val();r?(i.closest(".tutor-quiz-builder-group").find(".quiz\_form\_msg").html(""),e=l("#post\_ID").val(),o=a.closest(".tutor-modal-wrap").attr("quiz-for-post-id"),l("#tutor\_quiz\_builder\_quiz\_id").length?(n=l("#tutor\_quiz\_builder\_quiz\_id").val(),l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{quiz\_title:r,quiz\_description:t,quiz\_id:n,topic\_id:o,action:"tutor\_quiz\_builder\_quiz\_update"},beforeSend:function(){a.addClass("tutor-updating-message")},success:function(t){l("#tutor-quiz-"+n).html(t.data.output\_quiz\_row),l('#tutor-quiz-modal-tab-items-wrap a\[href="#quiz-builder-tab-questions"\]').trigger("click"),s()},complete:function(){a.removeClass("tutor-updating-message")}})):l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{quiz\_title:r,quiz\_description:t,course\_id:e,topic\_id:o,action:"tutor\_create\_quiz\_and\_load\_modal"},beforeSend:function(){a.addClass("tutor-updating-message")},success:function(t){l(".tutor-quiz-builder-modal-wrap .modal-container").html(t.data.output),l("#tutor-topics-"+o+" .tutor-lessons").append(t.data.output\_quiz\_row),l('#tutor-quiz-modal-tab-items-wrap a\[href="#quiz-builder-tab-questions"\]').trigger("click"),s(),l(document).trigger("quiz\_modal\_loaded",{topic\_id:o,course\_id:e})},complete:function(){a.removeClass("tutor-updating-message")}})):i.closest(".tutor-quiz-builder-group").find(".quiz\_form\_msg").html("Please enter quiz title")}),l(document).on("click",".open-tutor-quiz-modal",function(t){t.preventDefault();var e=l(this),o=e.attr("data-quiz-id"),n=e.attr("data-topic-id");null==n&&(n=e.closest(".tutor-modal-wrap").attr("quiz-for-post-id"));var a=l("#post\_ID").val();l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{quiz\_id:o,topic\_id:n,course\_id:a,action:"tutor\_load\_edit\_quiz\_modal"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){l(".tutor-quiz-builder-modal-wrap .modal-container").html(t.data.output),l(".tutor-quiz-builder-modal-wrap").attr("data-quiz-id",o).attr("quiz-for-post-id",n).addClass("show"),e.attr("data-back-to-tab")&&(t=e.attr("data-back-to-tab"),l('#tutor-quiz-modal-tab-items-wrap a\[href="'+t+'"\]').trigger("click")),l(document).trigger("quiz\_modal\_loaded",{quiz\_id:o,topic\_id:n,course\_id:a}),s(),jQuery().sortable&&l(".quiz-builder-questions-wrap").sortable({handle:".question-sorting",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){var n;n={},l(".quiz-builder-question-wrap").each(function(t,e){var o=l(this),o=parseInt(o.attr("data-question-id"),10);n\[t\]=o}),l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{sorted\_question\_ids:n,action:"tutor\_quiz\_question\_sorting"}})}})},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click",".quiz-modal-settings-save-btn",function(t){t.preventDefault();var e=l(this),o=l(".tutor-quiz-builder-modal-wrap").attr("data-quiz-id"),n=l("#current\_topic\_id\_for\_quiz").val(),t=l("#quiz-builder-tab-settings :input, #quiz-builder-tab-advanced-options :input").serializeObject();t.topic\_id=n,t.quiz\_id=o,t.action="tutor\_quiz\_modal\_update\_settings",l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&l("#tutor-course-content-wrap").html(t.data.course\_contents),t.success?tutor\_toast(a("Success","tutor"),e.data("toast\_success\_message"),"success"):tutor\_toast(a("Update Error","tutor"),a("Quiz Update Failed","tutor"),"error")},complete:function(){e.removeClass("tutor-updating-message"),"modal\_close"===e.attr("data-action")&&l(".tutor-modal-wrap").removeClass("show")}})}),l(document).on("click",".quiz-modal-question-save-btn",function(t){t.preventDefault();var e=l(this),o=l(".quiz\_question\_form :input").serializeObject();o.action="tutor\_quiz\_modal\_update\_question";t=e.closest(".tutor-modal-wrap").attr("quiz-for-post-id");o.topic\_id=t,l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:o,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success?e.closest(".tutor-quiz-builder-modal-contents").find(".open-tutor-quiz-modal").trigger("click"):void 0!==t.data&&l("#quiz\_validation\_msg\_wrap").html(t.data.validation\_msg)},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click",".modal-close-btn",function(t){t.preventDefault(),l(".tutor-modal-wrap").removeClass("show")}),l(document).on("keyup",function(t){27===t.keyCode&&l(".tutor-modal-wrap").removeClass("show")}),l(document).on("click",".tutor-add-quiz-btn",function(t){t.preventDefault();var e=l(this),o=l(this).closest(".tutor\_add\_quiz\_wrap").attr("data-add-quiz-under"),t=l(this).data("topic-id");l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{quiz\_for\_post\_id:o,current\_topic\_id:t,action:"tutor\_load\_quiz\_builder\_modal"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){l(".tutor-quiz-builder-modal-wrap .modal-container").html(t.data.output),l(".tutor-quiz-builder-modal-wrap").attr("quiz-for-post-id",o).addClass("show")},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click",".tutor-quiz-modal-tab-item",function(t){t.preventDefault();var e=l(this),o=l('\[name="quiz\_title"\]');o.val()?(o.closest(".tutor-quiz-builder-form-row").find(".quiz\_form\_msg").html(""),t=e.attr("href"),l(".quiz-builder-tab-container").hide(),l(t).show(),l("a.tutor-quiz-modal-tab-item").removeClass("active"),e.addClass("active")):o.closest(".tutor-quiz-builder-form-row").find(".quiz\_form\_msg").html('<p class="quiz-form-warning">Please save the quiz first</p>')}),l(document).on("click",".quiz-modal-btn-next, .quiz-modal-btn-back",function(t){t.preventDefault();t=l(this).attr("href");l('#tutor-quiz-modal-tab-items-wrap a\[href="'+t+'"\]').trigger("click")}),l(document).on("click",".quiz-modal-tab-navigation-btn.quiz-modal-btn-cancel",function(t){t.preventDefault(),l(".tutor-modal-wrap").removeClass("show")}),l(document).on("click",".tutor-quiz-open-question-form",function(t){t.preventDefault();var e=l(this),o=l("#tutor\_quiz\_builder\_quiz\_id").val(),n=l("#post\_ID").val(),t=e.attr("data-question-id"),n={quiz\_id:o,course\_id:n,action:"tutor\_quiz\_builder\_get\_question\_form"};t&&(n.question\_id=t),l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:n,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){l(".tutor-quiz-builder-modal-contents").html(t.data.output),r().reInit(),jQuery().sortable&&l("#tutor\_quiz\_question\_answers").sortable({handle:".tutor-quiz-answer-sort-icon",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){var n;n={},l(".tutor-quiz-answer-wrap").each(function(t,e){var o=l(this),o=parseInt(o.attr("data-answer-id"),10);n\[t\]=o}),l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{sorted\_answer\_ids:n,action:"tutor\_quiz\_answer\_sorting"}})}}),disableAddoption()},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click",".tutor-quiz-question-trash",function(t){t.preventDefault();var e=l(this),t=e.attr("data-question-id");l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{question\_id:t,action:"tutor\_quiz\_builder\_question\_delete"},beforeSend:function(){e.closest(".quiz-builder-question-wrap").remove()}})}),l(document).on("click",".add\_question\_answers\_option:not(.disabled)",function(t){t.preventDefault();var e=l(this),o=e.attr("data-question-id"),t=l(".quiz\_question\_form :input").serializeObject();t.question\_id=o,t.action="tutor\_quiz\_add\_question\_answers",l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){l("#tutor\_quiz\_question\_answer\_form").html(t.data.output),disableAddoption()},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click",".tutor-quiz-answer-edit a",function(t){t.preventDefault();var e=l(this),t=e.closest(".tutor-quiz-answer-wrap").attr("data-answer-id");l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{answer\_id:t,action:"tutor\_quiz\_edit\_question\_answer"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){l("#tutor\_quiz\_question\_answer\_form").html(t.data.output)},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click","#quiz-answer-save-btn",function(t){t.preventDefault();var e=l(this),t=l(".quiz\_question\_form :input").serializeObject();t.action="tutor\_save\_quiz\_answer\_options",l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){l("#quiz\_validation\_msg\_wrap").html(""),e.addClass("tutor-updating-message")},success:function(t){l("#tutor\_quiz\_question\_answers").trigger("refresh")},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click","#quiz-answer-edit-btn",function(t){t.preventDefault();var e=l(this),t=l(".quiz\_question\_form :input").serializeObject();t.action="tutor\_update\_quiz\_answer\_options",l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){l("#tutor\_quiz\_question\_answers").trigger("refresh")},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("change",".tutor-quiz-answers-mark-correct-wrap input",function(t){t.preventDefault();var e=l(this),o=e.val(),t=1;e.prop("checked")||(t=0),l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{answer\_id:o,inputValue:t,action:"tutor\_mark\_answer\_as\_correct"}})}),l(document).on("refresh","#tutor\_quiz\_question\_answers",function(t){t.preventDefault();var e=l(this),o=e.attr("data-question-id"),t=l(".tutor\_select\_value\_holder").val();l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{question\_id:o,question\_type:t,action:"tutor\_quiz\_builder\_get\_answers\_by\_question"},beforeSend:function(){e.addClass("tutor-updating-message"),l("#tutor\_quiz\_question\_answer\_form").html("")},success:function(t){t.success&&e.html(t.data.output)},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click",".tutor-quiz-answer-trash-wrap a.answer-trash-btn",function(t){t.preventDefault();var e=l(this),t=e.attr("data-answer-id");l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{answer\_id:t,action:"tutor\_quiz\_builder\_delete\_answer"},beforeSend:function(){e.closest(".tutor-quiz-answer-wrap").remove()}})}),l(document).on("click",".tutor-delete-quiz-btn",function(t){var e;t.preventDefault(),confirm(a("Are you sure?","tutor"))&&(t=(e=l(this)).attr("data-quiz-id"),l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{quiz\_id:t,action:"tutor\_delete\_quiz\_by\_id"},beforeSend:function(){e.closest(".course-content-item").remove()}}))}),r().init(),l(document).on("change","input.tutor\_select\_value\_holder",function(t){l(this);l(".add\_question\_answers\_option").trigger("click"),l("#tutor\_quiz\_question\_answers").trigger("refresh")}),l(document).on("click",".tutor-media-upload-btn",function(t){t.preventDefault();var e,o=l(this);e||(e=wp.media({title:a("Select or Upload Media Of Your Chosen Persuasion","tutor"),button:{text:a("Use this media","tutor")},multiple:!1})).on("select",function(){var t=e.state().get("selection").first().toJSON();o.html('<img src="'+t.url+'" alt="" />'),o.closest(".tutor-media-upload-wrap").find("input").val(t.id)}),e.open()}),l(document).on("click",".tutor-media-upload-trash",function(t){t.preventDefault();t=l(this);t.closest(".tutor-media-upload-wrap").find(".tutor-media-upload-btn").html('<i class="tutor-icon-image1"></i>'),t.closest(".tutor-media-upload-wrap").find("input").val("")});var u,c=(u=0,function(t,e){clearTimeout(u),u=setTimeout(t,e)});l(document).on("click",".tutor-add-instructor-btn",function(t){t.preventDefault();var e=l(this),t=l("#post\_ID").val();l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{course\_id:t,action:"tutor\_load\_instructors\_modal"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(l(".tutor-instructors-modal-wrap .modal-container").html(t.data.output),l(".tutor-instructors-modal-wrap").addClass("show"))},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("change keyup",".tutor-instructors-modal-wrap .tutor-modal-search-input",function(t){t.preventDefault();var o=l(this),n=l(".tutor-modal-wrap");c(function(){var t=o.val(),e=l("#post\_ID").val();l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{course\_id:e,search\_terms:t,action:"tutor\_load\_instructors\_modal"},beforeSend:function(){n.addClass("loading")},success:function(t){t.success&&(l(".tutor-instructors-modal-wrap .modal-container").html(t.data.output),l(".tutor-instructors-modal-wrap").addClass("show"))},complete:function(){n.removeClass("loading")}})},1e3)}),l(document).on("click",".add\_instructor\_to\_course\_btn",function(t){t.preventDefault();var e=l(this),o=l(".tutor-modal-wrap"),t=l("#post\_ID").val(),o=o.find("input").serializeObject();o.course\_id=t,o.action="tutor\_add\_instructors\_to\_course",l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:o,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(l(".tutor-course-available-instructors").html(t.data.output),l(".tutor-modal-wrap").removeClass("show"))},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click",".tutor-instructor-delete-btn",function(t){t.preventDefault();var e=l(this),o=l("#post\_ID").val(),t=e.closest(".added-instructor-item").attr("data-instructor-id");l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{course\_id:o,instructor\_id:t,action:"detach\_instructor\_from\_course"},success:function(t){t.success&&e.closest(".added-instructor-item").remove()}})}),l(document).on("click",".settings-tabs-navs li",function(t){t.preventDefault();var e=l(this),o=e.find("a").attr("data-target"),t=e.find("a").attr("href");e.addClass("active").siblings("li.active").removeClass("active"),l(".settings-tab-wrap").removeClass("active").hide(),l(o).addClass("active").show(),window.history.pushState({},"",t)}),l(document).on("lesson\_modal\_loaded quiz\_modal\_loaded assignment\_modal\_loaded",function(t,e){jQuery().select2&&l(".select2\_multiselect").select2({dropdownCssClass:"increasezindex"}),o()}),l(document).on("lesson\_modal\_loaded",function(t,e){l(".tutor-lesson-modal-wrap .modal-title h1").html(a("Lesson","tutor"))}),l(document).on("assignment\_modal\_loaded",function(t,e){l(".tutor-lesson-modal-wrap .modal-title h1").html(a("Assignment","tutor"))}),l(document).on("keyup change",".tutor-number-validation",function(t){var e=l(this),o=parseInt(e.val()),n=parseInt(e.attr("data-min")),a=parseInt(e.attr("data-max"));o<n?e.val(n):a<o&&e.val(a)}),l(document).on("click",".tutor-instructor-feedback",function(t){t.preventDefault();var e=l(this);l.ajax({url:window.ajaxurl||\_tutorobject.ajaxurl,type:"POST",data:{attempts\_id:e.data("attemptid"),feedback:l(".tutor-instructor-feedback-content").val(),action:"tutor\_instructor\_feedback"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(e.closest(".course-content-item").remove(),tutor\_toast(a("Success","tutor"),e.data("toast\_success\_message"),"success"))},complete:function(){e.removeClass("tutor-updating-message")}})});var d=l(".tutor-announcement-add-new"),p=l(".tutor-announcement-edit"),m=l(".tutor-announcement-delete"),\_=l(".tutor-announcement-details"),t=l(".tutor-announcement-close-btn"),f=l(".tutor-accouncement-create-modal"),h=l(".tutor-accouncement-update-modal"),v=l(".tutor-accouncement-details-modal");function g(t,e){var o=new URL(window.location.href),n=o.searchParams;return n.set(t,e),o.search=n.toString(),\_tutorobject.is\_admin?n.set("paged",1):n.set("current\_page",1),o.search=n.toString(),o.toString()}l(d).click(function(){f.addClass("show"),l("#tutor-annoucement-backend-create-modal").addClass("show")}),l(\_).click(function(){var t=l(this).attr("announcement-date"),e=l(this).attr("announcement-id"),o=l(this).attr("course-id"),n=l(this).attr("course-name"),a=l(this).attr("announcement-title"),i=l(this).attr("announcement-summary");l(".tutor-announcement-detail-content").html("<h3>".concat(a,"</h3><p>").concat(i,"</p>")),l(".tutor-announcement-detail-course-info p").html("".concat(n)),l(".tutor-announcement-detail-date-info p").html("".concat(t)),l("#tutor-announcement-edit-from-detail").attr("announcement-id",e),l("#tutor-announcement-edit-from-detail").attr("course-id",o),l("#tutor-announcement-edit-from-detail").attr("announcement-title",a),l("#tutor-announcement-edit-from-detail").attr("announcement-summary",i),l("#tutor-announcement-delete-from-detail").attr("announcement-id",e),v.addClass("show")}),l(p).click(function(){v&&v.removeClass("show");var t=l(this).attr("announcement-id"),e=l(this).attr("course-id"),o=l(this).attr("announcement-title"),n=l(this).attr("announcement-summary");l("#tutor-announcement-course-id").val(e),l("#announcement\_id").val(t),l("#tutor-announcement-title").val(o),l("#tutor-announcement-summary").val(n),h.addClass("show")}),l(t).click(function(){f.removeClass("show"),h.removeClass("show"),v.removeClass("show"),l("#tutor-annoucement-backend-create-modal").removeClass("show")}),l(".tutor-announcements-form").on("submit",function(t){t.preventDefault();var e=l(this).find('button\[type="submit"\]'),t=l(".tutor-announcements-form").serialize()+"&action=tutor\_announcement\_create&action\_type=create";l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){if(l(".tutor-alert").remove(),"success"==t.status&&location.reload(),"validation\_error"==t.status){l(".tutor-announcements-create-alert").append('<div class="tutor-alert alert-warning"></div>');for(var e=0,o=Object.entries(t.message);e<o.length;e++){var n=y(o\[e\],2),n=(n\[0\],n\[1\]);l(".tutor-announcements-create-alert .tutor-alert").append("<li>".concat(n,"</li>"))}}"fail"==t.status&&l(".tutor-announcements-create-alert").html("<li>".concat(t.message,"</li>"))},error:function(t){console.log(t)}})}),l(".tutor-announcements-update-form").on("submit",function(t){t.preventDefault();var e=l(this).find('button\[type="submit"\]'),t=l(".tutor-announcements-update-form").serialize()+"&action=tutor\_announcement\_create&action\_type=update";l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){if(l(".tutor-alert").remove(),"success"==t.status&&location.reload(),"validation\_error"==t.status){l(".tutor-announcements-update-alert").append('<div class="tutor-alert alert-warning"></div>');for(var e=0,o=Object.entries(t.message);e<o.length;e++){var n=y(o\[e\],2),n=(n\[0\],n\[1\]);l(".tutor-announcements-update-alert > .tutor-alert").append("<li>".concat(n,"</li>"))}}"fail"==t.status&&l(".tutor-announcements-create-alert").html("<li>".concat(t.message,"</li>"))},error:function(){}})}),l(m).click(function(){var t=l(this).attr("announcement-id"),e=l("#tutor-announcement-tr-"+t);confirm("Do you want to delete?")&&l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{action:"tutor\_announcement\_delete",announcement\_id:t},beforeSend:function(){},success:function(t){e.remove(),v.length&&v.removeClass("show"),"fail"==t.status&&console.log(t.message)},error:function(){}})}),l(".tutor-announcement-course-sorting").on("change",function(t){window.location=g("course-id",l(this).val())}),l(".tutor-announcement-order-sorting").on("change",function(t){window.location=g("order",l(this).val())}),l(".tutor-announcement-date-sorting").on("change",function(t){window.location=g("date",l(this).val())}),l(".tutor-announcement-search-sorting").on("click",function(t){window.location=g("search",l(".tutor-announcement-search-field").val())}),l(document).click(function(){l(".tutor-dropdown").removeClass("show")}),l(".tutor-dropdown").click(function(t){t.stopPropagation(),l(".tutor-dropdown").hasClass("show")&&l(".tutor-dropdown").removeClass("show"),l(this).addClass("show")});var w,m=".video\_source\_wrap\_external\_url input, .video\_source\_wrap\_vimeo input, .video\_source\_wrap\_youtube input, .video\_source\_wrap\_html5, .video\_source\_upload\_wrap\_html5";l("body").on("paste",m,function(t){t.stopImmediatePropagation();var r=l(this).closest(".lesson-modal-form-wrap").find(".tutor-option-field-video-duration"),e=r.find("label"),o=l(this).hasClass("video\_source\_wrap\_html5")||l(this).hasClass("video\_source\_upload\_wrap\_html5"),n=l(this).data("autofill\_url");l(this).data("autofill\_url",null);function a(t){t?0==e.find("img").length&&e.append(' <img src="'+window.\_tutorobject.loading\_icon\_url+'" style="display:inline-block"/>'):e.find("img").remove()}function i(t){for(var e=Math.floor(t/3600),o=Math.floor((t-3600\*e)/60),t=Math.round(t-3600\*e-60\*o),n=\[e=e<10?"0"+e:e,o=o<10?"0"+o:o,t=t<10?"0"+t:t\],a=r.find("input"),i=0;i<3;i++)a.eq(i).val(n\[i\])}var s,u,c,t=o?l(this).find("span").data("video\_url"):n||t.originalEvent.clipboardData.getData("text");o||l(this).parent().hasClass("video\_source\_wrap\_external\_url")?((s=document.createElement("video")).addEventListener("loadedmetadata",function(){i(s.duration),a(!1)}),a(!0),s.src=t):l(this).parent().hasClass("video\_source\_wrap\_vimeo")?(u=(c=t.match(/^.\*(vimeo\\.com\\/)((channels\\/\[A-z\]+\\/)|(groups\\/\[A-z\]+\\/videos\\/))?(\[0-9\]+)/))?c\[5\]:null)&&(a(!0),l.getJSON("http://vimeo.com/api/v2/video/"+u+"/json",function(t){Array.isArray(t)&&t\[0\]&&void 0!==t\[0\].duration&&i(t\[0\].duration),a(!1)})):l(this).parent().hasClass("video\_source\_wrap\_youtube")&&(u=!(!(c=t.match(/^.\*((youtu.be\\/)|(v\\/)|(\\/u\\/\\w\\/)|(embed\\/)|(watch\\?))\\??v?=?(\[^#&?\]\*).\*/))||11!=c\[7\].length)&&c\[7\],c=l(this).data("youtube\_api\_key"),u&&c&&(c="https://www.googleapis.com/youtube/v3/videos?id="+u+"&key="+c+"&part=contentDetails",a(!0),l.getJSON(c,function(t){"object"==b(t)&&t.items&&t.items\[0\]&&t.items\[0\].contentDetails&&t.items\[0\].contentDetails.duration&&i(function(t){t=(t=t.match(/PT(\\d+H)?(\\d+M)?(\\d+S)?/)).slice(1).map(function(t){if(null!=t)return t.replace(/\\D/,"")});return 3600\*(parseInt(t\[0\])||0)+60\*(parseInt(t\[1\])||0)+(parseInt(t\[2\])||0)}(t.items\[0\].contentDetails.duration)),a(!1)})))}).on("input",m,function(){w&&clearTimeout(w);var e=l(this);w=setTimeout(function(){var t=(t=e.val())?t.trim():"";console.log("Trigger",t),t&&e.data("autofill\_url",t).trigger("paste")},700)}),l(".tutor-form-submit-through-ajax").submit(function(t){t.preventDefault();var e=l(this),o=l(this).attr("action")||window.location.href,n=l(this).attr("method")||"GET",t=l(this).serializeObject();e.find("button").addClass("tutor-updating-message"),l.ajax({url:o,type:n,data:t,success:function(){tutor\_toast(a("Success","tutor"),e.data("toast\_success\_message"),"success")},complete:function(){e.find("button").removeClass("tutor-updating-message")}})}),l.ajaxSetup({data:tutor\_get\_nonce\_data()})}),jQuery.fn.serializeObject=function(){var t={},e=this.serializeArray();return jQuery.each(e,function(){t\[this.name\]?(t\[this.name\].push||(t\[this.name\]=\[t\[this.name\]\]),t\[this.name\].push(this.value||"")):t\[this.name\]=this.value||""}),t},window.tutor\_toast=function(t,e,o){var n=((window.\_tutorobject||{}).tutor\_url||"")+"assets/images/";jQuery(".tutor-toast-parent").length||jQuery("body").append('<div class="tutor-toast-parent"></div>');var a=jQuery(' <div> <div> <img src="'+{success:n+"icon-check.svg",error:n+"icon-cross.svg"}\[o\]+'"/> </div> <div> <div> <b>'+t+"</b> <span>"+e+'</span> </div> </div> <div> <i class="tutor-toast-close tutor-icon-line-cross"></i> </div> </div>');a.find(".tutor-toast-close").click(function(){a.remove()}),jQuery(".tutor-toast-parent").append(a),setTimeout(function(){a&&a.fadeOut("fast",function(){jQuery(this).remove()})},5e3)},window.disableAddoption=function(){function t(t){t.classList.contains("disabled")||t.classList.add("disabled")}function e(t){t.classList.contains("disabled")&&t.classList.remove("disabled")}var o=document.querySelector(".tutor\_select\_value\_holder").value,n=document.getElementById("tutor\_quiz\_question\_answers"),a=document.getElementById("tutor\_quiz\_question\_answer\_form"),i=document.querySelector(".add\_question\_answers\_option");("open\_ended"===o||"short\_answer"===o||("true\_false"===o||"fill\_in\_the\_blank"===o)&&(a.hasChildNodes()||n.hasChildNodes())?t:e)(i)}}},n={};function a(t){var e=n\[t\];if(void 0!==e)return e.exports;e=n\[t\]={exports:{}};return o\[t\](e,e.exports,a),e.exports}(()=>{"use strict";a(623);jQuery(document).ready(function(u){var e,o,n,a,t=wp.i18n,s=t.\_\_;t.\_x,t.\_n,t.\_nx;function i(t,e){var o,n;1<t.originalEvent.touches.length||(t.preventDefault(),o=t.originalEvent.changedTouches\[0\],(n=document.createEvent("MouseEvents")).initMouseEvent(e,!0,!0,window,1,o.screenX,o.screenY,o.clientX,o.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(n))}jQuery().select2&&u(".tutor\_select2").select2({escapeMarkup:function(t){return t}}),(e=jQuery).support.touch="ontouchend"in document,e.support.touch&&(\_=e.ui.mouse.prototype,n=\_.\_mouseInit,a=\_.\_mouseDestroy,\_.\_touchStart=function(t){!o&&this.\_mouseCapture(t.originalEvent.changedTouches\[0\])&&(o=!0,this.\_touchMoved=!1,i(t,"mouseover"),i(t,"mousemove"),i(t,"mousedown"))},\_.\_touchMove=function(t){o&&(this.\_touchMoved=!0,i(t,"mousemove"))},\_.\_touchEnd=function(t){o&&(i(t,"mouseup"),i(t,"mouseout"),this.\_touchMoved||i(t,"click"),o=!1)},\_.\_mouseInit=function(){var t=this;t.element.bind({touchstart:e.proxy(t,"\_touchStart"),touchmove:e.proxy(t,"\_touchMove"),touchend:e.proxy(t,"\_touchEnd")}),n.call(t)},\_.\_mouseDestroy=function(){var t=this;t.element.unbind({touchstart:e.proxy(t,"\_touchStart"),touchmove:e.proxy(t,"\_touchMove"),touchend:e.proxy(t,"\_touchEnd")}),a.call(t)});var r={ajaxurl:window.\_tutorobject.ajaxurl,nonce\_key:window.\_tutorobject.nonce\_key,video\_data:function(){var t=u("#tutor\_video\_tracking\_information").val();return t?JSON.parse(t):{}},track\_player:function(){var t,o,e,n=this;"undefined"!=typeof Plyr&&(t=new Plyr("#tutorPlayer"),o=n.video\_data(),t.on("ready",function(t){var e=t.detail.plyr,t=o.best\_watch\_time;0<t&&e.duration>Math.round(t)&&(e.media.currentTime=t),n.sync\_time(e)}),e=0,t.on("timeupdate",function(t){t=t.detail.plyr;30<=e/4&&(n.sync\_time(t),e=0),e++}),t.on("ended",function(t){var e=n.video\_data(),t=t.detail.plyr;n.sync\_time(t,{is\_ended:!0}),e.autoload\_next\_course\_content&&n.autoload\_content()}))},sync\_time:function(t,e){var o=this.video\_data().post\_id,t={action:"sync\_video\_playback",currentTime:t.currentTime,duration:t.duration,post\_id:o};t\[this.nonce\_key\]=\_tutorobject\[this.nonce\_key\];o=t;e&&(o=Object.assign(t,e)),u.post(this.ajaxurl,o)},autoload\_content:function(){var t={action:"autoload\_next\_course\_content",post\_id:this.video\_data().post\_id};t\[this.nonce\_key\]=\_tutorobject\[this.nonce\_key\],u.post(this.ajaxurl,t).done(function(t){t.success&&t.data.next\_url&&(location.href=t.data.next\_url)})},init:function(){this.track\_player()}};function c(t){t.add(t.prevAll()).filter("i").addClass("tutor-icon-star-full").removeClass("tutor-icon-star-line"),t.nextAll().filter("i").removeClass("tutor-icon-star-full").addClass("tutor-icon-star-line")}u("#tutorPlayer").length&&r.init(),u(document).on("change keyup paste",".tutor\_user\_name",function(){u(this).val(u(this).val().toString().toLowerCase().replace(/\\s+/g,"-").replace(/\[^\\w\\-\]+/g,"").replace(/\\-\\-+/g,"-").replace(/^-+/,"").replace(/-+$/,""))}),u(document).on("mouseover",".tutor-star-rating-container .tutor-star-rating-group i",function(){c(u(this))}),u(document).on("click",".tutor-star-rating-container .tutor-star-rating-group i",function(){var t=u(this).attr("data-rating-value");u(this).closest(".tutor-star-rating-group").find('input\[name="tutor\_rating\_gen\_input"\]').val(t),c(u(this))}),u(document).on("mouseout",".tutor-star-rating-container .tutor-star-rating-group",function(){var t=u(this).find('input\[name="tutor\_rating\_gen\_input"\]').val(),e=parseInt(t),t=u(this).find('\[data-rating-value="'+e+'"\]');e&&t&&0<t.length?c(t):u(this).find("i").removeClass("tutor-icon-star-full").addClass("tutor-icon-star-line")}),u(document).on("click",".tutor\_submit\_review\_btn",function(t){t.preventDefault();var e=u(this),o=e.closest("form").find('input\[name="tutor\_rating\_gen\_input"\]').val(),n=(n=e.closest("form").find('textarea\[name="review"\]').val()).trim(),t=u('input\[name="tutor\_course\_id"\]').val();o&&0!=o&&n?n&&u.ajax({url:\_tutorobject.ajaxurl,type:"POST",data:{course\_id:t,rating:o,review:n,action:"tutor\_place\_rating"},beforeSend:function(){e.addClass("updating-icon")},success:function(t){var e=t.data.review\_id,t=t.data.review;u(".tutor-review-"+e+" .review-content").html(t),new window.tutor\_popup(u,"icon-rating",40).popup({title:s("Thank You for Rating This Course!","tutor"),description:s("Your rating will now be visible in the course page","tutor")}),setTimeout(function(){location.reload()},3e3)}}):alert(s("Rating and review required","tutor"))}).on("click",".tutor\_cancel\_review\_btn",function(){u(this).closest("form").hide()}),u(document).on("click",".write-course-review-link-btn",function(t){t.preventDefault(),u(this).siblings(".tutor-write-review-form").slideToggle()}),u(document).on("click",".tutor-ask-question-btn",function(t){t.preventDefault(),u(".tutor-add-question-wrap").slideToggle()}),u(document).on("click",".tutor\_question\_cancel",function(t){t.preventDefault(),u(".tutor-add-question-wrap").toggle()}),u(document).on("submit","#tutor-ask-question-form",function(t){t.preventDefault();var e=u(this),t=u(this).serializeObject();t.action="tutor\_ask\_question",u.ajax({url:\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.find(".tutor\_ask\_question\_btn").addClass("updating-icon")},success:function(t){t.success&&(u(".tutor-add-question-wrap").hide(),window.location.reload())},complete:function(){e.find(".tutor\_ask\_question\_btn").removeClass("updating-icon")}})}),u(document).on("submit",".tutor-add-answer-form",function(t){t.preventDefault();var e=u(this),t=u(this).serializeObject();t.action="tutor\_add\_answer",u.ajax({url:\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.find(".tutor\_add\_answer\_btn").addClass("updating-icon")},success:function(t){t.success&&window.location.reload()},complete:function(){e.find(".tutor\_add\_answer\_btn").removeClass("updating-icon")}})}),u(document).on("focus",".tutor\_add\_answer\_textarea",function(t){t.preventDefault();t=u(this).closest(".tutor\_add\_answer\_wrap").attr("data-question-id");wp.editor.initialize("tutor\_answer\_"+t,{tinymce:{wpautop:!0,toolbar1:"bold italic underline bullist strikethrough numlist blockquote alignleft aligncenter alignright undo redo link unlink spellchecker fullscreen"}})}),u(document).on("click",".tutor\_cancel\_wp\_editor",function(t){t.preventDefault(),u(this).closest(".tutor\_wp\_editor\_wrap").toggle(),u(this).closest(".tutor\_add\_answer\_wrap").find(".tutor\_wp\_editor\_show\_btn\_wrap").toggle();t=u(this).closest(".tutor\_add\_answer\_wrap").attr("data-question-id");wp.editor.remove("tutor\_answer\_"+t)}),u(document).on("click",".tutor\_wp\_editor\_show\_btn",function(t){t.preventDefault(),u(this).closest(".tutor\_add\_answer\_wrap").find(".tutor\_wp\_editor\_wrap").toggle(),u(this).closest(".tutor\_wp\_editor\_show\_btn\_wrap").toggle()});var l,d,p,m=u("#tutor-quiz-time-update"),\_=null;m.length&&(\_=JSON.parse(m.attr("data-attempt-settings")),0<(f=JSON.parse(m.attr("data-attempt-meta"))).time\_limit.time\_limit\_seconds?(l=new Date(\_.attempt\_started\_at).getTime()+1e3\*f.time\_limit.time\_limit\_seconds,d=new Date(f.date\_time\_now).getTime(),p=setInterval(function(){var a,t=l-d,e=Math.floor(t/864e5),o=Math.floor(t%864e5/36e5),n=Math.floor(t%36e5/6e4),i=Math.floor(t%6e4/1e3),r="";e&&(r+=e+"d "),o&&(r+=o+"h "),n&&(r+=n+"m "),i&&(r+=i+"s "),t<0&&(clearInterval(p),r="EXPIRED","autosubmit"===\_tutorobject.quiz\_options.quiz\_when\_time\_expires?u("form#tutor-answering-quiz").submit():"autoabandon"===\_tutorobject.quiz\_options.quiz\_when\_time\_expires&&(t=u("#tutor\_quiz\_id").val(),u("#tutor\_quiz\_remaining\_time\_secs").val(),t={quiz\_id:t,action:"tutor\_quiz\_timeout"},a=u("#tutor-quiz-time-expire-wrapper").attr("data-attempt-remaining"),u(".tutor-quiz-answer-next-btn, .tutor-quiz-submit-btn, .tutor-quiz-answer-previous-btn").prop("disabled",!0),u(".time-remaining span").css("color","#F44337"),u.ajax({url:\_tutorobject.ajaxurl,type:"POST",data:t,success:function(t){var e=u("#tutor-quiz-time-expire-wrapper").data("attempt-allowed"),o=u("#tutor-quiz-time-expire-wrapper").data("attempt-remaining"),n="#tutor-quiz-time-expire-wrapper .tutor-alert";u(n).addClass("show"),0<a?u("".concat(n," .text")).html(s("Your time limit for this quiz has expired, please reattempt the quiz. Attempts remaining: "+o+"/"+e,"tutor")):(u(n).addClass("tutor-alert-danger"),u("#tutor-start-quiz").hide(),u("".concat(n," .text")).html("".concat(s("Unfortunately, you are out of time and quiz attempts. ","tutor"))))},complete:function(){}}))),d+=1e3,m.html(r)},1e3)):m.closest(".time-remaining").remove());var f=u("#tutor-quiz-body form#tutor-start-quiz");function h(){jQuery().sortable&&(u(".tutor-quiz-answers-wrap").sortable({handle:".answer-sorting-bar",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){}}).disableSelection(),u(".quiz-draggable-rand-answers, .quiz-answer-matching-droppable").sortable({connectWith:".quiz-answer-matching-droppable",placeholder:"drop-hover"}).disableSelection())}function v(o){var t,e,n=!0,a=o.find(".quiz-answer-required");return a.length&&((t=a.find("input")).length&&("radio"===(e=t.attr("type"))?0==a.find('input\[type="radio"\]:checked').length&&(o.find(".answer-help-block").html('<p style="color: #dc3545">'.concat(s("Please select an option to answer","tutor"),"</p>")),n=!1):"checkbox"===e?0==a.find('input\[type="checkbox"\]:checked').length&&(o.find(".answer-help-block").html('<p style="color: #dc3545">'.concat(s("Please select at least one option to answer.","tutor"),"</p>")),n=!1):"text"===e&&t.each(function(t,e){u(e).val().trim().length||(o.find(".answer-help-block").html('<p style="color: #dc3545">'.concat(s("The answer for this question is required","tutor"),"</p>")),n=!1)})),a.find("textarea").length&&a.find("textarea").val().trim().length<1&&(o.find(".answer-help-block").html('<p style="color: #dc3545">'.concat(s("The answer for this question is required","tutor"),"</p>")),n=!1),(a=a.find(".quiz-answer-matching-droppable")).length&&a.each(function(t,e){u(e).find(".quiz-draggable-answer-item").length||(o.find(".answer-help-block").html('<p style="color: #dc3545">'.concat(s("Please match all the items","tutor"),"</p>")),n=!1)})),n}function g(o){var n=!1,a=JSON.parse(atob(window.tutor\_quiz\_context.split("").reverse().join("")));Array.isArray(a)||(a=\[\]);var t=o.attr("data-quiz-feedback-mode");u(".wrong-right-text").remove(),u(".quiz-answer-input-bottom").removeClass("wrong-answer right-answer");var i=!0,e=o.find("input"),r=o.find('input\[type="radio"\]:checked, input\[type="checkbox"\]:checked');return"retry"===t?(r.each(function(){var t=u(this),e=t.attr("type");"radio"!==e&&"checkbox"!==e||-1<a.indexOf(t.val())||(t.prop("checked")&&t.closest(".quiz-answer-input-bottom").addClass("wrong-answer").append('<span class="wrong-right-text"><i class="tutor-icon-line-cross"></i> '.concat(s("Incorrect, Please try again","tutor"),"</span>")),i=!1)}),e.each(function(){var t,e=u(this);"checkbox"===e.attr("type")&&(t=-1<a.indexOf(e.val()),e=e.is(":checked"),t&&!e&&(o.find(".answer-help-block").html('<p style="color: #dc3545">'.concat(s("More answer for this question is required","tutor"),"</p>")),i=!1))})):"reveal"===t&&(r.each(function(){var t=u(this);-1<a.indexOf(t.val())||(i=!1)}),e.each(function(){var t,e=u(this),o=e.attr("type");"radio"!==o&&"checkbox"!==o||(t=-1<a.indexOf(e.val()),o=e.is(":checked"),t?e.closest(".quiz-answer-input-bottom").addClass("right-answer").append('<span class="wrong-right-text"><i class="tutor-icon-checkbox-pen-outline"></i>'.concat(s("Correct Answer","tutor"),"</span>")):e.prop("checked")&&e.closest(".quiz-answer-input-bottom").addClass("wrong-answer"),t&&!o&&(e.attr("disabled","disabled"),n=!(i=!1)))})),n=i?!0:n}f.length&&"1"===\_tutorobject.quiz\_options.quiz\_auto\_start&&f.submit(),u(document).on("click",".quiz-manual-review-action",function(t){t.preventDefault();var e=u(this),o=e.attr("data-attempt-id"),n=e.attr("data-attempt-answer-id"),t=e.attr("data-mark-as");u.ajax({url:\_tutorobject.ajaxurl,type:"GET",data:{action:"review\_quiz\_answer",attempt\_id:o,attempt\_answer\_id:n,mark\_as:t},beforeSend:function(){e.find("i").addClass("updating-icon")},success:function(t){location.reload()},complete:function(){e.find("i").removeClass("updating-icon")}})}),u(".tooltip-btn").on("hover",function(t){u(this).toggleClass("active")}),u(".tutor-course-title h4 .toggle-information-icon").on("click",function(t){u(this).closest(".tutor-topics-in-single-lesson").find(".tutor-topics-summery").slideToggle(),t.stopPropagation()}),u(".tutor-course-topic.tutor-active").find(".tutor-course-lessons").slideDown(),u(".tutor-course-title").on("click",function(){var t=u(this).siblings(".tutor-course-lessons");u(this).closest(".tutor-course-topic").toggleClass("tutor-active"),t.slideToggle()}),u(document).on("click",".tutor-topics-title h3 .toggle-information-icon",function(t){u(this).closest(".tutor-topics-in-single-lesson").find(".tutor-topics-summery").slideToggle(),t.stopPropagation()}),u(document).on("click",".tutor-course-wishlist-btn",function(t){t.preventDefault();var e=u(this),t=e.attr("data-course-id");u.ajax({url:\_tutorobject.ajaxurl,type:"POST",data:{course\_id:t,action:"tutor\_course\_add\_to\_wishlist"},beforeSend:function(){e.addClass("updating-icon")},success:function(t){t.success?"added"===t.data.status?e.addClass("has-wish-listed"):e.removeClass("has-wish-listed"):window.location=t.data.redirect\_to},complete:function(){e.removeClass("updating-icon")}})}),\_tutorobject.enable\_lesson\_classic\_editor||(u(document).on("click",".tutor-single-lesson-a",function(t){t.preventDefault();var e=u(this),t=e.attr("data-lesson-id"),o=u("#tutor-single-entry-content");u.ajax({url:\_tutorobject.ajaxurl,type:"POST",data:{lesson\_id:t,action:"tutor\_render\_lesson\_content"},beforeSend:function(){var t=e.find(".lesson\_title").text();u("head title").text(t),window.history.pushState("obj",t,e.attr("href")),o.addClass("loading-lesson"),u(".tutor-single-lesson-items").removeClass("active"),e.closest(".tutor-single-lesson-items").addClass("active")},success:function(t){o.html(t.data.html),r.init(),u(".tutor-lesson-sidebar").css("display",""),window.dispatchEvent(new window.Event("tutor\_ajax\_lesson\_loaded"))},complete:function(){o.removeClass("loading-lesson")}})}),u(document).on("click",".sidebar-single-quiz-a",function(t){t.preventDefault();var e=u(this),t=e.attr("data-quiz-id"),o=e.find(".lesson\_title").text(),n=u("#tutor-single-entry-content");u.ajax({url:\_tutorobject.ajaxurl,type:"POST",data:{quiz\_id:t,action:"tutor\_render\_quiz\_content"},beforeSend:function(){u("head title").text(o),window.history.pushState("obj",o,e.attr("href")),n.addClass("loading-lesson"),u(".tutor-single-lesson-items").removeClass("active"),e.closest(".tutor-single-lesson-items").addClass("active")},success:function(t){n.html(t.data.html),h(),u(".tutor-lesson-sidebar").css("display","")},complete:function(){n.removeClass("loading-lesson")}})})),u(document).on("click",".tutor-lesson-sidebar-hide-bar",function(t){t.preventDefault(),u(".tutor-lesson-sidebar").toggle(),u("#tutor-single-entry-content").toggleClass("sidebar-hidden")}),u(".tutor-tabs-btn-group a").on("click touchstart",function(t){t.preventDefault();var e=u(this),t=e.attr("href");u(".tutor-lesson-sidebar-tab-item").hide(),u(t).show(),u(".tutor-tabs-btn-group a").removeClass("active"),e.addClass("active")}),h(),u(document).on("click",".tutor-quiz-answer-next-btn, .tutor-quiz-answer-previous-btn",function(t){var e,o;t.preventDefault(),u(this).hasClass("tutor-quiz-answer-previous-btn")?u(this).closest(".quiz-attempt-single-question").hide().prev().show():v(t=(e=u(this)).closest(".quiz-attempt-single-question"))&&g(t)&&(parseInt(e.closest(".quiz-attempt-single-question").attr("id").match(/\\d+/)\[0\],10),!(e=e.closest(".quiz-attempt-single-question").attr("data-next-question-id"))||(o=u(e))&&o.length&&("reveal"===t.attr("data-quiz-feedback-mode")?setTimeout(function(){u(".quiz-attempt-single-question").hide(),o.show()},800):(u(".quiz-attempt-single-question").hide(),o.show()),u(".tutor-quiz-questions-pagination").length&&(u(".tutor-quiz-question-paginate-item").removeClass("active"),u('.tutor-quiz-questions-pagination a\[href="'+e+'"\]').addClass("active"))))}),u(document).on("submit","#tutor-answering-quiz",function(t){var e=u(".quiz-attempt-single-question"),o=!0;e.length&&e.each(function(t,e){o=v(u(e)),o=g(u(e))}),o||t.preventDefault()}),u(document).on("click",".tutor-quiz-question-paginate-item",function(t){t.preventDefault();var e=u(this),t=u(e.attr("href"));u(".quiz-attempt-single-question").hide(),t.show(),u(".tutor-quiz-question-paginate-item").removeClass("active"),e.addClass("active")}),u(document).on("keyup","textarea.question\_type\_short\_answer, textarea.question\_type\_open\_ended",function(t){var e=u(this),o=e.val(),n=e.hasClass("question\_type\_short\_answer")?\_tutorobject.quiz\_options.short\_answer\_characters\_limit:\_tutorobject.quiz\_options.open\_ended\_answer\_characters\_limit,a=n-o.length;a<1&&(e.val(o.substr(0,n)),a=0),e.closest(".tutor-quiz-answers-wrap").find(".characters\_remaining").html(a)}),u(".quiz-draggable-rand-answers").length&&u(".quiz-draggable-rand-answers").each(function(){var t=u(this),e=t.height();t.css({height:e})}),u(document).on("submit click",".cart-required-login, .cart-required-login a, .cart-required-login form",function(t){t.preventDefault();t=u(this).data("login\_page\_url");t?window.location.assign(t):u(".tutor-cart-box-login-form").fadeIn(100)}),u(".tutor-popup-form-close, .login-overlay-close").on("click",function(){u(".tutor-cart-box-login-form").fadeOut(100)}),u(document).on("keyup",function(t){27===t.keyCode&&(u(".tutor-frontend-modal").hide(),u(".tutor-cart-box-login-form").fadeOut(100))}),!u.fn.ShareLink||(f=u(".tutor-social-share-wrap")).length&&(k=JSON.parse(f.attr("data-social-share-config")),u(".tutor\_share").ShareLink({title:k.title,text:k.text,image:k.image,class\_prefix:"s\_",width:640,height:480})),jQuery.datepicker&&u(".tutor\_report\_datepicker").datepicker({dateFormat:"yy-mm-dd"}),u(".withdraw-method-select-input").on("change",function(t){var e=u(this);u(".withdraw-method-form").hide(),u("#withdraw-method-form-"+e.closest(".withdraw-method-select").attr("data-withdraw-method")).show()}),u(".withdraw-method-select-input").each(function(){var t=u(this);t.is(":checked")&&(u(".withdraw-method-form").hide(),u("#withdraw-method-form-"+t.closest(".withdraw-method-select").attr("data-withdraw-method")).show())}),u(document).on("submit","#tutor-withdraw-account-set-form",function(t){t.preventDefault();var e=u(this),o=e.find(".tutor\_set\_withdraw\_account\_btn"),t=e.serializeObject();u.ajax({url:\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.find(".tutor-success-msg").remove(),o.addClass("updating-icon")},success:function(t){t.success&&(t='<div class="tutor-success-msg" style="display: none;"><i class="tutor-icon-mark"></i> '+t.data.msg+" </div>",o.closest(".withdraw-account-save-btn-wrap").append(t),e.find(".tutor-success-msg").length&&e.find(".tutor-success-msg").slideDown(),setTimeout(function(){e.find(".tutor-success-msg").slideUp()},5e3))},complete:function(){o.removeClass("updating-icon")}})}),u(document).on("click",".open-withdraw-form-btn, .close-withdraw-form-btn",function(t){t.preventDefault(),"yes"!=u(this).data("reload")?(u(".tutor-earning-withdraw-form-wrap").toggle().find('\[name="tutor\_withdraw\_amount"\]').val(""),u(".tutor-withdrawal-pop-up-success").hide().next().show(),u("html, body").css("overflow",u(".tutor-earning-withdraw-form-wrap").is(":visible")?"hidden":"auto")):window.location.reload()}),u(document).on("submit","#tutor-earning-withdraw-form",function(t){t.preventDefault();var e=u(this),o=u("#tutor-earning-withdraw-btn"),n=u(".tutor-withdraw-form-response"),t=e.serializeObject();u.ajax({url:\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.find(".tutor-success-msg").remove(),o.addClass("updating-icon")},success:function(t){t.success?("undefined"!==t.data.available\_balance&&u(".withdraw-balance-col .available\_balance").html(t.data.available\_balance),u(".tutor-withdrawal-pop-up-success").show().next().hide()):(t='<div class="tutor-error-msg inline-image-text is-inline-block"> <img src="'+window.\_tutorobject.tutor\_url+'assets/images/icon-cross.svg"/> <div> <b>Error</b><br/> <span>'+t.data.msg+"</span> </div> </div>",n.html(t),setTimeout(function(){n.html("")},5e3))},complete:function(){o.removeClass("updating-icon")}})});var w=u(".tutor-frontend-modal");function b(){jQuery().sortable&&(u(".course-contents").sortable({handle:".course-move-handle",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){y()}}),u(".tutor-lessons:not(.drop-lessons)").sortable({connectWith:".tutor-lessons",items:"div.course-content-item",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){y()}}))}function y(){var i={};u(".tutor-topics-wrap").each(function(t,e){var o=u(this),n=parseInt(o.attr("id").match(/\\d+/)\[0\],10),a={};o.find(".course-content-item").each(function(t,e){var o=u(this),o=parseInt(o.attr("id").match(/\\d+/)\[0\],10);a\[t\]=o}),i\[t\]={topic\_id:n,lesson\_ids:a}}),u("#tutor\_topics\_lessons\_sorting").val(JSON.stringify(i))}function q(){u("ul.tutor-bp-enrolled-course-list").each(function(){var t,e=u(this),o=e.find(" > li");3<o.length&&(t=o.length-3,o.each(function(t,e){var o=u(this);3<=t&&o.hide()}),t='<a href="javascript:;" class="tutor\_bp\_plus\_courses"><strong>+'+t+" More </strong></a> Courses",e.closest(".tutor-bp-enrolled-courses-wrap").find(".thread-participant-enrolled-info").html(t)),e.show()})}w.each(function(){var e=u(this),t=u(this).data("popup-rel");u('\[href="'+t+'"\]').on("click",function(t){e.fadeIn(),t.preventDefault()})}),u(document).on("click",".tm-close, .tutor-frontend-modal-overlay, .tutor-modal-btn-cancel",function(){w.fadeOut()}),u(document).on("click",".tutor-dashboard-element-delete-btn",function(t){t.preventDefault();t=u(this).attr("data-id");u("#tutor-dashboard-delete-element-id").val(t)}),u(document).on("submit","#tutor-dashboard-delete-element-form",function(t){t.preventDefault();var e=u("#tutor-dashboard-delete-element-id").val(),o=u(".tutor-modal-element-delete-btn"),t=u(this).serializeObject();u.ajax({url:\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){o.addClass("updating-icon")},success:function(t){t.success&&u("#tutor-dashboard-"+t.data.element+"-"+e).remove()},complete:function(){o.removeClass("updating-icon"),u(".tutor-frontend-modal").hide()}})}),u("#tutor\_profile\_photo\_id").val()||u(".tutor-profile-photo-delete-btn").hide(),u(document).on("click",".tutor-profile-photo-delete-btn",function(){return u(".tutor-profile-photo-upload-wrap").find("img").attr("src",\_tutorobject.placeholder\_img\_src),u("#tutor\_profile\_photo\_id").val(""),u(".tutor-profile-photo-delete-btn").hide(),u.ajax({url:\_tutorobject.ajaxurl,type:"POST",data:{action:"tutor\_profile\_photo\_remove"}}),!1}),u(document).on("submit","#tutor\_assignment\_start\_form",function(t){t.preventDefault();t=u(this).serializeObject();t.action="tutor\_start\_assignment",u.ajax({url:\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){u("#tutor\_assignment\_start\_btn").addClass("updating-icon")},success:function(t){t.success&&location.reload()},complete:function(){u("#tutor\_assignment\_start\_btn").removeClass("updating-icon")}})}),u(document).on("submit","#tutor\_assignment\_submit\_form",function(t){u('textarea\[name="assignment\_answer"\]').val().trim().length<1&&(u("#form\_validation\_response").html('<div class="tutor-error-msg">'+s("Assignment answer can not be empty","tutor")+"</div>"),t.preventDefault())}),u(document).on("click",".video\_source\_upload\_wrap\_html5 .video\_upload\_btn",function(t){t.preventDefault();var e,o=u(this);e||(e=wp.media({title:s("Select / Upload Media Of Your Chosen Persuasion","tutor"),button:{text:s("Use media","tutor")},library:{type:"video"},multiple:!1})).on("select",function(){var t=e.state().get("selection").first().toJSON();o.closest(".video\_source\_upload\_wrap\_html5").find("span.video\_media\_id").data("video\_url",t.url).text(t.id).trigger("paste").closest("p").show(),o.closest(".video\_source\_upload\_wrap\_html5").find("input").val(t.id)}),e.open()}),b(),u(document).on("click",".update\_lesson\_modal\_btn",function(t){t.preventDefault();var e=u(this),o=tinyMCE.get("tutor\_lesson\_modal\_editor"),t=o?o.getContent():u("#"+inputid).val(),o=u(this).closest("form").serializeObject();o.lesson\_content=t,u.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:o,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success?(u("#tutor-course-content-wrap").html(t.data.course\_contents),b(),u(".tutor-lesson-modal-wrap").removeClass("show"),tutor\_toast(s("Done","tutor"),e.data("toast\_success\_message"),"success")):tutor\_toast(s("Failed","tutor"),s("Lesson Update Failed","tutor"),"error")},error:function(){tutor\_toast(s("Failed","tutor"),s("Lesson Update Failed","tutor"),"error")},complete:function(){e.removeClass("tutor-updating-message")}})}),u(document).on("click","a.tutor-delete-attachment",function(t){t.preventDefault(),u(this).closest(".tutor-added-attachment").remove()}),u(document).on("click",".tutorUploadAttachmentBtn",function(t){t.preventDefault();var n,a=u(this);n||(n=wp.media({title:s("Select / Upload Media Of Your Chosen Persuasion","tutor"),button:{text:s("Use media","tutor")},multiple:!0})).on("select",function(){var t=n.state().get("selection").toJSON();if(t.length)for(var e=0;e<t.length;e++){var o=t\[e\],o='<div class="tutor-added-attachment"><i class="tutor-icon-archive"></i><a href="javascript:;" class="tutor-delete-attachment tutor-icon-line-cross"></a> <span> <a href="'+o.url+'">'+o.filename+'</a> </span> <input type="hidden" name="tutor\_attachments\[\]" value="'+o.id+'"></div>';a.closest(".tutor-lesson-attachments-metabox").find(".tutor-added-attachments-wrap").append(o)}}),n.open()}),u("form").on("change",".tutor-assignment-file-upload",function(){u(this).siblings("label").find("span").html(u(this).val().replace(/.\*(\\/|\\\\)/,""))}),u(document).on("click",".tutor-topics-in-single-lesson .tutor-topics-title h3, .tutor-single-lesson-topic-toggle",function(t){var e=u(this).closest(".tutor-topics-in-single-lesson");e.toggleClass("tutor-topic-active"),e.find(".tutor-lessons-under-topic").slideToggle()}),u(".tutor-single-lesson-items.active").closest(".tutor-lessons-under-topic").show(),u(".tutor-single-lesson-items.active").closest(".tutor-topics-in-single-lesson").addClass("tutor-topic-active"),u(".tutor-course-lesson.active").closest(".tutor-lessons-under-topic").show(),u(document).on("click",".tutor-create-assignments-btn",function(t){t.preventDefault();var e=u(this),o=u(this).attr("data-topic-id"),n=u("#post\_ID").val();u.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{topic\_id:o,course\_id:n,action:"tutor\_load\_assignments\_builder\_modal"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){u(".tutor-lesson-modal-wrap .modal-container").html(t.data.output),u(".tutor-lesson-modal-wrap").attr("data-topic-id",o).addClass("show"),u(document).trigger("assignment\_modal\_loaded",{topic\_id:o,course\_id:n}),tinymce.init(tinyMCEPreInit.mceInit.course\_description),tinymce.execCommand("mceRemoveEditor",!1,"tutor\_assignments\_modal\_editor"),tinyMCE.execCommand("mceAddEditor",!1,"tutor\_assignments\_modal\_editor")},complete:function(){quicktags({id:"tutor\_assignments\_modal\_editor"}),e.removeClass("tutor-updating-message")}})}),u(document).on("click",".open-tutor-assignment-modal",function(t){t.preventDefault();var e=u(this),o=e.attr("data-assignment-id"),n=e.attr("data-topic-id"),a=u("#post\_ID").val();u.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{assignment\_id:o,topic\_id:n,course\_id:a,action:"tutor\_load\_assignments\_builder\_modal"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){u(".tutor-lesson-modal-wrap .modal-container").html(t.data.output),u(".tutor-lesson-modal-wrap").attr({"data-assignment-id":o,"data-topic-id":n}).addClass("show"),u(document).trigger("assignment\_modal\_loaded",{assignment\_id:o,topic\_id:n,course\_id:a}),tinymce.init(tinyMCEPreInit.mceInit.course\_description),tinymce.execCommand("mceRemoveEditor",!1,"tutor\_assignments\_modal\_editor"),tinyMCE.execCommand("mceAddEditor",!1,"tutor\_assignments\_modal\_editor")},complete:function(){quicktags({id:"tutor\_assignments\_modal\_editor"}),e.removeClass("tutor-updating-message")}})}),u(document).on("click",".update\_assignment\_modal\_btn",function(t){t.preventDefault();var e=u(this),o=tinyMCE.get("tutor\_assignments\_modal\_editor"),t=o?o.getContent():u("#"+inputid).val(),o=u(this).closest("form").serializeObject();o.assignment\_content=t,u.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:o,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success?(u("#tutor-course-content-wrap").html(t.data.course\_contents),b(),u(".tutor-lesson-modal-wrap").removeClass("show"),tutor\_toast(s("Done","tutor"),e.data("toast\_success\_message"),"success")):tutor\_toast(s("Failed","tutor"),s("Assignment Update Failed","tutor"),"error")},error:function(){tutor\_toast(s("Failed","tutor"),s("Assignment Update Failed","tutor"),"error")},complete:function(){e.removeClass("tutor-updating-message")}})}),u(document).on("click",".add-assignment-attachments",function(t){t.preventDefault();var o,n=u(this);o||(o=wp.media({title:s("Select / Upload Media Of Your Chosen Persuasion","tutor"),button:{text:s("Use media","tutor")},multiple:!1})).on("select",function(){var t=o.state().get("selection").first().toJSON(),e='<div class="tutor-individual-attachment-file"><p class="attachment-file-name">'+t.filename+'</p><input type="hidden" name="tutor\_assignment\_attachments\[\]" value="'+t.id+'"><a href="javascript:;" class="remove-assignment-attachment-a text-muted"> × Remove</a></div>';u("#assignment-attached-file").append(e),n.closest(".video\_source\_upload\_wrap\_html5").find("input").val(t.id)}),o.open()}),u(document).on("click",".remove-assignment-attachment-a",function(t){t.preventDefault(),u(this).closest(".tutor-individual-attachment-file").remove()}),"tutor\_add\_course\_builder"===u('input\[name="tutor\_action"\]').val()&&setInterval(function(){var t=u("form#tutor-frontend-course-builder").serializeObject();t.tutor\_ajax\_action="tutor\_course\_builder\_draft\_save",u.ajax({type:"POST",data:t,beforeSend:function(){u(".tutor-dashboard-builder-draft-btn span").text(s("Saving...","tutor"))},success:function(t){},complete:function(){u(".tutor-dashboard-builder-draft-btn span").text(s("Save","tutor"))}})},3e4),u(".tutor-course-builder-section-title").on("click",function(){u(this).find("i").hasClass("tutor-icon-up")?u(this).find("i").removeClass("tutor-icon-up").addClass("tutor-icon-down"):u(this).find("i").removeClass("tutor-icon-down").addClass("tutor-icon-up"),u(this).next("div").slideToggle()}),u(document).on("click",".open-tutor-edit-review-modal",function(t){t.preventDefault();var e=u(this),o=e.attr("data-review-id"),n=\_tutorobject.nonce\_key,t={review\_id:o,action:"tutor\_load\_edit\_review\_modal"};t\[n\]=\_tutorobject\[n\],u.ajax({url:\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){void 0!==t.data&&(u(".tutor-edit-review-modal-wrap .modal-container").html(t.data.output),u(".tutor-edit-review-modal-wrap").attr("data-review-id",o).addClass("show"))},complete:function(){e.removeClass("tutor-updating-message")}})}),u(document).on("submit","#tutor\_update\_review\_form",function(t){t.preventDefault();var e=u(this),o=e.closest(".tutor-edit-review-modal-wrap ").attr("data-review-id"),t=\_tutorobject.nonce\_key,o={review\_id:o,rating:e.find('input\[name="tutor\_rating\_gen\_input"\]').val(),review:e.find('textarea\[name="review"\]').val().trim(),action:"tutor\_update\_review\_modal"};o\[t\]=\_tutorobject\[t\],u.ajax({url:\_tutorobject.ajaxurl,type:"POST",data:o,beforeSend:function(){e.find('button\[type="submit"\]').addClass("tutor-updating-message")},success:function(t){t.success&&(u(".tutor-edit-review-modal-wrap").removeClass("show"),location.reload(!0))},complete:function(){e.find('button\[type="submit"\]').removeClass("tutor-updating-message")}})}),u(document).on("click","#tutor\_profile\_photo\_button",function(t){t.preventDefault(),u("#tutor\_profile\_photo\_file").trigger("click")}),u(document).on("change","#tutor\_profile\_photo\_file",function(t){t.preventDefault();this.files&&this.files\[0\]&&((t=new FileReader).onload=function(t){u(".tutor-profile-photo-upload-wrap").find("img").attr("src",t.target.result)},t.readAsDataURL(this.files\[0\]))}),u(document).on("click",".thread-content .subject",function(t){var e=u(this),o=parseInt(e.closest(".thread-content").attr("data-thread-id")),e=\_tutorobject.nonce\_key,o={thread\_id:o,action:"tutor\_bp\_retrieve\_user\_records\_for\_thread"};o\[e\]=\_tutorobject\[e\],u.ajax({type:"POST",url:window.\_tutorobject.ajaxurl,data:o,beforeSend:function(){u("#tutor-bp-thread-wrap").html("")},success:function(t){t.success&&(u("#tutor-bp-thread-wrap").html(t.data.thread\_head\_html),q())}})}),q(),u(document).on("click","a.tutor\_bp\_plus\_courses",function(t){t.preventDefault();t=u(this);t.closest(".tutor-bp-enrolled-courses-wrap").find(".tutor-bp-enrolled-course-list li").show(),t.closest(".thread-participant-enrolled-info").html("")}),u(".tutor-dropbtn").click(function(){u(this).parent().find(".tutor-dropdown-content").slideToggle(100)}),u(".tutor-copy-link").click(function(t){var e=u(this),o=document.createElement("input"),n=window.location.href;document.body.appendChild(o),o.value=n,o.select(),document.execCommand("copy"),document.body.removeChild(o),e.html('<i class="tutor-icon-mark"></i> Copied'),setTimeout(function(){e.html('<i class="tutor-icon-copy"></i> Copy Link')},2500)}),u(document).on("click",function(t){var e=u(".tutor-dropdown"),o=e.find(".tutor-dropdown-content");e.is(t.target)||0!==e.has(t.target).length||o.slideUp(100)}),u(document).on("submit",".tutor-login-form-wrap #loginform",function(t){t.preventDefault();var t=u(this),e=u(".tutor-login-form-wrap"),t=t.serializeObject();t.action="tutor\_user\_login",u.ajax({url:\_tutorobject.ajaxurl,type:"POST",data:t,success:function(t){t.success?(location.assign(t.data.redirect),location.reload()):(t=t.data||s("Invalid username or password!","tutor"),e.find(".tutor-alert").length?e.find(".tutor-alert").html(t):e.prepend('<div class="tutor-alert tutor-alert-warning">'+t+"</div>"))}})});var j,k=u('.tutor-frontend-builder-course-price \[name="tutor\_course\_price\_type"\]');0==k.length?u("#\_tutor\_is\_course\_public\_meta\_checkbox").show():k.change(function(){var t;u(this).prop("checked")&&(t="paid"==u(this).val()?"hide":"show",u("#\_tutor\_is\_course\_public\_meta\_checkbox")\[t\]())}).trigger("change"),(j=jQuery).fn.tutor\_tooltip=function(){return this.on("mouseenter click",".tooltip",function(t){t.stopPropagation(),j(this).removeClass("isVisible")}).on("mouseenter focus",":has(>.tooltip)",function(t){j(this).prop("disabled")||j(this).find(".tooltip").addClass("isVisible")}).on("mouseleave blur keydown",":has(>.tooltip)",function(t){("keydown"!==t.type||27===t.which)&&j(this).find(".tooltip").removeClass("isVisible")}),this},jQuery(".tutor-tooltip-inside").tutor\_tooltip();var x=u(".tutor-course-filter-container form"),z=u(".tutor-course-filter-loop-container"),C={};x.on("submit",function(t){t.preventDefault()}).find("input").change(function(t){var e=Object.assign(x.serializeObject(),C);e.action="tutor\_course\_filter\_ajax",z.html('<center><img src="'+window.\_tutorobject.loading\_icon\_url+'"/></center>'),u(this).closest("form").find(".tutor-clear-all-filter").show(),u.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:e,success:function(t){z.html(t).find(".tutor-pagination-wrap a").each(function(){u(this).attr("data-href",u(this).attr("href")).attr("href","#")})}})}),z.on("click",".tutor-pagination-wrap a",function(t){var e=u(this).data("href")||u(this).attr("href");!e||(e=(e=new URL(e)).searchParams.get("paged"))&&(t.preventDefault(),C.page=e,x.find("input:first").trigger("change"))}),z.on("change",'select\[name="tutor\_course\_filter"\]',function(){C.tutor\_course\_filter=u(this).val(),x.find("input:first").trigger("change")});k=u(".tutor-course-loop");0<k.length&&("yes"===window.sessionStorage.getItem("tutor\_refresh\_archive")&&window.location.reload(),window.sessionStorage.removeItem("tutor\_refresh\_archive"),k.on("click",".tutor-loop-cart-btn-wrap",function(){window.sessionStorage.setItem("tutor\_refresh\_archive","yes")}));k=u("#tutor\_profile\_cover\_photo\_editor");0<k.length&&new function(n){this.dialogue\_box=n.find("#tutor\_photo\_dialogue\_box"),this.open\_dialogue\_box=function(t){this.dialogue\_box.attr("name",t),this.dialogue\_box.trigger("click")},this.validate\_image=function(t){return!0},this.upload\_selected\_image=function(t,e){var o,n,a;e&&this.validate\_image(e)&&(o=tutor\_get\_nonce\_data(!0),(n=this).toggle\_loader(t,!0),(a=new FormData).append("action","tutor\_user\_photo\_upload"),a.append("photo\_type",t),a.append("photo\_file",e,e.name),a.append(o.key,o.value),u.ajax({url:window.\_tutorobject.ajaxurl,data:a,type:"POST",processData:!1,contentType:!1,error:n.error\_alert,complete:function(){n.toggle\_loader(t,!1)}}))},this.accept\_upload\_image=function(t,e){var o=e.currentTarget.files\[0\]||null;t.update\_preview(e.currentTarget.name,o),t.upload\_selected\_image(e.currentTarget.name,o),u(e.currentTarget).val("")},this.delete\_image=function(t){var e=this;e.toggle\_loader(t,!0),u.ajax({url:window.\_tutorobject.ajaxurl,data:{action:"tutor\_user\_photo\_remove",photo\_type:t},type:"POST",error:e.error\_alert,complete:function(){e.toggle\_loader(t,!1)}})},this.update\_preview=function(t,e){var o=n.find("cover\_photo"==t?"#tutor\_cover\_area":"#tutor\_profile\_area");if(!e)return o.css("background-image","url("+o.data("fallback")+")"),void this.delete\_image(t);t=new FileReader;t.onload=function(t){o.css("background-image","url("+t.target.result+")")},t.readAsDataURL(e)},this.toggle\_profile\_pic\_action=function(t){n\[void 0===t?"toggleClass":t?"addClass":"removeClass"\]("pop-up-opened")},this.error\_alert=function(){alert("Something Went Wrong.")},this.toggle\_loader=function(t,e){n.find("#tutor\_photo\_meta\_area .loader-area").css("display",e?"block":"none")},this.initialize=function(){var e=this;this.dialogue\_box.change(function(t){e.accept\_upload\_image(e,t)}),n.find("#tutor\_profile\_area .tutor\_overlay, #tutor\_pp\_option>div:last-child").click(function(){e.toggle\_profile\_pic\_action()}),n.find(".tutor\_cover\_uploader").click(function(){e.open\_dialogue\_box("cover\_photo")}),n.find(".tutor\_pp\_uploader").click(function(){e.open\_dialogue\_box("profile\_photo")}),n.find(".tutor\_cover\_deleter").click(function(){e.update\_preview("cover\_photo",null)}),n.find(".tutor\_pp\_deleter").click(function(){e.update\_preview("profile\_photo",null)})}}(k).initialize(),u(".tutor-instructor-filter").each(function(){var e,r=u(this),s={};function n(t,e,o){var n=r.find(".filter-result-container"),a=n.html(),i=r.data();i.current\_page=o||1,t?s\[t\]=e:s={},s.attributes=i,s.action="load\_filtered\_instructor",n.html('<div style="text-align:center"><img src="'+window.\_tutorobject.loading\_icon\_url+'"/></div>'),u.ajax({url:window.\_tutorobject.ajaxurl,data:s,type:"POST",success:function(t){n.html(t)},error:function(){n.html(a),tutor\_toast("Failed","Request Error","error")}})}r.on("change",'.course-category-filter \[type="checkbox"\]',function(){var e={};u(this).closest(".course-category-filter").find("input:checked").each(function(){e\[u(this).val()\]=u(this).parent().text()});var o=r.find(".selected-cate-list").empty(),t=Object.keys(e);t.forEach(function(t){o.append("<span>"+e\[t\]+' <span class="tutor-icon-line-cross" data-cat\_id="'+t+'"></span></span>')}),t.length&&o.append('<span data-cat\_id="0">Clear All</span>'),n(u(this).attr("name"),t)}).on("click",".selected-cate-list \[data-cat\_id\]",function(){var t=u(this).data("cat\_id"),e=r.find('.mobile-filter-popup \[type="checkbox"\]');(e=t?e.filter('\[value="'+t+'"\]'):e).prop("checked",!1).trigger("change")}).on("input",'.filter-pc \[name="keyword"\]',function(){var t=u(this).val();e&&window.clearTimeout(e),e=window.setTimeout(function(){n("keyword",t),e=null},500)}).on("click","\[data-page\_number\]",function(t){t.preventDefault(),n(null,null,u(this).data("page\_number"))}).on("click",".clear-instructor-filter",function(){var t=u(this).closest(".tutor-instructor-filter");t.find('input\[type="checkbox"\]').prop("checked",!1),t.find('\[name="keyword"\]').val(""),n()}).on("click",".mobile-filter-container i",function(){u(this).parent().next().addClass("is-opened")}).on("click",".mobile-filter-popup button",function(){u('.mobile-filter-popup \[type="checkbox"\]').trigger("change"),u(this).closest(".mobile-filter-popup").removeClass("is-opened")}).on("input",'.filter-mobile \[name="keyword"\]',function(){r.find('.filter-pc \[name="keyword"\]').val(u(this).val()).trigger("input")}).on("change",'.mobile-filter-popup \[type="checkbox"\]',function(t){var e,o;t.originalEvent||(e=u(this).attr("name"),o=u(this).val(),t=u(this).prop("checked"),r.find('.course-category-filter \[name="'+e+'"\]').filter('\[value="'+o+'"\]').prop("checked",t).trigger("change"))}).on("mousedown touchstart",".expand-instructor-filter",function(t){var e=u(window).height(),o=r.find(".mobile-filter-popup>div"),n=e-o.height(),a=((t.originalEvent.touches||\[\])\[0\]||t).clientY-n;r.on("mousemove touchmove",function(t){t=((t.originalEvent.touches||\[\])\[0\]||t).clientY,t=e-t+a;200<t&&t<=e&&o.css("height",t+"px")})}).on("mouseup touchend",function(){r.off("mousemove touchmove")}).on("click",".mobile-filter-popup>div",function(t){t.stopImmediatePropagation()}).on("click",".mobile-filter-popup",function(t){u(this).removeClass("is-opened")})}),u(".tutor-course-retake-button").click(function(t){t.preventDefault();var t=u(this),e=t.attr("href"),o=t.data("course\_id"),t={title:s("Override Previous Progress","tutor"),description:s("Before continue, please decide whether to keep progress or reset.","tutor"),buttons:{reset:{title:s("Reset Data","tutor"),class:"secondary",callback:function(){var t=n.find(".tutor-button-secondary");t.prop("disabled",!0).append('<img style="margin-left: 7px" src="'+window.\_tutorobject.loading\_icon\_url+'"/>'),u.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{action:"tutor\_reset\_course\_progress",course\_id:o},success:function(t){t.success?window.location.assign(t.data.redirect\_to):alert((t.data||{}).message||s("Something went wrong","tutor"))},complete:function(){t.prop("disabled",!1).find("img").remove()}})}},keep:{title:s("Keep Data","tutor"),class:"primary",callback:function(){window.location.assign(e)}}}},n=new window.tutor\_popup(u,"icon-gear",40).popup(t)}),document.body.addEventListener("click",function(t){var e,o=t.target,n=o.tagName,a=o.parentElement.tagName;0<m.length&&"EXPIRED"!=m.html()&&("A"!==n&&"A"!==a||(t.preventDefault(),t.stopImmediatePropagation(),t={title:s("Abandon Quiz?","tutor"),description:s("Do you want to abandon this quiz? The quiz will be submitted partially up to this question if you leave this page.","tutor"),buttons:{keep:{title:s("Yes, leave quiz","tutor"),id:"leave",class:"secondary",callback:function(){var t=u("form#tutor-answering-quiz").serialize()+"&action=tutor\_quiz\_abandon";u.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){document.querySelector("#tutor-popup-leave").innerHTML=s("Leaving...","tutor")},success:function(t){t.success?null==o.href?location.href=o.parentElement.href:location.href=o.href:alert(s("Something went wrong","tutor"))},error:function(){alert(s("Something went wrong","tutor")),e.remove()}})}},reset:{title:s("Stay here","tutor"),id:"reset",class:"primary",callback:function(){e.remove()}}}},e=new window.tutor\_popup(u,"",40).popup(t)))}),u("body").on("submit","form#tutor-start-quiz",function(){u(this).find("button").prop("disabled",!0)})})})()})();
1
(()=>{var o={623:()=>{function b(t){return(b="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})(t)}function y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var o=null==t?null:"undefined"!=typeof Symbol&&t\[Symbol.iterator\]||t\["@@iterator"\];if(null!=o){var n,a,i=\[\],r=!0,s=!1;try{for(o=o.call(t);!(r=(n=o.next()).done)&&(i.push(n.value),!e||i.length!==e);r=!0);}catch(t){s=!0,a=t}finally{try{r||null==o.return||o.return()}finally{if(s)throw a}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return n(t,e);var o=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(o="Object"===o&&t.constructor?t.constructor.name:o)||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?n(t,e):void 0}}(t,e)||function(){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 n(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,n=new Array(e);o<e;o++)n\[o\]=t\[o\];return n}window.tutor\_get\_nonce\_data=function(t){var e=window.\_tutorobject||{},o=e.nonce\_key||"",e=e\[o\]||"";return t?{key:o,value:e}:(t=e,(e=o)in(o={})?Object.defineProperty(o,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):o\[e\]=t,o)},window.tutor\_popup=function(r,o,n){var s,u=this;return this.popup\_wrapper=function(t){var e=""===o?"":'<img class="tutor-pop-icon" src="'+window.\_tutorobject.tutor\_url+"assets/images/"+o+'.svg"/>';return"<"+t+' class="tutor-component-popup-container"> <div class="tutor-component-popup-'+n+'"> <div class="tutor-component-content-container">'+e+'</div> <div class="tutor-component-button-container"></div> </div> </'+t+">"},this.popup=function(o){var t=o.title?"<h3>"+o.title+"</h3>":"",e=o.description?"<p>"+o.description+"</p>":"",n=Object.keys(o.buttons||{}).map(function(t){var e=o.buttons\[t\],t=e.id?"tutor-popup-"+e.id:"";return r('<button id="'+t+'" class="tutor-button tutor-button-'+e.class+'">'+e.title+"</button>").click(e.callback)}),a=(s=r(u.popup\_wrapper(o.wrapper\_tag||"div"))).find(".tutor-component-content-container");a.append(t),o.after\_title&&a.append(o.after\_title),a.append(e),o.after\_description&&a.append(o.after\_description),s.click(function(){r(this).remove()}).children().click(function(t){t.stopPropagation()});for(var i=0;i<n.length;i++)s.find(".tutor-component-button-container").append(n\[i\]);return r("body").append(s),s},{popup:this.popup}},window.tutorDotLoader=function(t){return' \\n <div class="tutor-dot-loader '.concat(t||"",'">\\n <span class="dot dot-1"></span>\\n <span class="dot dot-2"></span>\\n <span class="dot dot-3"></span>\\n <span class="dot dot-4"></span>\\n </div>')},window.tutor\_date\_picker=function(){var t;jQuery.datepicker&&(t=\_tutorobject.wp\_date\_format||"yy-mm-dd",$(".tutor\_date\_picker").datepicker({dateFormat:t}))},jQuery(document).ready(function(l){"use strict";var t=wp.i18n,a=t.\_\_;t.\_x,t.\_n,t.\_nx;function o(){var t;jQuery.datepicker&&(t=\_tutorobject.wp\_date\_format||"yy-mm-dd",l(".tutor\_date\_picker").datepicker({dateFormat:t})),l(document).on("keydown",".hasDatepicker, .tutor\_date\_picker",function(t){8!==t.keyCode&&t.preventDefault()})}function s(){l(".tutor-field-slider").each(function(){var t=l(this),o=t.closest(".tutor-field-type-slider").find('input\[type="hidden"\]'),n=t.closest(".tutor-field-type-slider").find(".tutor-field-type-slider-value"),e=parseFloat(t.closest(".tutor-field-type-slider").attr("data-min")),a=parseFloat(t.closest(".tutor-field-type-slider").attr("data-max"));t.slider({range:"max",min:e,max:a,value:o.val(),slide:function(t,e){n.text(e.value),o.val(e.value)}})})}function e(t){var e=t.element;return l('<span><i class="tutor-icon-'+l(e).data("icon")+'"></i> '+t.text+"</span>")}function i(){jQuery().sortable&&(l(".course-contents").sortable({handle:".course-move-handle",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){n()}}),l(".tutor-lessons:not(.drop-lessons)").sortable({connectWith:".tutor-lessons",items:"div.course-content-item",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){n()}}))}function n(){var i={};l(".tutor-topics-wrap").each(function(t,e){var o=l(this),n=parseInt(o.attr("id").match(/\\d+/)\[0\],10),a={};o.find(".course-content-item").each(function(t,e){var o=l(this),o=parseInt(o.attr("id").match(/\\d+/)\[0\],10);a\[t\]=o}),i\[t\]={topic\_id:n,lesson\_ids:a}}),l("#tutor\_topics\_lessons\_sorting").val(JSON.stringify(i))}function r(){return{init:function(){l(document).on("click",".tutor-select .tutor-select-option",function(t){t.preventDefault();var e=l(this);"true"!==e.attr("data-is-pro")?(t=e.html().trim(),e.closest(".tutor-select").find(".select-header .lead-option").html(t),e.closest(".tutor-select").find(".select-header input.tutor\_select\_value\_holder").val(e.attr("data-value")).trigger("change"),e.closest(".tutor-select-options").hide(),disableAddoption()):alert("Tutor Pro version required")}),l(document).on("click",".tutor-select .select-header",function(t){t.preventDefault(),l(this).closest(".tutor-select").find(".tutor-select-options").slideToggle()}),this.setValue(),this.hideOnOutSideClick()},setValue:function(){l(".tutor-select").each(function(){var t=l(this).find(".tutor-select-option");t.length&&t.each(function(){var t,e=l(this);"selected"===e.attr("data-selected")&&(t=e.html().trim(),e.closest(".tutor-select").find(".select-header .lead-option").html(t),e.closest(".tutor-select").find(".select-header input.tutor\_select\_value\_holder").val(e.attr("data-value")))})})},hideOnOutSideClick:function(){l(document).mouseup(function(t){var e=l(".tutor-select-options");l(t.target).closest(".select-header").length||e.is(t.target)||0!==e.has(t.target).length||e.hide()})},reInit:function(){this.setValue()}}}o(),s(),jQuery().select2&&l(".videosource\_select2").select2({width:"100%",templateSelection:e,templateResult:e,allowHtml:!0}),l(document).on("change",".tutor\_lesson\_video\_source",function(t){var e=l(this),o=l(this).val();o?l(".video-metabox-source-input-wrap").show():l(".video-metabox-source-input-wrap").hide(),e.closest(".tutor-option-field").find(".video-metabox-source-item").hide(),e.closest(".tutor-option-field").find(".video\_source\_wrap\_"+o).show()}),l(document).on("click",".tutor-course-thumbnail-upload-btn",function(t){t.preventDefault();var e,o=l(this);e||(e=wp.media({title:a("Select or Upload Media Of Your Chosen Persuasion","tutor"),button:{text:a("Use this media","tutor")},multiple:!1})).on("select",function(){var t=e.state().get("selection").first().toJSON();o.closest(".tutor-thumbnail-wrap").find(".thumbnail-img").attr("src",t.url),o.closest(".tutor-thumbnail-wrap").find("input").val(t.id),l(".tutor-course-thumbnail-delete-btn").show()}),e.open()}),l(document).on("click",".tutor-course-thumbnail-delete-btn",function(t){t.preventDefault();var e=l(this),t=e.closest(".tutor-thumbnail-wrap").find(".thumbnail-img").attr("data-placeholder-src");e.closest(".tutor-thumbnail-wrap").find(".thumbnail-img").attr("src",t),e.closest(".tutor-thumbnail-wrap").find("input").val(""),l(".tutor-course-thumbnail-delete-btn").hide()}),l(document).on("click",".create\_new\_topic\_btn",function(t){t.preventDefault(),l(".tutor-metabox-add-topics").slideToggle()}),l(document).on("click","#tutor-add-topic-btn",function(t){t.preventDefault();var e=l(this),t=e.closest(".tutor-metabox-add-topics").find("input, textarea").serializeObject();t.action="tutor\_add\_course\_topic",l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(l("#tutor-course-content-wrap").html(t.data.course\_contents),e.closest(".tutor-metabox-add-topics").find('input\[type!="hidden"\], textarea').each(function(){l(this).val("")}),e.closest(".tutor-metabox-add-topics").slideUp(),i())},complete:function(){e.removeClass("tutor-updating-message")}})}),l(".tutor-zoom-meeting-modal-wrap").on("submit",".tutor-meeting-modal-form",function(t){t.preventDefault();var e=l(this),o=e.serializeObject(),t=Intl.DateTimeFormat().resolvedOptions().timeZone;o.timezone=t;var n=e.find('button\[type="submit"\]');l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:o,beforeSend:function(){n.addClass("tutor-updating-message")},success:function(t){t.success?tutor\_toast(a("Success","tutor"),n.data("toast\_success\_message"),"success"):tutor\_toast(a("Update Error","tutor"),a("Meeting Update Failed","tutor"),"error"),t.course\_contents?(l(t.selector).html(t.course\_contents),"#tutor-course-content-wrap"==t.selector&&i(),l(".tutor-zoom-meeting-modal-wrap").removeClass("show")):location.reload()},complete:function(){n.removeClass("tutor-updating-message")}})}),l(document).on("change keyup",".course-edit-topic-title-input",function(t){t.preventDefault(),l(this).closest(".tutor-topics-top").find(".topic-inner-title").html(l(this).val())}),l(document).on("click",".topic-edit-icon",function(t){t.preventDefault(),l(this).closest(".tutor-topics-top").find(".tutor-topics-edit-form").slideToggle()}),l(document).on("click",".tutor-topics-edit-button",function(t){t.preventDefault();var e=l(this),o=e.closest(".tutor-topics-wrap"),t=parseInt(o.attr("id").match(/\\d+/)\[0\],10),n=e.closest(".tutor-topics-wrap").find('\[name="topic\_title"\]').val(),o=e.closest(".tutor-topics-wrap").find('\[name="topic\_summery"\]').val();l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{topic\_title:n,topic\_summery:o,topic\_id:t,action:"tutor\_update\_topic"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(e.closest(".tutor-topics-wrap").find("span.topic-inner-title").text(n),e.closest(".tutor-topics-wrap").find(".tutor-topics-edit-form").slideUp())},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click",".open-tutor-lesson-modal",function(t){t.preventDefault();var e=l(this),o=e.attr("data-lesson-id"),n=e.attr("data-topic-id"),a=l("#post\_ID").val();l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{lesson\_id:o,topic\_id:n,course\_id:a,action:"tutor\_load\_edit\_lesson\_modal"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){l(".tutor-lesson-modal-wrap .modal-container").html(t.data.output),l(".tutor-lesson-modal-wrap").attr({"data-lesson-id":o,"data-topic-id":n}).addClass("show");t=(t=tinyMCEPreInit.mceInit.tutor\_editor\_config)||tinyMCEPreInit.mceInit.course\_description;tinymce.init(t),tinymce.execCommand("mceRemoveEditor",!1,"tutor\_lesson\_modal\_editor"),tinyMCE.execCommand("mceAddEditor",!1,"tutor\_lesson\_modal\_editor"),l(document).trigger("lesson\_modal\_loaded",{lesson\_id:o,topic\_id:n,course\_id:a})},complete:function(){quicktags({id:"tutor\_lesson\_modal\_editor"}),e.removeClass("tutor-updating-message")}})}),l(document).on("click",".lesson\_thumbnail\_upload\_btn",function(t){t.preventDefault();var e,o=l(this);e||(e=wp.media({title:a("Select or Upload Media Of Your Chosen Persuasion","tutor"),button:{text:a("Use this media","tutor")},multiple:!1})).on("select",function(){var t=e.state().get("selection").first().toJSON();o.closest(".tutor-thumbnail-wrap").find(".thumbnail-img").html('<img src="'+t.url+'" alt="" /><a href="javascript:;" class="tutor-lesson-thumbnail-delete-btn"><i class="tutor-icon-line-cross"></i></a>'),o.closest(".tutor-thumbnail-wrap").find("input").val(t.id),l(".tutor-lesson-thumbnail-delete-btn").show()}),e.open()}),l(document).on("click",".tutor-lesson-thumbnail-delete-btn",function(t){t.preventDefault();t=l(this);t.closest(".tutor-thumbnail-wrap").find(".\_lesson\_thumbnail\_id").val(""),t.closest(".tutor-thumbnail-wrap").find(".thumbnail-img").html(""),t.hide()}),l(document).on("click",".tutor-delete-lesson-btn",function(t){var e;t.preventDefault(),confirm(a("Are you sure?","tutor"))&&(t=(e=l(this)).attr("data-lesson-id"),l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{lesson\_id:t,action:"tutor\_delete\_lesson\_by\_id"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&e.closest(".course-content-item").remove()},complete:function(){e.removeClass("tutor-updating-message")}}))}),l(document).on("click",".topic-delete-btn a",function(t){l(this).attr("data-topic-id");confirm(a("Are you sure to delete?","tutor"))||t.preventDefault()}),l(document).on("click",".tutor-expand-all-topic",function(t){t.preventDefault(),l(".tutor-topics-body").slideDown(),l(".expand-collapse-wrap i").removeClass("tutor-icon-light-down").addClass("tutor-icon-light-up")}),l(document).on("click",".tutor-collapse-all-topic",function(t){t.preventDefault(),l(".tutor-topics-body").slideUp(),l(".expand-collapse-wrap i").removeClass("tutor-icon-light-up").addClass("tutor-icon-light-down")}),l(document).on("click",".topic-inner-title, .expand-collapse-wrap",function(t){t.preventDefault();t=l(this);t.closest(".tutor-topics-wrap").find(".tutor-topics-body").slideToggle(),t.closest(".tutor-topics-wrap").find(".expand-collapse-wrap i").toggleClass("tutor-icon-light-down tutor-icon-light-up")}),l(document).on("click",".quiz-modal-btn-first-step",function(t){t.preventDefault();var e,o,n,a=l(this),i=l('\[name="quiz\_title"\]'),r=i.val(),t=l('\[name="quiz\_description"\]').val();r?(i.closest(".tutor-quiz-builder-group").find(".quiz\_form\_msg").html(""),e=l("#post\_ID").val(),o=a.closest(".tutor-modal-wrap").attr("quiz-for-post-id"),l("#tutor\_quiz\_builder\_quiz\_id").length?(n=l("#tutor\_quiz\_builder\_quiz\_id").val(),l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{quiz\_title:r,quiz\_description:t,quiz\_id:n,topic\_id:o,action:"tutor\_quiz\_builder\_quiz\_update"},beforeSend:function(){a.addClass("tutor-updating-message")},success:function(t){l("#tutor-quiz-"+n).html(t.data.output\_quiz\_row),l('#tutor-quiz-modal-tab-items-wrap a\[href="#quiz-builder-tab-questions"\]').trigger("click"),s()},complete:function(){a.removeClass("tutor-updating-message")}})):l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{quiz\_title:r,quiz\_description:t,course\_id:e,topic\_id:o,action:"tutor\_create\_quiz\_and\_load\_modal"},beforeSend:function(){a.addClass("tutor-updating-message")},success:function(t){l(".tutor-quiz-builder-modal-wrap .modal-container").html(t.data.output),l("#tutor-topics-"+o+" .tutor-lessons").append(t.data.output\_quiz\_row),l('#tutor-quiz-modal-tab-items-wrap a\[href="#quiz-builder-tab-questions"\]').trigger("click"),s(),l(document).trigger("quiz\_modal\_loaded",{topic\_id:o,course\_id:e})},complete:function(){a.removeClass("tutor-updating-message")}})):i.closest(".tutor-quiz-builder-group").find(".quiz\_form\_msg").html("Please enter quiz title")}),l(document).on("click",".open-tutor-quiz-modal",function(t){t.preventDefault();var e=l(this),o=e.attr("data-quiz-id"),n=e.attr("data-topic-id");null==n&&(n=e.closest(".tutor-modal-wrap").attr("quiz-for-post-id"));var a=l("#post\_ID").val();l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{quiz\_id:o,topic\_id:n,course\_id:a,action:"tutor\_load\_edit\_quiz\_modal"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){l(".tutor-quiz-builder-modal-wrap .modal-container").html(t.data.output),l(".tutor-quiz-builder-modal-wrap").attr("data-quiz-id",o).attr("quiz-for-post-id",n).addClass("show"),e.attr("data-back-to-tab")&&(t=e.attr("data-back-to-tab"),l('#tutor-quiz-modal-tab-items-wrap a\[href="'+t+'"\]').trigger("click")),l(document).trigger("quiz\_modal\_loaded",{quiz\_id:o,topic\_id:n,course\_id:a}),s(),jQuery().sortable&&l(".quiz-builder-questions-wrap").sortable({handle:".question-sorting",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){var n;n={},l(".quiz-builder-question-wrap").each(function(t,e){var o=l(this),o=parseInt(o.attr("data-question-id"),10);n\[t\]=o}),l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{sorted\_question\_ids:n,action:"tutor\_quiz\_question\_sorting"}})}})},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click",".quiz-modal-settings-save-btn",function(t){t.preventDefault();var e=l(this),o=l(".tutor-quiz-builder-modal-wrap").attr("data-quiz-id"),n=l("#current\_topic\_id\_for\_quiz").val(),t=l("#quiz-builder-tab-settings :input, #quiz-builder-tab-advanced-options :input").serializeObject();t.topic\_id=n,t.quiz\_id=o,t.action="tutor\_quiz\_modal\_update\_settings",l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&l("#tutor-course-content-wrap").html(t.data.course\_contents),t.success?tutor\_toast(a("Success","tutor"),e.data("toast\_success\_message"),"success"):tutor\_toast(a("Update Error","tutor"),a("Quiz Update Failed","tutor"),"error")},complete:function(){e.removeClass("tutor-updating-message"),"modal\_close"===e.attr("data-action")&&l(".tutor-modal-wrap").removeClass("show")}})}),l(document).on("click",".quiz-modal-question-save-btn",function(t){t.preventDefault();var e=l(this),o=l(".quiz\_question\_form :input").serializeObject();o.action="tutor\_quiz\_modal\_update\_question";t=e.closest(".tutor-modal-wrap").attr("quiz-for-post-id");o.topic\_id=t,l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:o,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success?e.closest(".tutor-quiz-builder-modal-contents").find(".open-tutor-quiz-modal").trigger("click"):void 0!==t.data&&l("#quiz\_validation\_msg\_wrap").html(t.data.validation\_msg)},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click",".modal-close-btn",function(t){t.preventDefault(),l(".tutor-modal-wrap").removeClass("show")}),l(document).on("keyup",function(t){27===t.keyCode&&l(".tutor-modal-wrap").removeClass("show")}),l(document).on("click",".tutor-add-quiz-btn",function(t){t.preventDefault();var e=l(this),o=l(this).closest(".tutor\_add\_quiz\_wrap").attr("data-add-quiz-under"),t=l(this).data("topic-id");l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{quiz\_for\_post\_id:o,current\_topic\_id:t,action:"tutor\_load\_quiz\_builder\_modal"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){l(".tutor-quiz-builder-modal-wrap .modal-container").html(t.data.output),l(".tutor-quiz-builder-modal-wrap").attr("quiz-for-post-id",o).addClass("show")},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click",".tutor-quiz-modal-tab-item",function(t){t.preventDefault();var e=l(this),o=l('\[name="quiz\_title"\]');o.val()?(o.closest(".tutor-quiz-builder-form-row").find(".quiz\_form\_msg").html(""),t=e.attr("href"),l(".quiz-builder-tab-container").hide(),l(t).show(),l("a.tutor-quiz-modal-tab-item").removeClass("active"),e.addClass("active")):o.closest(".tutor-quiz-builder-form-row").find(".quiz\_form\_msg").html('<p class="quiz-form-warning">Please save the quiz first</p>')}),l(document).on("click",".quiz-modal-btn-next, .quiz-modal-btn-back",function(t){t.preventDefault();t=l(this).attr("href");l('#tutor-quiz-modal-tab-items-wrap a\[href="'+t+'"\]').trigger("click")}),l(document).on("click",".quiz-modal-tab-navigation-btn.quiz-modal-btn-cancel",function(t){t.preventDefault(),l(".tutor-modal-wrap").removeClass("show")}),l(document).on("click",".tutor-quiz-open-question-form",function(t){t.preventDefault();var e=l(this),o=l("#tutor\_quiz\_builder\_quiz\_id").val(),n=l("#post\_ID").val(),t=e.attr("data-question-id"),n={quiz\_id:o,course\_id:n,action:"tutor\_quiz\_builder\_get\_question\_form"};t&&(n.question\_id=t),l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:n,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){l(".tutor-quiz-builder-modal-contents").html(t.data.output),r().reInit(),jQuery().sortable&&l("#tutor\_quiz\_question\_answers").sortable({handle:".tutor-quiz-answer-sort-icon",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){var n;n={},l(".tutor-quiz-answer-wrap").each(function(t,e){var o=l(this),o=parseInt(o.attr("data-answer-id"),10);n\[t\]=o}),l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{sorted\_answer\_ids:n,action:"tutor\_quiz\_answer\_sorting"}})}}),disableAddoption()},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click",".tutor-quiz-question-trash",function(t){t.preventDefault();var e=l(this),t=e.attr("data-question-id");l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{question\_id:t,action:"tutor\_quiz\_builder\_question\_delete"},beforeSend:function(){e.closest(".quiz-builder-question-wrap").remove()}})}),l(document).on("click",".add\_question\_answers\_option:not(.disabled)",function(t){t.preventDefault();var e=l(this),o=e.attr("data-question-id"),t=l(".quiz\_question\_form :input").serializeObject();t.question\_id=o,t.action="tutor\_quiz\_add\_question\_answers",l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){l("#tutor\_quiz\_question\_answer\_form").html(t.data.output),disableAddoption()},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click",".tutor-quiz-answer-edit a",function(t){t.preventDefault();var e=l(this),t=e.closest(".tutor-quiz-answer-wrap").attr("data-answer-id");l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{answer\_id:t,action:"tutor\_quiz\_edit\_question\_answer"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){l("#tutor\_quiz\_question\_answer\_form").html(t.data.output)},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click","#quiz-answer-save-btn",function(t){t.preventDefault();var e=l(this),t=l(".quiz\_question\_form :input").serializeObject();t.action="tutor\_save\_quiz\_answer\_options",l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){l("#quiz\_validation\_msg\_wrap").html(""),e.addClass("tutor-updating-message")},success:function(t){l("#tutor\_quiz\_question\_answers").trigger("refresh")},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click","#quiz-answer-edit-btn",function(t){t.preventDefault();var e=l(this),t=l(".quiz\_question\_form :input").serializeObject();t.action="tutor\_update\_quiz\_answer\_options",l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){l("#tutor\_quiz\_question\_answers").trigger("refresh")},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("change",".tutor-quiz-answers-mark-correct-wrap input",function(t){t.preventDefault();var e=l(this),o=e.val(),t=1;e.prop("checked")||(t=0),l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{answer\_id:o,inputValue:t,action:"tutor\_mark\_answer\_as\_correct"}})}),l(document).on("refresh","#tutor\_quiz\_question\_answers",function(t){t.preventDefault();var e=l(this),o=e.attr("data-question-id"),t=l(".tutor\_select\_value\_holder").val();l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{question\_id:o,question\_type:t,action:"tutor\_quiz\_builder\_get\_answers\_by\_question"},beforeSend:function(){e.addClass("tutor-updating-message"),l("#tutor\_quiz\_question\_answer\_form").html("")},success:function(t){t.success&&e.html(t.data.output)},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click",".tutor-quiz-answer-trash-wrap a.answer-trash-btn",function(t){t.preventDefault();var e=l(this),t=e.attr("data-answer-id");l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{answer\_id:t,action:"tutor\_quiz\_builder\_delete\_answer"},beforeSend:function(){e.closest(".tutor-quiz-answer-wrap").remove()}})}),l(document).on("click",".tutor-delete-quiz-btn",function(t){var e;t.preventDefault(),confirm(a("Are you sure?","tutor"))&&(t=(e=l(this)).attr("data-quiz-id"),l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{quiz\_id:t,action:"tutor\_delete\_quiz\_by\_id"},beforeSend:function(){e.closest(".course-content-item").remove()}}))}),r().init(),l(document).on("change","input.tutor\_select\_value\_holder",function(t){l(this);l(".add\_question\_answers\_option").trigger("click"),l("#tutor\_quiz\_question\_answers").trigger("refresh")}),l(document).on("click",".tutor-media-upload-btn",function(t){t.preventDefault();var e,o=l(this);e||(e=wp.media({title:a("Select or Upload Media Of Your Chosen Persuasion","tutor"),button:{text:a("Use this media","tutor")},multiple:!1})).on("select",function(){var t=e.state().get("selection").first().toJSON();o.html('<img src="'+t.url+'" alt="" />'),o.closest(".tutor-media-upload-wrap").find("input").val(t.id)}),e.open()}),l(document).on("click",".tutor-media-upload-trash",function(t){t.preventDefault();t=l(this);t.closest(".tutor-media-upload-wrap").find(".tutor-media-upload-btn").html('<i class="tutor-icon-image1"></i>'),t.closest(".tutor-media-upload-wrap").find("input").val("")});var u,c=(u=0,function(t,e){clearTimeout(u),u=setTimeout(t,e)});l(document).on("click",".tutor-add-instructor-btn",function(t){t.preventDefault();var e=l(this),t=l("#post\_ID").val();l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{course\_id:t,action:"tutor\_load\_instructors\_modal"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(l(".tutor-instructors-modal-wrap .modal-container").html(t.data.output),l(".tutor-instructors-modal-wrap").addClass("show"))},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("change keyup",".tutor-instructors-modal-wrap .tutor-modal-search-input",function(t){t.preventDefault();var o=l(this),n=l(".tutor-modal-wrap");c(function(){var t=o.val(),e=l("#post\_ID").val();l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{course\_id:e,search\_terms:t,action:"tutor\_load\_instructors\_modal"},beforeSend:function(){n.addClass("loading")},success:function(t){t.success&&(l(".tutor-instructors-modal-wrap .modal-container").html(t.data.output),l(".tutor-instructors-modal-wrap").addClass("show"))},complete:function(){n.removeClass("loading")}})},1e3)}),l(document).on("click",".add\_instructor\_to\_course\_btn",function(t){t.preventDefault();var e=l(this),o=l(".tutor-modal-wrap"),t=l("#post\_ID").val(),o=o.find("input").serializeObject();o.course\_id=t,o.action="tutor\_add\_instructors\_to\_course",l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:o,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(l(".tutor-course-available-instructors").html(t.data.output),l(".tutor-modal-wrap").removeClass("show"))},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click",".tutor-instructor-delete-btn",function(t){t.preventDefault();var e=l(this),o=l("#post\_ID").val(),t=e.closest(".added-instructor-item").attr("data-instructor-id");l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{course\_id:o,instructor\_id:t,action:"detach\_instructor\_from\_course"},success:function(t){t.success&&e.closest(".added-instructor-item").remove()}})}),l(document).on("click",".settings-tabs-navs li",function(t){t.preventDefault();var e=l(this),o=e.find("a").attr("data-target"),t=e.find("a").attr("href");e.addClass("active").siblings("li.active").removeClass("active"),l(".settings-tab-wrap").removeClass("active").hide(),l(o).addClass("active").show(),window.history.pushState({},"",t)}),l(document).on("lesson\_modal\_loaded quiz\_modal\_loaded assignment\_modal\_loaded",function(t,e){jQuery().select2&&l(".select2\_multiselect").select2({dropdownCssClass:"increasezindex"}),o()}),l(document).on("lesson\_modal\_loaded",function(t,e){l(".tutor-lesson-modal-wrap .modal-title h1").html(a("Lesson","tutor"))}),l(document).on("assignment\_modal\_loaded",function(t,e){l(".tutor-lesson-modal-wrap .modal-title h1").html(a("Assignment","tutor"))}),l(document).on("keyup change",".tutor-number-validation",function(t){var e=l(this),o=parseInt(e.val()),n=parseInt(e.attr("data-min")),a=parseInt(e.attr("data-max"));o<n?e.val(n):a<o&&e.val(a)}),l(document).on("click",".tutor-instructor-feedback",function(t){t.preventDefault();var e=l(this);l.ajax({url:window.ajaxurl||\_tutorobject.ajaxurl,type:"POST",data:{attempts\_id:e.data("attemptid"),feedback:l(".tutor-instructor-feedback-content").val(),action:"tutor\_instructor\_feedback"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(e.closest(".course-content-item").remove(),tutor\_toast(a("Success","tutor"),e.data("toast\_success\_message"),"success"))},complete:function(){e.removeClass("tutor-updating-message")}})});var d=l(".tutor-announcement-add-new"),p=l(".tutor-announcement-edit"),m=l(".tutor-announcement-delete"),\_=l(".tutor-announcement-details"),t=l(".tutor-announcement-close-btn"),f=l(".tutor-accouncement-create-modal"),h=l(".tutor-accouncement-update-modal"),v=l(".tutor-accouncement-details-modal");function g(t,e){var o=new URL(window.location.href),n=o.searchParams;return n.set(t,e),o.search=n.toString(),\_tutorobject.is\_admin?n.set("paged",1):n.set("current\_page",1),o.search=n.toString(),o.toString()}l(d).click(function(){f.addClass("show"),l("#tutor-annoucement-backend-create-modal").addClass("show")}),l(\_).click(function(){var t=l(this).attr("announcement-date"),e=l(this).attr("announcement-id"),o=l(this).attr("course-id"),n=l(this).attr("course-name"),a=l(this).attr("announcement-title"),i=l(this).attr("announcement-summary");l(".tutor-announcement-detail-content").html("<h3>".concat(a,"</h3><p>").concat(i,"</p>")),l(".tutor-announcement-detail-course-info p").html("".concat(n)),l(".tutor-announcement-detail-date-info p").html("".concat(t)),l("#tutor-announcement-edit-from-detail").attr("announcement-id",e),l("#tutor-announcement-edit-from-detail").attr("course-id",o),l("#tutor-announcement-edit-from-detail").attr("announcement-title",a),l("#tutor-announcement-edit-from-detail").attr("announcement-summary",i),l("#tutor-announcement-delete-from-detail").attr("announcement-id",e),v.addClass("show")}),l(p).click(function(){v&&v.removeClass("show");var t=l(this).attr("announcement-id"),e=l(this).attr("course-id"),o=l(this).attr("announcement-title"),n=l(this).attr("announcement-summary");l("#tutor-announcement-course-id").val(e),l("#announcement\_id").val(t),l("#tutor-announcement-title").val(o),l("#tutor-announcement-summary").val(n),h.addClass("show")}),l(t).click(function(){f.removeClass("show"),h.removeClass("show"),v.removeClass("show"),l("#tutor-annoucement-backend-create-modal").removeClass("show")}),l(".tutor-announcements-form").on("submit",function(t){t.preventDefault();var e=l(this).find('button\[type="submit"\]'),t=l(".tutor-announcements-form").serialize()+"&action=tutor\_announcement\_create&action\_type=create";l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){if(l(".tutor-alert").remove(),"success"==t.status&&location.reload(),"validation\_error"==t.status){l(".tutor-announcements-create-alert").append('<div class="tutor-alert alert-warning"></div>');for(var e=0,o=Object.entries(t.message);e<o.length;e++){var n=y(o\[e\],2),n=(n\[0\],n\[1\]);l(".tutor-announcements-create-alert .tutor-alert").append("<li>".concat(n,"</li>"))}}"fail"==t.status&&l(".tutor-announcements-create-alert").html("<li>".concat(t.message,"</li>"))},error:function(t){console.log(t)}})}),l(".tutor-announcements-update-form").on("submit",function(t){t.preventDefault();var e=l(this).find('button\[type="submit"\]'),t=l(".tutor-announcements-update-form").serialize()+"&action=tutor\_announcement\_create&action\_type=update";l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){if(l(".tutor-alert").remove(),"success"==t.status&&location.reload(),"validation\_error"==t.status){l(".tutor-announcements-update-alert").append('<div class="tutor-alert alert-warning"></div>');for(var e=0,o=Object.entries(t.message);e<o.length;e++){var n=y(o\[e\],2),n=(n\[0\],n\[1\]);l(".tutor-announcements-update-alert > .tutor-alert").append("<li>".concat(n,"</li>"))}}"fail"==t.status&&l(".tutor-announcements-create-alert").html("<li>".concat(t.message,"</li>"))},error:function(){}})}),l(m).click(function(){var t=l(this).attr("announcement-id"),e=l("#tutor-announcement-tr-"+t);confirm("Do you want to delete?")&&l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{action:"tutor\_announcement\_delete",announcement\_id:t},beforeSend:function(){},success:function(t){e.remove(),v.length&&v.removeClass("show"),"fail"==t.status&&console.log(t.message)},error:function(){}})}),l(".tutor-announcement-course-sorting").on("change",function(t){window.location=g("course-id",l(this).val())}),l(".tutor-announcement-order-sorting").on("change",function(t){window.location=g("order",l(this).val())}),l(".tutor-announcement-date-sorting").on("change",function(t){window.location=g("date",l(this).val())}),l(".tutor-announcement-search-sorting").on("click",function(t){window.location=g("search",l(".tutor-announcement-search-field").val())}),l(document).click(function(){l(".tutor-dropdown").removeClass("show")}),l(".tutor-dropdown").click(function(t){t.stopPropagation(),l(".tutor-dropdown").hasClass("show")&&l(".tutor-dropdown").removeClass("show"),l(this).addClass("show")});var w,m=".video\_source\_wrap\_external\_url input, .video\_source\_wrap\_vimeo input, .video\_source\_wrap\_youtube input, .video\_source\_wrap\_html5, .video\_source\_upload\_wrap\_html5";l("body").on("paste",m,function(t){t.stopImmediatePropagation();var r=l(this).closest(".lesson-modal-form-wrap").find(".tutor-option-field-video-duration"),e=r.find("label"),o=l(this).hasClass("video\_source\_wrap\_html5")||l(this).hasClass("video\_source\_upload\_wrap\_html5"),n=l(this).data("autofill\_url");l(this).data("autofill\_url",null);function a(t){t?0==e.find("img").length&&e.append(' <img src="'+window.\_tutorobject.loading\_icon\_url+'" style="display:inline-block"/>'):e.find("img").remove()}function i(t){for(var e=Math.floor(t/3600),o=Math.floor((t-3600\*e)/60),t=Math.round(t-3600\*e-60\*o),n=\[e=e<10?"0"+e:e,o=o<10?"0"+o:o,t=t<10?"0"+t:t\],a=r.find("input"),i=0;i<3;i++)a.eq(i).val(n\[i\])}var s,u,c,t=o?l(this).find("span").data("video\_url"):n||t.originalEvent.clipboardData.getData("text");o||l(this).parent().hasClass("video\_source\_wrap\_external\_url")?((s=document.createElement("video")).addEventListener("loadedmetadata",function(){i(s.duration),a(!1)}),a(!0),s.src=t):l(this).parent().hasClass("video\_source\_wrap\_vimeo")?(u=(c=t.match(/^.\*(vimeo\\.com\\/)((channels\\/\[A-z\]+\\/)|(groups\\/\[A-z\]+\\/videos\\/))?(\[0-9\]+)/))?c\[5\]:null)&&(a(!0),l.getJSON("http://vimeo.com/api/v2/video/"+u+"/json",function(t){Array.isArray(t)&&t\[0\]&&void 0!==t\[0\].duration&&i(t\[0\].duration),a(!1)})):l(this).parent().hasClass("video\_source\_wrap\_youtube")&&(u=!(!(c=t.match(/^.\*((youtu.be\\/)|(v\\/)|(\\/u\\/\\w\\/)|(embed\\/)|(watch\\?))\\??v?=?(\[^#&?\]\*).\*/))||11!=c\[7\].length)&&c\[7\],c=l(this).data("youtube\_api\_key"),u&&c&&(c="https://www.googleapis.com/youtube/v3/videos?id="+u+"&key="+c+"&part=contentDetails",a(!0),l.getJSON(c,function(t){"object"==b(t)&&t.items&&t.items\[0\]&&t.items\[0\].contentDetails&&t.items\[0\].contentDetails.duration&&i(function(t){t=(t=t.match(/PT(\\d+H)?(\\d+M)?(\\d+S)?/)).slice(1).map(function(t){if(null!=t)return t.replace(/\\D/,"")});return 3600\*(parseInt(t\[0\])||0)+60\*(parseInt(t\[1\])||0)+(parseInt(t\[2\])||0)}(t.items\[0\].contentDetails.duration)),a(!1)})))}).on("input",m,function(){w&&clearTimeout(w);var e=l(this);w=setTimeout(function(){var t=(t=e.val())?t.trim():"";console.log("Trigger",t),t&&e.data("autofill\_url",t).trigger("paste")},700)}),l(".tutor-form-submit-through-ajax").submit(function(t){t.preventDefault();var e=l(this),o=l(this).attr("action")||window.location.href,n=l(this).attr("method")||"GET",t=l(this).serializeObject();e.find("button").addClass("tutor-updating-message"),l.ajax({url:o,type:n,data:t,success:function(){tutor\_toast(a("Success","tutor"),e.data("toast\_success\_message"),"success")},complete:function(){e.find("button").removeClass("tutor-updating-message")}})}),l.ajaxSetup({data:tutor\_get\_nonce\_data()})}),jQuery.fn.serializeObject=function(){var t={},e=this.serializeArray();return jQuery.each(e,function(){t\[this.name\]?(t\[this.name\].push||(t\[this.name\]=\[t\[this.name\]\]),t\[this.name\].push(this.value||"")):t\[this.name\]=this.value||""}),t},window.tutor\_toast=function(t,e,o){var n=((window.\_tutorobject||{}).tutor\_url||"")+"assets/images/";jQuery(".tutor-toast-parent").length||jQuery("body").append('<div class="tutor-toast-parent"></div>');var a=jQuery(' <div> <div> <img src="'+{success:n+"icon-check.svg",error:n+"icon-cross.svg"}\[o\]+'"/> </div> <div> <div> <b>'+t+"</b> <span>"+e+'</span> </div> </div> <div> <i class="tutor-toast-close tutor-icon-line-cross"></i> </div> </div>');a.find(".tutor-toast-close").click(function(){a.remove()}),jQuery(".tutor-toast-parent").append(a),setTimeout(function(){a&&a.fadeOut("fast",function(){jQuery(this).remove()})},5e3)},window.disableAddoption=function(){function t(t){t.classList.contains("disabled")||t.classList.add("disabled")}function e(t){t.classList.contains("disabled")&&t.classList.remove("disabled")}var o=document.querySelector(".tutor\_select\_value\_holder").value,n=document.getElementById("tutor\_quiz\_question\_answers"),a=document.getElementById("tutor\_quiz\_question\_answer\_form"),i=document.querySelector(".add\_question\_answers\_option");("open\_ended"===o||"short\_answer"===o||("true\_false"===o||"fill\_in\_the\_blank"===o)&&(a.hasChildNodes()||n.hasChildNodes())?t:e)(i)}},896:()=>{window.jQuery(document).ready(function(o){var n=wp.i18n.\_\_;o(document).on("click",".tutor-copy-text",function(t){t.stopImmediatePropagation(),t.preventDefault();var e=o(this).data("text"),t=o("<input>");o("body").append(t),t.val(e).select(),document.execCommand("copy"),t.remove(),tutor\_toast(n("Copied!","tutor"),e,"success")})})}},n={};function a(t){var e=n\[t\];if(void 0!==e)return e.exports;e=n\[t\]={exports:{}};return o\[t\](e,e.exports,a),e.exports}(()=>{"use strict";a(896),a(623);jQuery(document).ready(function(u){var e,o,n,a,t=wp.i18n,s=t.\_\_;t.\_x,t.\_n,t.\_nx;function i(t,e){var o,n;1<t.originalEvent.touches.length||(t.preventDefault(),o=t.originalEvent.changedTouches\[0\],(n=document.createEvent("MouseEvents")).initMouseEvent(e,!0,!0,window,1,o.screenX,o.screenY,o.clientX,o.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(n))}jQuery().select2&&u(".tutor\_select2").select2({escapeMarkup:function(t){return t}}),(e=jQuery).support.touch="ontouchend"in document,e.support.touch&&(\_=e.ui.mouse.prototype,n=\_.\_mouseInit,a=\_.\_mouseDestroy,\_.\_touchStart=function(t){!o&&this.\_mouseCapture(t.originalEvent.changedTouches\[0\])&&(o=!0,this.\_touchMoved=!1,i(t,"mouseover"),i(t,"mousemove"),i(t,"mousedown"))},\_.\_touchMove=function(t){o&&(this.\_touchMoved=!0,i(t,"mousemove"))},\_.\_touchEnd=function(t){o&&(i(t,"mouseup"),i(t,"mouseout"),this.\_touchMoved||i(t,"click"),o=!1)},\_.\_mouseInit=function(){var t=this;t.element.bind({touchstart:e.proxy(t,"\_touchStart"),touchmove:e.proxy(t,"\_touchMove"),touchend:e.proxy(t,"\_touchEnd")}),n.call(t)},\_.\_mouseDestroy=function(){var t=this;t.element.unbind({touchstart:e.proxy(t,"\_touchStart"),touchmove:e.proxy(t,"\_touchMove"),touchend:e.proxy(t,"\_touchEnd")}),a.call(t)});var r={ajaxurl:window.\_tutorobject.ajaxurl,nonce\_key:window.\_tutorobject.nonce\_key,video\_data:function(){var t=u("#tutor\_video\_tracking\_information").val();return t?JSON.parse(t):{}},track\_player:function(){var t,o,e,n=this;"undefined"!=typeof Plyr&&(t=new Plyr("#tutorPlayer"),o=n.video\_data(),t.on("ready",function(t){var e=t.detail.plyr,t=o.best\_watch\_time;0<t&&e.duration>Math.round(t)&&(e.media.currentTime=t),n.sync\_time(e)}),e=0,t.on("timeupdate",function(t){t=t.detail.plyr;30<=e/4&&(n.sync\_time(t),e=0),e++}),t.on("ended",function(t){var e=n.video\_data(),t=t.detail.plyr;n.sync\_time(t,{is\_ended:!0}),e.autoload\_next\_course\_content&&n.autoload\_content()}))},sync\_time:function(t,e){var o=this.video\_data().post\_id,t={action:"sync\_video\_playback",currentTime:t.currentTime,duration:t.duration,post\_id:o};t\[this.nonce\_key\]=\_tutorobject\[this.nonce\_key\];o=t;e&&(o=Object.assign(t,e)),u.post(this.ajaxurl,o)},autoload\_content:function(){var t={action:"autoload\_next\_course\_content",post\_id:this.video\_data().post\_id};t\[this.nonce\_key\]=\_tutorobject\[this.nonce\_key\],u.post(this.ajaxurl,t).done(function(t){t.success&&t.data.next\_url&&(location.href=t.data.next\_url)})},init:function(){this.track\_player()}};function c(t){t.add(t.prevAll()).filter("i").addClass("tutor-icon-star-full").removeClass("tutor-icon-star-line"),t.nextAll().filter("i").removeClass("tutor-icon-star-full").addClass("tutor-icon-star-line")}u("#tutorPlayer").length&&r.init(),u(document).on("change keyup paste",".tutor\_user\_name",function(){u(this).val(u(this).val().toString().toLowerCase().replace(/\\s+/g,"-").replace(/\[^\\w\\-\]+/g,"").replace(/\\-\\-+/g,"-").replace(/^-+/,"").replace(/-+$/,""))}),u(document).on("mouseover",".tutor-star-rating-container .tutor-star-rating-group i",function(){c(u(this))}),u(document).on("click",".tutor-star-rating-container .tutor-star-rating-group i",function(){var t=u(this).attr("data-rating-value");u(this).closest(".tutor-star-rating-group").find('input\[name="tutor\_rating\_gen\_input"\]').val(t),c(u(this))}),u(document).on("mouseout",".tutor-star-rating-container .tutor-star-rating-group",function(){var t=u(this).find('input\[name="tutor\_rating\_gen\_input"\]').val(),e=parseInt(t),t=u(this).find('\[data-rating-value="'+e+'"\]');e&&t&&0<t.length?c(t):u(this).find("i").removeClass("tutor-icon-star-full").addClass("tutor-icon-star-line")}),u(document).on("click",".tutor\_submit\_review\_btn",function(t){t.preventDefault();var e=u(this),o=e.closest("form").find('input\[name="tutor\_rating\_gen\_input"\]').val(),n=(n=e.closest("form").find('textarea\[name="review"\]').val()).trim(),t=u('input\[name="tutor\_course\_id"\]').val();o&&0!=o&&n?n&&u.ajax({url:\_tutorobject.ajaxurl,type:"POST",data:{course\_id:t,rating:o,review:n,action:"tutor\_place\_rating"},beforeSend:function(){e.addClass("updating-icon")},success:function(t){var e=t.data.review\_id,t=t.data.review;u(".tutor-review-"+e+" .review-content").html(t),new window.tutor\_popup(u,"icon-rating",40).popup({title:s("Thank You for Rating This Course!","tutor"),description:s("Your rating will now be visible in the course page","tutor")}),setTimeout(function(){location.reload()},3e3)}}):alert(s("Rating and review required","tutor"))}).on("click",".tutor\_cancel\_review\_btn",function(){u(this).closest("form").hide()}),u(document).on("click",".write-course-review-link-btn",function(t){t.preventDefault(),u(this).siblings(".tutor-write-review-form").slideToggle()}),u(document).on("click",".tutor-ask-question-btn",function(t){t.preventDefault(),u(".tutor-add-question-wrap").slideToggle()}),u(document).on("click",".tutor\_question\_cancel",function(t){t.preventDefault(),u(".tutor-add-question-wrap").toggle()}),u(document).on("submit","#tutor-ask-question-form",function(t){t.preventDefault();var e=u(this),t=u(this).serializeObject();t.action="tutor\_ask\_question",u.ajax({url:\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.find(".tutor\_ask\_question\_btn").addClass("updating-icon")},success:function(t){t.success&&(u(".tutor-add-question-wrap").hide(),window.location.reload())},complete:function(){e.find(".tutor\_ask\_question\_btn").removeClass("updating-icon")}})}),u(document).on("submit",".tutor-add-answer-form",function(t){t.preventDefault();var e=u(this),t=u(this).serializeObject();t.action="tutor\_add\_answer",u.ajax({url:\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.find(".tutor\_add\_answer\_btn").addClass("updating-icon")},success:function(t){t.success&&window.location.reload()},complete:function(){e.find(".tutor\_add\_answer\_btn").removeClass("updating-icon")}})}),u(document).on("focus",".tutor\_add\_answer\_textarea",function(t){t.preventDefault();t=u(this).closest(".tutor\_add\_answer\_wrap").attr("data-question-id");wp.editor.initialize("tutor\_answer\_"+t,{tinymce:{wpautop:!0,toolbar1:"bold italic underline bullist strikethrough numlist blockquote alignleft aligncenter alignright undo redo link unlink spellchecker fullscreen"}})}),u(document).on("click",".tutor\_cancel\_wp\_editor",function(t){t.preventDefault(),u(this).closest(".tutor\_wp\_editor\_wrap").toggle(),u(this).closest(".tutor\_add\_answer\_wrap").find(".tutor\_wp\_editor\_show\_btn\_wrap").toggle();t=u(this).closest(".tutor\_add\_answer\_wrap").attr("data-question-id");wp.editor.remove("tutor\_answer\_"+t)}),u(document).on("click",".tutor\_wp\_editor\_show\_btn",function(t){t.preventDefault(),u(this).closest(".tutor\_add\_answer\_wrap").find(".tutor\_wp\_editor\_wrap").toggle(),u(this).closest(".tutor\_wp\_editor\_show\_btn\_wrap").toggle()});var l,d,p,m=u("#tutor-quiz-time-update"),\_=null;m.length&&(\_=JSON.parse(m.attr("data-attempt-settings")),0<(f=JSON.parse(m.attr("data-attempt-meta"))).time\_limit.time\_limit\_seconds?(l=new Date(\_.attempt\_started\_at).getTime()+1e3\*f.time\_limit.time\_limit\_seconds,d=new Date(f.date\_time\_now).getTime(),p=setInterval(function(){var a,t=l-d,e=Math.floor(t/864e5),o=Math.floor(t%864e5/36e5),n=Math.floor(t%36e5/6e4),i=Math.floor(t%6e4/1e3),r="";e&&(r+=e+"d "),o&&(r+=o+"h "),n&&(r+=n+"m "),i&&(r+=i+"s "),t<0&&(clearInterval(p),r="EXPIRED","autosubmit"===\_tutorobject.quiz\_options.quiz\_when\_time\_expires?u("form#tutor-answering-quiz").submit():"autoabandon"===\_tutorobject.quiz\_options.quiz\_when\_time\_expires&&(t=u("#tutor\_quiz\_id").val(),u("#tutor\_quiz\_remaining\_time\_secs").val(),t={quiz\_id:t,action:"tutor\_quiz\_timeout"},a=u("#tutor-quiz-time-expire-wrapper").attr("data-attempt-remaining"),u(".tutor-quiz-answer-next-btn, .tutor-quiz-submit-btn, .tutor-quiz-answer-previous-btn").prop("disabled",!0),u(".time-remaining span").css("color","#F44337"),u.ajax({url:\_tutorobject.ajaxurl,type:"POST",data:t,success:function(t){var e=u("#tutor-quiz-time-expire-wrapper").data("attempt-allowed"),o=u("#tutor-quiz-time-expire-wrapper").data("attempt-remaining"),n="#tutor-quiz-time-expire-wrapper .tutor-alert";u(n).addClass("show"),0<a?u("".concat(n," .text")).html(s("Your time limit for this quiz has expired, please reattempt the quiz. Attempts remaining: "+o+"/"+e,"tutor")):(u(n).addClass("tutor-alert-danger"),u("#tutor-start-quiz").hide(),u("".concat(n," .text")).html("".concat(s("Unfortunately, you are out of time and quiz attempts. ","tutor"))))},complete:function(){}}))),d+=1e3,m.html(r)},1e3)):m.closest(".time-remaining").remove());var f=u("#tutor-quiz-body form#tutor-start-quiz");function h(){jQuery().sortable&&(u(".tutor-quiz-answers-wrap").sortable({handle:".answer-sorting-bar",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){}}).disableSelection(),u(".quiz-draggable-rand-answers, .quiz-answer-matching-droppable").sortable({connectWith:".quiz-answer-matching-droppable",placeholder:"drop-hover"}).disableSelection())}function v(o){var t,e,n=!0,a=o.find(".quiz-answer-required");return a.length&&((t=a.find("input")).length&&("radio"===(e=t.attr("type"))?0==a.find('input\[type="radio"\]:checked').length&&(o.find(".answer-help-block").html('<p style="color: #dc3545">'.concat(s("Please select an option to answer","tutor"),"</p>")),n=!1):"checkbox"===e?0==a.find('input\[type="checkbox"\]:checked').length&&(o.find(".answer-help-block").html('<p style="color: #dc3545">'.concat(s("Please select at least one option to answer.","tutor"),"</p>")),n=!1):"text"===e&&t.each(function(t,e){u(e).val().trim().length||(o.find(".answer-help-block").html('<p style="color: #dc3545">'.concat(s("The answer for this question is required","tutor"),"</p>")),n=!1)})),a.find("textarea").length&&a.find("textarea").val().trim().length<1&&(o.find(".answer-help-block").html('<p style="color: #dc3545">'.concat(s("The answer for this question is required","tutor"),"</p>")),n=!1),(a=a.find(".quiz-answer-matching-droppable")).length&&a.each(function(t,e){u(e).find(".quiz-draggable-answer-item").length||(o.find(".answer-help-block").html('<p style="color: #dc3545">'.concat(s("Please match all the items","tutor"),"</p>")),n=!1)})),n}function g(o){var n=!1,a=JSON.parse(atob(window.tutor\_quiz\_context.split("").reverse().join("")));Array.isArray(a)||(a=\[\]);var t=o.attr("data-quiz-feedback-mode");u(".wrong-right-text").remove(),u(".quiz-answer-input-bottom").removeClass("wrong-answer right-answer");var i=!0,e=o.find("input"),r=o.find('input\[type="radio"\]:checked, input\[type="checkbox"\]:checked');return"retry"===t?(r.each(function(){var t=u(this),e=t.attr("type");"radio"!==e&&"checkbox"!==e||-1<a.indexOf(t.val())||(t.prop("checked")&&t.closest(".quiz-answer-input-bottom").addClass("wrong-answer").append('<span class="wrong-right-text"><i class="tutor-icon-line-cross"></i> '.concat(s("Incorrect, Please try again","tutor"),"</span>")),i=!1)}),e.each(function(){var t,e=u(this);"checkbox"===e.attr("type")&&(t=-1<a.indexOf(e.val()),e=e.is(":checked"),t&&!e&&(o.find(".answer-help-block").html('<p style="color: #dc3545">'.concat(s("More answer for this question is required","tutor"),"</p>")),i=!1))})):"reveal"===t&&(r.each(function(){var t=u(this);-1<a.indexOf(t.val())||(i=!1)}),e.each(function(){var t,e=u(this),o=e.attr("type");"radio"!==o&&"checkbox"!==o||(t=-1<a.indexOf(e.val()),o=e.is(":checked"),t?e.closest(".quiz-answer-input-bottom").addClass("right-answer").append('<span class="wrong-right-text"><i class="tutor-icon-checkbox-pen-outline"></i>'.concat(s("Correct Answer","tutor"),"</span>")):e.prop("checked")&&e.closest(".quiz-answer-input-bottom").addClass("wrong-answer"),t&&!o&&(e.attr("disabled","disabled"),n=!(i=!1)))})),n=i?!0:n}f.length&&"1"===\_tutorobject.quiz\_options.quiz\_auto\_start&&f.submit(),u(document).on("click",".quiz-manual-review-action",function(t){t.preventDefault();var e=u(this),o=e.attr("data-attempt-id"),n=e.attr("data-attempt-answer-id"),t=e.attr("data-mark-as");u.ajax({url:\_tutorobject.ajaxurl,type:"GET",data:{action:"review\_quiz\_answer",attempt\_id:o,attempt\_answer\_id:n,mark\_as:t},beforeSend:function(){e.find("i").addClass("updating-icon")},success:function(t){location.reload()},complete:function(){e.find("i").removeClass("updating-icon")}})}),u(".tooltip-btn").on("hover",function(t){u(this).toggleClass("active")}),u(".tutor-course-title h4 .toggle-information-icon").on("click",function(t){u(this).closest(".tutor-topics-in-single-lesson").find(".tutor-topics-summery").slideToggle(),t.stopPropagation()}),u(".tutor-course-topic.tutor-active").find(".tutor-course-lessons").slideDown(),u(".tutor-course-title").on("click",function(){var t=u(this).siblings(".tutor-course-lessons");u(this).closest(".tutor-course-topic").toggleClass("tutor-active"),t.slideToggle()}),u(document).on("click",".tutor-topics-title h3 .toggle-information-icon",function(t){u(this).closest(".tutor-topics-in-single-lesson").find(".tutor-topics-summery").slideToggle(),t.stopPropagation()}),u(document).on("click",".tutor-course-wishlist-btn",function(t){t.preventDefault();var e=u(this),t=e.attr("data-course-id");u.ajax({url:\_tutorobject.ajaxurl,type:"POST",data:{course\_id:t,action:"tutor\_course\_add\_to\_wishlist"},beforeSend:function(){e.addClass("updating-icon")},success:function(t){t.success?"added"===t.data.status?e.addClass("has-wish-listed"):e.removeClass("has-wish-listed"):window.location=t.data.redirect\_to},complete:function(){e.removeClass("updating-icon")}})}),\_tutorobject.enable\_lesson\_classic\_editor||(u(document).on("click",".tutor-single-lesson-a",function(t){t.preventDefault();var e=u(this),t=e.attr("data-lesson-id"),o=u("#tutor-single-entry-content");u.ajax({url:\_tutorobject.ajaxurl,type:"POST",data:{lesson\_id:t,action:"tutor\_render\_lesson\_content"},beforeSend:function(){var t=e.find(".lesson\_title").text();u("head title").text(t),window.history.pushState("obj",t,e.attr("href")),o.addClass("loading-lesson"),u(".tutor-single-lesson-items").removeClass("active"),e.closest(".tutor-single-lesson-items").addClass("active")},success:function(t){o.html(t.data.html),r.init(),u(".tutor-lesson-sidebar").css("display",""),window.dispatchEvent(new window.Event("tutor\_ajax\_lesson\_loaded"))},complete:function(){o.removeClass("loading-lesson")}})}),u(document).on("click",".sidebar-single-quiz-a",function(t){t.preventDefault();var e=u(this),t=e.attr("data-quiz-id"),o=e.find(".lesson\_title").text(),n=u("#tutor-single-entry-content");u.ajax({url:\_tutorobject.ajaxurl,type:"POST",data:{quiz\_id:t,action:"tutor\_render\_quiz\_content"},beforeSend:function(){u("head title").text(o),window.history.pushState("obj",o,e.attr("href")),n.addClass("loading-lesson"),u(".tutor-single-lesson-items").removeClass("active"),e.closest(".tutor-single-lesson-items").addClass("active")},success:function(t){n.html(t.data.html),h(),u(".tutor-lesson-sidebar").css("display","")},complete:function(){n.removeClass("loading-lesson")}})})),u(document).on("click",".tutor-lesson-sidebar-hide-bar",function(t){t.preventDefault(),u(".tutor-lesson-sidebar").toggle(),u("#tutor-single-entry-content").toggleClass("sidebar-hidden")}),u(".tutor-tabs-btn-group a").on("click touchstart",function(t){t.preventDefault();var e=u(this),t=e.attr("href");u(".tutor-lesson-sidebar-tab-item").hide(),u(t).show(),u(".tutor-tabs-btn-group a").removeClass("active"),e.addClass("active")}),h(),u(document).on("click",".tutor-quiz-answer-next-btn, .tutor-quiz-answer-previous-btn",function(t){var e,o;t.preventDefault(),u(this).hasClass("tutor-quiz-answer-previous-btn")?u(this).closest(".quiz-attempt-single-question").hide().prev().show():v(t=(e=u(this)).closest(".quiz-attempt-single-question"))&&g(t)&&(parseInt(e.closest(".quiz-attempt-single-question").attr("id").match(/\\d+/)\[0\],10),!(e=e.closest(".quiz-attempt-single-question").attr("data-next-question-id"))||(o=u(e))&&o.length&&("reveal"===t.attr("data-quiz-feedback-mode")?setTimeout(function(){u(".quiz-attempt-single-question").hide(),o.show()},800):(u(".quiz-attempt-single-question").hide(),o.show()),u(".tutor-quiz-questions-pagination").length&&(u(".tutor-quiz-question-paginate-item").removeClass("active"),u('.tutor-quiz-questions-pagination a\[href="'+e+'"\]').addClass("active"))))}),u(document).on("submit","#tutor-answering-quiz",function(t){var e=u(".quiz-attempt-single-question"),o=!0;e.length&&e.each(function(t,e){o=v(u(e)),o=g(u(e))}),o||t.preventDefault()}),u(document).on("click",".tutor-quiz-question-paginate-item",function(t){t.preventDefault();var e=u(this),t=u(e.attr("href"));u(".quiz-attempt-single-question").hide(),t.show(),u(".tutor-quiz-question-paginate-item").removeClass("active"),e.addClass("active")}),u(document).on("keyup","textarea.question\_type\_short\_answer, textarea.question\_type\_open\_ended",function(t){var e=u(this),o=e.val(),n=e.hasClass("question\_type\_short\_answer")?\_tutorobject.quiz\_options.short\_answer\_characters\_limit:\_tutorobject.quiz\_options.open\_ended\_answer\_characters\_limit,a=n-o.length;a<1&&(e.val(o.substr(0,n)),a=0),e.closest(".tutor-quiz-answers-wrap").find(".characters\_remaining").html(a)}),u(".quiz-draggable-rand-answers").length&&u(".quiz-draggable-rand-answers").each(function(){var t=u(this),e=t.height();t.css({height:e})}),u(document).on("submit click",".cart-required-login, .cart-required-login a, .cart-required-login form",function(t){t.preventDefault();t=u(this).data("login\_page\_url");t?window.location.assign(t):u(".tutor-cart-box-login-form").fadeIn(100)}),u(".tutor-popup-form-close, .login-overlay-close").on("click",function(){u(".tutor-cart-box-login-form").fadeOut(100)}),u(document).on("keyup",function(t){27===t.keyCode&&(u(".tutor-frontend-modal").hide(),u(".tutor-cart-box-login-form").fadeOut(100))}),!u.fn.ShareLink||(f=u(".tutor-social-share-wrap")).length&&(x=JSON.parse(f.attr("data-social-share-config")),u(".tutor\_share").ShareLink({title:x.title,text:x.text,image:x.image,class\_prefix:"s\_",width:640,height:480})),jQuery.datepicker&&u(".tutor\_report\_datepicker").datepicker({dateFormat:"yy-mm-dd"}),u(".withdraw-method-select-input").on("change",function(t){var e=u(this);u(".withdraw-method-form").hide(),u("#withdraw-method-form-"+e.closest(".withdraw-method-select").attr("data-withdraw-method")).show()}),u(".withdraw-method-select-input").each(function(){var t=u(this);t.is(":checked")&&(u(".withdraw-method-form").hide(),u("#withdraw-method-form-"+t.closest(".withdraw-method-select").attr("data-withdraw-method")).show())}),u(document).on("submit","#tutor-withdraw-account-set-form",function(t){t.preventDefault();var e=u(this),o=e.find(".tutor\_set\_withdraw\_account\_btn"),t=e.serializeObject();u.ajax({url:\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.find(".tutor-success-msg").remove(),o.addClass("updating-icon")},success:function(t){t.success&&(t='<div class="tutor-success-msg" style="display: none;"><i class="tutor-icon-mark"></i> '+t.data.msg+" </div>",o.closest(".withdraw-account-save-btn-wrap").append(t),e.find(".tutor-success-msg").length&&e.find(".tutor-success-msg").slideDown(),setTimeout(function(){e.find(".tutor-success-msg").slideUp()},5e3))},complete:function(){o.removeClass("updating-icon")}})}),u(document).on("click",".open-withdraw-form-btn, .close-withdraw-form-btn",function(t){t.preventDefault(),"yes"!=u(this).data("reload")?(u(".tutor-earning-withdraw-form-wrap").toggle().find('\[name="tutor\_withdraw\_amount"\]').val(""),u(".tutor-withdrawal-pop-up-success").hide().next().show(),u("html, body").css("overflow",u(".tutor-earning-withdraw-form-wrap").is(":visible")?"hidden":"auto")):window.location.reload()}),u(document).on("submit","#tutor-earning-withdraw-form",function(t){t.preventDefault();var e=u(this),o=u("#tutor-earning-withdraw-btn"),n=u(".tutor-withdraw-form-response"),t=e.serializeObject();u.ajax({url:\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.find(".tutor-success-msg").remove(),o.addClass("updating-icon")},success:function(t){t.success?("undefined"!==t.data.available\_balance&&u(".withdraw-balance-col .available\_balance").html(t.data.available\_balance),u(".tutor-withdrawal-pop-up-success").show().next().hide()):(t='<div class="tutor-error-msg inline-image-text is-inline-block"> <img src="'+window.\_tutorobject.tutor\_url+'assets/images/icon-cross.svg"/> <div> <b>Error</b><br/> <span>'+t.data.msg+"</span> </div> </div>",n.html(t),setTimeout(function(){n.html("")},5e3))},complete:function(){o.removeClass("updating-icon")}})});var w=u(".tutor-frontend-modal");function b(){jQuery().sortable&&(u(".course-contents").sortable({handle:".course-move-handle",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){y()}}),u(".tutor-lessons:not(.drop-lessons)").sortable({connectWith:".tutor-lessons",items:"div.course-content-item",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){y()}}))}function y(){var i={};u(".tutor-topics-wrap").each(function(t,e){var o=u(this),n=parseInt(o.attr("id").match(/\\d+/)\[0\],10),a={};o.find(".course-content-item").each(function(t,e){var o=u(this),o=parseInt(o.attr("id").match(/\\d+/)\[0\],10);a\[t\]=o}),i\[t\]={topic\_id:n,lesson\_ids:a}}),u("#tutor\_topics\_lessons\_sorting").val(JSON.stringify(i))}function q(){u("ul.tutor-bp-enrolled-course-list").each(function(){var t,e=u(this),o=e.find(" > li");3<o.length&&(t=o.length-3,o.each(function(t,e){var o=u(this);3<=t&&o.hide()}),t='<a href="javascript:;" class="tutor\_bp\_plus\_courses"><strong>+'+t+" More </strong></a> Courses",e.closest(".tutor-bp-enrolled-courses-wrap").find(".thread-participant-enrolled-info").html(t)),e.show()})}w.each(function(){var e=u(this),t=u(this).data("popup-rel");u('\[href="'+t+'"\]').on("click",function(t){e.fadeIn(),t.preventDefault()})}),u(document).on("click",".tm-close, .tutor-frontend-modal-overlay, .tutor-modal-btn-cancel",function(){w.fadeOut()}),u(document).on("click",".tutor-dashboard-element-delete-btn",function(t){t.preventDefault();t=u(this).attr("data-id");u("#tutor-dashboard-delete-element-id").val(t)}),u(document).on("submit","#tutor-dashboard-delete-element-form",function(t){t.preventDefault();var e=u("#tutor-dashboard-delete-element-id").val(),o=u(".tutor-modal-element-delete-btn"),t=u(this).serializeObject();u.ajax({url:\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){o.addClass("updating-icon")},success:function(t){t.success&&u("#tutor-dashboard-"+t.data.element+"-"+e).remove()},complete:function(){o.removeClass("updating-icon"),u(".tutor-frontend-modal").hide()}})}),u("#tutor\_profile\_photo\_id").val()||u(".tutor-profile-photo-delete-btn").hide(),u(document).on("click",".tutor-profile-photo-delete-btn",function(){return u(".tutor-profile-photo-upload-wrap").find("img").attr("src",\_tutorobject.placeholder\_img\_src),u("#tutor\_profile\_photo\_id").val(""),u(".tutor-profile-photo-delete-btn").hide(),u.ajax({url:\_tutorobject.ajaxurl,type:"POST",data:{action:"tutor\_profile\_photo\_remove"}}),!1}),u(document).on("submit","#tutor\_assignment\_start\_form",function(t){t.preventDefault();t=u(this).serializeObject();t.action="tutor\_start\_assignment",u.ajax({url:\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){u("#tutor\_assignment\_start\_btn").addClass("updating-icon")},success:function(t){t.success&&location.reload()},complete:function(){u("#tutor\_assignment\_start\_btn").removeClass("updating-icon")}})}),u(document).on("submit","#tutor\_assignment\_submit\_form",function(t){u('textarea\[name="assignment\_answer"\]').val().trim().length<1&&(u("#form\_validation\_response").html('<div class="tutor-error-msg">'+s("Assignment answer can not be empty","tutor")+"</div>"),t.preventDefault())}),u(document).on("click",".video\_source\_upload\_wrap\_html5 .video\_upload\_btn",function(t){t.preventDefault();var e,o=u(this);e||(e=wp.media({title:s("Select / Upload Media Of Your Chosen Persuasion","tutor"),button:{text:s("Use media","tutor")},library:{type:"video"},multiple:!1})).on("select",function(){var t=e.state().get("selection").first().toJSON();o.closest(".video\_source\_upload\_wrap\_html5").find("span.video\_media\_id").data("video\_url",t.url).text(t.id).trigger("paste").closest("p").show(),o.closest(".video\_source\_upload\_wrap\_html5").find("input").val(t.id)}),e.open()}),b(),u(document).on("click",".update\_lesson\_modal\_btn",function(t){t.preventDefault();var e=u(this),o=tinyMCE.get("tutor\_lesson\_modal\_editor"),t=o?o.getContent():u("#"+inputid).val(),o=u(this).closest("form").serializeObject();o.lesson\_content=t,u.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:o,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success?(u("#tutor-course-content-wrap").html(t.data.course\_contents),b(),u(".tutor-lesson-modal-wrap").removeClass("show"),tutor\_toast(s("Done","tutor"),e.data("toast\_success\_message"),"success")):tutor\_toast(s("Failed","tutor"),s("Lesson Update Failed","tutor"),"error")},error:function(){tutor\_toast(s("Failed","tutor"),s("Lesson Update Failed","tutor"),"error")},complete:function(){e.removeClass("tutor-updating-message")}})}),u(document).on("click","a.tutor-delete-attachment",function(t){t.preventDefault(),u(this).closest(".tutor-added-attachment").remove()}),u(document).on("click",".tutorUploadAttachmentBtn",function(t){t.preventDefault();var n,a=u(this);n||(n=wp.media({title:s("Select / Upload Media Of Your Chosen Persuasion","tutor"),button:{text:s("Use media","tutor")},multiple:!0})).on("select",function(){var t=n.state().get("selection").toJSON();if(t.length)for(var e=0;e<t.length;e++){var o=t\[e\],o='<div class="tutor-added-attachment"><i class="tutor-icon-archive"></i><a href="javascript:;" class="tutor-delete-attachment tutor-icon-line-cross"></a> <span> <a href="'+o.url+'">'+o.filename+'</a> </span> <input type="hidden" name="tutor\_attachments\[\]" value="'+o.id+'"></div>';a.closest(".tutor-lesson-attachments-metabox").find(".tutor-added-attachments-wrap").append(o)}}),n.open()}),u("form").on("change",".tutor-assignment-file-upload",function(){u(this).siblings("label").find("span").html(u(this).val().replace(/.\*(\\/|\\\\)/,""))}),u(document).on("click",".tutor-topics-in-single-lesson .tutor-topics-title h3, .tutor-single-lesson-topic-toggle",function(t){var e=u(this).closest(".tutor-topics-in-single-lesson");e.toggleClass("tutor-topic-active"),e.find(".tutor-lessons-under-topic").slideToggle()}),u(".tutor-single-lesson-items.active").closest(".tutor-lessons-under-topic").show(),u(".tutor-single-lesson-items.active").closest(".tutor-topics-in-single-lesson").addClass("tutor-topic-active"),u(".tutor-course-lesson.active").closest(".tutor-lessons-under-topic").show(),u(document).on("click",".tutor-create-assignments-btn",function(t){t.preventDefault();var e=u(this),o=u(this).attr("data-topic-id"),n=u("#post\_ID").val();u.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{topic\_id:o,course\_id:n,action:"tutor\_load\_assignments\_builder\_modal"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){u(".tutor-lesson-modal-wrap .modal-container").html(t.data.output),u(".tutor-lesson-modal-wrap").attr("data-topic-id",o).addClass("show"),u(document).trigger("assignment\_modal\_loaded",{topic\_id:o,course\_id:n}),tinymce.init(tinyMCEPreInit.mceInit.course\_description),tinymce.execCommand("mceRemoveEditor",!1,"tutor\_assignments\_modal\_editor"),tinyMCE.execCommand("mceAddEditor",!1,"tutor\_assignments\_modal\_editor")},complete:function(){quicktags({id:"tutor\_assignments\_modal\_editor"}),e.removeClass("tutor-updating-message")}})}),u(document).on("click",".open-tutor-assignment-modal",function(t){t.preventDefault();var e=u(this),o=e.attr("data-assignment-id"),n=e.attr("data-topic-id"),a=u("#post\_ID").val();u.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{assignment\_id:o,topic\_id:n,course\_id:a,action:"tutor\_load\_assignments\_builder\_modal"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){u(".tutor-lesson-modal-wrap .modal-container").html(t.data.output),u(".tutor-lesson-modal-wrap").attr({"data-assignment-id":o,"data-topic-id":n}).addClass("show"),u(document).trigger("assignment\_modal\_loaded",{assignment\_id:o,topic\_id:n,course\_id:a}),tinymce.init(tinyMCEPreInit.mceInit.course\_description),tinymce.execCommand("mceRemoveEditor",!1,"tutor\_assignments\_modal\_editor"),tinyMCE.execCommand("mceAddEditor",!1,"tutor\_assignments\_modal\_editor")},complete:function(){quicktags({id:"tutor\_assignments\_modal\_editor"}),e.removeClass("tutor-updating-message")}})}),u(document).on("click",".update\_assignment\_modal\_btn",function(t){t.preventDefault();var e=u(this),o=tinyMCE.get("tutor\_assignments\_modal\_editor"),t=o?o.getContent():u("#"+inputid).val(),o=u(this).closest("form").serializeObject();o.assignment\_content=t,u.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:o,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success?(u("#tutor-course-content-wrap").html(t.data.course\_contents),b(),u(".tutor-lesson-modal-wrap").removeClass("show"),tutor\_toast(s("Done","tutor"),e.data("toast\_success\_message"),"success")):tutor\_toast(s("Failed","tutor"),s("Assignment Update Failed","tutor"),"error")},error:function(){tutor\_toast(s("Failed","tutor"),s("Assignment Update Failed","tutor"),"error")},complete:function(){e.removeClass("tutor-updating-message")}})}),u(document).on("click",".add-assignment-attachments",function(t){t.preventDefault();var o,n=u(this);o||(o=wp.media({title:s("Select / Upload Media Of Your Chosen Persuasion","tutor"),button:{text:s("Use media","tutor")},multiple:!1})).on("select",function(){var t=o.state().get("selection").first().toJSON(),e='<div class="tutor-individual-attachment-file"><p class="attachment-file-name">'+t.filename+'</p><input type="hidden" name="tutor\_assignment\_attachments\[\]" value="'+t.id+'"><a href="javascript:;" class="remove-assignment-attachment-a text-muted"> × Remove</a></div>';u("#assignment-attached-file").append(e),n.closest(".video\_source\_upload\_wrap\_html5").find("input").val(t.id)}),o.open()}),u(document).on("click",".remove-assignment-attachment-a",function(t){t.preventDefault(),u(this).closest(".tutor-individual-attachment-file").remove()}),"tutor\_add\_course\_builder"===u('input\[name="tutor\_action"\]').val()&&setInterval(function(){var t=u("form#tutor-frontend-course-builder").serializeObject();t.tutor\_ajax\_action="tutor\_course\_builder\_draft\_save",u.ajax({type:"POST",data:t,beforeSend:function(){u(".tutor-dashboard-builder-draft-btn span").text(s("Saving...","tutor"))},success:function(t){},complete:function(){u(".tutor-dashboard-builder-draft-btn span").text(s("Save","tutor"))}})},3e4),u(".tutor-course-builder-section-title").on("click",function(){u(this).find("i").hasClass("tutor-icon-up")?u(this).find("i").removeClass("tutor-icon-up").addClass("tutor-icon-down"):u(this).find("i").removeClass("tutor-icon-down").addClass("tutor-icon-up"),u(this).next("div").slideToggle()}),u(document).on("click",".open-tutor-edit-review-modal",function(t){t.preventDefault();var e=u(this),o=e.attr("data-review-id"),n=\_tutorobject.nonce\_key,t={review\_id:o,action:"tutor\_load\_edit\_review\_modal"};t\[n\]=\_tutorobject\[n\],u.ajax({url:\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){void 0!==t.data&&(u(".tutor-edit-review-modal-wrap .modal-container").html(t.data.output),u(".tutor-edit-review-modal-wrap").attr("data-review-id",o).addClass("show"))},complete:function(){e.removeClass("tutor-updating-message")}})}),u(document).on("submit","#tutor\_update\_review\_form",function(t){t.preventDefault();var e=u(this),o=e.closest(".tutor-edit-review-modal-wrap ").attr("data-review-id"),t=\_tutorobject.nonce\_key,o={review\_id:o,rating:e.find('input\[name="tutor\_rating\_gen\_input"\]').val(),review:e.find('textarea\[name="review"\]').val().trim(),action:"tutor\_update\_review\_modal"};o\[t\]=\_tutorobject\[t\],u.ajax({url:\_tutorobject.ajaxurl,type:"POST",data:o,beforeSend:function(){e.find('button\[type="submit"\]').addClass("tutor-updating-message")},success:function(t){t.success&&(u(".tutor-edit-review-modal-wrap").removeClass("show"),location.reload(!0))},complete:function(){e.find('button\[type="submit"\]').removeClass("tutor-updating-message")}})}),u(document).on("click","#tutor\_profile\_photo\_button",function(t){t.preventDefault(),u("#tutor\_profile\_photo\_file").trigger("click")}),u(document).on("change","#tutor\_profile\_photo\_file",function(t){t.preventDefault();this.files&&this.files\[0\]&&((t=new FileReader).onload=function(t){u(".tutor-profile-photo-upload-wrap").find("img").attr("src",t.target.result)},t.readAsDataURL(this.files\[0\]))}),u(document).on("click",".thread-content .subject",function(t){var e=u(this),o=parseInt(e.closest(".thread-content").attr("data-thread-id")),e=\_tutorobject.nonce\_key,o={thread\_id:o,action:"tutor\_bp\_retrieve\_user\_records\_for\_thread"};o\[e\]=\_tutorobject\[e\],u.ajax({type:"POST",url:window.\_tutorobject.ajaxurl,data:o,beforeSend:function(){u("#tutor-bp-thread-wrap").html("")},success:function(t){t.success&&(u("#tutor-bp-thread-wrap").html(t.data.thread\_head\_html),q())}})}),q(),u(document).on("click","a.tutor\_bp\_plus\_courses",function(t){t.preventDefault();t=u(this);t.closest(".tutor-bp-enrolled-courses-wrap").find(".tutor-bp-enrolled-course-list li").show(),t.closest(".thread-participant-enrolled-info").html("")}),u(".tutor-dropbtn").click(function(){u(this).parent().find(".tutor-dropdown-content").slideToggle(100)}),u(document).on("click",function(t){var e=u(".tutor-dropdown"),o=e.find(".tutor-dropdown-content");e.is(t.target)||0!==e.has(t.target).length||o.slideUp(100)}),u(document).on("submit",".tutor-login-form-wrap #loginform",function(t){t.preventDefault();var t=u(this),e=u(".tutor-login-form-wrap"),t=t.serializeObject();t.action="tutor\_user\_login",u.ajax({url:\_tutorobject.ajaxurl,type:"POST",data:t,success:function(t){t.success?(location.assign(t.data.redirect),location.reload()):(t=t.data||s("Invalid username or password!","tutor"),e.find(".tutor-alert").length?e.find(".tutor-alert").html(t):e.prepend('<div class="tutor-alert tutor-alert-warning">'+t+"</div>"))}})});var j,x=u('.tutor-frontend-builder-course-price \[name="tutor\_course\_price\_type"\]');0==x.length?u("#\_tutor\_is\_course\_public\_meta\_checkbox").show():x.change(function(){var t;u(this).prop("checked")&&(t="paid"==u(this).val()?"hide":"show",u("#\_tutor\_is\_course\_public\_meta\_checkbox")\[t\]())}).trigger("change"),(j=jQuery).fn.tutor\_tooltip=function(){return this.on("mouseenter click",".tooltip",function(t){t.stopPropagation(),j(this).removeClass("isVisible")}).on("mouseenter focus",":has(>.tooltip)",function(t){j(this).prop("disabled")||j(this).find(".tooltip").addClass("isVisible")}).on("mouseleave blur keydown",":has(>.tooltip)",function(t){("keydown"!==t.type||27===t.which)&&j(this).find(".tooltip").removeClass("isVisible")}),this},jQuery(".tutor-tooltip-inside").tutor\_tooltip();var k=u(".tutor-course-filter-container form"),z=u(".tutor-course-filter-loop-container"),C={};k.on("submit",function(t){t.preventDefault()}).find("input").change(function(t){var e=Object.assign(k.serializeObject(),C);e.action="tutor\_course\_filter\_ajax",z.html('<center><img src="'+window.\_tutorobject.loading\_icon\_url+'"/></center>'),u(this).closest("form").find(".tutor-clear-all-filter").show(),u.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:e,success:function(t){z.html(t).find(".tutor-pagination-wrap a").each(function(){u(this).attr("data-href",u(this).attr("href")).attr("href","#")})}})}),z.on("click",".tutor-pagination-wrap a",function(t){var e=u(this).data("href")||u(this).attr("href");!e||(e=(e=new URL(e)).searchParams.get("paged"))&&(t.preventDefault(),C.page=e,k.find("input:first").trigger("change"))}),z.on("change",'select\[name="tutor\_course\_filter"\]',function(){C.tutor\_course\_filter=u(this).val(),k.find("input:first").trigger("change")});x=u(".tutor-course-loop");0<x.length&&("yes"===window.sessionStorage.getItem("tutor\_refresh\_archive")&&window.location.reload(),window.sessionStorage.removeItem("tutor\_refresh\_archive"),x.on("click",".tutor-loop-cart-btn-wrap",function(){window.sessionStorage.setItem("tutor\_refresh\_archive","yes")}));x=u("#tutor\_profile\_cover\_photo\_editor");0<x.length&&new function(n){this.dialogue\_box=n.find("#tutor\_photo\_dialogue\_box"),this.open\_dialogue\_box=function(t){this.dialogue\_box.attr("name",t),this.dialogue\_box.trigger("click")},this.validate\_image=function(t){return!0},this.upload\_selected\_image=function(t,e){var o,n,a;e&&this.validate\_image(e)&&(o=tutor\_get\_nonce\_data(!0),(n=this).toggle\_loader(t,!0),(a=new FormData).append("action","tutor\_user\_photo\_upload"),a.append("photo\_type",t),a.append("photo\_file",e,e.name),a.append(o.key,o.value),u.ajax({url:window.\_tutorobject.ajaxurl,data:a,type:"POST",processData:!1,contentType:!1,error:n.error\_alert,complete:function(){n.toggle\_loader(t,!1)}}))},this.accept\_upload\_image=function(t,e){var o=e.currentTarget.files\[0\]||null;t.update\_preview(e.currentTarget.name,o),t.upload\_selected\_image(e.currentTarget.name,o),u(e.currentTarget).val("")},this.delete\_image=function(t){var e=this;e.toggle\_loader(t,!0),u.ajax({url:window.\_tutorobject.ajaxurl,data:{action:"tutor\_user\_photo\_remove",photo\_type:t},type:"POST",error:e.error\_alert,complete:function(){e.toggle\_loader(t,!1)}})},this.update\_preview=function(t,e){var o=n.find("cover\_photo"==t?"#tutor\_cover\_area":"#tutor\_profile\_area");if(!e)return o.css("background-image","url("+o.data("fallback")+")"),void this.delete\_image(t);t=new FileReader;t.onload=function(t){o.css("background-image","url("+t.target.result+")")},t.readAsDataURL(e)},this.toggle\_profile\_pic\_action=function(t){n\[void 0===t?"toggleClass":t?"addClass":"removeClass"\]("pop-up-opened")},this.error\_alert=function(){alert("Something Went Wrong.")},this.toggle\_loader=function(t,e){n.find("#tutor\_photo\_meta\_area .loader-area").css("display",e?"block":"none")},this.initialize=function(){var e=this;this.dialogue\_box.change(function(t){e.accept\_upload\_image(e,t)}),n.find("#tutor\_profile\_area .tutor\_overlay, #tutor\_pp\_option>div:last-child").click(function(){e.toggle\_profile\_pic\_action()}),n.find(".tutor\_cover\_uploader").click(function(){e.open\_dialogue\_box("cover\_photo")}),n.find(".tutor\_pp\_uploader").click(function(){e.open\_dialogue\_box("profile\_photo")}),n.find(".tutor\_cover\_deleter").click(function(){e.update\_preview("cover\_photo",null)}),n.find(".tutor\_pp\_deleter").click(function(){e.update\_preview("profile\_photo",null)})}}(x).initialize(),u(".tutor-instructor-filter").each(function(){var e,r=u(this),s={};function n(t,e,o){var n=r.find(".filter-result-container"),a=n.html(),i=r.data();i.current\_page=o||1,t?s\[t\]=e:s={},s.attributes=i,s.action="load\_filtered\_instructor",n.html('<div style="text-align:center"><img src="'+window.\_tutorobject.loading\_icon\_url+'"/></div>'),u.ajax({url:window.\_tutorobject.ajaxurl,data:s,type:"POST",success:function(t){n.html(t)},error:function(){n.html(a),tutor\_toast("Failed","Request Error","error")}})}r.on("change",'.course-category-filter \[type="checkbox"\]',function(){var e={};u(this).closest(".course-category-filter").find("input:checked").each(function(){e\[u(this).val()\]=u(this).parent().text()});var o=r.find(".selected-cate-list").empty(),t=Object.keys(e);t.forEach(function(t){o.append("<span>"+e\[t\]+' <span class="tutor-icon-line-cross" data-cat\_id="'+t+'"></span></span>')}),t.length&&o.append('<span data-cat\_id="0">Clear All</span>'),n(u(this).attr("name"),t)}).on("click",".selected-cate-list \[data-cat\_id\]",function(){var t=u(this).data("cat\_id"),e=r.find('.mobile-filter-popup \[type="checkbox"\]');(e=t?e.filter('\[value="'+t+'"\]'):e).prop("checked",!1).trigger("change")}).on("input",'.filter-pc \[name="keyword"\]',function(){var t=u(this).val();e&&window.clearTimeout(e),e=window.setTimeout(function(){n("keyword",t),e=null},500)}).on("click","\[data-page\_number\]",function(t){t.preventDefault(),n(null,null,u(this).data("page\_number"))}).on("click",".clear-instructor-filter",function(){var t=u(this).closest(".tutor-instructor-filter");t.find('input\[type="checkbox"\]').prop("checked",!1),t.find('\[name="keyword"\]').val(""),n()}).on("click",".mobile-filter-container i",function(){u(this).parent().next().addClass("is-opened")}).on("click",".mobile-filter-popup button",function(){u('.mobile-filter-popup \[type="checkbox"\]').trigger("change"),u(this).closest(".mobile-filter-popup").removeClass("is-opened")}).on("input",'.filter-mobile \[name="keyword"\]',function(){r.find('.filter-pc \[name="keyword"\]').val(u(this).val()).trigger("input")}).on("change",'.mobile-filter-popup \[type="checkbox"\]',function(t){var e,o;t.originalEvent||(e=u(this).attr("name"),o=u(this).val(),t=u(this).prop("checked"),r.find('.course-category-filter \[name="'+e+'"\]').filter('\[value="'+o+'"\]').prop("checked",t).trigger("change"))}).on("mousedown touchstart",".expand-instructor-filter",function(t){var e=u(window).height(),o=r.find(".mobile-filter-popup>div"),n=e-o.height(),a=((t.originalEvent.touches||\[\])\[0\]||t).clientY-n;r.on("mousemove touchmove",function(t){t=((t.originalEvent.touches||\[\])\[0\]||t).clientY,t=e-t+a;200<t&&t<=e&&o.css("height",t+"px")})}).on("mouseup touchend",function(){r.off("mousemove touchmove")}).on("click",".mobile-filter-popup>div",function(t){t.stopImmediatePropagation()}).on("click",".mobile-filter-popup",function(t){u(this).removeClass("is-opened")})}),u(".tutor-course-retake-button").click(function(t){t.preventDefault();var t=u(this),e=t.attr("href"),o=t.data("course\_id"),t={title:s("Override Previous Progress","tutor"),description:s("Before continue, please decide whether to keep progress or reset.","tutor"),buttons:{reset:{title:s("Reset Data","tutor"),class:"secondary",callback:function(){var t=n.find(".tutor-button-secondary");t.prop("disabled",!0).append('<img style="margin-left: 7px" src="'+window.\_tutorobject.loading\_icon\_url+'"/>'),u.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{action:"tutor\_reset\_course\_progress",course\_id:o},success:function(t){t.success?window.location.assign(t.data.redirect\_to):alert((t.data||{}).message||s("Something went wrong","tutor"))},complete:function(){t.prop("disabled",!1).find("img").remove()}})}},keep:{title:s("Keep Data","tutor"),class:"primary",callback:function(){window.location.assign(e)}}}},n=new window.tutor\_popup(u,"icon-gear",40).popup(t)}),document.body.addEventListener("click",function(t){var e,o=t.target,n=o.tagName,a=o.parentElement.tagName;0<m.length&&"EXPIRED"!=m.html()&&("A"!==n&&"A"!==a||(t.preventDefault(),t.stopImmediatePropagation(),t={title:s("Abandon Quiz?","tutor"),description:s("Do you want to abandon this quiz? The quiz will be submitted partially up to this question if you leave this page.","tutor"),buttons:{keep:{title:s("Yes, leave quiz","tutor"),id:"leave",class:"secondary",callback:function(){var t=u("form#tutor-answering-quiz").serialize()+"&action=tutor\_quiz\_abandon";u.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){document.querySelector("#tutor-popup-leave").innerHTML=s("Leaving...","tutor")},success:function(t){t.success?null==o.href?location.href=o.parentElement.href:location.href=o.href:alert(s("Something went wrong","tutor"))},error:function(){alert(s("Something went wrong","tutor")),e.remove()}})}},reset:{title:s("Stay here","tutor"),id:"reset",class:"primary",callback:function(){e.remove()}}}},e=new window.tutor\_popup(u,"",40).popup(t)))}),u("body").on("submit","form#tutor-start-quiz",function(){u(this).find("button").prop("disabled",!0)})})})()})();
tutor/tags/1.9.11/assets/js/tutor-setup.js
r2610239
r2615802
1
(()=>{var o={623:()=>{function g(t){return(g="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})(t)}function q(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var o=null==t?null:"undefined"!=typeof Symbol&&t\[Symbol.iterator\]||t\["@@iterator"\];if(null!=o){var a,n,i=\[\],r=!0,s=!1;try{for(o=o.call(t);!(r=(a=o.next()).done)&&(i.push(a.value),!e||i.length!==e);r=!0);}catch(t){s=!0,n=t}finally{try{r||null==o.return||o.return()}finally{if(s)throw n}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return a(t,e);var o=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(o="Object"===o&&t.constructor?t.constructor.name:o)||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?a(t,e):void 0}}(t,e)||function(){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 a(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,a=new Array(e);o<e;o++)a\[o\]=t\[o\];return a}window.tutor\_get\_nonce\_data=function(t){var e=window.\_tutorobject||{},o=e.nonce\_key||"",e=e\[o\]||"";return t?{key:o,value:e}:(t=e,(e=o)in(o={})?Object.defineProperty(o,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):o\[e\]=t,o)},window.tutor\_popup=function(r,o,a){var s,u=this;return this.popup\_wrapper=function(t){var e=""===o?"":'<img class="tutor-pop-icon" src="'+window.\_tutorobject.tutor\_url+"assets/images/"+o+'.svg"/>';return"<"+t+' class="tutor-component-popup-container"> <div class="tutor-component-popup-'+a+'"> <div class="tutor-component-content-container">'+e+'</div> <div class="tutor-component-button-container"></div> </div> </'+t+">"},this.popup=function(o){var t=o.title?"<h3>"+o.title+"</h3>":"",e=o.description?"<p>"+o.description+"</p>":"",a=Object.keys(o.buttons||{}).map(function(t){var e=o.buttons\[t\],t=e.id?"tutor-popup-"+e.id:"";return r('<button id="'+t+'" class="tutor-button tutor-button-'+e.class+'">'+e.title+"</button>").click(e.callback)}),n=(s=r(u.popup\_wrapper(o.wrapper\_tag||"div"))).find(".tutor-component-content-container");n.append(t),o.after\_title&&n.append(o.after\_title),n.append(e),o.after\_description&&n.append(o.after\_description),s.click(function(){r(this).remove()}).children().click(function(t){t.stopPropagation()});for(var i=0;i<a.length;i++)s.find(".tutor-component-button-container").append(a\[i\]);return r("body").append(s),s},{popup:this.popup}},window.tutorDotLoader=function(t){return' \\n <div class="tutor-dot-loader '.concat(t||"",'">\\n <span class="dot dot-1"></span>\\n <span class="dot dot-2"></span>\\n <span class="dot dot-3"></span>\\n <span class="dot dot-4"></span>\\n </div>')},window.tutor\_date\_picker=function(){var t;jQuery.datepicker&&(t=\_tutorobject.wp\_date\_format||"yy-mm-dd",$(".tutor\_date\_picker").datepicker({dateFormat:t}))},jQuery(document).ready(function(l){"use strict";var t=wp.i18n,n=t.\_\_;t.\_x,t.\_n,t.\_nx;function o(){var t;jQuery.datepicker&&(t=\_tutorobject.wp\_date\_format||"yy-mm-dd",l(".tutor\_date\_picker").datepicker({dateFormat:t})),l(document).on("keydown",".hasDatepicker, .tutor\_date\_picker",function(t){8!==t.keyCode&&t.preventDefault()})}function s(){l(".tutor-field-slider").each(function(){var t=l(this),o=t.closest(".tutor-field-type-slider").find('input\[type="hidden"\]'),a=t.closest(".tutor-field-type-slider").find(".tutor-field-type-slider-value"),e=parseFloat(t.closest(".tutor-field-type-slider").attr("data-min")),n=parseFloat(t.closest(".tutor-field-type-slider").attr("data-max"));t.slider({range:"max",min:e,max:n,value:o.val(),slide:function(t,e){a.text(e.value),o.val(e.value)}})})}function e(t){var e=t.element;return l('<span><i class="tutor-icon-'+l(e).data("icon")+'"></i> '+t.text+"</span>")}function i(){jQuery().sortable&&(l(".course-contents").sortable({handle:".course-move-handle",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){a()}}),l(".tutor-lessons:not(.drop-lessons)").sortable({connectWith:".tutor-lessons",items:"div.course-content-item",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){a()}}))}function a(){var i={};l(".tutor-topics-wrap").each(function(t,e){var o=l(this),a=parseInt(o.attr("id").match(/\\d+/)\[0\],10),n={};o.find(".course-content-item").each(function(t,e){var o=l(this),o=parseInt(o.attr("id").match(/\\d+/)\[0\],10);n\[t\]=o}),i\[t\]={topic\_id:a,lesson\_ids:n}}),l("#tutor\_topics\_lessons\_sorting").val(JSON.stringify(i))}function r(){return{init:function(){l(document).on("click",".tutor-select .tutor-select-option",function(t){t.preventDefault();var e=l(this);"true"!==e.attr("data-is-pro")?(t=e.html().trim(),e.closest(".tutor-select").find(".select-header .lead-option").html(t),e.closest(".tutor-select").find(".select-header input.tutor\_select\_value\_holder").val(e.attr("data-value")).trigger("change"),e.closest(".tutor-select-options").hide(),disableAddoption()):alert("Tutor Pro version required")}),l(document).on("click",".tutor-select .select-header",function(t){t.preventDefault(),l(this).closest(".tutor-select").find(".tutor-select-options").slideToggle()}),this.setValue(),this.hideOnOutSideClick()},setValue:function(){l(".tutor-select").each(function(){var t=l(this).find(".tutor-select-option");t.length&&t.each(function(){var t,e=l(this);"selected"===e.attr("data-selected")&&(t=e.html().trim(),e.closest(".tutor-select").find(".select-header .lead-option").html(t),e.closest(".tutor-select").find(".select-header input.tutor\_select\_value\_holder").val(e.attr("data-value")))})})},hideOnOutSideClick:function(){l(document).mouseup(function(t){var e=l(".tutor-select-options");l(t.target).closest(".select-header").length||e.is(t.target)||0!==e.has(t.target).length||e.hide()})},reInit:function(){this.setValue()}}}o(),s(),jQuery().select2&&l(".videosource\_select2").select2({width:"100%",templateSelection:e,templateResult:e,allowHtml:!0}),l(document).on("change",".tutor\_lesson\_video\_source",function(t){var e=l(this),o=l(this).val();o?l(".video-metabox-source-input-wrap").show():l(".video-metabox-source-input-wrap").hide(),e.closest(".tutor-option-field").find(".video-metabox-source-item").hide(),e.closest(".tutor-option-field").find(".video\_source\_wrap\_"+o).show()}),l(document).on("click",".tutor-course-thumbnail-upload-btn",function(t){t.preventDefault();var e,o=l(this);e||(e=wp.media({title:n("Select or Upload Media Of Your Chosen Persuasion","tutor"),button:{text:n("Use this media","tutor")},multiple:!1})).on("select",function(){var t=e.state().get("selection").first().toJSON();o.closest(".tutor-thumbnail-wrap").find(".thumbnail-img").attr("src",t.url),o.closest(".tutor-thumbnail-wrap").find("input").val(t.id),l(".tutor-course-thumbnail-delete-btn").show()}),e.open()}),l(document).on("click",".tutor-course-thumbnail-delete-btn",function(t){t.preventDefault();var e=l(this),t=e.closest(".tutor-thumbnail-wrap").find(".thumbnail-img").attr("data-placeholder-src");e.closest(".tutor-thumbnail-wrap").find(".thumbnail-img").attr("src",t),e.closest(".tutor-thumbnail-wrap").find("input").val(""),l(".tutor-course-thumbnail-delete-btn").hide()}),l(document).on("click",".create\_new\_topic\_btn",function(t){t.preventDefault(),l(".tutor-metabox-add-topics").slideToggle()}),l(document).on("click","#tutor-add-topic-btn",function(t){t.preventDefault();var e=l(this),t=e.closest(".tutor-metabox-add-topics").find("input, textarea").serializeObject();t.action="tutor\_add\_course\_topic",l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(l("#tutor-course-content-wrap").html(t.data.course\_contents),e.closest(".tutor-metabox-add-topics").find('input\[type!="hidden"\], textarea').each(function(){l(this).val("")}),e.closest(".tutor-metabox-add-topics").slideUp(),i())},complete:function(){e.removeClass("tutor-updating-message")}})}),l(".tutor-zoom-meeting-modal-wrap").on("submit",".tutor-meeting-modal-form",function(t){t.preventDefault();var e=l(this),o=e.serializeObject(),t=Intl.DateTimeFormat().resolvedOptions().timeZone;o.timezone=t;var a=e.find('button\[type="submit"\]');l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:o,beforeSend:function(){a.addClass("tutor-updating-message")},success:function(t){t.success?tutor\_toast(n("Success","tutor"),a.data("toast\_success\_message"),"success"):tutor\_toast(n("Update Error","tutor"),n("Meeting Update Failed","tutor"),"error"),t.course\_contents?(l(t.selector).html(t.course\_contents),"#tutor-course-content-wrap"==t.selector&&i(),l(".tutor-zoom-meeting-modal-wrap").removeClass("show")):location.reload()},complete:function(){a.removeClass("tutor-updating-message")}})}),l(document).on("change keyup",".course-edit-topic-title-input",function(t){t.preventDefault(),l(this).closest(".tutor-topics-top").find(".topic-inner-title").html(l(this).val())}),l(document).on("click",".topic-edit-icon",function(t){t.preventDefault(),l(this).closest(".tutor-topics-top").find(".tutor-topics-edit-form").slideToggle()}),l(document).on("click",".tutor-topics-edit-button",function(t){t.preventDefault();var e=l(this),o=e.closest(".tutor-topics-wrap"),t=parseInt(o.attr("id").match(/\\d+/)\[0\],10),a=e.closest(".tutor-topics-wrap").find('\[name="topic\_title"\]').val(),o=e.closest(".tutor-topics-wrap").find('\[name="topic\_summery"\]').val();l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{topic\_title:a,topic\_summery:o,topic\_id:t,action:"tutor\_update\_topic"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(e.closest(".tutor-topics-wrap").find("span.topic-inner-title").text(a),e.closest(".tutor-topics-wrap").find(".tutor-topics-edit-form").slideUp())},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click",".open-tutor-lesson-modal",function(t){t.preventDefault();var e=l(this),o=e.attr("data-lesson-id"),a=e.attr("data-topic-id"),n=l("#post\_ID").val();l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{lesson\_id:o,topic\_id:a,course\_id:n,action:"tutor\_load\_edit\_lesson\_modal"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){l(".tutor-lesson-modal-wrap .modal-container").html(t.data.output),l(".tutor-lesson-modal-wrap").attr({"data-lesson-id":o,"data-topic-id":a}).addClass("show");t=(t=tinyMCEPreInit.mceInit.tutor\_editor\_config)||tinyMCEPreInit.mceInit.course\_description;tinymce.init(t),tinymce.execCommand("mceRemoveEditor",!1,"tutor\_lesson\_modal\_editor"),tinyMCE.execCommand("mceAddEditor",!1,"tutor\_lesson\_modal\_editor"),l(document).trigger("lesson\_modal\_loaded",{lesson\_id:o,topic\_id:a,course\_id:n})},complete:function(){quicktags({id:"tutor\_lesson\_modal\_editor"}),e.removeClass("tutor-updating-message")}})}),l(document).on("click",".lesson\_thumbnail\_upload\_btn",function(t){t.preventDefault();var e,o=l(this);e||(e=wp.media({title:n("Select or Upload Media Of Your Chosen Persuasion","tutor"),button:{text:n("Use this media","tutor")},multiple:!1})).on("select",function(){var t=e.state().get("selection").first().toJSON();o.closest(".tutor-thumbnail-wrap").find(".thumbnail-img").html('<img src="'+t.url+'" alt="" /><a href="javascript:;" class="tutor-lesson-thumbnail-delete-btn"><i class="tutor-icon-line-cross"></i></a>'),o.closest(".tutor-thumbnail-wrap").find("input").val(t.id),l(".tutor-lesson-thumbnail-delete-btn").show()}),e.open()}),l(document).on("click",".tutor-lesson-thumbnail-delete-btn",function(t){t.preventDefault();t=l(this);t.closest(".tutor-thumbnail-wrap").find(".\_lesson\_thumbnail\_id").val(""),t.closest(".tutor-thumbnail-wrap").find(".thumbnail-img").html(""),t.hide()}),l(document).on("click",".tutor-delete-lesson-btn",function(t){var e;t.preventDefault(),confirm(n("Are you sure?","tutor"))&&(t=(e=l(this)).attr("data-lesson-id"),l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{lesson\_id:t,action:"tutor\_delete\_lesson\_by\_id"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&e.closest(".course-content-item").remove()},complete:function(){e.removeClass("tutor-updating-message")}}))}),l(document).on("click",".topic-delete-btn a",function(t){l(this).attr("data-topic-id");confirm(n("Are you sure to delete?","tutor"))||t.preventDefault()}),l(document).on("click",".tutor-expand-all-topic",function(t){t.preventDefault(),l(".tutor-topics-body").slideDown(),l(".expand-collapse-wrap i").removeClass("tutor-icon-light-down").addClass("tutor-icon-light-up")}),l(document).on("click",".tutor-collapse-all-topic",function(t){t.preventDefault(),l(".tutor-topics-body").slideUp(),l(".expand-collapse-wrap i").removeClass("tutor-icon-light-up").addClass("tutor-icon-light-down")}),l(document).on("click",".topic-inner-title, .expand-collapse-wrap",function(t){t.preventDefault();t=l(this);t.closest(".tutor-topics-wrap").find(".tutor-topics-body").slideToggle(),t.closest(".tutor-topics-wrap").find(".expand-collapse-wrap i").toggleClass("tutor-icon-light-down tutor-icon-light-up")}),l(document).on("click",".quiz-modal-btn-first-step",function(t){t.preventDefault();var e,o,a,n=l(this),i=l('\[name="quiz\_title"\]'),r=i.val(),t=l('\[name="quiz\_description"\]').val();r?(i.closest(".tutor-quiz-builder-group").find(".quiz\_form\_msg").html(""),e=l("#post\_ID").val(),o=n.closest(".tutor-modal-wrap").attr("quiz-for-post-id"),l("#tutor\_quiz\_builder\_quiz\_id").length?(a=l("#tutor\_quiz\_builder\_quiz\_id").val(),l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{quiz\_title:r,quiz\_description:t,quiz\_id:a,topic\_id:o,action:"tutor\_quiz\_builder\_quiz\_update"},beforeSend:function(){n.addClass("tutor-updating-message")},success:function(t){l("#tutor-quiz-"+a).html(t.data.output\_quiz\_row),l('#tutor-quiz-modal-tab-items-wrap a\[href="#quiz-builder-tab-questions"\]').trigger("click"),s()},complete:function(){n.removeClass("tutor-updating-message")}})):l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{quiz\_title:r,quiz\_description:t,course\_id:e,topic\_id:o,action:"tutor\_create\_quiz\_and\_load\_modal"},beforeSend:function(){n.addClass("tutor-updating-message")},success:function(t){l(".tutor-quiz-builder-modal-wrap .modal-container").html(t.data.output),l("#tutor-topics-"+o+" .tutor-lessons").append(t.data.output\_quiz\_row),l('#tutor-quiz-modal-tab-items-wrap a\[href="#quiz-builder-tab-questions"\]').trigger("click"),s(),l(document).trigger("quiz\_modal\_loaded",{topic\_id:o,course\_id:e})},complete:function(){n.removeClass("tutor-updating-message")}})):i.closest(".tutor-quiz-builder-group").find(".quiz\_form\_msg").html("Please enter quiz title")}),l(document).on("click",".open-tutor-quiz-modal",function(t){t.preventDefault();var e=l(this),o=e.attr("data-quiz-id"),a=e.attr("data-topic-id");null==a&&(a=e.closest(".tutor-modal-wrap").attr("quiz-for-post-id"));var n=l("#post\_ID").val();l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{quiz\_id:o,topic\_id:a,course\_id:n,action:"tutor\_load\_edit\_quiz\_modal"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){l(".tutor-quiz-builder-modal-wrap .modal-container").html(t.data.output),l(".tutor-quiz-builder-modal-wrap").attr("data-quiz-id",o).attr("quiz-for-post-id",a).addClass("show"),e.attr("data-back-to-tab")&&(t=e.attr("data-back-to-tab"),l('#tutor-quiz-modal-tab-items-wrap a\[href="'+t+'"\]').trigger("click")),l(document).trigger("quiz\_modal\_loaded",{quiz\_id:o,topic\_id:a,course\_id:n}),s(),jQuery().sortable&&l(".quiz-builder-questions-wrap").sortable({handle:".question-sorting",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){var a;a={},l(".quiz-builder-question-wrap").each(function(t,e){var o=l(this),o=parseInt(o.attr("data-question-id"),10);a\[t\]=o}),l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{sorted\_question\_ids:a,action:"tutor\_quiz\_question\_sorting"}})}})},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click",".quiz-modal-settings-save-btn",function(t){t.preventDefault();var e=l(this),o=l(".tutor-quiz-builder-modal-wrap").attr("data-quiz-id"),a=l("#current\_topic\_id\_for\_quiz").val(),t=l("#quiz-builder-tab-settings :input, #quiz-builder-tab-advanced-options :input").serializeObject();t.topic\_id=a,t.quiz\_id=o,t.action="tutor\_quiz\_modal\_update\_settings",l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&l("#tutor-course-content-wrap").html(t.data.course\_contents),t.success?tutor\_toast(n("Success","tutor"),e.data("toast\_success\_message"),"success"):tutor\_toast(n("Update Error","tutor"),n("Quiz Update Failed","tutor"),"error")},complete:function(){e.removeClass("tutor-updating-message"),"modal\_close"===e.attr("data-action")&&l(".tutor-modal-wrap").removeClass("show")}})}),l(document).on("click",".quiz-modal-question-save-btn",function(t){t.preventDefault();var e=l(this),o=l(".quiz\_question\_form :input").serializeObject();o.action="tutor\_quiz\_modal\_update\_question";t=e.closest(".tutor-modal-wrap").attr("quiz-for-post-id");o.topic\_id=t,l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:o,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success?e.closest(".tutor-quiz-builder-modal-contents").find(".open-tutor-quiz-modal").trigger("click"):void 0!==t.data&&l("#quiz\_validation\_msg\_wrap").html(t.data.validation\_msg)},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click",".modal-close-btn",function(t){t.preventDefault(),l(".tutor-modal-wrap").removeClass("show")}),l(document).on("keyup",function(t){27===t.keyCode&&l(".tutor-modal-wrap").removeClass("show")}),l(document).on("click",".tutor-add-quiz-btn",function(t){t.preventDefault();var e=l(this),o=l(this).closest(".tutor\_add\_quiz\_wrap").attr("data-add-quiz-under"),t=l(this).data("topic-id");l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{quiz\_for\_post\_id:o,current\_topic\_id:t,action:"tutor\_load\_quiz\_builder\_modal"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){l(".tutor-quiz-builder-modal-wrap .modal-container").html(t.data.output),l(".tutor-quiz-builder-modal-wrap").attr("quiz-for-post-id",o).addClass("show")},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click",".tutor-quiz-modal-tab-item",function(t){t.preventDefault();var e=l(this),o=l('\[name="quiz\_title"\]');o.val()?(o.closest(".tutor-quiz-builder-form-row").find(".quiz\_form\_msg").html(""),t=e.attr("href"),l(".quiz-builder-tab-container").hide(),l(t).show(),l("a.tutor-quiz-modal-tab-item").removeClass("active"),e.addClass("active")):o.closest(".tutor-quiz-builder-form-row").find(".quiz\_form\_msg").html('<p class="quiz-form-warning">Please save the quiz first</p>')}),l(document).on("click",".quiz-modal-btn-next, .quiz-modal-btn-back",function(t){t.preventDefault();t=l(this).attr("href");l('#tutor-quiz-modal-tab-items-wrap a\[href="'+t+'"\]').trigger("click")}),l(document).on("click",".quiz-modal-tab-navigation-btn.quiz-modal-btn-cancel",function(t){t.preventDefault(),l(".tutor-modal-wrap").removeClass("show")}),l(document).on("click",".tutor-quiz-open-question-form",function(t){t.preventDefault();var e=l(this),o=l("#tutor\_quiz\_builder\_quiz\_id").val(),a=l("#post\_ID").val(),t=e.attr("data-question-id"),a={quiz\_id:o,course\_id:a,action:"tutor\_quiz\_builder\_get\_question\_form"};t&&(a.question\_id=t),l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:a,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){l(".tutor-quiz-builder-modal-contents").html(t.data.output),r().reInit(),jQuery().sortable&&l("#tutor\_quiz\_question\_answers").sortable({handle:".tutor-quiz-answer-sort-icon",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){var a;a={},l(".tutor-quiz-answer-wrap").each(function(t,e){var o=l(this),o=parseInt(o.attr("data-answer-id"),10);a\[t\]=o}),l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{sorted\_answer\_ids:a,action:"tutor\_quiz\_answer\_sorting"}})}}),disableAddoption()},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click",".tutor-quiz-question-trash",function(t){t.preventDefault();var e=l(this),t=e.attr("data-question-id");l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{question\_id:t,action:"tutor\_quiz\_builder\_question\_delete"},beforeSend:function(){e.closest(".quiz-builder-question-wrap").remove()}})}),l(document).on("click",".add\_question\_answers\_option:not(.disabled)",function(t){t.preventDefault();var e=l(this),o=e.attr("data-question-id"),t=l(".quiz\_question\_form :input").serializeObject();t.question\_id=o,t.action="tutor\_quiz\_add\_question\_answers",l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){l("#tutor\_quiz\_question\_answer\_form").html(t.data.output),disableAddoption()},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click",".tutor-quiz-answer-edit a",function(t){t.preventDefault();var e=l(this),t=e.closest(".tutor-quiz-answer-wrap").attr("data-answer-id");l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{answer\_id:t,action:"tutor\_quiz\_edit\_question\_answer"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){l("#tutor\_quiz\_question\_answer\_form").html(t.data.output)},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click","#quiz-answer-save-btn",function(t){t.preventDefault();var e=l(this),t=l(".quiz\_question\_form :input").serializeObject();t.action="tutor\_save\_quiz\_answer\_options",l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){l("#quiz\_validation\_msg\_wrap").html(""),e.addClass("tutor-updating-message")},success:function(t){l("#tutor\_quiz\_question\_answers").trigger("refresh")},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click","#quiz-answer-edit-btn",function(t){t.preventDefault();var e=l(this),t=l(".quiz\_question\_form :input").serializeObject();t.action="tutor\_update\_quiz\_answer\_options",l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){l("#tutor\_quiz\_question\_answers").trigger("refresh")},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("change",".tutor-quiz-answers-mark-correct-wrap input",function(t){t.preventDefault();var e=l(this),o=e.val(),t=1;e.prop("checked")||(t=0),l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{answer\_id:o,inputValue:t,action:"tutor\_mark\_answer\_as\_correct"}})}),l(document).on("refresh","#tutor\_quiz\_question\_answers",function(t){t.preventDefault();var e=l(this),o=e.attr("data-question-id"),t=l(".tutor\_select\_value\_holder").val();l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{question\_id:o,question\_type:t,action:"tutor\_quiz\_builder\_get\_answers\_by\_question"},beforeSend:function(){e.addClass("tutor-updating-message"),l("#tutor\_quiz\_question\_answer\_form").html("")},success:function(t){t.success&&e.html(t.data.output)},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click",".tutor-quiz-answer-trash-wrap a.answer-trash-btn",function(t){t.preventDefault();var e=l(this),t=e.attr("data-answer-id");l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{answer\_id:t,action:"tutor\_quiz\_builder\_delete\_answer"},beforeSend:function(){e.closest(".tutor-quiz-answer-wrap").remove()}})}),l(document).on("click",".tutor-delete-quiz-btn",function(t){var e;t.preventDefault(),confirm(n("Are you sure?","tutor"))&&(t=(e=l(this)).attr("data-quiz-id"),l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{quiz\_id:t,action:"tutor\_delete\_quiz\_by\_id"},beforeSend:function(){e.closest(".course-content-item").remove()}}))}),r().init(),l(document).on("change","input.tutor\_select\_value\_holder",function(t){l(this);l(".add\_question\_answers\_option").trigger("click"),l("#tutor\_quiz\_question\_answers").trigger("refresh")}),l(document).on("click",".tutor-media-upload-btn",function(t){t.preventDefault();var e,o=l(this);e||(e=wp.media({title:n("Select or Upload Media Of Your Chosen Persuasion","tutor"),button:{text:n("Use this media","tutor")},multiple:!1})).on("select",function(){var t=e.state().get("selection").first().toJSON();o.html('<img src="'+t.url+'" alt="" />'),o.closest(".tutor-media-upload-wrap").find("input").val(t.id)}),e.open()}),l(document).on("click",".tutor-media-upload-trash",function(t){t.preventDefault();t=l(this);t.closest(".tutor-media-upload-wrap").find(".tutor-media-upload-btn").html('<i class="tutor-icon-image1"></i>'),t.closest(".tutor-media-upload-wrap").find("input").val("")});var u,c=(u=0,function(t,e){clearTimeout(u),u=setTimeout(t,e)});l(document).on("click",".tutor-add-instructor-btn",function(t){t.preventDefault();var e=l(this),t=l("#post\_ID").val();l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{course\_id:t,action:"tutor\_load\_instructors\_modal"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(l(".tutor-instructors-modal-wrap .modal-container").html(t.data.output),l(".tutor-instructors-modal-wrap").addClass("show"))},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("change keyup",".tutor-instructors-modal-wrap .tutor-modal-search-input",function(t){t.preventDefault();var o=l(this),a=l(".tutor-modal-wrap");c(function(){var t=o.val(),e=l("#post\_ID").val();l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{course\_id:e,search\_terms:t,action:"tutor\_load\_instructors\_modal"},beforeSend:function(){a.addClass("loading")},success:function(t){t.success&&(l(".tutor-instructors-modal-wrap .modal-container").html(t.data.output),l(".tutor-instructors-modal-wrap").addClass("show"))},complete:function(){a.removeClass("loading")}})},1e3)}),l(document).on("click",".add\_instructor\_to\_course\_btn",function(t){t.preventDefault();var e=l(this),o=l(".tutor-modal-wrap"),t=l("#post\_ID").val(),o=o.find("input").serializeObject();o.course\_id=t,o.action="tutor\_add\_instructors\_to\_course",l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:o,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(l(".tutor-course-available-instructors").html(t.data.output),l(".tutor-modal-wrap").removeClass("show"))},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click",".tutor-instructor-delete-btn",function(t){t.preventDefault();var e=l(this),o=l("#post\_ID").val(),t=e.closest(".added-instructor-item").attr("data-instructor-id");l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{course\_id:o,instructor\_id:t,action:"detach\_instructor\_from\_course"},success:function(t){t.success&&e.closest(".added-instructor-item").remove()}})}),l(document).on("click",".settings-tabs-navs li",function(t){t.preventDefault();var e=l(this),o=e.find("a").attr("data-target"),t=e.find("a").attr("href");e.addClass("active").siblings("li.active").removeClass("active"),l(".settings-tab-wrap").removeClass("active").hide(),l(o).addClass("active").show(),window.history.pushState({},"",t)}),l(document).on("lesson\_modal\_loaded quiz\_modal\_loaded assignment\_modal\_loaded",function(t,e){jQuery().select2&&l(".select2\_multiselect").select2({dropdownCssClass:"increasezindex"}),o()}),l(document).on("lesson\_modal\_loaded",function(t,e){l(".tutor-lesson-modal-wrap .modal-title h1").html(n("Lesson","tutor"))}),l(document).on("assignment\_modal\_loaded",function(t,e){l(".tutor-lesson-modal-wrap .modal-title h1").html(n("Assignment","tutor"))}),l(document).on("keyup change",".tutor-number-validation",function(t){var e=l(this),o=parseInt(e.val()),a=parseInt(e.attr("data-min")),n=parseInt(e.attr("data-max"));o<a?e.val(a):n<o&&e.val(n)}),l(document).on("click",".tutor-instructor-feedback",function(t){t.preventDefault();var e=l(this);l.ajax({url:window.ajaxurl||\_tutorobject.ajaxurl,type:"POST",data:{attempts\_id:e.data("attemptid"),feedback:l(".tutor-instructor-feedback-content").val(),action:"tutor\_instructor\_feedback"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(e.closest(".course-content-item").remove(),tutor\_toast(n("Success","tutor"),e.data("toast\_success\_message"),"success"))},complete:function(){e.removeClass("tutor-updating-message")}})});var d=l(".tutor-announcement-add-new"),p=l(".tutor-announcement-edit"),m=l(".tutor-announcement-delete"),f=l(".tutor-announcement-details"),t=l(".tutor-announcement-close-btn"),\_=l(".tutor-accouncement-create-modal"),v=l(".tutor-accouncement-update-modal"),h=l(".tutor-accouncement-details-modal");function w(t,e){var o=new URL(window.location.href),a=o.searchParams;return a.set(t,e),o.search=a.toString(),\_tutorobject.is\_admin?a.set("paged",1):a.set("current\_page",1),o.search=a.toString(),o.toString()}l(d).click(function(){\_.addClass("show"),l("#tutor-annoucement-backend-create-modal").addClass("show")}),l(f).click(function(){var t=l(this).attr("announcement-date"),e=l(this).attr("announcement-id"),o=l(this).attr("course-id"),a=l(this).attr("course-name"),n=l(this).attr("announcement-title"),i=l(this).attr("announcement-summary");l(".tutor-announcement-detail-content").html("<h3>".concat(n,"</h3><p>").concat(i,"</p>")),l(".tutor-announcement-detail-course-info p").html("".concat(a)),l(".tutor-announcement-detail-date-info p").html("".concat(t)),l("#tutor-announcement-edit-from-detail").attr("announcement-id",e),l("#tutor-announcement-edit-from-detail").attr("course-id",o),l("#tutor-announcement-edit-from-detail").attr("announcement-title",n),l("#tutor-announcement-edit-from-detail").attr("announcement-summary",i),l("#tutor-announcement-delete-from-detail").attr("announcement-id",e),h.addClass("show")}),l(p).click(function(){h&&h.removeClass("show");var t=l(this).attr("announcement-id"),e=l(this).attr("course-id"),o=l(this).attr("announcement-title"),a=l(this).attr("announcement-summary");l("#tutor-announcement-course-id").val(e),l("#announcement\_id").val(t),l("#tutor-announcement-title").val(o),l("#tutor-announcement-summary").val(a),v.addClass("show")}),l(t).click(function(){\_.removeClass("show"),v.removeClass("show"),h.removeClass("show"),l("#tutor-annoucement-backend-create-modal").removeClass("show")}),l(".tutor-announcements-form").on("submit",function(t){t.preventDefault();var e=l(this).find('button\[type="submit"\]'),t=l(".tutor-announcements-form").serialize()+"&action=tutor\_announcement\_create&action\_type=create";l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){if(l(".tutor-alert").remove(),"success"==t.status&&location.reload(),"validation\_error"==t.status){l(".tutor-announcements-create-alert").append('<div class="tutor-alert alert-warning"></div>');for(var e=0,o=Object.entries(t.message);e<o.length;e++){var a=q(o\[e\],2),a=(a\[0\],a\[1\]);l(".tutor-announcements-create-alert .tutor-alert").append("<li>".concat(a,"</li>"))}}"fail"==t.status&&l(".tutor-announcements-create-alert").html("<li>".concat(t.message,"</li>"))},error:function(t){console.log(t)}})}),l(".tutor-announcements-update-form").on("submit",function(t){t.preventDefault();var e=l(this).find('button\[type="submit"\]'),t=l(".tutor-announcements-update-form").serialize()+"&action=tutor\_announcement\_create&action\_type=update";l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){if(l(".tutor-alert").remove(),"success"==t.status&&location.reload(),"validation\_error"==t.status){l(".tutor-announcements-update-alert").append('<div class="tutor-alert alert-warning"></div>');for(var e=0,o=Object.entries(t.message);e<o.length;e++){var a=q(o\[e\],2),a=(a\[0\],a\[1\]);l(".tutor-announcements-update-alert > .tutor-alert").append("<li>".concat(a,"</li>"))}}"fail"==t.status&&l(".tutor-announcements-create-alert").html("<li>".concat(t.message,"</li>"))},error:function(){}})}),l(m).click(function(){var t=l(this).attr("announcement-id"),e=l("#tutor-announcement-tr-"+t);confirm("Do you want to delete?")&&l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{action:"tutor\_announcement\_delete",announcement\_id:t},beforeSend:function(){},success:function(t){e.remove(),h.length&&h.removeClass("show"),"fail"==t.status&&console.log(t.message)},error:function(){}})}),l(".tutor-announcement-course-sorting").on("change",function(t){window.location=w("course-id",l(this).val())}),l(".tutor-announcement-order-sorting").on("change",function(t){window.location=w("order",l(this).val())}),l(".tutor-announcement-date-sorting").on("change",function(t){window.location=w("date",l(this).val())}),l(".tutor-announcement-search-sorting").on("click",function(t){window.location=w("search",l(".tutor-announcement-search-field").val())}),l(document).click(function(){l(".tutor-dropdown").removeClass("show")}),l(".tutor-dropdown").click(function(t){t.stopPropagation(),l(".tutor-dropdown").hasClass("show")&&l(".tutor-dropdown").removeClass("show"),l(this).addClass("show")});var b,m=".video\_source\_wrap\_external\_url input, .video\_source\_wrap\_vimeo input, .video\_source\_wrap\_youtube input, .video\_source\_wrap\_html5, .video\_source\_upload\_wrap\_html5";l("body").on("paste",m,function(t){t.stopImmediatePropagation();var r=l(this).closest(".lesson-modal-form-wrap").find(".tutor-option-field-video-duration"),e=r.find("label"),o=l(this).hasClass("video\_source\_wrap\_html5")||l(this).hasClass("video\_source\_upload\_wrap\_html5"),a=l(this).data("autofill\_url");l(this).data("autofill\_url",null);function n(t){t?0==e.find("img").length&&e.append(' <img src="'+window.\_tutorobject.loading\_icon\_url+'" style="display:inline-block"/>'):e.find("img").remove()}function i(t){for(var e=Math.floor(t/3600),o=Math.floor((t-3600\*e)/60),t=Math.round(t-3600\*e-60\*o),a=\[e=e<10?"0"+e:e,o=o<10?"0"+o:o,t=t<10?"0"+t:t\],n=r.find("input"),i=0;i<3;i++)n.eq(i).val(a\[i\])}var s,u,c,t=o?l(this).find("span").data("video\_url"):a||t.originalEvent.clipboardData.getData("text");o||l(this).parent().hasClass("video\_source\_wrap\_external\_url")?((s=document.createElement("video")).addEventListener("loadedmetadata",function(){i(s.duration),n(!1)}),n(!0),s.src=t):l(this).parent().hasClass("video\_source\_wrap\_vimeo")?(u=(c=t.match(/^.\*(vimeo\\.com\\/)((channels\\/\[A-z\]+\\/)|(groups\\/\[A-z\]+\\/videos\\/))?(\[0-9\]+)/))?c\[5\]:null)&&(n(!0),l.getJSON("http://vimeo.com/api/v2/video/"+u+"/json",function(t){Array.isArray(t)&&t\[0\]&&void 0!==t\[0\].duration&&i(t\[0\].duration),n(!1)})):l(this).parent().hasClass("video\_source\_wrap\_youtube")&&(u=!(!(c=t.match(/^.\*((youtu.be\\/)|(v\\/)|(\\/u\\/\\w\\/)|(embed\\/)|(watch\\?))\\??v?=?(\[^#&?\]\*).\*/))||11!=c\[7\].length)&&c\[7\],c=l(this).data("youtube\_api\_key"),u&&c&&(c="https://www.googleapis.com/youtube/v3/videos?id="+u+"&key="+c+"&part=contentDetails",n(!0),l.getJSON(c,function(t){"object"==g(t)&&t.items&&t.items\[0\]&&t.items\[0\].contentDetails&&t.items\[0\].contentDetails.duration&&i(function(t){t=(t=t.match(/PT(\\d+H)?(\\d+M)?(\\d+S)?/)).slice(1).map(function(t){if(null!=t)return t.replace(/\\D/,"")});return 3600\*(parseInt(t\[0\])||0)+60\*(parseInt(t\[1\])||0)+(parseInt(t\[2\])||0)}(t.items\[0\].contentDetails.duration)),n(!1)})))}).on("input",m,function(){b&&clearTimeout(b);var e=l(this);b=setTimeout(function(){var t=(t=e.val())?t.trim():"";console.log("Trigger",t),t&&e.data("autofill\_url",t).trigger("paste")},700)}),l(".tutor-form-submit-through-ajax").submit(function(t){t.preventDefault();var e=l(this),o=l(this).attr("action")||window.location.href,a=l(this).attr("method")||"GET",t=l(this).serializeObject();e.find("button").addClass("tutor-updating-message"),l.ajax({url:o,type:a,data:t,success:function(){tutor\_toast(n("Success","tutor"),e.data("toast\_success\_message"),"success")},complete:function(){e.find("button").removeClass("tutor-updating-message")}})}),l.ajaxSetup({data:tutor\_get\_nonce\_data()})}),jQuery.fn.serializeObject=function(){var t={},e=this.serializeArray();return jQuery.each(e,function(){t\[this.name\]?(t\[this.name\].push||(t\[this.name\]=\[t\[this.name\]\]),t\[this.name\].push(this.value||"")):t\[this.name\]=this.value||""}),t},window.tutor\_toast=function(t,e,o){var a=((window.\_tutorobject||{}).tutor\_url||"")+"assets/images/";jQuery(".tutor-toast-parent").length||jQuery("body").append('<div class="tutor-toast-parent"></div>');var n=jQuery(' <div> <div> <img src="'+{success:a+"icon-check.svg",error:a+"icon-cross.svg"}\[o\]+'"/> </div> <div> <div> <b>'+t+"</b> <span>"+e+'</span> </div> </div> <div> <i class="tutor-toast-close tutor-icon-line-cross"></i> </div> </div>');n.find(".tutor-toast-close").click(function(){n.remove()}),jQuery(".tutor-toast-parent").append(n),setTimeout(function(){n&&n.fadeOut("fast",function(){jQuery(this).remove()})},5e3)},window.disableAddoption=function(){function t(t){t.classList.contains("disabled")||t.classList.add("disabled")}function e(t){t.classList.contains("disabled")&&t.classList.remove("disabled")}var o=document.querySelector(".tutor\_select\_value\_holder").value,a=document.getElementById("tutor\_quiz\_question\_answers"),n=document.getElementById("tutor\_quiz\_question\_answer\_form"),i=document.querySelector(".add\_question\_answers\_option");("open\_ended"===o||"short\_answer"===o||("true\_false"===o||"fill\_in\_the\_blank"===o)&&(n.hasChildNodes()||a.hasChildNodes())?t:e)(i)}}},a={};function n(t){var e=a\[t\];if(void 0!==e)return e.exports;e=a\[t\]={exports:{}};return o\[t\](e,e.exports,n),e.exports}(()=>{"use strict";n(623);jQuery.fn.serializeObject=function(){var t={},e=this.serializeArray();return jQuery.each(e,function(){t\[this.name\]?(t\[this.name\].push||(t\[this.name\]=\[t\[this.name\]\]),t\[this.name\].push(this.value||"")):t\[this.name\]=this.value||""}),t},jQuery(document).ready(function(a){var t=window.location.href;if(0<t.indexOf("#")){a(".tutor-wizard-container > div").removeClass("active"),a(".tutor-wizard-container > div.tutor-setup-wizard-settings").addClass("active");t=t.split("#");if(t\[1\]){var e=a(".tutor-setup-title li."+t\[1\]).index();a(".tutor-setup-title li").removeClass("current"),a(".tutor-setup-content li").removeClass("active");for(var o=0;o<=e;o++)a(".tutor-setup-title li").eq(o).addClass("active"),e==o&&(a(".tutor-setup-title li").eq(o).addClass("current"),a(".tutor-setup-content li").eq(o).addClass("active"))}t=a("input\[name='enable\_course\_marketplace'").val();i(t||0)}function n(t){var e=t.parent().parent();t.prop("checked")?(e.find(".label-on").addClass("active"),e.find(".label-off").removeClass("active")):(e.find(".label-on").removeClass("active"),e.find(".label-off").addClass("active"))}function i(t){1==t?(a(".tutor-show-hide").addClass("active"),a(".tutor-setup-title li.instructor").removeClass("hide-this"),a(".tutor-setup-content li").eq(a(".tutor-setup-title li.instructor")).removeClass("hide-this")):(a(".tutor-show-hide").removeClass("active"),a(".tutor-setup-title li.instructor").addClass("hide-this"),a(".tutor-setup-content li").eq(a(".tutor-setup-title li.instructor")).addClass("hide-this"))}function r(){var t;a(".tutor-setup-title li.instructor").hasClass("hide-this")?(a(".tutor-steps").html(5),2<(t=a(".tutor-setup-title li.current").index())&&a(".tutor-setup-content li.active .tutor-steps-current").html(t)):(a(".tutor-steps").html(6),a(".tutor-setup-content li").each(function(){a(this).find(".tutor-steps-current").html(a(this).index()+1)}))}a(".tutor-setup-title li").on("click",function(t){t.preventDefault();var e=a(this).closest("li").index();a(".tutor-setup-title li").removeClass("active current"),a(".tutor-setup-title li").eq(e).addClass("active current"),a(".tutor-setup-content li").removeClass("active"),a(".tutor-setup-content li").eq(e).addClass("active"),window.location.hash=a("ul.tutor-setup-title li").eq(e).data("url");for(var o=0;o<=e;o++)a(".tutor-setup-title li").eq(o).addClass("active")}),a(".tutor-boarding-next, .tutor-boarding-skip").on("click",function(t){t.preventDefault(),a(".tutor-setup-wizard-boarding").removeClass("active"),a(".tutor-setup-wizard-type").addClass("active")}),a(".tutor-type-next, .tutor-type-skip").on("click",function(t){t.preventDefault(),a(".tutor-setup-wizard-type").removeClass("active"),a(".tutor-setup-wizard-settings").addClass("active"),a(".tutor-setup-title li").eq(0).addClass("active"),window.location.hash="general",i(a("input\[name='enable\_course\_marketplace\_setup'\]:checked").val())}),a("input\[type=radio\]\[name=enable\_course\_marketplace\_setup\]").change(function(){"0"==this.value?(a("input\[name=enable\_course\_marketplace\]").val(""),a("input\[name=enable\_tutor\_earning\]").val("")):"1"==this.value&&(a("input\[name=enable\_course\_marketplace\]").val("1"),a("input\[name=enable\_tutor\_earning\]").val("1"))}),a(".tutor-setup-previous").on("click",function(t){t.preventDefault();t=a(this).closest("li").index();a("ul.tutor-setup-title li").eq(t).removeClass("active"),0<t&&t==a(".tutor-setup-title li.instructor").index()+1&&a(".tutor-setup-title li.instructor").hasClass("hide-this")&&(t-=1),0<t?(a("ul.tutor-setup-title li").eq(t-1).addClass("active"),a("ul.tutor-setup-content li").removeClass("active").eq(t-1).addClass("active"),a("ul.tutor-setup-title li").removeClass("current").eq(t-1).addClass("current"),window.location.hash=a("ul.tutor-setup-title li").eq(t-1).data("url")):(a(".tutor-setup-wizard-settings").removeClass("active"),a(".tutor-setup-wizard-type").addClass("active"),window.location.hash=""),r()}),a(".tutor-setup-type-previous").on("click",function(t){a(".tutor-setup-wizard-type").removeClass("active"),a(".tutor-setup-wizard-boarding").addClass("active")}),a(".tutor-setup-skip, .tutor-setup-next").on("click",function(t){t.preventDefault();t=a(this).closest("li").index()+1;t==a(".tutor-setup-title li.instructor").index()&&a(".tutor-setup-title li.instructor").hasClass("hide-this")&&(t+=1),a("ul.tutor-setup-title li").eq(t).addClass("active"),a("ul.tutor-setup-content li").removeClass("active").eq(t).addClass("active"),a("ul.tutor-setup-title li").removeClass("current").eq(t).addClass("current"),window.location.hash=a("ul.tutor-setup-title li").eq(t).data("url"),r()}),a(".tutor-boarding-next, .tutor-boarding-skip").on("click",function(t){t.preventDefault(),a(".tutor-setup-wizard-boarding").removeClass("active"),a(".tutor-setup-wizard-type").addClass("active")}),a(".tutor-boarding").slick({speed:1e3,centerMode:!0,centerPadding:"19.5%",slidesToShow:1,arrows:!1,dots:!0,responsive:\[{breakpoint:768,settings:{arrows:!1,centerMode:!0,centerPadding:"50px",slidesToShow:1}},{breakpoint:480,settings:{arrows:!1,centerMode:!0,centerPadding:"30px",slidesToShow:1}}\]}),a(".tutor-redirect").on("click",function(t){var e=a(this);t.preventDefault();t=a("#tutor-setup-form").serializeObject();a.ajax({url:\_tutorobject.ajaxurl,type:"POST",data:t,success:function(t){t.success&&(window.location=e.data("url"))}})}),a(".tutor-reset-section").on("click",function(t){a(this).closest("li").find("input").val(function(){switch(this.type){case"text":return this.defaultValue;case"checkbox":case"radio":this.checked=this.defaultChecked;break;case"range":var t=a(this).closest(".limit-slider");if(!t.find(".range-input").hasClass("double-range-slider"))return t.find(".range-value").html(this.defaultValue),this.defaultValue;t.find(".range-value-1").html(this.defaultValue+"%"),a(".range-value-data-1").val(this.defaultValue),t.find(".range-value-2").html(100-this.defaultValue+"%"),a(".range-value-data-2").val(100-this.defaultValue);break;case"hidden":return this.value}})}),a(".tooltip-btn").on("click",function(t){t.preventDefault(),a(this).toggleClass("active")}),a(".input-switchbox").each(function(){n(a(this))}),a(".input-switchbox").click(function(){n(a(this))}),a(".selected").on("click",function(){a(".options-container").toggleClass("active")}),a(".option").each(function(){a(this).on("click",function(){a(".selected").html(a(this).find("label").html()),a(".options-container").removeClass("active")})}),a(".range-input").on("change mousemove",function(t){var e=a(this).val();a(this).parent().parent().find(".range-value").text(e)}),a(".double-range-slider").on("change mousemove",function(){var t=a(this).closest(".settings");t.find(".range-value-1").text(a(this).val()+"%"),t.find('input\[name="earning\_instructor\_commission"\]').val(a(this).val()),t.find(".range-value-2").text(100-a(this).val()+"%"),t.find('input\[name="earning\_admin\_commission"\]').val(100-a(this).val())}),a("#attempts-allowed-1").on("click",function(t){a("#attempts-allowed-numer").prop("disabled",!0)&&(a(this).parent().parent().parent().addClass("active"),a("#attempts-allowed-numer").prop("disabled",!1))}),a("#attempts-allowed-2").on("click",function(t){a("#attempts-allowed-2").is(":checked")&&(a(this).parent().parent().parent().removeClass("active"),a("#attempts-allowed-numer").prop("disabled",!0))}),a(".wizard-type-item").on("click",function(t){i(a(this).find("input").val())}),r(),a("input\[name='attempts-allowed'\]").on("change",function(t){"unlimited"==a(this).filter(":checked").val()?a("input\[name='quiz\_attempts\_allowed'\]").val(0):a("input\[name='quiz\_attempts\_allowed'\]").val(a("input\[name='attempts-allowed-number").val())}),a("input\[name='attempts-allowed-number'\]").on("change",function(t){a("input\[name='quiz\_attempts\_allowed'\]").val(a(this).val())}),a("input\[name='attempts-allowed-number'\]").on("focus",function(t){a("input\[name='attempts-allowed'\]\[value='single'\]").attr("checked",!0)})})})()})();
1
(()=>{var o={623:()=>{function g(t){return(g="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})(t)}function q(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var o=null==t?null:"undefined"!=typeof Symbol&&t\[Symbol.iterator\]||t\["@@iterator"\];if(null!=o){var a,n,i=\[\],r=!0,s=!1;try{for(o=o.call(t);!(r=(a=o.next()).done)&&(i.push(a.value),!e||i.length!==e);r=!0);}catch(t){s=!0,n=t}finally{try{r||null==o.return||o.return()}finally{if(s)throw n}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return a(t,e);var o=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(o="Object"===o&&t.constructor?t.constructor.name:o)||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?a(t,e):void 0}}(t,e)||function(){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 a(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,a=new Array(e);o<e;o++)a\[o\]=t\[o\];return a}window.tutor\_get\_nonce\_data=function(t){var e=window.\_tutorobject||{},o=e.nonce\_key||"",e=e\[o\]||"";return t?{key:o,value:e}:(t=e,(e=o)in(o={})?Object.defineProperty(o,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):o\[e\]=t,o)},window.tutor\_popup=function(r,o,a){var s,u=this;return this.popup\_wrapper=function(t){var e=""===o?"":'<img class="tutor-pop-icon" src="'+window.\_tutorobject.tutor\_url+"assets/images/"+o+'.svg"/>';return"<"+t+' class="tutor-component-popup-container"> <div class="tutor-component-popup-'+a+'"> <div class="tutor-component-content-container">'+e+'</div> <div class="tutor-component-button-container"></div> </div> </'+t+">"},this.popup=function(o){var t=o.title?"<h3>"+o.title+"</h3>":"",e=o.description?"<p>"+o.description+"</p>":"",a=Object.keys(o.buttons||{}).map(function(t){var e=o.buttons\[t\],t=e.id?"tutor-popup-"+e.id:"";return r('<button id="'+t+'" class="tutor-button tutor-button-'+e.class+'">'+e.title+"</button>").click(e.callback)}),n=(s=r(u.popup\_wrapper(o.wrapper\_tag||"div"))).find(".tutor-component-content-container");n.append(t),o.after\_title&&n.append(o.after\_title),n.append(e),o.after\_description&&n.append(o.after\_description),s.click(function(){r(this).remove()}).children().click(function(t){t.stopPropagation()});for(var i=0;i<a.length;i++)s.find(".tutor-component-button-container").append(a\[i\]);return r("body").append(s),s},{popup:this.popup}},window.tutorDotLoader=function(t){return' \\n <div class="tutor-dot-loader '.concat(t||"",'">\\n <span class="dot dot-1"></span>\\n <span class="dot dot-2"></span>\\n <span class="dot dot-3"></span>\\n <span class="dot dot-4"></span>\\n </div>')},window.tutor\_date\_picker=function(){var t;jQuery.datepicker&&(t=\_tutorobject.wp\_date\_format||"yy-mm-dd",$(".tutor\_date\_picker").datepicker({dateFormat:t}))},jQuery(document).ready(function(l){"use strict";var t=wp.i18n,n=t.\_\_;t.\_x,t.\_n,t.\_nx;function o(){var t;jQuery.datepicker&&(t=\_tutorobject.wp\_date\_format||"yy-mm-dd",l(".tutor\_date\_picker").datepicker({dateFormat:t})),l(document).on("keydown",".hasDatepicker, .tutor\_date\_picker",function(t){8!==t.keyCode&&t.preventDefault()})}function s(){l(".tutor-field-slider").each(function(){var t=l(this),o=t.closest(".tutor-field-type-slider").find('input\[type="hidden"\]'),a=t.closest(".tutor-field-type-slider").find(".tutor-field-type-slider-value"),e=parseFloat(t.closest(".tutor-field-type-slider").attr("data-min")),n=parseFloat(t.closest(".tutor-field-type-slider").attr("data-max"));t.slider({range:"max",min:e,max:n,value:o.val(),slide:function(t,e){a.text(e.value),o.val(e.value)}})})}function e(t){var e=t.element;return l('<span><i class="tutor-icon-'+l(e).data("icon")+'"></i> '+t.text+"</span>")}function i(){jQuery().sortable&&(l(".course-contents").sortable({handle:".course-move-handle",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){a()}}),l(".tutor-lessons:not(.drop-lessons)").sortable({connectWith:".tutor-lessons",items:"div.course-content-item",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){a()}}))}function a(){var i={};l(".tutor-topics-wrap").each(function(t,e){var o=l(this),a=parseInt(o.attr("id").match(/\\d+/)\[0\],10),n={};o.find(".course-content-item").each(function(t,e){var o=l(this),o=parseInt(o.attr("id").match(/\\d+/)\[0\],10);n\[t\]=o}),i\[t\]={topic\_id:a,lesson\_ids:n}}),l("#tutor\_topics\_lessons\_sorting").val(JSON.stringify(i))}function r(){return{init:function(){l(document).on("click",".tutor-select .tutor-select-option",function(t){t.preventDefault();var e=l(this);"true"!==e.attr("data-is-pro")?(t=e.html().trim(),e.closest(".tutor-select").find(".select-header .lead-option").html(t),e.closest(".tutor-select").find(".select-header input.tutor\_select\_value\_holder").val(e.attr("data-value")).trigger("change"),e.closest(".tutor-select-options").hide(),disableAddoption()):alert("Tutor Pro version required")}),l(document).on("click",".tutor-select .select-header",function(t){t.preventDefault(),l(this).closest(".tutor-select").find(".tutor-select-options").slideToggle()}),this.setValue(),this.hideOnOutSideClick()},setValue:function(){l(".tutor-select").each(function(){var t=l(this).find(".tutor-select-option");t.length&&t.each(function(){var t,e=l(this);"selected"===e.attr("data-selected")&&(t=e.html().trim(),e.closest(".tutor-select").find(".select-header .lead-option").html(t),e.closest(".tutor-select").find(".select-header input.tutor\_select\_value\_holder").val(e.attr("data-value")))})})},hideOnOutSideClick:function(){l(document).mouseup(function(t){var e=l(".tutor-select-options");l(t.target).closest(".select-header").length||e.is(t.target)||0!==e.has(t.target).length||e.hide()})},reInit:function(){this.setValue()}}}o(),s(),jQuery().select2&&l(".videosource\_select2").select2({width:"100%",templateSelection:e,templateResult:e,allowHtml:!0}),l(document).on("change",".tutor\_lesson\_video\_source",function(t){var e=l(this),o=l(this).val();o?l(".video-metabox-source-input-wrap").show():l(".video-metabox-source-input-wrap").hide(),e.closest(".tutor-option-field").find(".video-metabox-source-item").hide(),e.closest(".tutor-option-field").find(".video\_source\_wrap\_"+o).show()}),l(document).on("click",".tutor-course-thumbnail-upload-btn",function(t){t.preventDefault();var e,o=l(this);e||(e=wp.media({title:n("Select or Upload Media Of Your Chosen Persuasion","tutor"),button:{text:n("Use this media","tutor")},multiple:!1})).on("select",function(){var t=e.state().get("selection").first().toJSON();o.closest(".tutor-thumbnail-wrap").find(".thumbnail-img").attr("src",t.url),o.closest(".tutor-thumbnail-wrap").find("input").val(t.id),l(".tutor-course-thumbnail-delete-btn").show()}),e.open()}),l(document).on("click",".tutor-course-thumbnail-delete-btn",function(t){t.preventDefault();var e=l(this),t=e.closest(".tutor-thumbnail-wrap").find(".thumbnail-img").attr("data-placeholder-src");e.closest(".tutor-thumbnail-wrap").find(".thumbnail-img").attr("src",t),e.closest(".tutor-thumbnail-wrap").find("input").val(""),l(".tutor-course-thumbnail-delete-btn").hide()}),l(document).on("click",".create\_new\_topic\_btn",function(t){t.preventDefault(),l(".tutor-metabox-add-topics").slideToggle()}),l(document).on("click","#tutor-add-topic-btn",function(t){t.preventDefault();var e=l(this),t=e.closest(".tutor-metabox-add-topics").find("input, textarea").serializeObject();t.action="tutor\_add\_course\_topic",l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(l("#tutor-course-content-wrap").html(t.data.course\_contents),e.closest(".tutor-metabox-add-topics").find('input\[type!="hidden"\], textarea').each(function(){l(this).val("")}),e.closest(".tutor-metabox-add-topics").slideUp(),i())},complete:function(){e.removeClass("tutor-updating-message")}})}),l(".tutor-zoom-meeting-modal-wrap").on("submit",".tutor-meeting-modal-form",function(t){t.preventDefault();var e=l(this),o=e.serializeObject(),t=Intl.DateTimeFormat().resolvedOptions().timeZone;o.timezone=t;var a=e.find('button\[type="submit"\]');l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:o,beforeSend:function(){a.addClass("tutor-updating-message")},success:function(t){t.success?tutor\_toast(n("Success","tutor"),a.data("toast\_success\_message"),"success"):tutor\_toast(n("Update Error","tutor"),n("Meeting Update Failed","tutor"),"error"),t.course\_contents?(l(t.selector).html(t.course\_contents),"#tutor-course-content-wrap"==t.selector&&i(),l(".tutor-zoom-meeting-modal-wrap").removeClass("show")):location.reload()},complete:function(){a.removeClass("tutor-updating-message")}})}),l(document).on("change keyup",".course-edit-topic-title-input",function(t){t.preventDefault(),l(this).closest(".tutor-topics-top").find(".topic-inner-title").html(l(this).val())}),l(document).on("click",".topic-edit-icon",function(t){t.preventDefault(),l(this).closest(".tutor-topics-top").find(".tutor-topics-edit-form").slideToggle()}),l(document).on("click",".tutor-topics-edit-button",function(t){t.preventDefault();var e=l(this),o=e.closest(".tutor-topics-wrap"),t=parseInt(o.attr("id").match(/\\d+/)\[0\],10),a=e.closest(".tutor-topics-wrap").find('\[name="topic\_title"\]').val(),o=e.closest(".tutor-topics-wrap").find('\[name="topic\_summery"\]').val();l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{topic\_title:a,topic\_summery:o,topic\_id:t,action:"tutor\_update\_topic"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(e.closest(".tutor-topics-wrap").find("span.topic-inner-title").text(a),e.closest(".tutor-topics-wrap").find(".tutor-topics-edit-form").slideUp())},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click",".open-tutor-lesson-modal",function(t){t.preventDefault();var e=l(this),o=e.attr("data-lesson-id"),a=e.attr("data-topic-id"),n=l("#post\_ID").val();l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{lesson\_id:o,topic\_id:a,course\_id:n,action:"tutor\_load\_edit\_lesson\_modal"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){l(".tutor-lesson-modal-wrap .modal-container").html(t.data.output),l(".tutor-lesson-modal-wrap").attr({"data-lesson-id":o,"data-topic-id":a}).addClass("show");t=(t=tinyMCEPreInit.mceInit.tutor\_editor\_config)||tinyMCEPreInit.mceInit.course\_description;tinymce.init(t),tinymce.execCommand("mceRemoveEditor",!1,"tutor\_lesson\_modal\_editor"),tinyMCE.execCommand("mceAddEditor",!1,"tutor\_lesson\_modal\_editor"),l(document).trigger("lesson\_modal\_loaded",{lesson\_id:o,topic\_id:a,course\_id:n})},complete:function(){quicktags({id:"tutor\_lesson\_modal\_editor"}),e.removeClass("tutor-updating-message")}})}),l(document).on("click",".lesson\_thumbnail\_upload\_btn",function(t){t.preventDefault();var e,o=l(this);e||(e=wp.media({title:n("Select or Upload Media Of Your Chosen Persuasion","tutor"),button:{text:n("Use this media","tutor")},multiple:!1})).on("select",function(){var t=e.state().get("selection").first().toJSON();o.closest(".tutor-thumbnail-wrap").find(".thumbnail-img").html('<img src="'+t.url+'" alt="" /><a href="javascript:;" class="tutor-lesson-thumbnail-delete-btn"><i class="tutor-icon-line-cross"></i></a>'),o.closest(".tutor-thumbnail-wrap").find("input").val(t.id),l(".tutor-lesson-thumbnail-delete-btn").show()}),e.open()}),l(document).on("click",".tutor-lesson-thumbnail-delete-btn",function(t){t.preventDefault();t=l(this);t.closest(".tutor-thumbnail-wrap").find(".\_lesson\_thumbnail\_id").val(""),t.closest(".tutor-thumbnail-wrap").find(".thumbnail-img").html(""),t.hide()}),l(document).on("click",".tutor-delete-lesson-btn",function(t){var e;t.preventDefault(),confirm(n("Are you sure?","tutor"))&&(t=(e=l(this)).attr("data-lesson-id"),l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{lesson\_id:t,action:"tutor\_delete\_lesson\_by\_id"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&e.closest(".course-content-item").remove()},complete:function(){e.removeClass("tutor-updating-message")}}))}),l(document).on("click",".topic-delete-btn a",function(t){l(this).attr("data-topic-id");confirm(n("Are you sure to delete?","tutor"))||t.preventDefault()}),l(document).on("click",".tutor-expand-all-topic",function(t){t.preventDefault(),l(".tutor-topics-body").slideDown(),l(".expand-collapse-wrap i").removeClass("tutor-icon-light-down").addClass("tutor-icon-light-up")}),l(document).on("click",".tutor-collapse-all-topic",function(t){t.preventDefault(),l(".tutor-topics-body").slideUp(),l(".expand-collapse-wrap i").removeClass("tutor-icon-light-up").addClass("tutor-icon-light-down")}),l(document).on("click",".topic-inner-title, .expand-collapse-wrap",function(t){t.preventDefault();t=l(this);t.closest(".tutor-topics-wrap").find(".tutor-topics-body").slideToggle(),t.closest(".tutor-topics-wrap").find(".expand-collapse-wrap i").toggleClass("tutor-icon-light-down tutor-icon-light-up")}),l(document).on("click",".quiz-modal-btn-first-step",function(t){t.preventDefault();var e,o,a,n=l(this),i=l('\[name="quiz\_title"\]'),r=i.val(),t=l('\[name="quiz\_description"\]').val();r?(i.closest(".tutor-quiz-builder-group").find(".quiz\_form\_msg").html(""),e=l("#post\_ID").val(),o=n.closest(".tutor-modal-wrap").attr("quiz-for-post-id"),l("#tutor\_quiz\_builder\_quiz\_id").length?(a=l("#tutor\_quiz\_builder\_quiz\_id").val(),l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{quiz\_title:r,quiz\_description:t,quiz\_id:a,topic\_id:o,action:"tutor\_quiz\_builder\_quiz\_update"},beforeSend:function(){n.addClass("tutor-updating-message")},success:function(t){l("#tutor-quiz-"+a).html(t.data.output\_quiz\_row),l('#tutor-quiz-modal-tab-items-wrap a\[href="#quiz-builder-tab-questions"\]').trigger("click"),s()},complete:function(){n.removeClass("tutor-updating-message")}})):l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{quiz\_title:r,quiz\_description:t,course\_id:e,topic\_id:o,action:"tutor\_create\_quiz\_and\_load\_modal"},beforeSend:function(){n.addClass("tutor-updating-message")},success:function(t){l(".tutor-quiz-builder-modal-wrap .modal-container").html(t.data.output),l("#tutor-topics-"+o+" .tutor-lessons").append(t.data.output\_quiz\_row),l('#tutor-quiz-modal-tab-items-wrap a\[href="#quiz-builder-tab-questions"\]').trigger("click"),s(),l(document).trigger("quiz\_modal\_loaded",{topic\_id:o,course\_id:e})},complete:function(){n.removeClass("tutor-updating-message")}})):i.closest(".tutor-quiz-builder-group").find(".quiz\_form\_msg").html("Please enter quiz title")}),l(document).on("click",".open-tutor-quiz-modal",function(t){t.preventDefault();var e=l(this),o=e.attr("data-quiz-id"),a=e.attr("data-topic-id");null==a&&(a=e.closest(".tutor-modal-wrap").attr("quiz-for-post-id"));var n=l("#post\_ID").val();l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{quiz\_id:o,topic\_id:a,course\_id:n,action:"tutor\_load\_edit\_quiz\_modal"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){l(".tutor-quiz-builder-modal-wrap .modal-container").html(t.data.output),l(".tutor-quiz-builder-modal-wrap").attr("data-quiz-id",o).attr("quiz-for-post-id",a).addClass("show"),e.attr("data-back-to-tab")&&(t=e.attr("data-back-to-tab"),l('#tutor-quiz-modal-tab-items-wrap a\[href="'+t+'"\]').trigger("click")),l(document).trigger("quiz\_modal\_loaded",{quiz\_id:o,topic\_id:a,course\_id:n}),s(),jQuery().sortable&&l(".quiz-builder-questions-wrap").sortable({handle:".question-sorting",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){var a;a={},l(".quiz-builder-question-wrap").each(function(t,e){var o=l(this),o=parseInt(o.attr("data-question-id"),10);a\[t\]=o}),l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{sorted\_question\_ids:a,action:"tutor\_quiz\_question\_sorting"}})}})},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click",".quiz-modal-settings-save-btn",function(t){t.preventDefault();var e=l(this),o=l(".tutor-quiz-builder-modal-wrap").attr("data-quiz-id"),a=l("#current\_topic\_id\_for\_quiz").val(),t=l("#quiz-builder-tab-settings :input, #quiz-builder-tab-advanced-options :input").serializeObject();t.topic\_id=a,t.quiz\_id=o,t.action="tutor\_quiz\_modal\_update\_settings",l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&l("#tutor-course-content-wrap").html(t.data.course\_contents),t.success?tutor\_toast(n("Success","tutor"),e.data("toast\_success\_message"),"success"):tutor\_toast(n("Update Error","tutor"),n("Quiz Update Failed","tutor"),"error")},complete:function(){e.removeClass("tutor-updating-message"),"modal\_close"===e.attr("data-action")&&l(".tutor-modal-wrap").removeClass("show")}})}),l(document).on("click",".quiz-modal-question-save-btn",function(t){t.preventDefault();var e=l(this),o=l(".quiz\_question\_form :input").serializeObject();o.action="tutor\_quiz\_modal\_update\_question";t=e.closest(".tutor-modal-wrap").attr("quiz-for-post-id");o.topic\_id=t,l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:o,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success?e.closest(".tutor-quiz-builder-modal-contents").find(".open-tutor-quiz-modal").trigger("click"):void 0!==t.data&&l("#quiz\_validation\_msg\_wrap").html(t.data.validation\_msg)},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click",".modal-close-btn",function(t){t.preventDefault(),l(".tutor-modal-wrap").removeClass("show")}),l(document).on("keyup",function(t){27===t.keyCode&&l(".tutor-modal-wrap").removeClass("show")}),l(document).on("click",".tutor-add-quiz-btn",function(t){t.preventDefault();var e=l(this),o=l(this).closest(".tutor\_add\_quiz\_wrap").attr("data-add-quiz-under"),t=l(this).data("topic-id");l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{quiz\_for\_post\_id:o,current\_topic\_id:t,action:"tutor\_load\_quiz\_builder\_modal"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){l(".tutor-quiz-builder-modal-wrap .modal-container").html(t.data.output),l(".tutor-quiz-builder-modal-wrap").attr("quiz-for-post-id",o).addClass("show")},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click",".tutor-quiz-modal-tab-item",function(t){t.preventDefault();var e=l(this),o=l('\[name="quiz\_title"\]');o.val()?(o.closest(".tutor-quiz-builder-form-row").find(".quiz\_form\_msg").html(""),t=e.attr("href"),l(".quiz-builder-tab-container").hide(),l(t).show(),l("a.tutor-quiz-modal-tab-item").removeClass("active"),e.addClass("active")):o.closest(".tutor-quiz-builder-form-row").find(".quiz\_form\_msg").html('<p class="quiz-form-warning">Please save the quiz first</p>')}),l(document).on("click",".quiz-modal-btn-next, .quiz-modal-btn-back",function(t){t.preventDefault();t=l(this).attr("href");l('#tutor-quiz-modal-tab-items-wrap a\[href="'+t+'"\]').trigger("click")}),l(document).on("click",".quiz-modal-tab-navigation-btn.quiz-modal-btn-cancel",function(t){t.preventDefault(),l(".tutor-modal-wrap").removeClass("show")}),l(document).on("click",".tutor-quiz-open-question-form",function(t){t.preventDefault();var e=l(this),o=l("#tutor\_quiz\_builder\_quiz\_id").val(),a=l("#post\_ID").val(),t=e.attr("data-question-id"),a={quiz\_id:o,course\_id:a,action:"tutor\_quiz\_builder\_get\_question\_form"};t&&(a.question\_id=t),l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:a,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){l(".tutor-quiz-builder-modal-contents").html(t.data.output),r().reInit(),jQuery().sortable&&l("#tutor\_quiz\_question\_answers").sortable({handle:".tutor-quiz-answer-sort-icon",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){var a;a={},l(".tutor-quiz-answer-wrap").each(function(t,e){var o=l(this),o=parseInt(o.attr("data-answer-id"),10);a\[t\]=o}),l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{sorted\_answer\_ids:a,action:"tutor\_quiz\_answer\_sorting"}})}}),disableAddoption()},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click",".tutor-quiz-question-trash",function(t){t.preventDefault();var e=l(this),t=e.attr("data-question-id");l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{question\_id:t,action:"tutor\_quiz\_builder\_question\_delete"},beforeSend:function(){e.closest(".quiz-builder-question-wrap").remove()}})}),l(document).on("click",".add\_question\_answers\_option:not(.disabled)",function(t){t.preventDefault();var e=l(this),o=e.attr("data-question-id"),t=l(".quiz\_question\_form :input").serializeObject();t.question\_id=o,t.action="tutor\_quiz\_add\_question\_answers",l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){l("#tutor\_quiz\_question\_answer\_form").html(t.data.output),disableAddoption()},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click",".tutor-quiz-answer-edit a",function(t){t.preventDefault();var e=l(this),t=e.closest(".tutor-quiz-answer-wrap").attr("data-answer-id");l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{answer\_id:t,action:"tutor\_quiz\_edit\_question\_answer"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){l("#tutor\_quiz\_question\_answer\_form").html(t.data.output)},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click","#quiz-answer-save-btn",function(t){t.preventDefault();var e=l(this),t=l(".quiz\_question\_form :input").serializeObject();t.action="tutor\_save\_quiz\_answer\_options",l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){l("#quiz\_validation\_msg\_wrap").html(""),e.addClass("tutor-updating-message")},success:function(t){l("#tutor\_quiz\_question\_answers").trigger("refresh")},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click","#quiz-answer-edit-btn",function(t){t.preventDefault();var e=l(this),t=l(".quiz\_question\_form :input").serializeObject();t.action="tutor\_update\_quiz\_answer\_options",l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){l("#tutor\_quiz\_question\_answers").trigger("refresh")},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("change",".tutor-quiz-answers-mark-correct-wrap input",function(t){t.preventDefault();var e=l(this),o=e.val(),t=1;e.prop("checked")||(t=0),l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{answer\_id:o,inputValue:t,action:"tutor\_mark\_answer\_as\_correct"}})}),l(document).on("refresh","#tutor\_quiz\_question\_answers",function(t){t.preventDefault();var e=l(this),o=e.attr("data-question-id"),t=l(".tutor\_select\_value\_holder").val();l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{question\_id:o,question\_type:t,action:"tutor\_quiz\_builder\_get\_answers\_by\_question"},beforeSend:function(){e.addClass("tutor-updating-message"),l("#tutor\_quiz\_question\_answer\_form").html("")},success:function(t){t.success&&e.html(t.data.output)},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click",".tutor-quiz-answer-trash-wrap a.answer-trash-btn",function(t){t.preventDefault();var e=l(this),t=e.attr("data-answer-id");l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{answer\_id:t,action:"tutor\_quiz\_builder\_delete\_answer"},beforeSend:function(){e.closest(".tutor-quiz-answer-wrap").remove()}})}),l(document).on("click",".tutor-delete-quiz-btn",function(t){var e;t.preventDefault(),confirm(n("Are you sure?","tutor"))&&(t=(e=l(this)).attr("data-quiz-id"),l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{quiz\_id:t,action:"tutor\_delete\_quiz\_by\_id"},beforeSend:function(){e.closest(".course-content-item").remove()}}))}),r().init(),l(document).on("change","input.tutor\_select\_value\_holder",function(t){l(this);l(".add\_question\_answers\_option").trigger("click"),l("#tutor\_quiz\_question\_answers").trigger("refresh")}),l(document).on("click",".tutor-media-upload-btn",function(t){t.preventDefault();var e,o=l(this);e||(e=wp.media({title:n("Select or Upload Media Of Your Chosen Persuasion","tutor"),button:{text:n("Use this media","tutor")},multiple:!1})).on("select",function(){var t=e.state().get("selection").first().toJSON();o.html('<img src="'+t.url+'" alt="" />'),o.closest(".tutor-media-upload-wrap").find("input").val(t.id)}),e.open()}),l(document).on("click",".tutor-media-upload-trash",function(t){t.preventDefault();t=l(this);t.closest(".tutor-media-upload-wrap").find(".tutor-media-upload-btn").html('<i class="tutor-icon-image1"></i>'),t.closest(".tutor-media-upload-wrap").find("input").val("")});var u,c=(u=0,function(t,e){clearTimeout(u),u=setTimeout(t,e)});l(document).on("click",".tutor-add-instructor-btn",function(t){t.preventDefault();var e=l(this),t=l("#post\_ID").val();l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{course\_id:t,action:"tutor\_load\_instructors\_modal"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(l(".tutor-instructors-modal-wrap .modal-container").html(t.data.output),l(".tutor-instructors-modal-wrap").addClass("show"))},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("change keyup",".tutor-instructors-modal-wrap .tutor-modal-search-input",function(t){t.preventDefault();var o=l(this),a=l(".tutor-modal-wrap");c(function(){var t=o.val(),e=l("#post\_ID").val();l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{course\_id:e,search\_terms:t,action:"tutor\_load\_instructors\_modal"},beforeSend:function(){a.addClass("loading")},success:function(t){t.success&&(l(".tutor-instructors-modal-wrap .modal-container").html(t.data.output),l(".tutor-instructors-modal-wrap").addClass("show"))},complete:function(){a.removeClass("loading")}})},1e3)}),l(document).on("click",".add\_instructor\_to\_course\_btn",function(t){t.preventDefault();var e=l(this),o=l(".tutor-modal-wrap"),t=l("#post\_ID").val(),o=o.find("input").serializeObject();o.course\_id=t,o.action="tutor\_add\_instructors\_to\_course",l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:o,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(l(".tutor-course-available-instructors").html(t.data.output),l(".tutor-modal-wrap").removeClass("show"))},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click",".tutor-instructor-delete-btn",function(t){t.preventDefault();var e=l(this),o=l("#post\_ID").val(),t=e.closest(".added-instructor-item").attr("data-instructor-id");l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{course\_id:o,instructor\_id:t,action:"detach\_instructor\_from\_course"},success:function(t){t.success&&e.closest(".added-instructor-item").remove()}})}),l(document).on("click",".settings-tabs-navs li",function(t){t.preventDefault();var e=l(this),o=e.find("a").attr("data-target"),t=e.find("a").attr("href");e.addClass("active").siblings("li.active").removeClass("active"),l(".settings-tab-wrap").removeClass("active").hide(),l(o).addClass("active").show(),window.history.pushState({},"",t)}),l(document).on("lesson\_modal\_loaded quiz\_modal\_loaded assignment\_modal\_loaded",function(t,e){jQuery().select2&&l(".select2\_multiselect").select2({dropdownCssClass:"increasezindex"}),o()}),l(document).on("lesson\_modal\_loaded",function(t,e){l(".tutor-lesson-modal-wrap .modal-title h1").html(n("Lesson","tutor"))}),l(document).on("assignment\_modal\_loaded",function(t,e){l(".tutor-lesson-modal-wrap .modal-title h1").html(n("Assignment","tutor"))}),l(document).on("keyup change",".tutor-number-validation",function(t){var e=l(this),o=parseInt(e.val()),a=parseInt(e.attr("data-min")),n=parseInt(e.attr("data-max"));o<a?e.val(a):n<o&&e.val(n)}),l(document).on("click",".tutor-instructor-feedback",function(t){t.preventDefault();var e=l(this);l.ajax({url:window.ajaxurl||\_tutorobject.ajaxurl,type:"POST",data:{attempts\_id:e.data("attemptid"),feedback:l(".tutor-instructor-feedback-content").val(),action:"tutor\_instructor\_feedback"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(e.closest(".course-content-item").remove(),tutor\_toast(n("Success","tutor"),e.data("toast\_success\_message"),"success"))},complete:function(){e.removeClass("tutor-updating-message")}})});var d=l(".tutor-announcement-add-new"),p=l(".tutor-announcement-edit"),m=l(".tutor-announcement-delete"),f=l(".tutor-announcement-details"),t=l(".tutor-announcement-close-btn"),\_=l(".tutor-accouncement-create-modal"),v=l(".tutor-accouncement-update-modal"),h=l(".tutor-accouncement-details-modal");function w(t,e){var o=new URL(window.location.href),a=o.searchParams;return a.set(t,e),o.search=a.toString(),\_tutorobject.is\_admin?a.set("paged",1):a.set("current\_page",1),o.search=a.toString(),o.toString()}l(d).click(function(){\_.addClass("show"),l("#tutor-annoucement-backend-create-modal").addClass("show")}),l(f).click(function(){var t=l(this).attr("announcement-date"),e=l(this).attr("announcement-id"),o=l(this).attr("course-id"),a=l(this).attr("course-name"),n=l(this).attr("announcement-title"),i=l(this).attr("announcement-summary");l(".tutor-announcement-detail-content").html("<h3>".concat(n,"</h3><p>").concat(i,"</p>")),l(".tutor-announcement-detail-course-info p").html("".concat(a)),l(".tutor-announcement-detail-date-info p").html("".concat(t)),l("#tutor-announcement-edit-from-detail").attr("announcement-id",e),l("#tutor-announcement-edit-from-detail").attr("course-id",o),l("#tutor-announcement-edit-from-detail").attr("announcement-title",n),l("#tutor-announcement-edit-from-detail").attr("announcement-summary",i),l("#tutor-announcement-delete-from-detail").attr("announcement-id",e),h.addClass("show")}),l(p).click(function(){h&&h.removeClass("show");var t=l(this).attr("announcement-id"),e=l(this).attr("course-id"),o=l(this).attr("announcement-title"),a=l(this).attr("announcement-summary");l("#tutor-announcement-course-id").val(e),l("#announcement\_id").val(t),l("#tutor-announcement-title").val(o),l("#tutor-announcement-summary").val(a),v.addClass("show")}),l(t).click(function(){\_.removeClass("show"),v.removeClass("show"),h.removeClass("show"),l("#tutor-annoucement-backend-create-modal").removeClass("show")}),l(".tutor-announcements-form").on("submit",function(t){t.preventDefault();var e=l(this).find('button\[type="submit"\]'),t=l(".tutor-announcements-form").serialize()+"&action=tutor\_announcement\_create&action\_type=create";l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){if(l(".tutor-alert").remove(),"success"==t.status&&location.reload(),"validation\_error"==t.status){l(".tutor-announcements-create-alert").append('<div class="tutor-alert alert-warning"></div>');for(var e=0,o=Object.entries(t.message);e<o.length;e++){var a=q(o\[e\],2),a=(a\[0\],a\[1\]);l(".tutor-announcements-create-alert .tutor-alert").append("<li>".concat(a,"</li>"))}}"fail"==t.status&&l(".tutor-announcements-create-alert").html("<li>".concat(t.message,"</li>"))},error:function(t){console.log(t)}})}),l(".tutor-announcements-update-form").on("submit",function(t){t.preventDefault();var e=l(this).find('button\[type="submit"\]'),t=l(".tutor-announcements-update-form").serialize()+"&action=tutor\_announcement\_create&action\_type=update";l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){if(l(".tutor-alert").remove(),"success"==t.status&&location.reload(),"validation\_error"==t.status){l(".tutor-announcements-update-alert").append('<div class="tutor-alert alert-warning"></div>');for(var e=0,o=Object.entries(t.message);e<o.length;e++){var a=q(o\[e\],2),a=(a\[0\],a\[1\]);l(".tutor-announcements-update-alert > .tutor-alert").append("<li>".concat(a,"</li>"))}}"fail"==t.status&&l(".tutor-announcements-create-alert").html("<li>".concat(t.message,"</li>"))},error:function(){}})}),l(m).click(function(){var t=l(this).attr("announcement-id"),e=l("#tutor-announcement-tr-"+t);confirm("Do you want to delete?")&&l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{action:"tutor\_announcement\_delete",announcement\_id:t},beforeSend:function(){},success:function(t){e.remove(),h.length&&h.removeClass("show"),"fail"==t.status&&console.log(t.message)},error:function(){}})}),l(".tutor-announcement-course-sorting").on("change",function(t){window.location=w("course-id",l(this).val())}),l(".tutor-announcement-order-sorting").on("change",function(t){window.location=w("order",l(this).val())}),l(".tutor-announcement-date-sorting").on("change",function(t){window.location=w("date",l(this).val())}),l(".tutor-announcement-search-sorting").on("click",function(t){window.location=w("search",l(".tutor-announcement-search-field").val())}),l(document).click(function(){l(".tutor-dropdown").removeClass("show")}),l(".tutor-dropdown").click(function(t){t.stopPropagation(),l(".tutor-dropdown").hasClass("show")&&l(".tutor-dropdown").removeClass("show"),l(this).addClass("show")});var b,m=".video\_source\_wrap\_external\_url input, .video\_source\_wrap\_vimeo input, .video\_source\_wrap\_youtube input, .video\_source\_wrap\_html5, .video\_source\_upload\_wrap\_html5";l("body").on("paste",m,function(t){t.stopImmediatePropagation();var r=l(this).closest(".lesson-modal-form-wrap").find(".tutor-option-field-video-duration"),e=r.find("label"),o=l(this).hasClass("video\_source\_wrap\_html5")||l(this).hasClass("video\_source\_upload\_wrap\_html5"),a=l(this).data("autofill\_url");l(this).data("autofill\_url",null);function n(t){t?0==e.find("img").length&&e.append(' <img src="'+window.\_tutorobject.loading\_icon\_url+'" style="display:inline-block"/>'):e.find("img").remove()}function i(t){for(var e=Math.floor(t/3600),o=Math.floor((t-3600\*e)/60),t=Math.round(t-3600\*e-60\*o),a=\[e=e<10?"0"+e:e,o=o<10?"0"+o:o,t=t<10?"0"+t:t\],n=r.find("input"),i=0;i<3;i++)n.eq(i).val(a\[i\])}var s,u,c,t=o?l(this).find("span").data("video\_url"):a||t.originalEvent.clipboardData.getData("text");o||l(this).parent().hasClass("video\_source\_wrap\_external\_url")?((s=document.createElement("video")).addEventListener("loadedmetadata",function(){i(s.duration),n(!1)}),n(!0),s.src=t):l(this).parent().hasClass("video\_source\_wrap\_vimeo")?(u=(c=t.match(/^.\*(vimeo\\.com\\/)((channels\\/\[A-z\]+\\/)|(groups\\/\[A-z\]+\\/videos\\/))?(\[0-9\]+)/))?c\[5\]:null)&&(n(!0),l.getJSON("http://vimeo.com/api/v2/video/"+u+"/json",function(t){Array.isArray(t)&&t\[0\]&&void 0!==t\[0\].duration&&i(t\[0\].duration),n(!1)})):l(this).parent().hasClass("video\_source\_wrap\_youtube")&&(u=!(!(c=t.match(/^.\*((youtu.be\\/)|(v\\/)|(\\/u\\/\\w\\/)|(embed\\/)|(watch\\?))\\??v?=?(\[^#&?\]\*).\*/))||11!=c\[7\].length)&&c\[7\],c=l(this).data("youtube\_api\_key"),u&&c&&(c="https://www.googleapis.com/youtube/v3/videos?id="+u+"&key="+c+"&part=contentDetails",n(!0),l.getJSON(c,function(t){"object"==g(t)&&t.items&&t.items\[0\]&&t.items\[0\].contentDetails&&t.items\[0\].contentDetails.duration&&i(function(t){t=(t=t.match(/PT(\\d+H)?(\\d+M)?(\\d+S)?/)).slice(1).map(function(t){if(null!=t)return t.replace(/\\D/,"")});return 3600\*(parseInt(t\[0\])||0)+60\*(parseInt(t\[1\])||0)+(parseInt(t\[2\])||0)}(t.items\[0\].contentDetails.duration)),n(!1)})))}).on("input",m,function(){b&&clearTimeout(b);var e=l(this);b=setTimeout(function(){var t=(t=e.val())?t.trim():"";console.log("Trigger",t),t&&e.data("autofill\_url",t).trigger("paste")},700)}),l(".tutor-form-submit-through-ajax").submit(function(t){t.preventDefault();var e=l(this),o=l(this).attr("action")||window.location.href,a=l(this).attr("method")||"GET",t=l(this).serializeObject();e.find("button").addClass("tutor-updating-message"),l.ajax({url:o,type:a,data:t,success:function(){tutor\_toast(n("Success","tutor"),e.data("toast\_success\_message"),"success")},complete:function(){e.find("button").removeClass("tutor-updating-message")}})}),l.ajaxSetup({data:tutor\_get\_nonce\_data()})}),jQuery.fn.serializeObject=function(){var t={},e=this.serializeArray();return jQuery.each(e,function(){t\[this.name\]?(t\[this.name\].push||(t\[this.name\]=\[t\[this.name\]\]),t\[this.name\].push(this.value||"")):t\[this.name\]=this.value||""}),t},window.tutor\_toast=function(t,e,o){var a=((window.\_tutorobject||{}).tutor\_url||"")+"assets/images/";jQuery(".tutor-toast-parent").length||jQuery("body").append('<div class="tutor-toast-parent"></div>');var n=jQuery(' <div> <div> <img src="'+{success:a+"icon-check.svg",error:a+"icon-cross.svg"}\[o\]+'"/> </div> <div> <div> <b>'+t+"</b> <span>"+e+'</span> </div> </div> <div> <i class="tutor-toast-close tutor-icon-line-cross"></i> </div> </div>');n.find(".tutor-toast-close").click(function(){n.remove()}),jQuery(".tutor-toast-parent").append(n),setTimeout(function(){n&&n.fadeOut("fast",function(){jQuery(this).remove()})},5e3)},window.disableAddoption=function(){function t(t){t.classList.contains("disabled")||t.classList.add("disabled")}function e(t){t.classList.contains("disabled")&&t.classList.remove("disabled")}var o=document.querySelector(".tutor\_select\_value\_holder").value,a=document.getElementById("tutor\_quiz\_question\_answers"),n=document.getElementById("tutor\_quiz\_question\_answer\_form"),i=document.querySelector(".add\_question\_answers\_option");("open\_ended"===o||"short\_answer"===o||("true\_false"===o||"fill\_in\_the\_blank"===o)&&(n.hasChildNodes()||a.hasChildNodes())?t:e)(i)}},896:()=>{window.jQuery(document).ready(function(o){var a=wp.i18n.\_\_;o(document).on("click",".tutor-copy-text",function(t){t.stopImmediatePropagation(),t.preventDefault();var e=o(this).data("text"),t=o("<input>");o("body").append(t),t.val(e).select(),document.execCommand("copy"),t.remove(),tutor\_toast(a("Copied!","tutor"),e,"success")})})}},a={};function n(t){var e=a\[t\];if(void 0!==e)return e.exports;e=a\[t\]={exports:{}};return o\[t\](e,e.exports,n),e.exports}(()=>{"use strict";n(896),n(623);jQuery.fn.serializeObject=function(){var t={},e=this.serializeArray();return jQuery.each(e,function(){t\[this.name\]?(t\[this.name\].push||(t\[this.name\]=\[t\[this.name\]\]),t\[this.name\].push(this.value||"")):t\[this.name\]=this.value||""}),t},jQuery(document).ready(function(a){var t=window.location.href;if(0<t.indexOf("#")){a(".tutor-wizard-container > div").removeClass("active"),a(".tutor-wizard-container > div.tutor-setup-wizard-settings").addClass("active");t=t.split("#");if(t\[1\]){var e=a(".tutor-setup-title li."+t\[1\]).index();a(".tutor-setup-title li").removeClass("current"),a(".tutor-setup-content li").removeClass("active");for(var o=0;o<=e;o++)a(".tutor-setup-title li").eq(o).addClass("active"),e==o&&(a(".tutor-setup-title li").eq(o).addClass("current"),a(".tutor-setup-content li").eq(o).addClass("active"))}t=a("input\[name='enable\_course\_marketplace'").val();i(t||0)}function n(t){var e=t.parent().parent();t.prop("checked")?(e.find(".label-on").addClass("active"),e.find(".label-off").removeClass("active")):(e.find(".label-on").removeClass("active"),e.find(".label-off").addClass("active"))}function i(t){1==t?(a(".tutor-show-hide").addClass("active"),a(".tutor-setup-title li.instructor").removeClass("hide-this"),a(".tutor-setup-content li").eq(a(".tutor-setup-title li.instructor")).removeClass("hide-this")):(a(".tutor-show-hide").removeClass("active"),a(".tutor-setup-title li.instructor").addClass("hide-this"),a(".tutor-setup-content li").eq(a(".tutor-setup-title li.instructor")).addClass("hide-this"))}function r(){var t;a(".tutor-setup-title li.instructor").hasClass("hide-this")?(a(".tutor-steps").html(5),2<(t=a(".tutor-setup-title li.current").index())&&a(".tutor-setup-content li.active .tutor-steps-current").html(t)):(a(".tutor-steps").html(6),a(".tutor-setup-content li").each(function(){a(this).find(".tutor-steps-current").html(a(this).index()+1)}))}a(".tutor-setup-title li").on("click",function(t){t.preventDefault();var e=a(this).closest("li").index();a(".tutor-setup-title li").removeClass("active current"),a(".tutor-setup-title li").eq(e).addClass("active current"),a(".tutor-setup-content li").removeClass("active"),a(".tutor-setup-content li").eq(e).addClass("active"),window.location.hash=a("ul.tutor-setup-title li").eq(e).data("url");for(var o=0;o<=e;o++)a(".tutor-setup-title li").eq(o).addClass("active")}),a(".tutor-boarding-next, .tutor-boarding-skip").on("click",function(t){t.preventDefault(),a(".tutor-setup-wizard-boarding").removeClass("active"),a(".tutor-setup-wizard-type").addClass("active")}),a(".tutor-type-next, .tutor-type-skip").on("click",function(t){t.preventDefault(),a(".tutor-setup-wizard-type").removeClass("active"),a(".tutor-setup-wizard-settings").addClass("active"),a(".tutor-setup-title li").eq(0).addClass("active"),window.location.hash="general",i(a("input\[name='enable\_course\_marketplace\_setup'\]:checked").val())}),a("input\[type=radio\]\[name=enable\_course\_marketplace\_setup\]").change(function(){"0"==this.value?(a("input\[name=enable\_course\_marketplace\]").val(""),a("input\[name=enable\_tutor\_earning\]").val("")):"1"==this.value&&(a("input\[name=enable\_course\_marketplace\]").val("1"),a("input\[name=enable\_tutor\_earning\]").val("1"))}),a(".tutor-setup-previous").on("click",function(t){t.preventDefault();t=a(this).closest("li").index();a("ul.tutor-setup-title li").eq(t).removeClass("active"),0<t&&t==a(".tutor-setup-title li.instructor").index()+1&&a(".tutor-setup-title li.instructor").hasClass("hide-this")&&(t-=1),0<t?(a("ul.tutor-setup-title li").eq(t-1).addClass("active"),a("ul.tutor-setup-content li").removeClass("active").eq(t-1).addClass("active"),a("ul.tutor-setup-title li").removeClass("current").eq(t-1).addClass("current"),window.location.hash=a("ul.tutor-setup-title li").eq(t-1).data("url")):(a(".tutor-setup-wizard-settings").removeClass("active"),a(".tutor-setup-wizard-type").addClass("active"),window.location.hash=""),r()}),a(".tutor-setup-type-previous").on("click",function(t){a(".tutor-setup-wizard-type").removeClass("active"),a(".tutor-setup-wizard-boarding").addClass("active")}),a(".tutor-setup-skip, .tutor-setup-next").on("click",function(t){t.preventDefault();t=a(this).closest("li").index()+1;t==a(".tutor-setup-title li.instructor").index()&&a(".tutor-setup-title li.instructor").hasClass("hide-this")&&(t+=1),a("ul.tutor-setup-title li").eq(t).addClass("active"),a("ul.tutor-setup-content li").removeClass("active").eq(t).addClass("active"),a("ul.tutor-setup-title li").removeClass("current").eq(t).addClass("current"),window.location.hash=a("ul.tutor-setup-title li").eq(t).data("url"),r()}),a(".tutor-boarding-next, .tutor-boarding-skip").on("click",function(t){t.preventDefault(),a(".tutor-setup-wizard-boarding").removeClass("active"),a(".tutor-setup-wizard-type").addClass("active")}),a(".tutor-boarding").slick({speed:1e3,centerMode:!0,centerPadding:"19.5%",slidesToShow:1,arrows:!1,dots:!0,responsive:\[{breakpoint:768,settings:{arrows:!1,centerMode:!0,centerPadding:"50px",slidesToShow:1}},{breakpoint:480,settings:{arrows:!1,centerMode:!0,centerPadding:"30px",slidesToShow:1}}\]}),a(".tutor-redirect").on("click",function(t){var e=a(this);t.preventDefault();t=a("#tutor-setup-form").serializeObject();a.ajax({url:\_tutorobject.ajaxurl,type:"POST",data:t,success:function(t){t.success&&(window.location=e.data("url"))}})}),a(".tutor-reset-section").on("click",function(t){a(this).closest("li").find("input").val(function(){switch(this.type){case"text":return this.defaultValue;case"checkbox":case"radio":this.checked=this.defaultChecked;break;case"range":var t=a(this).closest(".limit-slider");if(!t.find(".range-input").hasClass("double-range-slider"))return t.find(".range-value").html(this.defaultValue),this.defaultValue;t.find(".range-value-1").html(this.defaultValue+"%"),a(".range-value-data-1").val(this.defaultValue),t.find(".range-value-2").html(100-this.defaultValue+"%"),a(".range-value-data-2").val(100-this.defaultValue);break;case"hidden":return this.value}})}),a(".tooltip-btn").on("click",function(t){t.preventDefault(),a(this).toggleClass("active")}),a(".input-switchbox").each(function(){n(a(this))}),a(".input-switchbox").click(function(){n(a(this))}),a(".selected").on("click",function(){a(".options-container").toggleClass("active")}),a(".option").each(function(){a(this).on("click",function(){a(".selected").html(a(this).find("label").html()),a(".options-container").removeClass("active")})}),a(".range-input").on("change mousemove",function(t){var e=a(this).val();a(this).parent().parent().find(".range-value").text(e)}),a(".double-range-slider").on("change mousemove",function(){var t=a(this).closest(".settings");t.find(".range-value-1").text(a(this).val()+"%"),t.find('input\[name="earning\_instructor\_commission"\]').val(a(this).val()),t.find(".range-value-2").text(100-a(this).val()+"%"),t.find('input\[name="earning\_admin\_commission"\]').val(100-a(this).val())}),a("#attempts-allowed-1").on("click",function(t){a("#attempts-allowed-numer").prop("disabled",!0)&&(a(this).parent().parent().parent().addClass("active"),a("#attempts-allowed-numer").prop("disabled",!1))}),a("#attempts-allowed-2").on("click",function(t){a("#attempts-allowed-2").is(":checked")&&(a(this).parent().parent().parent().removeClass("active"),a("#attempts-allowed-numer").prop("disabled",!0))}),a(".wizard-type-item").on("click",function(t){i(a(this).find("input").val())}),r(),a("input\[name='attempts-allowed'\]").on("change",function(t){"unlimited"==a(this).filter(":checked").val()?a("input\[name='quiz\_attempts\_allowed'\]").val(0):a("input\[name='quiz\_attempts\_allowed'\]").val(a("input\[name='attempts-allowed-number").val())}),a("input\[name='attempts-allowed-number'\]").on("change",function(t){a("input\[name='quiz\_attempts\_allowed'\]").val(a(this).val())}),a("input\[name='attempts-allowed-number'\]").on("focus",function(t){a("input\[name='attempts-allowed'\]\[value='single'\]").attr("checked",!0)})})})()})();
tutor/tags/1.9.11/classes/Assets.php
r2610239
r2615802
158
158
}
159
159
//End: chart data
160
if (tutor\_utils()->get\_option('load\_tutor\_css')){
161
wp\_enqueue\_style('tutor-frontend', tutor()->url."assets/css/tutor-front{$suffix}.css", array(), tutor()->version);
162
}
160
161
wp\_enqueue\_style('tutor-frontend', tutor()->url."assets/css/tutor-front{$suffix}.css", array(), tutor()->version);
163
162
164
163
/\*\*
tutor/tags/1.9.11/classes/Options.php
r2610239
r2615802
151
151
'default' => '0',
152
152
'desc' => \_\_('Disable to use the default WordPress login page', 'tutor'),
153
),
154
'load\_tutor\_css' => array(
155
'type' => 'checkbox',
156
'label' => \_\_('Load Tutor CSS', 'tutor'),
157
'label\_title' => \_\_('Enable', 'tutor'),
158
'default' => '0',
159
'desc' => \_\_('If your theme has its own styling, then you can turn it off to load CSS from the plugin directory', 'tutor'),
160
153
),
161
154
'student\_must\_login\_to\_view\_course' => array(
tutor/tags/1.9.11/classes/Quiz.php
r2585449
r2615802
285
285
$attempt\_id = (int) sanitize\_text\_field(tutor\_utils()->avalue\_dot('attempt\_id', $\_POST));
286
286
$attempt = tutor\_utils()->get\_attempt($attempt\_id);
287
$course\_id = tutor\_utils()->get\_course\_by\_quiz($attempt->quiz\_id)->ID;
287
288
288
289
$attempt\_answers = isset($\_POST\['attempt'\]) ? $\_POST\['attempt'\] : false;
…
…
454
455
}
455
456
456
do\_action('tutor\_quiz/attempt\_ended', $attempt\_id);
457
do\_action('tutor\_quiz/attempt\_ended', $attempt\_id, $course\_id, $user\_id);
457
458
return true;
458
459
}
…
…
549
550
}
550
551
551
$attempt\_answer = $wpdb->get\_row($wpdb->prepare("SELECT \* FROM {$wpdb->prefix}tutor\_quiz\_attempt\_answers WHERE attempt\_answer\_id = %d ", $attempt\_answer\_id));
552
$attempt\_answer = $wpdb->get\_row($wpdb->prepare(
553
"SELECT \* FROM {$wpdb->prefix}tutor\_quiz\_attempt\_answers
554
WHERE attempt\_answer\_id = %d ",
555
$attempt\_answer\_id
556
));
552
557
553
558
$attempt = tutor\_utils()->get\_attempt($attempt\_id);
554
559
$question = tutils()->get\_quiz\_question\_by\_id($attempt\_answer->question\_id);
555
560
$course\_id = $attempt->course\_id;
561
$student\_id = $attempt->user\_id;
556
562
$previous\_ans = $attempt\_answer->is\_correct;
557
563
…
…
611
617
}
612
618
do\_action('tutor\_quiz\_review\_answer\_after', $attempt\_answer\_id, $attempt\_id, $mark\_as);
619
do\_action('tutor\_quiz/answer/review/after', $attempt\_answer\_id, $course\_id, $student\_id);
613
620
614
621
if (wp\_doing\_ajax())
tutor/tags/1.9.11/classes/RestAPI.php
r2396788
r2615802
37
37
38
38
private $ratingObj;
39
39
40
40
public function \_\_construct() {
41
41
42
42
$this->path = plugin\_dir\_path(TUTOR\_FILE);
43
//autoloading clases
44
if (function\_exists('\_\_autoload')) {
45
spl\_autoload\_register('\_\_autoload');
46
}
43
47
44
spl\_autoload\_register(array($this, 'loader'));
48
45
tutor/tags/1.9.11/classes/Tutor.php
r2610239
r2615802
104
104
\* Loading Autoloader
105
105
\*/
106
107
if ( function\_exists( '\_\_autoload' ) ) {
108
spl\_autoload\_register( '\_\_autoload' );
109
}
110
106
spl\_autoload\_register(array($this, 'loader'));
111
107
…
…
551
547
$options = array (
552
548
'pagination\_per\_page' => '20',
553
'load\_tutor\_css' => '1',
554
'load\_tutor\_js' => '1',
555
549
'course\_allow\_upload\_private\_files' => '1',
556
550
'display\_course\_instructors' => '1',
tutor/tags/1.9.11/classes/Utils.php
r2610239
r2615802
249
249
\*/
250
250
public function has\_pmpro($check\_monetization=false) {
251
$has\_pmpro = $this->is\_plugin\_active('paid-memberships-pro/paid-memberships-pro.php');
252
return $has\_pmpro && (!$check\_monetization || get\_tutor\_option('monetize\_by') == 'pmpro' );
253
}
254
255
public function is\_plugin\_active($plugin\_path) {
251
256
$activated\_plugins = apply\_filters( 'active\_plugins', get\_option( 'active\_plugins' ) );
252
$depends = array( 'paid-memberships-pro/paid-memberships-pro.php' );
253
$has\_pmpro = count( array\_intersect( $depends, $activated\_plugins ) ) == count( $depends );
254
255
return $has\_pmpro && (!$check\_monetization || get\_tutor\_option('monetize\_by') == 'pmpro' );
257
$depends = is\_array($plugin\_path) ? $plugin\_path : array( $plugin\_path );
258
$has\_plugin = count( array\_intersect( $depends, $activated\_plugins ) ) == count( $depends );
259
260
return $has\_plugin;
256
261
}
257
262
258
263
public function has\_wcs(){
259
$activated\_plugins = apply\_filters( 'active\_plugins', get\_option( 'active\_plugins' ) );
260
$depends = array( 'woocommerce-subscriptions/woocommerce-subscriptions.php' );
261
$has\_wcs = count( array\_intersect( $depends, $activated\_plugins ) ) == count( $depends );
264
$has\_wcs = $this->is\_plugin\_active('woocommerce-subscriptions/woocommerce-subscriptions.php');
262
265
return $has\_wcs;
266
}
267
268
public function is\_addon\_enabled($basename) {
269
if($this->is\_plugin\_active('tutor-pro/tutor-pro.php')) {
270
$addonConfig = $this->get\_addon\_config($basename);
271
272
return (bool) $this->avalue\_dot('is\_enable', $addonConfig);
273
}
263
274
}
264
275
…
…
7644
7655
return $data;
7645
7656
}
7657
7658
public function get\_course\_duration($course\_id, $return\_array, $texts = array('h'=>'hr', 'm'=>'min', 's'=>'sec')) {
7659
$duration = maybe\_unserialize(get\_post\_meta($course\_id, '\_course\_duration', true));
7660
$durationHours = tutor\_utils()->avalue\_dot('hours', $duration);
7661
$durationMinutes = tutor\_utils()->avalue\_dot('minutes', $duration);
7662
$durationSeconds = tutor\_utils()->avalue\_dot('seconds', $duration);
7663
7664
if($return\_array) {
7665
return array(
7666
'duration' => $duration,
7667
'durationHours' => $durationHours,
7668
'durationMinutes' => $durationMinutes,
7669
'durationSeconds' => $durationSeconds,
7670
);
7671
}
7672
7673
if(!$durationHours && !$durationMinutes && !$durationSeconds) {
7674
return '';
7675
}
7676
7677
return $durationHours . $texts\['h'\] . ' ' .
7678
$durationMinutes . $texts\['m'\] . ' ' .
7679
$durationSeconds . $texts\['s'\];
7680
}
7646
7681
}
tutor/tags/1.9.11/languages/tutor.pot
r2610239
r2615802
14
14
"Plural-Forms: nplurals=2; plural=(n != 1);\\n"
15
15
16
#: tutor.php:62, classes/Tutor.php:428
16
#: tutor.php:62, classes/Tutor.php:424
17
17
msgid "Tutor Instructor"
18
18
msgstr ""
…
…
126
126
msgstr ""
127
127
128
#: classes/Admin.php:60, classes/Admin.php:60, classes/Course.php:484, classes/Options.php:600, classes/Quiz\_Attempts\_List.php:113, templates/student-public-profile.php:103, views/pages/students.php:8
128
#: classes/Admin.php:60, classes/Admin.php:60, classes/Course.php:484, classes/Options.php:593, classes/Quiz\_Attempts\_List.php:113, templates/student-public-profile.php:103, views/pages/students.php:8
129
129
msgid "Students"
130
130
msgstr ""
131
131
132
#: classes/Admin.php:63, classes/Admin.php:63, classes/Course.php:182, classes/Course.php:261, classes/Options.php:561, views/pages/instructors.php:29
132
#: classes/Admin.php:63, classes/Admin.php:63, classes/Course.php:182, classes/Course.php:261, classes/Options.php:554, views/pages/instructors.php:29
133
133
msgid "Instructors"
134
134
msgstr ""
135
135
136
#: classes/Admin.php:66, classes/Admin.php:66, classes/Utils.php:1284, classes/Utils.php:2469, templates/dashboard/announcements.php:123, views/pages/announcements.php:104, views/pages/announcements.php:114
136
#: classes/Admin.php:66, classes/Admin.php:66, classes/Utils.php:1295, classes/Utils.php:2480, templates/dashboard/announcements.php:123, views/pages/announcements.php:104, views/pages/announcements.php:114
137
137
msgid "Announcements"
138
138
msgstr ""
…
…
146
146
msgstr ""
147
147
148
#: classes/Admin.php:70, classes/Admin.php:70, classes/Utils.php:2471, templates/dashboard/quiz-attempts.php:19, views/pages/quiz\_attempts.php:29
148
#: classes/Admin.php:70, classes/Admin.php:70, classes/Utils.php:2482, templates/dashboard/quiz-attempts.php:19, views/pages/quiz\_attempts.php:29
149
149
msgid "Quiz Attempts"
150
150
msgstr ""
…
…
158
158
msgstr ""
159
159
160
#: classes/Admin.php:80, classes/Admin.php:80, classes/Admin.php:453, classes/Utils.php:2484, templates/dashboard/settings.php:8, views/modal/add\_quiz.php:24, views/modal/edit\_quiz.php:35, templates/dashboard/notifications/profile-completion.php:14, templates/dashboard/settings/education.php:7, templates/dashboard/settings/skill.php:8
160
#: classes/Admin.php:80, classes/Admin.php:80, classes/Admin.php:453, classes/Utils.php:2495, templates/dashboard/settings.php:8, views/modal/add\_quiz.php:24, views/modal/edit\_quiz.php:35, templates/dashboard/notifications/profile-completion.php:14, templates/dashboard/settings/education.php:7, templates/dashboard/settings/skill.php:8
161
161
msgid "Settings"
162
162
msgstr ""
…
…
202
202
msgstr ""
203
203
204
#: classes/Ajax.php:62, classes/Ajax.php:115, classes/Ajax.php:179, classes/Ajax.php:237, classes/Ajax.php:290, classes/Ajax.php:332, classes/Ajax.php:353, classes/Ajax.php:456, classes/Ajax.php:527, classes/Course.php:424, classes/Course.php:459, classes/Course.php:696, classes/Course.php:747, classes/Course.php:784, classes/Course.php:797, classes/Instructor.php:250, classes/Lesson.php:121, classes/Lesson.php:161, classes/Lesson.php:218, classes/Quiz.php:147, classes/Quiz.php:548, classes/Quiz.php:638, classes/Quiz.php:684, classes/Quiz.php:728, classes/Quiz.php:768, classes/Quiz.php:791, classes/Quiz.php:887, classes/Quiz.php:910, classes/Quiz.php:931, classes/Quiz.php:1042, classes/Quiz.php:1087, classes/Quiz.php:1168, classes/Quiz.php:1228, classes/Quiz.php:1253, classes/Q\_and\_A.php:71
204
#: classes/Ajax.php:62, classes/Ajax.php:115, classes/Ajax.php:179, classes/Ajax.php:237, classes/Ajax.php:290, classes/Ajax.php:332, classes/Ajax.php:353, classes/Ajax.php:456, classes/Ajax.php:527, classes/Course.php:424, classes/Course.php:459, classes/Course.php:696, classes/Course.php:747, classes/Course.php:784, classes/Course.php:797, classes/Instructor.php:250, classes/Lesson.php:121, classes/Lesson.php:161, classes/Lesson.php:218, classes/Quiz.php:147, classes/Quiz.php:549, classes/Quiz.php:645, classes/Quiz.php:691, classes/Quiz.php:735, classes/Quiz.php:775, classes/Quiz.php:798, classes/Quiz.php:894, classes/Quiz.php:917, classes/Quiz.php:938, classes/Quiz.php:1049, classes/Quiz.php:1094, classes/Quiz.php:1175, classes/Quiz.php:1235, classes/Quiz.php:1260, classes/Q\_and\_A.php:71
205
205
msgid "Access Denied"
206
206
msgstr ""
…
…
302
302
msgstr ""
303
303
304
#: classes/Course.php:483, classes/Options.php:454, classes/Post\_types.php:172, templates/single/course/course-topics.php:38
304
#: classes/Course.php:483, classes/Options.php:447, classes/Post\_types.php:172, templates/single/course/course-topics.php:38
305
305
msgid "Lessons"
306
306
msgstr ""
…
…
354
354
msgstr ""
355
355
356
#: classes/Course\_Settings\_Tabs.php:31, classes/Options.php:230, classes/Tutor\_Setup.php:400, views/metabox/course/settings-tabs.php:13
356
#: classes/Course\_Settings\_Tabs.php:31, classes/Options.php:223, classes/Tutor\_Setup.php:400, views/metabox/course/settings-tabs.php:13
357
357
msgid "Course Settings"
358
358
msgstr ""
359
359
360
#: classes/Course\_Settings\_Tabs.php:37, classes/Options.php:120, classes/Options.php:123, classes/Options.php:229, classes/Tutor\_Setup.php:561, classes/WooCommerce.php:281
360
#: classes/Course\_Settings\_Tabs.php:37, classes/Options.php:120, classes/Options.php:123, classes/Options.php:222, classes/Tutor\_Setup.php:561, classes/WooCommerce.php:281
361
361
msgid "General"
362
362
msgstr ""
…
…
370
370
msgstr ""
371
371
372
#: classes/Course\_Settings\_Tabs.php:45, classes/Options.php:136, classes/Options.php:143, classes/Options.php:157, classes/Options.php:170, classes/Options.php:177, classes/Options.php:184, classes/Options.php:191, classes/Options.php:204, classes/Options.php:235, classes/Options.php:253, classes/Options.php:270, classes/Options.php:303, classes/Options.php:321, classes/Options.php:327, classes/Options.php:463, classes/Options.php:570, classes/Options.php:584, classes/Options.php:591, classes/Options.php:616, classes/Options.php:623, classes/Options.php:641, classes/Options.php:665, classes/User.php:177
372
#: classes/Course\_Settings\_Tabs.php:45, classes/Options.php:136, classes/Options.php:143, classes/Options.php:163, classes/Options.php:170, classes/Options.php:177, classes/Options.php:184, classes/Options.php:197, classes/Options.php:228, classes/Options.php:246, classes/Options.php:263, classes/Options.php:296, classes/Options.php:314, classes/Options.php:320, classes/Options.php:456, classes/Options.php:563, classes/Options.php:577, classes/Options.php:584, classes/Options.php:609, classes/Options.php:616, classes/Options.php:634, classes/Options.php:658, classes/User.php:177
373
373
msgid "Enable"
374
374
msgstr ""
…
…
638
638
msgstr ""
639
639
640
#: classes/Lesson.php:271, classes/Options.php:226, classes/Question\_Answers\_List.php:75, classes/Quiz\_Attempts\_List.php:115, classes/Tutor\_Setup.php:562, templates/student-public-profile.php:98, templates/dashboard/question-answer.php:27, templates/shortcode/tutor-instructor.php:27, views/pages/view\_attempt.php:73, templates/dashboard/announcements/details.php:19, templates/dashboard/assignments/review.php:44, templates/dashboard/assignments/submitted.php:30, templates/dashboard/earning/statement.php:13, templates/single/quiz/top.php:27
640
#: classes/Lesson.php:271, classes/Options.php:219, classes/Question\_Answers\_List.php:75, classes/Quiz\_Attempts\_List.php:115, classes/Tutor\_Setup.php:562, templates/student-public-profile.php:98, templates/dashboard/question-answer.php:27, templates/shortcode/tutor-instructor.php:27, views/pages/view\_attempt.php:73, templates/dashboard/announcements/details.php:19, templates/dashboard/assignments/review.php:44, templates/dashboard/assignments/submitted.php:30, templates/dashboard/earning/statement.php:13, templates/single/quiz/top.php:27
641
641
msgid "Course"
642
642
msgstr ""
…
…
699
699
msgstr ""
700
700
701
#: classes/Options.php:128, classes/Utils.php:6780
701
#: classes/Options.php:128, classes/Utils.php:6791
702
702
msgid "Dashboard Page"
703
703
msgstr ""
…
…
727
727
msgstr ""
728
728
729
#: classes/Options.php:150, classes/Options.php:334, classes/Options.php:341, classes/Options.php:348, classes/Options.php:355, classes/Options.php:362, classes/Options.php:369, classes/Options.php:376, classes/Options.php:383, classes/Options.php:390, classes/Options.php:397, classes/Options.php:404, classes/Options.php:411, classes/Options.php:418, classes/Options.php:425, classes/Options.php:432, classes/Options.php:539
729
#: classes/Options.php:150, classes/Options.php:327, classes/Options.php:334, classes/Options.php:341, classes/Options.php:348, classes/Options.php:355, classes/Options.php:362, classes/Options.php:369, classes/Options.php:376, classes/Options.php:383, classes/Options.php:390, classes/Options.php:397, classes/Options.php:404, classes/Options.php:411, classes/Options.php:418, classes/Options.php:425, classes/Options.php:532
730
730
msgid "Disable"
731
731
msgstr ""
…
…
736
736
737
737
#: classes/Options.php:156
738
msgid "Load Tutor CSS"
739
msgstr ""
740
741
#: classes/Options.php:159
742
msgid "If your theme has its own styling, then you can turn it off to load CSS from the plugin directory"
743
msgstr ""
744
745
#: classes/Options.php:163
746
738
msgid "Course Visibility"
747
739
msgstr ""
748
740
741
#: classes/Options.php:157
742
msgid "Logged in only"
743
msgstr ""
744
745
#: classes/Options.php:158
746
msgid "Students must be logged in to view course"
747
msgstr ""
748
749
#: classes/Options.php:162
750
msgid "Erase upon uninstallation"
751
msgstr ""
752
749
753
#: classes/Options.php:164
750
msgid "Logged in only"
751
msgstr ""
752
753
#: classes/Options.php:165
754
msgid "Students must be logged in to view course"
754
msgid "Delete all data during uninstallation"
755
755
msgstr ""
756
756
757
757
#: classes/Options.php:169
758
msgid "Erase upon uninstallation"
759
msgstr ""
760
761
#: classes/Options.php:171
762
msgid "Delete all data during uninstallation"
763
msgstr ""
764
765
#: classes/Options.php:176
766
758
msgid "Spotlight mode"
767
759
msgstr ""
768
760
769
#: classes/Options.php:179
761
#: classes/Options.php:172
770
762
msgid "This will hide the header and the footer and enable spotlight (full screen) mode when students view lessons."
771
763
msgstr ""
772
764
773
#: classes/Options.php:183, classes/Tutor\_Setup.php:381
765
#: classes/Options.php:176, classes/Tutor\_Setup.php:381
774
766
msgid "YouTube Player"
775
767
msgstr ""
776
768
777
#: classes/Options.php:186, classes/Options.php:193
769
#: classes/Options.php:179, classes/Options.php:186
778
770
msgid "Disable this option to use Tutor LMS video player."
779
771
msgstr ""
780
772
781
#: classes/Options.php:190, classes/Tutor\_Setup.php:386
773
#: classes/Options.php:183, classes/Tutor\_Setup.php:386
782
774
msgid "Vimeo Player"
783
775
msgstr ""
784
776
785
#: classes/Options.php:197
777
#: classes/Options.php:190
786
778
msgid "Pagination"
787
779
msgstr ""
788
780
781
#: classes/Options.php:192
782
msgid "Number of items you would like displayed \\"per page\\" in the pagination"
783
msgstr ""
784
785
#: classes/Options.php:196
786
msgid "Maintenance Mode"
787
msgstr ""
788
789
789
#: classes/Options.php:199
790
msgid "Number of items you would like displayed \\"per page\\" in the pagination"
790
msgid "Enabling the maintenance mode allows you to display a custom message on the frontend. During this time, visitors can not access the site content. But the wp-admin dashboard will remain accessible."
791
791
msgstr ""
792
792
793
793
#: classes/Options.php:203
794
msgid "Maintenance Mode"
794
msgid "Frontend Admin Bar"
795
msgstr ""
796
797
#: classes/Options.php:204
798
msgid "Hide"
795
799
msgstr ""
796
800
797
801
#: classes/Options.php:206
798
msgid "Enabling the maintenance mode allows you to display a custom message on the frontend. During this time, visitors can not access the site content. But the wp-admin dashboard will remain accessible."
802
msgid "Hide admin bar option allow you to hide WordPress admin bar entirely from the frontend. It will still show to administrator roles user"
799
803
msgstr ""
800
804
801
805
#: classes/Options.php:210
802
msgid "Frontend Admin Bar"
803
msgstr ""
804
805
#: classes/Options.php:211
806
msgid "Hide"
807
msgstr ""
808
809
#: classes/Options.php:213
810
msgid "Hide admin bar option allow you to hide WordPress admin bar entirely from the frontend. It will still show to administrator roles user"
811
msgstr ""
812
813
#: classes/Options.php:217
814
806
msgid "Error message for wrong login credentials"
815
807
msgstr ""
816
808
817
#: classes/Options.php:219
809
#: classes/Options.php:212
818
810
msgid "Login error message displayed when the user puts wrong login credentials."
819
811
msgstr ""
820
812
813
#: classes/Options.php:227
814
msgid "Gutenberg Editor"
815
msgstr ""
816
817
#: classes/Options.php:229
818
msgid "Use Gutenberg editor on course description area."
819
msgstr ""
820
821
#: classes/Options.php:233, classes/Options.php:239, classes/Options.php:308, classes/Options.php:461, classes/WooCommerce.php:292
822
msgid "Enable / Disable"
823
msgstr ""
824
821
825
#: classes/Options.php:234
822
msgid "Gutenberg Editor"
823
msgstr ""
824
825
#: classes/Options.php:236
826
msgid "Use Gutenberg editor on course description area."
827
msgstr ""
828
829
#: classes/Options.php:240, classes/Options.php:246, classes/Options.php:315, classes/Options.php:468, classes/WooCommerce.php:292
830
msgid "Enable / Disable"
826
msgid "Hide course products from shop page"
827
msgstr ""
828
829
#: classes/Options.php:235
830
msgid "Enabling this feature will remove course products from the shop page."
831
msgstr ""
832
833
#: classes/Options.php:240
834
msgid "Course Content Access"
831
835
msgstr ""
832
836
833
837
#: classes/Options.php:241
834
msgid "Hide course products from shop page"
835
msgstr ""
836
837
#: classes/Options.php:242
838
msgid "Enabling this feature will remove course products from the shop page."
838
msgid "Allow instructors and admins to view the course content without enrolling"
839
msgstr ""
840
841
#: classes/Options.php:245
842
msgid "Auto redirect to courses"
839
843
msgstr ""
840
844
841
845
#: classes/Options.php:247
842
msgid "Course Content Access"
843
msgstr ""
844
845
#: classes/Options.php:248
846
msgid "Allow instructors and admins to view the course content without enrolling"
847
msgstr ""
848
849
#: classes/Options.php:252
850
msgid "Auto redirect to courses"
851
msgstr ""
852
853
#: classes/Options.php:254
854
846
msgid "When a user's WooCommerce order is auto-completed, they will be redirected to enrolled courses"
855
847
msgstr ""
856
848
849
#: classes/Options.php:251
850
msgid "Course Completion Process"
851
msgstr ""
852
853
#: classes/Options.php:255
854
msgid "Flexible"
855
msgstr ""
856
857
#: classes/Options.php:256
858
msgid "Strict Mode"
859
msgstr ""
860
857
861
#: classes/Options.php:258
858
msgid "Course Completion Process"
862
msgid "Students can complete courses anytime in the Flexible mode. In the Strict mode, students have to complete, pass all the lessons and quizzes (if any) to mark a course as complete."
859
863
msgstr ""
860
864
861
865
#: classes/Options.php:262
862
msgid "Flexible"
863
msgstr ""
864
865
#: classes/Options.php:263
866
msgid "Strict Mode"
867
msgstr ""
868
869
#: classes/Options.php:265
870
msgid "Students can complete courses anytime in the Flexible mode. In the Strict mode, students have to complete, pass all the lessons and quizzes (if any) to mark a course as complete."
866
msgid "Course Retake"
867
msgstr ""
868
869
#: classes/Options.php:264
870
msgid "Enabling this feature will allow students to reset course progress and start over."
871
871
msgstr ""
872
872
873
873
#: classes/Options.php:269
874
msgid "Course Retake"
875
msgstr ""
876
877
#: classes/Options.php:271
878
msgid "Enabling this feature will allow students to reset course progress and start over."
879
msgstr ""
880
881
#: classes/Options.php:276
882
874
msgid "Archive"
883
875
msgstr ""
884
876
877
#: classes/Options.php:270
878
msgid "Course Archive Settings"
879
msgstr ""
880
881
#: classes/Options.php:274
882
msgid "Course Archive Page"
883
msgstr ""
884
885
885
#: classes/Options.php:277
886
msgid "Course Archive Settings"
886
msgid "This page will be used to list all the published courses."
887
887
msgstr ""
888
888
889
889
#: classes/Options.php:281
890
msgid "Course Archive Page"
890
msgid "Column Per Row"
891
891
msgstr ""
892
892
893
893
#: classes/Options.php:284
894
msgid "This page will be used to list all the published courses."
895
msgstr ""
896
897
#: classes/Options.php:288
898
msgid "Column Per Row"
894
msgid "Define how many column you want to use to display courses."
895
msgstr ""
896
897
#: classes/Options.php:288, classes/Tutor\_Setup.php:419
898
msgid "Courses Per Page"
899
899
msgstr ""
900
900
901
901
#: classes/Options.php:291
902
msgid "Define how many column you want to use to display courses."
903
msgstr ""
904
905
#: classes/Options.php:295, classes/Tutor\_Setup.php:419
906
msgid "Courses Per Page"
907
msgstr ""
908
909
#: classes/Options.php:298
910
902
msgid "Define how many courses you want to show per page"
911
903
msgstr ""
912
904
913
#: classes/Options.php:302
905
#: classes/Options.php:295
914
906
msgid "Course Filter"
915
907
msgstr ""
916
908
917
#: classes/Options.php:304
909
#: classes/Options.php:297
918
910
msgid "Show sorting and filtering options on course archive page"
919
911
msgstr ""
920
912
921
#: classes/Options.php:308
913
#: classes/Options.php:301
922
914
msgid "Preferred Course Filters"
923
915
msgstr ""
924
916
925
#: classes/Options.php:310
917
#: classes/Options.php:303
926
918
msgid "Choose preferred filter options you'd like to show in course archive page."
927
919
msgstr ""
928
920
929
#: classes/Options.php:316
921
#: classes/Options.php:309
930
922
msgid "Course Display Settings"
931
923
msgstr ""
932
924
933
#: classes/Options.php:320
925
#: classes/Options.php:313
934
926
msgid "Display Instructor Info"
935
927
msgstr ""
936
928
929
#: classes/Options.php:315
930
msgid "Show instructor bio on each page"
931
msgstr ""
932
933
#: classes/Options.php:319
934
msgid "Question and Answer"
935
msgstr ""
936
937
937
#: classes/Options.php:322
938
msgid "Show instructor bio on each page"
938
msgid "Enabling this feature will add a Q&A section on every course."
939
939
msgstr ""
940
940
941
941
#: classes/Options.php:326
942
msgid "Question and Answer"
942
msgid "Course Author"
943
943
msgstr ""
944
944
945
945
#: classes/Options.php:329
946
msgid "Enabling this feature will add a Q&A section on every course."
946
msgid "Disabling this feature will be removed course author name from the course page."
947
947
msgstr ""
948
948
949
949
#: classes/Options.php:333
950
msgid "Course Author"
950
msgid "Course Level"
951
951
msgstr ""
952
952
953
953
#: classes/Options.php:336
954
msgid "Disabling this feature will be removed course author name from the course page."
954
msgid "Disabling this feature will be removed course level from the course page."
955
955
msgstr ""
956
956
957
957
#: classes/Options.php:340
958
msgid "Course Level"
958
msgid "Course Share"
959
959
msgstr ""
960
960
961
961
#: classes/Options.php:343
962
msgid "Disabling this feature will be removed course level from the course page."
962
msgid "Disabling this feature will be removed course share option from the course page."
963
963
msgstr ""
964
964
965
965
#: classes/Options.php:347
966
msgid "Course Share"
966
msgid "Course Duration"
967
967
msgstr ""
968
968
969
969
#: classes/Options.php:350
970
msgid "Disabling this feature will be removed course share option from the course page."
970
msgid "Disabling this feature will be removed course duration from the course page."
971
971
msgstr ""
972
972
973
973
#: classes/Options.php:354
974
msgid "Course Duration"
974
msgid "Course Total Enrolled"
975
975
msgstr ""
976
976
977
977
#: classes/Options.php:357
978
msgid "Disabling this feature will be removed course duration from the course page."
978
msgid "Disabling this feature will be removed course total enrolled from the course page."
979
979
msgstr ""
980
980
981
981
#: classes/Options.php:361
982
msgid "Course Total Enrolled"
982
msgid "Course Update Date"
983
983
msgstr ""
984
984
985
985
#: classes/Options.php:364
986
msgid "Disabling this feature will be removed course total enrolled from the course page."
986
msgid "Disabling this feature will be removed course update date from the course page."
987
987
msgstr ""
988
988
989
989
#: classes/Options.php:368
990
msgid "Course Update Date"
990
msgid "Course Progress Bar"
991
991
msgstr ""
992
992
993
993
#: classes/Options.php:371
994
msgid "Disabling this feature will be removed course update date from the course page."
994
msgid "Disabling this feature will be removed completing progress bar from the course page."
995
995
msgstr ""
996
996
997
997
#: classes/Options.php:375
998
msgid "Course Progress Bar"
998
msgid "Course Material"
999
999
msgstr ""
1000
1000
1001
1001
#: classes/Options.php:378
1002
msgid "Disabling this feature will be removed completing progress bar from the course page."
1002
msgid "Disabling this feature will be removed course material from the course page."
1003
1003
msgstr ""
1004
1004
1005
1005
#: classes/Options.php:382
1006
msgid "Course Material"
1006
msgid "Course About"
1007
1007
msgstr ""
1008
1008
1009
1009
#: classes/Options.php:385
1010
msgid "Disabling this feature will be removed course material from the course page."
1010
msgid "Disabling this feature will be removed course about from the course page."
1011
1011
msgstr ""
1012
1012
1013
1013
#: classes/Options.php:389
1014
msgid "Course About"
1014
msgid "Course Description"
1015
1015
msgstr ""
1016
1016
1017
1017
#: classes/Options.php:392
1018
msgid "Disabling this feature will be removed course about from the course page."
1018
msgid "Disabling this feature will be removed course description from the course page."
1019
1019
msgstr ""
1020
1020
1021
1021
#: classes/Options.php:396
1022
msgid "Course Description"
1022
msgid "Course Benefits"
1023
1023
msgstr ""
1024
1024
1025
1025
#: classes/Options.php:399
1026
msgid "Disabling this feature will be removed course description from the course page."
1026
msgid "Disabling this feature will be removed course benefits from the course page."
1027
1027
msgstr ""
1028
1028
1029
1029
#: classes/Options.php:403
1030
msgid "Course Benefits"
1030
msgid "Course Requirements"
1031
1031
msgstr ""
1032
1032
1033
1033
#: classes/Options.php:406
1034
msgid "Disabling this feature will be removed course benefits from the course page."
1034
msgid "Disabling this feature will be removed course requirements from the course page."
1035
1035
msgstr ""
1036
1036
1037
1037
#: classes/Options.php:410
1038
msgid "Course Requirements"
1038
msgid "Course Target Audience"
1039
1039
msgstr ""
1040
1040
1041
1041
#: classes/Options.php:413
1042
msgid "Disabling this feature will be removed course requirements from the course page."
1042
msgid "Disabling this feature will be removed course target audience from the course page."
1043
1043
msgstr ""
1044
1044
1045
1045
#: classes/Options.php:417
1046
msgid "Course Target Audience"
1046
msgid "Course Announcements"
1047
1047
msgstr ""
1048
1048
1049
1049
#: classes/Options.php:420
1050
msgid "Disabling this feature will be removed course target audience from the course page."
1050
msgid "Disabling this feature will be removed course announcements from the course page."
1051
1051
msgstr ""
1052
1052
1053
1053
#: classes/Options.php:424
1054
msgid "Course Announcements"
1054
msgid "Course Review"
1055
1055
msgstr ""
1056
1056
1057
1057
#: classes/Options.php:427
1058
msgid "Disabling this feature will be removed course announcements from the course page."
1058
msgid "Disabling this feature will be removed course review system from the course page."
1059
1059
msgstr ""
1060
1060
1061
1061
#: classes/Options.php:431
1062
msgid "Course Review"
1063
msgstr ""
1064
1065
#: classes/Options.php:434
1066
msgid "Disabling this feature will be removed course review system from the course page."
1067
msgstr ""
1068
1069
#: classes/Options.php:438
1070
1062
msgid "Preferred Video Source"
1071
1063
msgstr ""
1072
1064
1065
#: classes/Options.php:433
1066
msgid "Choose video sources you'd like to support. Unchecking all will not disable video feature."
1067
msgstr ""
1068
1069
#: classes/Options.php:437
1070
msgid "Default Video Source"
1071
msgstr ""
1072
1073
1073
#: classes/Options.php:440
1074
msgid "Choose video sources you'd like to support. Unchecking all will not disable video feature."
1075
msgstr ""
1076
1077
#: classes/Options.php:444
1078
msgid "Default Video Source"
1079
msgstr ""
1080
1081
#: classes/Options.php:447
1082
1074
msgid "Choose video source to be selected by default."
1083
1075
msgstr ""
1084
1076
1077
#: classes/Options.php:450
1078
msgid "Lesson Settings"
1079
msgstr ""
1080
1081
#: classes/Options.php:451
1082
msgid "Lesson settings will be here"
1083
msgstr ""
1084
1085
#: classes/Options.php:455, views/modal/edit-lesson.php:12
1086
msgid "Classic Editor"
1087
msgstr ""
1088
1085
1089
#: classes/Options.php:457
1086
msgid "Lesson Settings"
1087
msgstr ""
1088
1089
#: classes/Options.php:458
1090
msgid "Lesson settings will be here"
1091
msgstr ""
1092
1093
#: classes/Options.php:462, views/modal/edit-lesson.php:12
1094
msgid "Classic Editor"
1095
msgstr ""
1096
1097
#: classes/Options.php:464
1098
1090
msgid "Enable classic editor to get full support of any editor/page builder."
1099
1091
msgstr ""
1100
1092
1101
#: classes/Options.php:469
1093
#: classes/Options.php:462
1102
1094
msgid "Automatically load next course content."
1103
1095
msgstr ""
1104
1096
1105
#: classes/Options.php:470
1097
#: classes/Options.php:463
1106
1098
msgid "Enabling this feature will be load next course content automatically after finishing current video."
1107
1099
msgstr ""
1108
1100
1109
#: classes/Options.php:474
1101
#: classes/Options.php:467
1110
1102
msgid "Lesson Permalink Base"
1111
1103
msgstr ""
1112
1104
1113
#: classes/Options.php:480
1105
#: classes/Options.php:473
1114
1106
msgid "Youtube API Key"
1115
1107
msgstr ""
1116
1108
1117
#: classes/Options.php:489, classes/Options.php:492, classes/Quiz\_Attempts\_List.php:114, classes/Tutor\_Setup.php:563, views/metabox/course-contents.php:169, views/metabox/course-topics.php:62, views/pages/view\_attempt.php:39, templates/single/quiz/top.php:24
1109
#: classes/Options.php:482, classes/Options.php:485, classes/Quiz\_Attempts\_List.php:114, classes/Tutor\_Setup.php:563, views/metabox/course-contents.php:169, views/metabox/course-topics.php:62, views/pages/view\_attempt.php:39, templates/single/quiz/top.php:24
1118
1110
msgid "Quiz"
1119
1111
msgstr ""
1120
1112
1121
#: classes/Options.php:493
1113
#: classes/Options.php:486
1122
1114
msgid "The values you set here define the default values that are used in the settings form when you create a new quiz."
1123
1115
msgstr ""
1124
1116
1125
#: classes/Options.php:497, classes/Tutor\_Setup.php:432, views/modal/edit\_quiz.php:144
1117
#: classes/Options.php:490, classes/Tutor\_Setup.php:432, views/modal/edit\_quiz.php:144
1126
1118
msgid "Time Limit"
1127
1119
msgstr ""
1128
1120
1129
#: classes/Options.php:498
1121
#: classes/Options.php:491
1130
1122
msgid "0 means unlimited time."
1131
1123
msgstr ""
1132
1124
1133
#: classes/Options.php:509, views/modal/edit\_quiz.php:156
1125
#: classes/Options.php:502, views/modal/edit\_quiz.php:156
1134
1126
msgid "Weeks"
1135
1127
msgstr ""
1136
1128
1137
#: classes/Options.php:510, views/modal/edit\_quiz.php:155
1129
#: classes/Options.php:503, views/modal/edit\_quiz.php:155
1138
1130
msgid "Days"
1139
1131
msgstr ""
1140
1132
1141
#: classes/Options.php:511, views/modal/edit\_quiz.php:154
1133
#: classes/Options.php:504, views/modal/edit\_quiz.php:154
1142
1134
msgid "Hours"
1143
1135
msgstr ""
1144
1136
1145
#: classes/Options.php:512, views/modal/edit\_quiz.php:153
1137
#: classes/Options.php:505, views/modal/edit\_quiz.php:153
1146
1138
msgid "Minutes"
1147
1139
msgstr ""
1148
1140
1149
#: classes/Options.php:513, views/modal/edit\_quiz.php:152
1141
#: classes/Options.php:506, views/modal/edit\_quiz.php:152
1150
1142
msgid "Seconds"
1151
1143
msgstr ""
1152
1144
1153
#: classes/Options.php:520
1145
#: classes/Options.php:513
1154
1146
msgid "When time expires"
1155
1147
msgstr ""
1156
1148
1157
#: classes/Options.php:524, classes/Tutor\_Setup.php:439
1149
#: classes/Options.php:517, classes/Tutor\_Setup.php:439
1158
1150
msgid "The current quiz answers are submitted automatically."
1159
1151
msgstr ""
1160
1152
1161
#: classes/Options.php:525, classes/Tutor\_Setup.php:440
1153
#: classes/Options.php:518, classes/Tutor\_Setup.php:440
1162
1154
msgid "The current quiz answers are submitted by students."
1163
1155
msgstr ""
1164
1156
1165
#: classes/Options.php:526, classes/Tutor\_Setup.php:441
1157
#: classes/Options.php:519, classes/Tutor\_Setup.php:441
1166
1158
msgid "Attempts must be submitted before time expires, otherwise they will not be counted"
1167
1159
msgstr ""
1168
1160
1169
#: classes/Options.php:528
1161
#: classes/Options.php:521
1170
1162
msgid "Choose which action to follow when the quiz time expires."
1171
1163
msgstr ""
1172
1164
1173
#: classes/Options.php:532
1165
#: classes/Options.php:525
1174
1166
msgid "Attempts allowed"
1175
1167
msgstr ""
1176
1168
1169
#: classes/Options.php:527
1170
msgid "The highest number of attempts students are allowed to take for a quiz. 0 means unlimited attempts."
1171
msgstr ""
1172
1173
#: classes/Options.php:531
1174
msgid "Show Previous button"
1175
msgstr ""
1176
1177
1177
#: classes/Options.php:534
1178
msgid "The highest number of attempts students are allowed to take for a quiz. 0 means unlimited attempts."
1178
msgid "Choose whether to show or hide previous button for single question."
1179
1179
msgstr ""
1180
1180
1181
1181
#: classes/Options.php:538
1182
msgid "Show Previous button"
1183
msgstr ""
1184
1185
#: classes/Options.php:541
1186
msgid "Choose whether to show or hide previous button for single question."
1187
msgstr ""
1188
1189
#: classes/Options.php:545
1190
1182
msgid "Final grade calculation"
1191
1183
msgstr ""
1192
1184
1193
#: classes/Options.php:549, classes/Tutor\_Setup.php:455
1185
#: classes/Options.php:542, classes/Tutor\_Setup.php:455
1194
1186
msgid "Highest Grade"
1195
1187
msgstr ""
1196
1188
1197
#: classes/Options.php:550, classes/Tutor\_Setup.php:460
1189
#: classes/Options.php:543, classes/Tutor\_Setup.php:460
1198
1190
msgid "Average Grade"
1199
1191
msgstr ""
1200
1192
1201
#: classes/Options.php:551, classes/Tutor\_Setup.php:465
1193
#: classes/Options.php:544, classes/Tutor\_Setup.php:465
1202
1194
msgid "First Attempt"
1203
1195
msgstr ""
1204
1196
1205
#: classes/Options.php:552, classes/Tutor\_Setup.php:470
1197
#: classes/Options.php:545, classes/Tutor\_Setup.php:470
1206
1198
msgid "Last Attempt"
1207
1199
msgstr ""
1208
1200
1209
#: classes/Options.php:554
1201
#: classes/Options.php:547
1210
1202
msgid "When multiple attempts are allowed, which method should be used to calculate a student's final grade for the quiz."
1211
1203
msgstr ""
1212
1204
1213
#: classes/Options.php:564
1205
#: classes/Options.php:557
1214
1206
msgid "Instructor Profile Settings"
1215
1207
msgstr ""
1216
1208
1217
#: classes/Options.php:565, classes/Options.php:604, classes/Options.php:636
1209
#: classes/Options.php:558, classes/Options.php:597, classes/Options.php:629
1218
1210
msgid "Enable Disable Option to on/off notification on various event"
1219
1211
msgstr ""
1220
1212
1221
#: classes/Options.php:569
1213
#: classes/Options.php:562
1222
1214
msgid "Course Marketplace"
1223
1215
msgstr ""
1224
1216
1217
#: classes/Options.php:565
1218
msgid "Allow multiple instructors to upload their courses."
1219
msgstr ""
1220
1221
#: classes/Options.php:569, classes/Utils.php:6792
1222
msgid "Instructor Registration Page"
1223
msgstr ""
1224
1225
1225
#: classes/Options.php:572
1226
msgid "Allow multiple instructors to upload their courses."
1227
msgstr ""
1228
1229
#: classes/Options.php:576, classes/Utils.php:6781
1230
msgid "Instructor Registration Page"
1226
msgid "This page will be used to sign up new instructors."
1227
msgstr ""
1228
1229
#: classes/Options.php:576
1230
msgid "Allow publishing course"
1231
1231
msgstr ""
1232
1232
1233
1233
#: classes/Options.php:579
1234
msgid "This page will be used to sign up new instructors."
1234
msgid "Enable instructors to publish course directly. <strong>Do not select</strong> if admins want to review courses before publishing."
1235
1235
msgstr ""
1236
1236
1237
1237
#: classes/Options.php:583
1238
msgid "Allow publishing course"
1238
msgid "Become Instructor Button"
1239
1239
msgstr ""
1240
1240
1241
1241
#: classes/Options.php:586
1242
msgid "Enable instructors to publish course directly. <strong>Do not select</strong> if admins want to review courses before publishing."
1243
msgstr ""
1244
1245
#: classes/Options.php:590
1246
msgid "Become Instructor Button"
1247
msgstr ""
1248
1249
#: classes/Options.php:593
1250
1242
msgid "Uncheck this option to hide the button from student dashboard."
1251
1243
msgstr ""
1252
1244
1253
#: classes/Options.php:603
1245
#: classes/Options.php:596
1254
1246
msgid "Student Profile settings"
1255
1247
msgstr ""
1256
1248
1257
#: classes/Options.php:608, classes/Utils.php:6782
1249
#: classes/Options.php:601, classes/Utils.php:6793
1258
1250
msgid "Student Registration Page"
1259
1251
msgstr ""
1260
1252
1253
#: classes/Options.php:604
1254
msgid "Choose the page for student registration page"
1255
msgstr ""
1256
1257
#: classes/Options.php:608
1258
msgid "Show reviews on profile"
1259
msgstr ""
1260
1261
1261
#: classes/Options.php:611
1262
msgid "Choose the page for student registration page"
1262
msgid "Enabling this will show the reviews written by each student on their profile"
1263
1263
msgstr ""
1264
1264
1265
1265
#: classes/Options.php:615
1266
msgid "Show reviews on profile"
1266
msgid "Show completed courses"
1267
1267
msgstr ""
1268
1268
1269
1269
#: classes/Options.php:618
1270
msgid "Enabling this will show the reviews written by each student on their profile"
1271
msgstr ""
1272
1273
#: classes/Options.php:622
1274
msgid "Show completed courses"
1275
msgstr ""
1276
1277
#: classes/Options.php:625
1278
1270
msgid "Completed courses will be shown on student profiles. <br/> For example, you can see this link-"
1279
1271
msgstr ""
1280
1272
1281
#: classes/Options.php:632, classes/Options.php:640, classes/Tutor\_Setup.php:491, templates/dashboard/earning.php:123, templates/dashboard/earning/chart-body.php:17, templates/dashboard/earning/statement.php:14, templates/dashboard/earning/statements.php:133
1273
#: classes/Options.php:625, classes/Options.php:633, classes/Tutor\_Setup.php:491, templates/dashboard/earning.php:123, templates/dashboard/earning/chart-body.php:17, templates/dashboard/earning/statement.php:14, templates/dashboard/earning/statements.php:133
1282
1274
msgid "Earning"
1283
1275
msgstr ""
1284
1276
1285
#: classes/Options.php:635
1277
#: classes/Options.php:628
1286
1278
msgid "Earning and commission allocation"
1287
1279
msgstr ""
1288
1280
1289
#: classes/Options.php:643
1281
#: classes/Options.php:636
1290
1282
msgid "If disabled, the Admin will receive 100% of the earning"
1291
1283
msgstr ""
1292
1284
1293
#: classes/Options.php:647
1285
#: classes/Options.php:640
1294
1286
msgid "Admin Commission Percentage"
1295
1287
msgstr ""
1296
1288
1297
#: classes/Options.php:649
1289
#: classes/Options.php:642
1298
1290
msgid "Define the commission of the Admin from each sale.(after deducting fees)"
1299
1291
msgstr ""
1300
1292
1293
#: classes/Options.php:646
1294
msgid "Instructor Commission Percentage"
1295
msgstr ""
1296
1297
#: classes/Options.php:648
1298
msgid "Define the commission for instructors from each sale.(after deducting fees)"
1299
msgstr ""
1300
1301
#: classes/Options.php:652
1302
msgid "Fee Deduction"
1303
msgstr ""
1304
1301
1305
#: classes/Options.php:653
1302
msgid "Instructor Commission Percentage"
1303
msgstr ""
1304
1305
#: classes/Options.php:655
1306
msgid "Define the commission for instructors from each sale.(after deducting fees)"
1307
msgstr ""
1308
1309
#: classes/Options.php:659
1310
msgid "Fee Deduction"
1311
msgstr ""
1312
1313
#: classes/Options.php:660
1314
1306
msgid "Fees are charged from the entire sales amount. The remaining amount will be divided among admin and instructors."
1315
1307
msgstr ""
1316
1308
1317
#: classes/Options.php:670
1309
#: classes/Options.php:663
1318
1310
msgid "Fee Name"
1319
1311
msgstr ""
1320
1312
1321
#: classes/Options.php:675
1313
#: classes/Options.php:668
1322
1314
msgid "Fee Amount"
1323
1315
msgstr ""
1324
1316
1325
#: classes/Options.php:683
1317
#: classes/Options.php:676
1326
1318
msgid "Select Fees Type"
1327
1319
msgstr ""
1328
1320
1329
#: classes/Options.php:684
1321
#: classes/Options.php:677
1330
1322
msgid "Percent"
1331
1323
msgstr ""
1332
1324
1333
#: classes/Options.php:685
1325
#: classes/Options.php:678
1334
1326
msgid "Fixed"
1335
1327
msgstr ""
1336
1328
1337
#: classes/Options.php:693
1329
#: classes/Options.php:686
1338
1330
msgid "Show Statement Per Page"
1339
1331
msgstr ""
1340
1332
1341
#: classes/Options.php:695
1333
#: classes/Options.php:688
1342
1334
msgid "Define the number of statements to show."
1343
1335
msgstr ""
1344
1336
1345
#: classes/Options.php:702, templates/dashboard/withdraw.php:43
1337
#: classes/Options.php:695, templates/dashboard/withdraw.php:43
1346
1338
msgid "Withdrawal"
1347
1339
msgstr ""
1348
1340
1349
#: classes/Options.php:705
1341
#: classes/Options.php:698
1350
1342
msgid "Withdrawal Settings"
1351
1343
msgstr ""
1352
1344
1353
#: classes/Options.php:709
1345
#: classes/Options.php:702
1354
1346
msgid "Minimum Withdraw Amount"
1355
1347
msgstr ""
1356
1348
1349
#: classes/Options.php:704
1350
msgid "Instructors should earn equal or above this amount to make a withdraw request."
1351
msgstr ""
1352
1353
#: classes/Options.php:710
1354
msgid "Withdraw Methods"
1355
msgstr ""
1356
1357
1357
#: classes/Options.php:711
1358
msgid "Instructors should earn equal or above this amount to make a withdraw request."
1358
msgid "Set withdraw settings"
1359
1359
msgstr ""
1360
1360
1361
1361
#: classes/Options.php:717
1362
msgid "Withdraw Methods"
1363
msgstr ""
1364
1365
#: classes/Options.php:718
1366
msgid "Set withdraw settings"
1362
msgid "Style"
1363
msgstr ""
1364
1365
#: classes/Options.php:720
1366
msgid "Color Style"
1367
1367
msgstr ""
1368
1368
1369
1369
#: classes/Options.php:724
1370
msgid "Style"
1371
msgstr ""
1372
1373
#: classes/Options.php:727
1374
msgid "Color Style"
1375
msgstr ""
1376
1377
#: classes/Options.php:731
1378
1370
msgid "Primary Color"
1379
1371
msgstr ""
1380
1372
1381
#: classes/Options.php:736
1373
#: classes/Options.php:729
1382
1374
msgid "Primary Hover Color"
1383
1375
msgstr ""
1384
1376
1385
#: classes/Options.php:741
1377
#: classes/Options.php:734
1386
1378
msgid "Text color"
1387
1379
msgstr ""
1388
1380
1381
#: classes/Options.php:739
1382
msgid "Light color"
1383
msgstr ""
1384
1389
1385
#: classes/Options.php:746
1390
msgid "Light color"
1391
msgstr ""
1392
1393
#: classes/Options.php:753
1394
1386
msgid "Button Primary Color"
1395
1387
msgstr ""
1396
1388
1397
#: classes/Options.php:759
1389
#: classes/Options.php:752
1398
1390
msgid "Button Danger Color"
1399
1391
msgstr ""
1400
1392
1401
#: classes/Options.php:764
1393
#: classes/Options.php:757
1402
1394
msgid "Button Success Color"
1403
1395
msgstr ""
1404
1396
1405
#: classes/Options.php:769
1397
#: classes/Options.php:762
1406
1398
msgid "Button Warning Color"
1407
1399
msgstr ""
1408
1400
1409
#: classes/Options.php:779, classes/Options.php:782
1401
#: classes/Options.php:772, classes/Options.php:775
1410
1402
msgid "Monetization"
1411
1403
msgstr ""
1412
1404
1413
#: classes/Options.php:783
1405
#: classes/Options.php:776
1414
1406
msgid "You can monetize your LMS website by selling courses in a various way."
1415
1407
msgstr ""
1416
1408
1417
#: classes/Options.php:788
1409
#: classes/Options.php:781
1418
1410
msgid "Monetize Option"
1419
1411
msgstr ""
1420
1412
1421
#: classes/Options.php:792
1413
#: classes/Options.php:785
1422
1414
msgid "Disable Monetization"
1423
1415
msgstr ""
1424
1416
1425
#: classes/Options.php:794
1417
#: classes/Options.php:787
1426
1418
msgid "Select a monetization option to generate revenue by selling courses. Supports: WooCommerce, Easy Digital Downloads, Paid Memberships Pro"
1427
1419
msgstr ""
…
…
1833
1825
msgstr ""
1834
1826
1835
#: classes/Question\_Answers\_List.php:44, classes/Question\_Answers\_List.php:76, classes/Quiz.php:1113, templates/dashboard/question-answer.php:28, views/modal/question\_form.php:146, views/pages/answer.php:11, templates/dashboard/question-answer/answers.php:13
1827
#: classes/Question\_Answers\_List.php:44, classes/Question\_Answers\_List.php:76, classes/Quiz.php:1120, templates/dashboard/question-answer.php:28, views/modal/question\_form.php:146, views/pages/answer.php:11, templates/dashboard/question-answer/answers.php:13
1836
1828
msgid "Answer"
1837
1829
msgstr ""
1838
1830
1839
#: classes/Question\_Answers\_List.php:73, classes/Quiz.php:800, templates/dashboard/question-answer.php:25, views/pages/view\_attempt.php:192, templates/dashboard/my-quiz-attempts/attempts-details.php:210, templates/dashboard/quiz-attempts/quiz-reviews.php:227
1831
#: classes/Question\_Answers\_List.php:73, classes/Quiz.php:807, templates/dashboard/question-answer.php:25, views/pages/view\_attempt.php:192, templates/dashboard/my-quiz-attempts/attempts-details.php:210, templates/dashboard/quiz-attempts/quiz-reviews.php:227
1840
1832
msgid "Question"
1841
1833
msgstr ""
…
…
1845
1837
msgstr ""
1846
1838
1847
#: classes/Quiz.php:530
1839
#: classes/Quiz.php:531
1848
1840
msgid "Quiz has been timeout already"
1849
1841
msgstr ""
1850
1842
1851
#: classes/Quiz.php:663, classes/Quiz.php:746, views/metabox/course-contents.php:110, views/metabox/course-contents.php:200
1843
#: classes/Quiz.php:670, classes/Quiz.php:753, views/metabox/course-contents.php:110, views/metabox/course-contents.php:200
1852
1844
msgid "QUIZ"
1853
1845
msgstr ""
1854
1846
1855
#: classes/Quiz.php:870
1847
#: classes/Quiz.php:877
1856
1848
msgid "Please make sure you have added more than one option and saved them"
1857
1849
msgstr ""
1858
1850
1859
#: classes/Quiz.php:866
1851
#: classes/Quiz.php:873
1860
1852
msgid "Please select the correct answer"
1861
1853
msgstr ""
1862
1854
1863
#: classes/Quiz.php:979, views/modal/question\_answer\_form.php:21
1855
#: classes/Quiz.php:986, views/modal/question\_answer\_form.php:21
1864
1856
msgid "True"
1865
1857
msgstr ""
1866
1858
1867
#: classes/Quiz.php:986, views/modal/question\_answer\_form.php:25
1859
#: classes/Quiz.php:993, views/modal/question\_answer\_form.php:25
1868
1860
msgid "False"
1869
1861
msgstr ""
1870
1862
1871
#: classes/Quiz.php:1097
1863
#: classes/Quiz.php:1104
1872
1864
msgid "Answer options & mark correct"
1873
1865
msgstr ""
1874
1866
1875
#: classes/Quiz.php:1100
1867
#: classes/Quiz.php:1107
1876
1868
msgid "Make sure you’re saving the answers in the right order. Students will have to match this order exactly."
1877
1869
msgstr ""
1878
1870
1879
#: classes/Quiz.php:1135, classes/Quiz.php:1129, views/modal/question\_form.php:170, views/modal/question\_form.php:163, views/pages/view\_attempt.php:342, templates/dashboard/quiz-attempts/quiz-reviews.php:400
1871
#: classes/Quiz.php:1142, classes/Quiz.php:1136, views/modal/question\_form.php:170, views/modal/question\_form.php:163, views/pages/view\_attempt.php:342, templates/dashboard/quiz-attempts/quiz-reviews.php:400
1880
1872
msgid "Mark as correct"
1881
1873
msgstr ""
1882
1874
1883
#: classes/Quiz.php:1285
1875
#: classes/Quiz.php:1292
1884
1876
msgid "Access Denied."
1885
1877
msgstr ""
…
…
1977
1969
msgstr ""
1978
1970
1979
#: classes/Tutor.php:523, classes/Utils.php:2456, templates/dashboard/dashboard.php:9
1971
#: classes/Tutor.php:519, classes/Utils.php:2467, templates/dashboard/dashboard.php:9
1980
1972
msgid "Dashboard"
1981
1973
msgstr ""
1982
1974
1983
#: classes/Tutor.php:532
1975
#: classes/Tutor.php:528
1984
1976
msgid "Student Registration"
1985
1977
msgstr ""
1986
1978
1987
#: classes/Tutor.php:541
1979
#: classes/Tutor.php:537
1988
1980
msgid "Instructor Registration"
1989
1981
msgstr ""
…
…
2073
2065
msgstr ""
2074
2066
2075
#: classes/Tutor\_Setup.php:275, classes/Tutor\_Setup.php:564, classes/Utils.php:2466
2067
#: classes/Tutor\_Setup.php:275, classes/Tutor\_Setup.php:564, classes/Utils.php:2477
2076
2068
msgid "Instructor"
2077
2069
msgstr ""
…
…
2381
2373
msgstr ""
2382
2374
2383
#: classes/Utils.php:911
2375
#: classes/Utils.php:922
2384
2376
msgid "Nonce not matched"
2385
2377
msgstr ""
2386
2378
2387
#: classes/Utils.php:1283
2379
#: classes/Utils.php:1294
2388
2380
msgid "Q&A"
2389
2381
msgstr ""
2390
2382
2391
#: classes/Utils.php:2151, templates/student-public-profile.php:116
2383
#: classes/Utils.php:2162, templates/student-public-profile.php:116
2392
2384
msgid "Course Enrolled"
2393
2385
msgstr ""
2394
2386
2395
#: classes/Utils.php:2457, templates/dashboard/my-profile.php:21
2387
#: classes/Utils.php:2468, templates/dashboard/my-profile.php:21
2396
2388
msgid "My Profile"
2397
2389
msgstr ""
2398
2390
2399
#: classes/Utils.php:2458, templates/dashboard/dashboard.php:36, templates/dashboard/enrolled-courses.php:9
2391
#: classes/Utils.php:2469, templates/dashboard/dashboard.php:36, templates/dashboard/enrolled-courses.php:9
2400
2392
msgid "Enrolled Courses"
2401
2393
msgstr ""
2402
2394
2403
#: classes/Utils.php:2459, templates/dashboard/wishlist.php:10
2395
#: classes/Utils.php:2470, templates/dashboard/wishlist.php:10
2404
2396
msgid "Wishlist"
2405
2397
msgstr ""
2406
2398
2407
#: classes/Utils.php:2460
2399
#: classes/Utils.php:2471
2408
2400
msgid "Reviews"
2409
2401
msgstr ""
2410
2402
2411
#: classes/Utils.php:2461, templates/dashboard/my-quiz-attempts.php:26
2403
#: classes/Utils.php:2472, templates/dashboard/my-quiz-attempts.php:26
2412
2404
msgid "My Quiz Attempts"
2413
2405
msgstr ""
2414
2406
2415
#: classes/Utils.php:2462, templates/dashboard/purchase\_history.php:9
2407
#: classes/Utils.php:2473, templates/dashboard/purchase\_history.php:9
2416
2408
msgid "Purchase History"
2417
2409
msgstr ""
2418
2410
2419
#: classes/Utils.php:2467
2411
#: classes/Utils.php:2478
2420
2412
msgid "Create Course"
2421
2413
msgstr ""
2422
2414
2423
#: classes/Utils.php:2468, templates/dashboard/my-courses.php:9
2415
#: classes/Utils.php:2479, templates/dashboard/my-courses.php:9
2424
2416
msgid "My Courses"
2425
2417
msgstr ""
2426
2418
2427
#: classes/Utils.php:2470
2419
#: classes/Utils.php:2481
2428
2420
msgid "Withdrawals"
2429
2421
msgstr ""
2430
2422
2431
#: classes/Utils.php:2472, templates/dashboard/question-answer.php:10, views/pages/question\_answer.php:18
2423
#: classes/Utils.php:2483, templates/dashboard/question-answer.php:10, views/pages/question\_answer.php:18
2432
2424
msgid "Question & Answer"
2433
2425
msgstr ""
2434
2426
2435
#: classes/Utils.php:2485
2427
#: classes/Utils.php:2496
2436
2428
msgid "Logout"
2437
2429
msgstr ""
2438
2430
2439
#: classes/Utils.php:2496
2431
#: classes/Utils.php:2507
2440
2432
msgid "Retrieve Password"
2441
2433
msgstr ""
2442
2434
2443
#: classes/Utils.php:2600, templates/dashboard/dashboard.php:27
2435
#: classes/Utils.php:2611, templates/dashboard/dashboard.php:27
2444
2436
msgid "Pending"
2445
2437
msgstr ""
2446
2438
2447
#: classes/Utils.php:2601
2439
#: classes/Utils.php:2612
2448
2440
msgid "Approved"
2449
2441
msgstr ""
2450
2442
2451
#: classes/Utils.php:2602
2443
#: classes/Utils.php:2613
2452
2444
msgid "Blocked"
2453
2445
msgstr ""
2454
2446
2455
#: classes/Utils.php:4217
2447
#: classes/Utils.php:4228
2456
2448
msgid "True/False"
2457
2449
msgstr ""
2458
2450
2459
#: classes/Utils.php:4218
2451
#: classes/Utils.php:4229
2460
2452
msgid "Single Choice"
2461
2453
msgstr ""
2462
2454
2463
#: classes/Utils.php:4219
2455
#: classes/Utils.php:4230
2464
2456
msgid "Multiple Choice"
2465
2457
msgstr ""
2466
2458
2467
#: classes/Utils.php:4220
2459
#: classes/Utils.php:4231
2468
2460
msgid "Open Ended/Essay"
2469
2461
msgstr ""
2470
2462
2471
#: classes/Utils.php:4221
2463
#: classes/Utils.php:4232
2472
2464
msgid "Fill In The Blanks"
2473
2465
msgstr ""
2474
2466
2475
#: classes/Utils.php:4222
2467
#: classes/Utils.php:4233
2476
2468
msgid "Short Answer"
2477
2469
msgstr ""
2478
2470
2479
#: classes/Utils.php:4223
2471
#: classes/Utils.php:4234
2480
2472
msgid "Matching"
2481
2473
msgstr ""
2482
2474
2483
#: classes/Utils.php:4224
2475
#: classes/Utils.php:4235
2484
2476
msgid "Image Matching"
2485
2477
msgstr ""
2486
2478
2487
#: classes/Utils.php:4225
2479
#: classes/Utils.php:4236
2488
2480
msgid "Image Answering"
2489
2481
msgstr ""
2490
2482
2491
#: classes/Utils.php:4226
2483
#: classes/Utils.php:4237
2492
2484
msgid "Ordering"
2493
2485
msgstr ""
2494
2486
2495
#: classes/Utils.php:5053
2487
#: classes/Utils.php:5064
2496
2488
msgid "All Levels"
2497
2489
msgstr ""
2498
2490
2499
#: classes/Utils.php:5054, templates/course-filter/filters.php:4
2491
#: classes/Utils.php:5065, templates/course-filter/filters.php:4
2500
2492
msgid "Beginner"
2501
2493
msgstr ""
2502
2494
2503
#: classes/Utils.php:5055, templates/course-filter/filters.php:5
2495
#: classes/Utils.php:5066, templates/course-filter/filters.php:5
2504
2496
msgid "Intermediate"
2505
2497
msgstr ""
2506
2498
2507
#: classes/Utils.php:5056, templates/course-filter/filters.php:6
2499
#: classes/Utils.php:5067, templates/course-filter/filters.php:6
2508
2500
msgid "Expert"
2509
2501
msgstr ""
2510
2502
2511
#: classes/Utils.php:5079
2503
#: classes/Utils.php:5090
2512
2504
msgid "Courses Taken"
2513
2505
msgstr ""
2514
2506
2515
#: classes/Utils.php:5086
2507
#: classes/Utils.php:5097
2516
2508
msgid "Enrolled Course"
2517
2509
msgstr ""
2518
2510
2519
#: classes/Utils.php:5090
2511
#: classes/Utils.php:5101
2520
2512
msgid "Reviews Written"
2521
2513
msgstr ""
2522
2514
2523
#: classes/Utils.php:5376
2515
#: classes/Utils.php:5387
2524
2516
msgid "Website URL"
2525
2517
msgstr ""
2526
2518
2527
#: classes/Utils.php:5381
2519
#: classes/Utils.php:5392
2528
2520
msgid "Github URL"
2529
2521
msgstr ""
2530
2522
2531
#: classes/Utils.php:5386
2523
#: classes/Utils.php:5397
2532
2524
msgid "Facebook URL"
2533
2525
msgstr ""
2534
2526
2535
#: classes/Utils.php:5391
2527
#: classes/Utils.php:5402
2536
2528
msgid "Twitter URL"
2537
2529
msgstr ""
2538
2530
2539
#: classes/Utils.php:5396
2531
#: classes/Utils.php:5407
2540
2532
msgid "Linkedin URL"
2541
2533
msgstr ""
2542
2534
2543
#: classes/Utils.php:6745
2535
#: classes/Utils.php:6756
2544
2536
msgid "Not Taken"
2545
2537
msgstr ""
2546
2538
2547
#: classes/Utils.php:6743
2539
#: classes/Utils.php:6754
2548
2540
msgid "In Progress"
2549
2541
msgstr ""
2550
2542
2551
#: classes/Utils.php:6739
2543
#: classes/Utils.php:6750
2552
2544
msgid "Completed"
2553
2545
msgstr ""
2554
2546
2555
#: classes/Utils.php:6922, templates/dashboard/my-profile.php:34, templates/dashboard/registration.php:50, templates/dashboard/registration.php:53, views/pages/add\_new\_instructor.php:29, views/pages/add\_new\_instructor.php:35, templates/dashboard/instructor/registration.php:51, templates/dashboard/instructor/registration.php:54, templates/dashboard/settings/profile.php:95, templates/dashboard/settings/profile.php:97
2547
#: classes/Utils.php:6933, templates/dashboard/my-profile.php:34, templates/dashboard/registration.php:50, templates/dashboard/registration.php:53, views/pages/add\_new\_instructor.php:29, views/pages/add\_new\_instructor.php:35, templates/dashboard/instructor/registration.php:51, templates/dashboard/instructor/registration.php:54, templates/dashboard/settings/profile.php:95, templates/dashboard/settings/profile.php:97
2556
2548
msgid "First Name"
2557
2549
msgstr ""
2558
2550
2559
#: classes/Utils.php:6923, templates/dashboard/my-profile.php:42, templates/dashboard/registration.php:60, templates/dashboard/registration.php:63, views/pages/add\_new\_instructor.php:43, views/pages/add\_new\_instructor.php:49, templates/dashboard/instructor/registration.php:61, templates/dashboard/instructor/registration.php:64, templates/dashboard/settings/profile.php:104, templates/dashboard/settings/profile.php:106
2551
#: classes/Utils.php:6934, templates/dashboard/my-profile.php:42, templates/dashboard/registration.php:60, templates/dashboard/registration.php:63, views/pages/add\_new\_instructor.php:43, views/pages/add\_new\_instructor.php:49, templates/dashboard/instructor/registration.php:61, templates/dashboard/instructor/registration.php:64, templates/dashboard/settings/profile.php:104, templates/dashboard/settings/profile.php:106
2560
2552
msgid "Last Name"
2561
2553
msgstr ""
2562
2554
2563
#: classes/Utils.php:6924
2555
#: classes/Utils.php:6935
2564
2556
msgid "Profile Photo"
2565
2557
msgstr ""
2566
2558
2567
#: classes/Utils.php:6925
2559
#: classes/Utils.php:6936
2568
2560
msgid "Withdraw Method"
2569
2561
msgstr ""
…
…
3662
3654
msgstr ""
3663
3655
3664
#: views/metabox/course-additional-data.php:20
3656
#: views/metabox/course-additional-data.php:18
3665
3657
msgid "Total Course Duration"
3666
3658
msgstr ""
3667
3659
3668
#: views/metabox/course-additional-data.php:28, views/metabox/video-metabox.php:152
3660
#: views/metabox/course-additional-data.php:26, views/metabox/video-metabox.php:152
3669
3661
msgid "HH"
3670
3662
msgstr ""
3671
3663
3672
#: views/metabox/course-additional-data.php:32, views/metabox/video-metabox.php:157
3664
#: views/metabox/course-additional-data.php:30, views/metabox/video-metabox.php:157
3673
3665
msgid "MM"
3674
3666
msgstr ""
3675
3667
3676
#: views/metabox/course-additional-data.php:37, views/metabox/video-metabox.php:162
3668
#: views/metabox/course-additional-data.php:35, views/metabox/video-metabox.php:162
3677
3669
msgid "SS"
3678
3670
msgstr ""
3679
3671
3680
#: views/metabox/course-additional-data.php:51
3672
#: views/metabox/course-additional-data.php:49
3681
3673
msgid "Benefits of the course"
3682
3674
msgstr ""
3683
3675
3684
#: views/metabox/course-additional-data.php:57
3676
#: views/metabox/course-additional-data.php:55
3685
3677
msgid ""
3686
3678
"List the knowledge and skills that students will learn after completing this course. (One per line)\\n"
…
…
3688
3680
msgstr ""
3689
3681
3690
#: views/metabox/course-additional-data.php:66
3682
#: views/metabox/course-additional-data.php:64
3691
3683
msgid "Requirements/Instructions"
3692
3684
msgstr ""
3693
3685
3694
#: views/metabox/course-additional-data.php:73
3686
#: views/metabox/course-additional-data.php:71
3695
3687
msgid "Additional requirements or special instructions for the students (One per line)"
3696
3688
msgstr ""
3697
3689
3698
#: views/metabox/course-additional-data.php:81
3690
#: views/metabox/course-additional-data.php:79
3699
3691
msgid "Targeted Audience"
3700
3692
msgstr ""
3701
3693
3702
#: views/metabox/course-additional-data.php:88
3694
#: views/metabox/course-additional-data.php:86
3703
3695
msgid "Specify the target audience that will benefit the most from the course. (One line per target audience.)"
3704
3696
msgstr ""
3705
3697
3706
#: views/metabox/course-additional-data.php:97
3698
#: views/metabox/course-additional-data.php:95
3707
3699
msgid "Materials Included"
3708
3700
msgstr ""
3709
3701
3710
#: views/metabox/course-additional-data.php:104
3702
#: views/metabox/course-additional-data.php:102
3711
3703
msgid "A list of assets you will be providing for the students in this course (One per line)"
3712
3704
msgstr ""
…
…
5674
5666
msgid "Assignment"
5675
5667
msgstr ""
5668
5669
#: assets/js/tutor-front.js:1, assets/js/tutor-admin.js:1, assets/js/tutor-course-builder.js:1, assets/js/tutor-setup.js:1
5670
msgid "Copied!"
5671
msgstr ""
tutor/tags/1.9.11/readme.txt
r2610239
r2615802
6
6
Tested up to: 5.8
7
7
Requires PHP: 7.0
8
Stable tag: 1.9.10
8
Stable tag: 1.9.11
9
9
License: GPLv3
10
10
License URI: https://www.gnu.org/licenses/gpl-3.0.html
…
…
242
242
\== Changelog ==
243
243
244
\= 1.9.11 - October 18, 2021 =
245
246
New: Certificate Builder plugin compatibility
247
Update: Gradebook data generates automatically
248
Update: Generate Gradebook button removed
249
Fix: Gradebook data not deleting on course retake
250
Fix: XSS vulnerability in registration page
251
244
252
\= 1.9.10 - October 06, 2021 =
245
253
…
…
248
256
Fix: Date Picker not working issue in frontend Announcement Tab
249
257
Fix: CSV Download button disabled for empty reports
250
Fix: Yoast plugin conflict issue
251
258
252
259
\= 1.9.9 - September 16, 2021 =
tutor/tags/1.9.11/templates/dashboard/registration.php
r2592629
r2615802
51
51
</label>
52
52
53
<input type="text" name="first\_name" value="<?php echo tutor\_utils()->input\_old('first\_name'); ?>" placeholder="<?php \_e('First Name', 'tutor'); ?>" required autocomplete="given-name">
53
<input type="text" name="first\_name" value="<?php esc\_attr\_e(tutor\_utils()->input\_old('first\_name')) ; ?>" placeholder="<?php \_e('First Name', 'tutor'); ?>" required autocomplete="given-name">
54
54
</div>
55
55
</div>
…
…
61
61
</label>
62
62
63
<input type="text" name="last\_name" value="<?php echo tutor\_utils()->input\_old('last\_name'); ?>" placeholder="<?php \_e('Last Name', 'tutor'); ?>" required autocomplete="family-name">
63
<input type="text" name="last\_name" value="<?php esc\_attr\_e(tutor\_utils()->input\_old('last\_name')); ?>" placeholder="<?php \_e('Last Name', 'tutor'); ?>" required autocomplete="family-name">
64
64
</div>
65
65
</div>
…
…
74
74
</label>
75
75
76
<input type="text" name="user\_login" class="tutor\_user\_name" value="<?php echo tutor\_utils()->input\_old('user\_login'); ?>" placeholder="<?php \_e('User Name', 'tutor'); ?>" required autocomplete="username">
76
<input type="text" name="user\_login" class="tutor\_user\_name" value="<?php esc\_attr\_e(tutor\_utils()->input\_old('user\_login')); ?>" placeholder="<?php \_e('User Name', 'tutor'); ?>" required autocomplete="username">
77
77
</div>
78
78
</div>
…
…
84
84
</label>
85
85
86
<input type="text" name="email" value="<?php echo tutor\_utils()->input\_old('email'); ?>" placeholder="<?php \_e('E-Mail', 'tutor'); ?>" required autocomplete="email">
86
<input type="text" name="email" value="<?php esc\_attr\_e(tutor\_utils()->input\_old('email')); ?>" placeholder="<?php \_e('E-Mail', 'tutor'); ?>" required autocomplete="email">
87
87
</div>
88
88
</div>
…
…
97
97
</label>
98
98
99
<input type="password" name="password" value="<?php echo tutor\_utils()->input\_old('password'); ?>" placeholder="<?php \_e('Password', 'tutor'); ?>" required autocomplete="new-password">
99
<input type="password" name="password" value="<?php esc\_attr\_e(tutor\_utils()->input\_old('password')); ?>" placeholder="<?php \_e('Password', 'tutor'); ?>" required autocomplete="new-password">
100
100
</div>
101
101
</div>
…
…
107
107
</label>
108
108
109
<input type="password" name="password\_confirmation" value="<?php echo tutor\_utils()->input\_old('password\_confirmation'); ?>" placeholder="<?php \_e('Password Confirmation', 'tutor'); ?>" required autocomplete="new-password">
109
<input type="password" name="password\_confirmation" value="<?php esc\_attr\_e(tutor\_utils()->input\_old('password\_confirmation')); ?>" placeholder="<?php \_e('Password Confirmation', 'tutor'); ?>" required autocomplete="new-password">
110
110
</div>
111
111
</div>
tutor/tags/1.9.11/tutor.php
r2610239
r2615802
5
5
Description: Tutor is a complete solution for creating a Learning Management System in WordPress way. It can help you to create small to large scale online education site very conveniently. Power features like report, certificate, course preview, private file sharing make Tutor a robust plugin for any educational institutes.
6
6
Author: Themeum
7
Version: 1.9.10
7
Version: 1.9.11
8
8
Author URI: https://themeum.com
9
9
Requires at least: 4.5
…
…
18
18
\* Defined the tutor main file
19
19
\*/
20
define( 'TUTOR\_VERSION', '1.9.10' );
20
define( 'TUTOR\_VERSION', '1.9.11' );
21
21
define( 'TUTOR\_FILE', \_\_FILE\_\_ );
22
22
…
…
86
86
if ( ! function\_exists('tutor\_utils') ) {
87
87
function tutor\_utils() {
88
return new \\TUTOR\\Utils();
88
if(!isset($GLOBALS\['tutor\_utils\_object'\])) {
89
// Use runtime cache
90
$GLOBALS\['tutor\_utils\_object'\] = new \\TUTOR\\Utils();
91
}
92
93
return $GLOBALS\['tutor\_utils\_object'\];
89
94
}
90
95
}
tutor/tags/1.9.11/views/metabox/course-additional-data.php
r2396788
r2615802
2
2
$course\_id = get\_the\_ID();
3
3
4
$duration = maybe\_unserialize(get\_post\_meta($course\_id, '\_course\_duration', true));
5
$durationHours = tutor\_utils()->avalue\_dot('hours', $duration);
6
$durationMinutes = tutor\_utils()->avalue\_dot('minutes', $duration);
7
$durationSeconds = tutor\_utils()->avalue\_dot('seconds', $duration);
4
// Extract: $duration, $durationHours, $durationMinutes, $durationSeconds
5
extract(tutor\_utils()->get\_course\_duration($course\_id, true));
8
6
9
7
$benefits = get\_post\_meta($course\_id, '\_tutor\_course\_benefits', true);
tutor/trunk/assets/css/tutor-course-builder.css
r2610239
r2615802
876
876
}
877
877
878
body.tutor-screen-course-builder .tutor-certificate-template-tab {
879
max-width: 735px;
880
margin: auto;
881
display: grid;
882
}
883
884
body.tutor-screen-course-builder .tutor-certificate-template-tab .tab-header {
885
justify-self: center;
886
gap: 15px;
887
margin-bottom: 32px;
888
/\* color/primary/fill/30 \*/
889
background: #f6f8fd;
890
border-radius: 5px;
891
padding: 4px;
892
}
893
894
body.tutor-screen-course-builder .tutor-certificate-template-tab .tab-header.d-flex {
895
display: -webkit-box;
896
display: -ms-flexbox;
897
display: flex;
898
display: -o-flex;
899
display: -ms-flex;
900
display: -moz-flex;
901
display: -webkit-flex;
902
}
903
904
body.tutor-screen-course-builder .tutor-certificate-template-tab .tab-header-item {
905
color: #9ca0ac;
906
font-weight: 500;
907
font-size: 15px;
908
line-height: 160%;
909
cursor: pointer;
910
padding: 4px 20px;
911
border-radius: 5px;
912
-webkit-transition: 200ms linear;
913
transition: 200ms linear;
914
}
915
916
body.tutor-screen-course-builder .tutor-certificate-template-tab .tab-header-item .item-wrapper {
917
display: -webkit-box;
918
display: -ms-flexbox;
919
display: flex;
920
-webkit-box-align: center;
921
-ms-flex-align: center;
922
align-items: center;
923
gap: 7px;
924
}
925
926
body.tutor-screen-course-builder .tutor-certificate-template-tab .tab-header-item .item-wrapper .icon {
927
font-size: 24px;
928
}
929
930
body.tutor-screen-course-builder .tutor-certificate-template-tab .tab-header-item.is-active {
931
color: #3e64de;
932
background-color: white;
933
-webkit-box-shadow: 0px 1px 2px rgba(2, 11, 83, 0.2);
934
box-shadow: 0px 1px 2px rgba(2, 11, 83, 0.2);
935
}
936
937
body.tutor-screen-course-builder .tutor-certificate-template-tab .tab-header-item:not(.is-active) img {
938
filter: grayscale(100%);
939
-o-filter: grayscale(100%);
940
-ms-filter: grayscale(100%);
941
-moz-filter: grayscale(100%);
942
-webkit-filter: grayscale(100%);
943
opacity: 0.55;
944
}
945
946
body.tutor-screen-course-builder .tutor-certificate-template {
947
display: grid;
948
gap: 25px;
949
grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
950
grid-template-rows: -webkit-min-content;
951
grid-template-rows: min-content;
952
position: relative;
953
/\* min-height: 580px;
954
max-height: 944px; \*/
955
}
956
957
body.tutor-screen-course-builder .tutor-certificate-template .tutor-certificate-collapsible {
958
display: none;
959
}
960
961
body.tutor-screen-course-builder .tutor-certificate-template label.template-radio-field {
962
display: -webkit-inline-box;
963
display: -ms-inline-flexbox;
964
display: inline-flex;
965
cursor: pointer;
966
position: relative;
967
}
968
969
body.tutor-screen-course-builder .tutor-certificate-template label.template-radio-field img {
970
max-width: 100%;
971
}
972
973
body.tutor-screen-course-builder .tutor-certificate-template label.template-radio-field input\[type='radio'\] {
974
display: none;
975
appearance: none;
976
-moz-appearance: none;
977
-webkit-appearance: none;
978
}
979
980
body.tutor-screen-course-builder .tutor-certificate-template label.template-radio-field input\[type='radio'\]:checked + .icon-wrapper {
981
-webkit-box-shadow: 0 0 0 2px #3e64de;
982
box-shadow: 0 0 0 2px #3e64de;
983
}
984
985
body.tutor-screen-course-builder .tutor-certificate-template label.template-radio-field input\[type='radio'\]:checked + .icon-wrapper::before {
986
opacity: 1;
987
-webkit-transform: scale(1);
988
transform: scale(1);
989
}
990
991
body.tutor-screen-course-builder .tutor-certificate-template label.template-radio-field span.icon-wrapper {
992
-webkit-box-shadow: 0 0 0 1px #eff1f6;
993
box-shadow: 0 0 0 1px #eff1f6;
994
border-radius: 6px;
995
-webkit-transition: -webkit-box-shadow 200ms ease;
996
transition: -webkit-box-shadow 200ms ease;
997
transition: box-shadow 200ms ease;
998
transition: box-shadow 200ms ease, -webkit-box-shadow 200ms ease;
999
position: relative;
1000
}
1001
1002
body.tutor-screen-course-builder .tutor-certificate-template label.template-radio-field span.icon-wrapper::before {
1003
content: '';
1004
position: absolute;
1005
width: 28px;
1006
height: 28px;
1007
background-size: 25px;
1008
background-repeat: no-repeat;
1009
background-position: left 2px center;
1010
background-image: url("data:image/svg+xml,%3Csvg width='25' height='25' viewBox='0 0 25 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.42318 12.9161C6.3686 12.8593 6.32513 12.7929 6.29503 12.7201C6.23499 12.558 6.23499 12.3797 6.29503 12.2175C6.32453 12.1445 6.36807 12.0779 6.42318 12.0215L7.33283 11.1496C7.38636 11.0869 7.45336 11.0371 7.52883 11.0038C7.60148 10.971 7.68026 10.9538 7.76001 10.9536C7.84642 10.9519 7.93217 10.9691 8.01129 11.0038C8.0895 11.0386 8.16031 11.0881 8.21985 11.1496L10.9639 13.8986L16.8539 8.00855C16.9119 7.94744 16.981 7.89797 17.0575 7.8628C17.1368 7.82861 17.2224 7.81149 17.3088 7.81255C17.3898 7.813 17.4698 7.83071 17.5435 7.8645C17.6171 7.8983 17.6827 7.94741 17.7359 8.00855L18.6456 8.89306C18.7007 8.9494 18.7442 9.01598 18.7737 9.08906C18.8338 9.25121 18.8338 9.42949 18.7737 9.59163C18.7436 9.66439 18.7002 9.73087 18.6456 9.78763L11.4061 16.9894C11.3522 17.0523 11.2853 17.1029 11.2101 17.1377C11.0492 17.2041 10.8685 17.2041 10.7076 17.1377C10.6323 17.1029 10.5655 17.0523 10.5116 16.9894L6.42318 12.9161Z' fill='white'/%3E%3C/svg%3E%0A");
1011
/\* text/brand \*/
1012
background-color: #3e64de;
1013
border-radius: 50%;
1014
right: -15px;
1015
top: -15px;
1016
z-index: 1;
1017
opacity: 0;
1018
-webkit-transform: scale(1.15);
1019
transform: scale(1.15);
1020
-webkit-transition: 200ms linear;
1021
transition: 200ms linear;
1022
}
1023
1024
body.tutor-screen-course-builder .tutor-certificate-template label.template-radio-field span.icon-wrapper img {
1025
border-radius: 6px;
1026
}
1027
1028
body.tutor-screen-course-builder .tutor-certificate-template label.template-radio-field .template-item-overlay {
1029
display: -webkit-box;
1030
display: -ms-flexbox;
1031
display: flex;
1032
-webkit-box-align: center;
1033
-ms-flex-align: center;
1034
align-items: center;
1035
-webkit-box-pack: center;
1036
-ms-flex-pack: center;
1037
justify-content: center;
1038
-webkit-box-orient: vertical;
1039
-webkit-box-direction: normal;
1040
-ms-flex-direction: column;
1041
flex-direction: column;
1042
gap: 17px;
1043
position: absolute;
1044
inset: 0;
1045
background: rgba(255, 255, 255, 0.6);
1046
/\* stroke/light20 \*/
1047
-webkit-backdrop-filter: blur(30px);
1048
backdrop-filter: blur(30px);
1049
/\* Note: backdrop-filter has minimal browser support \*/
1050
border-radius: 6px;
1051
visibility: hidden;
1052
opacity: 0;
1053
-webkit-transition: 200ms linear;
1054
transition: 200ms linear;
1055
}
1056
1057
body.tutor-screen-course-builder .tutor-certificate-template label.template-radio-field .template-item-overlay .tutor-btn {
1058
border-radius: 6px;
1059
opacity: 0;
1060
-webkit-transform: translateY(10px);
1061
transform: translateY(10px);
1062
-webkit-transition: 200ms linear;
1063
transition: 200ms linear;
1064
}
1065
1066
body.tutor-screen-course-builder .tutor-certificate-template label.template-radio-field .template-item-overlay .tutor-btn.tutor-is-outline {
1067
background: transparent;
1068
color: var(--tutor-primary);
1069
}
1070
1071
body.tutor-screen-course-builder .tutor-certificate-template label.template-radio-field .template-item-overlay .tutor-btn.tutor-is-outline:hover {
1072
background-color: var(--tutor-primary-hover);
1073
border-color: var(--tutor-primary-hover);
1074
color: var(--tutor-white);
1075
}
1076
1077
body.tutor-screen-course-builder .tutor-certificate-template label.template-radio-field .template-item-overlay .tutor-btn:nth-child(1) {
1078
-webkit-transition-delay: 100ms;
1079
transition-delay: 100ms;
1080
}
1081
1082
body.tutor-screen-course-builder .tutor-certificate-template label.template-radio-field .template-item-overlay .tutor-btn:nth-child(2) {
1083
-webkit-transition-delay: 130ms;
1084
transition-delay: 130ms;
1085
}
1086
1087
body.tutor-screen-course-builder .tutor-certificate-template label.template-radio-field:hover .template-item-overlay {
1088
visibility: visible;
1089
opacity: 1;
1090
}
1091
1092
body.tutor-screen-course-builder .tutor-certificate-template label.template-radio-field:hover .template-item-overlay .tutor-btn {
1093
opacity: 1;
1094
-webkit-transform: translateY(0);
1095
transform: translateY(0);
1096
}
1097
1098
body.tutor-screen-course-builder .tutor-certificate-template .template-load-more {
1099
position: absolute;
1100
width: 100%;
1101
height: 185px;
1102
bottom: 0;
1103
background: -webkit-gradient(linear, left top, left bottom, color-stop(1.31%, rgba(255, 255, 255, 0.0001)), color-stop(15.41%, rgba(255, 255, 255, 0.74)), color-stop(38.83%, rgba(255, 255, 255, 0.92)), to(#ffffff));
1104
background: linear-gradient(180deg, rgba(255, 255, 255, 0.0001) 1.31%, rgba(255, 255, 255, 0.74) 15.41%, rgba(255, 255, 255, 0.92) 38.83%, #ffffff 100%);
1105
text-align: center;
1106
display: grid;
1107
place-content: center;
1108
}
1109
1110
body.tutor-screen-course-builder .tutor-certificate-template .template-load-more .load-more-btn {
1111
border: none;
1112
background: transparent;
1113
outline: none;
1114
display: -webkit-box;
1115
display: -ms-flexbox;
1116
display: flex;
1117
-webkit-box-align: center;
1118
-ms-flex-align: center;
1119
align-items: center;
1120
gap: 5px;
1121
}
1122
1123
body.tutor-screen-course-builder .tutor-certificate-template .template-load-more .load-more-btn span {
1124
font-size: 20px;
1125
}
1126
878
1127
body.tutor-screen-course-builder.tutor-screen-course-builder-frontend {
879
1128
/\*
tutor/trunk/assets/css/tutor-course-builder.min.css
r2610239
r2615802
1
body.tutor-screen-course-builder .builder-course-thumbnail-upload-wrap>div{font-size:var(--tutor-text-size);line-height:25px;margin-bottom:20px;font-weight:400}body.tutor-screen-course-builder .builder-course-thumbnail-upload-wrap .button-transparent{float:right;background:transparent !important}body.tutor-screen-course-builder .builder-course-thumbnail-upload-wrap .button-transparent:hover{background:var(--tutor-primary-color) !important}body.tutor-screen-course-builder .builder-course-thumbnail-img-src{position:relative}body.tutor-screen-course-builder .builder-course-thumbnail-img-src .tutor-course-thumbnail-delete-btn{font-size:10px;position:absolute;top:-4px;left:-4px;color:#e53935;-webkit-transition:300ms;transition:300ms;border-radius:50%;width:20px;height:20px;line-height:20px;background:#fff;text-align:center}body.tutor-screen-course-builder .builder-course-thumbnail-img-src .tutor-course-thumbnail-delete-btn i{line-height:20px}body.tutor-screen-course-builder .tutor-video-upload-wrap .video\_source\_wrap\_html5{width:100%}body.tutor-screen-course-builder .tutor-video-upload-wrap .video\_source\_wrap\_html5 .video-metabox-source-html5-upload{background-color:#fff;text-align:center;padding:40px 20px;border:1px solid #dcdfe5;border-radius:3px}body.tutor-screen-course-builder .tutor-video-upload-wrap .video\_source\_wrap\_html5 .video-metabox-source-html5-upload p{margin-bottom:5px}body.tutor-screen-course-builder .tutor-video-upload-wrap .video\_source\_wrap\_html5 .video-metabox-source-html5-upload .video-upload-icon i{font-size:50px;color:var(--tutor-primary-color)}body.tutor-screen-course-builder .tutor-video-upload-wrap .video\_source\_wrap\_html5 .video-metabox-source-html5-upload .video\_source\_upload\_wrap\_html5{margin-top:10px}body.tutor-screen-course-builder .tutor-video-upload-wrap .video\_source\_wrap\_html5 .video-metabox-source-html5-poster{padding-top:20px}body.tutor-screen-course-builder .tutor-video-upload-wrap .video\_source\_wrap\_html5 .video-metabox-source-html5-poster .html5-video-poster{height:100px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}body.tutor-screen-course-builder .tutor-video-upload-wrap .video\_source\_wrap\_html5 .video-metabox-source-html5-poster .html5-video-poster img{height:100%;width:auto}body.tutor-screen-course-builder .tutor-video-upload-wrap .video\_source\_wrap\_html5 .video-metabox-source-html5-poster .html5-video-poster .tutor-builder-course-video-poster-text{text-align:left;padding-left:20px}body.tutor-screen-course-builder.rtl .html5-video-poster .tutor-builder-course-video-poster-text{padding-left:0;padding-right:20px}body.tutor-screen-course-builder .tutor-video-upload-wrap .video\_source\_wrap\_html5 .video-metabox-source-html5-poster .html5-video-poster .tutor-builder-course-video-poster-text h5{font-size:14px;font-weight:700;margin:0 0 6px;line-height:1}body.tutor-screen-course-builder .tutor-video-upload-wrap .video\_source\_wrap\_html5 .video-metabox-source-html5-poster .html5-video-poster .tutor-builder-course-video-poster-text span{font-size:14px;font-weight:400}body.tutor-screen-course-builder .tutor-video-upload-wrap .video\_source\_wrap\_html5 .video-metabox-source-html5-poster .tutor-row{display:-webkit-box;display:-ms-flexbox;display:flex;display:-o-flex;display:-ms-flex;display:-moz-flex;display:-webkit-flex;flex-wrap:wrap;-o-flex-wrap:wrap;-ms-flex-wrap:wrap;-moz-flex-wrap:wrap;-webkit-flex-wrap:wrap;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-o-justify-content:space-between;-ms-justify-content:space-between;-moz-justify-content:space-between;-webkit-justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-o-align-items:center;-ms-align-items:center;-moz-align-items:center;-webkit-align-items:center}body.tutor-screen-course-builder .tutor-video-upload-wrap .video\_source\_wrap\_html5 .video-metabox-source-html5-poster .tutor-row .tutor-col-5{width:38%}body.tutor-screen-course-builder .tutor-video-upload-wrap .video\_source\_wrap\_html5 .video-metabox-source-html5-poster .tutor-row .tutor-col-7{width:62%}body.tutor-screen-course-builder #tutor-metabox-course-settings-tabs{background-color:#fff;border:1px solid #e5e5e5;margin:1em 0}body.tutor-screen-course-builder:not(.tutor-screen-course-builder-frontend) #tutor-metabox-course-settings-tabs{border:none}body.tutor-screen-course-builder #tutor-metabox-course-settings-tabs .settings-tabs-heading{padding:1em;border-bottom:1px solid #e5e5e5}body.tutor-screen-course-builder #tutor-metabox-course-settings-tabs .settings-tabs-heading h3{font-size:14px;margin:0;line-height:1.4}body.tutor-screen-course-builder #tutor-metabox-course-settings-tabs .tutor-field-radio p{margin-top:0}body.tutor-screen-course-builder #tutor-metabox-course-settings-tabs .course-settings-tabs-container{display:-webkit-box;display:-ms-flexbox;display:flex;display:-o-flex;display:-ms-flex;display:-moz-flex;display:-webkit-flex}body.tutor-screen-course-builder #tutor-metabox-course-settings-tabs .course-settings-tabs-container .settings-tabs-navs-wrap{-webkit-box-flex:0;flex:0 0 200px;-o-flex:0 0 200px;-ms-flex:0 0 200px;-moz-flex:0 0 200px;-webkit-flex:0 0 200px;background:#F5F5F5}body.tutor-screen-course-builder #tutor-metabox-course-settings-tabs .course-settings-tabs-container .settings-tabs-navs-wrap .settings-tabs-navs{margin:0;list-style:none}body.tutor-screen-course-builder #tutor-metabox-course-settings-tabs .course-settings-tabs-container .settings-tabs-navs-wrap .settings-tabs-navs li{margin:0}body.tutor-screen-course-builder #tutor-metabox-course-settings-tabs .course-settings-tabs-container .settings-tabs-navs-wrap .settings-tabs-navs li a{display:block;padding-top:10px;padding-bottom:10px;padding-left:15px;padding-right:15px;color:#23282d;text-decoration:none;background:#F5F5F5;text-transform:capitalize;border-bottom:1px solid #e5e5e5;border-left:3px solid transparent}body.tutor-screen-course-builder #tutor-metabox-course-settings-tabs .course-settings-tabs-container .settings-tabs-navs-wrap .settings-tabs-navs li a:focus{-webkit-box-shadow:none;box-shadow:none}body.tutor-screen-course-builder #tutor-metabox-course-settings-tabs .course-settings-tabs-container .settings-tabs-navs-wrap .settings-tabs-navs li.active a{background-color:#ffffff;border-bottom:1px solid #e5e5e5;color:var(--tutor-primary-color);border-left:3px solid var(--tutor-primary-color)}body.tutor-screen-course-builder #tutor-metabox-course-settings-tabs .course-settings-tabs-container .settings-tabs-navs-wrap .settings-tabs-navs li:last-child a{border-bottom:none}body.tutor-screen-course-builder #tutor-metabox-course-settings-tabs .course-settings-tabs-container .settings-tabs-container{padding:1em;-webkit-box-flex:1;flex:1;-o-flex:1;-ms-flex:1;-moz-flex:1;-webkit-flex:1}body.tutor-screen-course-builder .tutor-course-available-instructors{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}body.tutor-screen-course-builder .tutor-course-available-instructors .added-instructor-item{-webkit-box-flex:0;-ms-flex:0 0 calc(50% - 20px);flex:0 0 calc(50% - 20px);max-width:calc(50% - 20px);border:1px solid #dcdfe5;padding:13px;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-radius:4px;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0px 10px 20px}@media (min-width: 1300px){body.tutor-screen-course-builder .tutor-course-available-instructors .added-instructor-item{-ms-flex:0 0 calc(33.333% - 20px);-webkit-box-flex:0;flex:0 0 calc(33.333% - 20px);max-width:calc(33.333% - 20px)}}@media (max-width: 546px){body.tutor-screen-course-builder .tutor-course-available-instructors .added-instructor-item{-ms-flex:0 0 100%;-webkit-box-flex:0;flex:0 0 100%;max-width:100%}}body.tutor-screen-course-builder .tutor-course-available-instructors .added-instructor-item .instructor-control{position:absolute;right:14px;top:50%;font-size:12px;-webkit-transform:translateY(-50%);transform:translateY(-50%);opacity:0;-webkit-transition:300ms;transition:300ms}body.tutor-screen-course-builder .tutor-course-available-instructors .added-instructor-item .instructor-control a{color:red;text-decoration:none}body.tutor-screen-course-builder .tutor-course-available-instructors .added-instructor-item:hover .instructor-control{opacity:1}body.tutor-screen-course-builder .tutor-course-available-instructors .added-instructor-item .instructor-icon{height:45px;width:45px;overflow:hidden;border-radius:50px;margin-right:15px}body.tutor-screen-course-builder .tutor-course-available-instructors .added-instructor-item .instructor-icon img{width:100%;height:auto}body.tutor-screen-course-builder .tutor-course-available-instructors .added-instructor-item .instructor-name{position:relative}body.tutor-screen-course-builder .tutor-course-available-instructors .added-instructor-item .instructor-name i.instructor-name-tooltip{-webkit-transition:300ms;transition:300ms;opacity:0;position:absolute;bottom:34px;right:9px;background:#2a344f;-webkit-transform:translateX(50%);transform:translateX(50%);color:#fff;font-size:12px;font-style:normal;padding:0 8px;border-radius:15px;line-height:20px;z-index:1}body.tutor-screen-course-builder .tutor-course-available-instructors .added-instructor-item .instructor-name i.instructor-name-tooltip::before{content:"";position:absolute;border:5px solid #2a344f;bottom:-3px;left:50%;margin-left:-5px;-webkit-transform:rotate(45deg);transform:rotate(45deg);z-index:-1}body.tutor-screen-course-builder .tutor-course-available-instructors .added-instructor-item .instructor-name img{display:inline-block;margin-left:10px;width:18px}body.tutor-screen-course-builder .tutor-course-available-instructors .added-instructor-item .instructor-name img:hover+i.instructor-name-tooltip{opacity:1}body.tutor-screen-course-builder #tutor-instructors h2{padding:15px;line-height:30px}body.tutor-screen-course-builder #tutor-instructors h2:before{content:"\\e93c";color:var(--tutor-primary-color);font-family:"tutor" !important;speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin-right:10px}body.tutor-screen-course-builder .tutor-course-builder-attachments{display:-webkit-box;display:-ms-flexbox;display:flex;display:-o-flex;display:-ms-flex;display:-moz-flex;display:-webkit-flex;flex-wrap:wrap;-o-flex-wrap:wrap;-ms-flex-wrap:wrap;-moz-flex-wrap:wrap;-webkit-flex-wrap:wrap;margin-left:-25px;-webkit-box-sizing:border-box;box-sizing:border-box}body.tutor-screen-course-builder .tutor-course-builder-attachments:empty{display:none}body.tutor-screen-course-builder .tutor-course-builder-attachments,body.tutor-screen-course-builder .tutor-course-builder-attachments:focus,body.tutor-screen-course-builder .tutor-course-builder-attachments:active,body.tutor-screen-course-builder .tutor-course-builder-attachments:hover,body.tutor-screen-course-builder .tutor-course-builder-attachments \*,body.tutor-screen-course-builder .tutor-course-builder-attachments \*:focus,body.tutor-screen-course-builder .tutor-course-builder-attachments \*:active,body.tutor-screen-course-builder .tutor-course-builder-attachments \*:hover{text-decoration:none;outline:none}body.tutor-screen-course-builder .tutor-course-builder-attachments .tutor-added-attachment{-webkit-box-flex:0;flex:0 0 calc(25% - 30px);-o-flex:0 0 calc(25% - 30px);-ms-flex:0 0 calc(25% - 30px);-moz-flex:0 0 calc(25% - 30px);-webkit-flex:0 0 calc(25% - 30px);max-width:calc(25% - 30px);border:1px solid #DCDFE5;padding:35px 20px 20px;position:relative;text-align:center;margin-left:30px;margin-bottom:30px;border-radius:4px;-webkit-transition:300ms;transition:300ms;min-width:120px}@media (max-width: 480px){body.tutor-screen-course-builder .tutor-course-builder-attachments .tutor-added-attachment{-webkit-box-flex:0;-ms-flex:0 0 calc(50% - 30px);flex:0 0 calc(50% - 30px);max-width:calc(50% - 30px)}}body.tutor-screen-course-builder .tutor-course-builder-attachments .tutor-added-attachment i{font-size:58px;line-height:58px;margin-bottom:25px;display:block}body.tutor-screen-course-builder .tutor-course-builder-attachments .tutor-added-attachment .tutor-delete-attachment{position:absolute;height:22px;width:22px;border:1px solid #DCDFE5;text-align:center;line-height:22px;top:-1px;right:-1px;font-size:10px;border-top-right-radius:4px;color:transparent;-webkit-transition:300ms;transition:300ms}body.tutor-screen-course-builder .tutor-course-builder-attachments .tutor-added-attachment:hover,body.tutor-screen-course-builder .tutor-course-builder-attachments .tutor-added-attachment:hover .tutor-delete-attachment{border-color:#D71830;color:#D71830}body.tutor-screen-course-builder .tutor-course-builder-attachments .tutor-added-attachment span{display:block}body.tutor-screen-course-builder .tutor-course-builder-attachments .tutor-added-attachment span a{font-size:14px;display:block;line-height:20px;color:#606C8F}body.tutor-screen-course-builder #tutor-course-content-builder-root{position:relative}body.tutor-screen-course-builder #tutor-course-content-builder-root .tutor-course-builder-header{line-height:50px;position:absolute;top:-69px;right:40px}body.tutor-screen-course-builder #tutor-course-content-builder-root .tutor-course-builder-header.has-postbox-header{top:-56px;right:96px}body.tutor-screen-course-builder.rtl .tutor-course-builder-header{right:auto;left:40px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .has-postbox-header{position:static !important}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend #tutor-course-content-wrap{border:1px solid #ddd;margin-top:20px}body.tutor-screen-course-builder #tutor-course-content-builder-root .tutor-metabox-add-topics .tutor-option-field-row,body.tutor-screen-course-builder #tutor-course-content-builder-root .tutor-topics-edit-form .tutor-option-field-row{padding:15px 0}body.tutor-screen-course-builder #tutor-course-content-builder-root .tutor-metabox-add-topics .tutor-option-field-row:last-child,body.tutor-screen-course-builder #tutor-course-content-builder-root .tutor-topics-edit-form .tutor-option-field-row:last-child{border-bottom:none}body.tutor-screen-course-builder #tutor-course-content-builder-root .tutor-metabox-add-topics .tutor-option-field-row textarea,body.tutor-screen-course-builder #tutor-course-content-builder-root .tutor-topics-edit-form .tutor-option-field-row textarea{height:120px}body.tutor-screen-course-builder #tutor-course-content-builder-root .new-topic-btn-wrap{padding:0;margin:15px}body.tutor-screen-course-builder #tutor-course-content-builder-root .new-topic-btn-wrap body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .new-topic-btn-wrap{margin-left:0;margin-right:0}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics{position:relative}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap a,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics a{text-decoration:none}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap a:focus,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics a:focus{box-shadow:none;-o-box-shadow:none;-ms-box-shadow:none;-moz-box-shadow:none;-webkit-box-shadow:none}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-quiz-builder-modal-tabs-notice a,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-quiz-builder-modal-tabs-notice a{color:#a4a4a4;text-decoration:underline}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .toggle-indicator:before,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .toggle-indicator:before{margin-top:20px}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-topics-wrap,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-topics-wrap{border-bottom:1px solid #f6f8fa;padding-bottom:0;margin:0}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-topics-wrap:nth-child(2n),body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-topics-wrap:nth-child(2n){background:#f6f8fa}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-topics-wrap .tutor-topic-title,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-topics-wrap .tutor-topic-title{display:-webkit-box;display:-ms-flexbox;display:flex;font-size:16px;font-weight:300;margin:0;line-height:40px;padding-left:15px;-webkit-box-align:center;-ms-flex-align:center;align-items:center}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-topics-wrap .tutor-topic-title a,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-topics-wrap .tutor-topic-title a{color:#393c40}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-topics-wrap .tutor-topic-title .topic-inner-title,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-topics-wrap .tutor-topic-title .topic-inner-title{-webkit-box-flex:1;-ms-flex:1 0 auto;flex:1 0 auto;cursor:pointer;max-width:calc(100% - 154px)}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-topics-wrap .tutor-topic-title span,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-topics-wrap .tutor-topic-title span{padding:0 5px}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-topics-wrap .tutor-topic-title span.expand-collapse-wrap,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-topics-wrap .tutor-topic-title span.expand-collapse-wrap{border-left:1px solid #e7e7e7}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-topics-wrap .tutor-topic-title span.expand-collapse-wrap a,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-topics-wrap .tutor-topic-title span.expand-collapse-wrap a{display:block;padding:0 13px}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-topics-wrap .tutor-topic-title .topic-edit-icon,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-topics-wrap .tutor-topic-title .topic-edit-icon{cursor:pointer}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-topics-wrap .tutor-topic-title .topic-delete-btn,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-topics-wrap .tutor-topic-title .topic-delete-btn{float:right}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-topics-wrap .tutor-topic-title .topic-delete-btn a,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-topics-wrap .tutor-topic-title .topic-delete-btn a{padding:0 10px}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-topics-wrap .tutor-topic-title .topic-delete-btn a:hover,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-topics-wrap .tutor-topic-title .topic-delete-btn a:hover{color:#ff0000}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-topics-wrap .tutor-topic-title .topic-delete-btn .dashicons,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-topics-wrap .tutor-topic-title .topic-delete-btn .dashicons{width:12px;height:12px;font-size:12px}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-topics-wrap .tutor-topics-body,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-topics-wrap .tutor-topics-body{background:#ebeef0;padding:15px 20px}body.tutor-screen-course-builder.rtl .tutor-topics-wrap .tutor-topic-title{padding-left:0;padding-right:15px}body.tutor-screen-course-builder.rtl .tutor-topics-wrap .tutor-topic-title span.expand-collapse-wrap{border-left:none;border-right:1px solid #e7e7e7}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-topics-wrap .course-move-handle,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-topics-wrap .course-move-handle{-ms-flex-item-align:center;align-self:center;-o-align-self:center;-ms-align-self:center;-moz-align-self:center;-webkit-align-self:center;cursor:-webkit-grab;cursor:grab;margin-right:5px}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-topics-wrap .course-move-handle:active,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-topics-wrap .course-move-handle:active{cursor:-webkit-grabbing;cursor:grabbing}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .drop-lessons p,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .drop-lessons p{margin:0}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .course-content-item:hover,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .course-content-item:hover{background-color:#ebeef0}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-lessons,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-lessons{padding-left:0;margin-bottom:20px}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-lessons:empty,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-lessons:empty{display:none}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-lessons.ui-sortable,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-lessons.ui-sortable{min-height:20px}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-lesson-top,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-lesson-top{display:-webkit-box;display:-ms-flexbox;display:flex;display:-o-flex;display:-ms-flex;display:-moz-flex;display:-webkit-flex;font-size:14px}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-lesson-top,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-lesson-top i,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-lesson-top,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-lesson-top i{font-size:15px}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-lesson-top i.tutor-icon-pencil,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-lesson-top i.tutor-icon-pencil{margin:0 10px}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-lesson-top i.tutor-icon-move,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-lesson-top i.tutor-icon-move{margin-right:10px;cursor:-webkit-grab;cursor:grab;line-height:unset}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-lesson-top i.tutor-icon-move:active,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-lesson-top i.tutor-icon-move:active{cursor:-webkit-grabbing;cursor:grabbing}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-lesson-top a,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-lesson-top a{color:#393c40}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-lesson-top a.tutor-updating-message i,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-lesson-top a.tutor-updating-message i{display:none}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-lesson-top a:nth-child(2),body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-lesson-top a:nth-child(2){-webkit-box-flex:1;flex:1;-o-flex:1;-ms-flex:1;-moz-flex:1;-webkit-flex:1}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-lesson-top .open-tutor-quiz-modal i,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-lesson-top .open-tutor-quiz-modal i{display:inline-block;vertical-align:middle;margin-right:5px}body.tutor-screen-course-builder.rtl #tutor-course-content-wrap .tutor-lesson-top i.tutor-icon-move{margin-right:0;margin-left:10px}body.tutor-screen-course-builder.rtl #tutor-course-content-wrap .tutor-lesson-top .open-tutor-quiz-modal i{margin-right:0;margin-left:5px}body.tutor-screen-course-builder .tutor-course-builder-content-container.tutor-untopics-lessons{border:1px solid #eee;padding:20px;margin:0 -1px -1px;background-color:#fbfbfb}body.tutor-screen-course-builder .tutor-course-builder-content-container.tutor-untopics-lessons h3{font-weight:300}body.tutor-screen-course-builder .tutor-course-builder-content-container.tutor-untopics-lessons .tutor-lessons{padding-left:0 !important}body.tutor-screen-course-builder .tutor-course-builder-content-container .course-content-item{padding:10px;border-bottom:1px solid #d9d9d9;background-color:#ebeef0}body.tutor-screen-course-builder .tutor-course-builder-content-container .course-content-item .tutor-lesson-top{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}body.tutor-screen-course-builder .tutor-course-builder-content-container .course-content-item .tutor-lesson-top a{color:#393c40;font-weight:400;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}body.tutor-screen-course-builder .tutor-course-builder-content-container .course-content-item .tutor-lesson-top a:last-child{margin-left:auto}body.tutor-screen-course-builder .tutor-course-builder-content-container .course-content-item .tutor-lesson-top a.open-tutor-lesson-modal{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-o-flex-grow:1;-ms-flex-grow:1;-moz-flex-grow:1;-webkit-flex-grow:1}body.tutor-screen-course-builder .tutor-course-builder-content-container .course-content-item .tutor-lesson-top i{padding-right:7px;color:#393c40}body.tutor-screen-course-builder .tutor-course-builder-content-container .course-content-item .tutor-lesson-top .tutor-updating-message i{display:none}body.tutor-screen-course-builder .tutor-course-builder-content-container .course-content-item .tutor-lesson-top i.tutor-icon-garbage:hover{color:red}body.tutor-screen-course-builder .tutor-add-quiz-button-wrap{padding:0;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center}body.tutor-screen-course-builder .tutor-add-quiz-button-wrap>\*+\*{margin-left:15px}body.tutor-screen-course-builder .tutor-add-quiz-button-wrap a{color:#2756d1}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend.admin-bar .tutor-dashboard-builder-header{top:32px}@media (max-width: 783px){body.tutor-screen-course-builder.tutor-screen-course-builder-frontend.admin-bar .tutor-dashboard-builder-header{top:46px}}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-option-field textarea,body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-form-group textarea{height:100px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-form-row{margin-top:20px;margin-bottom:20px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-section{margin-bottom:60px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-section .tutor-frontend-builder-item-scope{margin-bottom:30px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-section .tutor-frontend-builder-item-scope:last-child{margin-bottom:0}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-section .tutor-frontend-builder-item-scope .tutor-builder-item-heading{font-weight:500;line-height:21px;margin-bottom:10px;display:block}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-section .tutor-course-builder-section-title h3{font-size:20px;font-weight:700;color:#1d1f37;position:relative;overflow:hidden;z-index:1;margin:0 0 25px;cursor:pointer}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-section .tutor-course-builder-section-title h3::after{content:"";position:absolute;top:50%;left:0;width:100%;height:1px;background:var(--tutor-primary-color);z-index:-1}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-section .tutor-course-builder-section-title h3 span,body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-section .tutor-course-builder-section-title h3 i{float:left;background-color:#fff;font-size:20px;line-height:20px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-section .tutor-course-builder-section-title h3 i{color:var(--tutor-primary-color);font-size:14px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-section .tutor-course-builder-section-title h3 span{padding:0 15px 0 9px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-section .course-empty-content{margin:15px 0}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-section .tutor-course-builder-header{margin-top:-15px;text-align:right;font-size:12px;position:static}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-section .tutor-course-builder-header a{color:#393c40}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-section .tutor-course-builder-header a:first-child{padding-right:7px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-section .tutor-course-builder-header a:last-child{padding-left:7px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header{padding:10px 0px;border-bottom:2px solid #DCDFE5;position:fixed;top:0px;background:#fff;width:100%;z-index:99}@media (max-width: 991px){body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header{position:static}}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-row{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}@media (max-width: 991px){body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-row .tutor-col-auto{-webkit-box-flex:0;-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-row .tutor-col-auto:first-child{margin-bottom:15px}}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-button{white-space:nowrap;margin-left:auto}@media (max-width: 991px){body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-button{padding:6px 10px}}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-dashboard-builder-header-left{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-dashboard-builder-header-left .tutor-dashboard-builder-logo{padding:0 25px;position:relative}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-dashboard-builder-header-left .tutor-dashboard-builder-logo img{max-height:32px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-dashboard-builder-header-left button{margin:0;padding:0px 25px;line-height:30px;border:none;border-left:1px solid #DCDFE5;background:transparent;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;color:var(--tutor-text-color);-webkit-transition:300ms;transition:300ms;font-weight:500;white-space:nowrap}@media (max-width: 991px){body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-dashboard-builder-header-left button{border-left:none}}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-dashboard-builder-header-left button i{font-size:24px;line-height:30px;margin-right:9px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-dashboard-builder-header-left button:hover{color:var(--tutor-primary-color);background:transparent}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-dashboard-builder-header-left button:hover i{color:var(--tutor-primary-color)}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-dashboard-builder-header-right{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-dashboard-builder-header-right a{color:var(--tutor-text-color);font-weight:500;line-height:36px;padding:0 25px;-webkit-transition:300ms;transition:300ms;white-space:nowrap}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-dashboard-builder-header-right a i{font-size:36px;line-height:36px;display:inline-block;vertical-align:top;padding-right:9px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-dashboard-builder-header-right a:hover{color:var(--tutor-primary-color)}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-frontend-course-builder-section{padding:113px 0 45px;background-color:#ffffff}@media (max-width: 991px){body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-frontend-course-builder-section{padding-top:60px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-frontend-course-builder-section .tutor-col-8,body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-frontend-course-builder-section .tutor-col-4{width:100%;max-width:100%;-webkit-box-flex:0;-ms-flex:0 0 100%;flex:0 0 100%}}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-metabox-add-topics,body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-topics-edit-form{background:#f1f1f1;border:1px solid #dcdfe5;margin-top:25px;padding:20px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-level-meta{display:-webkit-box;display:-ms-flexbox;display:flex;display:-o-flex;display:-ms-flex;display:-moz-flex;display:-webkit-flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-o-justify-content:space-between;-ms-justify-content:space-between;-moz-justify-content:space-between;-webkit-justify-content:space-between}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-level-meta label{margin:0 40px 0 0;font-weight:600}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-frontend-builder-course-price .tutor-form-group input{margin-bottom:0}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-frontend-builder-course-price .tutor-styled-radio{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-btn-group{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-wrap:wrap;flex-wrap:wrap}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .lesson-modal-form-wrap .lesson-content-drip-wrap{padding:10px;border:1px solid #e4e4e4}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .lesson-modal-form-wrap .lesson-content-drip-wrap h3{margin:0 0 10px 0}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .select2-dropdown.increasezindex{z-index:9999999999999}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .select2-selection\_\_rendered \[class^="tutor-icon-"\]{vertical-align:middle}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-upload-tips{position:fixed;max-width:370px}@media (max-width: 991px){body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-upload-tips{position:static}}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-upload-tips .tutor-course-builder-tips-title{font-size:16px;color:#8C94A8;font-weight:700;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-upload-tips .tutor-course-builder-tips-title i{font-size:24px;color:var(--tutor-primary-color);margin-right:11px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-upload-tips ul{margin:0;padding:0 0 0 35px;list-style:none}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-upload-tips ul li{position:relative;margin-bottom:8px;line-height:24px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-upload-tips ul li::after{content:'';position:absolute;height:8px;width:8px;border-radius:50%;background:#DCDFE5;left:-26px;top:9px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend span.select2-container.select2-container--open{margin-top:32px !important}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .select2-search\_\_field{min-width:1em !important}body.tutor-screen-course-builder:not(.tutor-screen-course-builder-frontend) #tutor-course-topics .postbox-header h2{padding:15px;line-height:30px;display:block}body.tutor-screen-course-builder:not(.tutor-screen-course-builder-frontend) #tutor-course-topics .postbox-header h2:before{content:"\\e936";color:var(--tutor-primary-color);font-family:"tutor" !important;speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin-right:10px}body.tutor-screen-course-builder:not(.tutor-screen-course-builder-frontend) #tutor-course-topics .inside{padding:0;margin:0}body.tutor-screen-course-builder:not(.tutor-screen-course-builder-frontend) #tutor-course-topics .tutor-metabox-add-topics,body.tutor-screen-course-builder:not(.tutor-screen-course-builder-frontend) #tutor-course-topics .tutor-topics-edit-form{background:#f1f1f1;margin:0;padding:15px}
1
body.tutor-screen-course-builder .builder-course-thumbnail-upload-wrap>div{font-size:var(--tutor-text-size);line-height:25px;margin-bottom:20px;font-weight:400}body.tutor-screen-course-builder .builder-course-thumbnail-upload-wrap .button-transparent{float:right;background:transparent !important}body.tutor-screen-course-builder .builder-course-thumbnail-upload-wrap .button-transparent:hover{background:var(--tutor-primary-color) !important}body.tutor-screen-course-builder .builder-course-thumbnail-img-src{position:relative}body.tutor-screen-course-builder .builder-course-thumbnail-img-src .tutor-course-thumbnail-delete-btn{font-size:10px;position:absolute;top:-4px;left:-4px;color:#e53935;-webkit-transition:300ms;transition:300ms;border-radius:50%;width:20px;height:20px;line-height:20px;background:#fff;text-align:center}body.tutor-screen-course-builder .builder-course-thumbnail-img-src .tutor-course-thumbnail-delete-btn i{line-height:20px}body.tutor-screen-course-builder .tutor-video-upload-wrap .video\_source\_wrap\_html5{width:100%}body.tutor-screen-course-builder .tutor-video-upload-wrap .video\_source\_wrap\_html5 .video-metabox-source-html5-upload{background-color:#fff;text-align:center;padding:40px 20px;border:1px solid #dcdfe5;border-radius:3px}body.tutor-screen-course-builder .tutor-video-upload-wrap .video\_source\_wrap\_html5 .video-metabox-source-html5-upload p{margin-bottom:5px}body.tutor-screen-course-builder .tutor-video-upload-wrap .video\_source\_wrap\_html5 .video-metabox-source-html5-upload .video-upload-icon i{font-size:50px;color:var(--tutor-primary-color)}body.tutor-screen-course-builder .tutor-video-upload-wrap .video\_source\_wrap\_html5 .video-metabox-source-html5-upload .video\_source\_upload\_wrap\_html5{margin-top:10px}body.tutor-screen-course-builder .tutor-video-upload-wrap .video\_source\_wrap\_html5 .video-metabox-source-html5-poster{padding-top:20px}body.tutor-screen-course-builder .tutor-video-upload-wrap .video\_source\_wrap\_html5 .video-metabox-source-html5-poster .html5-video-poster{height:100px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}body.tutor-screen-course-builder .tutor-video-upload-wrap .video\_source\_wrap\_html5 .video-metabox-source-html5-poster .html5-video-poster img{height:100%;width:auto}body.tutor-screen-course-builder .tutor-video-upload-wrap .video\_source\_wrap\_html5 .video-metabox-source-html5-poster .html5-video-poster .tutor-builder-course-video-poster-text{text-align:left;padding-left:20px}body.tutor-screen-course-builder.rtl .html5-video-poster .tutor-builder-course-video-poster-text{padding-left:0;padding-right:20px}body.tutor-screen-course-builder .tutor-video-upload-wrap .video\_source\_wrap\_html5 .video-metabox-source-html5-poster .html5-video-poster .tutor-builder-course-video-poster-text h5{font-size:14px;font-weight:700;margin:0 0 6px;line-height:1}body.tutor-screen-course-builder .tutor-video-upload-wrap .video\_source\_wrap\_html5 .video-metabox-source-html5-poster .html5-video-poster .tutor-builder-course-video-poster-text span{font-size:14px;font-weight:400}body.tutor-screen-course-builder .tutor-video-upload-wrap .video\_source\_wrap\_html5 .video-metabox-source-html5-poster .tutor-row{display:-webkit-box;display:-ms-flexbox;display:flex;display:-o-flex;display:-ms-flex;display:-moz-flex;display:-webkit-flex;flex-wrap:wrap;-o-flex-wrap:wrap;-ms-flex-wrap:wrap;-moz-flex-wrap:wrap;-webkit-flex-wrap:wrap;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-o-justify-content:space-between;-ms-justify-content:space-between;-moz-justify-content:space-between;-webkit-justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-o-align-items:center;-ms-align-items:center;-moz-align-items:center;-webkit-align-items:center}body.tutor-screen-course-builder .tutor-video-upload-wrap .video\_source\_wrap\_html5 .video-metabox-source-html5-poster .tutor-row .tutor-col-5{width:38%}body.tutor-screen-course-builder .tutor-video-upload-wrap .video\_source\_wrap\_html5 .video-metabox-source-html5-poster .tutor-row .tutor-col-7{width:62%}body.tutor-screen-course-builder #tutor-metabox-course-settings-tabs{background-color:#fff;border:1px solid #e5e5e5;margin:1em 0}body.tutor-screen-course-builder:not(.tutor-screen-course-builder-frontend) #tutor-metabox-course-settings-tabs{border:none}body.tutor-screen-course-builder #tutor-metabox-course-settings-tabs .settings-tabs-heading{padding:1em;border-bottom:1px solid #e5e5e5}body.tutor-screen-course-builder #tutor-metabox-course-settings-tabs .settings-tabs-heading h3{font-size:14px;margin:0;line-height:1.4}body.tutor-screen-course-builder #tutor-metabox-course-settings-tabs .tutor-field-radio p{margin-top:0}body.tutor-screen-course-builder #tutor-metabox-course-settings-tabs .course-settings-tabs-container{display:-webkit-box;display:-ms-flexbox;display:flex;display:-o-flex;display:-ms-flex;display:-moz-flex;display:-webkit-flex}body.tutor-screen-course-builder #tutor-metabox-course-settings-tabs .course-settings-tabs-container .settings-tabs-navs-wrap{-webkit-box-flex:0;flex:0 0 200px;-o-flex:0 0 200px;-ms-flex:0 0 200px;-moz-flex:0 0 200px;-webkit-flex:0 0 200px;background:#F5F5F5}body.tutor-screen-course-builder #tutor-metabox-course-settings-tabs .course-settings-tabs-container .settings-tabs-navs-wrap .settings-tabs-navs{margin:0;list-style:none}body.tutor-screen-course-builder #tutor-metabox-course-settings-tabs .course-settings-tabs-container .settings-tabs-navs-wrap .settings-tabs-navs li{margin:0}body.tutor-screen-course-builder #tutor-metabox-course-settings-tabs .course-settings-tabs-container .settings-tabs-navs-wrap .settings-tabs-navs li a{display:block;padding-top:10px;padding-bottom:10px;padding-left:15px;padding-right:15px;color:#23282d;text-decoration:none;background:#F5F5F5;text-transform:capitalize;border-bottom:1px solid #e5e5e5;border-left:3px solid transparent}body.tutor-screen-course-builder #tutor-metabox-course-settings-tabs .course-settings-tabs-container .settings-tabs-navs-wrap .settings-tabs-navs li a:focus{-webkit-box-shadow:none;box-shadow:none}body.tutor-screen-course-builder #tutor-metabox-course-settings-tabs .course-settings-tabs-container .settings-tabs-navs-wrap .settings-tabs-navs li.active a{background-color:#ffffff;border-bottom:1px solid #e5e5e5;color:var(--tutor-primary-color);border-left:3px solid var(--tutor-primary-color)}body.tutor-screen-course-builder #tutor-metabox-course-settings-tabs .course-settings-tabs-container .settings-tabs-navs-wrap .settings-tabs-navs li:last-child a{border-bottom:none}body.tutor-screen-course-builder #tutor-metabox-course-settings-tabs .course-settings-tabs-container .settings-tabs-container{padding:1em;-webkit-box-flex:1;flex:1;-o-flex:1;-ms-flex:1;-moz-flex:1;-webkit-flex:1}body.tutor-screen-course-builder .tutor-course-available-instructors{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}body.tutor-screen-course-builder .tutor-course-available-instructors .added-instructor-item{-webkit-box-flex:0;-ms-flex:0 0 calc(50% - 20px);flex:0 0 calc(50% - 20px);max-width:calc(50% - 20px);border:1px solid #dcdfe5;padding:13px;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-radius:4px;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0px 10px 20px}@media (min-width: 1300px){body.tutor-screen-course-builder .tutor-course-available-instructors .added-instructor-item{-ms-flex:0 0 calc(33.333% - 20px);-webkit-box-flex:0;flex:0 0 calc(33.333% - 20px);max-width:calc(33.333% - 20px)}}@media (max-width: 546px){body.tutor-screen-course-builder .tutor-course-available-instructors .added-instructor-item{-ms-flex:0 0 100%;-webkit-box-flex:0;flex:0 0 100%;max-width:100%}}body.tutor-screen-course-builder .tutor-course-available-instructors .added-instructor-item .instructor-control{position:absolute;right:14px;top:50%;font-size:12px;-webkit-transform:translateY(-50%);transform:translateY(-50%);opacity:0;-webkit-transition:300ms;transition:300ms}body.tutor-screen-course-builder .tutor-course-available-instructors .added-instructor-item .instructor-control a{color:red;text-decoration:none}body.tutor-screen-course-builder .tutor-course-available-instructors .added-instructor-item:hover .instructor-control{opacity:1}body.tutor-screen-course-builder .tutor-course-available-instructors .added-instructor-item .instructor-icon{height:45px;width:45px;overflow:hidden;border-radius:50px;margin-right:15px}body.tutor-screen-course-builder .tutor-course-available-instructors .added-instructor-item .instructor-icon img{width:100%;height:auto}body.tutor-screen-course-builder .tutor-course-available-instructors .added-instructor-item .instructor-name{position:relative}body.tutor-screen-course-builder .tutor-course-available-instructors .added-instructor-item .instructor-name i.instructor-name-tooltip{-webkit-transition:300ms;transition:300ms;opacity:0;position:absolute;bottom:34px;right:9px;background:#2a344f;-webkit-transform:translateX(50%);transform:translateX(50%);color:#fff;font-size:12px;font-style:normal;padding:0 8px;border-radius:15px;line-height:20px;z-index:1}body.tutor-screen-course-builder .tutor-course-available-instructors .added-instructor-item .instructor-name i.instructor-name-tooltip::before{content:"";position:absolute;border:5px solid #2a344f;bottom:-3px;left:50%;margin-left:-5px;-webkit-transform:rotate(45deg);transform:rotate(45deg);z-index:-1}body.tutor-screen-course-builder .tutor-course-available-instructors .added-instructor-item .instructor-name img{display:inline-block;margin-left:10px;width:18px}body.tutor-screen-course-builder .tutor-course-available-instructors .added-instructor-item .instructor-name img:hover+i.instructor-name-tooltip{opacity:1}body.tutor-screen-course-builder #tutor-instructors h2{padding:15px;line-height:30px}body.tutor-screen-course-builder #tutor-instructors h2:before{content:"\\e93c";color:var(--tutor-primary-color);font-family:"tutor" !important;speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin-right:10px}body.tutor-screen-course-builder .tutor-course-builder-attachments{display:-webkit-box;display:-ms-flexbox;display:flex;display:-o-flex;display:-ms-flex;display:-moz-flex;display:-webkit-flex;flex-wrap:wrap;-o-flex-wrap:wrap;-ms-flex-wrap:wrap;-moz-flex-wrap:wrap;-webkit-flex-wrap:wrap;margin-left:-25px;-webkit-box-sizing:border-box;box-sizing:border-box}body.tutor-screen-course-builder .tutor-course-builder-attachments:empty{display:none}body.tutor-screen-course-builder .tutor-course-builder-attachments,body.tutor-screen-course-builder .tutor-course-builder-attachments:focus,body.tutor-screen-course-builder .tutor-course-builder-attachments:active,body.tutor-screen-course-builder .tutor-course-builder-attachments:hover,body.tutor-screen-course-builder .tutor-course-builder-attachments \*,body.tutor-screen-course-builder .tutor-course-builder-attachments \*:focus,body.tutor-screen-course-builder .tutor-course-builder-attachments \*:active,body.tutor-screen-course-builder .tutor-course-builder-attachments \*:hover{text-decoration:none;outline:none}body.tutor-screen-course-builder .tutor-course-builder-attachments .tutor-added-attachment{-webkit-box-flex:0;flex:0 0 calc(25% - 30px);-o-flex:0 0 calc(25% - 30px);-ms-flex:0 0 calc(25% - 30px);-moz-flex:0 0 calc(25% - 30px);-webkit-flex:0 0 calc(25% - 30px);max-width:calc(25% - 30px);border:1px solid #DCDFE5;padding:35px 20px 20px;position:relative;text-align:center;margin-left:30px;margin-bottom:30px;border-radius:4px;-webkit-transition:300ms;transition:300ms;min-width:120px}@media (max-width: 480px){body.tutor-screen-course-builder .tutor-course-builder-attachments .tutor-added-attachment{-webkit-box-flex:0;-ms-flex:0 0 calc(50% - 30px);flex:0 0 calc(50% - 30px);max-width:calc(50% - 30px)}}body.tutor-screen-course-builder .tutor-course-builder-attachments .tutor-added-attachment i{font-size:58px;line-height:58px;margin-bottom:25px;display:block}body.tutor-screen-course-builder .tutor-course-builder-attachments .tutor-added-attachment .tutor-delete-attachment{position:absolute;height:22px;width:22px;border:1px solid #DCDFE5;text-align:center;line-height:22px;top:-1px;right:-1px;font-size:10px;border-top-right-radius:4px;color:transparent;-webkit-transition:300ms;transition:300ms}body.tutor-screen-course-builder .tutor-course-builder-attachments .tutor-added-attachment:hover,body.tutor-screen-course-builder .tutor-course-builder-attachments .tutor-added-attachment:hover .tutor-delete-attachment{border-color:#D71830;color:#D71830}body.tutor-screen-course-builder .tutor-course-builder-attachments .tutor-added-attachment span{display:block}body.tutor-screen-course-builder .tutor-course-builder-attachments .tutor-added-attachment span a{font-size:14px;display:block;line-height:20px;color:#606C8F}body.tutor-screen-course-builder #tutor-course-content-builder-root{position:relative}body.tutor-screen-course-builder #tutor-course-content-builder-root .tutor-course-builder-header{line-height:50px;position:absolute;top:-69px;right:40px}body.tutor-screen-course-builder #tutor-course-content-builder-root .tutor-course-builder-header.has-postbox-header{top:-56px;right:96px}body.tutor-screen-course-builder.rtl .tutor-course-builder-header{right:auto;left:40px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .has-postbox-header{position:static !important}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend #tutor-course-content-wrap{border:1px solid #ddd;margin-top:20px}body.tutor-screen-course-builder #tutor-course-content-builder-root .tutor-metabox-add-topics .tutor-option-field-row,body.tutor-screen-course-builder #tutor-course-content-builder-root .tutor-topics-edit-form .tutor-option-field-row{padding:15px 0}body.tutor-screen-course-builder #tutor-course-content-builder-root .tutor-metabox-add-topics .tutor-option-field-row:last-child,body.tutor-screen-course-builder #tutor-course-content-builder-root .tutor-topics-edit-form .tutor-option-field-row:last-child{border-bottom:none}body.tutor-screen-course-builder #tutor-course-content-builder-root .tutor-metabox-add-topics .tutor-option-field-row textarea,body.tutor-screen-course-builder #tutor-course-content-builder-root .tutor-topics-edit-form .tutor-option-field-row textarea{height:120px}body.tutor-screen-course-builder #tutor-course-content-builder-root .new-topic-btn-wrap{padding:0;margin:15px}body.tutor-screen-course-builder #tutor-course-content-builder-root .new-topic-btn-wrap body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .new-topic-btn-wrap{margin-left:0;margin-right:0}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics{position:relative}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap a,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics a{text-decoration:none}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap a:focus,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics a:focus{box-shadow:none;-o-box-shadow:none;-ms-box-shadow:none;-moz-box-shadow:none;-webkit-box-shadow:none}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-quiz-builder-modal-tabs-notice a,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-quiz-builder-modal-tabs-notice a{color:#a4a4a4;text-decoration:underline}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .toggle-indicator:before,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .toggle-indicator:before{margin-top:20px}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-topics-wrap,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-topics-wrap{border-bottom:1px solid #f6f8fa;padding-bottom:0;margin:0}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-topics-wrap:nth-child(2n),body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-topics-wrap:nth-child(2n){background:#f6f8fa}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-topics-wrap .tutor-topic-title,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-topics-wrap .tutor-topic-title{display:-webkit-box;display:-ms-flexbox;display:flex;font-size:16px;font-weight:300;margin:0;line-height:40px;padding-left:15px;-webkit-box-align:center;-ms-flex-align:center;align-items:center}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-topics-wrap .tutor-topic-title a,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-topics-wrap .tutor-topic-title a{color:#393c40}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-topics-wrap .tutor-topic-title .topic-inner-title,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-topics-wrap .tutor-topic-title .topic-inner-title{-webkit-box-flex:1;-ms-flex:1 0 auto;flex:1 0 auto;cursor:pointer;max-width:calc(100% - 154px)}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-topics-wrap .tutor-topic-title span,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-topics-wrap .tutor-topic-title span{padding:0 5px}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-topics-wrap .tutor-topic-title span.expand-collapse-wrap,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-topics-wrap .tutor-topic-title span.expand-collapse-wrap{border-left:1px solid #e7e7e7}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-topics-wrap .tutor-topic-title span.expand-collapse-wrap a,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-topics-wrap .tutor-topic-title span.expand-collapse-wrap a{display:block;padding:0 13px}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-topics-wrap .tutor-topic-title .topic-edit-icon,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-topics-wrap .tutor-topic-title .topic-edit-icon{cursor:pointer}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-topics-wrap .tutor-topic-title .topic-delete-btn,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-topics-wrap .tutor-topic-title .topic-delete-btn{float:right}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-topics-wrap .tutor-topic-title .topic-delete-btn a,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-topics-wrap .tutor-topic-title .topic-delete-btn a{padding:0 10px}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-topics-wrap .tutor-topic-title .topic-delete-btn a:hover,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-topics-wrap .tutor-topic-title .topic-delete-btn a:hover{color:#ff0000}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-topics-wrap .tutor-topic-title .topic-delete-btn .dashicons,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-topics-wrap .tutor-topic-title .topic-delete-btn .dashicons{width:12px;height:12px;font-size:12px}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-topics-wrap .tutor-topics-body,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-topics-wrap .tutor-topics-body{background:#ebeef0;padding:15px 20px}body.tutor-screen-course-builder.rtl .tutor-topics-wrap .tutor-topic-title{padding-left:0;padding-right:15px}body.tutor-screen-course-builder.rtl .tutor-topics-wrap .tutor-topic-title span.expand-collapse-wrap{border-left:none;border-right:1px solid #e7e7e7}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-topics-wrap .course-move-handle,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-topics-wrap .course-move-handle{-ms-flex-item-align:center;align-self:center;-o-align-self:center;-ms-align-self:center;-moz-align-self:center;-webkit-align-self:center;cursor:-webkit-grab;cursor:grab;margin-right:5px}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-topics-wrap .course-move-handle:active,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-topics-wrap .course-move-handle:active{cursor:-webkit-grabbing;cursor:grabbing}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .drop-lessons p,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .drop-lessons p{margin:0}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .course-content-item:hover,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .course-content-item:hover{background-color:#ebeef0}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-lessons,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-lessons{padding-left:0;margin-bottom:20px}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-lessons:empty,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-lessons:empty{display:none}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-lessons.ui-sortable,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-lessons.ui-sortable{min-height:20px}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-lesson-top,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-lesson-top{display:-webkit-box;display:-ms-flexbox;display:flex;display:-o-flex;display:-ms-flex;display:-moz-flex;display:-webkit-flex;font-size:14px}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-lesson-top,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-lesson-top i,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-lesson-top,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-lesson-top i{font-size:15px}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-lesson-top i.tutor-icon-pencil,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-lesson-top i.tutor-icon-pencil{margin:0 10px}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-lesson-top i.tutor-icon-move,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-lesson-top i.tutor-icon-move{margin-right:10px;cursor:-webkit-grab;cursor:grab;line-height:unset}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-lesson-top i.tutor-icon-move:active,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-lesson-top i.tutor-icon-move:active{cursor:-webkit-grabbing;cursor:grabbing}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-lesson-top a,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-lesson-top a{color:#393c40}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-lesson-top a.tutor-updating-message i,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-lesson-top a.tutor-updating-message i{display:none}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-lesson-top a:nth-child(2),body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-lesson-top a:nth-child(2){-webkit-box-flex:1;flex:1;-o-flex:1;-ms-flex:1;-moz-flex:1;-webkit-flex:1}body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-content-wrap .tutor-lesson-top .open-tutor-quiz-modal i,body.tutor-screen-course-builder #tutor-course-content-builder-root #tutor-course-topics .tutor-lesson-top .open-tutor-quiz-modal i{display:inline-block;vertical-align:middle;margin-right:5px}body.tutor-screen-course-builder.rtl #tutor-course-content-wrap .tutor-lesson-top i.tutor-icon-move{margin-right:0;margin-left:10px}body.tutor-screen-course-builder.rtl #tutor-course-content-wrap .tutor-lesson-top .open-tutor-quiz-modal i{margin-right:0;margin-left:5px}body.tutor-screen-course-builder .tutor-course-builder-content-container.tutor-untopics-lessons{border:1px solid #eee;padding:20px;margin:0 -1px -1px;background-color:#fbfbfb}body.tutor-screen-course-builder .tutor-course-builder-content-container.tutor-untopics-lessons h3{font-weight:300}body.tutor-screen-course-builder .tutor-course-builder-content-container.tutor-untopics-lessons .tutor-lessons{padding-left:0 !important}body.tutor-screen-course-builder .tutor-course-builder-content-container .course-content-item{padding:10px;border-bottom:1px solid #d9d9d9;background-color:#ebeef0}body.tutor-screen-course-builder .tutor-course-builder-content-container .course-content-item .tutor-lesson-top{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}body.tutor-screen-course-builder .tutor-course-builder-content-container .course-content-item .tutor-lesson-top a{color:#393c40;font-weight:400;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}body.tutor-screen-course-builder .tutor-course-builder-content-container .course-content-item .tutor-lesson-top a:last-child{margin-left:auto}body.tutor-screen-course-builder .tutor-course-builder-content-container .course-content-item .tutor-lesson-top a.open-tutor-lesson-modal{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-o-flex-grow:1;-ms-flex-grow:1;-moz-flex-grow:1;-webkit-flex-grow:1}body.tutor-screen-course-builder .tutor-course-builder-content-container .course-content-item .tutor-lesson-top i{padding-right:7px;color:#393c40}body.tutor-screen-course-builder .tutor-course-builder-content-container .course-content-item .tutor-lesson-top .tutor-updating-message i{display:none}body.tutor-screen-course-builder .tutor-course-builder-content-container .course-content-item .tutor-lesson-top i.tutor-icon-garbage:hover{color:red}body.tutor-screen-course-builder .tutor-add-quiz-button-wrap{padding:0;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center}body.tutor-screen-course-builder .tutor-add-quiz-button-wrap>\*+\*{margin-left:15px}body.tutor-screen-course-builder .tutor-add-quiz-button-wrap a{color:#2756d1}body.tutor-screen-course-builder .tutor-certificate-template-tab{max-width:735px;margin:auto;display:grid}body.tutor-screen-course-builder .tutor-certificate-template-tab .tab-header{justify-self:center;gap:15px;margin-bottom:32px;background:#f6f8fd;border-radius:5px;padding:4px}body.tutor-screen-course-builder .tutor-certificate-template-tab .tab-header.d-flex{display:-webkit-box;display:-ms-flexbox;display:flex;display:-o-flex;display:-ms-flex;display:-moz-flex;display:-webkit-flex}body.tutor-screen-course-builder .tutor-certificate-template-tab .tab-header-item{color:#9ca0ac;font-weight:500;font-size:15px;line-height:160%;cursor:pointer;padding:4px 20px;border-radius:5px;-webkit-transition:200ms linear;transition:200ms linear}body.tutor-screen-course-builder .tutor-certificate-template-tab .tab-header-item .item-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:7px}body.tutor-screen-course-builder .tutor-certificate-template-tab .tab-header-item .item-wrapper .icon{font-size:24px}body.tutor-screen-course-builder .tutor-certificate-template-tab .tab-header-item.is-active{color:#3e64de;background-color:white;-webkit-box-shadow:0px 1px 2px rgba(2,11,83,0.2);box-shadow:0px 1px 2px rgba(2,11,83,0.2)}body.tutor-screen-course-builder .tutor-certificate-template-tab .tab-header-item:not(.is-active) img{filter:grayscale(100%);-o-filter:grayscale(100%);-ms-filter:grayscale(100%);-moz-filter:grayscale(100%);-webkit-filter:grayscale(100%);opacity:0.55}body.tutor-screen-course-builder .tutor-certificate-template{display:grid;gap:25px;grid-template-columns:repeat(auto-fill, minmax(228px, 1fr));grid-template-rows:-webkit-min-content;grid-template-rows:min-content;position:relative}body.tutor-screen-course-builder .tutor-certificate-template .tutor-certificate-collapsible{display:none}body.tutor-screen-course-builder .tutor-certificate-template label.template-radio-field{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;cursor:pointer;position:relative}body.tutor-screen-course-builder .tutor-certificate-template label.template-radio-field img{max-width:100%}body.tutor-screen-course-builder .tutor-certificate-template label.template-radio-field input\[type='radio'\]{display:none;appearance:none;-moz-appearance:none;-webkit-appearance:none}body.tutor-screen-course-builder .tutor-certificate-template label.template-radio-field input\[type='radio'\]:checked+.icon-wrapper{-webkit-box-shadow:0 0 0 2px #3e64de;box-shadow:0 0 0 2px #3e64de}body.tutor-screen-course-builder .tutor-certificate-template label.template-radio-field input\[type='radio'\]:checked+.icon-wrapper::before{opacity:1;-webkit-transform:scale(1);transform:scale(1)}body.tutor-screen-course-builder .tutor-certificate-template label.template-radio-field span.icon-wrapper{-webkit-box-shadow:0 0 0 1px #eff1f6;box-shadow:0 0 0 1px #eff1f6;border-radius:6px;-webkit-transition:-webkit-box-shadow 200ms ease;transition:-webkit-box-shadow 200ms ease;transition:box-shadow 200ms ease;transition:box-shadow 200ms ease, -webkit-box-shadow 200ms ease;position:relative}body.tutor-screen-course-builder .tutor-certificate-template label.template-radio-field span.icon-wrapper::before{content:'';position:absolute;width:28px;height:28px;background-size:25px;background-repeat:no-repeat;background-position:left 2px center;background-image:url("data:image/svg+xml,%3Csvg width='25' height='25' viewBox='0 0 25 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.42318 12.9161C6.3686 12.8593 6.32513 12.7929 6.29503 12.7201C6.23499 12.558 6.23499 12.3797 6.29503 12.2175C6.32453 12.1445 6.36807 12.0779 6.42318 12.0215L7.33283 11.1496C7.38636 11.0869 7.45336 11.0371 7.52883 11.0038C7.60148 10.971 7.68026 10.9538 7.76001 10.9536C7.84642 10.9519 7.93217 10.9691 8.01129 11.0038C8.0895 11.0386 8.16031 11.0881 8.21985 11.1496L10.9639 13.8986L16.8539 8.00855C16.9119 7.94744 16.981 7.89797 17.0575 7.8628C17.1368 7.82861 17.2224 7.81149 17.3088 7.81255C17.3898 7.813 17.4698 7.83071 17.5435 7.8645C17.6171 7.8983 17.6827 7.94741 17.7359 8.00855L18.6456 8.89306C18.7007 8.9494 18.7442 9.01598 18.7737 9.08906C18.8338 9.25121 18.8338 9.42949 18.7737 9.59163C18.7436 9.66439 18.7002 9.73087 18.6456 9.78763L11.4061 16.9894C11.3522 17.0523 11.2853 17.1029 11.2101 17.1377C11.0492 17.2041 10.8685 17.2041 10.7076 17.1377C10.6323 17.1029 10.5655 17.0523 10.5116 16.9894L6.42318 12.9161Z' fill='white'/%3E%3C/svg%3E%0A");background-color:#3e64de;border-radius:50%;right:-15px;top:-15px;z-index:1;opacity:0;-webkit-transform:scale(1.15);transform:scale(1.15);-webkit-transition:200ms linear;transition:200ms linear}body.tutor-screen-course-builder .tutor-certificate-template label.template-radio-field span.icon-wrapper img{border-radius:6px}body.tutor-screen-course-builder .tutor-certificate-template label.template-radio-field .template-item-overlay{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:17px;position:absolute;inset:0;background:rgba(255,255,255,0.6);-webkit-backdrop-filter:blur(30px);backdrop-filter:blur(30px);border-radius:6px;visibility:hidden;opacity:0;-webkit-transition:200ms linear;transition:200ms linear}body.tutor-screen-course-builder .tutor-certificate-template label.template-radio-field .template-item-overlay .tutor-btn{border-radius:6px;opacity:0;-webkit-transform:translateY(10px);transform:translateY(10px);-webkit-transition:200ms linear;transition:200ms linear}body.tutor-screen-course-builder .tutor-certificate-template label.template-radio-field .template-item-overlay .tutor-btn.tutor-is-outline{background:transparent;color:var(--tutor-primary)}body.tutor-screen-course-builder .tutor-certificate-template label.template-radio-field .template-item-overlay .tutor-btn.tutor-is-outline:hover{background-color:var(--tutor-primary-hover);border-color:var(--tutor-primary-hover);color:var(--tutor-white)}body.tutor-screen-course-builder .tutor-certificate-template label.template-radio-field .template-item-overlay .tutor-btn:nth-child(1){-webkit-transition-delay:100ms;transition-delay:100ms}body.tutor-screen-course-builder .tutor-certificate-template label.template-radio-field .template-item-overlay .tutor-btn:nth-child(2){-webkit-transition-delay:130ms;transition-delay:130ms}body.tutor-screen-course-builder .tutor-certificate-template label.template-radio-field:hover .template-item-overlay{visibility:visible;opacity:1}body.tutor-screen-course-builder .tutor-certificate-template label.template-radio-field:hover .template-item-overlay .tutor-btn{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}body.tutor-screen-course-builder .tutor-certificate-template .template-load-more{position:absolute;width:100%;height:185px;bottom:0;background:-webkit-gradient(linear, left top, left bottom, color-stop(1.31%, rgba(255,255,255,0.0001)), color-stop(15.41%, rgba(255,255,255,0.74)), color-stop(38.83%, rgba(255,255,255,0.92)), to(#fff));background:linear-gradient(180deg, rgba(255,255,255,0.0001) 1.31%, rgba(255,255,255,0.74) 15.41%, rgba(255,255,255,0.92) 38.83%, #fff 100%);text-align:center;display:grid;place-content:center}body.tutor-screen-course-builder .tutor-certificate-template .template-load-more .load-more-btn{border:none;background:transparent;outline:none;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:5px}body.tutor-screen-course-builder .tutor-certificate-template .template-load-more .load-more-btn span{font-size:20px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend.admin-bar .tutor-dashboard-builder-header{top:32px}@media (max-width: 783px){body.tutor-screen-course-builder.tutor-screen-course-builder-frontend.admin-bar .tutor-dashboard-builder-header{top:46px}}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-option-field textarea,body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-form-group textarea{height:100px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-form-row{margin-top:20px;margin-bottom:20px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-section{margin-bottom:60px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-section .tutor-frontend-builder-item-scope{margin-bottom:30px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-section .tutor-frontend-builder-item-scope:last-child{margin-bottom:0}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-section .tutor-frontend-builder-item-scope .tutor-builder-item-heading{font-weight:500;line-height:21px;margin-bottom:10px;display:block}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-section .tutor-course-builder-section-title h3{font-size:20px;font-weight:700;color:#1d1f37;position:relative;overflow:hidden;z-index:1;margin:0 0 25px;cursor:pointer}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-section .tutor-course-builder-section-title h3::after{content:"";position:absolute;top:50%;left:0;width:100%;height:1px;background:var(--tutor-primary-color);z-index:-1}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-section .tutor-course-builder-section-title h3 span,body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-section .tutor-course-builder-section-title h3 i{float:left;background-color:#fff;font-size:20px;line-height:20px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-section .tutor-course-builder-section-title h3 i{color:var(--tutor-primary-color);font-size:14px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-section .tutor-course-builder-section-title h3 span{padding:0 15px 0 9px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-section .course-empty-content{margin:15px 0}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-section .tutor-course-builder-header{margin-top:-15px;text-align:right;font-size:12px;position:static}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-section .tutor-course-builder-header a{color:#393c40}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-section .tutor-course-builder-header a:first-child{padding-right:7px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-section .tutor-course-builder-header a:last-child{padding-left:7px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header{padding:10px 0px;border-bottom:2px solid #DCDFE5;position:fixed;top:0px;background:#fff;width:100%;z-index:99}@media (max-width: 991px){body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header{position:static}}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-row{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}@media (max-width: 991px){body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-row .tutor-col-auto{-webkit-box-flex:0;-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-row .tutor-col-auto:first-child{margin-bottom:15px}}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-button{white-space:nowrap;margin-left:auto}@media (max-width: 991px){body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-button{padding:6px 10px}}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-dashboard-builder-header-left{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-dashboard-builder-header-left .tutor-dashboard-builder-logo{padding:0 25px;position:relative}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-dashboard-builder-header-left .tutor-dashboard-builder-logo img{max-height:32px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-dashboard-builder-header-left button{margin:0;padding:0px 25px;line-height:30px;border:none;border-left:1px solid #DCDFE5;background:transparent;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;color:var(--tutor-text-color);-webkit-transition:300ms;transition:300ms;font-weight:500;white-space:nowrap}@media (max-width: 991px){body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-dashboard-builder-header-left button{border-left:none}}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-dashboard-builder-header-left button i{font-size:24px;line-height:30px;margin-right:9px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-dashboard-builder-header-left button:hover{color:var(--tutor-primary-color);background:transparent}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-dashboard-builder-header-left button:hover i{color:var(--tutor-primary-color)}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-dashboard-builder-header-right{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-dashboard-builder-header-right a{color:var(--tutor-text-color);font-weight:500;line-height:36px;padding:0 25px;-webkit-transition:300ms;transition:300ms;white-space:nowrap}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-dashboard-builder-header-right a i{font-size:36px;line-height:36px;display:inline-block;vertical-align:top;padding-right:9px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-dashboard-builder-header .tutor-dashboard-builder-header-right a:hover{color:var(--tutor-primary-color)}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-frontend-course-builder-section{padding:113px 0 45px;background-color:#ffffff}@media (max-width: 991px){body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-frontend-course-builder-section{padding-top:60px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-frontend-course-builder-section .tutor-col-8,body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-frontend-course-builder-section .tutor-col-4{width:100%;max-width:100%;-webkit-box-flex:0;-ms-flex:0 0 100%;flex:0 0 100%}}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-metabox-add-topics,body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-topics-edit-form{background:#f1f1f1;border:1px solid #dcdfe5;margin-top:25px;padding:20px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-level-meta{display:-webkit-box;display:-ms-flexbox;display:flex;display:-o-flex;display:-ms-flex;display:-moz-flex;display:-webkit-flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-o-justify-content:space-between;-ms-justify-content:space-between;-moz-justify-content:space-between;-webkit-justify-content:space-between}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-level-meta label{margin:0 40px 0 0;font-weight:600}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-frontend-builder-course-price .tutor-form-group input{margin-bottom:0}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-frontend-builder-course-price .tutor-styled-radio{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-btn-group{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-wrap:wrap;flex-wrap:wrap}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .lesson-modal-form-wrap .lesson-content-drip-wrap{padding:10px;border:1px solid #e4e4e4}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .lesson-modal-form-wrap .lesson-content-drip-wrap h3{margin:0 0 10px 0}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .select2-dropdown.increasezindex{z-index:9999999999999}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .select2-selection\_\_rendered \[class^="tutor-icon-"\]{vertical-align:middle}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-upload-tips{position:fixed;max-width:370px}@media (max-width: 991px){body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-upload-tips{position:static}}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-upload-tips .tutor-course-builder-tips-title{font-size:16px;color:#8C94A8;font-weight:700;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-upload-tips .tutor-course-builder-tips-title i{font-size:24px;color:var(--tutor-primary-color);margin-right:11px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-upload-tips ul{margin:0;padding:0 0 0 35px;list-style:none}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-upload-tips ul li{position:relative;margin-bottom:8px;line-height:24px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .tutor-course-builder-upload-tips ul li::after{content:'';position:absolute;height:8px;width:8px;border-radius:50%;background:#DCDFE5;left:-26px;top:9px}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend span.select2-container.select2-container--open{margin-top:32px !important}body.tutor-screen-course-builder.tutor-screen-course-builder-frontend .select2-search\_\_field{min-width:1em !important}body.tutor-screen-course-builder:not(.tutor-screen-course-builder-frontend) #tutor-course-topics .postbox-header h2{padding:15px;line-height:30px;display:block}body.tutor-screen-course-builder:not(.tutor-screen-course-builder-frontend) #tutor-course-topics .postbox-header h2:before{content:"\\e936";color:var(--tutor-primary-color);font-family:"tutor" !important;speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin-right:10px}body.tutor-screen-course-builder:not(.tutor-screen-course-builder-frontend) #tutor-course-topics .inside{padding:0;margin:0}body.tutor-screen-course-builder:not(.tutor-screen-course-builder-frontend) #tutor-course-topics .tutor-metabox-add-topics,body.tutor-screen-course-builder:not(.tutor-screen-course-builder-frontend) #tutor-course-topics .tutor-topics-edit-form{background:#f1f1f1;margin:0;padding:15px}
tutor/trunk/assets/js/tutor-admin.js
r2610239
r2615802
1
(()=>{var o={623:()=>{function g(t){return(g="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})(t)}function y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var o=null==t?null:"undefined"!=typeof Symbol&&t\[Symbol.iterator\]||t\["@@iterator"\];if(null!=o){var a,n,i=\[\],r=!0,s=!1;try{for(o=o.call(t);!(r=(a=o.next()).done)&&(i.push(a.value),!e||i.length!==e);r=!0);}catch(t){s=!0,n=t}finally{try{r||null==o.return||o.return()}finally{if(s)throw n}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return a(t,e);var o=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(o="Object"===o&&t.constructor?t.constructor.name:o)||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?a(t,e):void 0}}(t,e)||function(){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 a(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,a=new Array(e);o<e;o++)a\[o\]=t\[o\];return a}window.tutor\_get\_nonce\_data=function(t){var e=window.\_tutorobject||{},o=e.nonce\_key||"",e=e\[o\]||"";return t?{key:o,value:e}:(t=e,(e=o)in(o={})?Object.defineProperty(o,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):o\[e\]=t,o)},window.tutor\_popup=function(r,o,a){var s,u=this;return this.popup\_wrapper=function(t){var e=""===o?"":'<img class="tutor-pop-icon" src="'+window.\_tutorobject.tutor\_url+"assets/images/"+o+'.svg"/>';return"<"+t+' class="tutor-component-popup-container"> <div class="tutor-component-popup-'+a+'"> <div class="tutor-component-content-container">'+e+'</div> <div class="tutor-component-button-container"></div> </div> </'+t+">"},this.popup=function(o){var t=o.title?"<h3>"+o.title+"</h3>":"",e=o.description?"<p>"+o.description+"</p>":"",a=Object.keys(o.buttons||{}).map(function(t){var e=o.buttons\[t\],t=e.id?"tutor-popup-"+e.id:"";return r('<button id="'+t+'" class="tutor-button tutor-button-'+e.class+'">'+e.title+"</button>").click(e.callback)}),n=(s=r(u.popup\_wrapper(o.wrapper\_tag||"div"))).find(".tutor-component-content-container");n.append(t),o.after\_title&&n.append(o.after\_title),n.append(e),o.after\_description&&n.append(o.after\_description),s.click(function(){r(this).remove()}).children().click(function(t){t.stopPropagation()});for(var i=0;i<a.length;i++)s.find(".tutor-component-button-container").append(a\[i\]);return r("body").append(s),s},{popup:this.popup}},window.tutorDotLoader=function(t){return' \\n <div class="tutor-dot-loader '.concat(t||"",'">\\n <span class="dot dot-1"></span>\\n <span class="dot dot-2"></span>\\n <span class="dot dot-3"></span>\\n <span class="dot dot-4"></span>\\n </div>')},window.tutor\_date\_picker=function(){var t;jQuery.datepicker&&(t=\_tutorobject.wp\_date\_format||"yy-mm-dd",$(".tutor\_date\_picker").datepicker({dateFormat:t}))},jQuery(document).ready(function(d){"use strict";var t=wp.i18n,n=t.\_\_;t.\_x,t.\_n,t.\_nx;function o(){var t;jQuery.datepicker&&(t=\_tutorobject.wp\_date\_format||"yy-mm-dd",d(".tutor\_date\_picker").datepicker({dateFormat:t})),d(document).on("keydown",".hasDatepicker, .tutor\_date\_picker",function(t){8!==t.keyCode&&t.preventDefault()})}function s(){d(".tutor-field-slider").each(function(){var t=d(this),o=t.closest(".tutor-field-type-slider").find('input\[type="hidden"\]'),a=t.closest(".tutor-field-type-slider").find(".tutor-field-type-slider-value"),e=parseFloat(t.closest(".tutor-field-type-slider").attr("data-min")),n=parseFloat(t.closest(".tutor-field-type-slider").attr("data-max"));t.slider({range:"max",min:e,max:n,value:o.val(),slide:function(t,e){a.text(e.value),o.val(e.value)}})})}function e(t){var e=t.element;return d('<span><i class="tutor-icon-'+d(e).data("icon")+'"></i> '+t.text+"</span>")}function i(){jQuery().sortable&&(d(".course-contents").sortable({handle:".course-move-handle",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){a()}}),d(".tutor-lessons:not(.drop-lessons)").sortable({connectWith:".tutor-lessons",items:"div.course-content-item",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){a()}}))}function a(){var i={};d(".tutor-topics-wrap").each(function(t,e){var o=d(this),a=parseInt(o.attr("id").match(/\\d+/)\[0\],10),n={};o.find(".course-content-item").each(function(t,e){var o=d(this),o=parseInt(o.attr("id").match(/\\d+/)\[0\],10);n\[t\]=o}),i\[t\]={topic\_id:a,lesson\_ids:n}}),d("#tutor\_topics\_lessons\_sorting").val(JSON.stringify(i))}function r(){return{init:function(){d(document).on("click",".tutor-select .tutor-select-option",function(t){t.preventDefault();var e=d(this);"true"!==e.attr("data-is-pro")?(t=e.html().trim(),e.closest(".tutor-select").find(".select-header .lead-option").html(t),e.closest(".tutor-select").find(".select-header input.tutor\_select\_value\_holder").val(e.attr("data-value")).trigger("change"),e.closest(".tutor-select-options").hide(),disableAddoption()):alert("Tutor Pro version required")}),d(document).on("click",".tutor-select .select-header",function(t){t.preventDefault(),d(this).closest(".tutor-select").find(".tutor-select-options").slideToggle()}),this.setValue(),this.hideOnOutSideClick()},setValue:function(){d(".tutor-select").each(function(){var t=d(this).find(".tutor-select-option");t.length&&t.each(function(){var t,e=d(this);"selected"===e.attr("data-selected")&&(t=e.html().trim(),e.closest(".tutor-select").find(".select-header .lead-option").html(t),e.closest(".tutor-select").find(".select-header input.tutor\_select\_value\_holder").val(e.attr("data-value")))})})},hideOnOutSideClick:function(){d(document).mouseup(function(t){var e=d(".tutor-select-options");d(t.target).closest(".select-header").length||e.is(t.target)||0!==e.has(t.target).length||e.hide()})},reInit:function(){this.setValue()}}}o(),s(),jQuery().select2&&d(".videosource\_select2").select2({width:"100%",templateSelection:e,templateResult:e,allowHtml:!0}),d(document).on("change",".tutor\_lesson\_video\_source",function(t){var e=d(this),o=d(this).val();o?d(".video-metabox-source-input-wrap").show():d(".video-metabox-source-input-wrap").hide(),e.closest(".tutor-option-field").find(".video-metabox-source-item").hide(),e.closest(".tutor-option-field").find(".video\_source\_wrap\_"+o).show()}),d(document).on("click",".tutor-course-thumbnail-upload-btn",function(t){t.preventDefault();var e,o=d(this);e||(e=wp.media({title:n("Select or Upload Media Of Your Chosen Persuasion","tutor"),button:{text:n("Use this media","tutor")},multiple:!1})).on("select",function(){var t=e.state().get("selection").first().toJSON();o.closest(".tutor-thumbnail-wrap").find(".thumbnail-img").attr("src",t.url),o.closest(".tutor-thumbnail-wrap").find("input").val(t.id),d(".tutor-course-thumbnail-delete-btn").show()}),e.open()}),d(document).on("click",".tutor-course-thumbnail-delete-btn",function(t){t.preventDefault();var e=d(this),t=e.closest(".tutor-thumbnail-wrap").find(".thumbnail-img").attr("data-placeholder-src");e.closest(".tutor-thumbnail-wrap").find(".thumbnail-img").attr("src",t),e.closest(".tutor-thumbnail-wrap").find("input").val(""),d(".tutor-course-thumbnail-delete-btn").hide()}),d(document).on("click",".create\_new\_topic\_btn",function(t){t.preventDefault(),d(".tutor-metabox-add-topics").slideToggle()}),d(document).on("click","#tutor-add-topic-btn",function(t){t.preventDefault();var e=d(this),t=e.closest(".tutor-metabox-add-topics").find("input, textarea").serializeObject();t.action="tutor\_add\_course\_topic",d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(d("#tutor-course-content-wrap").html(t.data.course\_contents),e.closest(".tutor-metabox-add-topics").find('input\[type!="hidden"\], textarea').each(function(){d(this).val("")}),e.closest(".tutor-metabox-add-topics").slideUp(),i())},complete:function(){e.removeClass("tutor-updating-message")}})}),d(".tutor-zoom-meeting-modal-wrap").on("submit",".tutor-meeting-modal-form",function(t){t.preventDefault();var e=d(this),o=e.serializeObject(),t=Intl.DateTimeFormat().resolvedOptions().timeZone;o.timezone=t;var a=e.find('button\[type="submit"\]');d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:o,beforeSend:function(){a.addClass("tutor-updating-message")},success:function(t){t.success?tutor\_toast(n("Success","tutor"),a.data("toast\_success\_message"),"success"):tutor\_toast(n("Update Error","tutor"),n("Meeting Update Failed","tutor"),"error"),t.course\_contents?(d(t.selector).html(t.course\_contents),"#tutor-course-content-wrap"==t.selector&&i(),d(".tutor-zoom-meeting-modal-wrap").removeClass("show")):location.reload()},complete:function(){a.removeClass("tutor-updating-message")}})}),d(document).on("change keyup",".course-edit-topic-title-input",function(t){t.preventDefault(),d(this).closest(".tutor-topics-top").find(".topic-inner-title").html(d(this).val())}),d(document).on("click",".topic-edit-icon",function(t){t.preventDefault(),d(this).closest(".tutor-topics-top").find(".tutor-topics-edit-form").slideToggle()}),d(document).on("click",".tutor-topics-edit-button",function(t){t.preventDefault();var e=d(this),o=e.closest(".tutor-topics-wrap"),t=parseInt(o.attr("id").match(/\\d+/)\[0\],10),a=e.closest(".tutor-topics-wrap").find('\[name="topic\_title"\]').val(),o=e.closest(".tutor-topics-wrap").find('\[name="topic\_summery"\]').val();d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{topic\_title:a,topic\_summery:o,topic\_id:t,action:"tutor\_update\_topic"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(e.closest(".tutor-topics-wrap").find("span.topic-inner-title").text(a),e.closest(".tutor-topics-wrap").find(".tutor-topics-edit-form").slideUp())},complete:function(){e.removeClass("tutor-updating-message")}})}),d(document).on("click",".open-tutor-lesson-modal",function(t){t.preventDefault();var e=d(this),o=e.attr("data-lesson-id"),a=e.attr("data-topic-id"),n=d("#post\_ID").val();d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{lesson\_id:o,topic\_id:a,course\_id:n,action:"tutor\_load\_edit\_lesson\_modal"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){d(".tutor-lesson-modal-wrap .modal-container").html(t.data.output),d(".tutor-lesson-modal-wrap").attr({"data-lesson-id":o,"data-topic-id":a}).addClass("show");t=(t=tinyMCEPreInit.mceInit.tutor\_editor\_config)||tinyMCEPreInit.mceInit.course\_description;tinymce.init(t),tinymce.execCommand("mceRemoveEditor",!1,"tutor\_lesson\_modal\_editor"),tinyMCE.execCommand("mceAddEditor",!1,"tutor\_lesson\_modal\_editor"),d(document).trigger("lesson\_modal\_loaded",{lesson\_id:o,topic\_id:a,course\_id:n})},complete:function(){quicktags({id:"tutor\_lesson\_modal\_editor"}),e.removeClass("tutor-updating-message")}})}),d(document).on("click",".lesson\_thumbnail\_upload\_btn",function(t){t.preventDefault();var e,o=d(this);e||(e=wp.media({title:n("Select or Upload Media Of Your Chosen Persuasion","tutor"),button:{text:n("Use this media","tutor")},multiple:!1})).on("select",function(){var t=e.state().get("selection").first().toJSON();o.closest(".tutor-thumbnail-wrap").find(".thumbnail-img").html('<img src="'+t.url+'" alt="" /><a href="javascript:;" class="tutor-lesson-thumbnail-delete-btn"><i class="tutor-icon-line-cross"></i></a>'),o.closest(".tutor-thumbnail-wrap").find("input").val(t.id),d(".tutor-lesson-thumbnail-delete-btn").show()}),e.open()}),d(document).on("click",".tutor-lesson-thumbnail-delete-btn",function(t){t.preventDefault();t=d(this);t.closest(".tutor-thumbnail-wrap").find(".\_lesson\_thumbnail\_id").val(""),t.closest(".tutor-thumbnail-wrap").find(".thumbnail-img").html(""),t.hide()}),d(document).on("click",".tutor-delete-lesson-btn",function(t){var e;t.preventDefault(),confirm(n("Are you sure?","tutor"))&&(t=(e=d(this)).attr("data-lesson-id"),d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{lesson\_id:t,action:"tutor\_delete\_lesson\_by\_id"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&e.closest(".course-content-item").remove()},complete:function(){e.removeClass("tutor-updating-message")}}))}),d(document).on("click",".topic-delete-btn a",function(t){d(this).attr("data-topic-id");confirm(n("Are you sure to delete?","tutor"))||t.preventDefault()}),d(document).on("click",".tutor-expand-all-topic",function(t){t.preventDefault(),d(".tutor-topics-body").slideDown(),d(".expand-collapse-wrap i").removeClass("tutor-icon-light-down").addClass("tutor-icon-light-up")}),d(document).on("click",".tutor-collapse-all-topic",function(t){t.preventDefault(),d(".tutor-topics-body").slideUp(),d(".expand-collapse-wrap i").removeClass("tutor-icon-light-up").addClass("tutor-icon-light-down")}),d(document).on("click",".topic-inner-title, .expand-collapse-wrap",function(t){t.preventDefault();t=d(this);t.closest(".tutor-topics-wrap").find(".tutor-topics-body").slideToggle(),t.closest(".tutor-topics-wrap").find(".expand-collapse-wrap i").toggleClass("tutor-icon-light-down tutor-icon-light-up")}),d(document).on("click",".quiz-modal-btn-first-step",function(t){t.preventDefault();var e,o,a,n=d(this),i=d('\[name="quiz\_title"\]'),r=i.val(),t=d('\[name="quiz\_description"\]').val();r?(i.closest(".tutor-quiz-builder-group").find(".quiz\_form\_msg").html(""),e=d("#post\_ID").val(),o=n.closest(".tutor-modal-wrap").attr("quiz-for-post-id"),d("#tutor\_quiz\_builder\_quiz\_id").length?(a=d("#tutor\_quiz\_builder\_quiz\_id").val(),d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{quiz\_title:r,quiz\_description:t,quiz\_id:a,topic\_id:o,action:"tutor\_quiz\_builder\_quiz\_update"},beforeSend:function(){n.addClass("tutor-updating-message")},success:function(t){d("#tutor-quiz-"+a).html(t.data.output\_quiz\_row),d('#tutor-quiz-modal-tab-items-wrap a\[href="#quiz-builder-tab-questions"\]').trigger("click"),s()},complete:function(){n.removeClass("tutor-updating-message")}})):d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{quiz\_title:r,quiz\_description:t,course\_id:e,topic\_id:o,action:"tutor\_create\_quiz\_and\_load\_modal"},beforeSend:function(){n.addClass("tutor-updating-message")},success:function(t){d(".tutor-quiz-builder-modal-wrap .modal-container").html(t.data.output),d("#tutor-topics-"+o+" .tutor-lessons").append(t.data.output\_quiz\_row),d('#tutor-quiz-modal-tab-items-wrap a\[href="#quiz-builder-tab-questions"\]').trigger("click"),s(),d(document).trigger("quiz\_modal\_loaded",{topic\_id:o,course\_id:e})},complete:function(){n.removeClass("tutor-updating-message")}})):i.closest(".tutor-quiz-builder-group").find(".quiz\_form\_msg").html("Please enter quiz title")}),d(document).on("click",".open-tutor-quiz-modal",function(t){t.preventDefault();var e=d(this),o=e.attr("data-quiz-id"),a=e.attr("data-topic-id");null==a&&(a=e.closest(".tutor-modal-wrap").attr("quiz-for-post-id"));var n=d("#post\_ID").val();d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{quiz\_id:o,topic\_id:a,course\_id:n,action:"tutor\_load\_edit\_quiz\_modal"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){d(".tutor-quiz-builder-modal-wrap .modal-container").html(t.data.output),d(".tutor-quiz-builder-modal-wrap").attr("data-quiz-id",o).attr("quiz-for-post-id",a).addClass("show"),e.attr("data-back-to-tab")&&(t=e.attr("data-back-to-tab"),d('#tutor-quiz-modal-tab-items-wrap a\[href="'+t+'"\]').trigger("click")),d(document).trigger("quiz\_modal\_loaded",{quiz\_id:o,topic\_id:a,course\_id:n}),s(),jQuery().sortable&&d(".quiz-builder-questions-wrap").sortable({handle:".question-sorting",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){var a;a={},d(".quiz-builder-question-wrap").each(function(t,e){var o=d(this),o=parseInt(o.attr("data-question-id"),10);a\[t\]=o}),d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{sorted\_question\_ids:a,action:"tutor\_quiz\_question\_sorting"}})}})},complete:function(){e.removeClass("tutor-updating-message")}})}),d(document).on("click",".quiz-modal-settings-save-btn",function(t){t.preventDefault();var e=d(this),o=d(".tutor-quiz-builder-modal-wrap").attr("data-quiz-id"),a=d("#current\_topic\_id\_for\_quiz").val(),t=d("#quiz-builder-tab-settings :input, #quiz-builder-tab-advanced-options :input").serializeObject();t.topic\_id=a,t.quiz\_id=o,t.action="tutor\_quiz\_modal\_update\_settings",d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&d("#tutor-course-content-wrap").html(t.data.course\_contents),t.success?tutor\_toast(n("Success","tutor"),e.data("toast\_success\_message"),"success"):tutor\_toast(n("Update Error","tutor"),n("Quiz Update Failed","tutor"),"error")},complete:function(){e.removeClass("tutor-updating-message"),"modal\_close"===e.attr("data-action")&&d(".tutor-modal-wrap").removeClass("show")}})}),d(document).on("click",".quiz-modal-question-save-btn",function(t){t.preventDefault();var e=d(this),o=d(".quiz\_question\_form :input").serializeObject();o.action="tutor\_quiz\_modal\_update\_question";t=e.closest(".tutor-modal-wrap").attr("quiz-for-post-id");o.topic\_id=t,d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:o,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success?e.closest(".tutor-quiz-builder-modal-contents").find(".open-tutor-quiz-modal").trigger("click"):void 0!==t.data&&d("#quiz\_validation\_msg\_wrap").html(t.data.validation\_msg)},complete:function(){e.removeClass("tutor-updating-message")}})}),d(document).on("click",".modal-close-btn",function(t){t.preventDefault(),d(".tutor-modal-wrap").removeClass("show")}),d(document).on("keyup",function(t){27===t.keyCode&&d(".tutor-modal-wrap").removeClass("show")}),d(document).on("click",".tutor-add-quiz-btn",function(t){t.preventDefault();var e=d(this),o=d(this).closest(".tutor\_add\_quiz\_wrap").attr("data-add-quiz-under"),t=d(this).data("topic-id");d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{quiz\_for\_post\_id:o,current\_topic\_id:t,action:"tutor\_load\_quiz\_builder\_modal"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){d(".tutor-quiz-builder-modal-wrap .modal-container").html(t.data.output),d(".tutor-quiz-builder-modal-wrap").attr("quiz-for-post-id",o).addClass("show")},complete:function(){e.removeClass("tutor-updating-message")}})}),d(document).on("click",".tutor-quiz-modal-tab-item",function(t){t.preventDefault();var e=d(this),o=d('\[name="quiz\_title"\]');o.val()?(o.closest(".tutor-quiz-builder-form-row").find(".quiz\_form\_msg").html(""),t=e.attr("href"),d(".quiz-builder-tab-container").hide(),d(t).show(),d("a.tutor-quiz-modal-tab-item").removeClass("active"),e.addClass("active")):o.closest(".tutor-quiz-builder-form-row").find(".quiz\_form\_msg").html('<p class="quiz-form-warning">Please save the quiz first</p>')}),d(document).on("click",".quiz-modal-btn-next, .quiz-modal-btn-back",function(t){t.preventDefault();t=d(this).attr("href");d('#tutor-quiz-modal-tab-items-wrap a\[href="'+t+'"\]').trigger("click")}),d(document).on("click",".quiz-modal-tab-navigation-btn.quiz-modal-btn-cancel",function(t){t.preventDefault(),d(".tutor-modal-wrap").removeClass("show")}),d(document).on("click",".tutor-quiz-open-question-form",function(t){t.preventDefault();var e=d(this),o=d("#tutor\_quiz\_builder\_quiz\_id").val(),a=d("#post\_ID").val(),t=e.attr("data-question-id"),a={quiz\_id:o,course\_id:a,action:"tutor\_quiz\_builder\_get\_question\_form"};t&&(a.question\_id=t),d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:a,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){d(".tutor-quiz-builder-modal-contents").html(t.data.output),r().reInit(),jQuery().sortable&&d("#tutor\_quiz\_question\_answers").sortable({handle:".tutor-quiz-answer-sort-icon",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){var a;a={},d(".tutor-quiz-answer-wrap").each(function(t,e){var o=d(this),o=parseInt(o.attr("data-answer-id"),10);a\[t\]=o}),d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{sorted\_answer\_ids:a,action:"tutor\_quiz\_answer\_sorting"}})}}),disableAddoption()},complete:function(){e.removeClass("tutor-updating-message")}})}),d(document).on("click",".tutor-quiz-question-trash",function(t){t.preventDefault();var e=d(this),t=e.attr("data-question-id");d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{question\_id:t,action:"tutor\_quiz\_builder\_question\_delete"},beforeSend:function(){e.closest(".quiz-builder-question-wrap").remove()}})}),d(document).on("click",".add\_question\_answers\_option:not(.disabled)",function(t){t.preventDefault();var e=d(this),o=e.attr("data-question-id"),t=d(".quiz\_question\_form :input").serializeObject();t.question\_id=o,t.action="tutor\_quiz\_add\_question\_answers",d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){d("#tutor\_quiz\_question\_answer\_form").html(t.data.output),disableAddoption()},complete:function(){e.removeClass("tutor-updating-message")}})}),d(document).on("click",".tutor-quiz-answer-edit a",function(t){t.preventDefault();var e=d(this),t=e.closest(".tutor-quiz-answer-wrap").attr("data-answer-id");d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{answer\_id:t,action:"tutor\_quiz\_edit\_question\_answer"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){d("#tutor\_quiz\_question\_answer\_form").html(t.data.output)},complete:function(){e.removeClass("tutor-updating-message")}})}),d(document).on("click","#quiz-answer-save-btn",function(t){t.preventDefault();var e=d(this),t=d(".quiz\_question\_form :input").serializeObject();t.action="tutor\_save\_quiz\_answer\_options",d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){d("#quiz\_validation\_msg\_wrap").html(""),e.addClass("tutor-updating-message")},success:function(t){d("#tutor\_quiz\_question\_answers").trigger("refresh")},complete:function(){e.removeClass("tutor-updating-message")}})}),d(document).on("click","#quiz-answer-edit-btn",function(t){t.preventDefault();var e=d(this),t=d(".quiz\_question\_form :input").serializeObject();t.action="tutor\_update\_quiz\_answer\_options",d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){d("#tutor\_quiz\_question\_answers").trigger("refresh")},complete:function(){e.removeClass("tutor-updating-message")}})}),d(document).on("change",".tutor-quiz-answers-mark-correct-wrap input",function(t){t.preventDefault();var e=d(this),o=e.val(),t=1;e.prop("checked")||(t=0),d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{answer\_id:o,inputValue:t,action:"tutor\_mark\_answer\_as\_correct"}})}),d(document).on("refresh","#tutor\_quiz\_question\_answers",function(t){t.preventDefault();var e=d(this),o=e.attr("data-question-id"),t=d(".tutor\_select\_value\_holder").val();d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{question\_id:o,question\_type:t,action:"tutor\_quiz\_builder\_get\_answers\_by\_question"},beforeSend:function(){e.addClass("tutor-updating-message"),d("#tutor\_quiz\_question\_answer\_form").html("")},success:function(t){t.success&&e.html(t.data.output)},complete:function(){e.removeClass("tutor-updating-message")}})}),d(document).on("click",".tutor-quiz-answer-trash-wrap a.answer-trash-btn",function(t){t.preventDefault();var e=d(this),t=e.attr("data-answer-id");d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{answer\_id:t,action:"tutor\_quiz\_builder\_delete\_answer"},beforeSend:function(){e.closest(".tutor-quiz-answer-wrap").remove()}})}),d(document).on("click",".tutor-delete-quiz-btn",function(t){var e;t.preventDefault(),confirm(n("Are you sure?","tutor"))&&(t=(e=d(this)).attr("data-quiz-id"),d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{quiz\_id:t,action:"tutor\_delete\_quiz\_by\_id"},beforeSend:function(){e.closest(".course-content-item").remove()}}))}),r().init(),d(document).on("change","input.tutor\_select\_value\_holder",function(t){d(this);d(".add\_question\_answers\_option").trigger("click"),d("#tutor\_quiz\_question\_answers").trigger("refresh")}),d(document).on("click",".tutor-media-upload-btn",function(t){t.preventDefault();var e,o=d(this);e||(e=wp.media({title:n("Select or Upload Media Of Your Chosen Persuasion","tutor"),button:{text:n("Use this media","tutor")},multiple:!1})).on("select",function(){var t=e.state().get("selection").first().toJSON();o.html('<img src="'+t.url+'" alt="" />'),o.closest(".tutor-media-upload-wrap").find("input").val(t.id)}),e.open()}),d(document).on("click",".tutor-media-upload-trash",function(t){t.preventDefault();t=d(this);t.closest(".tutor-media-upload-wrap").find(".tutor-media-upload-btn").html('<i class="tutor-icon-image1"></i>'),t.closest(".tutor-media-upload-wrap").find("input").val("")});var u,c=(u=0,function(t,e){clearTimeout(u),u=setTimeout(t,e)});d(document).on("click",".tutor-add-instructor-btn",function(t){t.preventDefault();var e=d(this),t=d("#post\_ID").val();d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{course\_id:t,action:"tutor\_load\_instructors\_modal"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(d(".tutor-instructors-modal-wrap .modal-container").html(t.data.output),d(".tutor-instructors-modal-wrap").addClass("show"))},complete:function(){e.removeClass("tutor-updating-message")}})}),d(document).on("change keyup",".tutor-instructors-modal-wrap .tutor-modal-search-input",function(t){t.preventDefault();var o=d(this),a=d(".tutor-modal-wrap");c(function(){var t=o.val(),e=d("#post\_ID").val();d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{course\_id:e,search\_terms:t,action:"tutor\_load\_instructors\_modal"},beforeSend:function(){a.addClass("loading")},success:function(t){t.success&&(d(".tutor-instructors-modal-wrap .modal-container").html(t.data.output),d(".tutor-instructors-modal-wrap").addClass("show"))},complete:function(){a.removeClass("loading")}})},1e3)}),d(document).on("click",".add\_instructor\_to\_course\_btn",function(t){t.preventDefault();var e=d(this),o=d(".tutor-modal-wrap"),t=d("#post\_ID").val(),o=o.find("input").serializeObject();o.course\_id=t,o.action="tutor\_add\_instructors\_to\_course",d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:o,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(d(".tutor-course-available-instructors").html(t.data.output),d(".tutor-modal-wrap").removeClass("show"))},complete:function(){e.removeClass("tutor-updating-message")}})}),d(document).on("click",".tutor-instructor-delete-btn",function(t){t.preventDefault();var e=d(this),o=d("#post\_ID").val(),t=e.closest(".added-instructor-item").attr("data-instructor-id");d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{course\_id:o,instructor\_id:t,action:"detach\_instructor\_from\_course"},success:function(t){t.success&&e.closest(".added-instructor-item").remove()}})}),d(document).on("click",".settings-tabs-navs li",function(t){t.preventDefault();var e=d(this),o=e.find("a").attr("data-target"),t=e.find("a").attr("href");e.addClass("active").siblings("li.active").removeClass("active"),d(".settings-tab-wrap").removeClass("active").hide(),d(o).addClass("active").show(),window.history.pushState({},"",t)}),d(document).on("lesson\_modal\_loaded quiz\_modal\_loaded assignment\_modal\_loaded",function(t,e){jQuery().select2&&d(".select2\_multiselect").select2({dropdownCssClass:"increasezindex"}),o()}),d(document).on("lesson\_modal\_loaded",function(t,e){d(".tutor-lesson-modal-wrap .modal-title h1").html(n("Lesson","tutor"))}),d(document).on("assignment\_modal\_loaded",function(t,e){d(".tutor-lesson-modal-wrap .modal-title h1").html(n("Assignment","tutor"))}),d(document).on("keyup change",".tutor-number-validation",function(t){var e=d(this),o=parseInt(e.val()),a=parseInt(e.attr("data-min")),n=parseInt(e.attr("data-max"));o<a?e.val(a):n<o&&e.val(n)}),d(document).on("click",".tutor-instructor-feedback",function(t){t.preventDefault();var e=d(this);d.ajax({url:window.ajaxurl||\_tutorobject.ajaxurl,type:"POST",data:{attempts\_id:e.data("attemptid"),feedback:d(".tutor-instructor-feedback-content").val(),action:"tutor\_instructor\_feedback"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(e.closest(".course-content-item").remove(),tutor\_toast(n("Success","tutor"),e.data("toast\_success\_message"),"success"))},complete:function(){e.removeClass("tutor-updating-message")}})});var l=d(".tutor-announcement-add-new"),m=d(".tutor-announcement-edit"),p=d(".tutor-announcement-delete"),\_=d(".tutor-announcement-details"),t=d(".tutor-announcement-close-btn"),f=d(".tutor-accouncement-create-modal"),h=d(".tutor-accouncement-update-modal"),v=d(".tutor-accouncement-details-modal");function w(t,e){var o=new URL(window.location.href),a=o.searchParams;return a.set(t,e),o.search=a.toString(),\_tutorobject.is\_admin?a.set("paged",1):a.set("current\_page",1),o.search=a.toString(),o.toString()}d(l).click(function(){f.addClass("show"),d("#tutor-annoucement-backend-create-modal").addClass("show")}),d(\_).click(function(){var t=d(this).attr("announcement-date"),e=d(this).attr("announcement-id"),o=d(this).attr("course-id"),a=d(this).attr("course-name"),n=d(this).attr("announcement-title"),i=d(this).attr("announcement-summary");d(".tutor-announcement-detail-content").html("<h3>".concat(n,"</h3><p>").concat(i,"</p>")),d(".tutor-announcement-detail-course-info p").html("".concat(a)),d(".tutor-announcement-detail-date-info p").html("".concat(t)),d("#tutor-announcement-edit-from-detail").attr("announcement-id",e),d("#tutor-announcement-edit-from-detail").attr("course-id",o),d("#tutor-announcement-edit-from-detail").attr("announcement-title",n),d("#tutor-announcement-edit-from-detail").attr("announcement-summary",i),d("#tutor-announcement-delete-from-detail").attr("announcement-id",e),v.addClass("show")}),d(m).click(function(){v&&v.removeClass("show");var t=d(this).attr("announcement-id"),e=d(this).attr("course-id"),o=d(this).attr("announcement-title"),a=d(this).attr("announcement-summary");d("#tutor-announcement-course-id").val(e),d("#announcement\_id").val(t),d("#tutor-announcement-title").val(o),d("#tutor-announcement-summary").val(a),h.addClass("show")}),d(t).click(function(){f.removeClass("show"),h.removeClass("show"),v.removeClass("show"),d("#tutor-annoucement-backend-create-modal").removeClass("show")}),d(".tutor-announcements-form").on("submit",function(t){t.preventDefault();var e=d(this).find('button\[type="submit"\]'),t=d(".tutor-announcements-form").serialize()+"&action=tutor\_announcement\_create&action\_type=create";d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){if(d(".tutor-alert").remove(),"success"==t.status&&location.reload(),"validation\_error"==t.status){d(".tutor-announcements-create-alert").append('<div class="tutor-alert alert-warning"></div>');for(var e=0,o=Object.entries(t.message);e<o.length;e++){var a=y(o\[e\],2),a=(a\[0\],a\[1\]);d(".tutor-announcements-create-alert .tutor-alert").append("<li>".concat(a,"</li>"))}}"fail"==t.status&&d(".tutor-announcements-create-alert").html("<li>".concat(t.message,"</li>"))},error:function(t){console.log(t)}})}),d(".tutor-announcements-update-form").on("submit",function(t){t.preventDefault();var e=d(this).find('button\[type="submit"\]'),t=d(".tutor-announcements-update-form").serialize()+"&action=tutor\_announcement\_create&action\_type=update";d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){if(d(".tutor-alert").remove(),"success"==t.status&&location.reload(),"validation\_error"==t.status){d(".tutor-announcements-update-alert").append('<div class="tutor-alert alert-warning"></div>');for(var e=0,o=Object.entries(t.message);e<o.length;e++){var a=y(o\[e\],2),a=(a\[0\],a\[1\]);d(".tutor-announcements-update-alert > .tutor-alert").append("<li>".concat(a,"</li>"))}}"fail"==t.status&&d(".tutor-announcements-create-alert").html("<li>".concat(t.message,"</li>"))},error:function(){}})}),d(p).click(function(){var t=d(this).attr("announcement-id"),e=d("#tutor-announcement-tr-"+t);confirm("Do you want to delete?")&&d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{action:"tutor\_announcement\_delete",announcement\_id:t},beforeSend:function(){},success:function(t){e.remove(),v.length&&v.removeClass("show"),"fail"==t.status&&console.log(t.message)},error:function(){}})}),d(".tutor-announcement-course-sorting").on("change",function(t){window.location=w("course-id",d(this).val())}),d(".tutor-announcement-order-sorting").on("change",function(t){window.location=w("order",d(this).val())}),d(".tutor-announcement-date-sorting").on("change",function(t){window.location=w("date",d(this).val())}),d(".tutor-announcement-search-sorting").on("click",function(t){window.location=w("search",d(".tutor-announcement-search-field").val())}),d(document).click(function(){d(".tutor-dropdown").removeClass("show")}),d(".tutor-dropdown").click(function(t){t.stopPropagation(),d(".tutor-dropdown").hasClass("show")&&d(".tutor-dropdown").removeClass("show"),d(this).addClass("show")});var b,p=".video\_source\_wrap\_external\_url input, .video\_source\_wrap\_vimeo input, .video\_source\_wrap\_youtube input, .video\_source\_wrap\_html5, .video\_source\_upload\_wrap\_html5";d("body").on("paste",p,function(t){t.stopImmediatePropagation();var r=d(this).closest(".lesson-modal-form-wrap").find(".tutor-option-field-video-duration"),e=r.find("label"),o=d(this).hasClass("video\_source\_wrap\_html5")||d(this).hasClass("video\_source\_upload\_wrap\_html5"),a=d(this).data("autofill\_url");d(this).data("autofill\_url",null);function n(t){t?0==e.find("img").length&&e.append(' <img src="'+window.\_tutorobject.loading\_icon\_url+'" style="display:inline-block"/>'):e.find("img").remove()}function i(t){for(var e=Math.floor(t/3600),o=Math.floor((t-3600\*e)/60),t=Math.round(t-3600\*e-60\*o),a=\[e=e<10?"0"+e:e,o=o<10?"0"+o:o,t=t<10?"0"+t:t\],n=r.find("input"),i=0;i<3;i++)n.eq(i).val(a\[i\])}var s,u,c,t=o?d(this).find("span").data("video\_url"):a||t.originalEvent.clipboardData.getData("text");o||d(this).parent().hasClass("video\_source\_wrap\_external\_url")?((s=document.createElement("video")).addEventListener("loadedmetadata",function(){i(s.duration),n(!1)}),n(!0),s.src=t):d(this).parent().hasClass("video\_source\_wrap\_vimeo")?(u=(c=t.match(/^.\*(vimeo\\.com\\/)((channels\\/\[A-z\]+\\/)|(groups\\/\[A-z\]+\\/videos\\/))?(\[0-9\]+)/))?c\[5\]:null)&&(n(!0),d.getJSON("http://vimeo.com/api/v2/video/"+u+"/json",function(t){Array.isArray(t)&&t\[0\]&&void 0!==t\[0\].duration&&i(t\[0\].duration),n(!1)})):d(this).parent().hasClass("video\_source\_wrap\_youtube")&&(u=!(!(c=t.match(/^.\*((youtu.be\\/)|(v\\/)|(\\/u\\/\\w\\/)|(embed\\/)|(watch\\?))\\??v?=?(\[^#&?\]\*).\*/))||11!=c\[7\].length)&&c\[7\],c=d(this).data("youtube\_api\_key"),u&&c&&(c="https://www.googleapis.com/youtube/v3/videos?id="+u+"&key="+c+"&part=contentDetails",n(!0),d.getJSON(c,function(t){"object"==g(t)&&t.items&&t.items\[0\]&&t.items\[0\].contentDetails&&t.items\[0\].contentDetails.duration&&i(function(t){t=(t=t.match(/PT(\\d+H)?(\\d+M)?(\\d+S)?/)).slice(1).map(function(t){if(null!=t)return t.replace(/\\D/,"")});return 3600\*(parseInt(t\[0\])||0)+60\*(parseInt(t\[1\])||0)+(parseInt(t\[2\])||0)}(t.items\[0\].contentDetails.duration)),n(!1)})))}).on("input",p,function(){b&&clearTimeout(b);var e=d(this);b=setTimeout(function(){var t=(t=e.val())?t.trim():"";console.log("Trigger",t),t&&e.data("autofill\_url",t).trigger("paste")},700)}),d(".tutor-form-submit-through-ajax").submit(function(t){t.preventDefault();var e=d(this),o=d(this).attr("action")||window.location.href,a=d(this).attr("method")||"GET",t=d(this).serializeObject();e.find("button").addClass("tutor-updating-message"),d.ajax({url:o,type:a,data:t,success:function(){tutor\_toast(n("Success","tutor"),e.data("toast\_success\_message"),"success")},complete:function(){e.find("button").removeClass("tutor-updating-message")}})}),d.ajaxSetup({data:tutor\_get\_nonce\_data()})}),jQuery.fn.serializeObject=function(){var t={},e=this.serializeArray();return jQuery.each(e,function(){t\[this.name\]?(t\[this.name\].push||(t\[this.name\]=\[t\[this.name\]\]),t\[this.name\].push(this.value||"")):t\[this.name\]=this.value||""}),t},window.tutor\_toast=function(t,e,o){var a=((window.\_tutorobject||{}).tutor\_url||"")+"assets/images/";jQuery(".tutor-toast-parent").length||jQuery("body").append('<div class="tutor-toast-parent"></div>');var n=jQuery(' <div> <div> <img src="'+{success:a+"icon-check.svg",error:a+"icon-cross.svg"}\[o\]+'"/> </div> <div> <div> <b>'+t+"</b> <span>"+e+'</span> </div> </div> <div> <i class="tutor-toast-close tutor-icon-line-cross"></i> </div> </div>');n.find(".tutor-toast-close").click(function(){n.remove()}),jQuery(".tutor-toast-parent").append(n),setTimeout(function(){n&&n.fadeOut("fast",function(){jQuery(this).remove()})},5e3)},window.disableAddoption=function(){function t(t){t.classList.contains("disabled")||t.classList.add("disabled")}function e(t){t.classList.contains("disabled")&&t.classList.remove("disabled")}var o=document.querySelector(".tutor\_select\_value\_holder").value,a=document.getElementById("tutor\_quiz\_question\_answers"),n=document.getElementById("tutor\_quiz\_question\_answer\_form"),i=document.querySelector(".add\_question\_answers\_option");("open\_ended"===o||"short\_answer"===o||("true\_false"===o||"fill\_in\_the\_blank"===o)&&(n.hasChildNodes()||a.hasChildNodes())?t:e)(i)}}},a={};function i(t){var e=a\[t\];if(void 0!==e)return e.exports;e=a\[t\]={exports:{}};return o\[t\](e,e.exports,i),e.exports}(()=>{"use strict";i(623);function n(t){return(n="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})(t)}jQuery(document).ready(function(r){var t=wp.i18n,i=t.\_\_,e=(t.\_x,t.\_n,t.\_nx,i("Search students","tutor"));function a(){jQuery().sortable&&(r(".course-contents").sortable({handle:".course-move-handle",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){o()}}),r(".tutor-lessons:not(.drop-lessons)").sortable({connectWith:".tutor-lessons",items:"div.course-content-item",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){o()}}))}function o(){var i={};r(".tutor-topics-wrap").each(function(t,e){var o=r(this),a=parseInt(o.attr("id").match(/\\d+/)\[0\],10),n={};o.find(".course-content-item").each(function(t,e){var o=r(this),o=parseInt(o.attr("id").match(/\\d+/)\[0\],10);n\[t\]=o}),i\[t\]={topic\_id:a,lesson\_ids:n}}),r("#tutor\_topics\_lessons\_sorting").val(JSON.stringify(i))}jQuery().wpColorPicker&&r(".tutor\_colorpicker").wpColorPicker(),jQuery().select2&&r(".tutor\_select2").select2(),r(".tutor-option-nav-tabs li a").click(function(t){t.preventDefault();t=r(this).attr("data-tab");r(".option-nav-item").removeClass("current"),r(this).closest("li").addClass("current"),r(".tutor-option-nav-page").hide(),r(t).addClass("current-page").show(),window.history.pushState("obj","",r(this).attr("href"))}),r("#save\_tutor\_option").click(function(t){t.preventDefault(),r(this).closest("form").submit()}),r("#tutor-option-form").submit(function(t){t.preventDefault();var e=r(this),t=e.serializeObject();r.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.find(".button").addClass("tutor-updating-message")},success:function(t){t.success?tutor\_toast(i("Saved","tutor"),e.data("toast\_success\_message"),"success"):tutor\_toast(i("Request Error","tutor"),i("Could not save","tutor"),"error")},complete:function(){e.find(".button").removeClass("tutor-updating-message")}})}),r(document).on("click",".withdraw-method-nav li a",function(t){t.preventDefault();t=r(this).attr("data-target-id");r(".withdraw-method-form-wrap").hide(),r("#"+t).show()}),a(),r(document).on("click",".update\_lesson\_modal\_btn",function(t){t.preventDefault();var e=r(this),o="tutor\_lesson\_modal\_editor",t=tinyMCE.get(o),t=t?t.getContent():r("#"+o).val(),o=r(this).closest("form").serializeObject();o.lesson\_content=t,r.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:o,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(r("#tutor-course-content-wrap").html(t.data.course\_contents),a(),r(".tutor-lesson-modal-wrap").removeClass("show"),tutor\_toast(i("Lesson Updated","tutor"),e.data("toast\_success\_message"),"success"))},complete:function(){e.removeClass("tutor-updating-message")}})}),r(document).on("change",".tutor\_lesson\_video\_source",function(t){var e=r(this).val();r('\[class^="video\_source\_wrap"\]').hide(),r(".video\_source\_wrap\_"+e).show(),"html5"===e?r(".tutor-video-poster-field").show():r(".tutor-video-poster-field").hide()}),r(document).on("click",".video\_source\_wrap\_html5 .video\_upload\_btn",function(t){t.preventDefault();var e,o=r(this);e||(e=wp.media({title:i("Select or Upload Media Of Your Choice","tutor"),button:{text:i("Upload media","tutor")},library:{type:"video"},multiple:!1})).on("select",function(){var t=e.state().get("selection").first().toJSON();o.closest(".video\_source\_wrap\_html5").find("span.video\_media\_id").data("video\_url",t.url).text(t.id).trigger("paste").closest("p").show(),o.closest(".video\_source\_wrap\_html5").find("input.input\_source\_video\_id").val(t.id)}),e.open()}),r(document).on("click","a.tutor-delete-attachment",function(t){t.preventDefault(),r(this).closest(".tutor-added-attachment").remove()}),r(document).on("click",".tutorUploadAttachmentBtn",function(t){t.preventDefault();var a,n=r(this);a||(a=wp.media({title:i("Select or Upload Media Of Your Choice","tutor"),button:{text:i("Upload media","tutor")},multiple:!0})).on("select",function(){var t=a.state().get("selection").toJSON();if(t.length)for(var e=0;e<t.length;e++){var o=t\[e\],o='<div class="tutor-added-attachment"><i class="tutor-icon-archive"></i> <a href="javascript:;" class="tutor-delete-attachment tutor-icon-line-cross"></a> <span> <a href="'+o.url+'">'+o.filename+'</a> </span><input type="hidden" name="tutor\_attachments\[\]" value="'+o.id+'"></div>';n.closest(".tutor-lesson-attachments-metabox").find(".tutor-added-attachments-wrap").append(o)}}),a.open()}),\_tutorobject.open\_tutor\_admin\_menu&&((t=r("#adminmenu")).find('\[href="admin.php?page=tutor"\]').closest("li.wp-has-submenu").addClass("wp-has-current-submenu"),t.find('\[href="admin.php?page=tutor"\]').closest("li.wp-has-submenu").find("a.wp-has-submenu").removeClass("wp-has-current-submenu").addClass("wp-has-current-submenu")),r(document).on("click",".tutor-option-media-upload-btn",function(t){t.preventDefault();var e,o=r(this);e||(e=wp.media({title:i("Select or Upload Media Of Your Choice","tutor"),button:{text:i("Upload media","tutor")},multiple:!1})).on("select",function(){var t=e.state().get("selection").first().toJSON();o.closest(".option-media-wrap").find(".option-media-preview").html('<img src="'+t.url+'" alt="" />'),o.closest(".option-media-wrap").find("input").val(t.id),o.closest(".option-media-wrap").find(".tutor-media-option-trash-btn").show()}),e.open()}),r(document).on("click",".tutor-media-option-trash-btn",function(t){t.preventDefault();t=r(this);t.closest(".option-media-wrap").find("img").remove(),t.closest(".option-media-wrap").find("input").val(""),t.closest(".option-media-wrap").find(".tutor-media-option-trash-btn").hide()}),r(document).on("change",".tutor\_addons\_list\_item",function(t){var e=r(this),o=e.prop("checked")?1:0,e=e.attr("name");r.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{isEnable:o,addonFieldName:e,action:"addon\_enable\_disable"},success:function(t){t.success}})}),r(document).on("submit","#new-instructor-form",function(t){t.preventDefault();var o=r(this),t=o.serializeObject();t.action="tutor\_add\_instructor",r.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,success:function(t){var a,e;t.success?(o.trigger("reset"),r("#form-response").html('<p class="tutor-status-approved-context">'+t.data.msg+"</p>")):(a="",(e=t.data.errors)&&Object.keys(e).length&&(r.each(t.data.errors,function(t,e){var o;(o=e)&&"object"===n(o)&&o.constructor===Object?r.each(e,function(t,e){a+='<p class="tutor-required-fields">'+e\[0\]+"</p>"}):a+='<p class="tutor-required-fields">'+e+"</p>"}),r("#form-response").html(a)))}})}),r(document).on("click","a.instructor-action",function(t){t.preventDefault();var e=r(this),o=e.attr("data-action"),a=e.attr("data-instructor-id"),t=e.attr("data-prompt-message");t&&!confirm(t)||((a={instructor\_id:a,action\_name:o,action:"instructor\_approval\_action"})\[o=\_tutorobject.nonce\_key\]=\_tutorobject\[o\],r.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:a,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){location.reload(!0)},complete:function(){e.removeClass("tutor-updating-message")}}))}),r(document).on("click",".tutor-create-assignments-btn",function(t){t.preventDefault();var e=r(this),o=r(this).attr("data-topic-id"),a=r("#post\_ID").val();r.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{topic\_id:o,course\_id:a,action:"tutor\_load\_assignments\_builder\_modal"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){r(".tutor-lesson-modal-wrap .modal-container").html(t.data.output),r(".tutor-lesson-modal-wrap").attr("data-topic-id",o).addClass("show"),r(document).trigger("assignment\_modal\_loaded",{topic\_id:o,course\_id:a}),tinymce.init(tinyMCEPreInit.mceInit.tutor\_editor\_config),tinymce.execCommand("mceRemoveEditor",!1,"tutor\_assignments\_modal\_editor"),tinyMCE.execCommand("mceAddEditor",!1,"tutor\_assignments\_modal\_editor")},complete:function(){quicktags({id:"tutor\_assignments\_modal\_editor"}),e.removeClass("tutor-updating-message")}})}),r(document).on("click",".open-tutor-assignment-modal",function(t){t.preventDefault();var e=r(this),o=e.attr("data-assignment-id"),a=e.attr("data-topic-id"),n=r("#post\_ID").val();r.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{assignment\_id:o,topic\_id:a,course\_id:n,action:"tutor\_load\_assignments\_builder\_modal"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){r(".tutor-lesson-modal-wrap .modal-container").html(t.data.output),r(".tutor-lesson-modal-wrap").attr({"data-assignment-id":o,"data-topic-id":a}).addClass("show"),r(document).trigger("assignment\_modal\_loaded",{assignment\_id:o,topic\_id:a,course\_id:n}),tinymce.init(tinyMCEPreInit.mceInit.tutor\_editor\_config),tinymce.execCommand("mceRemoveEditor",!1,"tutor\_assignments\_modal\_editor"),tinyMCE.execCommand("mceAddEditor",!1,"tutor\_assignments\_modal\_editor")},complete:function(){quicktags({id:"tutor\_assignments\_modal\_editor"}),e.removeClass("tutor-updating-message")}})}),r(document).on("click",".update\_assignment\_modal\_btn",function(t){t.preventDefault();var e=r(this),o="tutor\_assignments\_modal\_editor",t=tinyMCE.get(o),t=t?t.getContent():r("#"+o).val(),o=r(this).closest("form").serializeObject();o.assignment\_content=t,r.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:o,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(r("#tutor-course-content-wrap").html(t.data.course\_contents),a(),r(".tutor-lesson-modal-wrap").removeClass("show"),tutor\_toast(i("Assignment Updated","tutor"),e.data("toast\_success\_message"),"success"))},complete:function(){e.removeClass("tutor-updating-message")}})}),r(document).on("click",".add-assignment-attachments",function(t){t.preventDefault();var o,a=r(this);o||(o=wp.media({title:i("Select or Upload Media Of Your Choice","tutor"),button:{text:i("Upload media","tutor")},multiple:!1})).on("select",function(){var t=o.state().get("selection").first().toJSON(),e='<div class="tutor-individual-attachment-file"><p class="attachment-file-name">'+t.filename+'</p><input type="hidden" name="tutor\_assignment\_attachments\[\]" value="'+t.id+'"><a href="javascript:;" class="remove-assignment-attachment-a text-muted"> × Remove</a></div>';r("#assignment-attached-file").append(e),a.closest(".video\_source\_wrap\_html5").find("input").val(t.id)}),o.open()}),r(document).on("click",".remove-assignment-attachment-a",function(t){t.preventDefault(),r(this).closest(".tutor-individual-attachment-file").remove()}),r(document).on("click",".tutor\_video\_poster\_upload\_btn",function(t){t.preventDefault();var e,o=r(this);e||(e=wp.media({title:i("Select or Upload Media Of Your Choice","tutor"),button:{text:i("Upload media","tutor")},multiple:!1})).on("select",function(){var t=e.state().get("selection").first().toJSON();o.closest(".tutor-video-poster-wrap").find(".video-poster-img").html('<img src="'+t.sizes.thumbnail.url+'" alt="" />'),o.closest(".tutor-video-poster-wrap").find("input").val(t.id)}),e.open()}),r(document).on("change","#tutor\_pmpro\_membership\_model\_select",function(t){t.preventDefault(),"category\_wise\_membership"===r(this).val()?r(".membership\_course\_categories").show():r(".membership\_course\_categories").hide()}),r(document).on("change","#tutor\_pmpro\_membership\_model\_select",function(t){t.preventDefault(),"category\_wise\_membership"===r(this).val()?r(".membership\_course\_categories").show():r(".membership\_course\_categories").hide()}),r(document).on("submit",".pmpro\_admin form",function(t){var e=r(this);e.find('input\[name="tutor\_action"\]').length&&("category\_wise\_membership"!=e.find('\[name="tutor\_pmpro\_membership\_model"\]').val()||e.find(".membership\_course\_categories input:checked").length||confirm(i("Do you want to save without any category?","tutor"))||t.preventDefault())}),r("#select2\_search\_user\_ajax").select2({allowClear:!0,minimumInputLength:1,placeholder:e,language:{inputTooShort:function(){return i("Please add 1 or more character","tutor")}},escapeMarkup:function(t){return t},ajax:{url:window.\_tutorobject.ajaxurl,type:"POST",dataType:"json",delay:1e3,data:function(t){return{term:t.term,action:"tutor\_json\_search\_students"}},processResults:function(t){var o=\[\];return t&&r.each(t,function(t,e){o.push({id:t,text:e})}),{results:o}},cache:!0}}),r(document).on("click","table.enrolments .delete a",function(t){t.preventDefault();var e=r(this).attr("href"),t={title:i("Delete this enrolment","tutor"),description:i("All of the course data like quiz attempts, assignment, lesson <br/>progress will be deleted if you delete this student's enrollment.","tutor"),buttons:{reset:{title:i("Cancel","tutor"),class:"secondary",callback:function(){o.remove()}},keep:{title:i("Yes, Delete This","tutor"),class:"primary",callback:function(){window.location.replace(e)}}}},o=new window.tutor\_popup(r,"icon-trash",40).popup(t)});e=r('#tutor-attach-product \[name="tutor\_course\_price\_type"\]');0==e.length?r("#\_tutor\_is\_course\_public\_meta\_checkbox").show():e.change(function(){var t;r(this).prop("checked")&&(t="paid"==r(this).val()?"hide":"show",r("#\_tutor\_is\_course\_public\_meta\_checkbox")\[t\]())}).trigger("change"),r(document).on("click",".instructor-layout-template",function(){r(".instructor-layout-template").removeClass("selected-template"),r(this).addClass("selected-template")}),r("#preview-action a.preview").click(function(t){var e=r(this).attr("href");e&&(t.preventDefault(),window.open(e,"\_blank"))})})})()})();
1
(()=>{var o={623:()=>{function g(t){return(g="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})(t)}function y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var o=null==t?null:"undefined"!=typeof Symbol&&t\[Symbol.iterator\]||t\["@@iterator"\];if(null!=o){var a,n,i=\[\],r=!0,s=!1;try{for(o=o.call(t);!(r=(a=o.next()).done)&&(i.push(a.value),!e||i.length!==e);r=!0);}catch(t){s=!0,n=t}finally{try{r||null==o.return||o.return()}finally{if(s)throw n}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return a(t,e);var o=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(o="Object"===o&&t.constructor?t.constructor.name:o)||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?a(t,e):void 0}}(t,e)||function(){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 a(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,a=new Array(e);o<e;o++)a\[o\]=t\[o\];return a}window.tutor\_get\_nonce\_data=function(t){var e=window.\_tutorobject||{},o=e.nonce\_key||"",e=e\[o\]||"";return t?{key:o,value:e}:(t=e,(e=o)in(o={})?Object.defineProperty(o,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):o\[e\]=t,o)},window.tutor\_popup=function(r,o,a){var s,u=this;return this.popup\_wrapper=function(t){var e=""===o?"":'<img class="tutor-pop-icon" src="'+window.\_tutorobject.tutor\_url+"assets/images/"+o+'.svg"/>';return"<"+t+' class="tutor-component-popup-container"> <div class="tutor-component-popup-'+a+'"> <div class="tutor-component-content-container">'+e+'</div> <div class="tutor-component-button-container"></div> </div> </'+t+">"},this.popup=function(o){var t=o.title?"<h3>"+o.title+"</h3>":"",e=o.description?"<p>"+o.description+"</p>":"",a=Object.keys(o.buttons||{}).map(function(t){var e=o.buttons\[t\],t=e.id?"tutor-popup-"+e.id:"";return r('<button id="'+t+'" class="tutor-button tutor-button-'+e.class+'">'+e.title+"</button>").click(e.callback)}),n=(s=r(u.popup\_wrapper(o.wrapper\_tag||"div"))).find(".tutor-component-content-container");n.append(t),o.after\_title&&n.append(o.after\_title),n.append(e),o.after\_description&&n.append(o.after\_description),s.click(function(){r(this).remove()}).children().click(function(t){t.stopPropagation()});for(var i=0;i<a.length;i++)s.find(".tutor-component-button-container").append(a\[i\]);return r("body").append(s),s},{popup:this.popup}},window.tutorDotLoader=function(t){return' \\n <div class="tutor-dot-loader '.concat(t||"",'">\\n <span class="dot dot-1"></span>\\n <span class="dot dot-2"></span>\\n <span class="dot dot-3"></span>\\n <span class="dot dot-4"></span>\\n </div>')},window.tutor\_date\_picker=function(){var t;jQuery.datepicker&&(t=\_tutorobject.wp\_date\_format||"yy-mm-dd",$(".tutor\_date\_picker").datepicker({dateFormat:t}))},jQuery(document).ready(function(d){"use strict";var t=wp.i18n,n=t.\_\_;t.\_x,t.\_n,t.\_nx;function o(){var t;jQuery.datepicker&&(t=\_tutorobject.wp\_date\_format||"yy-mm-dd",d(".tutor\_date\_picker").datepicker({dateFormat:t})),d(document).on("keydown",".hasDatepicker, .tutor\_date\_picker",function(t){8!==t.keyCode&&t.preventDefault()})}function s(){d(".tutor-field-slider").each(function(){var t=d(this),o=t.closest(".tutor-field-type-slider").find('input\[type="hidden"\]'),a=t.closest(".tutor-field-type-slider").find(".tutor-field-type-slider-value"),e=parseFloat(t.closest(".tutor-field-type-slider").attr("data-min")),n=parseFloat(t.closest(".tutor-field-type-slider").attr("data-max"));t.slider({range:"max",min:e,max:n,value:o.val(),slide:function(t,e){a.text(e.value),o.val(e.value)}})})}function e(t){var e=t.element;return d('<span><i class="tutor-icon-'+d(e).data("icon")+'"></i> '+t.text+"</span>")}function i(){jQuery().sortable&&(d(".course-contents").sortable({handle:".course-move-handle",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){a()}}),d(".tutor-lessons:not(.drop-lessons)").sortable({connectWith:".tutor-lessons",items:"div.course-content-item",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){a()}}))}function a(){var i={};d(".tutor-topics-wrap").each(function(t,e){var o=d(this),a=parseInt(o.attr("id").match(/\\d+/)\[0\],10),n={};o.find(".course-content-item").each(function(t,e){var o=d(this),o=parseInt(o.attr("id").match(/\\d+/)\[0\],10);n\[t\]=o}),i\[t\]={topic\_id:a,lesson\_ids:n}}),d("#tutor\_topics\_lessons\_sorting").val(JSON.stringify(i))}function r(){return{init:function(){d(document).on("click",".tutor-select .tutor-select-option",function(t){t.preventDefault();var e=d(this);"true"!==e.attr("data-is-pro")?(t=e.html().trim(),e.closest(".tutor-select").find(".select-header .lead-option").html(t),e.closest(".tutor-select").find(".select-header input.tutor\_select\_value\_holder").val(e.attr("data-value")).trigger("change"),e.closest(".tutor-select-options").hide(),disableAddoption()):alert("Tutor Pro version required")}),d(document).on("click",".tutor-select .select-header",function(t){t.preventDefault(),d(this).closest(".tutor-select").find(".tutor-select-options").slideToggle()}),this.setValue(),this.hideOnOutSideClick()},setValue:function(){d(".tutor-select").each(function(){var t=d(this).find(".tutor-select-option");t.length&&t.each(function(){var t,e=d(this);"selected"===e.attr("data-selected")&&(t=e.html().trim(),e.closest(".tutor-select").find(".select-header .lead-option").html(t),e.closest(".tutor-select").find(".select-header input.tutor\_select\_value\_holder").val(e.attr("data-value")))})})},hideOnOutSideClick:function(){d(document).mouseup(function(t){var e=d(".tutor-select-options");d(t.target).closest(".select-header").length||e.is(t.target)||0!==e.has(t.target).length||e.hide()})},reInit:function(){this.setValue()}}}o(),s(),jQuery().select2&&d(".videosource\_select2").select2({width:"100%",templateSelection:e,templateResult:e,allowHtml:!0}),d(document).on("change",".tutor\_lesson\_video\_source",function(t){var e=d(this),o=d(this).val();o?d(".video-metabox-source-input-wrap").show():d(".video-metabox-source-input-wrap").hide(),e.closest(".tutor-option-field").find(".video-metabox-source-item").hide(),e.closest(".tutor-option-field").find(".video\_source\_wrap\_"+o).show()}),d(document).on("click",".tutor-course-thumbnail-upload-btn",function(t){t.preventDefault();var e,o=d(this);e||(e=wp.media({title:n("Select or Upload Media Of Your Chosen Persuasion","tutor"),button:{text:n("Use this media","tutor")},multiple:!1})).on("select",function(){var t=e.state().get("selection").first().toJSON();o.closest(".tutor-thumbnail-wrap").find(".thumbnail-img").attr("src",t.url),o.closest(".tutor-thumbnail-wrap").find("input").val(t.id),d(".tutor-course-thumbnail-delete-btn").show()}),e.open()}),d(document).on("click",".tutor-course-thumbnail-delete-btn",function(t){t.preventDefault();var e=d(this),t=e.closest(".tutor-thumbnail-wrap").find(".thumbnail-img").attr("data-placeholder-src");e.closest(".tutor-thumbnail-wrap").find(".thumbnail-img").attr("src",t),e.closest(".tutor-thumbnail-wrap").find("input").val(""),d(".tutor-course-thumbnail-delete-btn").hide()}),d(document).on("click",".create\_new\_topic\_btn",function(t){t.preventDefault(),d(".tutor-metabox-add-topics").slideToggle()}),d(document).on("click","#tutor-add-topic-btn",function(t){t.preventDefault();var e=d(this),t=e.closest(".tutor-metabox-add-topics").find("input, textarea").serializeObject();t.action="tutor\_add\_course\_topic",d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(d("#tutor-course-content-wrap").html(t.data.course\_contents),e.closest(".tutor-metabox-add-topics").find('input\[type!="hidden"\], textarea').each(function(){d(this).val("")}),e.closest(".tutor-metabox-add-topics").slideUp(),i())},complete:function(){e.removeClass("tutor-updating-message")}})}),d(".tutor-zoom-meeting-modal-wrap").on("submit",".tutor-meeting-modal-form",function(t){t.preventDefault();var e=d(this),o=e.serializeObject(),t=Intl.DateTimeFormat().resolvedOptions().timeZone;o.timezone=t;var a=e.find('button\[type="submit"\]');d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:o,beforeSend:function(){a.addClass("tutor-updating-message")},success:function(t){t.success?tutor\_toast(n("Success","tutor"),a.data("toast\_success\_message"),"success"):tutor\_toast(n("Update Error","tutor"),n("Meeting Update Failed","tutor"),"error"),t.course\_contents?(d(t.selector).html(t.course\_contents),"#tutor-course-content-wrap"==t.selector&&i(),d(".tutor-zoom-meeting-modal-wrap").removeClass("show")):location.reload()},complete:function(){a.removeClass("tutor-updating-message")}})}),d(document).on("change keyup",".course-edit-topic-title-input",function(t){t.preventDefault(),d(this).closest(".tutor-topics-top").find(".topic-inner-title").html(d(this).val())}),d(document).on("click",".topic-edit-icon",function(t){t.preventDefault(),d(this).closest(".tutor-topics-top").find(".tutor-topics-edit-form").slideToggle()}),d(document).on("click",".tutor-topics-edit-button",function(t){t.preventDefault();var e=d(this),o=e.closest(".tutor-topics-wrap"),t=parseInt(o.attr("id").match(/\\d+/)\[0\],10),a=e.closest(".tutor-topics-wrap").find('\[name="topic\_title"\]').val(),o=e.closest(".tutor-topics-wrap").find('\[name="topic\_summery"\]').val();d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{topic\_title:a,topic\_summery:o,topic\_id:t,action:"tutor\_update\_topic"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(e.closest(".tutor-topics-wrap").find("span.topic-inner-title").text(a),e.closest(".tutor-topics-wrap").find(".tutor-topics-edit-form").slideUp())},complete:function(){e.removeClass("tutor-updating-message")}})}),d(document).on("click",".open-tutor-lesson-modal",function(t){t.preventDefault();var e=d(this),o=e.attr("data-lesson-id"),a=e.attr("data-topic-id"),n=d("#post\_ID").val();d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{lesson\_id:o,topic\_id:a,course\_id:n,action:"tutor\_load\_edit\_lesson\_modal"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){d(".tutor-lesson-modal-wrap .modal-container").html(t.data.output),d(".tutor-lesson-modal-wrap").attr({"data-lesson-id":o,"data-topic-id":a}).addClass("show");t=(t=tinyMCEPreInit.mceInit.tutor\_editor\_config)||tinyMCEPreInit.mceInit.course\_description;tinymce.init(t),tinymce.execCommand("mceRemoveEditor",!1,"tutor\_lesson\_modal\_editor"),tinyMCE.execCommand("mceAddEditor",!1,"tutor\_lesson\_modal\_editor"),d(document).trigger("lesson\_modal\_loaded",{lesson\_id:o,topic\_id:a,course\_id:n})},complete:function(){quicktags({id:"tutor\_lesson\_modal\_editor"}),e.removeClass("tutor-updating-message")}})}),d(document).on("click",".lesson\_thumbnail\_upload\_btn",function(t){t.preventDefault();var e,o=d(this);e||(e=wp.media({title:n("Select or Upload Media Of Your Chosen Persuasion","tutor"),button:{text:n("Use this media","tutor")},multiple:!1})).on("select",function(){var t=e.state().get("selection").first().toJSON();o.closest(".tutor-thumbnail-wrap").find(".thumbnail-img").html('<img src="'+t.url+'" alt="" /><a href="javascript:;" class="tutor-lesson-thumbnail-delete-btn"><i class="tutor-icon-line-cross"></i></a>'),o.closest(".tutor-thumbnail-wrap").find("input").val(t.id),d(".tutor-lesson-thumbnail-delete-btn").show()}),e.open()}),d(document).on("click",".tutor-lesson-thumbnail-delete-btn",function(t){t.preventDefault();t=d(this);t.closest(".tutor-thumbnail-wrap").find(".\_lesson\_thumbnail\_id").val(""),t.closest(".tutor-thumbnail-wrap").find(".thumbnail-img").html(""),t.hide()}),d(document).on("click",".tutor-delete-lesson-btn",function(t){var e;t.preventDefault(),confirm(n("Are you sure?","tutor"))&&(t=(e=d(this)).attr("data-lesson-id"),d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{lesson\_id:t,action:"tutor\_delete\_lesson\_by\_id"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&e.closest(".course-content-item").remove()},complete:function(){e.removeClass("tutor-updating-message")}}))}),d(document).on("click",".topic-delete-btn a",function(t){d(this).attr("data-topic-id");confirm(n("Are you sure to delete?","tutor"))||t.preventDefault()}),d(document).on("click",".tutor-expand-all-topic",function(t){t.preventDefault(),d(".tutor-topics-body").slideDown(),d(".expand-collapse-wrap i").removeClass("tutor-icon-light-down").addClass("tutor-icon-light-up")}),d(document).on("click",".tutor-collapse-all-topic",function(t){t.preventDefault(),d(".tutor-topics-body").slideUp(),d(".expand-collapse-wrap i").removeClass("tutor-icon-light-up").addClass("tutor-icon-light-down")}),d(document).on("click",".topic-inner-title, .expand-collapse-wrap",function(t){t.preventDefault();t=d(this);t.closest(".tutor-topics-wrap").find(".tutor-topics-body").slideToggle(),t.closest(".tutor-topics-wrap").find(".expand-collapse-wrap i").toggleClass("tutor-icon-light-down tutor-icon-light-up")}),d(document).on("click",".quiz-modal-btn-first-step",function(t){t.preventDefault();var e,o,a,n=d(this),i=d('\[name="quiz\_title"\]'),r=i.val(),t=d('\[name="quiz\_description"\]').val();r?(i.closest(".tutor-quiz-builder-group").find(".quiz\_form\_msg").html(""),e=d("#post\_ID").val(),o=n.closest(".tutor-modal-wrap").attr("quiz-for-post-id"),d("#tutor\_quiz\_builder\_quiz\_id").length?(a=d("#tutor\_quiz\_builder\_quiz\_id").val(),d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{quiz\_title:r,quiz\_description:t,quiz\_id:a,topic\_id:o,action:"tutor\_quiz\_builder\_quiz\_update"},beforeSend:function(){n.addClass("tutor-updating-message")},success:function(t){d("#tutor-quiz-"+a).html(t.data.output\_quiz\_row),d('#tutor-quiz-modal-tab-items-wrap a\[href="#quiz-builder-tab-questions"\]').trigger("click"),s()},complete:function(){n.removeClass("tutor-updating-message")}})):d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{quiz\_title:r,quiz\_description:t,course\_id:e,topic\_id:o,action:"tutor\_create\_quiz\_and\_load\_modal"},beforeSend:function(){n.addClass("tutor-updating-message")},success:function(t){d(".tutor-quiz-builder-modal-wrap .modal-container").html(t.data.output),d("#tutor-topics-"+o+" .tutor-lessons").append(t.data.output\_quiz\_row),d('#tutor-quiz-modal-tab-items-wrap a\[href="#quiz-builder-tab-questions"\]').trigger("click"),s(),d(document).trigger("quiz\_modal\_loaded",{topic\_id:o,course\_id:e})},complete:function(){n.removeClass("tutor-updating-message")}})):i.closest(".tutor-quiz-builder-group").find(".quiz\_form\_msg").html("Please enter quiz title")}),d(document).on("click",".open-tutor-quiz-modal",function(t){t.preventDefault();var e=d(this),o=e.attr("data-quiz-id"),a=e.attr("data-topic-id");null==a&&(a=e.closest(".tutor-modal-wrap").attr("quiz-for-post-id"));var n=d("#post\_ID").val();d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{quiz\_id:o,topic\_id:a,course\_id:n,action:"tutor\_load\_edit\_quiz\_modal"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){d(".tutor-quiz-builder-modal-wrap .modal-container").html(t.data.output),d(".tutor-quiz-builder-modal-wrap").attr("data-quiz-id",o).attr("quiz-for-post-id",a).addClass("show"),e.attr("data-back-to-tab")&&(t=e.attr("data-back-to-tab"),d('#tutor-quiz-modal-tab-items-wrap a\[href="'+t+'"\]').trigger("click")),d(document).trigger("quiz\_modal\_loaded",{quiz\_id:o,topic\_id:a,course\_id:n}),s(),jQuery().sortable&&d(".quiz-builder-questions-wrap").sortable({handle:".question-sorting",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){var a;a={},d(".quiz-builder-question-wrap").each(function(t,e){var o=d(this),o=parseInt(o.attr("data-question-id"),10);a\[t\]=o}),d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{sorted\_question\_ids:a,action:"tutor\_quiz\_question\_sorting"}})}})},complete:function(){e.removeClass("tutor-updating-message")}})}),d(document).on("click",".quiz-modal-settings-save-btn",function(t){t.preventDefault();var e=d(this),o=d(".tutor-quiz-builder-modal-wrap").attr("data-quiz-id"),a=d("#current\_topic\_id\_for\_quiz").val(),t=d("#quiz-builder-tab-settings :input, #quiz-builder-tab-advanced-options :input").serializeObject();t.topic\_id=a,t.quiz\_id=o,t.action="tutor\_quiz\_modal\_update\_settings",d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&d("#tutor-course-content-wrap").html(t.data.course\_contents),t.success?tutor\_toast(n("Success","tutor"),e.data("toast\_success\_message"),"success"):tutor\_toast(n("Update Error","tutor"),n("Quiz Update Failed","tutor"),"error")},complete:function(){e.removeClass("tutor-updating-message"),"modal\_close"===e.attr("data-action")&&d(".tutor-modal-wrap").removeClass("show")}})}),d(document).on("click",".quiz-modal-question-save-btn",function(t){t.preventDefault();var e=d(this),o=d(".quiz\_question\_form :input").serializeObject();o.action="tutor\_quiz\_modal\_update\_question";t=e.closest(".tutor-modal-wrap").attr("quiz-for-post-id");o.topic\_id=t,d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:o,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success?e.closest(".tutor-quiz-builder-modal-contents").find(".open-tutor-quiz-modal").trigger("click"):void 0!==t.data&&d("#quiz\_validation\_msg\_wrap").html(t.data.validation\_msg)},complete:function(){e.removeClass("tutor-updating-message")}})}),d(document).on("click",".modal-close-btn",function(t){t.preventDefault(),d(".tutor-modal-wrap").removeClass("show")}),d(document).on("keyup",function(t){27===t.keyCode&&d(".tutor-modal-wrap").removeClass("show")}),d(document).on("click",".tutor-add-quiz-btn",function(t){t.preventDefault();var e=d(this),o=d(this).closest(".tutor\_add\_quiz\_wrap").attr("data-add-quiz-under"),t=d(this).data("topic-id");d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{quiz\_for\_post\_id:o,current\_topic\_id:t,action:"tutor\_load\_quiz\_builder\_modal"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){d(".tutor-quiz-builder-modal-wrap .modal-container").html(t.data.output),d(".tutor-quiz-builder-modal-wrap").attr("quiz-for-post-id",o).addClass("show")},complete:function(){e.removeClass("tutor-updating-message")}})}),d(document).on("click",".tutor-quiz-modal-tab-item",function(t){t.preventDefault();var e=d(this),o=d('\[name="quiz\_title"\]');o.val()?(o.closest(".tutor-quiz-builder-form-row").find(".quiz\_form\_msg").html(""),t=e.attr("href"),d(".quiz-builder-tab-container").hide(),d(t).show(),d("a.tutor-quiz-modal-tab-item").removeClass("active"),e.addClass("active")):o.closest(".tutor-quiz-builder-form-row").find(".quiz\_form\_msg").html('<p class="quiz-form-warning">Please save the quiz first</p>')}),d(document).on("click",".quiz-modal-btn-next, .quiz-modal-btn-back",function(t){t.preventDefault();t=d(this).attr("href");d('#tutor-quiz-modal-tab-items-wrap a\[href="'+t+'"\]').trigger("click")}),d(document).on("click",".quiz-modal-tab-navigation-btn.quiz-modal-btn-cancel",function(t){t.preventDefault(),d(".tutor-modal-wrap").removeClass("show")}),d(document).on("click",".tutor-quiz-open-question-form",function(t){t.preventDefault();var e=d(this),o=d("#tutor\_quiz\_builder\_quiz\_id").val(),a=d("#post\_ID").val(),t=e.attr("data-question-id"),a={quiz\_id:o,course\_id:a,action:"tutor\_quiz\_builder\_get\_question\_form"};t&&(a.question\_id=t),d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:a,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){d(".tutor-quiz-builder-modal-contents").html(t.data.output),r().reInit(),jQuery().sortable&&d("#tutor\_quiz\_question\_answers").sortable({handle:".tutor-quiz-answer-sort-icon",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){var a;a={},d(".tutor-quiz-answer-wrap").each(function(t,e){var o=d(this),o=parseInt(o.attr("data-answer-id"),10);a\[t\]=o}),d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{sorted\_answer\_ids:a,action:"tutor\_quiz\_answer\_sorting"}})}}),disableAddoption()},complete:function(){e.removeClass("tutor-updating-message")}})}),d(document).on("click",".tutor-quiz-question-trash",function(t){t.preventDefault();var e=d(this),t=e.attr("data-question-id");d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{question\_id:t,action:"tutor\_quiz\_builder\_question\_delete"},beforeSend:function(){e.closest(".quiz-builder-question-wrap").remove()}})}),d(document).on("click",".add\_question\_answers\_option:not(.disabled)",function(t){t.preventDefault();var e=d(this),o=e.attr("data-question-id"),t=d(".quiz\_question\_form :input").serializeObject();t.question\_id=o,t.action="tutor\_quiz\_add\_question\_answers",d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){d("#tutor\_quiz\_question\_answer\_form").html(t.data.output),disableAddoption()},complete:function(){e.removeClass("tutor-updating-message")}})}),d(document).on("click",".tutor-quiz-answer-edit a",function(t){t.preventDefault();var e=d(this),t=e.closest(".tutor-quiz-answer-wrap").attr("data-answer-id");d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{answer\_id:t,action:"tutor\_quiz\_edit\_question\_answer"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){d("#tutor\_quiz\_question\_answer\_form").html(t.data.output)},complete:function(){e.removeClass("tutor-updating-message")}})}),d(document).on("click","#quiz-answer-save-btn",function(t){t.preventDefault();var e=d(this),t=d(".quiz\_question\_form :input").serializeObject();t.action="tutor\_save\_quiz\_answer\_options",d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){d("#quiz\_validation\_msg\_wrap").html(""),e.addClass("tutor-updating-message")},success:function(t){d("#tutor\_quiz\_question\_answers").trigger("refresh")},complete:function(){e.removeClass("tutor-updating-message")}})}),d(document).on("click","#quiz-answer-edit-btn",function(t){t.preventDefault();var e=d(this),t=d(".quiz\_question\_form :input").serializeObject();t.action="tutor\_update\_quiz\_answer\_options",d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){d("#tutor\_quiz\_question\_answers").trigger("refresh")},complete:function(){e.removeClass("tutor-updating-message")}})}),d(document).on("change",".tutor-quiz-answers-mark-correct-wrap input",function(t){t.preventDefault();var e=d(this),o=e.val(),t=1;e.prop("checked")||(t=0),d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{answer\_id:o,inputValue:t,action:"tutor\_mark\_answer\_as\_correct"}})}),d(document).on("refresh","#tutor\_quiz\_question\_answers",function(t){t.preventDefault();var e=d(this),o=e.attr("data-question-id"),t=d(".tutor\_select\_value\_holder").val();d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{question\_id:o,question\_type:t,action:"tutor\_quiz\_builder\_get\_answers\_by\_question"},beforeSend:function(){e.addClass("tutor-updating-message"),d("#tutor\_quiz\_question\_answer\_form").html("")},success:function(t){t.success&&e.html(t.data.output)},complete:function(){e.removeClass("tutor-updating-message")}})}),d(document).on("click",".tutor-quiz-answer-trash-wrap a.answer-trash-btn",function(t){t.preventDefault();var e=d(this),t=e.attr("data-answer-id");d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{answer\_id:t,action:"tutor\_quiz\_builder\_delete\_answer"},beforeSend:function(){e.closest(".tutor-quiz-answer-wrap").remove()}})}),d(document).on("click",".tutor-delete-quiz-btn",function(t){var e;t.preventDefault(),confirm(n("Are you sure?","tutor"))&&(t=(e=d(this)).attr("data-quiz-id"),d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{quiz\_id:t,action:"tutor\_delete\_quiz\_by\_id"},beforeSend:function(){e.closest(".course-content-item").remove()}}))}),r().init(),d(document).on("change","input.tutor\_select\_value\_holder",function(t){d(this);d(".add\_question\_answers\_option").trigger("click"),d("#tutor\_quiz\_question\_answers").trigger("refresh")}),d(document).on("click",".tutor-media-upload-btn",function(t){t.preventDefault();var e,o=d(this);e||(e=wp.media({title:n("Select or Upload Media Of Your Chosen Persuasion","tutor"),button:{text:n("Use this media","tutor")},multiple:!1})).on("select",function(){var t=e.state().get("selection").first().toJSON();o.html('<img src="'+t.url+'" alt="" />'),o.closest(".tutor-media-upload-wrap").find("input").val(t.id)}),e.open()}),d(document).on("click",".tutor-media-upload-trash",function(t){t.preventDefault();t=d(this);t.closest(".tutor-media-upload-wrap").find(".tutor-media-upload-btn").html('<i class="tutor-icon-image1"></i>'),t.closest(".tutor-media-upload-wrap").find("input").val("")});var u,c=(u=0,function(t,e){clearTimeout(u),u=setTimeout(t,e)});d(document).on("click",".tutor-add-instructor-btn",function(t){t.preventDefault();var e=d(this),t=d("#post\_ID").val();d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{course\_id:t,action:"tutor\_load\_instructors\_modal"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(d(".tutor-instructors-modal-wrap .modal-container").html(t.data.output),d(".tutor-instructors-modal-wrap").addClass("show"))},complete:function(){e.removeClass("tutor-updating-message")}})}),d(document).on("change keyup",".tutor-instructors-modal-wrap .tutor-modal-search-input",function(t){t.preventDefault();var o=d(this),a=d(".tutor-modal-wrap");c(function(){var t=o.val(),e=d("#post\_ID").val();d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{course\_id:e,search\_terms:t,action:"tutor\_load\_instructors\_modal"},beforeSend:function(){a.addClass("loading")},success:function(t){t.success&&(d(".tutor-instructors-modal-wrap .modal-container").html(t.data.output),d(".tutor-instructors-modal-wrap").addClass("show"))},complete:function(){a.removeClass("loading")}})},1e3)}),d(document).on("click",".add\_instructor\_to\_course\_btn",function(t){t.preventDefault();var e=d(this),o=d(".tutor-modal-wrap"),t=d("#post\_ID").val(),o=o.find("input").serializeObject();o.course\_id=t,o.action="tutor\_add\_instructors\_to\_course",d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:o,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(d(".tutor-course-available-instructors").html(t.data.output),d(".tutor-modal-wrap").removeClass("show"))},complete:function(){e.removeClass("tutor-updating-message")}})}),d(document).on("click",".tutor-instructor-delete-btn",function(t){t.preventDefault();var e=d(this),o=d("#post\_ID").val(),t=e.closest(".added-instructor-item").attr("data-instructor-id");d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{course\_id:o,instructor\_id:t,action:"detach\_instructor\_from\_course"},success:function(t){t.success&&e.closest(".added-instructor-item").remove()}})}),d(document).on("click",".settings-tabs-navs li",function(t){t.preventDefault();var e=d(this),o=e.find("a").attr("data-target"),t=e.find("a").attr("href");e.addClass("active").siblings("li.active").removeClass("active"),d(".settings-tab-wrap").removeClass("active").hide(),d(o).addClass("active").show(),window.history.pushState({},"",t)}),d(document).on("lesson\_modal\_loaded quiz\_modal\_loaded assignment\_modal\_loaded",function(t,e){jQuery().select2&&d(".select2\_multiselect").select2({dropdownCssClass:"increasezindex"}),o()}),d(document).on("lesson\_modal\_loaded",function(t,e){d(".tutor-lesson-modal-wrap .modal-title h1").html(n("Lesson","tutor"))}),d(document).on("assignment\_modal\_loaded",function(t,e){d(".tutor-lesson-modal-wrap .modal-title h1").html(n("Assignment","tutor"))}),d(document).on("keyup change",".tutor-number-validation",function(t){var e=d(this),o=parseInt(e.val()),a=parseInt(e.attr("data-min")),n=parseInt(e.attr("data-max"));o<a?e.val(a):n<o&&e.val(n)}),d(document).on("click",".tutor-instructor-feedback",function(t){t.preventDefault();var e=d(this);d.ajax({url:window.ajaxurl||\_tutorobject.ajaxurl,type:"POST",data:{attempts\_id:e.data("attemptid"),feedback:d(".tutor-instructor-feedback-content").val(),action:"tutor\_instructor\_feedback"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(e.closest(".course-content-item").remove(),tutor\_toast(n("Success","tutor"),e.data("toast\_success\_message"),"success"))},complete:function(){e.removeClass("tutor-updating-message")}})});var l=d(".tutor-announcement-add-new"),m=d(".tutor-announcement-edit"),p=d(".tutor-announcement-delete"),\_=d(".tutor-announcement-details"),t=d(".tutor-announcement-close-btn"),f=d(".tutor-accouncement-create-modal"),h=d(".tutor-accouncement-update-modal"),v=d(".tutor-accouncement-details-modal");function w(t,e){var o=new URL(window.location.href),a=o.searchParams;return a.set(t,e),o.search=a.toString(),\_tutorobject.is\_admin?a.set("paged",1):a.set("current\_page",1),o.search=a.toString(),o.toString()}d(l).click(function(){f.addClass("show"),d("#tutor-annoucement-backend-create-modal").addClass("show")}),d(\_).click(function(){var t=d(this).attr("announcement-date"),e=d(this).attr("announcement-id"),o=d(this).attr("course-id"),a=d(this).attr("course-name"),n=d(this).attr("announcement-title"),i=d(this).attr("announcement-summary");d(".tutor-announcement-detail-content").html("<h3>".concat(n,"</h3><p>").concat(i,"</p>")),d(".tutor-announcement-detail-course-info p").html("".concat(a)),d(".tutor-announcement-detail-date-info p").html("".concat(t)),d("#tutor-announcement-edit-from-detail").attr("announcement-id",e),d("#tutor-announcement-edit-from-detail").attr("course-id",o),d("#tutor-announcement-edit-from-detail").attr("announcement-title",n),d("#tutor-announcement-edit-from-detail").attr("announcement-summary",i),d("#tutor-announcement-delete-from-detail").attr("announcement-id",e),v.addClass("show")}),d(m).click(function(){v&&v.removeClass("show");var t=d(this).attr("announcement-id"),e=d(this).attr("course-id"),o=d(this).attr("announcement-title"),a=d(this).attr("announcement-summary");d("#tutor-announcement-course-id").val(e),d("#announcement\_id").val(t),d("#tutor-announcement-title").val(o),d("#tutor-announcement-summary").val(a),h.addClass("show")}),d(t).click(function(){f.removeClass("show"),h.removeClass("show"),v.removeClass("show"),d("#tutor-annoucement-backend-create-modal").removeClass("show")}),d(".tutor-announcements-form").on("submit",function(t){t.preventDefault();var e=d(this).find('button\[type="submit"\]'),t=d(".tutor-announcements-form").serialize()+"&action=tutor\_announcement\_create&action\_type=create";d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){if(d(".tutor-alert").remove(),"success"==t.status&&location.reload(),"validation\_error"==t.status){d(".tutor-announcements-create-alert").append('<div class="tutor-alert alert-warning"></div>');for(var e=0,o=Object.entries(t.message);e<o.length;e++){var a=y(o\[e\],2),a=(a\[0\],a\[1\]);d(".tutor-announcements-create-alert .tutor-alert").append("<li>".concat(a,"</li>"))}}"fail"==t.status&&d(".tutor-announcements-create-alert").html("<li>".concat(t.message,"</li>"))},error:function(t){console.log(t)}})}),d(".tutor-announcements-update-form").on("submit",function(t){t.preventDefault();var e=d(this).find('button\[type="submit"\]'),t=d(".tutor-announcements-update-form").serialize()+"&action=tutor\_announcement\_create&action\_type=update";d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){if(d(".tutor-alert").remove(),"success"==t.status&&location.reload(),"validation\_error"==t.status){d(".tutor-announcements-update-alert").append('<div class="tutor-alert alert-warning"></div>');for(var e=0,o=Object.entries(t.message);e<o.length;e++){var a=y(o\[e\],2),a=(a\[0\],a\[1\]);d(".tutor-announcements-update-alert > .tutor-alert").append("<li>".concat(a,"</li>"))}}"fail"==t.status&&d(".tutor-announcements-create-alert").html("<li>".concat(t.message,"</li>"))},error:function(){}})}),d(p).click(function(){var t=d(this).attr("announcement-id"),e=d("#tutor-announcement-tr-"+t);confirm("Do you want to delete?")&&d.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{action:"tutor\_announcement\_delete",announcement\_id:t},beforeSend:function(){},success:function(t){e.remove(),v.length&&v.removeClass("show"),"fail"==t.status&&console.log(t.message)},error:function(){}})}),d(".tutor-announcement-course-sorting").on("change",function(t){window.location=w("course-id",d(this).val())}),d(".tutor-announcement-order-sorting").on("change",function(t){window.location=w("order",d(this).val())}),d(".tutor-announcement-date-sorting").on("change",function(t){window.location=w("date",d(this).val())}),d(".tutor-announcement-search-sorting").on("click",function(t){window.location=w("search",d(".tutor-announcement-search-field").val())}),d(document).click(function(){d(".tutor-dropdown").removeClass("show")}),d(".tutor-dropdown").click(function(t){t.stopPropagation(),d(".tutor-dropdown").hasClass("show")&&d(".tutor-dropdown").removeClass("show"),d(this).addClass("show")});var b,p=".video\_source\_wrap\_external\_url input, .video\_source\_wrap\_vimeo input, .video\_source\_wrap\_youtube input, .video\_source\_wrap\_html5, .video\_source\_upload\_wrap\_html5";d("body").on("paste",p,function(t){t.stopImmediatePropagation();var r=d(this).closest(".lesson-modal-form-wrap").find(".tutor-option-field-video-duration"),e=r.find("label"),o=d(this).hasClass("video\_source\_wrap\_html5")||d(this).hasClass("video\_source\_upload\_wrap\_html5"),a=d(this).data("autofill\_url");d(this).data("autofill\_url",null);function n(t){t?0==e.find("img").length&&e.append(' <img src="'+window.\_tutorobject.loading\_icon\_url+'" style="display:inline-block"/>'):e.find("img").remove()}function i(t){for(var e=Math.floor(t/3600),o=Math.floor((t-3600\*e)/60),t=Math.round(t-3600\*e-60\*o),a=\[e=e<10?"0"+e:e,o=o<10?"0"+o:o,t=t<10?"0"+t:t\],n=r.find("input"),i=0;i<3;i++)n.eq(i).val(a\[i\])}var s,u,c,t=o?d(this).find("span").data("video\_url"):a||t.originalEvent.clipboardData.getData("text");o||d(this).parent().hasClass("video\_source\_wrap\_external\_url")?((s=document.createElement("video")).addEventListener("loadedmetadata",function(){i(s.duration),n(!1)}),n(!0),s.src=t):d(this).parent().hasClass("video\_source\_wrap\_vimeo")?(u=(c=t.match(/^.\*(vimeo\\.com\\/)((channels\\/\[A-z\]+\\/)|(groups\\/\[A-z\]+\\/videos\\/))?(\[0-9\]+)/))?c\[5\]:null)&&(n(!0),d.getJSON("http://vimeo.com/api/v2/video/"+u+"/json",function(t){Array.isArray(t)&&t\[0\]&&void 0!==t\[0\].duration&&i(t\[0\].duration),n(!1)})):d(this).parent().hasClass("video\_source\_wrap\_youtube")&&(u=!(!(c=t.match(/^.\*((youtu.be\\/)|(v\\/)|(\\/u\\/\\w\\/)|(embed\\/)|(watch\\?))\\??v?=?(\[^#&?\]\*).\*/))||11!=c\[7\].length)&&c\[7\],c=d(this).data("youtube\_api\_key"),u&&c&&(c="https://www.googleapis.com/youtube/v3/videos?id="+u+"&key="+c+"&part=contentDetails",n(!0),d.getJSON(c,function(t){"object"==g(t)&&t.items&&t.items\[0\]&&t.items\[0\].contentDetails&&t.items\[0\].contentDetails.duration&&i(function(t){t=(t=t.match(/PT(\\d+H)?(\\d+M)?(\\d+S)?/)).slice(1).map(function(t){if(null!=t)return t.replace(/\\D/,"")});return 3600\*(parseInt(t\[0\])||0)+60\*(parseInt(t\[1\])||0)+(parseInt(t\[2\])||0)}(t.items\[0\].contentDetails.duration)),n(!1)})))}).on("input",p,function(){b&&clearTimeout(b);var e=d(this);b=setTimeout(function(){var t=(t=e.val())?t.trim():"";console.log("Trigger",t),t&&e.data("autofill\_url",t).trigger("paste")},700)}),d(".tutor-form-submit-through-ajax").submit(function(t){t.preventDefault();var e=d(this),o=d(this).attr("action")||window.location.href,a=d(this).attr("method")||"GET",t=d(this).serializeObject();e.find("button").addClass("tutor-updating-message"),d.ajax({url:o,type:a,data:t,success:function(){tutor\_toast(n("Success","tutor"),e.data("toast\_success\_message"),"success")},complete:function(){e.find("button").removeClass("tutor-updating-message")}})}),d.ajaxSetup({data:tutor\_get\_nonce\_data()})}),jQuery.fn.serializeObject=function(){var t={},e=this.serializeArray();return jQuery.each(e,function(){t\[this.name\]?(t\[this.name\].push||(t\[this.name\]=\[t\[this.name\]\]),t\[this.name\].push(this.value||"")):t\[this.name\]=this.value||""}),t},window.tutor\_toast=function(t,e,o){var a=((window.\_tutorobject||{}).tutor\_url||"")+"assets/images/";jQuery(".tutor-toast-parent").length||jQuery("body").append('<div class="tutor-toast-parent"></div>');var n=jQuery(' <div> <div> <img src="'+{success:a+"icon-check.svg",error:a+"icon-cross.svg"}\[o\]+'"/> </div> <div> <div> <b>'+t+"</b> <span>"+e+'</span> </div> </div> <div> <i class="tutor-toast-close tutor-icon-line-cross"></i> </div> </div>');n.find(".tutor-toast-close").click(function(){n.remove()}),jQuery(".tutor-toast-parent").append(n),setTimeout(function(){n&&n.fadeOut("fast",function(){jQuery(this).remove()})},5e3)},window.disableAddoption=function(){function t(t){t.classList.contains("disabled")||t.classList.add("disabled")}function e(t){t.classList.contains("disabled")&&t.classList.remove("disabled")}var o=document.querySelector(".tutor\_select\_value\_holder").value,a=document.getElementById("tutor\_quiz\_question\_answers"),n=document.getElementById("tutor\_quiz\_question\_answer\_form"),i=document.querySelector(".add\_question\_answers\_option");("open\_ended"===o||"short\_answer"===o||("true\_false"===o||"fill\_in\_the\_blank"===o)&&(n.hasChildNodes()||a.hasChildNodes())?t:e)(i)}},896:()=>{window.jQuery(document).ready(function(o){var a=wp.i18n.\_\_;o(document).on("click",".tutor-copy-text",function(t){t.stopImmediatePropagation(),t.preventDefault();var e=o(this).data("text"),t=o("<input>");o("body").append(t),t.val(e).select(),document.execCommand("copy"),t.remove(),tutor\_toast(a("Copied!","tutor"),e,"success")})})}},a={};function i(t){var e=a\[t\];if(void 0!==e)return e.exports;e=a\[t\]={exports:{}};return o\[t\](e,e.exports,i),e.exports}(()=>{"use strict";i(896),i(623);function n(t){return(n="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})(t)}jQuery(document).ready(function(r){var t=wp.i18n,i=t.\_\_,e=(t.\_x,t.\_n,t.\_nx,i("Search students","tutor"));function a(){jQuery().sortable&&(r(".course-contents").sortable({handle:".course-move-handle",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){o()}}),r(".tutor-lessons:not(.drop-lessons)").sortable({connectWith:".tutor-lessons",items:"div.course-content-item",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){o()}}))}function o(){var i={};r(".tutor-topics-wrap").each(function(t,e){var o=r(this),a=parseInt(o.attr("id").match(/\\d+/)\[0\],10),n={};o.find(".course-content-item").each(function(t,e){var o=r(this),o=parseInt(o.attr("id").match(/\\d+/)\[0\],10);n\[t\]=o}),i\[t\]={topic\_id:a,lesson\_ids:n}}),r("#tutor\_topics\_lessons\_sorting").val(JSON.stringify(i))}jQuery().wpColorPicker&&r(".tutor\_colorpicker").wpColorPicker(),jQuery().select2&&r(".tutor\_select2").select2(),r(".tutor-option-nav-tabs li a").click(function(t){t.preventDefault();t=r(this).attr("data-tab");r(".option-nav-item").removeClass("current"),r(this).closest("li").addClass("current"),r(".tutor-option-nav-page").hide(),r(t).addClass("current-page").show(),window.history.pushState("obj","",r(this).attr("href"))}),r("#save\_tutor\_option").click(function(t){t.preventDefault(),r(this).closest("form").submit()}),r("#tutor-option-form").submit(function(t){t.preventDefault();var e=r(this),t=e.serializeObject();r.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.find(".button").addClass("tutor-updating-message")},success:function(t){t.success?tutor\_toast(i("Saved","tutor"),e.data("toast\_success\_message"),"success"):tutor\_toast(i("Request Error","tutor"),i("Could not save","tutor"),"error")},complete:function(){e.find(".button").removeClass("tutor-updating-message")}})}),r(document).on("click",".withdraw-method-nav li a",function(t){t.preventDefault();t=r(this).attr("data-target-id");r(".withdraw-method-form-wrap").hide(),r("#"+t).show()}),a(),r(document).on("click",".update\_lesson\_modal\_btn",function(t){t.preventDefault();var e=r(this),o="tutor\_lesson\_modal\_editor",t=tinyMCE.get(o),t=t?t.getContent():r("#"+o).val(),o=r(this).closest("form").serializeObject();o.lesson\_content=t,r.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:o,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(r("#tutor-course-content-wrap").html(t.data.course\_contents),a(),r(".tutor-lesson-modal-wrap").removeClass("show"),tutor\_toast(i("Lesson Updated","tutor"),e.data("toast\_success\_message"),"success"))},complete:function(){e.removeClass("tutor-updating-message")}})}),r(document).on("change",".tutor\_lesson\_video\_source",function(t){var e=r(this).val();r('\[class^="video\_source\_wrap"\]').hide(),r(".video\_source\_wrap\_"+e).show(),"html5"===e?r(".tutor-video-poster-field").show():r(".tutor-video-poster-field").hide()}),r(document).on("click",".video\_source\_wrap\_html5 .video\_upload\_btn",function(t){t.preventDefault();var e,o=r(this);e||(e=wp.media({title:i("Select or Upload Media Of Your Choice","tutor"),button:{text:i("Upload media","tutor")},library:{type:"video"},multiple:!1})).on("select",function(){var t=e.state().get("selection").first().toJSON();o.closest(".video\_source\_wrap\_html5").find("span.video\_media\_id").data("video\_url",t.url).text(t.id).trigger("paste").closest("p").show(),o.closest(".video\_source\_wrap\_html5").find("input.input\_source\_video\_id").val(t.id)}),e.open()}),r(document).on("click","a.tutor-delete-attachment",function(t){t.preventDefault(),r(this).closest(".tutor-added-attachment").remove()}),r(document).on("click",".tutorUploadAttachmentBtn",function(t){t.preventDefault();var a,n=r(this);a||(a=wp.media({title:i("Select or Upload Media Of Your Choice","tutor"),button:{text:i("Upload media","tutor")},multiple:!0})).on("select",function(){var t=a.state().get("selection").toJSON();if(t.length)for(var e=0;e<t.length;e++){var o=t\[e\],o='<div class="tutor-added-attachment"><i class="tutor-icon-archive"></i> <a href="javascript:;" class="tutor-delete-attachment tutor-icon-line-cross"></a> <span> <a href="'+o.url+'">'+o.filename+'</a> </span><input type="hidden" name="tutor\_attachments\[\]" value="'+o.id+'"></div>';n.closest(".tutor-lesson-attachments-metabox").find(".tutor-added-attachments-wrap").append(o)}}),a.open()}),\_tutorobject.open\_tutor\_admin\_menu&&((t=r("#adminmenu")).find('\[href="admin.php?page=tutor"\]').closest("li.wp-has-submenu").addClass("wp-has-current-submenu"),t.find('\[href="admin.php?page=tutor"\]').closest("li.wp-has-submenu").find("a.wp-has-submenu").removeClass("wp-has-current-submenu").addClass("wp-has-current-submenu")),r(document).on("click",".tutor-option-media-upload-btn",function(t){t.preventDefault();var e,o=r(this);e||(e=wp.media({title:i("Select or Upload Media Of Your Choice","tutor"),button:{text:i("Upload media","tutor")},multiple:!1})).on("select",function(){var t=e.state().get("selection").first().toJSON();o.closest(".option-media-wrap").find(".option-media-preview").html('<img src="'+t.url+'" alt="" />'),o.closest(".option-media-wrap").find("input").val(t.id),o.closest(".option-media-wrap").find(".tutor-media-option-trash-btn").show()}),e.open()}),r(document).on("click",".tutor-media-option-trash-btn",function(t){t.preventDefault();t=r(this);t.closest(".option-media-wrap").find("img").remove(),t.closest(".option-media-wrap").find("input").val(""),t.closest(".option-media-wrap").find(".tutor-media-option-trash-btn").hide()}),r(document).on("change",".tutor\_addons\_list\_item",function(t){var e=r(this),o=e.prop("checked")?1:0,e=e.attr("name");r.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{isEnable:o,addonFieldName:e,action:"addon\_enable\_disable"},success:function(t){t.success}})}),r(document).on("submit","#new-instructor-form",function(t){t.preventDefault();var o=r(this),t=o.serializeObject();t.action="tutor\_add\_instructor",r.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,success:function(t){var a,e;t.success?(o.trigger("reset"),r("#form-response").html('<p class="tutor-status-approved-context">'+t.data.msg+"</p>")):(a="",(e=t.data.errors)&&Object.keys(e).length&&(r.each(t.data.errors,function(t,e){var o;(o=e)&&"object"===n(o)&&o.constructor===Object?r.each(e,function(t,e){a+='<p class="tutor-required-fields">'+e\[0\]+"</p>"}):a+='<p class="tutor-required-fields">'+e+"</p>"}),r("#form-response").html(a)))}})}),r(document).on("click","a.instructor-action",function(t){t.preventDefault();var e=r(this),o=e.attr("data-action"),a=e.attr("data-instructor-id"),t=e.attr("data-prompt-message");t&&!confirm(t)||((a={instructor\_id:a,action\_name:o,action:"instructor\_approval\_action"})\[o=\_tutorobject.nonce\_key\]=\_tutorobject\[o\],r.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:a,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){location.reload(!0)},complete:function(){e.removeClass("tutor-updating-message")}}))}),r(document).on("click",".tutor-create-assignments-btn",function(t){t.preventDefault();var e=r(this),o=r(this).attr("data-topic-id"),a=r("#post\_ID").val();r.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{topic\_id:o,course\_id:a,action:"tutor\_load\_assignments\_builder\_modal"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){r(".tutor-lesson-modal-wrap .modal-container").html(t.data.output),r(".tutor-lesson-modal-wrap").attr("data-topic-id",o).addClass("show"),r(document).trigger("assignment\_modal\_loaded",{topic\_id:o,course\_id:a}),tinymce.init(tinyMCEPreInit.mceInit.tutor\_editor\_config),tinymce.execCommand("mceRemoveEditor",!1,"tutor\_assignments\_modal\_editor"),tinyMCE.execCommand("mceAddEditor",!1,"tutor\_assignments\_modal\_editor")},complete:function(){quicktags({id:"tutor\_assignments\_modal\_editor"}),e.removeClass("tutor-updating-message")}})}),r(document).on("click",".open-tutor-assignment-modal",function(t){t.preventDefault();var e=r(this),o=e.attr("data-assignment-id"),a=e.attr("data-topic-id"),n=r("#post\_ID").val();r.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{assignment\_id:o,topic\_id:a,course\_id:n,action:"tutor\_load\_assignments\_builder\_modal"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){r(".tutor-lesson-modal-wrap .modal-container").html(t.data.output),r(".tutor-lesson-modal-wrap").attr({"data-assignment-id":o,"data-topic-id":a}).addClass("show"),r(document).trigger("assignment\_modal\_loaded",{assignment\_id:o,topic\_id:a,course\_id:n}),tinymce.init(tinyMCEPreInit.mceInit.tutor\_editor\_config),tinymce.execCommand("mceRemoveEditor",!1,"tutor\_assignments\_modal\_editor"),tinyMCE.execCommand("mceAddEditor",!1,"tutor\_assignments\_modal\_editor")},complete:function(){quicktags({id:"tutor\_assignments\_modal\_editor"}),e.removeClass("tutor-updating-message")}})}),r(document).on("click",".update\_assignment\_modal\_btn",function(t){t.preventDefault();var e=r(this),o="tutor\_assignments\_modal\_editor",t=tinyMCE.get(o),t=t?t.getContent():r("#"+o).val(),o=r(this).closest("form").serializeObject();o.assignment\_content=t,r.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:o,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(r("#tutor-course-content-wrap").html(t.data.course\_contents),a(),r(".tutor-lesson-modal-wrap").removeClass("show"),tutor\_toast(i("Assignment Updated","tutor"),e.data("toast\_success\_message"),"success"))},complete:function(){e.removeClass("tutor-updating-message")}})}),r(document).on("click",".add-assignment-attachments",function(t){t.preventDefault();var o,a=r(this);o||(o=wp.media({title:i("Select or Upload Media Of Your Choice","tutor"),button:{text:i("Upload media","tutor")},multiple:!1})).on("select",function(){var t=o.state().get("selection").first().toJSON(),e='<div class="tutor-individual-attachment-file"><p class="attachment-file-name">'+t.filename+'</p><input type="hidden" name="tutor\_assignment\_attachments\[\]" value="'+t.id+'"><a href="javascript:;" class="remove-assignment-attachment-a text-muted"> × Remove</a></div>';r("#assignment-attached-file").append(e),a.closest(".video\_source\_wrap\_html5").find("input").val(t.id)}),o.open()}),r(document).on("click",".remove-assignment-attachment-a",function(t){t.preventDefault(),r(this).closest(".tutor-individual-attachment-file").remove()}),r(document).on("click",".tutor\_video\_poster\_upload\_btn",function(t){t.preventDefault();var e,o=r(this);e||(e=wp.media({title:i("Select or Upload Media Of Your Choice","tutor"),button:{text:i("Upload media","tutor")},multiple:!1})).on("select",function(){var t=e.state().get("selection").first().toJSON();o.closest(".tutor-video-poster-wrap").find(".video-poster-img").html('<img src="'+t.sizes.thumbnail.url+'" alt="" />'),o.closest(".tutor-video-poster-wrap").find("input").val(t.id)}),e.open()}),r(document).on("change","#tutor\_pmpro\_membership\_model\_select",function(t){t.preventDefault(),"category\_wise\_membership"===r(this).val()?r(".membership\_course\_categories").show():r(".membership\_course\_categories").hide()}),r(document).on("change","#tutor\_pmpro\_membership\_model\_select",function(t){t.preventDefault(),"category\_wise\_membership"===r(this).val()?r(".membership\_course\_categories").show():r(".membership\_course\_categories").hide()}),r(document).on("submit",".pmpro\_admin form",function(t){var e=r(this);e.find('input\[name="tutor\_action"\]').length&&("category\_wise\_membership"!=e.find('\[name="tutor\_pmpro\_membership\_model"\]').val()||e.find(".membership\_course\_categories input:checked").length||confirm(i("Do you want to save without any category?","tutor"))||t.preventDefault())}),r("#select2\_search\_user\_ajax").select2({allowClear:!0,minimumInputLength:1,placeholder:e,language:{inputTooShort:function(){return i("Please add 1 or more character","tutor")}},escapeMarkup:function(t){return t},ajax:{url:window.\_tutorobject.ajaxurl,type:"POST",dataType:"json",delay:1e3,data:function(t){return{term:t.term,action:"tutor\_json\_search\_students"}},processResults:function(t){var o=\[\];return t&&r.each(t,function(t,e){o.push({id:t,text:e})}),{results:o}},cache:!0}}),r(document).on("click","table.enrolments .delete a",function(t){t.preventDefault();var e=r(this).attr("href"),t={title:i("Delete this enrolment","tutor"),description:i("All of the course data like quiz attempts, assignment, lesson <br/>progress will be deleted if you delete this student's enrollment.","tutor"),buttons:{reset:{title:i("Cancel","tutor"),class:"secondary",callback:function(){o.remove()}},keep:{title:i("Yes, Delete This","tutor"),class:"primary",callback:function(){window.location.replace(e)}}}},o=new window.tutor\_popup(r,"icon-trash",40).popup(t)});e=r('#tutor-attach-product \[name="tutor\_course\_price\_type"\]');0==e.length?r("#\_tutor\_is\_course\_public\_meta\_checkbox").show():e.change(function(){var t;r(this).prop("checked")&&(t="paid"==r(this).val()?"hide":"show",r("#\_tutor\_is\_course\_public\_meta\_checkbox")\[t\]())}).trigger("change"),r(document).on("click",".instructor-layout-template",function(){r(".instructor-layout-template").removeClass("selected-template"),r(this).addClass("selected-template")}),r("#preview-action a.preview").click(function(t){var e=r(this).attr("href");e&&(t.preventDefault(),window.open(e,"\_blank"))})})})()})();
tutor/trunk/assets/js/tutor-course-builder.js
r2610239
r2615802
1
window.jQuery(document).ready(function(t){t(".tutor-certificate-template-tab \[data-tutor-tab-target\]").click(function(){t(this).addClass("is-active").siblings().removeClass("is-active"),t("#"+t(this).data("tutor-tab-target")).show().siblings().hide()}),t(".").click(function(){t(this).siblings().filter("tutor-certificate-collapsible")})});
tutor/trunk/assets/js/tutor-front.js
r2610239
r2615802
1
(()=>{var o={623:()=>{function b(t){return(b="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})(t)}function y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var o=null==t?null:"undefined"!=typeof Symbol&&t\[Symbol.iterator\]||t\["@@iterator"\];if(null!=o){var n,a,i=\[\],r=!0,s=!1;try{for(o=o.call(t);!(r=(n=o.next()).done)&&(i.push(n.value),!e||i.length!==e);r=!0);}catch(t){s=!0,a=t}finally{try{r||null==o.return||o.return()}finally{if(s)throw a}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return n(t,e);var o=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(o="Object"===o&&t.constructor?t.constructor.name:o)||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?n(t,e):void 0}}(t,e)||function(){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 n(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,n=new Array(e);o<e;o++)n\[o\]=t\[o\];return n}window.tutor\_get\_nonce\_data=function(t){var e=window.\_tutorobject||{},o=e.nonce\_key||"",e=e\[o\]||"";return t?{key:o,value:e}:(t=e,(e=o)in(o={})?Object.defineProperty(o,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):o\[e\]=t,o)},window.tutor\_popup=function(r,o,n){var s,u=this;return this.popup\_wrapper=function(t){var e=""===o?"":'<img class="tutor-pop-icon" src="'+window.\_tutorobject.tutor\_url+"assets/images/"+o+'.svg"/>';return"<"+t+' class="tutor-component-popup-container"> <div class="tutor-component-popup-'+n+'"> <div class="tutor-component-content-container">'+e+'</div> <div class="tutor-component-button-container"></div> </div> </'+t+">"},this.popup=function(o){var t=o.title?"<h3>"+o.title+"</h3>":"",e=o.description?"<p>"+o.description+"</p>":"",n=Object.keys(o.buttons||{}).map(function(t){var e=o.buttons\[t\],t=e.id?"tutor-popup-"+e.id:"";return r('<button id="'+t+'" class="tutor-button tutor-button-'+e.class+'">'+e.title+"</button>").click(e.callback)}),a=(s=r(u.popup\_wrapper(o.wrapper\_tag||"div"))).find(".tutor-component-content-container");a.append(t),o.after\_title&&a.append(o.after\_title),a.append(e),o.after\_description&&a.append(o.after\_description),s.click(function(){r(this).remove()}).children().click(function(t){t.stopPropagation()});for(var i=0;i<n.length;i++)s.find(".tutor-component-button-container").append(n\[i\]);return r("body").append(s),s},{popup:this.popup}},window.tutorDotLoader=function(t){return' \\n <div class="tutor-dot-loader '.concat(t||"",'">\\n <span class="dot dot-1"></span>\\n <span class="dot dot-2"></span>\\n <span class="dot dot-3"></span>\\n <span class="dot dot-4"></span>\\n </div>')},window.tutor\_date\_picker=function(){var t;jQuery.datepicker&&(t=\_tutorobject.wp\_date\_format||"yy-mm-dd",$(".tutor\_date\_picker").datepicker({dateFormat:t}))},jQuery(document).ready(function(l){"use strict";var t=wp.i18n,a=t.\_\_;t.\_x,t.\_n,t.\_nx;function o(){var t;jQuery.datepicker&&(t=\_tutorobject.wp\_date\_format||"yy-mm-dd",l(".tutor\_date\_picker").datepicker({dateFormat:t})),l(document).on("keydown",".hasDatepicker, .tutor\_date\_picker",function(t){8!==t.keyCode&&t.preventDefault()})}function s(){l(".tutor-field-slider").each(function(){var t=l(this),o=t.closest(".tutor-field-type-slider").find('input\[type="hidden"\]'),n=t.closest(".tutor-field-type-slider").find(".tutor-field-type-slider-value"),e=parseFloat(t.closest(".tutor-field-type-slider").attr("data-min")),a=parseFloat(t.closest(".tutor-field-type-slider").attr("data-max"));t.slider({range:"max",min:e,max:a,value:o.val(),slide:function(t,e){n.text(e.value),o.val(e.value)}})})}function e(t){var e=t.element;return l('<span><i class="tutor-icon-'+l(e).data("icon")+'"></i> '+t.text+"</span>")}function i(){jQuery().sortable&&(l(".course-contents").sortable({handle:".course-move-handle",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){n()}}),l(".tutor-lessons:not(.drop-lessons)").sortable({connectWith:".tutor-lessons",items:"div.course-content-item",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){n()}}))}function n(){var i={};l(".tutor-topics-wrap").each(function(t,e){var o=l(this),n=parseInt(o.attr("id").match(/\\d+/)\[0\],10),a={};o.find(".course-content-item").each(function(t,e){var o=l(this),o=parseInt(o.attr("id").match(/\\d+/)\[0\],10);a\[t\]=o}),i\[t\]={topic\_id:n,lesson\_ids:a}}),l("#tutor\_topics\_lessons\_sorting").val(JSON.stringify(i))}function r(){return{init:function(){l(document).on("click",".tutor-select .tutor-select-option",function(t){t.preventDefault();var e=l(this);"true"!==e.attr("data-is-pro")?(t=e.html().trim(),e.closest(".tutor-select").find(".select-header .lead-option").html(t),e.closest(".tutor-select").find(".select-header input.tutor\_select\_value\_holder").val(e.attr("data-value")).trigger("change"),e.closest(".tutor-select-options").hide(),disableAddoption()):alert("Tutor Pro version required")}),l(document).on("click",".tutor-select .select-header",function(t){t.preventDefault(),l(this).closest(".tutor-select").find(".tutor-select-options").slideToggle()}),this.setValue(),this.hideOnOutSideClick()},setValue:function(){l(".tutor-select").each(function(){var t=l(this).find(".tutor-select-option");t.length&&t.each(function(){var t,e=l(this);"selected"===e.attr("data-selected")&&(t=e.html().trim(),e.closest(".tutor-select").find(".select-header .lead-option").html(t),e.closest(".tutor-select").find(".select-header input.tutor\_select\_value\_holder").val(e.attr("data-value")))})})},hideOnOutSideClick:function(){l(document).mouseup(function(t){var e=l(".tutor-select-options");l(t.target).closest(".select-header").length||e.is(t.target)||0!==e.has(t.target).length||e.hide()})},reInit:function(){this.setValue()}}}o(),s(),jQuery().select2&&l(".videosource\_select2").select2({width:"100%",templateSelection:e,templateResult:e,allowHtml:!0}),l(document).on("change",".tutor\_lesson\_video\_source",function(t){var e=l(this),o=l(this).val();o?l(".video-metabox-source-input-wrap").show():l(".video-metabox-source-input-wrap").hide(),e.closest(".tutor-option-field").find(".video-metabox-source-item").hide(),e.closest(".tutor-option-field").find(".video\_source\_wrap\_"+o).show()}),l(document).on("click",".tutor-course-thumbnail-upload-btn",function(t){t.preventDefault();var e,o=l(this);e||(e=wp.media({title:a("Select or Upload Media Of Your Chosen Persuasion","tutor"),button:{text:a("Use this media","tutor")},multiple:!1})).on("select",function(){var t=e.state().get("selection").first().toJSON();o.closest(".tutor-thumbnail-wrap").find(".thumbnail-img").attr("src",t.url),o.closest(".tutor-thumbnail-wrap").find("input").val(t.id),l(".tutor-course-thumbnail-delete-btn").show()}),e.open()}),l(document).on("click",".tutor-course-thumbnail-delete-btn",function(t){t.preventDefault();var e=l(this),t=e.closest(".tutor-thumbnail-wrap").find(".thumbnail-img").attr("data-placeholder-src");e.closest(".tutor-thumbnail-wrap").find(".thumbnail-img").attr("src",t),e.closest(".tutor-thumbnail-wrap").find("input").val(""),l(".tutor-course-thumbnail-delete-btn").hide()}),l(document).on("click",".create\_new\_topic\_btn",function(t){t.preventDefault(),l(".tutor-metabox-add-topics").slideToggle()}),l(document).on("click","#tutor-add-topic-btn",function(t){t.preventDefault();var e=l(this),t=e.closest(".tutor-metabox-add-topics").find("input, textarea").serializeObject();t.action="tutor\_add\_course\_topic",l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(l("#tutor-course-content-wrap").html(t.data.course\_contents),e.closest(".tutor-metabox-add-topics").find('input\[type!="hidden"\], textarea').each(function(){l(this).val("")}),e.closest(".tutor-metabox-add-topics").slideUp(),i())},complete:function(){e.removeClass("tutor-updating-message")}})}),l(".tutor-zoom-meeting-modal-wrap").on("submit",".tutor-meeting-modal-form",function(t){t.preventDefault();var e=l(this),o=e.serializeObject(),t=Intl.DateTimeFormat().resolvedOptions().timeZone;o.timezone=t;var n=e.find('button\[type="submit"\]');l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:o,beforeSend:function(){n.addClass("tutor-updating-message")},success:function(t){t.success?tutor\_toast(a("Success","tutor"),n.data("toast\_success\_message"),"success"):tutor\_toast(a("Update Error","tutor"),a("Meeting Update Failed","tutor"),"error"),t.course\_contents?(l(t.selector).html(t.course\_contents),"#tutor-course-content-wrap"==t.selector&&i(),l(".tutor-zoom-meeting-modal-wrap").removeClass("show")):location.reload()},complete:function(){n.removeClass("tutor-updating-message")}})}),l(document).on("change keyup",".course-edit-topic-title-input",function(t){t.preventDefault(),l(this).closest(".tutor-topics-top").find(".topic-inner-title").html(l(this).val())}),l(document).on("click",".topic-edit-icon",function(t){t.preventDefault(),l(this).closest(".tutor-topics-top").find(".tutor-topics-edit-form").slideToggle()}),l(document).on("click",".tutor-topics-edit-button",function(t){t.preventDefault();var e=l(this),o=e.closest(".tutor-topics-wrap"),t=parseInt(o.attr("id").match(/\\d+/)\[0\],10),n=e.closest(".tutor-topics-wrap").find('\[name="topic\_title"\]').val(),o=e.closest(".tutor-topics-wrap").find('\[name="topic\_summery"\]').val();l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{topic\_title:n,topic\_summery:o,topic\_id:t,action:"tutor\_update\_topic"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(e.closest(".tutor-topics-wrap").find("span.topic-inner-title").text(n),e.closest(".tutor-topics-wrap").find(".tutor-topics-edit-form").slideUp())},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click",".open-tutor-lesson-modal",function(t){t.preventDefault();var e=l(this),o=e.attr("data-lesson-id"),n=e.attr("data-topic-id"),a=l("#post\_ID").val();l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{lesson\_id:o,topic\_id:n,course\_id:a,action:"tutor\_load\_edit\_lesson\_modal"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){l(".tutor-lesson-modal-wrap .modal-container").html(t.data.output),l(".tutor-lesson-modal-wrap").attr({"data-lesson-id":o,"data-topic-id":n}).addClass("show");t=(t=tinyMCEPreInit.mceInit.tutor\_editor\_config)||tinyMCEPreInit.mceInit.course\_description;tinymce.init(t),tinymce.execCommand("mceRemoveEditor",!1,"tutor\_lesson\_modal\_editor"),tinyMCE.execCommand("mceAddEditor",!1,"tutor\_lesson\_modal\_editor"),l(document).trigger("lesson\_modal\_loaded",{lesson\_id:o,topic\_id:n,course\_id:a})},complete:function(){quicktags({id:"tutor\_lesson\_modal\_editor"}),e.removeClass("tutor-updating-message")}})}),l(document).on("click",".lesson\_thumbnail\_upload\_btn",function(t){t.preventDefault();var e,o=l(this);e||(e=wp.media({title:a("Select or Upload Media Of Your Chosen Persuasion","tutor"),button:{text:a("Use this media","tutor")},multiple:!1})).on("select",function(){var t=e.state().get("selection").first().toJSON();o.closest(".tutor-thumbnail-wrap").find(".thumbnail-img").html('<img src="'+t.url+'" alt="" /><a href="javascript:;" class="tutor-lesson-thumbnail-delete-btn"><i class="tutor-icon-line-cross"></i></a>'),o.closest(".tutor-thumbnail-wrap").find("input").val(t.id),l(".tutor-lesson-thumbnail-delete-btn").show()}),e.open()}),l(document).on("click",".tutor-lesson-thumbnail-delete-btn",function(t){t.preventDefault();t=l(this);t.closest(".tutor-thumbnail-wrap").find(".\_lesson\_thumbnail\_id").val(""),t.closest(".tutor-thumbnail-wrap").find(".thumbnail-img").html(""),t.hide()}),l(document).on("click",".tutor-delete-lesson-btn",function(t){var e;t.preventDefault(),confirm(a("Are you sure?","tutor"))&&(t=(e=l(this)).attr("data-lesson-id"),l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{lesson\_id:t,action:"tutor\_delete\_lesson\_by\_id"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&e.closest(".course-content-item").remove()},complete:function(){e.removeClass("tutor-updating-message")}}))}),l(document).on("click",".topic-delete-btn a",function(t){l(this).attr("data-topic-id");confirm(a("Are you sure to delete?","tutor"))||t.preventDefault()}),l(document).on("click",".tutor-expand-all-topic",function(t){t.preventDefault(),l(".tutor-topics-body").slideDown(),l(".expand-collapse-wrap i").removeClass("tutor-icon-light-down").addClass("tutor-icon-light-up")}),l(document).on("click",".tutor-collapse-all-topic",function(t){t.preventDefault(),l(".tutor-topics-body").slideUp(),l(".expand-collapse-wrap i").removeClass("tutor-icon-light-up").addClass("tutor-icon-light-down")}),l(document).on("click",".topic-inner-title, .expand-collapse-wrap",function(t){t.preventDefault();t=l(this);t.closest(".tutor-topics-wrap").find(".tutor-topics-body").slideToggle(),t.closest(".tutor-topics-wrap").find(".expand-collapse-wrap i").toggleClass("tutor-icon-light-down tutor-icon-light-up")}),l(document).on("click",".quiz-modal-btn-first-step",function(t){t.preventDefault();var e,o,n,a=l(this),i=l('\[name="quiz\_title"\]'),r=i.val(),t=l('\[name="quiz\_description"\]').val();r?(i.closest(".tutor-quiz-builder-group").find(".quiz\_form\_msg").html(""),e=l("#post\_ID").val(),o=a.closest(".tutor-modal-wrap").attr("quiz-for-post-id"),l("#tutor\_quiz\_builder\_quiz\_id").length?(n=l("#tutor\_quiz\_builder\_quiz\_id").val(),l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{quiz\_title:r,quiz\_description:t,quiz\_id:n,topic\_id:o,action:"tutor\_quiz\_builder\_quiz\_update"},beforeSend:function(){a.addClass("tutor-updating-message")},success:function(t){l("#tutor-quiz-"+n).html(t.data.output\_quiz\_row),l('#tutor-quiz-modal-tab-items-wrap a\[href="#quiz-builder-tab-questions"\]').trigger("click"),s()},complete:function(){a.removeClass("tutor-updating-message")}})):l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{quiz\_title:r,quiz\_description:t,course\_id:e,topic\_id:o,action:"tutor\_create\_quiz\_and\_load\_modal"},beforeSend:function(){a.addClass("tutor-updating-message")},success:function(t){l(".tutor-quiz-builder-modal-wrap .modal-container").html(t.data.output),l("#tutor-topics-"+o+" .tutor-lessons").append(t.data.output\_quiz\_row),l('#tutor-quiz-modal-tab-items-wrap a\[href="#quiz-builder-tab-questions"\]').trigger("click"),s(),l(document).trigger("quiz\_modal\_loaded",{topic\_id:o,course\_id:e})},complete:function(){a.removeClass("tutor-updating-message")}})):i.closest(".tutor-quiz-builder-group").find(".quiz\_form\_msg").html("Please enter quiz title")}),l(document).on("click",".open-tutor-quiz-modal",function(t){t.preventDefault();var e=l(this),o=e.attr("data-quiz-id"),n=e.attr("data-topic-id");null==n&&(n=e.closest(".tutor-modal-wrap").attr("quiz-for-post-id"));var a=l("#post\_ID").val();l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{quiz\_id:o,topic\_id:n,course\_id:a,action:"tutor\_load\_edit\_quiz\_modal"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){l(".tutor-quiz-builder-modal-wrap .modal-container").html(t.data.output),l(".tutor-quiz-builder-modal-wrap").attr("data-quiz-id",o).attr("quiz-for-post-id",n).addClass("show"),e.attr("data-back-to-tab")&&(t=e.attr("data-back-to-tab"),l('#tutor-quiz-modal-tab-items-wrap a\[href="'+t+'"\]').trigger("click")),l(document).trigger("quiz\_modal\_loaded",{quiz\_id:o,topic\_id:n,course\_id:a}),s(),jQuery().sortable&&l(".quiz-builder-questions-wrap").sortable({handle:".question-sorting",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){var n;n={},l(".quiz-builder-question-wrap").each(function(t,e){var o=l(this),o=parseInt(o.attr("data-question-id"),10);n\[t\]=o}),l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{sorted\_question\_ids:n,action:"tutor\_quiz\_question\_sorting"}})}})},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click",".quiz-modal-settings-save-btn",function(t){t.preventDefault();var e=l(this),o=l(".tutor-quiz-builder-modal-wrap").attr("data-quiz-id"),n=l("#current\_topic\_id\_for\_quiz").val(),t=l("#quiz-builder-tab-settings :input, #quiz-builder-tab-advanced-options :input").serializeObject();t.topic\_id=n,t.quiz\_id=o,t.action="tutor\_quiz\_modal\_update\_settings",l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&l("#tutor-course-content-wrap").html(t.data.course\_contents),t.success?tutor\_toast(a("Success","tutor"),e.data("toast\_success\_message"),"success"):tutor\_toast(a("Update Error","tutor"),a("Quiz Update Failed","tutor"),"error")},complete:function(){e.removeClass("tutor-updating-message"),"modal\_close"===e.attr("data-action")&&l(".tutor-modal-wrap").removeClass("show")}})}),l(document).on("click",".quiz-modal-question-save-btn",function(t){t.preventDefault();var e=l(this),o=l(".quiz\_question\_form :input").serializeObject();o.action="tutor\_quiz\_modal\_update\_question";t=e.closest(".tutor-modal-wrap").attr("quiz-for-post-id");o.topic\_id=t,l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:o,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success?e.closest(".tutor-quiz-builder-modal-contents").find(".open-tutor-quiz-modal").trigger("click"):void 0!==t.data&&l("#quiz\_validation\_msg\_wrap").html(t.data.validation\_msg)},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click",".modal-close-btn",function(t){t.preventDefault(),l(".tutor-modal-wrap").removeClass("show")}),l(document).on("keyup",function(t){27===t.keyCode&&l(".tutor-modal-wrap").removeClass("show")}),l(document).on("click",".tutor-add-quiz-btn",function(t){t.preventDefault();var e=l(this),o=l(this).closest(".tutor\_add\_quiz\_wrap").attr("data-add-quiz-under"),t=l(this).data("topic-id");l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{quiz\_for\_post\_id:o,current\_topic\_id:t,action:"tutor\_load\_quiz\_builder\_modal"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){l(".tutor-quiz-builder-modal-wrap .modal-container").html(t.data.output),l(".tutor-quiz-builder-modal-wrap").attr("quiz-for-post-id",o).addClass("show")},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click",".tutor-quiz-modal-tab-item",function(t){t.preventDefault();var e=l(this),o=l('\[name="quiz\_title"\]');o.val()?(o.closest(".tutor-quiz-builder-form-row").find(".quiz\_form\_msg").html(""),t=e.attr("href"),l(".quiz-builder-tab-container").hide(),l(t).show(),l("a.tutor-quiz-modal-tab-item").removeClass("active"),e.addClass("active")):o.closest(".tutor-quiz-builder-form-row").find(".quiz\_form\_msg").html('<p class="quiz-form-warning">Please save the quiz first</p>')}),l(document).on("click",".quiz-modal-btn-next, .quiz-modal-btn-back",function(t){t.preventDefault();t=l(this).attr("href");l('#tutor-quiz-modal-tab-items-wrap a\[href="'+t+'"\]').trigger("click")}),l(document).on("click",".quiz-modal-tab-navigation-btn.quiz-modal-btn-cancel",function(t){t.preventDefault(),l(".tutor-modal-wrap").removeClass("show")}),l(document).on("click",".tutor-quiz-open-question-form",function(t){t.preventDefault();var e=l(this),o=l("#tutor\_quiz\_builder\_quiz\_id").val(),n=l("#post\_ID").val(),t=e.attr("data-question-id"),n={quiz\_id:o,course\_id:n,action:"tutor\_quiz\_builder\_get\_question\_form"};t&&(n.question\_id=t),l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:n,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){l(".tutor-quiz-builder-modal-contents").html(t.data.output),r().reInit(),jQuery().sortable&&l("#tutor\_quiz\_question\_answers").sortable({handle:".tutor-quiz-answer-sort-icon",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){var n;n={},l(".tutor-quiz-answer-wrap").each(function(t,e){var o=l(this),o=parseInt(o.attr("data-answer-id"),10);n\[t\]=o}),l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{sorted\_answer\_ids:n,action:"tutor\_quiz\_answer\_sorting"}})}}),disableAddoption()},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click",".tutor-quiz-question-trash",function(t){t.preventDefault();var e=l(this),t=e.attr("data-question-id");l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{question\_id:t,action:"tutor\_quiz\_builder\_question\_delete"},beforeSend:function(){e.closest(".quiz-builder-question-wrap").remove()}})}),l(document).on("click",".add\_question\_answers\_option:not(.disabled)",function(t){t.preventDefault();var e=l(this),o=e.attr("data-question-id"),t=l(".quiz\_question\_form :input").serializeObject();t.question\_id=o,t.action="tutor\_quiz\_add\_question\_answers",l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){l("#tutor\_quiz\_question\_answer\_form").html(t.data.output),disableAddoption()},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click",".tutor-quiz-answer-edit a",function(t){t.preventDefault();var e=l(this),t=e.closest(".tutor-quiz-answer-wrap").attr("data-answer-id");l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{answer\_id:t,action:"tutor\_quiz\_edit\_question\_answer"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){l("#tutor\_quiz\_question\_answer\_form").html(t.data.output)},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click","#quiz-answer-save-btn",function(t){t.preventDefault();var e=l(this),t=l(".quiz\_question\_form :input").serializeObject();t.action="tutor\_save\_quiz\_answer\_options",l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){l("#quiz\_validation\_msg\_wrap").html(""),e.addClass("tutor-updating-message")},success:function(t){l("#tutor\_quiz\_question\_answers").trigger("refresh")},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click","#quiz-answer-edit-btn",function(t){t.preventDefault();var e=l(this),t=l(".quiz\_question\_form :input").serializeObject();t.action="tutor\_update\_quiz\_answer\_options",l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){l("#tutor\_quiz\_question\_answers").trigger("refresh")},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("change",".tutor-quiz-answers-mark-correct-wrap input",function(t){t.preventDefault();var e=l(this),o=e.val(),t=1;e.prop("checked")||(t=0),l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{answer\_id:o,inputValue:t,action:"tutor\_mark\_answer\_as\_correct"}})}),l(document).on("refresh","#tutor\_quiz\_question\_answers",function(t){t.preventDefault();var e=l(this),o=e.attr("data-question-id"),t=l(".tutor\_select\_value\_holder").val();l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{question\_id:o,question\_type:t,action:"tutor\_quiz\_builder\_get\_answers\_by\_question"},beforeSend:function(){e.addClass("tutor-updating-message"),l("#tutor\_quiz\_question\_answer\_form").html("")},success:function(t){t.success&&e.html(t.data.output)},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click",".tutor-quiz-answer-trash-wrap a.answer-trash-btn",function(t){t.preventDefault();var e=l(this),t=e.attr("data-answer-id");l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{answer\_id:t,action:"tutor\_quiz\_builder\_delete\_answer"},beforeSend:function(){e.closest(".tutor-quiz-answer-wrap").remove()}})}),l(document).on("click",".tutor-delete-quiz-btn",function(t){var e;t.preventDefault(),confirm(a("Are you sure?","tutor"))&&(t=(e=l(this)).attr("data-quiz-id"),l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{quiz\_id:t,action:"tutor\_delete\_quiz\_by\_id"},beforeSend:function(){e.closest(".course-content-item").remove()}}))}),r().init(),l(document).on("change","input.tutor\_select\_value\_holder",function(t){l(this);l(".add\_question\_answers\_option").trigger("click"),l("#tutor\_quiz\_question\_answers").trigger("refresh")}),l(document).on("click",".tutor-media-upload-btn",function(t){t.preventDefault();var e,o=l(this);e||(e=wp.media({title:a("Select or Upload Media Of Your Chosen Persuasion","tutor"),button:{text:a("Use this media","tutor")},multiple:!1})).on("select",function(){var t=e.state().get("selection").first().toJSON();o.html('<img src="'+t.url+'" alt="" />'),o.closest(".tutor-media-upload-wrap").find("input").val(t.id)}),e.open()}),l(document).on("click",".tutor-media-upload-trash",function(t){t.preventDefault();t=l(this);t.closest(".tutor-media-upload-wrap").find(".tutor-media-upload-btn").html('<i class="tutor-icon-image1"></i>'),t.closest(".tutor-media-upload-wrap").find("input").val("")});var u,c=(u=0,function(t,e){clearTimeout(u),u=setTimeout(t,e)});l(document).on("click",".tutor-add-instructor-btn",function(t){t.preventDefault();var e=l(this),t=l("#post\_ID").val();l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{course\_id:t,action:"tutor\_load\_instructors\_modal"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(l(".tutor-instructors-modal-wrap .modal-container").html(t.data.output),l(".tutor-instructors-modal-wrap").addClass("show"))},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("change keyup",".tutor-instructors-modal-wrap .tutor-modal-search-input",function(t){t.preventDefault();var o=l(this),n=l(".tutor-modal-wrap");c(function(){var t=o.val(),e=l("#post\_ID").val();l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{course\_id:e,search\_terms:t,action:"tutor\_load\_instructors\_modal"},beforeSend:function(){n.addClass("loading")},success:function(t){t.success&&(l(".tutor-instructors-modal-wrap .modal-container").html(t.data.output),l(".tutor-instructors-modal-wrap").addClass("show"))},complete:function(){n.removeClass("loading")}})},1e3)}),l(document).on("click",".add\_instructor\_to\_course\_btn",function(t){t.preventDefault();var e=l(this),o=l(".tutor-modal-wrap"),t=l("#post\_ID").val(),o=o.find("input").serializeObject();o.course\_id=t,o.action="tutor\_add\_instructors\_to\_course",l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:o,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(l(".tutor-course-available-instructors").html(t.data.output),l(".tutor-modal-wrap").removeClass("show"))},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click",".tutor-instructor-delete-btn",function(t){t.preventDefault();var e=l(this),o=l("#post\_ID").val(),t=e.closest(".added-instructor-item").attr("data-instructor-id");l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{course\_id:o,instructor\_id:t,action:"detach\_instructor\_from\_course"},success:function(t){t.success&&e.closest(".added-instructor-item").remove()}})}),l(document).on("click",".settings-tabs-navs li",function(t){t.preventDefault();var e=l(this),o=e.find("a").attr("data-target"),t=e.find("a").attr("href");e.addClass("active").siblings("li.active").removeClass("active"),l(".settings-tab-wrap").removeClass("active").hide(),l(o).addClass("active").show(),window.history.pushState({},"",t)}),l(document).on("lesson\_modal\_loaded quiz\_modal\_loaded assignment\_modal\_loaded",function(t,e){jQuery().select2&&l(".select2\_multiselect").select2({dropdownCssClass:"increasezindex"}),o()}),l(document).on("lesson\_modal\_loaded",function(t,e){l(".tutor-lesson-modal-wrap .modal-title h1").html(a("Lesson","tutor"))}),l(document).on("assignment\_modal\_loaded",function(t,e){l(".tutor-lesson-modal-wrap .modal-title h1").html(a("Assignment","tutor"))}),l(document).on("keyup change",".tutor-number-validation",function(t){var e=l(this),o=parseInt(e.val()),n=parseInt(e.attr("data-min")),a=parseInt(e.attr("data-max"));o<n?e.val(n):a<o&&e.val(a)}),l(document).on("click",".tutor-instructor-feedback",function(t){t.preventDefault();var e=l(this);l.ajax({url:window.ajaxurl||\_tutorobject.ajaxurl,type:"POST",data:{attempts\_id:e.data("attemptid"),feedback:l(".tutor-instructor-feedback-content").val(),action:"tutor\_instructor\_feedback"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(e.closest(".course-content-item").remove(),tutor\_toast(a("Success","tutor"),e.data("toast\_success\_message"),"success"))},complete:function(){e.removeClass("tutor-updating-message")}})});var d=l(".tutor-announcement-add-new"),p=l(".tutor-announcement-edit"),m=l(".tutor-announcement-delete"),\_=l(".tutor-announcement-details"),t=l(".tutor-announcement-close-btn"),f=l(".tutor-accouncement-create-modal"),h=l(".tutor-accouncement-update-modal"),v=l(".tutor-accouncement-details-modal");function g(t,e){var o=new URL(window.location.href),n=o.searchParams;return n.set(t,e),o.search=n.toString(),\_tutorobject.is\_admin?n.set("paged",1):n.set("current\_page",1),o.search=n.toString(),o.toString()}l(d).click(function(){f.addClass("show"),l("#tutor-annoucement-backend-create-modal").addClass("show")}),l(\_).click(function(){var t=l(this).attr("announcement-date"),e=l(this).attr("announcement-id"),o=l(this).attr("course-id"),n=l(this).attr("course-name"),a=l(this).attr("announcement-title"),i=l(this).attr("announcement-summary");l(".tutor-announcement-detail-content").html("<h3>".concat(a,"</h3><p>").concat(i,"</p>")),l(".tutor-announcement-detail-course-info p").html("".concat(n)),l(".tutor-announcement-detail-date-info p").html("".concat(t)),l("#tutor-announcement-edit-from-detail").attr("announcement-id",e),l("#tutor-announcement-edit-from-detail").attr("course-id",o),l("#tutor-announcement-edit-from-detail").attr("announcement-title",a),l("#tutor-announcement-edit-from-detail").attr("announcement-summary",i),l("#tutor-announcement-delete-from-detail").attr("announcement-id",e),v.addClass("show")}),l(p).click(function(){v&&v.removeClass("show");var t=l(this).attr("announcement-id"),e=l(this).attr("course-id"),o=l(this).attr("announcement-title"),n=l(this).attr("announcement-summary");l("#tutor-announcement-course-id").val(e),l("#announcement\_id").val(t),l("#tutor-announcement-title").val(o),l("#tutor-announcement-summary").val(n),h.addClass("show")}),l(t).click(function(){f.removeClass("show"),h.removeClass("show"),v.removeClass("show"),l("#tutor-annoucement-backend-create-modal").removeClass("show")}),l(".tutor-announcements-form").on("submit",function(t){t.preventDefault();var e=l(this).find('button\[type="submit"\]'),t=l(".tutor-announcements-form").serialize()+"&action=tutor\_announcement\_create&action\_type=create";l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){if(l(".tutor-alert").remove(),"success"==t.status&&location.reload(),"validation\_error"==t.status){l(".tutor-announcements-create-alert").append('<div class="tutor-alert alert-warning"></div>');for(var e=0,o=Object.entries(t.message);e<o.length;e++){var n=y(o\[e\],2),n=(n\[0\],n\[1\]);l(".tutor-announcements-create-alert .tutor-alert").append("<li>".concat(n,"</li>"))}}"fail"==t.status&&l(".tutor-announcements-create-alert").html("<li>".concat(t.message,"</li>"))},error:function(t){console.log(t)}})}),l(".tutor-announcements-update-form").on("submit",function(t){t.preventDefault();var e=l(this).find('button\[type="submit"\]'),t=l(".tutor-announcements-update-form").serialize()+"&action=tutor\_announcement\_create&action\_type=update";l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){if(l(".tutor-alert").remove(),"success"==t.status&&location.reload(),"validation\_error"==t.status){l(".tutor-announcements-update-alert").append('<div class="tutor-alert alert-warning"></div>');for(var e=0,o=Object.entries(t.message);e<o.length;e++){var n=y(o\[e\],2),n=(n\[0\],n\[1\]);l(".tutor-announcements-update-alert > .tutor-alert").append("<li>".concat(n,"</li>"))}}"fail"==t.status&&l(".tutor-announcements-create-alert").html("<li>".concat(t.message,"</li>"))},error:function(){}})}),l(m).click(function(){var t=l(this).attr("announcement-id"),e=l("#tutor-announcement-tr-"+t);confirm("Do you want to delete?")&&l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{action:"tutor\_announcement\_delete",announcement\_id:t},beforeSend:function(){},success:function(t){e.remove(),v.length&&v.removeClass("show"),"fail"==t.status&&console.log(t.message)},error:function(){}})}),l(".tutor-announcement-course-sorting").on("change",function(t){window.location=g("course-id",l(this).val())}),l(".tutor-announcement-order-sorting").on("change",function(t){window.location=g("order",l(this).val())}),l(".tutor-announcement-date-sorting").on("change",function(t){window.location=g("date",l(this).val())}),l(".tutor-announcement-search-sorting").on("click",function(t){window.location=g("search",l(".tutor-announcement-search-field").val())}),l(document).click(function(){l(".tutor-dropdown").removeClass("show")}),l(".tutor-dropdown").click(function(t){t.stopPropagation(),l(".tutor-dropdown").hasClass("show")&&l(".tutor-dropdown").removeClass("show"),l(this).addClass("show")});var w,m=".video\_source\_wrap\_external\_url input, .video\_source\_wrap\_vimeo input, .video\_source\_wrap\_youtube input, .video\_source\_wrap\_html5, .video\_source\_upload\_wrap\_html5";l("body").on("paste",m,function(t){t.stopImmediatePropagation();var r=l(this).closest(".lesson-modal-form-wrap").find(".tutor-option-field-video-duration"),e=r.find("label"),o=l(this).hasClass("video\_source\_wrap\_html5")||l(this).hasClass("video\_source\_upload\_wrap\_html5"),n=l(this).data("autofill\_url");l(this).data("autofill\_url",null);function a(t){t?0==e.find("img").length&&e.append(' <img src="'+window.\_tutorobject.loading\_icon\_url+'" style="display:inline-block"/>'):e.find("img").remove()}function i(t){for(var e=Math.floor(t/3600),o=Math.floor((t-3600\*e)/60),t=Math.round(t-3600\*e-60\*o),n=\[e=e<10?"0"+e:e,o=o<10?"0"+o:o,t=t<10?"0"+t:t\],a=r.find("input"),i=0;i<3;i++)a.eq(i).val(n\[i\])}var s,u,c,t=o?l(this).find("span").data("video\_url"):n||t.originalEvent.clipboardData.getData("text");o||l(this).parent().hasClass("video\_source\_wrap\_external\_url")?((s=document.createElement("video")).addEventListener("loadedmetadata",function(){i(s.duration),a(!1)}),a(!0),s.src=t):l(this).parent().hasClass("video\_source\_wrap\_vimeo")?(u=(c=t.match(/^.\*(vimeo\\.com\\/)((channels\\/\[A-z\]+\\/)|(groups\\/\[A-z\]+\\/videos\\/))?(\[0-9\]+)/))?c\[5\]:null)&&(a(!0),l.getJSON("http://vimeo.com/api/v2/video/"+u+"/json",function(t){Array.isArray(t)&&t\[0\]&&void 0!==t\[0\].duration&&i(t\[0\].duration),a(!1)})):l(this).parent().hasClass("video\_source\_wrap\_youtube")&&(u=!(!(c=t.match(/^.\*((youtu.be\\/)|(v\\/)|(\\/u\\/\\w\\/)|(embed\\/)|(watch\\?))\\??v?=?(\[^#&?\]\*).\*/))||11!=c\[7\].length)&&c\[7\],c=l(this).data("youtube\_api\_key"),u&&c&&(c="https://www.googleapis.com/youtube/v3/videos?id="+u+"&key="+c+"&part=contentDetails",a(!0),l.getJSON(c,function(t){"object"==b(t)&&t.items&&t.items\[0\]&&t.items\[0\].contentDetails&&t.items\[0\].contentDetails.duration&&i(function(t){t=(t=t.match(/PT(\\d+H)?(\\d+M)?(\\d+S)?/)).slice(1).map(function(t){if(null!=t)return t.replace(/\\D/,"")});return 3600\*(parseInt(t\[0\])||0)+60\*(parseInt(t\[1\])||0)+(parseInt(t\[2\])||0)}(t.items\[0\].contentDetails.duration)),a(!1)})))}).on("input",m,function(){w&&clearTimeout(w);var e=l(this);w=setTimeout(function(){var t=(t=e.val())?t.trim():"";console.log("Trigger",t),t&&e.data("autofill\_url",t).trigger("paste")},700)}),l(".tutor-form-submit-through-ajax").submit(function(t){t.preventDefault();var e=l(this),o=l(this).attr("action")||window.location.href,n=l(this).attr("method")||"GET",t=l(this).serializeObject();e.find("button").addClass("tutor-updating-message"),l.ajax({url:o,type:n,data:t,success:function(){tutor\_toast(a("Success","tutor"),e.data("toast\_success\_message"),"success")},complete:function(){e.find("button").removeClass("tutor-updating-message")}})}),l.ajaxSetup({data:tutor\_get\_nonce\_data()})}),jQuery.fn.serializeObject=function(){var t={},e=this.serializeArray();return jQuery.each(e,function(){t\[this.name\]?(t\[this.name\].push||(t\[this.name\]=\[t\[this.name\]\]),t\[this.name\].push(this.value||"")):t\[this.name\]=this.value||""}),t},window.tutor\_toast=function(t,e,o){var n=((window.\_tutorobject||{}).tutor\_url||"")+"assets/images/";jQuery(".tutor-toast-parent").length||jQuery("body").append('<div class="tutor-toast-parent"></div>');var a=jQuery(' <div> <div> <img src="'+{success:n+"icon-check.svg",error:n+"icon-cross.svg"}\[o\]+'"/> </div> <div> <div> <b>'+t+"</b> <span>"+e+'</span> </div> </div> <div> <i class="tutor-toast-close tutor-icon-line-cross"></i> </div> </div>');a.find(".tutor-toast-close").click(function(){a.remove()}),jQuery(".tutor-toast-parent").append(a),setTimeout(function(){a&&a.fadeOut("fast",function(){jQuery(this).remove()})},5e3)},window.disableAddoption=function(){function t(t){t.classList.contains("disabled")||t.classList.add("disabled")}function e(t){t.classList.contains("disabled")&&t.classList.remove("disabled")}var o=document.querySelector(".tutor\_select\_value\_holder").value,n=document.getElementById("tutor\_quiz\_question\_answers"),a=document.getElementById("tutor\_quiz\_question\_answer\_form"),i=document.querySelector(".add\_question\_answers\_option");("open\_ended"===o||"short\_answer"===o||("true\_false"===o||"fill\_in\_the\_blank"===o)&&(a.hasChildNodes()||n.hasChildNodes())?t:e)(i)}}},n={};function a(t){var e=n\[t\];if(void 0!==e)return e.exports;e=n\[t\]={exports:{}};return o\[t\](e,e.exports,a),e.exports}(()=>{"use strict";a(623);jQuery(document).ready(function(u){var e,o,n,a,t=wp.i18n,s=t.\_\_;t.\_x,t.\_n,t.\_nx;function i(t,e){var o,n;1<t.originalEvent.touches.length||(t.preventDefault(),o=t.originalEvent.changedTouches\[0\],(n=document.createEvent("MouseEvents")).initMouseEvent(e,!0,!0,window,1,o.screenX,o.screenY,o.clientX,o.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(n))}jQuery().select2&&u(".tutor\_select2").select2({escapeMarkup:function(t){return t}}),(e=jQuery).support.touch="ontouchend"in document,e.support.touch&&(\_=e.ui.mouse.prototype,n=\_.\_mouseInit,a=\_.\_mouseDestroy,\_.\_touchStart=function(t){!o&&this.\_mouseCapture(t.originalEvent.changedTouches\[0\])&&(o=!0,this.\_touchMoved=!1,i(t,"mouseover"),i(t,"mousemove"),i(t,"mousedown"))},\_.\_touchMove=function(t){o&&(this.\_touchMoved=!0,i(t,"mousemove"))},\_.\_touchEnd=function(t){o&&(i(t,"mouseup"),i(t,"mouseout"),this.\_touchMoved||i(t,"click"),o=!1)},\_.\_mouseInit=function(){var t=this;t.element.bind({touchstart:e.proxy(t,"\_touchStart"),touchmove:e.proxy(t,"\_touchMove"),touchend:e.proxy(t,"\_touchEnd")}),n.call(t)},\_.\_mouseDestroy=function(){var t=this;t.element.unbind({touchstart:e.proxy(t,"\_touchStart"),touchmove:e.proxy(t,"\_touchMove"),touchend:e.proxy(t,"\_touchEnd")}),a.call(t)});var r={ajaxurl:window.\_tutorobject.ajaxurl,nonce\_key:window.\_tutorobject.nonce\_key,video\_data:function(){var t=u("#tutor\_video\_tracking\_information").val();return t?JSON.parse(t):{}},track\_player:function(){var t,o,e,n=this;"undefined"!=typeof Plyr&&(t=new Plyr("#tutorPlayer"),o=n.video\_data(),t.on("ready",function(t){var e=t.detail.plyr,t=o.best\_watch\_time;0<t&&e.duration>Math.round(t)&&(e.media.currentTime=t),n.sync\_time(e)}),e=0,t.on("timeupdate",function(t){t=t.detail.plyr;30<=e/4&&(n.sync\_time(t),e=0),e++}),t.on("ended",function(t){var e=n.video\_data(),t=t.detail.plyr;n.sync\_time(t,{is\_ended:!0}),e.autoload\_next\_course\_content&&n.autoload\_content()}))},sync\_time:function(t,e){var o=this.video\_data().post\_id,t={action:"sync\_video\_playback",currentTime:t.currentTime,duration:t.duration,post\_id:o};t\[this.nonce\_key\]=\_tutorobject\[this.nonce\_key\];o=t;e&&(o=Object.assign(t,e)),u.post(this.ajaxurl,o)},autoload\_content:function(){var t={action:"autoload\_next\_course\_content",post\_id:this.video\_data().post\_id};t\[this.nonce\_key\]=\_tutorobject\[this.nonce\_key\],u.post(this.ajaxurl,t).done(function(t){t.success&&t.data.next\_url&&(location.href=t.data.next\_url)})},init:function(){this.track\_player()}};function c(t){t.add(t.prevAll()).filter("i").addClass("tutor-icon-star-full").removeClass("tutor-icon-star-line"),t.nextAll().filter("i").removeClass("tutor-icon-star-full").addClass("tutor-icon-star-line")}u("#tutorPlayer").length&&r.init(),u(document).on("change keyup paste",".tutor\_user\_name",function(){u(this).val(u(this).val().toString().toLowerCase().replace(/\\s+/g,"-").replace(/\[^\\w\\-\]+/g,"").replace(/\\-\\-+/g,"-").replace(/^-+/,"").replace(/-+$/,""))}),u(document).on("mouseover",".tutor-star-rating-container .tutor-star-rating-group i",function(){c(u(this))}),u(document).on("click",".tutor-star-rating-container .tutor-star-rating-group i",function(){var t=u(this).attr("data-rating-value");u(this).closest(".tutor-star-rating-group").find('input\[name="tutor\_rating\_gen\_input"\]').val(t),c(u(this))}),u(document).on("mouseout",".tutor-star-rating-container .tutor-star-rating-group",function(){var t=u(this).find('input\[name="tutor\_rating\_gen\_input"\]').val(),e=parseInt(t),t=u(this).find('\[data-rating-value="'+e+'"\]');e&&t&&0<t.length?c(t):u(this).find("i").removeClass("tutor-icon-star-full").addClass("tutor-icon-star-line")}),u(document).on("click",".tutor\_submit\_review\_btn",function(t){t.preventDefault();var e=u(this),o=e.closest("form").find('input\[name="tutor\_rating\_gen\_input"\]').val(),n=(n=e.closest("form").find('textarea\[name="review"\]').val()).trim(),t=u('input\[name="tutor\_course\_id"\]').val();o&&0!=o&&n?n&&u.ajax({url:\_tutorobject.ajaxurl,type:"POST",data:{course\_id:t,rating:o,review:n,action:"tutor\_place\_rating"},beforeSend:function(){e.addClass("updating-icon")},success:function(t){var e=t.data.review\_id,t=t.data.review;u(".tutor-review-"+e+" .review-content").html(t),new window.tutor\_popup(u,"icon-rating",40).popup({title:s("Thank You for Rating This Course!","tutor"),description:s("Your rating will now be visible in the course page","tutor")}),setTimeout(function(){location.reload()},3e3)}}):alert(s("Rating and review required","tutor"))}).on("click",".tutor\_cancel\_review\_btn",function(){u(this).closest("form").hide()}),u(document).on("click",".write-course-review-link-btn",function(t){t.preventDefault(),u(this).siblings(".tutor-write-review-form").slideToggle()}),u(document).on("click",".tutor-ask-question-btn",function(t){t.preventDefault(),u(".tutor-add-question-wrap").slideToggle()}),u(document).on("click",".tutor\_question\_cancel",function(t){t.preventDefault(),u(".tutor-add-question-wrap").toggle()}),u(document).on("submit","#tutor-ask-question-form",function(t){t.preventDefault();var e=u(this),t=u(this).serializeObject();t.action="tutor\_ask\_question",u.ajax({url:\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.find(".tutor\_ask\_question\_btn").addClass("updating-icon")},success:function(t){t.success&&(u(".tutor-add-question-wrap").hide(),window.location.reload())},complete:function(){e.find(".tutor\_ask\_question\_btn").removeClass("updating-icon")}})}),u(document).on("submit",".tutor-add-answer-form",function(t){t.preventDefault();var e=u(this),t=u(this).serializeObject();t.action="tutor\_add\_answer",u.ajax({url:\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.find(".tutor\_add\_answer\_btn").addClass("updating-icon")},success:function(t){t.success&&window.location.reload()},complete:function(){e.find(".tutor\_add\_answer\_btn").removeClass("updating-icon")}})}),u(document).on("focus",".tutor\_add\_answer\_textarea",function(t){t.preventDefault();t=u(this).closest(".tutor\_add\_answer\_wrap").attr("data-question-id");wp.editor.initialize("tutor\_answer\_"+t,{tinymce:{wpautop:!0,toolbar1:"bold italic underline bullist strikethrough numlist blockquote alignleft aligncenter alignright undo redo link unlink spellchecker fullscreen"}})}),u(document).on("click",".tutor\_cancel\_wp\_editor",function(t){t.preventDefault(),u(this).closest(".tutor\_wp\_editor\_wrap").toggle(),u(this).closest(".tutor\_add\_answer\_wrap").find(".tutor\_wp\_editor\_show\_btn\_wrap").toggle();t=u(this).closest(".tutor\_add\_answer\_wrap").attr("data-question-id");wp.editor.remove("tutor\_answer\_"+t)}),u(document).on("click",".tutor\_wp\_editor\_show\_btn",function(t){t.preventDefault(),u(this).closest(".tutor\_add\_answer\_wrap").find(".tutor\_wp\_editor\_wrap").toggle(),u(this).closest(".tutor\_wp\_editor\_show\_btn\_wrap").toggle()});var l,d,p,m=u("#tutor-quiz-time-update"),\_=null;m.length&&(\_=JSON.parse(m.attr("data-attempt-settings")),0<(f=JSON.parse(m.attr("data-attempt-meta"))).time\_limit.time\_limit\_seconds?(l=new Date(\_.attempt\_started\_at).getTime()+1e3\*f.time\_limit.time\_limit\_seconds,d=new Date(f.date\_time\_now).getTime(),p=setInterval(function(){var a,t=l-d,e=Math.floor(t/864e5),o=Math.floor(t%864e5/36e5),n=Math.floor(t%36e5/6e4),i=Math.floor(t%6e4/1e3),r="";e&&(r+=e+"d "),o&&(r+=o+"h "),n&&(r+=n+"m "),i&&(r+=i+"s "),t<0&&(clearInterval(p),r="EXPIRED","autosubmit"===\_tutorobject.quiz\_options.quiz\_when\_time\_expires?u("form#tutor-answering-quiz").submit():"autoabandon"===\_tutorobject.quiz\_options.quiz\_when\_time\_expires&&(t=u("#tutor\_quiz\_id").val(),u("#tutor\_quiz\_remaining\_time\_secs").val(),t={quiz\_id:t,action:"tutor\_quiz\_timeout"},a=u("#tutor-quiz-time-expire-wrapper").attr("data-attempt-remaining"),u(".tutor-quiz-answer-next-btn, .tutor-quiz-submit-btn, .tutor-quiz-answer-previous-btn").prop("disabled",!0),u(".time-remaining span").css("color","#F44337"),u.ajax({url:\_tutorobject.ajaxurl,type:"POST",data:t,success:function(t){var e=u("#tutor-quiz-time-expire-wrapper").data("attempt-allowed"),o=u("#tutor-quiz-time-expire-wrapper").data("attempt-remaining"),n="#tutor-quiz-time-expire-wrapper .tutor-alert";u(n).addClass("show"),0<a?u("".concat(n," .text")).html(s("Your time limit for this quiz has expired, please reattempt the quiz. Attempts remaining: "+o+"/"+e,"tutor")):(u(n).addClass("tutor-alert-danger"),u("#tutor-start-quiz").hide(),u("".concat(n," .text")).html("".concat(s("Unfortunately, you are out of time and quiz attempts. ","tutor"))))},complete:function(){}}))),d+=1e3,m.html(r)},1e3)):m.closest(".time-remaining").remove());var f=u("#tutor-quiz-body form#tutor-start-quiz");function h(){jQuery().sortable&&(u(".tutor-quiz-answers-wrap").sortable({handle:".answer-sorting-bar",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){}}).disableSelection(),u(".quiz-draggable-rand-answers, .quiz-answer-matching-droppable").sortable({connectWith:".quiz-answer-matching-droppable",placeholder:"drop-hover"}).disableSelection())}function v(o){var t,e,n=!0,a=o.find(".quiz-answer-required");return a.length&&((t=a.find("input")).length&&("radio"===(e=t.attr("type"))?0==a.find('input\[type="radio"\]:checked').length&&(o.find(".answer-help-block").html('<p style="color: #dc3545">'.concat(s("Please select an option to answer","tutor"),"</p>")),n=!1):"checkbox"===e?0==a.find('input\[type="checkbox"\]:checked').length&&(o.find(".answer-help-block").html('<p style="color: #dc3545">'.concat(s("Please select at least one option to answer.","tutor"),"</p>")),n=!1):"text"===e&&t.each(function(t,e){u(e).val().trim().length||(o.find(".answer-help-block").html('<p style="color: #dc3545">'.concat(s("The answer for this question is required","tutor"),"</p>")),n=!1)})),a.find("textarea").length&&a.find("textarea").val().trim().length<1&&(o.find(".answer-help-block").html('<p style="color: #dc3545">'.concat(s("The answer for this question is required","tutor"),"</p>")),n=!1),(a=a.find(".quiz-answer-matching-droppable")).length&&a.each(function(t,e){u(e).find(".quiz-draggable-answer-item").length||(o.find(".answer-help-block").html('<p style="color: #dc3545">'.concat(s("Please match all the items","tutor"),"</p>")),n=!1)})),n}function g(o){var n=!1,a=JSON.parse(atob(window.tutor\_quiz\_context.split("").reverse().join("")));Array.isArray(a)||(a=\[\]);var t=o.attr("data-quiz-feedback-mode");u(".wrong-right-text").remove(),u(".quiz-answer-input-bottom").removeClass("wrong-answer right-answer");var i=!0,e=o.find("input"),r=o.find('input\[type="radio"\]:checked, input\[type="checkbox"\]:checked');return"retry"===t?(r.each(function(){var t=u(this),e=t.attr("type");"radio"!==e&&"checkbox"!==e||-1<a.indexOf(t.val())||(t.prop("checked")&&t.closest(".quiz-answer-input-bottom").addClass("wrong-answer").append('<span class="wrong-right-text"><i class="tutor-icon-line-cross"></i> '.concat(s("Incorrect, Please try again","tutor"),"</span>")),i=!1)}),e.each(function(){var t,e=u(this);"checkbox"===e.attr("type")&&(t=-1<a.indexOf(e.val()),e=e.is(":checked"),t&&!e&&(o.find(".answer-help-block").html('<p style="color: #dc3545">'.concat(s("More answer for this question is required","tutor"),"</p>")),i=!1))})):"reveal"===t&&(r.each(function(){var t=u(this);-1<a.indexOf(t.val())||(i=!1)}),e.each(function(){var t,e=u(this),o=e.attr("type");"radio"!==o&&"checkbox"!==o||(t=-1<a.indexOf(e.val()),o=e.is(":checked"),t?e.closest(".quiz-answer-input-bottom").addClass("right-answer").append('<span class="wrong-right-text"><i class="tutor-icon-checkbox-pen-outline"></i>'.concat(s("Correct Answer","tutor"),"</span>")):e.prop("checked")&&e.closest(".quiz-answer-input-bottom").addClass("wrong-answer"),t&&!o&&(e.attr("disabled","disabled"),n=!(i=!1)))})),n=i?!0:n}f.length&&"1"===\_tutorobject.quiz\_options.quiz\_auto\_start&&f.submit(),u(document).on("click",".quiz-manual-review-action",function(t){t.preventDefault();var e=u(this),o=e.attr("data-attempt-id"),n=e.attr("data-attempt-answer-id"),t=e.attr("data-mark-as");u.ajax({url:\_tutorobject.ajaxurl,type:"GET",data:{action:"review\_quiz\_answer",attempt\_id:o,attempt\_answer\_id:n,mark\_as:t},beforeSend:function(){e.find("i").addClass("updating-icon")},success:function(t){location.reload()},complete:function(){e.find("i").removeClass("updating-icon")}})}),u(".tooltip-btn").on("hover",function(t){u(this).toggleClass("active")}),u(".tutor-course-title h4 .toggle-information-icon").on("click",function(t){u(this).closest(".tutor-topics-in-single-lesson").find(".tutor-topics-summery").slideToggle(),t.stopPropagation()}),u(".tutor-course-topic.tutor-active").find(".tutor-course-lessons").slideDown(),u(".tutor-course-title").on("click",function(){var t=u(this).siblings(".tutor-course-lessons");u(this).closest(".tutor-course-topic").toggleClass("tutor-active"),t.slideToggle()}),u(document).on("click",".tutor-topics-title h3 .toggle-information-icon",function(t){u(this).closest(".tutor-topics-in-single-lesson").find(".tutor-topics-summery").slideToggle(),t.stopPropagation()}),u(document).on("click",".tutor-course-wishlist-btn",function(t){t.preventDefault();var e=u(this),t=e.attr("data-course-id");u.ajax({url:\_tutorobject.ajaxurl,type:"POST",data:{course\_id:t,action:"tutor\_course\_add\_to\_wishlist"},beforeSend:function(){e.addClass("updating-icon")},success:function(t){t.success?"added"===t.data.status?e.addClass("has-wish-listed"):e.removeClass("has-wish-listed"):window.location=t.data.redirect\_to},complete:function(){e.removeClass("updating-icon")}})}),\_tutorobject.enable\_lesson\_classic\_editor||(u(document).on("click",".tutor-single-lesson-a",function(t){t.preventDefault();var e=u(this),t=e.attr("data-lesson-id"),o=u("#tutor-single-entry-content");u.ajax({url:\_tutorobject.ajaxurl,type:"POST",data:{lesson\_id:t,action:"tutor\_render\_lesson\_content"},beforeSend:function(){var t=e.find(".lesson\_title").text();u("head title").text(t),window.history.pushState("obj",t,e.attr("href")),o.addClass("loading-lesson"),u(".tutor-single-lesson-items").removeClass("active"),e.closest(".tutor-single-lesson-items").addClass("active")},success:function(t){o.html(t.data.html),r.init(),u(".tutor-lesson-sidebar").css("display",""),window.dispatchEvent(new window.Event("tutor\_ajax\_lesson\_loaded"))},complete:function(){o.removeClass("loading-lesson")}})}),u(document).on("click",".sidebar-single-quiz-a",function(t){t.preventDefault();var e=u(this),t=e.attr("data-quiz-id"),o=e.find(".lesson\_title").text(),n=u("#tutor-single-entry-content");u.ajax({url:\_tutorobject.ajaxurl,type:"POST",data:{quiz\_id:t,action:"tutor\_render\_quiz\_content"},beforeSend:function(){u("head title").text(o),window.history.pushState("obj",o,e.attr("href")),n.addClass("loading-lesson"),u(".tutor-single-lesson-items").removeClass("active"),e.closest(".tutor-single-lesson-items").addClass("active")},success:function(t){n.html(t.data.html),h(),u(".tutor-lesson-sidebar").css("display","")},complete:function(){n.removeClass("loading-lesson")}})})),u(document).on("click",".tutor-lesson-sidebar-hide-bar",function(t){t.preventDefault(),u(".tutor-lesson-sidebar").toggle(),u("#tutor-single-entry-content").toggleClass("sidebar-hidden")}),u(".tutor-tabs-btn-group a").on("click touchstart",function(t){t.preventDefault();var e=u(this),t=e.attr("href");u(".tutor-lesson-sidebar-tab-item").hide(),u(t).show(),u(".tutor-tabs-btn-group a").removeClass("active"),e.addClass("active")}),h(),u(document).on("click",".tutor-quiz-answer-next-btn, .tutor-quiz-answer-previous-btn",function(t){var e,o;t.preventDefault(),u(this).hasClass("tutor-quiz-answer-previous-btn")?u(this).closest(".quiz-attempt-single-question").hide().prev().show():v(t=(e=u(this)).closest(".quiz-attempt-single-question"))&&g(t)&&(parseInt(e.closest(".quiz-attempt-single-question").attr("id").match(/\\d+/)\[0\],10),!(e=e.closest(".quiz-attempt-single-question").attr("data-next-question-id"))||(o=u(e))&&o.length&&("reveal"===t.attr("data-quiz-feedback-mode")?setTimeout(function(){u(".quiz-attempt-single-question").hide(),o.show()},800):(u(".quiz-attempt-single-question").hide(),o.show()),u(".tutor-quiz-questions-pagination").length&&(u(".tutor-quiz-question-paginate-item").removeClass("active"),u('.tutor-quiz-questions-pagination a\[href="'+e+'"\]').addClass("active"))))}),u(document).on("submit","#tutor-answering-quiz",function(t){var e=u(".quiz-attempt-single-question"),o=!0;e.length&&e.each(function(t,e){o=v(u(e)),o=g(u(e))}),o||t.preventDefault()}),u(document).on("click",".tutor-quiz-question-paginate-item",function(t){t.preventDefault();var e=u(this),t=u(e.attr("href"));u(".quiz-attempt-single-question").hide(),t.show(),u(".tutor-quiz-question-paginate-item").removeClass("active"),e.addClass("active")}),u(document).on("keyup","textarea.question\_type\_short\_answer, textarea.question\_type\_open\_ended",function(t){var e=u(this),o=e.val(),n=e.hasClass("question\_type\_short\_answer")?\_tutorobject.quiz\_options.short\_answer\_characters\_limit:\_tutorobject.quiz\_options.open\_ended\_answer\_characters\_limit,a=n-o.length;a<1&&(e.val(o.substr(0,n)),a=0),e.closest(".tutor-quiz-answers-wrap").find(".characters\_remaining").html(a)}),u(".quiz-draggable-rand-answers").length&&u(".quiz-draggable-rand-answers").each(function(){var t=u(this),e=t.height();t.css({height:e})}),u(document).on("submit click",".cart-required-login, .cart-required-login a, .cart-required-login form",function(t){t.preventDefault();t=u(this).data("login\_page\_url");t?window.location.assign(t):u(".tutor-cart-box-login-form").fadeIn(100)}),u(".tutor-popup-form-close, .login-overlay-close").on("click",function(){u(".tutor-cart-box-login-form").fadeOut(100)}),u(document).on("keyup",function(t){27===t.keyCode&&(u(".tutor-frontend-modal").hide(),u(".tutor-cart-box-login-form").fadeOut(100))}),!u.fn.ShareLink||(f=u(".tutor-social-share-wrap")).length&&(k=JSON.parse(f.attr("data-social-share-config")),u(".tutor\_share").ShareLink({title:k.title,text:k.text,image:k.image,class\_prefix:"s\_",width:640,height:480})),jQuery.datepicker&&u(".tutor\_report\_datepicker").datepicker({dateFormat:"yy-mm-dd"}),u(".withdraw-method-select-input").on("change",function(t){var e=u(this);u(".withdraw-method-form").hide(),u("#withdraw-method-form-"+e.closest(".withdraw-method-select").attr("data-withdraw-method")).show()}),u(".withdraw-method-select-input").each(function(){var t=u(this);t.is(":checked")&&(u(".withdraw-method-form").hide(),u("#withdraw-method-form-"+t.closest(".withdraw-method-select").attr("data-withdraw-method")).show())}),u(document).on("submit","#tutor-withdraw-account-set-form",function(t){t.preventDefault();var e=u(this),o=e.find(".tutor\_set\_withdraw\_account\_btn"),t=e.serializeObject();u.ajax({url:\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.find(".tutor-success-msg").remove(),o.addClass("updating-icon")},success:function(t){t.success&&(t='<div class="tutor-success-msg" style="display: none;"><i class="tutor-icon-mark"></i> '+t.data.msg+" </div>",o.closest(".withdraw-account-save-btn-wrap").append(t),e.find(".tutor-success-msg").length&&e.find(".tutor-success-msg").slideDown(),setTimeout(function(){e.find(".tutor-success-msg").slideUp()},5e3))},complete:function(){o.removeClass("updating-icon")}})}),u(document).on("click",".open-withdraw-form-btn, .close-withdraw-form-btn",function(t){t.preventDefault(),"yes"!=u(this).data("reload")?(u(".tutor-earning-withdraw-form-wrap").toggle().find('\[name="tutor\_withdraw\_amount"\]').val(""),u(".tutor-withdrawal-pop-up-success").hide().next().show(),u("html, body").css("overflow",u(".tutor-earning-withdraw-form-wrap").is(":visible")?"hidden":"auto")):window.location.reload()}),u(document).on("submit","#tutor-earning-withdraw-form",function(t){t.preventDefault();var e=u(this),o=u("#tutor-earning-withdraw-btn"),n=u(".tutor-withdraw-form-response"),t=e.serializeObject();u.ajax({url:\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.find(".tutor-success-msg").remove(),o.addClass("updating-icon")},success:function(t){t.success?("undefined"!==t.data.available\_balance&&u(".withdraw-balance-col .available\_balance").html(t.data.available\_balance),u(".tutor-withdrawal-pop-up-success").show().next().hide()):(t='<div class="tutor-error-msg inline-image-text is-inline-block"> <img src="'+window.\_tutorobject.tutor\_url+'assets/images/icon-cross.svg"/> <div> <b>Error</b><br/> <span>'+t.data.msg+"</span> </div> </div>",n.html(t),setTimeout(function(){n.html("")},5e3))},complete:function(){o.removeClass("updating-icon")}})});var w=u(".tutor-frontend-modal");function b(){jQuery().sortable&&(u(".course-contents").sortable({handle:".course-move-handle",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){y()}}),u(".tutor-lessons:not(.drop-lessons)").sortable({connectWith:".tutor-lessons",items:"div.course-content-item",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){y()}}))}function y(){var i={};u(".tutor-topics-wrap").each(function(t,e){var o=u(this),n=parseInt(o.attr("id").match(/\\d+/)\[0\],10),a={};o.find(".course-content-item").each(function(t,e){var o=u(this),o=parseInt(o.attr("id").match(/\\d+/)\[0\],10);a\[t\]=o}),i\[t\]={topic\_id:n,lesson\_ids:a}}),u("#tutor\_topics\_lessons\_sorting").val(JSON.stringify(i))}function q(){u("ul.tutor-bp-enrolled-course-list").each(function(){var t,e=u(this),o=e.find(" > li");3<o.length&&(t=o.length-3,o.each(function(t,e){var o=u(this);3<=t&&o.hide()}),t='<a href="javascript:;" class="tutor\_bp\_plus\_courses"><strong>+'+t+" More </strong></a> Courses",e.closest(".tutor-bp-enrolled-courses-wrap").find(".thread-participant-enrolled-info").html(t)),e.show()})}w.each(function(){var e=u(this),t=u(this).data("popup-rel");u('\[href="'+t+'"\]').on("click",function(t){e.fadeIn(),t.preventDefault()})}),u(document).on("click",".tm-close, .tutor-frontend-modal-overlay, .tutor-modal-btn-cancel",function(){w.fadeOut()}),u(document).on("click",".tutor-dashboard-element-delete-btn",function(t){t.preventDefault();t=u(this).attr("data-id");u("#tutor-dashboard-delete-element-id").val(t)}),u(document).on("submit","#tutor-dashboard-delete-element-form",function(t){t.preventDefault();var e=u("#tutor-dashboard-delete-element-id").val(),o=u(".tutor-modal-element-delete-btn"),t=u(this).serializeObject();u.ajax({url:\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){o.addClass("updating-icon")},success:function(t){t.success&&u("#tutor-dashboard-"+t.data.element+"-"+e).remove()},complete:function(){o.removeClass("updating-icon"),u(".tutor-frontend-modal").hide()}})}),u("#tutor\_profile\_photo\_id").val()||u(".tutor-profile-photo-delete-btn").hide(),u(document).on("click",".tutor-profile-photo-delete-btn",function(){return u(".tutor-profile-photo-upload-wrap").find("img").attr("src",\_tutorobject.placeholder\_img\_src),u("#tutor\_profile\_photo\_id").val(""),u(".tutor-profile-photo-delete-btn").hide(),u.ajax({url:\_tutorobject.ajaxurl,type:"POST",data:{action:"tutor\_profile\_photo\_remove"}}),!1}),u(document).on("submit","#tutor\_assignment\_start\_form",function(t){t.preventDefault();t=u(this).serializeObject();t.action="tutor\_start\_assignment",u.ajax({url:\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){u("#tutor\_assignment\_start\_btn").addClass("updating-icon")},success:function(t){t.success&&location.reload()},complete:function(){u("#tutor\_assignment\_start\_btn").removeClass("updating-icon")}})}),u(document).on("submit","#tutor\_assignment\_submit\_form",function(t){u('textarea\[name="assignment\_answer"\]').val().trim().length<1&&(u("#form\_validation\_response").html('<div class="tutor-error-msg">'+s("Assignment answer can not be empty","tutor")+"</div>"),t.preventDefault())}),u(document).on("click",".video\_source\_upload\_wrap\_html5 .video\_upload\_btn",function(t){t.preventDefault();var e,o=u(this);e||(e=wp.media({title:s("Select / Upload Media Of Your Chosen Persuasion","tutor"),button:{text:s("Use media","tutor")},library:{type:"video"},multiple:!1})).on("select",function(){var t=e.state().get("selection").first().toJSON();o.closest(".video\_source\_upload\_wrap\_html5").find("span.video\_media\_id").data("video\_url",t.url).text(t.id).trigger("paste").closest("p").show(),o.closest(".video\_source\_upload\_wrap\_html5").find("input").val(t.id)}),e.open()}),b(),u(document).on("click",".update\_lesson\_modal\_btn",function(t){t.preventDefault();var e=u(this),o=tinyMCE.get("tutor\_lesson\_modal\_editor"),t=o?o.getContent():u("#"+inputid).val(),o=u(this).closest("form").serializeObject();o.lesson\_content=t,u.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:o,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success?(u("#tutor-course-content-wrap").html(t.data.course\_contents),b(),u(".tutor-lesson-modal-wrap").removeClass("show"),tutor\_toast(s("Done","tutor"),e.data("toast\_success\_message"),"success")):tutor\_toast(s("Failed","tutor"),s("Lesson Update Failed","tutor"),"error")},error:function(){tutor\_toast(s("Failed","tutor"),s("Lesson Update Failed","tutor"),"error")},complete:function(){e.removeClass("tutor-updating-message")}})}),u(document).on("click","a.tutor-delete-attachment",function(t){t.preventDefault(),u(this).closest(".tutor-added-attachment").remove()}),u(document).on("click",".tutorUploadAttachmentBtn",function(t){t.preventDefault();var n,a=u(this);n||(n=wp.media({title:s("Select / Upload Media Of Your Chosen Persuasion","tutor"),button:{text:s("Use media","tutor")},multiple:!0})).on("select",function(){var t=n.state().get("selection").toJSON();if(t.length)for(var e=0;e<t.length;e++){var o=t\[e\],o='<div class="tutor-added-attachment"><i class="tutor-icon-archive"></i><a href="javascript:;" class="tutor-delete-attachment tutor-icon-line-cross"></a> <span> <a href="'+o.url+'">'+o.filename+'</a> </span> <input type="hidden" name="tutor\_attachments\[\]" value="'+o.id+'"></div>';a.closest(".tutor-lesson-attachments-metabox").find(".tutor-added-attachments-wrap").append(o)}}),n.open()}),u("form").on("change",".tutor-assignment-file-upload",function(){u(this).siblings("label").find("span").html(u(this).val().replace(/.\*(\\/|\\\\)/,""))}),u(document).on("click",".tutor-topics-in-single-lesson .tutor-topics-title h3, .tutor-single-lesson-topic-toggle",function(t){var e=u(this).closest(".tutor-topics-in-single-lesson");e.toggleClass("tutor-topic-active"),e.find(".tutor-lessons-under-topic").slideToggle()}),u(".tutor-single-lesson-items.active").closest(".tutor-lessons-under-topic").show(),u(".tutor-single-lesson-items.active").closest(".tutor-topics-in-single-lesson").addClass("tutor-topic-active"),u(".tutor-course-lesson.active").closest(".tutor-lessons-under-topic").show(),u(document).on("click",".tutor-create-assignments-btn",function(t){t.preventDefault();var e=u(this),o=u(this).attr("data-topic-id"),n=u("#post\_ID").val();u.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{topic\_id:o,course\_id:n,action:"tutor\_load\_assignments\_builder\_modal"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){u(".tutor-lesson-modal-wrap .modal-container").html(t.data.output),u(".tutor-lesson-modal-wrap").attr("data-topic-id",o).addClass("show"),u(document).trigger("assignment\_modal\_loaded",{topic\_id:o,course\_id:n}),tinymce.init(tinyMCEPreInit.mceInit.course\_description),tinymce.execCommand("mceRemoveEditor",!1,"tutor\_assignments\_modal\_editor"),tinyMCE.execCommand("mceAddEditor",!1,"tutor\_assignments\_modal\_editor")},complete:function(){quicktags({id:"tutor\_assignments\_modal\_editor"}),e.removeClass("tutor-updating-message")}})}),u(document).on("click",".open-tutor-assignment-modal",function(t){t.preventDefault();var e=u(this),o=e.attr("data-assignment-id"),n=e.attr("data-topic-id"),a=u("#post\_ID").val();u.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{assignment\_id:o,topic\_id:n,course\_id:a,action:"tutor\_load\_assignments\_builder\_modal"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){u(".tutor-lesson-modal-wrap .modal-container").html(t.data.output),u(".tutor-lesson-modal-wrap").attr({"data-assignment-id":o,"data-topic-id":n}).addClass("show"),u(document).trigger("assignment\_modal\_loaded",{assignment\_id:o,topic\_id:n,course\_id:a}),tinymce.init(tinyMCEPreInit.mceInit.course\_description),tinymce.execCommand("mceRemoveEditor",!1,"tutor\_assignments\_modal\_editor"),tinyMCE.execCommand("mceAddEditor",!1,"tutor\_assignments\_modal\_editor")},complete:function(){quicktags({id:"tutor\_assignments\_modal\_editor"}),e.removeClass("tutor-updating-message")}})}),u(document).on("click",".update\_assignment\_modal\_btn",function(t){t.preventDefault();var e=u(this),o=tinyMCE.get("tutor\_assignments\_modal\_editor"),t=o?o.getContent():u("#"+inputid).val(),o=u(this).closest("form").serializeObject();o.assignment\_content=t,u.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:o,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success?(u("#tutor-course-content-wrap").html(t.data.course\_contents),b(),u(".tutor-lesson-modal-wrap").removeClass("show"),tutor\_toast(s("Done","tutor"),e.data("toast\_success\_message"),"success")):tutor\_toast(s("Failed","tutor"),s("Assignment Update Failed","tutor"),"error")},error:function(){tutor\_toast(s("Failed","tutor"),s("Assignment Update Failed","tutor"),"error")},complete:function(){e.removeClass("tutor-updating-message")}})}),u(document).on("click",".add-assignment-attachments",function(t){t.preventDefault();var o,n=u(this);o||(o=wp.media({title:s("Select / Upload Media Of Your Chosen Persuasion","tutor"),button:{text:s("Use media","tutor")},multiple:!1})).on("select",function(){var t=o.state().get("selection").first().toJSON(),e='<div class="tutor-individual-attachment-file"><p class="attachment-file-name">'+t.filename+'</p><input type="hidden" name="tutor\_assignment\_attachments\[\]" value="'+t.id+'"><a href="javascript:;" class="remove-assignment-attachment-a text-muted"> × Remove</a></div>';u("#assignment-attached-file").append(e),n.closest(".video\_source\_upload\_wrap\_html5").find("input").val(t.id)}),o.open()}),u(document).on("click",".remove-assignment-attachment-a",function(t){t.preventDefault(),u(this).closest(".tutor-individual-attachment-file").remove()}),"tutor\_add\_course\_builder"===u('input\[name="tutor\_action"\]').val()&&setInterval(function(){var t=u("form#tutor-frontend-course-builder").serializeObject();t.tutor\_ajax\_action="tutor\_course\_builder\_draft\_save",u.ajax({type:"POST",data:t,beforeSend:function(){u(".tutor-dashboard-builder-draft-btn span").text(s("Saving...","tutor"))},success:function(t){},complete:function(){u(".tutor-dashboard-builder-draft-btn span").text(s("Save","tutor"))}})},3e4),u(".tutor-course-builder-section-title").on("click",function(){u(this).find("i").hasClass("tutor-icon-up")?u(this).find("i").removeClass("tutor-icon-up").addClass("tutor-icon-down"):u(this).find("i").removeClass("tutor-icon-down").addClass("tutor-icon-up"),u(this).next("div").slideToggle()}),u(document).on("click",".open-tutor-edit-review-modal",function(t){t.preventDefault();var e=u(this),o=e.attr("data-review-id"),n=\_tutorobject.nonce\_key,t={review\_id:o,action:"tutor\_load\_edit\_review\_modal"};t\[n\]=\_tutorobject\[n\],u.ajax({url:\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){void 0!==t.data&&(u(".tutor-edit-review-modal-wrap .modal-container").html(t.data.output),u(".tutor-edit-review-modal-wrap").attr("data-review-id",o).addClass("show"))},complete:function(){e.removeClass("tutor-updating-message")}})}),u(document).on("submit","#tutor\_update\_review\_form",function(t){t.preventDefault();var e=u(this),o=e.closest(".tutor-edit-review-modal-wrap ").attr("data-review-id"),t=\_tutorobject.nonce\_key,o={review\_id:o,rating:e.find('input\[name="tutor\_rating\_gen\_input"\]').val(),review:e.find('textarea\[name="review"\]').val().trim(),action:"tutor\_update\_review\_modal"};o\[t\]=\_tutorobject\[t\],u.ajax({url:\_tutorobject.ajaxurl,type:"POST",data:o,beforeSend:function(){e.find('button\[type="submit"\]').addClass("tutor-updating-message")},success:function(t){t.success&&(u(".tutor-edit-review-modal-wrap").removeClass("show"),location.reload(!0))},complete:function(){e.find('button\[type="submit"\]').removeClass("tutor-updating-message")}})}),u(document).on("click","#tutor\_profile\_photo\_button",function(t){t.preventDefault(),u("#tutor\_profile\_photo\_file").trigger("click")}),u(document).on("change","#tutor\_profile\_photo\_file",function(t){t.preventDefault();this.files&&this.files\[0\]&&((t=new FileReader).onload=function(t){u(".tutor-profile-photo-upload-wrap").find("img").attr("src",t.target.result)},t.readAsDataURL(this.files\[0\]))}),u(document).on("click",".thread-content .subject",function(t){var e=u(this),o=parseInt(e.closest(".thread-content").attr("data-thread-id")),e=\_tutorobject.nonce\_key,o={thread\_id:o,action:"tutor\_bp\_retrieve\_user\_records\_for\_thread"};o\[e\]=\_tutorobject\[e\],u.ajax({type:"POST",url:window.\_tutorobject.ajaxurl,data:o,beforeSend:function(){u("#tutor-bp-thread-wrap").html("")},success:function(t){t.success&&(u("#tutor-bp-thread-wrap").html(t.data.thread\_head\_html),q())}})}),q(),u(document).on("click","a.tutor\_bp\_plus\_courses",function(t){t.preventDefault();t=u(this);t.closest(".tutor-bp-enrolled-courses-wrap").find(".tutor-bp-enrolled-course-list li").show(),t.closest(".thread-participant-enrolled-info").html("")}),u(".tutor-dropbtn").click(function(){u(this).parent().find(".tutor-dropdown-content").slideToggle(100)}),u(".tutor-copy-link").click(function(t){var e=u(this),o=document.createElement("input"),n=window.location.href;document.body.appendChild(o),o.value=n,o.select(),document.execCommand("copy"),document.body.removeChild(o),e.html('<i class="tutor-icon-mark"></i> Copied'),setTimeout(function(){e.html('<i class="tutor-icon-copy"></i> Copy Link')},2500)}),u(document).on("click",function(t){var e=u(".tutor-dropdown"),o=e.find(".tutor-dropdown-content");e.is(t.target)||0!==e.has(t.target).length||o.slideUp(100)}),u(document).on("submit",".tutor-login-form-wrap #loginform",function(t){t.preventDefault();var t=u(this),e=u(".tutor-login-form-wrap"),t=t.serializeObject();t.action="tutor\_user\_login",u.ajax({url:\_tutorobject.ajaxurl,type:"POST",data:t,success:function(t){t.success?(location.assign(t.data.redirect),location.reload()):(t=t.data||s("Invalid username or password!","tutor"),e.find(".tutor-alert").length?e.find(".tutor-alert").html(t):e.prepend('<div class="tutor-alert tutor-alert-warning">'+t+"</div>"))}})});var j,k=u('.tutor-frontend-builder-course-price \[name="tutor\_course\_price\_type"\]');0==k.length?u("#\_tutor\_is\_course\_public\_meta\_checkbox").show():k.change(function(){var t;u(this).prop("checked")&&(t="paid"==u(this).val()?"hide":"show",u("#\_tutor\_is\_course\_public\_meta\_checkbox")\[t\]())}).trigger("change"),(j=jQuery).fn.tutor\_tooltip=function(){return this.on("mouseenter click",".tooltip",function(t){t.stopPropagation(),j(this).removeClass("isVisible")}).on("mouseenter focus",":has(>.tooltip)",function(t){j(this).prop("disabled")||j(this).find(".tooltip").addClass("isVisible")}).on("mouseleave blur keydown",":has(>.tooltip)",function(t){("keydown"!==t.type||27===t.which)&&j(this).find(".tooltip").removeClass("isVisible")}),this},jQuery(".tutor-tooltip-inside").tutor\_tooltip();var x=u(".tutor-course-filter-container form"),z=u(".tutor-course-filter-loop-container"),C={};x.on("submit",function(t){t.preventDefault()}).find("input").change(function(t){var e=Object.assign(x.serializeObject(),C);e.action="tutor\_course\_filter\_ajax",z.html('<center><img src="'+window.\_tutorobject.loading\_icon\_url+'"/></center>'),u(this).closest("form").find(".tutor-clear-all-filter").show(),u.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:e,success:function(t){z.html(t).find(".tutor-pagination-wrap a").each(function(){u(this).attr("data-href",u(this).attr("href")).attr("href","#")})}})}),z.on("click",".tutor-pagination-wrap a",function(t){var e=u(this).data("href")||u(this).attr("href");!e||(e=(e=new URL(e)).searchParams.get("paged"))&&(t.preventDefault(),C.page=e,x.find("input:first").trigger("change"))}),z.on("change",'select\[name="tutor\_course\_filter"\]',function(){C.tutor\_course\_filter=u(this).val(),x.find("input:first").trigger("change")});k=u(".tutor-course-loop");0<k.length&&("yes"===window.sessionStorage.getItem("tutor\_refresh\_archive")&&window.location.reload(),window.sessionStorage.removeItem("tutor\_refresh\_archive"),k.on("click",".tutor-loop-cart-btn-wrap",function(){window.sessionStorage.setItem("tutor\_refresh\_archive","yes")}));k=u("#tutor\_profile\_cover\_photo\_editor");0<k.length&&new function(n){this.dialogue\_box=n.find("#tutor\_photo\_dialogue\_box"),this.open\_dialogue\_box=function(t){this.dialogue\_box.attr("name",t),this.dialogue\_box.trigger("click")},this.validate\_image=function(t){return!0},this.upload\_selected\_image=function(t,e){var o,n,a;e&&this.validate\_image(e)&&(o=tutor\_get\_nonce\_data(!0),(n=this).toggle\_loader(t,!0),(a=new FormData).append("action","tutor\_user\_photo\_upload"),a.append("photo\_type",t),a.append("photo\_file",e,e.name),a.append(o.key,o.value),u.ajax({url:window.\_tutorobject.ajaxurl,data:a,type:"POST",processData:!1,contentType:!1,error:n.error\_alert,complete:function(){n.toggle\_loader(t,!1)}}))},this.accept\_upload\_image=function(t,e){var o=e.currentTarget.files\[0\]||null;t.update\_preview(e.currentTarget.name,o),t.upload\_selected\_image(e.currentTarget.name,o),u(e.currentTarget).val("")},this.delete\_image=function(t){var e=this;e.toggle\_loader(t,!0),u.ajax({url:window.\_tutorobject.ajaxurl,data:{action:"tutor\_user\_photo\_remove",photo\_type:t},type:"POST",error:e.error\_alert,complete:function(){e.toggle\_loader(t,!1)}})},this.update\_preview=function(t,e){var o=n.find("cover\_photo"==t?"#tutor\_cover\_area":"#tutor\_profile\_area");if(!e)return o.css("background-image","url("+o.data("fallback")+")"),void this.delete\_image(t);t=new FileReader;t.onload=function(t){o.css("background-image","url("+t.target.result+")")},t.readAsDataURL(e)},this.toggle\_profile\_pic\_action=function(t){n\[void 0===t?"toggleClass":t?"addClass":"removeClass"\]("pop-up-opened")},this.error\_alert=function(){alert("Something Went Wrong.")},this.toggle\_loader=function(t,e){n.find("#tutor\_photo\_meta\_area .loader-area").css("display",e?"block":"none")},this.initialize=function(){var e=this;this.dialogue\_box.change(function(t){e.accept\_upload\_image(e,t)}),n.find("#tutor\_profile\_area .tutor\_overlay, #tutor\_pp\_option>div:last-child").click(function(){e.toggle\_profile\_pic\_action()}),n.find(".tutor\_cover\_uploader").click(function(){e.open\_dialogue\_box("cover\_photo")}),n.find(".tutor\_pp\_uploader").click(function(){e.open\_dialogue\_box("profile\_photo")}),n.find(".tutor\_cover\_deleter").click(function(){e.update\_preview("cover\_photo",null)}),n.find(".tutor\_pp\_deleter").click(function(){e.update\_preview("profile\_photo",null)})}}(k).initialize(),u(".tutor-instructor-filter").each(function(){var e,r=u(this),s={};function n(t,e,o){var n=r.find(".filter-result-container"),a=n.html(),i=r.data();i.current\_page=o||1,t?s\[t\]=e:s={},s.attributes=i,s.action="load\_filtered\_instructor",n.html('<div style="text-align:center"><img src="'+window.\_tutorobject.loading\_icon\_url+'"/></div>'),u.ajax({url:window.\_tutorobject.ajaxurl,data:s,type:"POST",success:function(t){n.html(t)},error:function(){n.html(a),tutor\_toast("Failed","Request Error","error")}})}r.on("change",'.course-category-filter \[type="checkbox"\]',function(){var e={};u(this).closest(".course-category-filter").find("input:checked").each(function(){e\[u(this).val()\]=u(this).parent().text()});var o=r.find(".selected-cate-list").empty(),t=Object.keys(e);t.forEach(function(t){o.append("<span>"+e\[t\]+' <span class="tutor-icon-line-cross" data-cat\_id="'+t+'"></span></span>')}),t.length&&o.append('<span data-cat\_id="0">Clear All</span>'),n(u(this).attr("name"),t)}).on("click",".selected-cate-list \[data-cat\_id\]",function(){var t=u(this).data("cat\_id"),e=r.find('.mobile-filter-popup \[type="checkbox"\]');(e=t?e.filter('\[value="'+t+'"\]'):e).prop("checked",!1).trigger("change")}).on("input",'.filter-pc \[name="keyword"\]',function(){var t=u(this).val();e&&window.clearTimeout(e),e=window.setTimeout(function(){n("keyword",t),e=null},500)}).on("click","\[data-page\_number\]",function(t){t.preventDefault(),n(null,null,u(this).data("page\_number"))}).on("click",".clear-instructor-filter",function(){var t=u(this).closest(".tutor-instructor-filter");t.find('input\[type="checkbox"\]').prop("checked",!1),t.find('\[name="keyword"\]').val(""),n()}).on("click",".mobile-filter-container i",function(){u(this).parent().next().addClass("is-opened")}).on("click",".mobile-filter-popup button",function(){u('.mobile-filter-popup \[type="checkbox"\]').trigger("change"),u(this).closest(".mobile-filter-popup").removeClass("is-opened")}).on("input",'.filter-mobile \[name="keyword"\]',function(){r.find('.filter-pc \[name="keyword"\]').val(u(this).val()).trigger("input")}).on("change",'.mobile-filter-popup \[type="checkbox"\]',function(t){var e,o;t.originalEvent||(e=u(this).attr("name"),o=u(this).val(),t=u(this).prop("checked"),r.find('.course-category-filter \[name="'+e+'"\]').filter('\[value="'+o+'"\]').prop("checked",t).trigger("change"))}).on("mousedown touchstart",".expand-instructor-filter",function(t){var e=u(window).height(),o=r.find(".mobile-filter-popup>div"),n=e-o.height(),a=((t.originalEvent.touches||\[\])\[0\]||t).clientY-n;r.on("mousemove touchmove",function(t){t=((t.originalEvent.touches||\[\])\[0\]||t).clientY,t=e-t+a;200<t&&t<=e&&o.css("height",t+"px")})}).on("mouseup touchend",function(){r.off("mousemove touchmove")}).on("click",".mobile-filter-popup>div",function(t){t.stopImmediatePropagation()}).on("click",".mobile-filter-popup",function(t){u(this).removeClass("is-opened")})}),u(".tutor-course-retake-button").click(function(t){t.preventDefault();var t=u(this),e=t.attr("href"),o=t.data("course\_id"),t={title:s("Override Previous Progress","tutor"),description:s("Before continue, please decide whether to keep progress or reset.","tutor"),buttons:{reset:{title:s("Reset Data","tutor"),class:"secondary",callback:function(){var t=n.find(".tutor-button-secondary");t.prop("disabled",!0).append('<img style="margin-left: 7px" src="'+window.\_tutorobject.loading\_icon\_url+'"/>'),u.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{action:"tutor\_reset\_course\_progress",course\_id:o},success:function(t){t.success?window.location.assign(t.data.redirect\_to):alert((t.data||{}).message||s("Something went wrong","tutor"))},complete:function(){t.prop("disabled",!1).find("img").remove()}})}},keep:{title:s("Keep Data","tutor"),class:"primary",callback:function(){window.location.assign(e)}}}},n=new window.tutor\_popup(u,"icon-gear",40).popup(t)}),document.body.addEventListener("click",function(t){var e,o=t.target,n=o.tagName,a=o.parentElement.tagName;0<m.length&&"EXPIRED"!=m.html()&&("A"!==n&&"A"!==a||(t.preventDefault(),t.stopImmediatePropagation(),t={title:s("Abandon Quiz?","tutor"),description:s("Do you want to abandon this quiz? The quiz will be submitted partially up to this question if you leave this page.","tutor"),buttons:{keep:{title:s("Yes, leave quiz","tutor"),id:"leave",class:"secondary",callback:function(){var t=u("form#tutor-answering-quiz").serialize()+"&action=tutor\_quiz\_abandon";u.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){document.querySelector("#tutor-popup-leave").innerHTML=s("Leaving...","tutor")},success:function(t){t.success?null==o.href?location.href=o.parentElement.href:location.href=o.href:alert(s("Something went wrong","tutor"))},error:function(){alert(s("Something went wrong","tutor")),e.remove()}})}},reset:{title:s("Stay here","tutor"),id:"reset",class:"primary",callback:function(){e.remove()}}}},e=new window.tutor\_popup(u,"",40).popup(t)))}),u("body").on("submit","form#tutor-start-quiz",function(){u(this).find("button").prop("disabled",!0)})})})()})();
1
(()=>{var o={623:()=>{function b(t){return(b="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})(t)}function y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var o=null==t?null:"undefined"!=typeof Symbol&&t\[Symbol.iterator\]||t\["@@iterator"\];if(null!=o){var n,a,i=\[\],r=!0,s=!1;try{for(o=o.call(t);!(r=(n=o.next()).done)&&(i.push(n.value),!e||i.length!==e);r=!0);}catch(t){s=!0,a=t}finally{try{r||null==o.return||o.return()}finally{if(s)throw a}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return n(t,e);var o=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(o="Object"===o&&t.constructor?t.constructor.name:o)||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?n(t,e):void 0}}(t,e)||function(){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 n(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,n=new Array(e);o<e;o++)n\[o\]=t\[o\];return n}window.tutor\_get\_nonce\_data=function(t){var e=window.\_tutorobject||{},o=e.nonce\_key||"",e=e\[o\]||"";return t?{key:o,value:e}:(t=e,(e=o)in(o={})?Object.defineProperty(o,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):o\[e\]=t,o)},window.tutor\_popup=function(r,o,n){var s,u=this;return this.popup\_wrapper=function(t){var e=""===o?"":'<img class="tutor-pop-icon" src="'+window.\_tutorobject.tutor\_url+"assets/images/"+o+'.svg"/>';return"<"+t+' class="tutor-component-popup-container"> <div class="tutor-component-popup-'+n+'"> <div class="tutor-component-content-container">'+e+'</div> <div class="tutor-component-button-container"></div> </div> </'+t+">"},this.popup=function(o){var t=o.title?"<h3>"+o.title+"</h3>":"",e=o.description?"<p>"+o.description+"</p>":"",n=Object.keys(o.buttons||{}).map(function(t){var e=o.buttons\[t\],t=e.id?"tutor-popup-"+e.id:"";return r('<button id="'+t+'" class="tutor-button tutor-button-'+e.class+'">'+e.title+"</button>").click(e.callback)}),a=(s=r(u.popup\_wrapper(o.wrapper\_tag||"div"))).find(".tutor-component-content-container");a.append(t),o.after\_title&&a.append(o.after\_title),a.append(e),o.after\_description&&a.append(o.after\_description),s.click(function(){r(this).remove()}).children().click(function(t){t.stopPropagation()});for(var i=0;i<n.length;i++)s.find(".tutor-component-button-container").append(n\[i\]);return r("body").append(s),s},{popup:this.popup}},window.tutorDotLoader=function(t){return' \\n <div class="tutor-dot-loader '.concat(t||"",'">\\n <span class="dot dot-1"></span>\\n <span class="dot dot-2"></span>\\n <span class="dot dot-3"></span>\\n <span class="dot dot-4"></span>\\n </div>')},window.tutor\_date\_picker=function(){var t;jQuery.datepicker&&(t=\_tutorobject.wp\_date\_format||"yy-mm-dd",$(".tutor\_date\_picker").datepicker({dateFormat:t}))},jQuery(document).ready(function(l){"use strict";var t=wp.i18n,a=t.\_\_;t.\_x,t.\_n,t.\_nx;function o(){var t;jQuery.datepicker&&(t=\_tutorobject.wp\_date\_format||"yy-mm-dd",l(".tutor\_date\_picker").datepicker({dateFormat:t})),l(document).on("keydown",".hasDatepicker, .tutor\_date\_picker",function(t){8!==t.keyCode&&t.preventDefault()})}function s(){l(".tutor-field-slider").each(function(){var t=l(this),o=t.closest(".tutor-field-type-slider").find('input\[type="hidden"\]'),n=t.closest(".tutor-field-type-slider").find(".tutor-field-type-slider-value"),e=parseFloat(t.closest(".tutor-field-type-slider").attr("data-min")),a=parseFloat(t.closest(".tutor-field-type-slider").attr("data-max"));t.slider({range:"max",min:e,max:a,value:o.val(),slide:function(t,e){n.text(e.value),o.val(e.value)}})})}function e(t){var e=t.element;return l('<span><i class="tutor-icon-'+l(e).data("icon")+'"></i> '+t.text+"</span>")}function i(){jQuery().sortable&&(l(".course-contents").sortable({handle:".course-move-handle",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){n()}}),l(".tutor-lessons:not(.drop-lessons)").sortable({connectWith:".tutor-lessons",items:"div.course-content-item",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){n()}}))}function n(){var i={};l(".tutor-topics-wrap").each(function(t,e){var o=l(this),n=parseInt(o.attr("id").match(/\\d+/)\[0\],10),a={};o.find(".course-content-item").each(function(t,e){var o=l(this),o=parseInt(o.attr("id").match(/\\d+/)\[0\],10);a\[t\]=o}),i\[t\]={topic\_id:n,lesson\_ids:a}}),l("#tutor\_topics\_lessons\_sorting").val(JSON.stringify(i))}function r(){return{init:function(){l(document).on("click",".tutor-select .tutor-select-option",function(t){t.preventDefault();var e=l(this);"true"!==e.attr("data-is-pro")?(t=e.html().trim(),e.closest(".tutor-select").find(".select-header .lead-option").html(t),e.closest(".tutor-select").find(".select-header input.tutor\_select\_value\_holder").val(e.attr("data-value")).trigger("change"),e.closest(".tutor-select-options").hide(),disableAddoption()):alert("Tutor Pro version required")}),l(document).on("click",".tutor-select .select-header",function(t){t.preventDefault(),l(this).closest(".tutor-select").find(".tutor-select-options").slideToggle()}),this.setValue(),this.hideOnOutSideClick()},setValue:function(){l(".tutor-select").each(function(){var t=l(this).find(".tutor-select-option");t.length&&t.each(function(){var t,e=l(this);"selected"===e.attr("data-selected")&&(t=e.html().trim(),e.closest(".tutor-select").find(".select-header .lead-option").html(t),e.closest(".tutor-select").find(".select-header input.tutor\_select\_value\_holder").val(e.attr("data-value")))})})},hideOnOutSideClick:function(){l(document).mouseup(function(t){var e=l(".tutor-select-options");l(t.target).closest(".select-header").length||e.is(t.target)||0!==e.has(t.target).length||e.hide()})},reInit:function(){this.setValue()}}}o(),s(),jQuery().select2&&l(".videosource\_select2").select2({width:"100%",templateSelection:e,templateResult:e,allowHtml:!0}),l(document).on("change",".tutor\_lesson\_video\_source",function(t){var e=l(this),o=l(this).val();o?l(".video-metabox-source-input-wrap").show():l(".video-metabox-source-input-wrap").hide(),e.closest(".tutor-option-field").find(".video-metabox-source-item").hide(),e.closest(".tutor-option-field").find(".video\_source\_wrap\_"+o).show()}),l(document).on("click",".tutor-course-thumbnail-upload-btn",function(t){t.preventDefault();var e,o=l(this);e||(e=wp.media({title:a("Select or Upload Media Of Your Chosen Persuasion","tutor"),button:{text:a("Use this media","tutor")},multiple:!1})).on("select",function(){var t=e.state().get("selection").first().toJSON();o.closest(".tutor-thumbnail-wrap").find(".thumbnail-img").attr("src",t.url),o.closest(".tutor-thumbnail-wrap").find("input").val(t.id),l(".tutor-course-thumbnail-delete-btn").show()}),e.open()}),l(document).on("click",".tutor-course-thumbnail-delete-btn",function(t){t.preventDefault();var e=l(this),t=e.closest(".tutor-thumbnail-wrap").find(".thumbnail-img").attr("data-placeholder-src");e.closest(".tutor-thumbnail-wrap").find(".thumbnail-img").attr("src",t),e.closest(".tutor-thumbnail-wrap").find("input").val(""),l(".tutor-course-thumbnail-delete-btn").hide()}),l(document).on("click",".create\_new\_topic\_btn",function(t){t.preventDefault(),l(".tutor-metabox-add-topics").slideToggle()}),l(document).on("click","#tutor-add-topic-btn",function(t){t.preventDefault();var e=l(this),t=e.closest(".tutor-metabox-add-topics").find("input, textarea").serializeObject();t.action="tutor\_add\_course\_topic",l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(l("#tutor-course-content-wrap").html(t.data.course\_contents),e.closest(".tutor-metabox-add-topics").find('input\[type!="hidden"\], textarea').each(function(){l(this).val("")}),e.closest(".tutor-metabox-add-topics").slideUp(),i())},complete:function(){e.removeClass("tutor-updating-message")}})}),l(".tutor-zoom-meeting-modal-wrap").on("submit",".tutor-meeting-modal-form",function(t){t.preventDefault();var e=l(this),o=e.serializeObject(),t=Intl.DateTimeFormat().resolvedOptions().timeZone;o.timezone=t;var n=e.find('button\[type="submit"\]');l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:o,beforeSend:function(){n.addClass("tutor-updating-message")},success:function(t){t.success?tutor\_toast(a("Success","tutor"),n.data("toast\_success\_message"),"success"):tutor\_toast(a("Update Error","tutor"),a("Meeting Update Failed","tutor"),"error"),t.course\_contents?(l(t.selector).html(t.course\_contents),"#tutor-course-content-wrap"==t.selector&&i(),l(".tutor-zoom-meeting-modal-wrap").removeClass("show")):location.reload()},complete:function(){n.removeClass("tutor-updating-message")}})}),l(document).on("change keyup",".course-edit-topic-title-input",function(t){t.preventDefault(),l(this).closest(".tutor-topics-top").find(".topic-inner-title").html(l(this).val())}),l(document).on("click",".topic-edit-icon",function(t){t.preventDefault(),l(this).closest(".tutor-topics-top").find(".tutor-topics-edit-form").slideToggle()}),l(document).on("click",".tutor-topics-edit-button",function(t){t.preventDefault();var e=l(this),o=e.closest(".tutor-topics-wrap"),t=parseInt(o.attr("id").match(/\\d+/)\[0\],10),n=e.closest(".tutor-topics-wrap").find('\[name="topic\_title"\]').val(),o=e.closest(".tutor-topics-wrap").find('\[name="topic\_summery"\]').val();l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{topic\_title:n,topic\_summery:o,topic\_id:t,action:"tutor\_update\_topic"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(e.closest(".tutor-topics-wrap").find("span.topic-inner-title").text(n),e.closest(".tutor-topics-wrap").find(".tutor-topics-edit-form").slideUp())},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click",".open-tutor-lesson-modal",function(t){t.preventDefault();var e=l(this),o=e.attr("data-lesson-id"),n=e.attr("data-topic-id"),a=l("#post\_ID").val();l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{lesson\_id:o,topic\_id:n,course\_id:a,action:"tutor\_load\_edit\_lesson\_modal"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){l(".tutor-lesson-modal-wrap .modal-container").html(t.data.output),l(".tutor-lesson-modal-wrap").attr({"data-lesson-id":o,"data-topic-id":n}).addClass("show");t=(t=tinyMCEPreInit.mceInit.tutor\_editor\_config)||tinyMCEPreInit.mceInit.course\_description;tinymce.init(t),tinymce.execCommand("mceRemoveEditor",!1,"tutor\_lesson\_modal\_editor"),tinyMCE.execCommand("mceAddEditor",!1,"tutor\_lesson\_modal\_editor"),l(document).trigger("lesson\_modal\_loaded",{lesson\_id:o,topic\_id:n,course\_id:a})},complete:function(){quicktags({id:"tutor\_lesson\_modal\_editor"}),e.removeClass("tutor-updating-message")}})}),l(document).on("click",".lesson\_thumbnail\_upload\_btn",function(t){t.preventDefault();var e,o=l(this);e||(e=wp.media({title:a("Select or Upload Media Of Your Chosen Persuasion","tutor"),button:{text:a("Use this media","tutor")},multiple:!1})).on("select",function(){var t=e.state().get("selection").first().toJSON();o.closest(".tutor-thumbnail-wrap").find(".thumbnail-img").html('<img src="'+t.url+'" alt="" /><a href="javascript:;" class="tutor-lesson-thumbnail-delete-btn"><i class="tutor-icon-line-cross"></i></a>'),o.closest(".tutor-thumbnail-wrap").find("input").val(t.id),l(".tutor-lesson-thumbnail-delete-btn").show()}),e.open()}),l(document).on("click",".tutor-lesson-thumbnail-delete-btn",function(t){t.preventDefault();t=l(this);t.closest(".tutor-thumbnail-wrap").find(".\_lesson\_thumbnail\_id").val(""),t.closest(".tutor-thumbnail-wrap").find(".thumbnail-img").html(""),t.hide()}),l(document).on("click",".tutor-delete-lesson-btn",function(t){var e;t.preventDefault(),confirm(a("Are you sure?","tutor"))&&(t=(e=l(this)).attr("data-lesson-id"),l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{lesson\_id:t,action:"tutor\_delete\_lesson\_by\_id"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&e.closest(".course-content-item").remove()},complete:function(){e.removeClass("tutor-updating-message")}}))}),l(document).on("click",".topic-delete-btn a",function(t){l(this).attr("data-topic-id");confirm(a("Are you sure to delete?","tutor"))||t.preventDefault()}),l(document).on("click",".tutor-expand-all-topic",function(t){t.preventDefault(),l(".tutor-topics-body").slideDown(),l(".expand-collapse-wrap i").removeClass("tutor-icon-light-down").addClass("tutor-icon-light-up")}),l(document).on("click",".tutor-collapse-all-topic",function(t){t.preventDefault(),l(".tutor-topics-body").slideUp(),l(".expand-collapse-wrap i").removeClass("tutor-icon-light-up").addClass("tutor-icon-light-down")}),l(document).on("click",".topic-inner-title, .expand-collapse-wrap",function(t){t.preventDefault();t=l(this);t.closest(".tutor-topics-wrap").find(".tutor-topics-body").slideToggle(),t.closest(".tutor-topics-wrap").find(".expand-collapse-wrap i").toggleClass("tutor-icon-light-down tutor-icon-light-up")}),l(document).on("click",".quiz-modal-btn-first-step",function(t){t.preventDefault();var e,o,n,a=l(this),i=l('\[name="quiz\_title"\]'),r=i.val(),t=l('\[name="quiz\_description"\]').val();r?(i.closest(".tutor-quiz-builder-group").find(".quiz\_form\_msg").html(""),e=l("#post\_ID").val(),o=a.closest(".tutor-modal-wrap").attr("quiz-for-post-id"),l("#tutor\_quiz\_builder\_quiz\_id").length?(n=l("#tutor\_quiz\_builder\_quiz\_id").val(),l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{quiz\_title:r,quiz\_description:t,quiz\_id:n,topic\_id:o,action:"tutor\_quiz\_builder\_quiz\_update"},beforeSend:function(){a.addClass("tutor-updating-message")},success:function(t){l("#tutor-quiz-"+n).html(t.data.output\_quiz\_row),l('#tutor-quiz-modal-tab-items-wrap a\[href="#quiz-builder-tab-questions"\]').trigger("click"),s()},complete:function(){a.removeClass("tutor-updating-message")}})):l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{quiz\_title:r,quiz\_description:t,course\_id:e,topic\_id:o,action:"tutor\_create\_quiz\_and\_load\_modal"},beforeSend:function(){a.addClass("tutor-updating-message")},success:function(t){l(".tutor-quiz-builder-modal-wrap .modal-container").html(t.data.output),l("#tutor-topics-"+o+" .tutor-lessons").append(t.data.output\_quiz\_row),l('#tutor-quiz-modal-tab-items-wrap a\[href="#quiz-builder-tab-questions"\]').trigger("click"),s(),l(document).trigger("quiz\_modal\_loaded",{topic\_id:o,course\_id:e})},complete:function(){a.removeClass("tutor-updating-message")}})):i.closest(".tutor-quiz-builder-group").find(".quiz\_form\_msg").html("Please enter quiz title")}),l(document).on("click",".open-tutor-quiz-modal",function(t){t.preventDefault();var e=l(this),o=e.attr("data-quiz-id"),n=e.attr("data-topic-id");null==n&&(n=e.closest(".tutor-modal-wrap").attr("quiz-for-post-id"));var a=l("#post\_ID").val();l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{quiz\_id:o,topic\_id:n,course\_id:a,action:"tutor\_load\_edit\_quiz\_modal"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){l(".tutor-quiz-builder-modal-wrap .modal-container").html(t.data.output),l(".tutor-quiz-builder-modal-wrap").attr("data-quiz-id",o).attr("quiz-for-post-id",n).addClass("show"),e.attr("data-back-to-tab")&&(t=e.attr("data-back-to-tab"),l('#tutor-quiz-modal-tab-items-wrap a\[href="'+t+'"\]').trigger("click")),l(document).trigger("quiz\_modal\_loaded",{quiz\_id:o,topic\_id:n,course\_id:a}),s(),jQuery().sortable&&l(".quiz-builder-questions-wrap").sortable({handle:".question-sorting",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){var n;n={},l(".quiz-builder-question-wrap").each(function(t,e){var o=l(this),o=parseInt(o.attr("data-question-id"),10);n\[t\]=o}),l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{sorted\_question\_ids:n,action:"tutor\_quiz\_question\_sorting"}})}})},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click",".quiz-modal-settings-save-btn",function(t){t.preventDefault();var e=l(this),o=l(".tutor-quiz-builder-modal-wrap").attr("data-quiz-id"),n=l("#current\_topic\_id\_for\_quiz").val(),t=l("#quiz-builder-tab-settings :input, #quiz-builder-tab-advanced-options :input").serializeObject();t.topic\_id=n,t.quiz\_id=o,t.action="tutor\_quiz\_modal\_update\_settings",l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&l("#tutor-course-content-wrap").html(t.data.course\_contents),t.success?tutor\_toast(a("Success","tutor"),e.data("toast\_success\_message"),"success"):tutor\_toast(a("Update Error","tutor"),a("Quiz Update Failed","tutor"),"error")},complete:function(){e.removeClass("tutor-updating-message"),"modal\_close"===e.attr("data-action")&&l(".tutor-modal-wrap").removeClass("show")}})}),l(document).on("click",".quiz-modal-question-save-btn",function(t){t.preventDefault();var e=l(this),o=l(".quiz\_question\_form :input").serializeObject();o.action="tutor\_quiz\_modal\_update\_question";t=e.closest(".tutor-modal-wrap").attr("quiz-for-post-id");o.topic\_id=t,l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:o,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success?e.closest(".tutor-quiz-builder-modal-contents").find(".open-tutor-quiz-modal").trigger("click"):void 0!==t.data&&l("#quiz\_validation\_msg\_wrap").html(t.data.validation\_msg)},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click",".modal-close-btn",function(t){t.preventDefault(),l(".tutor-modal-wrap").removeClass("show")}),l(document).on("keyup",function(t){27===t.keyCode&&l(".tutor-modal-wrap").removeClass("show")}),l(document).on("click",".tutor-add-quiz-btn",function(t){t.preventDefault();var e=l(this),o=l(this).closest(".tutor\_add\_quiz\_wrap").attr("data-add-quiz-under"),t=l(this).data("topic-id");l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{quiz\_for\_post\_id:o,current\_topic\_id:t,action:"tutor\_load\_quiz\_builder\_modal"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){l(".tutor-quiz-builder-modal-wrap .modal-container").html(t.data.output),l(".tutor-quiz-builder-modal-wrap").attr("quiz-for-post-id",o).addClass("show")},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click",".tutor-quiz-modal-tab-item",function(t){t.preventDefault();var e=l(this),o=l('\[name="quiz\_title"\]');o.val()?(o.closest(".tutor-quiz-builder-form-row").find(".quiz\_form\_msg").html(""),t=e.attr("href"),l(".quiz-builder-tab-container").hide(),l(t).show(),l("a.tutor-quiz-modal-tab-item").removeClass("active"),e.addClass("active")):o.closest(".tutor-quiz-builder-form-row").find(".quiz\_form\_msg").html('<p class="quiz-form-warning">Please save the quiz first</p>')}),l(document).on("click",".quiz-modal-btn-next, .quiz-modal-btn-back",function(t){t.preventDefault();t=l(this).attr("href");l('#tutor-quiz-modal-tab-items-wrap a\[href="'+t+'"\]').trigger("click")}),l(document).on("click",".quiz-modal-tab-navigation-btn.quiz-modal-btn-cancel",function(t){t.preventDefault(),l(".tutor-modal-wrap").removeClass("show")}),l(document).on("click",".tutor-quiz-open-question-form",function(t){t.preventDefault();var e=l(this),o=l("#tutor\_quiz\_builder\_quiz\_id").val(),n=l("#post\_ID").val(),t=e.attr("data-question-id"),n={quiz\_id:o,course\_id:n,action:"tutor\_quiz\_builder\_get\_question\_form"};t&&(n.question\_id=t),l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:n,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){l(".tutor-quiz-builder-modal-contents").html(t.data.output),r().reInit(),jQuery().sortable&&l("#tutor\_quiz\_question\_answers").sortable({handle:".tutor-quiz-answer-sort-icon",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){var n;n={},l(".tutor-quiz-answer-wrap").each(function(t,e){var o=l(this),o=parseInt(o.attr("data-answer-id"),10);n\[t\]=o}),l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{sorted\_answer\_ids:n,action:"tutor\_quiz\_answer\_sorting"}})}}),disableAddoption()},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click",".tutor-quiz-question-trash",function(t){t.preventDefault();var e=l(this),t=e.attr("data-question-id");l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{question\_id:t,action:"tutor\_quiz\_builder\_question\_delete"},beforeSend:function(){e.closest(".quiz-builder-question-wrap").remove()}})}),l(document).on("click",".add\_question\_answers\_option:not(.disabled)",function(t){t.preventDefault();var e=l(this),o=e.attr("data-question-id"),t=l(".quiz\_question\_form :input").serializeObject();t.question\_id=o,t.action="tutor\_quiz\_add\_question\_answers",l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){l("#tutor\_quiz\_question\_answer\_form").html(t.data.output),disableAddoption()},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click",".tutor-quiz-answer-edit a",function(t){t.preventDefault();var e=l(this),t=e.closest(".tutor-quiz-answer-wrap").attr("data-answer-id");l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{answer\_id:t,action:"tutor\_quiz\_edit\_question\_answer"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){l("#tutor\_quiz\_question\_answer\_form").html(t.data.output)},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click","#quiz-answer-save-btn",function(t){t.preventDefault();var e=l(this),t=l(".quiz\_question\_form :input").serializeObject();t.action="tutor\_save\_quiz\_answer\_options",l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){l("#quiz\_validation\_msg\_wrap").html(""),e.addClass("tutor-updating-message")},success:function(t){l("#tutor\_quiz\_question\_answers").trigger("refresh")},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click","#quiz-answer-edit-btn",function(t){t.preventDefault();var e=l(this),t=l(".quiz\_question\_form :input").serializeObject();t.action="tutor\_update\_quiz\_answer\_options",l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){l("#tutor\_quiz\_question\_answers").trigger("refresh")},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("change",".tutor-quiz-answers-mark-correct-wrap input",function(t){t.preventDefault();var e=l(this),o=e.val(),t=1;e.prop("checked")||(t=0),l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{answer\_id:o,inputValue:t,action:"tutor\_mark\_answer\_as\_correct"}})}),l(document).on("refresh","#tutor\_quiz\_question\_answers",function(t){t.preventDefault();var e=l(this),o=e.attr("data-question-id"),t=l(".tutor\_select\_value\_holder").val();l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{question\_id:o,question\_type:t,action:"tutor\_quiz\_builder\_get\_answers\_by\_question"},beforeSend:function(){e.addClass("tutor-updating-message"),l("#tutor\_quiz\_question\_answer\_form").html("")},success:function(t){t.success&&e.html(t.data.output)},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click",".tutor-quiz-answer-trash-wrap a.answer-trash-btn",function(t){t.preventDefault();var e=l(this),t=e.attr("data-answer-id");l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{answer\_id:t,action:"tutor\_quiz\_builder\_delete\_answer"},beforeSend:function(){e.closest(".tutor-quiz-answer-wrap").remove()}})}),l(document).on("click",".tutor-delete-quiz-btn",function(t){var e;t.preventDefault(),confirm(a("Are you sure?","tutor"))&&(t=(e=l(this)).attr("data-quiz-id"),l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{quiz\_id:t,action:"tutor\_delete\_quiz\_by\_id"},beforeSend:function(){e.closest(".course-content-item").remove()}}))}),r().init(),l(document).on("change","input.tutor\_select\_value\_holder",function(t){l(this);l(".add\_question\_answers\_option").trigger("click"),l("#tutor\_quiz\_question\_answers").trigger("refresh")}),l(document).on("click",".tutor-media-upload-btn",function(t){t.preventDefault();var e,o=l(this);e||(e=wp.media({title:a("Select or Upload Media Of Your Chosen Persuasion","tutor"),button:{text:a("Use this media","tutor")},multiple:!1})).on("select",function(){var t=e.state().get("selection").first().toJSON();o.html('<img src="'+t.url+'" alt="" />'),o.closest(".tutor-media-upload-wrap").find("input").val(t.id)}),e.open()}),l(document).on("click",".tutor-media-upload-trash",function(t){t.preventDefault();t=l(this);t.closest(".tutor-media-upload-wrap").find(".tutor-media-upload-btn").html('<i class="tutor-icon-image1"></i>'),t.closest(".tutor-media-upload-wrap").find("input").val("")});var u,c=(u=0,function(t,e){clearTimeout(u),u=setTimeout(t,e)});l(document).on("click",".tutor-add-instructor-btn",function(t){t.preventDefault();var e=l(this),t=l("#post\_ID").val();l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{course\_id:t,action:"tutor\_load\_instructors\_modal"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(l(".tutor-instructors-modal-wrap .modal-container").html(t.data.output),l(".tutor-instructors-modal-wrap").addClass("show"))},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("change keyup",".tutor-instructors-modal-wrap .tutor-modal-search-input",function(t){t.preventDefault();var o=l(this),n=l(".tutor-modal-wrap");c(function(){var t=o.val(),e=l("#post\_ID").val();l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{course\_id:e,search\_terms:t,action:"tutor\_load\_instructors\_modal"},beforeSend:function(){n.addClass("loading")},success:function(t){t.success&&(l(".tutor-instructors-modal-wrap .modal-container").html(t.data.output),l(".tutor-instructors-modal-wrap").addClass("show"))},complete:function(){n.removeClass("loading")}})},1e3)}),l(document).on("click",".add\_instructor\_to\_course\_btn",function(t){t.preventDefault();var e=l(this),o=l(".tutor-modal-wrap"),t=l("#post\_ID").val(),o=o.find("input").serializeObject();o.course\_id=t,o.action="tutor\_add\_instructors\_to\_course",l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:o,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(l(".tutor-course-available-instructors").html(t.data.output),l(".tutor-modal-wrap").removeClass("show"))},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click",".tutor-instructor-delete-btn",function(t){t.preventDefault();var e=l(this),o=l("#post\_ID").val(),t=e.closest(".added-instructor-item").attr("data-instructor-id");l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{course\_id:o,instructor\_id:t,action:"detach\_instructor\_from\_course"},success:function(t){t.success&&e.closest(".added-instructor-item").remove()}})}),l(document).on("click",".settings-tabs-navs li",function(t){t.preventDefault();var e=l(this),o=e.find("a").attr("data-target"),t=e.find("a").attr("href");e.addClass("active").siblings("li.active").removeClass("active"),l(".settings-tab-wrap").removeClass("active").hide(),l(o).addClass("active").show(),window.history.pushState({},"",t)}),l(document).on("lesson\_modal\_loaded quiz\_modal\_loaded assignment\_modal\_loaded",function(t,e){jQuery().select2&&l(".select2\_multiselect").select2({dropdownCssClass:"increasezindex"}),o()}),l(document).on("lesson\_modal\_loaded",function(t,e){l(".tutor-lesson-modal-wrap .modal-title h1").html(a("Lesson","tutor"))}),l(document).on("assignment\_modal\_loaded",function(t,e){l(".tutor-lesson-modal-wrap .modal-title h1").html(a("Assignment","tutor"))}),l(document).on("keyup change",".tutor-number-validation",function(t){var e=l(this),o=parseInt(e.val()),n=parseInt(e.attr("data-min")),a=parseInt(e.attr("data-max"));o<n?e.val(n):a<o&&e.val(a)}),l(document).on("click",".tutor-instructor-feedback",function(t){t.preventDefault();var e=l(this);l.ajax({url:window.ajaxurl||\_tutorobject.ajaxurl,type:"POST",data:{attempts\_id:e.data("attemptid"),feedback:l(".tutor-instructor-feedback-content").val(),action:"tutor\_instructor\_feedback"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(e.closest(".course-content-item").remove(),tutor\_toast(a("Success","tutor"),e.data("toast\_success\_message"),"success"))},complete:function(){e.removeClass("tutor-updating-message")}})});var d=l(".tutor-announcement-add-new"),p=l(".tutor-announcement-edit"),m=l(".tutor-announcement-delete"),\_=l(".tutor-announcement-details"),t=l(".tutor-announcement-close-btn"),f=l(".tutor-accouncement-create-modal"),h=l(".tutor-accouncement-update-modal"),v=l(".tutor-accouncement-details-modal");function g(t,e){var o=new URL(window.location.href),n=o.searchParams;return n.set(t,e),o.search=n.toString(),\_tutorobject.is\_admin?n.set("paged",1):n.set("current\_page",1),o.search=n.toString(),o.toString()}l(d).click(function(){f.addClass("show"),l("#tutor-annoucement-backend-create-modal").addClass("show")}),l(\_).click(function(){var t=l(this).attr("announcement-date"),e=l(this).attr("announcement-id"),o=l(this).attr("course-id"),n=l(this).attr("course-name"),a=l(this).attr("announcement-title"),i=l(this).attr("announcement-summary");l(".tutor-announcement-detail-content").html("<h3>".concat(a,"</h3><p>").concat(i,"</p>")),l(".tutor-announcement-detail-course-info p").html("".concat(n)),l(".tutor-announcement-detail-date-info p").html("".concat(t)),l("#tutor-announcement-edit-from-detail").attr("announcement-id",e),l("#tutor-announcement-edit-from-detail").attr("course-id",o),l("#tutor-announcement-edit-from-detail").attr("announcement-title",a),l("#tutor-announcement-edit-from-detail").attr("announcement-summary",i),l("#tutor-announcement-delete-from-detail").attr("announcement-id",e),v.addClass("show")}),l(p).click(function(){v&&v.removeClass("show");var t=l(this).attr("announcement-id"),e=l(this).attr("course-id"),o=l(this).attr("announcement-title"),n=l(this).attr("announcement-summary");l("#tutor-announcement-course-id").val(e),l("#announcement\_id").val(t),l("#tutor-announcement-title").val(o),l("#tutor-announcement-summary").val(n),h.addClass("show")}),l(t).click(function(){f.removeClass("show"),h.removeClass("show"),v.removeClass("show"),l("#tutor-annoucement-backend-create-modal").removeClass("show")}),l(".tutor-announcements-form").on("submit",function(t){t.preventDefault();var e=l(this).find('button\[type="submit"\]'),t=l(".tutor-announcements-form").serialize()+"&action=tutor\_announcement\_create&action\_type=create";l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){if(l(".tutor-alert").remove(),"success"==t.status&&location.reload(),"validation\_error"==t.status){l(".tutor-announcements-create-alert").append('<div class="tutor-alert alert-warning"></div>');for(var e=0,o=Object.entries(t.message);e<o.length;e++){var n=y(o\[e\],2),n=(n\[0\],n\[1\]);l(".tutor-announcements-create-alert .tutor-alert").append("<li>".concat(n,"</li>"))}}"fail"==t.status&&l(".tutor-announcements-create-alert").html("<li>".concat(t.message,"</li>"))},error:function(t){console.log(t)}})}),l(".tutor-announcements-update-form").on("submit",function(t){t.preventDefault();var e=l(this).find('button\[type="submit"\]'),t=l(".tutor-announcements-update-form").serialize()+"&action=tutor\_announcement\_create&action\_type=update";l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){if(l(".tutor-alert").remove(),"success"==t.status&&location.reload(),"validation\_error"==t.status){l(".tutor-announcements-update-alert").append('<div class="tutor-alert alert-warning"></div>');for(var e=0,o=Object.entries(t.message);e<o.length;e++){var n=y(o\[e\],2),n=(n\[0\],n\[1\]);l(".tutor-announcements-update-alert > .tutor-alert").append("<li>".concat(n,"</li>"))}}"fail"==t.status&&l(".tutor-announcements-create-alert").html("<li>".concat(t.message,"</li>"))},error:function(){}})}),l(m).click(function(){var t=l(this).attr("announcement-id"),e=l("#tutor-announcement-tr-"+t);confirm("Do you want to delete?")&&l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{action:"tutor\_announcement\_delete",announcement\_id:t},beforeSend:function(){},success:function(t){e.remove(),v.length&&v.removeClass("show"),"fail"==t.status&&console.log(t.message)},error:function(){}})}),l(".tutor-announcement-course-sorting").on("change",function(t){window.location=g("course-id",l(this).val())}),l(".tutor-announcement-order-sorting").on("change",function(t){window.location=g("order",l(this).val())}),l(".tutor-announcement-date-sorting").on("change",function(t){window.location=g("date",l(this).val())}),l(".tutor-announcement-search-sorting").on("click",function(t){window.location=g("search",l(".tutor-announcement-search-field").val())}),l(document).click(function(){l(".tutor-dropdown").removeClass("show")}),l(".tutor-dropdown").click(function(t){t.stopPropagation(),l(".tutor-dropdown").hasClass("show")&&l(".tutor-dropdown").removeClass("show"),l(this).addClass("show")});var w,m=".video\_source\_wrap\_external\_url input, .video\_source\_wrap\_vimeo input, .video\_source\_wrap\_youtube input, .video\_source\_wrap\_html5, .video\_source\_upload\_wrap\_html5";l("body").on("paste",m,function(t){t.stopImmediatePropagation();var r=l(this).closest(".lesson-modal-form-wrap").find(".tutor-option-field-video-duration"),e=r.find("label"),o=l(this).hasClass("video\_source\_wrap\_html5")||l(this).hasClass("video\_source\_upload\_wrap\_html5"),n=l(this).data("autofill\_url");l(this).data("autofill\_url",null);function a(t){t?0==e.find("img").length&&e.append(' <img src="'+window.\_tutorobject.loading\_icon\_url+'" style="display:inline-block"/>'):e.find("img").remove()}function i(t){for(var e=Math.floor(t/3600),o=Math.floor((t-3600\*e)/60),t=Math.round(t-3600\*e-60\*o),n=\[e=e<10?"0"+e:e,o=o<10?"0"+o:o,t=t<10?"0"+t:t\],a=r.find("input"),i=0;i<3;i++)a.eq(i).val(n\[i\])}var s,u,c,t=o?l(this).find("span").data("video\_url"):n||t.originalEvent.clipboardData.getData("text");o||l(this).parent().hasClass("video\_source\_wrap\_external\_url")?((s=document.createElement("video")).addEventListener("loadedmetadata",function(){i(s.duration),a(!1)}),a(!0),s.src=t):l(this).parent().hasClass("video\_source\_wrap\_vimeo")?(u=(c=t.match(/^.\*(vimeo\\.com\\/)((channels\\/\[A-z\]+\\/)|(groups\\/\[A-z\]+\\/videos\\/))?(\[0-9\]+)/))?c\[5\]:null)&&(a(!0),l.getJSON("http://vimeo.com/api/v2/video/"+u+"/json",function(t){Array.isArray(t)&&t\[0\]&&void 0!==t\[0\].duration&&i(t\[0\].duration),a(!1)})):l(this).parent().hasClass("video\_source\_wrap\_youtube")&&(u=!(!(c=t.match(/^.\*((youtu.be\\/)|(v\\/)|(\\/u\\/\\w\\/)|(embed\\/)|(watch\\?))\\??v?=?(\[^#&?\]\*).\*/))||11!=c\[7\].length)&&c\[7\],c=l(this).data("youtube\_api\_key"),u&&c&&(c="https://www.googleapis.com/youtube/v3/videos?id="+u+"&key="+c+"&part=contentDetails",a(!0),l.getJSON(c,function(t){"object"==b(t)&&t.items&&t.items\[0\]&&t.items\[0\].contentDetails&&t.items\[0\].contentDetails.duration&&i(function(t){t=(t=t.match(/PT(\\d+H)?(\\d+M)?(\\d+S)?/)).slice(1).map(function(t){if(null!=t)return t.replace(/\\D/,"")});return 3600\*(parseInt(t\[0\])||0)+60\*(parseInt(t\[1\])||0)+(parseInt(t\[2\])||0)}(t.items\[0\].contentDetails.duration)),a(!1)})))}).on("input",m,function(){w&&clearTimeout(w);var e=l(this);w=setTimeout(function(){var t=(t=e.val())?t.trim():"";console.log("Trigger",t),t&&e.data("autofill\_url",t).trigger("paste")},700)}),l(".tutor-form-submit-through-ajax").submit(function(t){t.preventDefault();var e=l(this),o=l(this).attr("action")||window.location.href,n=l(this).attr("method")||"GET",t=l(this).serializeObject();e.find("button").addClass("tutor-updating-message"),l.ajax({url:o,type:n,data:t,success:function(){tutor\_toast(a("Success","tutor"),e.data("toast\_success\_message"),"success")},complete:function(){e.find("button").removeClass("tutor-updating-message")}})}),l.ajaxSetup({data:tutor\_get\_nonce\_data()})}),jQuery.fn.serializeObject=function(){var t={},e=this.serializeArray();return jQuery.each(e,function(){t\[this.name\]?(t\[this.name\].push||(t\[this.name\]=\[t\[this.name\]\]),t\[this.name\].push(this.value||"")):t\[this.name\]=this.value||""}),t},window.tutor\_toast=function(t,e,o){var n=((window.\_tutorobject||{}).tutor\_url||"")+"assets/images/";jQuery(".tutor-toast-parent").length||jQuery("body").append('<div class="tutor-toast-parent"></div>');var a=jQuery(' <div> <div> <img src="'+{success:n+"icon-check.svg",error:n+"icon-cross.svg"}\[o\]+'"/> </div> <div> <div> <b>'+t+"</b> <span>"+e+'</span> </div> </div> <div> <i class="tutor-toast-close tutor-icon-line-cross"></i> </div> </div>');a.find(".tutor-toast-close").click(function(){a.remove()}),jQuery(".tutor-toast-parent").append(a),setTimeout(function(){a&&a.fadeOut("fast",function(){jQuery(this).remove()})},5e3)},window.disableAddoption=function(){function t(t){t.classList.contains("disabled")||t.classList.add("disabled")}function e(t){t.classList.contains("disabled")&&t.classList.remove("disabled")}var o=document.querySelector(".tutor\_select\_value\_holder").value,n=document.getElementById("tutor\_quiz\_question\_answers"),a=document.getElementById("tutor\_quiz\_question\_answer\_form"),i=document.querySelector(".add\_question\_answers\_option");("open\_ended"===o||"short\_answer"===o||("true\_false"===o||"fill\_in\_the\_blank"===o)&&(a.hasChildNodes()||n.hasChildNodes())?t:e)(i)}},896:()=>{window.jQuery(document).ready(function(o){var n=wp.i18n.\_\_;o(document).on("click",".tutor-copy-text",function(t){t.stopImmediatePropagation(),t.preventDefault();var e=o(this).data("text"),t=o("<input>");o("body").append(t),t.val(e).select(),document.execCommand("copy"),t.remove(),tutor\_toast(n("Copied!","tutor"),e,"success")})})}},n={};function a(t){var e=n\[t\];if(void 0!==e)return e.exports;e=n\[t\]={exports:{}};return o\[t\](e,e.exports,a),e.exports}(()=>{"use strict";a(896),a(623);jQuery(document).ready(function(u){var e,o,n,a,t=wp.i18n,s=t.\_\_;t.\_x,t.\_n,t.\_nx;function i(t,e){var o,n;1<t.originalEvent.touches.length||(t.preventDefault(),o=t.originalEvent.changedTouches\[0\],(n=document.createEvent("MouseEvents")).initMouseEvent(e,!0,!0,window,1,o.screenX,o.screenY,o.clientX,o.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(n))}jQuery().select2&&u(".tutor\_select2").select2({escapeMarkup:function(t){return t}}),(e=jQuery).support.touch="ontouchend"in document,e.support.touch&&(\_=e.ui.mouse.prototype,n=\_.\_mouseInit,a=\_.\_mouseDestroy,\_.\_touchStart=function(t){!o&&this.\_mouseCapture(t.originalEvent.changedTouches\[0\])&&(o=!0,this.\_touchMoved=!1,i(t,"mouseover"),i(t,"mousemove"),i(t,"mousedown"))},\_.\_touchMove=function(t){o&&(this.\_touchMoved=!0,i(t,"mousemove"))},\_.\_touchEnd=function(t){o&&(i(t,"mouseup"),i(t,"mouseout"),this.\_touchMoved||i(t,"click"),o=!1)},\_.\_mouseInit=function(){var t=this;t.element.bind({touchstart:e.proxy(t,"\_touchStart"),touchmove:e.proxy(t,"\_touchMove"),touchend:e.proxy(t,"\_touchEnd")}),n.call(t)},\_.\_mouseDestroy=function(){var t=this;t.element.unbind({touchstart:e.proxy(t,"\_touchStart"),touchmove:e.proxy(t,"\_touchMove"),touchend:e.proxy(t,"\_touchEnd")}),a.call(t)});var r={ajaxurl:window.\_tutorobject.ajaxurl,nonce\_key:window.\_tutorobject.nonce\_key,video\_data:function(){var t=u("#tutor\_video\_tracking\_information").val();return t?JSON.parse(t):{}},track\_player:function(){var t,o,e,n=this;"undefined"!=typeof Plyr&&(t=new Plyr("#tutorPlayer"),o=n.video\_data(),t.on("ready",function(t){var e=t.detail.plyr,t=o.best\_watch\_time;0<t&&e.duration>Math.round(t)&&(e.media.currentTime=t),n.sync\_time(e)}),e=0,t.on("timeupdate",function(t){t=t.detail.plyr;30<=e/4&&(n.sync\_time(t),e=0),e++}),t.on("ended",function(t){var e=n.video\_data(),t=t.detail.plyr;n.sync\_time(t,{is\_ended:!0}),e.autoload\_next\_course\_content&&n.autoload\_content()}))},sync\_time:function(t,e){var o=this.video\_data().post\_id,t={action:"sync\_video\_playback",currentTime:t.currentTime,duration:t.duration,post\_id:o};t\[this.nonce\_key\]=\_tutorobject\[this.nonce\_key\];o=t;e&&(o=Object.assign(t,e)),u.post(this.ajaxurl,o)},autoload\_content:function(){var t={action:"autoload\_next\_course\_content",post\_id:this.video\_data().post\_id};t\[this.nonce\_key\]=\_tutorobject\[this.nonce\_key\],u.post(this.ajaxurl,t).done(function(t){t.success&&t.data.next\_url&&(location.href=t.data.next\_url)})},init:function(){this.track\_player()}};function c(t){t.add(t.prevAll()).filter("i").addClass("tutor-icon-star-full").removeClass("tutor-icon-star-line"),t.nextAll().filter("i").removeClass("tutor-icon-star-full").addClass("tutor-icon-star-line")}u("#tutorPlayer").length&&r.init(),u(document).on("change keyup paste",".tutor\_user\_name",function(){u(this).val(u(this).val().toString().toLowerCase().replace(/\\s+/g,"-").replace(/\[^\\w\\-\]+/g,"").replace(/\\-\\-+/g,"-").replace(/^-+/,"").replace(/-+$/,""))}),u(document).on("mouseover",".tutor-star-rating-container .tutor-star-rating-group i",function(){c(u(this))}),u(document).on("click",".tutor-star-rating-container .tutor-star-rating-group i",function(){var t=u(this).attr("data-rating-value");u(this).closest(".tutor-star-rating-group").find('input\[name="tutor\_rating\_gen\_input"\]').val(t),c(u(this))}),u(document).on("mouseout",".tutor-star-rating-container .tutor-star-rating-group",function(){var t=u(this).find('input\[name="tutor\_rating\_gen\_input"\]').val(),e=parseInt(t),t=u(this).find('\[data-rating-value="'+e+'"\]');e&&t&&0<t.length?c(t):u(this).find("i").removeClass("tutor-icon-star-full").addClass("tutor-icon-star-line")}),u(document).on("click",".tutor\_submit\_review\_btn",function(t){t.preventDefault();var e=u(this),o=e.closest("form").find('input\[name="tutor\_rating\_gen\_input"\]').val(),n=(n=e.closest("form").find('textarea\[name="review"\]').val()).trim(),t=u('input\[name="tutor\_course\_id"\]').val();o&&0!=o&&n?n&&u.ajax({url:\_tutorobject.ajaxurl,type:"POST",data:{course\_id:t,rating:o,review:n,action:"tutor\_place\_rating"},beforeSend:function(){e.addClass("updating-icon")},success:function(t){var e=t.data.review\_id,t=t.data.review;u(".tutor-review-"+e+" .review-content").html(t),new window.tutor\_popup(u,"icon-rating",40).popup({title:s("Thank You for Rating This Course!","tutor"),description:s("Your rating will now be visible in the course page","tutor")}),setTimeout(function(){location.reload()},3e3)}}):alert(s("Rating and review required","tutor"))}).on("click",".tutor\_cancel\_review\_btn",function(){u(this).closest("form").hide()}),u(document).on("click",".write-course-review-link-btn",function(t){t.preventDefault(),u(this).siblings(".tutor-write-review-form").slideToggle()}),u(document).on("click",".tutor-ask-question-btn",function(t){t.preventDefault(),u(".tutor-add-question-wrap").slideToggle()}),u(document).on("click",".tutor\_question\_cancel",function(t){t.preventDefault(),u(".tutor-add-question-wrap").toggle()}),u(document).on("submit","#tutor-ask-question-form",function(t){t.preventDefault();var e=u(this),t=u(this).serializeObject();t.action="tutor\_ask\_question",u.ajax({url:\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.find(".tutor\_ask\_question\_btn").addClass("updating-icon")},success:function(t){t.success&&(u(".tutor-add-question-wrap").hide(),window.location.reload())},complete:function(){e.find(".tutor\_ask\_question\_btn").removeClass("updating-icon")}})}),u(document).on("submit",".tutor-add-answer-form",function(t){t.preventDefault();var e=u(this),t=u(this).serializeObject();t.action="tutor\_add\_answer",u.ajax({url:\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.find(".tutor\_add\_answer\_btn").addClass("updating-icon")},success:function(t){t.success&&window.location.reload()},complete:function(){e.find(".tutor\_add\_answer\_btn").removeClass("updating-icon")}})}),u(document).on("focus",".tutor\_add\_answer\_textarea",function(t){t.preventDefault();t=u(this).closest(".tutor\_add\_answer\_wrap").attr("data-question-id");wp.editor.initialize("tutor\_answer\_"+t,{tinymce:{wpautop:!0,toolbar1:"bold italic underline bullist strikethrough numlist blockquote alignleft aligncenter alignright undo redo link unlink spellchecker fullscreen"}})}),u(document).on("click",".tutor\_cancel\_wp\_editor",function(t){t.preventDefault(),u(this).closest(".tutor\_wp\_editor\_wrap").toggle(),u(this).closest(".tutor\_add\_answer\_wrap").find(".tutor\_wp\_editor\_show\_btn\_wrap").toggle();t=u(this).closest(".tutor\_add\_answer\_wrap").attr("data-question-id");wp.editor.remove("tutor\_answer\_"+t)}),u(document).on("click",".tutor\_wp\_editor\_show\_btn",function(t){t.preventDefault(),u(this).closest(".tutor\_add\_answer\_wrap").find(".tutor\_wp\_editor\_wrap").toggle(),u(this).closest(".tutor\_wp\_editor\_show\_btn\_wrap").toggle()});var l,d,p,m=u("#tutor-quiz-time-update"),\_=null;m.length&&(\_=JSON.parse(m.attr("data-attempt-settings")),0<(f=JSON.parse(m.attr("data-attempt-meta"))).time\_limit.time\_limit\_seconds?(l=new Date(\_.attempt\_started\_at).getTime()+1e3\*f.time\_limit.time\_limit\_seconds,d=new Date(f.date\_time\_now).getTime(),p=setInterval(function(){var a,t=l-d,e=Math.floor(t/864e5),o=Math.floor(t%864e5/36e5),n=Math.floor(t%36e5/6e4),i=Math.floor(t%6e4/1e3),r="";e&&(r+=e+"d "),o&&(r+=o+"h "),n&&(r+=n+"m "),i&&(r+=i+"s "),t<0&&(clearInterval(p),r="EXPIRED","autosubmit"===\_tutorobject.quiz\_options.quiz\_when\_time\_expires?u("form#tutor-answering-quiz").submit():"autoabandon"===\_tutorobject.quiz\_options.quiz\_when\_time\_expires&&(t=u("#tutor\_quiz\_id").val(),u("#tutor\_quiz\_remaining\_time\_secs").val(),t={quiz\_id:t,action:"tutor\_quiz\_timeout"},a=u("#tutor-quiz-time-expire-wrapper").attr("data-attempt-remaining"),u(".tutor-quiz-answer-next-btn, .tutor-quiz-submit-btn, .tutor-quiz-answer-previous-btn").prop("disabled",!0),u(".time-remaining span").css("color","#F44337"),u.ajax({url:\_tutorobject.ajaxurl,type:"POST",data:t,success:function(t){var e=u("#tutor-quiz-time-expire-wrapper").data("attempt-allowed"),o=u("#tutor-quiz-time-expire-wrapper").data("attempt-remaining"),n="#tutor-quiz-time-expire-wrapper .tutor-alert";u(n).addClass("show"),0<a?u("".concat(n," .text")).html(s("Your time limit for this quiz has expired, please reattempt the quiz. Attempts remaining: "+o+"/"+e,"tutor")):(u(n).addClass("tutor-alert-danger"),u("#tutor-start-quiz").hide(),u("".concat(n," .text")).html("".concat(s("Unfortunately, you are out of time and quiz attempts. ","tutor"))))},complete:function(){}}))),d+=1e3,m.html(r)},1e3)):m.closest(".time-remaining").remove());var f=u("#tutor-quiz-body form#tutor-start-quiz");function h(){jQuery().sortable&&(u(".tutor-quiz-answers-wrap").sortable({handle:".answer-sorting-bar",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){}}).disableSelection(),u(".quiz-draggable-rand-answers, .quiz-answer-matching-droppable").sortable({connectWith:".quiz-answer-matching-droppable",placeholder:"drop-hover"}).disableSelection())}function v(o){var t,e,n=!0,a=o.find(".quiz-answer-required");return a.length&&((t=a.find("input")).length&&("radio"===(e=t.attr("type"))?0==a.find('input\[type="radio"\]:checked').length&&(o.find(".answer-help-block").html('<p style="color: #dc3545">'.concat(s("Please select an option to answer","tutor"),"</p>")),n=!1):"checkbox"===e?0==a.find('input\[type="checkbox"\]:checked').length&&(o.find(".answer-help-block").html('<p style="color: #dc3545">'.concat(s("Please select at least one option to answer.","tutor"),"</p>")),n=!1):"text"===e&&t.each(function(t,e){u(e).val().trim().length||(o.find(".answer-help-block").html('<p style="color: #dc3545">'.concat(s("The answer for this question is required","tutor"),"</p>")),n=!1)})),a.find("textarea").length&&a.find("textarea").val().trim().length<1&&(o.find(".answer-help-block").html('<p style="color: #dc3545">'.concat(s("The answer for this question is required","tutor"),"</p>")),n=!1),(a=a.find(".quiz-answer-matching-droppable")).length&&a.each(function(t,e){u(e).find(".quiz-draggable-answer-item").length||(o.find(".answer-help-block").html('<p style="color: #dc3545">'.concat(s("Please match all the items","tutor"),"</p>")),n=!1)})),n}function g(o){var n=!1,a=JSON.parse(atob(window.tutor\_quiz\_context.split("").reverse().join("")));Array.isArray(a)||(a=\[\]);var t=o.attr("data-quiz-feedback-mode");u(".wrong-right-text").remove(),u(".quiz-answer-input-bottom").removeClass("wrong-answer right-answer");var i=!0,e=o.find("input"),r=o.find('input\[type="radio"\]:checked, input\[type="checkbox"\]:checked');return"retry"===t?(r.each(function(){var t=u(this),e=t.attr("type");"radio"!==e&&"checkbox"!==e||-1<a.indexOf(t.val())||(t.prop("checked")&&t.closest(".quiz-answer-input-bottom").addClass("wrong-answer").append('<span class="wrong-right-text"><i class="tutor-icon-line-cross"></i> '.concat(s("Incorrect, Please try again","tutor"),"</span>")),i=!1)}),e.each(function(){var t,e=u(this);"checkbox"===e.attr("type")&&(t=-1<a.indexOf(e.val()),e=e.is(":checked"),t&&!e&&(o.find(".answer-help-block").html('<p style="color: #dc3545">'.concat(s("More answer for this question is required","tutor"),"</p>")),i=!1))})):"reveal"===t&&(r.each(function(){var t=u(this);-1<a.indexOf(t.val())||(i=!1)}),e.each(function(){var t,e=u(this),o=e.attr("type");"radio"!==o&&"checkbox"!==o||(t=-1<a.indexOf(e.val()),o=e.is(":checked"),t?e.closest(".quiz-answer-input-bottom").addClass("right-answer").append('<span class="wrong-right-text"><i class="tutor-icon-checkbox-pen-outline"></i>'.concat(s("Correct Answer","tutor"),"</span>")):e.prop("checked")&&e.closest(".quiz-answer-input-bottom").addClass("wrong-answer"),t&&!o&&(e.attr("disabled","disabled"),n=!(i=!1)))})),n=i?!0:n}f.length&&"1"===\_tutorobject.quiz\_options.quiz\_auto\_start&&f.submit(),u(document).on("click",".quiz-manual-review-action",function(t){t.preventDefault();var e=u(this),o=e.attr("data-attempt-id"),n=e.attr("data-attempt-answer-id"),t=e.attr("data-mark-as");u.ajax({url:\_tutorobject.ajaxurl,type:"GET",data:{action:"review\_quiz\_answer",attempt\_id:o,attempt\_answer\_id:n,mark\_as:t},beforeSend:function(){e.find("i").addClass("updating-icon")},success:function(t){location.reload()},complete:function(){e.find("i").removeClass("updating-icon")}})}),u(".tooltip-btn").on("hover",function(t){u(this).toggleClass("active")}),u(".tutor-course-title h4 .toggle-information-icon").on("click",function(t){u(this).closest(".tutor-topics-in-single-lesson").find(".tutor-topics-summery").slideToggle(),t.stopPropagation()}),u(".tutor-course-topic.tutor-active").find(".tutor-course-lessons").slideDown(),u(".tutor-course-title").on("click",function(){var t=u(this).siblings(".tutor-course-lessons");u(this).closest(".tutor-course-topic").toggleClass("tutor-active"),t.slideToggle()}),u(document).on("click",".tutor-topics-title h3 .toggle-information-icon",function(t){u(this).closest(".tutor-topics-in-single-lesson").find(".tutor-topics-summery").slideToggle(),t.stopPropagation()}),u(document).on("click",".tutor-course-wishlist-btn",function(t){t.preventDefault();var e=u(this),t=e.attr("data-course-id");u.ajax({url:\_tutorobject.ajaxurl,type:"POST",data:{course\_id:t,action:"tutor\_course\_add\_to\_wishlist"},beforeSend:function(){e.addClass("updating-icon")},success:function(t){t.success?"added"===t.data.status?e.addClass("has-wish-listed"):e.removeClass("has-wish-listed"):window.location=t.data.redirect\_to},complete:function(){e.removeClass("updating-icon")}})}),\_tutorobject.enable\_lesson\_classic\_editor||(u(document).on("click",".tutor-single-lesson-a",function(t){t.preventDefault();var e=u(this),t=e.attr("data-lesson-id"),o=u("#tutor-single-entry-content");u.ajax({url:\_tutorobject.ajaxurl,type:"POST",data:{lesson\_id:t,action:"tutor\_render\_lesson\_content"},beforeSend:function(){var t=e.find(".lesson\_title").text();u("head title").text(t),window.history.pushState("obj",t,e.attr("href")),o.addClass("loading-lesson"),u(".tutor-single-lesson-items").removeClass("active"),e.closest(".tutor-single-lesson-items").addClass("active")},success:function(t){o.html(t.data.html),r.init(),u(".tutor-lesson-sidebar").css("display",""),window.dispatchEvent(new window.Event("tutor\_ajax\_lesson\_loaded"))},complete:function(){o.removeClass("loading-lesson")}})}),u(document).on("click",".sidebar-single-quiz-a",function(t){t.preventDefault();var e=u(this),t=e.attr("data-quiz-id"),o=e.find(".lesson\_title").text(),n=u("#tutor-single-entry-content");u.ajax({url:\_tutorobject.ajaxurl,type:"POST",data:{quiz\_id:t,action:"tutor\_render\_quiz\_content"},beforeSend:function(){u("head title").text(o),window.history.pushState("obj",o,e.attr("href")),n.addClass("loading-lesson"),u(".tutor-single-lesson-items").removeClass("active"),e.closest(".tutor-single-lesson-items").addClass("active")},success:function(t){n.html(t.data.html),h(),u(".tutor-lesson-sidebar").css("display","")},complete:function(){n.removeClass("loading-lesson")}})})),u(document).on("click",".tutor-lesson-sidebar-hide-bar",function(t){t.preventDefault(),u(".tutor-lesson-sidebar").toggle(),u("#tutor-single-entry-content").toggleClass("sidebar-hidden")}),u(".tutor-tabs-btn-group a").on("click touchstart",function(t){t.preventDefault();var e=u(this),t=e.attr("href");u(".tutor-lesson-sidebar-tab-item").hide(),u(t).show(),u(".tutor-tabs-btn-group a").removeClass("active"),e.addClass("active")}),h(),u(document).on("click",".tutor-quiz-answer-next-btn, .tutor-quiz-answer-previous-btn",function(t){var e,o;t.preventDefault(),u(this).hasClass("tutor-quiz-answer-previous-btn")?u(this).closest(".quiz-attempt-single-question").hide().prev().show():v(t=(e=u(this)).closest(".quiz-attempt-single-question"))&&g(t)&&(parseInt(e.closest(".quiz-attempt-single-question").attr("id").match(/\\d+/)\[0\],10),!(e=e.closest(".quiz-attempt-single-question").attr("data-next-question-id"))||(o=u(e))&&o.length&&("reveal"===t.attr("data-quiz-feedback-mode")?setTimeout(function(){u(".quiz-attempt-single-question").hide(),o.show()},800):(u(".quiz-attempt-single-question").hide(),o.show()),u(".tutor-quiz-questions-pagination").length&&(u(".tutor-quiz-question-paginate-item").removeClass("active"),u('.tutor-quiz-questions-pagination a\[href="'+e+'"\]').addClass("active"))))}),u(document).on("submit","#tutor-answering-quiz",function(t){var e=u(".quiz-attempt-single-question"),o=!0;e.length&&e.each(function(t,e){o=v(u(e)),o=g(u(e))}),o||t.preventDefault()}),u(document).on("click",".tutor-quiz-question-paginate-item",function(t){t.preventDefault();var e=u(this),t=u(e.attr("href"));u(".quiz-attempt-single-question").hide(),t.show(),u(".tutor-quiz-question-paginate-item").removeClass("active"),e.addClass("active")}),u(document).on("keyup","textarea.question\_type\_short\_answer, textarea.question\_type\_open\_ended",function(t){var e=u(this),o=e.val(),n=e.hasClass("question\_type\_short\_answer")?\_tutorobject.quiz\_options.short\_answer\_characters\_limit:\_tutorobject.quiz\_options.open\_ended\_answer\_characters\_limit,a=n-o.length;a<1&&(e.val(o.substr(0,n)),a=0),e.closest(".tutor-quiz-answers-wrap").find(".characters\_remaining").html(a)}),u(".quiz-draggable-rand-answers").length&&u(".quiz-draggable-rand-answers").each(function(){var t=u(this),e=t.height();t.css({height:e})}),u(document).on("submit click",".cart-required-login, .cart-required-login a, .cart-required-login form",function(t){t.preventDefault();t=u(this).data("login\_page\_url");t?window.location.assign(t):u(".tutor-cart-box-login-form").fadeIn(100)}),u(".tutor-popup-form-close, .login-overlay-close").on("click",function(){u(".tutor-cart-box-login-form").fadeOut(100)}),u(document).on("keyup",function(t){27===t.keyCode&&(u(".tutor-frontend-modal").hide(),u(".tutor-cart-box-login-form").fadeOut(100))}),!u.fn.ShareLink||(f=u(".tutor-social-share-wrap")).length&&(x=JSON.parse(f.attr("data-social-share-config")),u(".tutor\_share").ShareLink({title:x.title,text:x.text,image:x.image,class\_prefix:"s\_",width:640,height:480})),jQuery.datepicker&&u(".tutor\_report\_datepicker").datepicker({dateFormat:"yy-mm-dd"}),u(".withdraw-method-select-input").on("change",function(t){var e=u(this);u(".withdraw-method-form").hide(),u("#withdraw-method-form-"+e.closest(".withdraw-method-select").attr("data-withdraw-method")).show()}),u(".withdraw-method-select-input").each(function(){var t=u(this);t.is(":checked")&&(u(".withdraw-method-form").hide(),u("#withdraw-method-form-"+t.closest(".withdraw-method-select").attr("data-withdraw-method")).show())}),u(document).on("submit","#tutor-withdraw-account-set-form",function(t){t.preventDefault();var e=u(this),o=e.find(".tutor\_set\_withdraw\_account\_btn"),t=e.serializeObject();u.ajax({url:\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.find(".tutor-success-msg").remove(),o.addClass("updating-icon")},success:function(t){t.success&&(t='<div class="tutor-success-msg" style="display: none;"><i class="tutor-icon-mark"></i> '+t.data.msg+" </div>",o.closest(".withdraw-account-save-btn-wrap").append(t),e.find(".tutor-success-msg").length&&e.find(".tutor-success-msg").slideDown(),setTimeout(function(){e.find(".tutor-success-msg").slideUp()},5e3))},complete:function(){o.removeClass("updating-icon")}})}),u(document).on("click",".open-withdraw-form-btn, .close-withdraw-form-btn",function(t){t.preventDefault(),"yes"!=u(this).data("reload")?(u(".tutor-earning-withdraw-form-wrap").toggle().find('\[name="tutor\_withdraw\_amount"\]').val(""),u(".tutor-withdrawal-pop-up-success").hide().next().show(),u("html, body").css("overflow",u(".tutor-earning-withdraw-form-wrap").is(":visible")?"hidden":"auto")):window.location.reload()}),u(document).on("submit","#tutor-earning-withdraw-form",function(t){t.preventDefault();var e=u(this),o=u("#tutor-earning-withdraw-btn"),n=u(".tutor-withdraw-form-response"),t=e.serializeObject();u.ajax({url:\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.find(".tutor-success-msg").remove(),o.addClass("updating-icon")},success:function(t){t.success?("undefined"!==t.data.available\_balance&&u(".withdraw-balance-col .available\_balance").html(t.data.available\_balance),u(".tutor-withdrawal-pop-up-success").show().next().hide()):(t='<div class="tutor-error-msg inline-image-text is-inline-block"> <img src="'+window.\_tutorobject.tutor\_url+'assets/images/icon-cross.svg"/> <div> <b>Error</b><br/> <span>'+t.data.msg+"</span> </div> </div>",n.html(t),setTimeout(function(){n.html("")},5e3))},complete:function(){o.removeClass("updating-icon")}})});var w=u(".tutor-frontend-modal");function b(){jQuery().sortable&&(u(".course-contents").sortable({handle:".course-move-handle",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){y()}}),u(".tutor-lessons:not(.drop-lessons)").sortable({connectWith:".tutor-lessons",items:"div.course-content-item",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){y()}}))}function y(){var i={};u(".tutor-topics-wrap").each(function(t,e){var o=u(this),n=parseInt(o.attr("id").match(/\\d+/)\[0\],10),a={};o.find(".course-content-item").each(function(t,e){var o=u(this),o=parseInt(o.attr("id").match(/\\d+/)\[0\],10);a\[t\]=o}),i\[t\]={topic\_id:n,lesson\_ids:a}}),u("#tutor\_topics\_lessons\_sorting").val(JSON.stringify(i))}function q(){u("ul.tutor-bp-enrolled-course-list").each(function(){var t,e=u(this),o=e.find(" > li");3<o.length&&(t=o.length-3,o.each(function(t,e){var o=u(this);3<=t&&o.hide()}),t='<a href="javascript:;" class="tutor\_bp\_plus\_courses"><strong>+'+t+" More </strong></a> Courses",e.closest(".tutor-bp-enrolled-courses-wrap").find(".thread-participant-enrolled-info").html(t)),e.show()})}w.each(function(){var e=u(this),t=u(this).data("popup-rel");u('\[href="'+t+'"\]').on("click",function(t){e.fadeIn(),t.preventDefault()})}),u(document).on("click",".tm-close, .tutor-frontend-modal-overlay, .tutor-modal-btn-cancel",function(){w.fadeOut()}),u(document).on("click",".tutor-dashboard-element-delete-btn",function(t){t.preventDefault();t=u(this).attr("data-id");u("#tutor-dashboard-delete-element-id").val(t)}),u(document).on("submit","#tutor-dashboard-delete-element-form",function(t){t.preventDefault();var e=u("#tutor-dashboard-delete-element-id").val(),o=u(".tutor-modal-element-delete-btn"),t=u(this).serializeObject();u.ajax({url:\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){o.addClass("updating-icon")},success:function(t){t.success&&u("#tutor-dashboard-"+t.data.element+"-"+e).remove()},complete:function(){o.removeClass("updating-icon"),u(".tutor-frontend-modal").hide()}})}),u("#tutor\_profile\_photo\_id").val()||u(".tutor-profile-photo-delete-btn").hide(),u(document).on("click",".tutor-profile-photo-delete-btn",function(){return u(".tutor-profile-photo-upload-wrap").find("img").attr("src",\_tutorobject.placeholder\_img\_src),u("#tutor\_profile\_photo\_id").val(""),u(".tutor-profile-photo-delete-btn").hide(),u.ajax({url:\_tutorobject.ajaxurl,type:"POST",data:{action:"tutor\_profile\_photo\_remove"}}),!1}),u(document).on("submit","#tutor\_assignment\_start\_form",function(t){t.preventDefault();t=u(this).serializeObject();t.action="tutor\_start\_assignment",u.ajax({url:\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){u("#tutor\_assignment\_start\_btn").addClass("updating-icon")},success:function(t){t.success&&location.reload()},complete:function(){u("#tutor\_assignment\_start\_btn").removeClass("updating-icon")}})}),u(document).on("submit","#tutor\_assignment\_submit\_form",function(t){u('textarea\[name="assignment\_answer"\]').val().trim().length<1&&(u("#form\_validation\_response").html('<div class="tutor-error-msg">'+s("Assignment answer can not be empty","tutor")+"</div>"),t.preventDefault())}),u(document).on("click",".video\_source\_upload\_wrap\_html5 .video\_upload\_btn",function(t){t.preventDefault();var e,o=u(this);e||(e=wp.media({title:s("Select / Upload Media Of Your Chosen Persuasion","tutor"),button:{text:s("Use media","tutor")},library:{type:"video"},multiple:!1})).on("select",function(){var t=e.state().get("selection").first().toJSON();o.closest(".video\_source\_upload\_wrap\_html5").find("span.video\_media\_id").data("video\_url",t.url).text(t.id).trigger("paste").closest("p").show(),o.closest(".video\_source\_upload\_wrap\_html5").find("input").val(t.id)}),e.open()}),b(),u(document).on("click",".update\_lesson\_modal\_btn",function(t){t.preventDefault();var e=u(this),o=tinyMCE.get("tutor\_lesson\_modal\_editor"),t=o?o.getContent():u("#"+inputid).val(),o=u(this).closest("form").serializeObject();o.lesson\_content=t,u.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:o,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success?(u("#tutor-course-content-wrap").html(t.data.course\_contents),b(),u(".tutor-lesson-modal-wrap").removeClass("show"),tutor\_toast(s("Done","tutor"),e.data("toast\_success\_message"),"success")):tutor\_toast(s("Failed","tutor"),s("Lesson Update Failed","tutor"),"error")},error:function(){tutor\_toast(s("Failed","tutor"),s("Lesson Update Failed","tutor"),"error")},complete:function(){e.removeClass("tutor-updating-message")}})}),u(document).on("click","a.tutor-delete-attachment",function(t){t.preventDefault(),u(this).closest(".tutor-added-attachment").remove()}),u(document).on("click",".tutorUploadAttachmentBtn",function(t){t.preventDefault();var n,a=u(this);n||(n=wp.media({title:s("Select / Upload Media Of Your Chosen Persuasion","tutor"),button:{text:s("Use media","tutor")},multiple:!0})).on("select",function(){var t=n.state().get("selection").toJSON();if(t.length)for(var e=0;e<t.length;e++){var o=t\[e\],o='<div class="tutor-added-attachment"><i class="tutor-icon-archive"></i><a href="javascript:;" class="tutor-delete-attachment tutor-icon-line-cross"></a> <span> <a href="'+o.url+'">'+o.filename+'</a> </span> <input type="hidden" name="tutor\_attachments\[\]" value="'+o.id+'"></div>';a.closest(".tutor-lesson-attachments-metabox").find(".tutor-added-attachments-wrap").append(o)}}),n.open()}),u("form").on("change",".tutor-assignment-file-upload",function(){u(this).siblings("label").find("span").html(u(this).val().replace(/.\*(\\/|\\\\)/,""))}),u(document).on("click",".tutor-topics-in-single-lesson .tutor-topics-title h3, .tutor-single-lesson-topic-toggle",function(t){var e=u(this).closest(".tutor-topics-in-single-lesson");e.toggleClass("tutor-topic-active"),e.find(".tutor-lessons-under-topic").slideToggle()}),u(".tutor-single-lesson-items.active").closest(".tutor-lessons-under-topic").show(),u(".tutor-single-lesson-items.active").closest(".tutor-topics-in-single-lesson").addClass("tutor-topic-active"),u(".tutor-course-lesson.active").closest(".tutor-lessons-under-topic").show(),u(document).on("click",".tutor-create-assignments-btn",function(t){t.preventDefault();var e=u(this),o=u(this).attr("data-topic-id"),n=u("#post\_ID").val();u.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{topic\_id:o,course\_id:n,action:"tutor\_load\_assignments\_builder\_modal"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){u(".tutor-lesson-modal-wrap .modal-container").html(t.data.output),u(".tutor-lesson-modal-wrap").attr("data-topic-id",o).addClass("show"),u(document).trigger("assignment\_modal\_loaded",{topic\_id:o,course\_id:n}),tinymce.init(tinyMCEPreInit.mceInit.course\_description),tinymce.execCommand("mceRemoveEditor",!1,"tutor\_assignments\_modal\_editor"),tinyMCE.execCommand("mceAddEditor",!1,"tutor\_assignments\_modal\_editor")},complete:function(){quicktags({id:"tutor\_assignments\_modal\_editor"}),e.removeClass("tutor-updating-message")}})}),u(document).on("click",".open-tutor-assignment-modal",function(t){t.preventDefault();var e=u(this),o=e.attr("data-assignment-id"),n=e.attr("data-topic-id"),a=u("#post\_ID").val();u.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{assignment\_id:o,topic\_id:n,course\_id:a,action:"tutor\_load\_assignments\_builder\_modal"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){u(".tutor-lesson-modal-wrap .modal-container").html(t.data.output),u(".tutor-lesson-modal-wrap").attr({"data-assignment-id":o,"data-topic-id":n}).addClass("show"),u(document).trigger("assignment\_modal\_loaded",{assignment\_id:o,topic\_id:n,course\_id:a}),tinymce.init(tinyMCEPreInit.mceInit.course\_description),tinymce.execCommand("mceRemoveEditor",!1,"tutor\_assignments\_modal\_editor"),tinyMCE.execCommand("mceAddEditor",!1,"tutor\_assignments\_modal\_editor")},complete:function(){quicktags({id:"tutor\_assignments\_modal\_editor"}),e.removeClass("tutor-updating-message")}})}),u(document).on("click",".update\_assignment\_modal\_btn",function(t){t.preventDefault();var e=u(this),o=tinyMCE.get("tutor\_assignments\_modal\_editor"),t=o?o.getContent():u("#"+inputid).val(),o=u(this).closest("form").serializeObject();o.assignment\_content=t,u.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:o,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success?(u("#tutor-course-content-wrap").html(t.data.course\_contents),b(),u(".tutor-lesson-modal-wrap").removeClass("show"),tutor\_toast(s("Done","tutor"),e.data("toast\_success\_message"),"success")):tutor\_toast(s("Failed","tutor"),s("Assignment Update Failed","tutor"),"error")},error:function(){tutor\_toast(s("Failed","tutor"),s("Assignment Update Failed","tutor"),"error")},complete:function(){e.removeClass("tutor-updating-message")}})}),u(document).on("click",".add-assignment-attachments",function(t){t.preventDefault();var o,n=u(this);o||(o=wp.media({title:s("Select / Upload Media Of Your Chosen Persuasion","tutor"),button:{text:s("Use media","tutor")},multiple:!1})).on("select",function(){var t=o.state().get("selection").first().toJSON(),e='<div class="tutor-individual-attachment-file"><p class="attachment-file-name">'+t.filename+'</p><input type="hidden" name="tutor\_assignment\_attachments\[\]" value="'+t.id+'"><a href="javascript:;" class="remove-assignment-attachment-a text-muted"> × Remove</a></div>';u("#assignment-attached-file").append(e),n.closest(".video\_source\_upload\_wrap\_html5").find("input").val(t.id)}),o.open()}),u(document).on("click",".remove-assignment-attachment-a",function(t){t.preventDefault(),u(this).closest(".tutor-individual-attachment-file").remove()}),"tutor\_add\_course\_builder"===u('input\[name="tutor\_action"\]').val()&&setInterval(function(){var t=u("form#tutor-frontend-course-builder").serializeObject();t.tutor\_ajax\_action="tutor\_course\_builder\_draft\_save",u.ajax({type:"POST",data:t,beforeSend:function(){u(".tutor-dashboard-builder-draft-btn span").text(s("Saving...","tutor"))},success:function(t){},complete:function(){u(".tutor-dashboard-builder-draft-btn span").text(s("Save","tutor"))}})},3e4),u(".tutor-course-builder-section-title").on("click",function(){u(this).find("i").hasClass("tutor-icon-up")?u(this).find("i").removeClass("tutor-icon-up").addClass("tutor-icon-down"):u(this).find("i").removeClass("tutor-icon-down").addClass("tutor-icon-up"),u(this).next("div").slideToggle()}),u(document).on("click",".open-tutor-edit-review-modal",function(t){t.preventDefault();var e=u(this),o=e.attr("data-review-id"),n=\_tutorobject.nonce\_key,t={review\_id:o,action:"tutor\_load\_edit\_review\_modal"};t\[n\]=\_tutorobject\[n\],u.ajax({url:\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){void 0!==t.data&&(u(".tutor-edit-review-modal-wrap .modal-container").html(t.data.output),u(".tutor-edit-review-modal-wrap").attr("data-review-id",o).addClass("show"))},complete:function(){e.removeClass("tutor-updating-message")}})}),u(document).on("submit","#tutor\_update\_review\_form",function(t){t.preventDefault();var e=u(this),o=e.closest(".tutor-edit-review-modal-wrap ").attr("data-review-id"),t=\_tutorobject.nonce\_key,o={review\_id:o,rating:e.find('input\[name="tutor\_rating\_gen\_input"\]').val(),review:e.find('textarea\[name="review"\]').val().trim(),action:"tutor\_update\_review\_modal"};o\[t\]=\_tutorobject\[t\],u.ajax({url:\_tutorobject.ajaxurl,type:"POST",data:o,beforeSend:function(){e.find('button\[type="submit"\]').addClass("tutor-updating-message")},success:function(t){t.success&&(u(".tutor-edit-review-modal-wrap").removeClass("show"),location.reload(!0))},complete:function(){e.find('button\[type="submit"\]').removeClass("tutor-updating-message")}})}),u(document).on("click","#tutor\_profile\_photo\_button",function(t){t.preventDefault(),u("#tutor\_profile\_photo\_file").trigger("click")}),u(document).on("change","#tutor\_profile\_photo\_file",function(t){t.preventDefault();this.files&&this.files\[0\]&&((t=new FileReader).onload=function(t){u(".tutor-profile-photo-upload-wrap").find("img").attr("src",t.target.result)},t.readAsDataURL(this.files\[0\]))}),u(document).on("click",".thread-content .subject",function(t){var e=u(this),o=parseInt(e.closest(".thread-content").attr("data-thread-id")),e=\_tutorobject.nonce\_key,o={thread\_id:o,action:"tutor\_bp\_retrieve\_user\_records\_for\_thread"};o\[e\]=\_tutorobject\[e\],u.ajax({type:"POST",url:window.\_tutorobject.ajaxurl,data:o,beforeSend:function(){u("#tutor-bp-thread-wrap").html("")},success:function(t){t.success&&(u("#tutor-bp-thread-wrap").html(t.data.thread\_head\_html),q())}})}),q(),u(document).on("click","a.tutor\_bp\_plus\_courses",function(t){t.preventDefault();t=u(this);t.closest(".tutor-bp-enrolled-courses-wrap").find(".tutor-bp-enrolled-course-list li").show(),t.closest(".thread-participant-enrolled-info").html("")}),u(".tutor-dropbtn").click(function(){u(this).parent().find(".tutor-dropdown-content").slideToggle(100)}),u(document).on("click",function(t){var e=u(".tutor-dropdown"),o=e.find(".tutor-dropdown-content");e.is(t.target)||0!==e.has(t.target).length||o.slideUp(100)}),u(document).on("submit",".tutor-login-form-wrap #loginform",function(t){t.preventDefault();var t=u(this),e=u(".tutor-login-form-wrap"),t=t.serializeObject();t.action="tutor\_user\_login",u.ajax({url:\_tutorobject.ajaxurl,type:"POST",data:t,success:function(t){t.success?(location.assign(t.data.redirect),location.reload()):(t=t.data||s("Invalid username or password!","tutor"),e.find(".tutor-alert").length?e.find(".tutor-alert").html(t):e.prepend('<div class="tutor-alert tutor-alert-warning">'+t+"</div>"))}})});var j,x=u('.tutor-frontend-builder-course-price \[name="tutor\_course\_price\_type"\]');0==x.length?u("#\_tutor\_is\_course\_public\_meta\_checkbox").show():x.change(function(){var t;u(this).prop("checked")&&(t="paid"==u(this).val()?"hide":"show",u("#\_tutor\_is\_course\_public\_meta\_checkbox")\[t\]())}).trigger("change"),(j=jQuery).fn.tutor\_tooltip=function(){return this.on("mouseenter click",".tooltip",function(t){t.stopPropagation(),j(this).removeClass("isVisible")}).on("mouseenter focus",":has(>.tooltip)",function(t){j(this).prop("disabled")||j(this).find(".tooltip").addClass("isVisible")}).on("mouseleave blur keydown",":has(>.tooltip)",function(t){("keydown"!==t.type||27===t.which)&&j(this).find(".tooltip").removeClass("isVisible")}),this},jQuery(".tutor-tooltip-inside").tutor\_tooltip();var k=u(".tutor-course-filter-container form"),z=u(".tutor-course-filter-loop-container"),C={};k.on("submit",function(t){t.preventDefault()}).find("input").change(function(t){var e=Object.assign(k.serializeObject(),C);e.action="tutor\_course\_filter\_ajax",z.html('<center><img src="'+window.\_tutorobject.loading\_icon\_url+'"/></center>'),u(this).closest("form").find(".tutor-clear-all-filter").show(),u.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:e,success:function(t){z.html(t).find(".tutor-pagination-wrap a").each(function(){u(this).attr("data-href",u(this).attr("href")).attr("href","#")})}})}),z.on("click",".tutor-pagination-wrap a",function(t){var e=u(this).data("href")||u(this).attr("href");!e||(e=(e=new URL(e)).searchParams.get("paged"))&&(t.preventDefault(),C.page=e,k.find("input:first").trigger("change"))}),z.on("change",'select\[name="tutor\_course\_filter"\]',function(){C.tutor\_course\_filter=u(this).val(),k.find("input:first").trigger("change")});x=u(".tutor-course-loop");0<x.length&&("yes"===window.sessionStorage.getItem("tutor\_refresh\_archive")&&window.location.reload(),window.sessionStorage.removeItem("tutor\_refresh\_archive"),x.on("click",".tutor-loop-cart-btn-wrap",function(){window.sessionStorage.setItem("tutor\_refresh\_archive","yes")}));x=u("#tutor\_profile\_cover\_photo\_editor");0<x.length&&new function(n){this.dialogue\_box=n.find("#tutor\_photo\_dialogue\_box"),this.open\_dialogue\_box=function(t){this.dialogue\_box.attr("name",t),this.dialogue\_box.trigger("click")},this.validate\_image=function(t){return!0},this.upload\_selected\_image=function(t,e){var o,n,a;e&&this.validate\_image(e)&&(o=tutor\_get\_nonce\_data(!0),(n=this).toggle\_loader(t,!0),(a=new FormData).append("action","tutor\_user\_photo\_upload"),a.append("photo\_type",t),a.append("photo\_file",e,e.name),a.append(o.key,o.value),u.ajax({url:window.\_tutorobject.ajaxurl,data:a,type:"POST",processData:!1,contentType:!1,error:n.error\_alert,complete:function(){n.toggle\_loader(t,!1)}}))},this.accept\_upload\_image=function(t,e){var o=e.currentTarget.files\[0\]||null;t.update\_preview(e.currentTarget.name,o),t.upload\_selected\_image(e.currentTarget.name,o),u(e.currentTarget).val("")},this.delete\_image=function(t){var e=this;e.toggle\_loader(t,!0),u.ajax({url:window.\_tutorobject.ajaxurl,data:{action:"tutor\_user\_photo\_remove",photo\_type:t},type:"POST",error:e.error\_alert,complete:function(){e.toggle\_loader(t,!1)}})},this.update\_preview=function(t,e){var o=n.find("cover\_photo"==t?"#tutor\_cover\_area":"#tutor\_profile\_area");if(!e)return o.css("background-image","url("+o.data("fallback")+")"),void this.delete\_image(t);t=new FileReader;t.onload=function(t){o.css("background-image","url("+t.target.result+")")},t.readAsDataURL(e)},this.toggle\_profile\_pic\_action=function(t){n\[void 0===t?"toggleClass":t?"addClass":"removeClass"\]("pop-up-opened")},this.error\_alert=function(){alert("Something Went Wrong.")},this.toggle\_loader=function(t,e){n.find("#tutor\_photo\_meta\_area .loader-area").css("display",e?"block":"none")},this.initialize=function(){var e=this;this.dialogue\_box.change(function(t){e.accept\_upload\_image(e,t)}),n.find("#tutor\_profile\_area .tutor\_overlay, #tutor\_pp\_option>div:last-child").click(function(){e.toggle\_profile\_pic\_action()}),n.find(".tutor\_cover\_uploader").click(function(){e.open\_dialogue\_box("cover\_photo")}),n.find(".tutor\_pp\_uploader").click(function(){e.open\_dialogue\_box("profile\_photo")}),n.find(".tutor\_cover\_deleter").click(function(){e.update\_preview("cover\_photo",null)}),n.find(".tutor\_pp\_deleter").click(function(){e.update\_preview("profile\_photo",null)})}}(x).initialize(),u(".tutor-instructor-filter").each(function(){var e,r=u(this),s={};function n(t,e,o){var n=r.find(".filter-result-container"),a=n.html(),i=r.data();i.current\_page=o||1,t?s\[t\]=e:s={},s.attributes=i,s.action="load\_filtered\_instructor",n.html('<div style="text-align:center"><img src="'+window.\_tutorobject.loading\_icon\_url+'"/></div>'),u.ajax({url:window.\_tutorobject.ajaxurl,data:s,type:"POST",success:function(t){n.html(t)},error:function(){n.html(a),tutor\_toast("Failed","Request Error","error")}})}r.on("change",'.course-category-filter \[type="checkbox"\]',function(){var e={};u(this).closest(".course-category-filter").find("input:checked").each(function(){e\[u(this).val()\]=u(this).parent().text()});var o=r.find(".selected-cate-list").empty(),t=Object.keys(e);t.forEach(function(t){o.append("<span>"+e\[t\]+' <span class="tutor-icon-line-cross" data-cat\_id="'+t+'"></span></span>')}),t.length&&o.append('<span data-cat\_id="0">Clear All</span>'),n(u(this).attr("name"),t)}).on("click",".selected-cate-list \[data-cat\_id\]",function(){var t=u(this).data("cat\_id"),e=r.find('.mobile-filter-popup \[type="checkbox"\]');(e=t?e.filter('\[value="'+t+'"\]'):e).prop("checked",!1).trigger("change")}).on("input",'.filter-pc \[name="keyword"\]',function(){var t=u(this).val();e&&window.clearTimeout(e),e=window.setTimeout(function(){n("keyword",t),e=null},500)}).on("click","\[data-page\_number\]",function(t){t.preventDefault(),n(null,null,u(this).data("page\_number"))}).on("click",".clear-instructor-filter",function(){var t=u(this).closest(".tutor-instructor-filter");t.find('input\[type="checkbox"\]').prop("checked",!1),t.find('\[name="keyword"\]').val(""),n()}).on("click",".mobile-filter-container i",function(){u(this).parent().next().addClass("is-opened")}).on("click",".mobile-filter-popup button",function(){u('.mobile-filter-popup \[type="checkbox"\]').trigger("change"),u(this).closest(".mobile-filter-popup").removeClass("is-opened")}).on("input",'.filter-mobile \[name="keyword"\]',function(){r.find('.filter-pc \[name="keyword"\]').val(u(this).val()).trigger("input")}).on("change",'.mobile-filter-popup \[type="checkbox"\]',function(t){var e,o;t.originalEvent||(e=u(this).attr("name"),o=u(this).val(),t=u(this).prop("checked"),r.find('.course-category-filter \[name="'+e+'"\]').filter('\[value="'+o+'"\]').prop("checked",t).trigger("change"))}).on("mousedown touchstart",".expand-instructor-filter",function(t){var e=u(window).height(),o=r.find(".mobile-filter-popup>div"),n=e-o.height(),a=((t.originalEvent.touches||\[\])\[0\]||t).clientY-n;r.on("mousemove touchmove",function(t){t=((t.originalEvent.touches||\[\])\[0\]||t).clientY,t=e-t+a;200<t&&t<=e&&o.css("height",t+"px")})}).on("mouseup touchend",function(){r.off("mousemove touchmove")}).on("click",".mobile-filter-popup>div",function(t){t.stopImmediatePropagation()}).on("click",".mobile-filter-popup",function(t){u(this).removeClass("is-opened")})}),u(".tutor-course-retake-button").click(function(t){t.preventDefault();var t=u(this),e=t.attr("href"),o=t.data("course\_id"),t={title:s("Override Previous Progress","tutor"),description:s("Before continue, please decide whether to keep progress or reset.","tutor"),buttons:{reset:{title:s("Reset Data","tutor"),class:"secondary",callback:function(){var t=n.find(".tutor-button-secondary");t.prop("disabled",!0).append('<img style="margin-left: 7px" src="'+window.\_tutorobject.loading\_icon\_url+'"/>'),u.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{action:"tutor\_reset\_course\_progress",course\_id:o},success:function(t){t.success?window.location.assign(t.data.redirect\_to):alert((t.data||{}).message||s("Something went wrong","tutor"))},complete:function(){t.prop("disabled",!1).find("img").remove()}})}},keep:{title:s("Keep Data","tutor"),class:"primary",callback:function(){window.location.assign(e)}}}},n=new window.tutor\_popup(u,"icon-gear",40).popup(t)}),document.body.addEventListener("click",function(t){var e,o=t.target,n=o.tagName,a=o.parentElement.tagName;0<m.length&&"EXPIRED"!=m.html()&&("A"!==n&&"A"!==a||(t.preventDefault(),t.stopImmediatePropagation(),t={title:s("Abandon Quiz?","tutor"),description:s("Do you want to abandon this quiz? The quiz will be submitted partially up to this question if you leave this page.","tutor"),buttons:{keep:{title:s("Yes, leave quiz","tutor"),id:"leave",class:"secondary",callback:function(){var t=u("form#tutor-answering-quiz").serialize()+"&action=tutor\_quiz\_abandon";u.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){document.querySelector("#tutor-popup-leave").innerHTML=s("Leaving...","tutor")},success:function(t){t.success?null==o.href?location.href=o.parentElement.href:location.href=o.href:alert(s("Something went wrong","tutor"))},error:function(){alert(s("Something went wrong","tutor")),e.remove()}})}},reset:{title:s("Stay here","tutor"),id:"reset",class:"primary",callback:function(){e.remove()}}}},e=new window.tutor\_popup(u,"",40).popup(t)))}),u("body").on("submit","form#tutor-start-quiz",function(){u(this).find("button").prop("disabled",!0)})})})()})();
tutor/trunk/assets/js/tutor-setup.js
r2610239
r2615802
1
(()=>{var o={623:()=>{function g(t){return(g="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})(t)}function q(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var o=null==t?null:"undefined"!=typeof Symbol&&t\[Symbol.iterator\]||t\["@@iterator"\];if(null!=o){var a,n,i=\[\],r=!0,s=!1;try{for(o=o.call(t);!(r=(a=o.next()).done)&&(i.push(a.value),!e||i.length!==e);r=!0);}catch(t){s=!0,n=t}finally{try{r||null==o.return||o.return()}finally{if(s)throw n}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return a(t,e);var o=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(o="Object"===o&&t.constructor?t.constructor.name:o)||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?a(t,e):void 0}}(t,e)||function(){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 a(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,a=new Array(e);o<e;o++)a\[o\]=t\[o\];return a}window.tutor\_get\_nonce\_data=function(t){var e=window.\_tutorobject||{},o=e.nonce\_key||"",e=e\[o\]||"";return t?{key:o,value:e}:(t=e,(e=o)in(o={})?Object.defineProperty(o,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):o\[e\]=t,o)},window.tutor\_popup=function(r,o,a){var s,u=this;return this.popup\_wrapper=function(t){var e=""===o?"":'<img class="tutor-pop-icon" src="'+window.\_tutorobject.tutor\_url+"assets/images/"+o+'.svg"/>';return"<"+t+' class="tutor-component-popup-container"> <div class="tutor-component-popup-'+a+'"> <div class="tutor-component-content-container">'+e+'</div> <div class="tutor-component-button-container"></div> </div> </'+t+">"},this.popup=function(o){var t=o.title?"<h3>"+o.title+"</h3>":"",e=o.description?"<p>"+o.description+"</p>":"",a=Object.keys(o.buttons||{}).map(function(t){var e=o.buttons\[t\],t=e.id?"tutor-popup-"+e.id:"";return r('<button id="'+t+'" class="tutor-button tutor-button-'+e.class+'">'+e.title+"</button>").click(e.callback)}),n=(s=r(u.popup\_wrapper(o.wrapper\_tag||"div"))).find(".tutor-component-content-container");n.append(t),o.after\_title&&n.append(o.after\_title),n.append(e),o.after\_description&&n.append(o.after\_description),s.click(function(){r(this).remove()}).children().click(function(t){t.stopPropagation()});for(var i=0;i<a.length;i++)s.find(".tutor-component-button-container").append(a\[i\]);return r("body").append(s),s},{popup:this.popup}},window.tutorDotLoader=function(t){return' \\n <div class="tutor-dot-loader '.concat(t||"",'">\\n <span class="dot dot-1"></span>\\n <span class="dot dot-2"></span>\\n <span class="dot dot-3"></span>\\n <span class="dot dot-4"></span>\\n </div>')},window.tutor\_date\_picker=function(){var t;jQuery.datepicker&&(t=\_tutorobject.wp\_date\_format||"yy-mm-dd",$(".tutor\_date\_picker").datepicker({dateFormat:t}))},jQuery(document).ready(function(l){"use strict";var t=wp.i18n,n=t.\_\_;t.\_x,t.\_n,t.\_nx;function o(){var t;jQuery.datepicker&&(t=\_tutorobject.wp\_date\_format||"yy-mm-dd",l(".tutor\_date\_picker").datepicker({dateFormat:t})),l(document).on("keydown",".hasDatepicker, .tutor\_date\_picker",function(t){8!==t.keyCode&&t.preventDefault()})}function s(){l(".tutor-field-slider").each(function(){var t=l(this),o=t.closest(".tutor-field-type-slider").find('input\[type="hidden"\]'),a=t.closest(".tutor-field-type-slider").find(".tutor-field-type-slider-value"),e=parseFloat(t.closest(".tutor-field-type-slider").attr("data-min")),n=parseFloat(t.closest(".tutor-field-type-slider").attr("data-max"));t.slider({range:"max",min:e,max:n,value:o.val(),slide:function(t,e){a.text(e.value),o.val(e.value)}})})}function e(t){var e=t.element;return l('<span><i class="tutor-icon-'+l(e).data("icon")+'"></i> '+t.text+"</span>")}function i(){jQuery().sortable&&(l(".course-contents").sortable({handle:".course-move-handle",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){a()}}),l(".tutor-lessons:not(.drop-lessons)").sortable({connectWith:".tutor-lessons",items:"div.course-content-item",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){a()}}))}function a(){var i={};l(".tutor-topics-wrap").each(function(t,e){var o=l(this),a=parseInt(o.attr("id").match(/\\d+/)\[0\],10),n={};o.find(".course-content-item").each(function(t,e){var o=l(this),o=parseInt(o.attr("id").match(/\\d+/)\[0\],10);n\[t\]=o}),i\[t\]={topic\_id:a,lesson\_ids:n}}),l("#tutor\_topics\_lessons\_sorting").val(JSON.stringify(i))}function r(){return{init:function(){l(document).on("click",".tutor-select .tutor-select-option",function(t){t.preventDefault();var e=l(this);"true"!==e.attr("data-is-pro")?(t=e.html().trim(),e.closest(".tutor-select").find(".select-header .lead-option").html(t),e.closest(".tutor-select").find(".select-header input.tutor\_select\_value\_holder").val(e.attr("data-value")).trigger("change"),e.closest(".tutor-select-options").hide(),disableAddoption()):alert("Tutor Pro version required")}),l(document).on("click",".tutor-select .select-header",function(t){t.preventDefault(),l(this).closest(".tutor-select").find(".tutor-select-options").slideToggle()}),this.setValue(),this.hideOnOutSideClick()},setValue:function(){l(".tutor-select").each(function(){var t=l(this).find(".tutor-select-option");t.length&&t.each(function(){var t,e=l(this);"selected"===e.attr("data-selected")&&(t=e.html().trim(),e.closest(".tutor-select").find(".select-header .lead-option").html(t),e.closest(".tutor-select").find(".select-header input.tutor\_select\_value\_holder").val(e.attr("data-value")))})})},hideOnOutSideClick:function(){l(document).mouseup(function(t){var e=l(".tutor-select-options");l(t.target).closest(".select-header").length||e.is(t.target)||0!==e.has(t.target).length||e.hide()})},reInit:function(){this.setValue()}}}o(),s(),jQuery().select2&&l(".videosource\_select2").select2({width:"100%",templateSelection:e,templateResult:e,allowHtml:!0}),l(document).on("change",".tutor\_lesson\_video\_source",function(t){var e=l(this),o=l(this).val();o?l(".video-metabox-source-input-wrap").show():l(".video-metabox-source-input-wrap").hide(),e.closest(".tutor-option-field").find(".video-metabox-source-item").hide(),e.closest(".tutor-option-field").find(".video\_source\_wrap\_"+o).show()}),l(document).on("click",".tutor-course-thumbnail-upload-btn",function(t){t.preventDefault();var e,o=l(this);e||(e=wp.media({title:n("Select or Upload Media Of Your Chosen Persuasion","tutor"),button:{text:n("Use this media","tutor")},multiple:!1})).on("select",function(){var t=e.state().get("selection").first().toJSON();o.closest(".tutor-thumbnail-wrap").find(".thumbnail-img").attr("src",t.url),o.closest(".tutor-thumbnail-wrap").find("input").val(t.id),l(".tutor-course-thumbnail-delete-btn").show()}),e.open()}),l(document).on("click",".tutor-course-thumbnail-delete-btn",function(t){t.preventDefault();var e=l(this),t=e.closest(".tutor-thumbnail-wrap").find(".thumbnail-img").attr("data-placeholder-src");e.closest(".tutor-thumbnail-wrap").find(".thumbnail-img").attr("src",t),e.closest(".tutor-thumbnail-wrap").find("input").val(""),l(".tutor-course-thumbnail-delete-btn").hide()}),l(document).on("click",".create\_new\_topic\_btn",function(t){t.preventDefault(),l(".tutor-metabox-add-topics").slideToggle()}),l(document).on("click","#tutor-add-topic-btn",function(t){t.preventDefault();var e=l(this),t=e.closest(".tutor-metabox-add-topics").find("input, textarea").serializeObject();t.action="tutor\_add\_course\_topic",l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(l("#tutor-course-content-wrap").html(t.data.course\_contents),e.closest(".tutor-metabox-add-topics").find('input\[type!="hidden"\], textarea').each(function(){l(this).val("")}),e.closest(".tutor-metabox-add-topics").slideUp(),i())},complete:function(){e.removeClass("tutor-updating-message")}})}),l(".tutor-zoom-meeting-modal-wrap").on("submit",".tutor-meeting-modal-form",function(t){t.preventDefault();var e=l(this),o=e.serializeObject(),t=Intl.DateTimeFormat().resolvedOptions().timeZone;o.timezone=t;var a=e.find('button\[type="submit"\]');l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:o,beforeSend:function(){a.addClass("tutor-updating-message")},success:function(t){t.success?tutor\_toast(n("Success","tutor"),a.data("toast\_success\_message"),"success"):tutor\_toast(n("Update Error","tutor"),n("Meeting Update Failed","tutor"),"error"),t.course\_contents?(l(t.selector).html(t.course\_contents),"#tutor-course-content-wrap"==t.selector&&i(),l(".tutor-zoom-meeting-modal-wrap").removeClass("show")):location.reload()},complete:function(){a.removeClass("tutor-updating-message")}})}),l(document).on("change keyup",".course-edit-topic-title-input",function(t){t.preventDefault(),l(this).closest(".tutor-topics-top").find(".topic-inner-title").html(l(this).val())}),l(document).on("click",".topic-edit-icon",function(t){t.preventDefault(),l(this).closest(".tutor-topics-top").find(".tutor-topics-edit-form").slideToggle()}),l(document).on("click",".tutor-topics-edit-button",function(t){t.preventDefault();var e=l(this),o=e.closest(".tutor-topics-wrap"),t=parseInt(o.attr("id").match(/\\d+/)\[0\],10),a=e.closest(".tutor-topics-wrap").find('\[name="topic\_title"\]').val(),o=e.closest(".tutor-topics-wrap").find('\[name="topic\_summery"\]').val();l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{topic\_title:a,topic\_summery:o,topic\_id:t,action:"tutor\_update\_topic"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(e.closest(".tutor-topics-wrap").find("span.topic-inner-title").text(a),e.closest(".tutor-topics-wrap").find(".tutor-topics-edit-form").slideUp())},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click",".open-tutor-lesson-modal",function(t){t.preventDefault();var e=l(this),o=e.attr("data-lesson-id"),a=e.attr("data-topic-id"),n=l("#post\_ID").val();l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{lesson\_id:o,topic\_id:a,course\_id:n,action:"tutor\_load\_edit\_lesson\_modal"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){l(".tutor-lesson-modal-wrap .modal-container").html(t.data.output),l(".tutor-lesson-modal-wrap").attr({"data-lesson-id":o,"data-topic-id":a}).addClass("show");t=(t=tinyMCEPreInit.mceInit.tutor\_editor\_config)||tinyMCEPreInit.mceInit.course\_description;tinymce.init(t),tinymce.execCommand("mceRemoveEditor",!1,"tutor\_lesson\_modal\_editor"),tinyMCE.execCommand("mceAddEditor",!1,"tutor\_lesson\_modal\_editor"),l(document).trigger("lesson\_modal\_loaded",{lesson\_id:o,topic\_id:a,course\_id:n})},complete:function(){quicktags({id:"tutor\_lesson\_modal\_editor"}),e.removeClass("tutor-updating-message")}})}),l(document).on("click",".lesson\_thumbnail\_upload\_btn",function(t){t.preventDefault();var e,o=l(this);e||(e=wp.media({title:n("Select or Upload Media Of Your Chosen Persuasion","tutor"),button:{text:n("Use this media","tutor")},multiple:!1})).on("select",function(){var t=e.state().get("selection").first().toJSON();o.closest(".tutor-thumbnail-wrap").find(".thumbnail-img").html('<img src="'+t.url+'" alt="" /><a href="javascript:;" class="tutor-lesson-thumbnail-delete-btn"><i class="tutor-icon-line-cross"></i></a>'),o.closest(".tutor-thumbnail-wrap").find("input").val(t.id),l(".tutor-lesson-thumbnail-delete-btn").show()}),e.open()}),l(document).on("click",".tutor-lesson-thumbnail-delete-btn",function(t){t.preventDefault();t=l(this);t.closest(".tutor-thumbnail-wrap").find(".\_lesson\_thumbnail\_id").val(""),t.closest(".tutor-thumbnail-wrap").find(".thumbnail-img").html(""),t.hide()}),l(document).on("click",".tutor-delete-lesson-btn",function(t){var e;t.preventDefault(),confirm(n("Are you sure?","tutor"))&&(t=(e=l(this)).attr("data-lesson-id"),l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{lesson\_id:t,action:"tutor\_delete\_lesson\_by\_id"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&e.closest(".course-content-item").remove()},complete:function(){e.removeClass("tutor-updating-message")}}))}),l(document).on("click",".topic-delete-btn a",function(t){l(this).attr("data-topic-id");confirm(n("Are you sure to delete?","tutor"))||t.preventDefault()}),l(document).on("click",".tutor-expand-all-topic",function(t){t.preventDefault(),l(".tutor-topics-body").slideDown(),l(".expand-collapse-wrap i").removeClass("tutor-icon-light-down").addClass("tutor-icon-light-up")}),l(document).on("click",".tutor-collapse-all-topic",function(t){t.preventDefault(),l(".tutor-topics-body").slideUp(),l(".expand-collapse-wrap i").removeClass("tutor-icon-light-up").addClass("tutor-icon-light-down")}),l(document).on("click",".topic-inner-title, .expand-collapse-wrap",function(t){t.preventDefault();t=l(this);t.closest(".tutor-topics-wrap").find(".tutor-topics-body").slideToggle(),t.closest(".tutor-topics-wrap").find(".expand-collapse-wrap i").toggleClass("tutor-icon-light-down tutor-icon-light-up")}),l(document).on("click",".quiz-modal-btn-first-step",function(t){t.preventDefault();var e,o,a,n=l(this),i=l('\[name="quiz\_title"\]'),r=i.val(),t=l('\[name="quiz\_description"\]').val();r?(i.closest(".tutor-quiz-builder-group").find(".quiz\_form\_msg").html(""),e=l("#post\_ID").val(),o=n.closest(".tutor-modal-wrap").attr("quiz-for-post-id"),l("#tutor\_quiz\_builder\_quiz\_id").length?(a=l("#tutor\_quiz\_builder\_quiz\_id").val(),l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{quiz\_title:r,quiz\_description:t,quiz\_id:a,topic\_id:o,action:"tutor\_quiz\_builder\_quiz\_update"},beforeSend:function(){n.addClass("tutor-updating-message")},success:function(t){l("#tutor-quiz-"+a).html(t.data.output\_quiz\_row),l('#tutor-quiz-modal-tab-items-wrap a\[href="#quiz-builder-tab-questions"\]').trigger("click"),s()},complete:function(){n.removeClass("tutor-updating-message")}})):l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{quiz\_title:r,quiz\_description:t,course\_id:e,topic\_id:o,action:"tutor\_create\_quiz\_and\_load\_modal"},beforeSend:function(){n.addClass("tutor-updating-message")},success:function(t){l(".tutor-quiz-builder-modal-wrap .modal-container").html(t.data.output),l("#tutor-topics-"+o+" .tutor-lessons").append(t.data.output\_quiz\_row),l('#tutor-quiz-modal-tab-items-wrap a\[href="#quiz-builder-tab-questions"\]').trigger("click"),s(),l(document).trigger("quiz\_modal\_loaded",{topic\_id:o,course\_id:e})},complete:function(){n.removeClass("tutor-updating-message")}})):i.closest(".tutor-quiz-builder-group").find(".quiz\_form\_msg").html("Please enter quiz title")}),l(document).on("click",".open-tutor-quiz-modal",function(t){t.preventDefault();var e=l(this),o=e.attr("data-quiz-id"),a=e.attr("data-topic-id");null==a&&(a=e.closest(".tutor-modal-wrap").attr("quiz-for-post-id"));var n=l("#post\_ID").val();l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{quiz\_id:o,topic\_id:a,course\_id:n,action:"tutor\_load\_edit\_quiz\_modal"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){l(".tutor-quiz-builder-modal-wrap .modal-container").html(t.data.output),l(".tutor-quiz-builder-modal-wrap").attr("data-quiz-id",o).attr("quiz-for-post-id",a).addClass("show"),e.attr("data-back-to-tab")&&(t=e.attr("data-back-to-tab"),l('#tutor-quiz-modal-tab-items-wrap a\[href="'+t+'"\]').trigger("click")),l(document).trigger("quiz\_modal\_loaded",{quiz\_id:o,topic\_id:a,course\_id:n}),s(),jQuery().sortable&&l(".quiz-builder-questions-wrap").sortable({handle:".question-sorting",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){var a;a={},l(".quiz-builder-question-wrap").each(function(t,e){var o=l(this),o=parseInt(o.attr("data-question-id"),10);a\[t\]=o}),l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{sorted\_question\_ids:a,action:"tutor\_quiz\_question\_sorting"}})}})},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click",".quiz-modal-settings-save-btn",function(t){t.preventDefault();var e=l(this),o=l(".tutor-quiz-builder-modal-wrap").attr("data-quiz-id"),a=l("#current\_topic\_id\_for\_quiz").val(),t=l("#quiz-builder-tab-settings :input, #quiz-builder-tab-advanced-options :input").serializeObject();t.topic\_id=a,t.quiz\_id=o,t.action="tutor\_quiz\_modal\_update\_settings",l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&l("#tutor-course-content-wrap").html(t.data.course\_contents),t.success?tutor\_toast(n("Success","tutor"),e.data("toast\_success\_message"),"success"):tutor\_toast(n("Update Error","tutor"),n("Quiz Update Failed","tutor"),"error")},complete:function(){e.removeClass("tutor-updating-message"),"modal\_close"===e.attr("data-action")&&l(".tutor-modal-wrap").removeClass("show")}})}),l(document).on("click",".quiz-modal-question-save-btn",function(t){t.preventDefault();var e=l(this),o=l(".quiz\_question\_form :input").serializeObject();o.action="tutor\_quiz\_modal\_update\_question";t=e.closest(".tutor-modal-wrap").attr("quiz-for-post-id");o.topic\_id=t,l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:o,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success?e.closest(".tutor-quiz-builder-modal-contents").find(".open-tutor-quiz-modal").trigger("click"):void 0!==t.data&&l("#quiz\_validation\_msg\_wrap").html(t.data.validation\_msg)},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click",".modal-close-btn",function(t){t.preventDefault(),l(".tutor-modal-wrap").removeClass("show")}),l(document).on("keyup",function(t){27===t.keyCode&&l(".tutor-modal-wrap").removeClass("show")}),l(document).on("click",".tutor-add-quiz-btn",function(t){t.preventDefault();var e=l(this),o=l(this).closest(".tutor\_add\_quiz\_wrap").attr("data-add-quiz-under"),t=l(this).data("topic-id");l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{quiz\_for\_post\_id:o,current\_topic\_id:t,action:"tutor\_load\_quiz\_builder\_modal"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){l(".tutor-quiz-builder-modal-wrap .modal-container").html(t.data.output),l(".tutor-quiz-builder-modal-wrap").attr("quiz-for-post-id",o).addClass("show")},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click",".tutor-quiz-modal-tab-item",function(t){t.preventDefault();var e=l(this),o=l('\[name="quiz\_title"\]');o.val()?(o.closest(".tutor-quiz-builder-form-row").find(".quiz\_form\_msg").html(""),t=e.attr("href"),l(".quiz-builder-tab-container").hide(),l(t).show(),l("a.tutor-quiz-modal-tab-item").removeClass("active"),e.addClass("active")):o.closest(".tutor-quiz-builder-form-row").find(".quiz\_form\_msg").html('<p class="quiz-form-warning">Please save the quiz first</p>')}),l(document).on("click",".quiz-modal-btn-next, .quiz-modal-btn-back",function(t){t.preventDefault();t=l(this).attr("href");l('#tutor-quiz-modal-tab-items-wrap a\[href="'+t+'"\]').trigger("click")}),l(document).on("click",".quiz-modal-tab-navigation-btn.quiz-modal-btn-cancel",function(t){t.preventDefault(),l(".tutor-modal-wrap").removeClass("show")}),l(document).on("click",".tutor-quiz-open-question-form",function(t){t.preventDefault();var e=l(this),o=l("#tutor\_quiz\_builder\_quiz\_id").val(),a=l("#post\_ID").val(),t=e.attr("data-question-id"),a={quiz\_id:o,course\_id:a,action:"tutor\_quiz\_builder\_get\_question\_form"};t&&(a.question\_id=t),l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:a,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){l(".tutor-quiz-builder-modal-contents").html(t.data.output),r().reInit(),jQuery().sortable&&l("#tutor\_quiz\_question\_answers").sortable({handle:".tutor-quiz-answer-sort-icon",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){var a;a={},l(".tutor-quiz-answer-wrap").each(function(t,e){var o=l(this),o=parseInt(o.attr("data-answer-id"),10);a\[t\]=o}),l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{sorted\_answer\_ids:a,action:"tutor\_quiz\_answer\_sorting"}})}}),disableAddoption()},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click",".tutor-quiz-question-trash",function(t){t.preventDefault();var e=l(this),t=e.attr("data-question-id");l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{question\_id:t,action:"tutor\_quiz\_builder\_question\_delete"},beforeSend:function(){e.closest(".quiz-builder-question-wrap").remove()}})}),l(document).on("click",".add\_question\_answers\_option:not(.disabled)",function(t){t.preventDefault();var e=l(this),o=e.attr("data-question-id"),t=l(".quiz\_question\_form :input").serializeObject();t.question\_id=o,t.action="tutor\_quiz\_add\_question\_answers",l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){l("#tutor\_quiz\_question\_answer\_form").html(t.data.output),disableAddoption()},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click",".tutor-quiz-answer-edit a",function(t){t.preventDefault();var e=l(this),t=e.closest(".tutor-quiz-answer-wrap").attr("data-answer-id");l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{answer\_id:t,action:"tutor\_quiz\_edit\_question\_answer"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){l("#tutor\_quiz\_question\_answer\_form").html(t.data.output)},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click","#quiz-answer-save-btn",function(t){t.preventDefault();var e=l(this),t=l(".quiz\_question\_form :input").serializeObject();t.action="tutor\_save\_quiz\_answer\_options",l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){l("#quiz\_validation\_msg\_wrap").html(""),e.addClass("tutor-updating-message")},success:function(t){l("#tutor\_quiz\_question\_answers").trigger("refresh")},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click","#quiz-answer-edit-btn",function(t){t.preventDefault();var e=l(this),t=l(".quiz\_question\_form :input").serializeObject();t.action="tutor\_update\_quiz\_answer\_options",l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){l("#tutor\_quiz\_question\_answers").trigger("refresh")},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("change",".tutor-quiz-answers-mark-correct-wrap input",function(t){t.preventDefault();var e=l(this),o=e.val(),t=1;e.prop("checked")||(t=0),l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{answer\_id:o,inputValue:t,action:"tutor\_mark\_answer\_as\_correct"}})}),l(document).on("refresh","#tutor\_quiz\_question\_answers",function(t){t.preventDefault();var e=l(this),o=e.attr("data-question-id"),t=l(".tutor\_select\_value\_holder").val();l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{question\_id:o,question\_type:t,action:"tutor\_quiz\_builder\_get\_answers\_by\_question"},beforeSend:function(){e.addClass("tutor-updating-message"),l("#tutor\_quiz\_question\_answer\_form").html("")},success:function(t){t.success&&e.html(t.data.output)},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click",".tutor-quiz-answer-trash-wrap a.answer-trash-btn",function(t){t.preventDefault();var e=l(this),t=e.attr("data-answer-id");l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{answer\_id:t,action:"tutor\_quiz\_builder\_delete\_answer"},beforeSend:function(){e.closest(".tutor-quiz-answer-wrap").remove()}})}),l(document).on("click",".tutor-delete-quiz-btn",function(t){var e;t.preventDefault(),confirm(n("Are you sure?","tutor"))&&(t=(e=l(this)).attr("data-quiz-id"),l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{quiz\_id:t,action:"tutor\_delete\_quiz\_by\_id"},beforeSend:function(){e.closest(".course-content-item").remove()}}))}),r().init(),l(document).on("change","input.tutor\_select\_value\_holder",function(t){l(this);l(".add\_question\_answers\_option").trigger("click"),l("#tutor\_quiz\_question\_answers").trigger("refresh")}),l(document).on("click",".tutor-media-upload-btn",function(t){t.preventDefault();var e,o=l(this);e||(e=wp.media({title:n("Select or Upload Media Of Your Chosen Persuasion","tutor"),button:{text:n("Use this media","tutor")},multiple:!1})).on("select",function(){var t=e.state().get("selection").first().toJSON();o.html('<img src="'+t.url+'" alt="" />'),o.closest(".tutor-media-upload-wrap").find("input").val(t.id)}),e.open()}),l(document).on("click",".tutor-media-upload-trash",function(t){t.preventDefault();t=l(this);t.closest(".tutor-media-upload-wrap").find(".tutor-media-upload-btn").html('<i class="tutor-icon-image1"></i>'),t.closest(".tutor-media-upload-wrap").find("input").val("")});var u,c=(u=0,function(t,e){clearTimeout(u),u=setTimeout(t,e)});l(document).on("click",".tutor-add-instructor-btn",function(t){t.preventDefault();var e=l(this),t=l("#post\_ID").val();l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{course\_id:t,action:"tutor\_load\_instructors\_modal"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(l(".tutor-instructors-modal-wrap .modal-container").html(t.data.output),l(".tutor-instructors-modal-wrap").addClass("show"))},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("change keyup",".tutor-instructors-modal-wrap .tutor-modal-search-input",function(t){t.preventDefault();var o=l(this),a=l(".tutor-modal-wrap");c(function(){var t=o.val(),e=l("#post\_ID").val();l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{course\_id:e,search\_terms:t,action:"tutor\_load\_instructors\_modal"},beforeSend:function(){a.addClass("loading")},success:function(t){t.success&&(l(".tutor-instructors-modal-wrap .modal-container").html(t.data.output),l(".tutor-instructors-modal-wrap").addClass("show"))},complete:function(){a.removeClass("loading")}})},1e3)}),l(document).on("click",".add\_instructor\_to\_course\_btn",function(t){t.preventDefault();var e=l(this),o=l(".tutor-modal-wrap"),t=l("#post\_ID").val(),o=o.find("input").serializeObject();o.course\_id=t,o.action="tutor\_add\_instructors\_to\_course",l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:o,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(l(".tutor-course-available-instructors").html(t.data.output),l(".tutor-modal-wrap").removeClass("show"))},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click",".tutor-instructor-delete-btn",function(t){t.preventDefault();var e=l(this),o=l("#post\_ID").val(),t=e.closest(".added-instructor-item").attr("data-instructor-id");l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{course\_id:o,instructor\_id:t,action:"detach\_instructor\_from\_course"},success:function(t){t.success&&e.closest(".added-instructor-item").remove()}})}),l(document).on("click",".settings-tabs-navs li",function(t){t.preventDefault();var e=l(this),o=e.find("a").attr("data-target"),t=e.find("a").attr("href");e.addClass("active").siblings("li.active").removeClass("active"),l(".settings-tab-wrap").removeClass("active").hide(),l(o).addClass("active").show(),window.history.pushState({},"",t)}),l(document).on("lesson\_modal\_loaded quiz\_modal\_loaded assignment\_modal\_loaded",function(t,e){jQuery().select2&&l(".select2\_multiselect").select2({dropdownCssClass:"increasezindex"}),o()}),l(document).on("lesson\_modal\_loaded",function(t,e){l(".tutor-lesson-modal-wrap .modal-title h1").html(n("Lesson","tutor"))}),l(document).on("assignment\_modal\_loaded",function(t,e){l(".tutor-lesson-modal-wrap .modal-title h1").html(n("Assignment","tutor"))}),l(document).on("keyup change",".tutor-number-validation",function(t){var e=l(this),o=parseInt(e.val()),a=parseInt(e.attr("data-min")),n=parseInt(e.attr("data-max"));o<a?e.val(a):n<o&&e.val(n)}),l(document).on("click",".tutor-instructor-feedback",function(t){t.preventDefault();var e=l(this);l.ajax({url:window.ajaxurl||\_tutorobject.ajaxurl,type:"POST",data:{attempts\_id:e.data("attemptid"),feedback:l(".tutor-instructor-feedback-content").val(),action:"tutor\_instructor\_feedback"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(e.closest(".course-content-item").remove(),tutor\_toast(n("Success","tutor"),e.data("toast\_success\_message"),"success"))},complete:function(){e.removeClass("tutor-updating-message")}})});var d=l(".tutor-announcement-add-new"),p=l(".tutor-announcement-edit"),m=l(".tutor-announcement-delete"),f=l(".tutor-announcement-details"),t=l(".tutor-announcement-close-btn"),\_=l(".tutor-accouncement-create-modal"),v=l(".tutor-accouncement-update-modal"),h=l(".tutor-accouncement-details-modal");function w(t,e){var o=new URL(window.location.href),a=o.searchParams;return a.set(t,e),o.search=a.toString(),\_tutorobject.is\_admin?a.set("paged",1):a.set("current\_page",1),o.search=a.toString(),o.toString()}l(d).click(function(){\_.addClass("show"),l("#tutor-annoucement-backend-create-modal").addClass("show")}),l(f).click(function(){var t=l(this).attr("announcement-date"),e=l(this).attr("announcement-id"),o=l(this).attr("course-id"),a=l(this).attr("course-name"),n=l(this).attr("announcement-title"),i=l(this).attr("announcement-summary");l(".tutor-announcement-detail-content").html("<h3>".concat(n,"</h3><p>").concat(i,"</p>")),l(".tutor-announcement-detail-course-info p").html("".concat(a)),l(".tutor-announcement-detail-date-info p").html("".concat(t)),l("#tutor-announcement-edit-from-detail").attr("announcement-id",e),l("#tutor-announcement-edit-from-detail").attr("course-id",o),l("#tutor-announcement-edit-from-detail").attr("announcement-title",n),l("#tutor-announcement-edit-from-detail").attr("announcement-summary",i),l("#tutor-announcement-delete-from-detail").attr("announcement-id",e),h.addClass("show")}),l(p).click(function(){h&&h.removeClass("show");var t=l(this).attr("announcement-id"),e=l(this).attr("course-id"),o=l(this).attr("announcement-title"),a=l(this).attr("announcement-summary");l("#tutor-announcement-course-id").val(e),l("#announcement\_id").val(t),l("#tutor-announcement-title").val(o),l("#tutor-announcement-summary").val(a),v.addClass("show")}),l(t).click(function(){\_.removeClass("show"),v.removeClass("show"),h.removeClass("show"),l("#tutor-annoucement-backend-create-modal").removeClass("show")}),l(".tutor-announcements-form").on("submit",function(t){t.preventDefault();var e=l(this).find('button\[type="submit"\]'),t=l(".tutor-announcements-form").serialize()+"&action=tutor\_announcement\_create&action\_type=create";l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){if(l(".tutor-alert").remove(),"success"==t.status&&location.reload(),"validation\_error"==t.status){l(".tutor-announcements-create-alert").append('<div class="tutor-alert alert-warning"></div>');for(var e=0,o=Object.entries(t.message);e<o.length;e++){var a=q(o\[e\],2),a=(a\[0\],a\[1\]);l(".tutor-announcements-create-alert .tutor-alert").append("<li>".concat(a,"</li>"))}}"fail"==t.status&&l(".tutor-announcements-create-alert").html("<li>".concat(t.message,"</li>"))},error:function(t){console.log(t)}})}),l(".tutor-announcements-update-form").on("submit",function(t){t.preventDefault();var e=l(this).find('button\[type="submit"\]'),t=l(".tutor-announcements-update-form").serialize()+"&action=tutor\_announcement\_create&action\_type=update";l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){if(l(".tutor-alert").remove(),"success"==t.status&&location.reload(),"validation\_error"==t.status){l(".tutor-announcements-update-alert").append('<div class="tutor-alert alert-warning"></div>');for(var e=0,o=Object.entries(t.message);e<o.length;e++){var a=q(o\[e\],2),a=(a\[0\],a\[1\]);l(".tutor-announcements-update-alert > .tutor-alert").append("<li>".concat(a,"</li>"))}}"fail"==t.status&&l(".tutor-announcements-create-alert").html("<li>".concat(t.message,"</li>"))},error:function(){}})}),l(m).click(function(){var t=l(this).attr("announcement-id"),e=l("#tutor-announcement-tr-"+t);confirm("Do you want to delete?")&&l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{action:"tutor\_announcement\_delete",announcement\_id:t},beforeSend:function(){},success:function(t){e.remove(),h.length&&h.removeClass("show"),"fail"==t.status&&console.log(t.message)},error:function(){}})}),l(".tutor-announcement-course-sorting").on("change",function(t){window.location=w("course-id",l(this).val())}),l(".tutor-announcement-order-sorting").on("change",function(t){window.location=w("order",l(this).val())}),l(".tutor-announcement-date-sorting").on("change",function(t){window.location=w("date",l(this).val())}),l(".tutor-announcement-search-sorting").on("click",function(t){window.location=w("search",l(".tutor-announcement-search-field").val())}),l(document).click(function(){l(".tutor-dropdown").removeClass("show")}),l(".tutor-dropdown").click(function(t){t.stopPropagation(),l(".tutor-dropdown").hasClass("show")&&l(".tutor-dropdown").removeClass("show"),l(this).addClass("show")});var b,m=".video\_source\_wrap\_external\_url input, .video\_source\_wrap\_vimeo input, .video\_source\_wrap\_youtube input, .video\_source\_wrap\_html5, .video\_source\_upload\_wrap\_html5";l("body").on("paste",m,function(t){t.stopImmediatePropagation();var r=l(this).closest(".lesson-modal-form-wrap").find(".tutor-option-field-video-duration"),e=r.find("label"),o=l(this).hasClass("video\_source\_wrap\_html5")||l(this).hasClass("video\_source\_upload\_wrap\_html5"),a=l(this).data("autofill\_url");l(this).data("autofill\_url",null);function n(t){t?0==e.find("img").length&&e.append(' <img src="'+window.\_tutorobject.loading\_icon\_url+'" style="display:inline-block"/>'):e.find("img").remove()}function i(t){for(var e=Math.floor(t/3600),o=Math.floor((t-3600\*e)/60),t=Math.round(t-3600\*e-60\*o),a=\[e=e<10?"0"+e:e,o=o<10?"0"+o:o,t=t<10?"0"+t:t\],n=r.find("input"),i=0;i<3;i++)n.eq(i).val(a\[i\])}var s,u,c,t=o?l(this).find("span").data("video\_url"):a||t.originalEvent.clipboardData.getData("text");o||l(this).parent().hasClass("video\_source\_wrap\_external\_url")?((s=document.createElement("video")).addEventListener("loadedmetadata",function(){i(s.duration),n(!1)}),n(!0),s.src=t):l(this).parent().hasClass("video\_source\_wrap\_vimeo")?(u=(c=t.match(/^.\*(vimeo\\.com\\/)((channels\\/\[A-z\]+\\/)|(groups\\/\[A-z\]+\\/videos\\/))?(\[0-9\]+)/))?c\[5\]:null)&&(n(!0),l.getJSON("http://vimeo.com/api/v2/video/"+u+"/json",function(t){Array.isArray(t)&&t\[0\]&&void 0!==t\[0\].duration&&i(t\[0\].duration),n(!1)})):l(this).parent().hasClass("video\_source\_wrap\_youtube")&&(u=!(!(c=t.match(/^.\*((youtu.be\\/)|(v\\/)|(\\/u\\/\\w\\/)|(embed\\/)|(watch\\?))\\??v?=?(\[^#&?\]\*).\*/))||11!=c\[7\].length)&&c\[7\],c=l(this).data("youtube\_api\_key"),u&&c&&(c="https://www.googleapis.com/youtube/v3/videos?id="+u+"&key="+c+"&part=contentDetails",n(!0),l.getJSON(c,function(t){"object"==g(t)&&t.items&&t.items\[0\]&&t.items\[0\].contentDetails&&t.items\[0\].contentDetails.duration&&i(function(t){t=(t=t.match(/PT(\\d+H)?(\\d+M)?(\\d+S)?/)).slice(1).map(function(t){if(null!=t)return t.replace(/\\D/,"")});return 3600\*(parseInt(t\[0\])||0)+60\*(parseInt(t\[1\])||0)+(parseInt(t\[2\])||0)}(t.items\[0\].contentDetails.duration)),n(!1)})))}).on("input",m,function(){b&&clearTimeout(b);var e=l(this);b=setTimeout(function(){var t=(t=e.val())?t.trim():"";console.log("Trigger",t),t&&e.data("autofill\_url",t).trigger("paste")},700)}),l(".tutor-form-submit-through-ajax").submit(function(t){t.preventDefault();var e=l(this),o=l(this).attr("action")||window.location.href,a=l(this).attr("method")||"GET",t=l(this).serializeObject();e.find("button").addClass("tutor-updating-message"),l.ajax({url:o,type:a,data:t,success:function(){tutor\_toast(n("Success","tutor"),e.data("toast\_success\_message"),"success")},complete:function(){e.find("button").removeClass("tutor-updating-message")}})}),l.ajaxSetup({data:tutor\_get\_nonce\_data()})}),jQuery.fn.serializeObject=function(){var t={},e=this.serializeArray();return jQuery.each(e,function(){t\[this.name\]?(t\[this.name\].push||(t\[this.name\]=\[t\[this.name\]\]),t\[this.name\].push(this.value||"")):t\[this.name\]=this.value||""}),t},window.tutor\_toast=function(t,e,o){var a=((window.\_tutorobject||{}).tutor\_url||"")+"assets/images/";jQuery(".tutor-toast-parent").length||jQuery("body").append('<div class="tutor-toast-parent"></div>');var n=jQuery(' <div> <div> <img src="'+{success:a+"icon-check.svg",error:a+"icon-cross.svg"}\[o\]+'"/> </div> <div> <div> <b>'+t+"</b> <span>"+e+'</span> </div> </div> <div> <i class="tutor-toast-close tutor-icon-line-cross"></i> </div> </div>');n.find(".tutor-toast-close").click(function(){n.remove()}),jQuery(".tutor-toast-parent").append(n),setTimeout(function(){n&&n.fadeOut("fast",function(){jQuery(this).remove()})},5e3)},window.disableAddoption=function(){function t(t){t.classList.contains("disabled")||t.classList.add("disabled")}function e(t){t.classList.contains("disabled")&&t.classList.remove("disabled")}var o=document.querySelector(".tutor\_select\_value\_holder").value,a=document.getElementById("tutor\_quiz\_question\_answers"),n=document.getElementById("tutor\_quiz\_question\_answer\_form"),i=document.querySelector(".add\_question\_answers\_option");("open\_ended"===o||"short\_answer"===o||("true\_false"===o||"fill\_in\_the\_blank"===o)&&(n.hasChildNodes()||a.hasChildNodes())?t:e)(i)}}},a={};function n(t){var e=a\[t\];if(void 0!==e)return e.exports;e=a\[t\]={exports:{}};return o\[t\](e,e.exports,n),e.exports}(()=>{"use strict";n(623);jQuery.fn.serializeObject=function(){var t={},e=this.serializeArray();return jQuery.each(e,function(){t\[this.name\]?(t\[this.name\].push||(t\[this.name\]=\[t\[this.name\]\]),t\[this.name\].push(this.value||"")):t\[this.name\]=this.value||""}),t},jQuery(document).ready(function(a){var t=window.location.href;if(0<t.indexOf("#")){a(".tutor-wizard-container > div").removeClass("active"),a(".tutor-wizard-container > div.tutor-setup-wizard-settings").addClass("active");t=t.split("#");if(t\[1\]){var e=a(".tutor-setup-title li."+t\[1\]).index();a(".tutor-setup-title li").removeClass("current"),a(".tutor-setup-content li").removeClass("active");for(var o=0;o<=e;o++)a(".tutor-setup-title li").eq(o).addClass("active"),e==o&&(a(".tutor-setup-title li").eq(o).addClass("current"),a(".tutor-setup-content li").eq(o).addClass("active"))}t=a("input\[name='enable\_course\_marketplace'").val();i(t||0)}function n(t){var e=t.parent().parent();t.prop("checked")?(e.find(".label-on").addClass("active"),e.find(".label-off").removeClass("active")):(e.find(".label-on").removeClass("active"),e.find(".label-off").addClass("active"))}function i(t){1==t?(a(".tutor-show-hide").addClass("active"),a(".tutor-setup-title li.instructor").removeClass("hide-this"),a(".tutor-setup-content li").eq(a(".tutor-setup-title li.instructor")).removeClass("hide-this")):(a(".tutor-show-hide").removeClass("active"),a(".tutor-setup-title li.instructor").addClass("hide-this"),a(".tutor-setup-content li").eq(a(".tutor-setup-title li.instructor")).addClass("hide-this"))}function r(){var t;a(".tutor-setup-title li.instructor").hasClass("hide-this")?(a(".tutor-steps").html(5),2<(t=a(".tutor-setup-title li.current").index())&&a(".tutor-setup-content li.active .tutor-steps-current").html(t)):(a(".tutor-steps").html(6),a(".tutor-setup-content li").each(function(){a(this).find(".tutor-steps-current").html(a(this).index()+1)}))}a(".tutor-setup-title li").on("click",function(t){t.preventDefault();var e=a(this).closest("li").index();a(".tutor-setup-title li").removeClass("active current"),a(".tutor-setup-title li").eq(e).addClass("active current"),a(".tutor-setup-content li").removeClass("active"),a(".tutor-setup-content li").eq(e).addClass("active"),window.location.hash=a("ul.tutor-setup-title li").eq(e).data("url");for(var o=0;o<=e;o++)a(".tutor-setup-title li").eq(o).addClass("active")}),a(".tutor-boarding-next, .tutor-boarding-skip").on("click",function(t){t.preventDefault(),a(".tutor-setup-wizard-boarding").removeClass("active"),a(".tutor-setup-wizard-type").addClass("active")}),a(".tutor-type-next, .tutor-type-skip").on("click",function(t){t.preventDefault(),a(".tutor-setup-wizard-type").removeClass("active"),a(".tutor-setup-wizard-settings").addClass("active"),a(".tutor-setup-title li").eq(0).addClass("active"),window.location.hash="general",i(a("input\[name='enable\_course\_marketplace\_setup'\]:checked").val())}),a("input\[type=radio\]\[name=enable\_course\_marketplace\_setup\]").change(function(){"0"==this.value?(a("input\[name=enable\_course\_marketplace\]").val(""),a("input\[name=enable\_tutor\_earning\]").val("")):"1"==this.value&&(a("input\[name=enable\_course\_marketplace\]").val("1"),a("input\[name=enable\_tutor\_earning\]").val("1"))}),a(".tutor-setup-previous").on("click",function(t){t.preventDefault();t=a(this).closest("li").index();a("ul.tutor-setup-title li").eq(t).removeClass("active"),0<t&&t==a(".tutor-setup-title li.instructor").index()+1&&a(".tutor-setup-title li.instructor").hasClass("hide-this")&&(t-=1),0<t?(a("ul.tutor-setup-title li").eq(t-1).addClass("active"),a("ul.tutor-setup-content li").removeClass("active").eq(t-1).addClass("active"),a("ul.tutor-setup-title li").removeClass("current").eq(t-1).addClass("current"),window.location.hash=a("ul.tutor-setup-title li").eq(t-1).data("url")):(a(".tutor-setup-wizard-settings").removeClass("active"),a(".tutor-setup-wizard-type").addClass("active"),window.location.hash=""),r()}),a(".tutor-setup-type-previous").on("click",function(t){a(".tutor-setup-wizard-type").removeClass("active"),a(".tutor-setup-wizard-boarding").addClass("active")}),a(".tutor-setup-skip, .tutor-setup-next").on("click",function(t){t.preventDefault();t=a(this).closest("li").index()+1;t==a(".tutor-setup-title li.instructor").index()&&a(".tutor-setup-title li.instructor").hasClass("hide-this")&&(t+=1),a("ul.tutor-setup-title li").eq(t).addClass("active"),a("ul.tutor-setup-content li").removeClass("active").eq(t).addClass("active"),a("ul.tutor-setup-title li").removeClass("current").eq(t).addClass("current"),window.location.hash=a("ul.tutor-setup-title li").eq(t).data("url"),r()}),a(".tutor-boarding-next, .tutor-boarding-skip").on("click",function(t){t.preventDefault(),a(".tutor-setup-wizard-boarding").removeClass("active"),a(".tutor-setup-wizard-type").addClass("active")}),a(".tutor-boarding").slick({speed:1e3,centerMode:!0,centerPadding:"19.5%",slidesToShow:1,arrows:!1,dots:!0,responsive:\[{breakpoint:768,settings:{arrows:!1,centerMode:!0,centerPadding:"50px",slidesToShow:1}},{breakpoint:480,settings:{arrows:!1,centerMode:!0,centerPadding:"30px",slidesToShow:1}}\]}),a(".tutor-redirect").on("click",function(t){var e=a(this);t.preventDefault();t=a("#tutor-setup-form").serializeObject();a.ajax({url:\_tutorobject.ajaxurl,type:"POST",data:t,success:function(t){t.success&&(window.location=e.data("url"))}})}),a(".tutor-reset-section").on("click",function(t){a(this).closest("li").find("input").val(function(){switch(this.type){case"text":return this.defaultValue;case"checkbox":case"radio":this.checked=this.defaultChecked;break;case"range":var t=a(this).closest(".limit-slider");if(!t.find(".range-input").hasClass("double-range-slider"))return t.find(".range-value").html(this.defaultValue),this.defaultValue;t.find(".range-value-1").html(this.defaultValue+"%"),a(".range-value-data-1").val(this.defaultValue),t.find(".range-value-2").html(100-this.defaultValue+"%"),a(".range-value-data-2").val(100-this.defaultValue);break;case"hidden":return this.value}})}),a(".tooltip-btn").on("click",function(t){t.preventDefault(),a(this).toggleClass("active")}),a(".input-switchbox").each(function(){n(a(this))}),a(".input-switchbox").click(function(){n(a(this))}),a(".selected").on("click",function(){a(".options-container").toggleClass("active")}),a(".option").each(function(){a(this).on("click",function(){a(".selected").html(a(this).find("label").html()),a(".options-container").removeClass("active")})}),a(".range-input").on("change mousemove",function(t){var e=a(this).val();a(this).parent().parent().find(".range-value").text(e)}),a(".double-range-slider").on("change mousemove",function(){var t=a(this).closest(".settings");t.find(".range-value-1").text(a(this).val()+"%"),t.find('input\[name="earning\_instructor\_commission"\]').val(a(this).val()),t.find(".range-value-2").text(100-a(this).val()+"%"),t.find('input\[name="earning\_admin\_commission"\]').val(100-a(this).val())}),a("#attempts-allowed-1").on("click",function(t){a("#attempts-allowed-numer").prop("disabled",!0)&&(a(this).parent().parent().parent().addClass("active"),a("#attempts-allowed-numer").prop("disabled",!1))}),a("#attempts-allowed-2").on("click",function(t){a("#attempts-allowed-2").is(":checked")&&(a(this).parent().parent().parent().removeClass("active"),a("#attempts-allowed-numer").prop("disabled",!0))}),a(".wizard-type-item").on("click",function(t){i(a(this).find("input").val())}),r(),a("input\[name='attempts-allowed'\]").on("change",function(t){"unlimited"==a(this).filter(":checked").val()?a("input\[name='quiz\_attempts\_allowed'\]").val(0):a("input\[name='quiz\_attempts\_allowed'\]").val(a("input\[name='attempts-allowed-number").val())}),a("input\[name='attempts-allowed-number'\]").on("change",function(t){a("input\[name='quiz\_attempts\_allowed'\]").val(a(this).val())}),a("input\[name='attempts-allowed-number'\]").on("focus",function(t){a("input\[name='attempts-allowed'\]\[value='single'\]").attr("checked",!0)})})})()})();
1
(()=>{var o={623:()=>{function g(t){return(g="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})(t)}function q(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var o=null==t?null:"undefined"!=typeof Symbol&&t\[Symbol.iterator\]||t\["@@iterator"\];if(null!=o){var a,n,i=\[\],r=!0,s=!1;try{for(o=o.call(t);!(r=(a=o.next()).done)&&(i.push(a.value),!e||i.length!==e);r=!0);}catch(t){s=!0,n=t}finally{try{r||null==o.return||o.return()}finally{if(s)throw n}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return a(t,e);var o=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(o="Object"===o&&t.constructor?t.constructor.name:o)||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?a(t,e):void 0}}(t,e)||function(){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 a(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,a=new Array(e);o<e;o++)a\[o\]=t\[o\];return a}window.tutor\_get\_nonce\_data=function(t){var e=window.\_tutorobject||{},o=e.nonce\_key||"",e=e\[o\]||"";return t?{key:o,value:e}:(t=e,(e=o)in(o={})?Object.defineProperty(o,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):o\[e\]=t,o)},window.tutor\_popup=function(r,o,a){var s,u=this;return this.popup\_wrapper=function(t){var e=""===o?"":'<img class="tutor-pop-icon" src="'+window.\_tutorobject.tutor\_url+"assets/images/"+o+'.svg"/>';return"<"+t+' class="tutor-component-popup-container"> <div class="tutor-component-popup-'+a+'"> <div class="tutor-component-content-container">'+e+'</div> <div class="tutor-component-button-container"></div> </div> </'+t+">"},this.popup=function(o){var t=o.title?"<h3>"+o.title+"</h3>":"",e=o.description?"<p>"+o.description+"</p>":"",a=Object.keys(o.buttons||{}).map(function(t){var e=o.buttons\[t\],t=e.id?"tutor-popup-"+e.id:"";return r('<button id="'+t+'" class="tutor-button tutor-button-'+e.class+'">'+e.title+"</button>").click(e.callback)}),n=(s=r(u.popup\_wrapper(o.wrapper\_tag||"div"))).find(".tutor-component-content-container");n.append(t),o.after\_title&&n.append(o.after\_title),n.append(e),o.after\_description&&n.append(o.after\_description),s.click(function(){r(this).remove()}).children().click(function(t){t.stopPropagation()});for(var i=0;i<a.length;i++)s.find(".tutor-component-button-container").append(a\[i\]);return r("body").append(s),s},{popup:this.popup}},window.tutorDotLoader=function(t){return' \\n <div class="tutor-dot-loader '.concat(t||"",'">\\n <span class="dot dot-1"></span>\\n <span class="dot dot-2"></span>\\n <span class="dot dot-3"></span>\\n <span class="dot dot-4"></span>\\n </div>')},window.tutor\_date\_picker=function(){var t;jQuery.datepicker&&(t=\_tutorobject.wp\_date\_format||"yy-mm-dd",$(".tutor\_date\_picker").datepicker({dateFormat:t}))},jQuery(document).ready(function(l){"use strict";var t=wp.i18n,n=t.\_\_;t.\_x,t.\_n,t.\_nx;function o(){var t;jQuery.datepicker&&(t=\_tutorobject.wp\_date\_format||"yy-mm-dd",l(".tutor\_date\_picker").datepicker({dateFormat:t})),l(document).on("keydown",".hasDatepicker, .tutor\_date\_picker",function(t){8!==t.keyCode&&t.preventDefault()})}function s(){l(".tutor-field-slider").each(function(){var t=l(this),o=t.closest(".tutor-field-type-slider").find('input\[type="hidden"\]'),a=t.closest(".tutor-field-type-slider").find(".tutor-field-type-slider-value"),e=parseFloat(t.closest(".tutor-field-type-slider").attr("data-min")),n=parseFloat(t.closest(".tutor-field-type-slider").attr("data-max"));t.slider({range:"max",min:e,max:n,value:o.val(),slide:function(t,e){a.text(e.value),o.val(e.value)}})})}function e(t){var e=t.element;return l('<span><i class="tutor-icon-'+l(e).data("icon")+'"></i> '+t.text+"</span>")}function i(){jQuery().sortable&&(l(".course-contents").sortable({handle:".course-move-handle",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){a()}}),l(".tutor-lessons:not(.drop-lessons)").sortable({connectWith:".tutor-lessons",items:"div.course-content-item",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){a()}}))}function a(){var i={};l(".tutor-topics-wrap").each(function(t,e){var o=l(this),a=parseInt(o.attr("id").match(/\\d+/)\[0\],10),n={};o.find(".course-content-item").each(function(t,e){var o=l(this),o=parseInt(o.attr("id").match(/\\d+/)\[0\],10);n\[t\]=o}),i\[t\]={topic\_id:a,lesson\_ids:n}}),l("#tutor\_topics\_lessons\_sorting").val(JSON.stringify(i))}function r(){return{init:function(){l(document).on("click",".tutor-select .tutor-select-option",function(t){t.preventDefault();var e=l(this);"true"!==e.attr("data-is-pro")?(t=e.html().trim(),e.closest(".tutor-select").find(".select-header .lead-option").html(t),e.closest(".tutor-select").find(".select-header input.tutor\_select\_value\_holder").val(e.attr("data-value")).trigger("change"),e.closest(".tutor-select-options").hide(),disableAddoption()):alert("Tutor Pro version required")}),l(document).on("click",".tutor-select .select-header",function(t){t.preventDefault(),l(this).closest(".tutor-select").find(".tutor-select-options").slideToggle()}),this.setValue(),this.hideOnOutSideClick()},setValue:function(){l(".tutor-select").each(function(){var t=l(this).find(".tutor-select-option");t.length&&t.each(function(){var t,e=l(this);"selected"===e.attr("data-selected")&&(t=e.html().trim(),e.closest(".tutor-select").find(".select-header .lead-option").html(t),e.closest(".tutor-select").find(".select-header input.tutor\_select\_value\_holder").val(e.attr("data-value")))})})},hideOnOutSideClick:function(){l(document).mouseup(function(t){var e=l(".tutor-select-options");l(t.target).closest(".select-header").length||e.is(t.target)||0!==e.has(t.target).length||e.hide()})},reInit:function(){this.setValue()}}}o(),s(),jQuery().select2&&l(".videosource\_select2").select2({width:"100%",templateSelection:e,templateResult:e,allowHtml:!0}),l(document).on("change",".tutor\_lesson\_video\_source",function(t){var e=l(this),o=l(this).val();o?l(".video-metabox-source-input-wrap").show():l(".video-metabox-source-input-wrap").hide(),e.closest(".tutor-option-field").find(".video-metabox-source-item").hide(),e.closest(".tutor-option-field").find(".video\_source\_wrap\_"+o).show()}),l(document).on("click",".tutor-course-thumbnail-upload-btn",function(t){t.preventDefault();var e,o=l(this);e||(e=wp.media({title:n("Select or Upload Media Of Your Chosen Persuasion","tutor"),button:{text:n("Use this media","tutor")},multiple:!1})).on("select",function(){var t=e.state().get("selection").first().toJSON();o.closest(".tutor-thumbnail-wrap").find(".thumbnail-img").attr("src",t.url),o.closest(".tutor-thumbnail-wrap").find("input").val(t.id),l(".tutor-course-thumbnail-delete-btn").show()}),e.open()}),l(document).on("click",".tutor-course-thumbnail-delete-btn",function(t){t.preventDefault();var e=l(this),t=e.closest(".tutor-thumbnail-wrap").find(".thumbnail-img").attr("data-placeholder-src");e.closest(".tutor-thumbnail-wrap").find(".thumbnail-img").attr("src",t),e.closest(".tutor-thumbnail-wrap").find("input").val(""),l(".tutor-course-thumbnail-delete-btn").hide()}),l(document).on("click",".create\_new\_topic\_btn",function(t){t.preventDefault(),l(".tutor-metabox-add-topics").slideToggle()}),l(document).on("click","#tutor-add-topic-btn",function(t){t.preventDefault();var e=l(this),t=e.closest(".tutor-metabox-add-topics").find("input, textarea").serializeObject();t.action="tutor\_add\_course\_topic",l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(l("#tutor-course-content-wrap").html(t.data.course\_contents),e.closest(".tutor-metabox-add-topics").find('input\[type!="hidden"\], textarea').each(function(){l(this).val("")}),e.closest(".tutor-metabox-add-topics").slideUp(),i())},complete:function(){e.removeClass("tutor-updating-message")}})}),l(".tutor-zoom-meeting-modal-wrap").on("submit",".tutor-meeting-modal-form",function(t){t.preventDefault();var e=l(this),o=e.serializeObject(),t=Intl.DateTimeFormat().resolvedOptions().timeZone;o.timezone=t;var a=e.find('button\[type="submit"\]');l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:o,beforeSend:function(){a.addClass("tutor-updating-message")},success:function(t){t.success?tutor\_toast(n("Success","tutor"),a.data("toast\_success\_message"),"success"):tutor\_toast(n("Update Error","tutor"),n("Meeting Update Failed","tutor"),"error"),t.course\_contents?(l(t.selector).html(t.course\_contents),"#tutor-course-content-wrap"==t.selector&&i(),l(".tutor-zoom-meeting-modal-wrap").removeClass("show")):location.reload()},complete:function(){a.removeClass("tutor-updating-message")}})}),l(document).on("change keyup",".course-edit-topic-title-input",function(t){t.preventDefault(),l(this).closest(".tutor-topics-top").find(".topic-inner-title").html(l(this).val())}),l(document).on("click",".topic-edit-icon",function(t){t.preventDefault(),l(this).closest(".tutor-topics-top").find(".tutor-topics-edit-form").slideToggle()}),l(document).on("click",".tutor-topics-edit-button",function(t){t.preventDefault();var e=l(this),o=e.closest(".tutor-topics-wrap"),t=parseInt(o.attr("id").match(/\\d+/)\[0\],10),a=e.closest(".tutor-topics-wrap").find('\[name="topic\_title"\]').val(),o=e.closest(".tutor-topics-wrap").find('\[name="topic\_summery"\]').val();l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{topic\_title:a,topic\_summery:o,topic\_id:t,action:"tutor\_update\_topic"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(e.closest(".tutor-topics-wrap").find("span.topic-inner-title").text(a),e.closest(".tutor-topics-wrap").find(".tutor-topics-edit-form").slideUp())},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click",".open-tutor-lesson-modal",function(t){t.preventDefault();var e=l(this),o=e.attr("data-lesson-id"),a=e.attr("data-topic-id"),n=l("#post\_ID").val();l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{lesson\_id:o,topic\_id:a,course\_id:n,action:"tutor\_load\_edit\_lesson\_modal"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){l(".tutor-lesson-modal-wrap .modal-container").html(t.data.output),l(".tutor-lesson-modal-wrap").attr({"data-lesson-id":o,"data-topic-id":a}).addClass("show");t=(t=tinyMCEPreInit.mceInit.tutor\_editor\_config)||tinyMCEPreInit.mceInit.course\_description;tinymce.init(t),tinymce.execCommand("mceRemoveEditor",!1,"tutor\_lesson\_modal\_editor"),tinyMCE.execCommand("mceAddEditor",!1,"tutor\_lesson\_modal\_editor"),l(document).trigger("lesson\_modal\_loaded",{lesson\_id:o,topic\_id:a,course\_id:n})},complete:function(){quicktags({id:"tutor\_lesson\_modal\_editor"}),e.removeClass("tutor-updating-message")}})}),l(document).on("click",".lesson\_thumbnail\_upload\_btn",function(t){t.preventDefault();var e,o=l(this);e||(e=wp.media({title:n("Select or Upload Media Of Your Chosen Persuasion","tutor"),button:{text:n("Use this media","tutor")},multiple:!1})).on("select",function(){var t=e.state().get("selection").first().toJSON();o.closest(".tutor-thumbnail-wrap").find(".thumbnail-img").html('<img src="'+t.url+'" alt="" /><a href="javascript:;" class="tutor-lesson-thumbnail-delete-btn"><i class="tutor-icon-line-cross"></i></a>'),o.closest(".tutor-thumbnail-wrap").find("input").val(t.id),l(".tutor-lesson-thumbnail-delete-btn").show()}),e.open()}),l(document).on("click",".tutor-lesson-thumbnail-delete-btn",function(t){t.preventDefault();t=l(this);t.closest(".tutor-thumbnail-wrap").find(".\_lesson\_thumbnail\_id").val(""),t.closest(".tutor-thumbnail-wrap").find(".thumbnail-img").html(""),t.hide()}),l(document).on("click",".tutor-delete-lesson-btn",function(t){var e;t.preventDefault(),confirm(n("Are you sure?","tutor"))&&(t=(e=l(this)).attr("data-lesson-id"),l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{lesson\_id:t,action:"tutor\_delete\_lesson\_by\_id"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&e.closest(".course-content-item").remove()},complete:function(){e.removeClass("tutor-updating-message")}}))}),l(document).on("click",".topic-delete-btn a",function(t){l(this).attr("data-topic-id");confirm(n("Are you sure to delete?","tutor"))||t.preventDefault()}),l(document).on("click",".tutor-expand-all-topic",function(t){t.preventDefault(),l(".tutor-topics-body").slideDown(),l(".expand-collapse-wrap i").removeClass("tutor-icon-light-down").addClass("tutor-icon-light-up")}),l(document).on("click",".tutor-collapse-all-topic",function(t){t.preventDefault(),l(".tutor-topics-body").slideUp(),l(".expand-collapse-wrap i").removeClass("tutor-icon-light-up").addClass("tutor-icon-light-down")}),l(document).on("click",".topic-inner-title, .expand-collapse-wrap",function(t){t.preventDefault();t=l(this);t.closest(".tutor-topics-wrap").find(".tutor-topics-body").slideToggle(),t.closest(".tutor-topics-wrap").find(".expand-collapse-wrap i").toggleClass("tutor-icon-light-down tutor-icon-light-up")}),l(document).on("click",".quiz-modal-btn-first-step",function(t){t.preventDefault();var e,o,a,n=l(this),i=l('\[name="quiz\_title"\]'),r=i.val(),t=l('\[name="quiz\_description"\]').val();r?(i.closest(".tutor-quiz-builder-group").find(".quiz\_form\_msg").html(""),e=l("#post\_ID").val(),o=n.closest(".tutor-modal-wrap").attr("quiz-for-post-id"),l("#tutor\_quiz\_builder\_quiz\_id").length?(a=l("#tutor\_quiz\_builder\_quiz\_id").val(),l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{quiz\_title:r,quiz\_description:t,quiz\_id:a,topic\_id:o,action:"tutor\_quiz\_builder\_quiz\_update"},beforeSend:function(){n.addClass("tutor-updating-message")},success:function(t){l("#tutor-quiz-"+a).html(t.data.output\_quiz\_row),l('#tutor-quiz-modal-tab-items-wrap a\[href="#quiz-builder-tab-questions"\]').trigger("click"),s()},complete:function(){n.removeClass("tutor-updating-message")}})):l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{quiz\_title:r,quiz\_description:t,course\_id:e,topic\_id:o,action:"tutor\_create\_quiz\_and\_load\_modal"},beforeSend:function(){n.addClass("tutor-updating-message")},success:function(t){l(".tutor-quiz-builder-modal-wrap .modal-container").html(t.data.output),l("#tutor-topics-"+o+" .tutor-lessons").append(t.data.output\_quiz\_row),l('#tutor-quiz-modal-tab-items-wrap a\[href="#quiz-builder-tab-questions"\]').trigger("click"),s(),l(document).trigger("quiz\_modal\_loaded",{topic\_id:o,course\_id:e})},complete:function(){n.removeClass("tutor-updating-message")}})):i.closest(".tutor-quiz-builder-group").find(".quiz\_form\_msg").html("Please enter quiz title")}),l(document).on("click",".open-tutor-quiz-modal",function(t){t.preventDefault();var e=l(this),o=e.attr("data-quiz-id"),a=e.attr("data-topic-id");null==a&&(a=e.closest(".tutor-modal-wrap").attr("quiz-for-post-id"));var n=l("#post\_ID").val();l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{quiz\_id:o,topic\_id:a,course\_id:n,action:"tutor\_load\_edit\_quiz\_modal"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){l(".tutor-quiz-builder-modal-wrap .modal-container").html(t.data.output),l(".tutor-quiz-builder-modal-wrap").attr("data-quiz-id",o).attr("quiz-for-post-id",a).addClass("show"),e.attr("data-back-to-tab")&&(t=e.attr("data-back-to-tab"),l('#tutor-quiz-modal-tab-items-wrap a\[href="'+t+'"\]').trigger("click")),l(document).trigger("quiz\_modal\_loaded",{quiz\_id:o,topic\_id:a,course\_id:n}),s(),jQuery().sortable&&l(".quiz-builder-questions-wrap").sortable({handle:".question-sorting",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){var a;a={},l(".quiz-builder-question-wrap").each(function(t,e){var o=l(this),o=parseInt(o.attr("data-question-id"),10);a\[t\]=o}),l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{sorted\_question\_ids:a,action:"tutor\_quiz\_question\_sorting"}})}})},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click",".quiz-modal-settings-save-btn",function(t){t.preventDefault();var e=l(this),o=l(".tutor-quiz-builder-modal-wrap").attr("data-quiz-id"),a=l("#current\_topic\_id\_for\_quiz").val(),t=l("#quiz-builder-tab-settings :input, #quiz-builder-tab-advanced-options :input").serializeObject();t.topic\_id=a,t.quiz\_id=o,t.action="tutor\_quiz\_modal\_update\_settings",l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&l("#tutor-course-content-wrap").html(t.data.course\_contents),t.success?tutor\_toast(n("Success","tutor"),e.data("toast\_success\_message"),"success"):tutor\_toast(n("Update Error","tutor"),n("Quiz Update Failed","tutor"),"error")},complete:function(){e.removeClass("tutor-updating-message"),"modal\_close"===e.attr("data-action")&&l(".tutor-modal-wrap").removeClass("show")}})}),l(document).on("click",".quiz-modal-question-save-btn",function(t){t.preventDefault();var e=l(this),o=l(".quiz\_question\_form :input").serializeObject();o.action="tutor\_quiz\_modal\_update\_question";t=e.closest(".tutor-modal-wrap").attr("quiz-for-post-id");o.topic\_id=t,l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:o,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success?e.closest(".tutor-quiz-builder-modal-contents").find(".open-tutor-quiz-modal").trigger("click"):void 0!==t.data&&l("#quiz\_validation\_msg\_wrap").html(t.data.validation\_msg)},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click",".modal-close-btn",function(t){t.preventDefault(),l(".tutor-modal-wrap").removeClass("show")}),l(document).on("keyup",function(t){27===t.keyCode&&l(".tutor-modal-wrap").removeClass("show")}),l(document).on("click",".tutor-add-quiz-btn",function(t){t.preventDefault();var e=l(this),o=l(this).closest(".tutor\_add\_quiz\_wrap").attr("data-add-quiz-under"),t=l(this).data("topic-id");l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{quiz\_for\_post\_id:o,current\_topic\_id:t,action:"tutor\_load\_quiz\_builder\_modal"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){l(".tutor-quiz-builder-modal-wrap .modal-container").html(t.data.output),l(".tutor-quiz-builder-modal-wrap").attr("quiz-for-post-id",o).addClass("show")},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click",".tutor-quiz-modal-tab-item",function(t){t.preventDefault();var e=l(this),o=l('\[name="quiz\_title"\]');o.val()?(o.closest(".tutor-quiz-builder-form-row").find(".quiz\_form\_msg").html(""),t=e.attr("href"),l(".quiz-builder-tab-container").hide(),l(t).show(),l("a.tutor-quiz-modal-tab-item").removeClass("active"),e.addClass("active")):o.closest(".tutor-quiz-builder-form-row").find(".quiz\_form\_msg").html('<p class="quiz-form-warning">Please save the quiz first</p>')}),l(document).on("click",".quiz-modal-btn-next, .quiz-modal-btn-back",function(t){t.preventDefault();t=l(this).attr("href");l('#tutor-quiz-modal-tab-items-wrap a\[href="'+t+'"\]').trigger("click")}),l(document).on("click",".quiz-modal-tab-navigation-btn.quiz-modal-btn-cancel",function(t){t.preventDefault(),l(".tutor-modal-wrap").removeClass("show")}),l(document).on("click",".tutor-quiz-open-question-form",function(t){t.preventDefault();var e=l(this),o=l("#tutor\_quiz\_builder\_quiz\_id").val(),a=l("#post\_ID").val(),t=e.attr("data-question-id"),a={quiz\_id:o,course\_id:a,action:"tutor\_quiz\_builder\_get\_question\_form"};t&&(a.question\_id=t),l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:a,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){l(".tutor-quiz-builder-modal-contents").html(t.data.output),r().reInit(),jQuery().sortable&&l("#tutor\_quiz\_question\_answers").sortable({handle:".tutor-quiz-answer-sort-icon",start:function(t,e){e.placeholder.css("visibility","visible")},stop:function(t,e){var a;a={},l(".tutor-quiz-answer-wrap").each(function(t,e){var o=l(this),o=parseInt(o.attr("data-answer-id"),10);a\[t\]=o}),l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{sorted\_answer\_ids:a,action:"tutor\_quiz\_answer\_sorting"}})}}),disableAddoption()},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click",".tutor-quiz-question-trash",function(t){t.preventDefault();var e=l(this),t=e.attr("data-question-id");l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{question\_id:t,action:"tutor\_quiz\_builder\_question\_delete"},beforeSend:function(){e.closest(".quiz-builder-question-wrap").remove()}})}),l(document).on("click",".add\_question\_answers\_option:not(.disabled)",function(t){t.preventDefault();var e=l(this),o=e.attr("data-question-id"),t=l(".quiz\_question\_form :input").serializeObject();t.question\_id=o,t.action="tutor\_quiz\_add\_question\_answers",l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){l("#tutor\_quiz\_question\_answer\_form").html(t.data.output),disableAddoption()},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click",".tutor-quiz-answer-edit a",function(t){t.preventDefault();var e=l(this),t=e.closest(".tutor-quiz-answer-wrap").attr("data-answer-id");l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{answer\_id:t,action:"tutor\_quiz\_edit\_question\_answer"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){l("#tutor\_quiz\_question\_answer\_form").html(t.data.output)},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click","#quiz-answer-save-btn",function(t){t.preventDefault();var e=l(this),t=l(".quiz\_question\_form :input").serializeObject();t.action="tutor\_save\_quiz\_answer\_options",l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){l("#quiz\_validation\_msg\_wrap").html(""),e.addClass("tutor-updating-message")},success:function(t){l("#tutor\_quiz\_question\_answers").trigger("refresh")},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click","#quiz-answer-edit-btn",function(t){t.preventDefault();var e=l(this),t=l(".quiz\_question\_form :input").serializeObject();t.action="tutor\_update\_quiz\_answer\_options",l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){l("#tutor\_quiz\_question\_answers").trigger("refresh")},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("change",".tutor-quiz-answers-mark-correct-wrap input",function(t){t.preventDefault();var e=l(this),o=e.val(),t=1;e.prop("checked")||(t=0),l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{answer\_id:o,inputValue:t,action:"tutor\_mark\_answer\_as\_correct"}})}),l(document).on("refresh","#tutor\_quiz\_question\_answers",function(t){t.preventDefault();var e=l(this),o=e.attr("data-question-id"),t=l(".tutor\_select\_value\_holder").val();l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{question\_id:o,question\_type:t,action:"tutor\_quiz\_builder\_get\_answers\_by\_question"},beforeSend:function(){e.addClass("tutor-updating-message"),l("#tutor\_quiz\_question\_answer\_form").html("")},success:function(t){t.success&&e.html(t.data.output)},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click",".tutor-quiz-answer-trash-wrap a.answer-trash-btn",function(t){t.preventDefault();var e=l(this),t=e.attr("data-answer-id");l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{answer\_id:t,action:"tutor\_quiz\_builder\_delete\_answer"},beforeSend:function(){e.closest(".tutor-quiz-answer-wrap").remove()}})}),l(document).on("click",".tutor-delete-quiz-btn",function(t){var e;t.preventDefault(),confirm(n("Are you sure?","tutor"))&&(t=(e=l(this)).attr("data-quiz-id"),l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{quiz\_id:t,action:"tutor\_delete\_quiz\_by\_id"},beforeSend:function(){e.closest(".course-content-item").remove()}}))}),r().init(),l(document).on("change","input.tutor\_select\_value\_holder",function(t){l(this);l(".add\_question\_answers\_option").trigger("click"),l("#tutor\_quiz\_question\_answers").trigger("refresh")}),l(document).on("click",".tutor-media-upload-btn",function(t){t.preventDefault();var e,o=l(this);e||(e=wp.media({title:n("Select or Upload Media Of Your Chosen Persuasion","tutor"),button:{text:n("Use this media","tutor")},multiple:!1})).on("select",function(){var t=e.state().get("selection").first().toJSON();o.html('<img src="'+t.url+'" alt="" />'),o.closest(".tutor-media-upload-wrap").find("input").val(t.id)}),e.open()}),l(document).on("click",".tutor-media-upload-trash",function(t){t.preventDefault();t=l(this);t.closest(".tutor-media-upload-wrap").find(".tutor-media-upload-btn").html('<i class="tutor-icon-image1"></i>'),t.closest(".tutor-media-upload-wrap").find("input").val("")});var u,c=(u=0,function(t,e){clearTimeout(u),u=setTimeout(t,e)});l(document).on("click",".tutor-add-instructor-btn",function(t){t.preventDefault();var e=l(this),t=l("#post\_ID").val();l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{course\_id:t,action:"tutor\_load\_instructors\_modal"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(l(".tutor-instructors-modal-wrap .modal-container").html(t.data.output),l(".tutor-instructors-modal-wrap").addClass("show"))},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("change keyup",".tutor-instructors-modal-wrap .tutor-modal-search-input",function(t){t.preventDefault();var o=l(this),a=l(".tutor-modal-wrap");c(function(){var t=o.val(),e=l("#post\_ID").val();l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{course\_id:e,search\_terms:t,action:"tutor\_load\_instructors\_modal"},beforeSend:function(){a.addClass("loading")},success:function(t){t.success&&(l(".tutor-instructors-modal-wrap .modal-container").html(t.data.output),l(".tutor-instructors-modal-wrap").addClass("show"))},complete:function(){a.removeClass("loading")}})},1e3)}),l(document).on("click",".add\_instructor\_to\_course\_btn",function(t){t.preventDefault();var e=l(this),o=l(".tutor-modal-wrap"),t=l("#post\_ID").val(),o=o.find("input").serializeObject();o.course\_id=t,o.action="tutor\_add\_instructors\_to\_course",l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:o,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(l(".tutor-course-available-instructors").html(t.data.output),l(".tutor-modal-wrap").removeClass("show"))},complete:function(){e.removeClass("tutor-updating-message")}})}),l(document).on("click",".tutor-instructor-delete-btn",function(t){t.preventDefault();var e=l(this),o=l("#post\_ID").val(),t=e.closest(".added-instructor-item").attr("data-instructor-id");l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{course\_id:o,instructor\_id:t,action:"detach\_instructor\_from\_course"},success:function(t){t.success&&e.closest(".added-instructor-item").remove()}})}),l(document).on("click",".settings-tabs-navs li",function(t){t.preventDefault();var e=l(this),o=e.find("a").attr("data-target"),t=e.find("a").attr("href");e.addClass("active").siblings("li.active").removeClass("active"),l(".settings-tab-wrap").removeClass("active").hide(),l(o).addClass("active").show(),window.history.pushState({},"",t)}),l(document).on("lesson\_modal\_loaded quiz\_modal\_loaded assignment\_modal\_loaded",function(t,e){jQuery().select2&&l(".select2\_multiselect").select2({dropdownCssClass:"increasezindex"}),o()}),l(document).on("lesson\_modal\_loaded",function(t,e){l(".tutor-lesson-modal-wrap .modal-title h1").html(n("Lesson","tutor"))}),l(document).on("assignment\_modal\_loaded",function(t,e){l(".tutor-lesson-modal-wrap .modal-title h1").html(n("Assignment","tutor"))}),l(document).on("keyup change",".tutor-number-validation",function(t){var e=l(this),o=parseInt(e.val()),a=parseInt(e.attr("data-min")),n=parseInt(e.attr("data-max"));o<a?e.val(a):n<o&&e.val(n)}),l(document).on("click",".tutor-instructor-feedback",function(t){t.preventDefault();var e=l(this);l.ajax({url:window.ajaxurl||\_tutorobject.ajaxurl,type:"POST",data:{attempts\_id:e.data("attemptid"),feedback:l(".tutor-instructor-feedback-content").val(),action:"tutor\_instructor\_feedback"},beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){t.success&&(e.closest(".course-content-item").remove(),tutor\_toast(n("Success","tutor"),e.data("toast\_success\_message"),"success"))},complete:function(){e.removeClass("tutor-updating-message")}})});var d=l(".tutor-announcement-add-new"),p=l(".tutor-announcement-edit"),m=l(".tutor-announcement-delete"),f=l(".tutor-announcement-details"),t=l(".tutor-announcement-close-btn"),\_=l(".tutor-accouncement-create-modal"),v=l(".tutor-accouncement-update-modal"),h=l(".tutor-accouncement-details-modal");function w(t,e){var o=new URL(window.location.href),a=o.searchParams;return a.set(t,e),o.search=a.toString(),\_tutorobject.is\_admin?a.set("paged",1):a.set("current\_page",1),o.search=a.toString(),o.toString()}l(d).click(function(){\_.addClass("show"),l("#tutor-annoucement-backend-create-modal").addClass("show")}),l(f).click(function(){var t=l(this).attr("announcement-date"),e=l(this).attr("announcement-id"),o=l(this).attr("course-id"),a=l(this).attr("course-name"),n=l(this).attr("announcement-title"),i=l(this).attr("announcement-summary");l(".tutor-announcement-detail-content").html("<h3>".concat(n,"</h3><p>").concat(i,"</p>")),l(".tutor-announcement-detail-course-info p").html("".concat(a)),l(".tutor-announcement-detail-date-info p").html("".concat(t)),l("#tutor-announcement-edit-from-detail").attr("announcement-id",e),l("#tutor-announcement-edit-from-detail").attr("course-id",o),l("#tutor-announcement-edit-from-detail").attr("announcement-title",n),l("#tutor-announcement-edit-from-detail").attr("announcement-summary",i),l("#tutor-announcement-delete-from-detail").attr("announcement-id",e),h.addClass("show")}),l(p).click(function(){h&&h.removeClass("show");var t=l(this).attr("announcement-id"),e=l(this).attr("course-id"),o=l(this).attr("announcement-title"),a=l(this).attr("announcement-summary");l("#tutor-announcement-course-id").val(e),l("#announcement\_id").val(t),l("#tutor-announcement-title").val(o),l("#tutor-announcement-summary").val(a),v.addClass("show")}),l(t).click(function(){\_.removeClass("show"),v.removeClass("show"),h.removeClass("show"),l("#tutor-annoucement-backend-create-modal").removeClass("show")}),l(".tutor-announcements-form").on("submit",function(t){t.preventDefault();var e=l(this).find('button\[type="submit"\]'),t=l(".tutor-announcements-form").serialize()+"&action=tutor\_announcement\_create&action\_type=create";l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){if(l(".tutor-alert").remove(),"success"==t.status&&location.reload(),"validation\_error"==t.status){l(".tutor-announcements-create-alert").append('<div class="tutor-alert alert-warning"></div>');for(var e=0,o=Object.entries(t.message);e<o.length;e++){var a=q(o\[e\],2),a=(a\[0\],a\[1\]);l(".tutor-announcements-create-alert .tutor-alert").append("<li>".concat(a,"</li>"))}}"fail"==t.status&&l(".tutor-announcements-create-alert").html("<li>".concat(t.message,"</li>"))},error:function(t){console.log(t)}})}),l(".tutor-announcements-update-form").on("submit",function(t){t.preventDefault();var e=l(this).find('button\[type="submit"\]'),t=l(".tutor-announcements-update-form").serialize()+"&action=tutor\_announcement\_create&action\_type=update";l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:t,beforeSend:function(){e.addClass("tutor-updating-message")},success:function(t){if(l(".tutor-alert").remove(),"success"==t.status&&location.reload(),"validation\_error"==t.status){l(".tutor-announcements-update-alert").append('<div class="tutor-alert alert-warning"></div>');for(var e=0,o=Object.entries(t.message);e<o.length;e++){var a=q(o\[e\],2),a=(a\[0\],a\[1\]);l(".tutor-announcements-update-alert > .tutor-alert").append("<li>".concat(a,"</li>"))}}"fail"==t.status&&l(".tutor-announcements-create-alert").html("<li>".concat(t.message,"</li>"))},error:function(){}})}),l(m).click(function(){var t=l(this).attr("announcement-id"),e=l("#tutor-announcement-tr-"+t);confirm("Do you want to delete?")&&l.ajax({url:window.\_tutorobject.ajaxurl,type:"POST",data:{action:"tutor\_announcement\_delete",announcement\_id:t},beforeSend:function(){},success:function(t){e.remove(),h.length&&h.removeClass("show"),"fail"==t.status&&console.log(t.message)},error:function(){}})}),l(".tutor-announcement-course-sorting").on("change",function(t){window.location=w("course-id",l(this).val())}),l(".tutor-announcement-order-sorting").on("change",function(t){window.location=w("order",l(this).val())}),l(".tutor-announcement-date-sorting").on("change",function(t){window.location=w("date",l(this).val())}),l(".tutor-announcement-search-sorting").on("click",function(t){window.location=w("search",l(".tutor-announcement-search-field").val())}),l(document).click(function(){l(".tutor-dropdown").removeClass("show")}),l(".tutor-dropdown").click(function(t){t.stopPropagation(),l(".tutor-dropdown").hasClass("show")&&l(".tutor-dropdown").removeClass("show"),l(this).addClass("show")});var b,m=".video\_source\_wrap\_external\_url input, .video\_source\_wrap\_vimeo input, .video\_source\_wrap\_youtube input, .video\_source\_wrap\_html5, .video\_source\_upload\_wrap\_html5";l("body").on("paste",m,function(t){t.stopImmediatePropagation();var r=l(this).closest(".lesson-modal-form-wrap").find(".tutor-option-field-video-duration"),e=r.find("label"),o=l(this).hasClass("video\_source\_wrap\_html5")||l(this).hasClass("video\_source\_upload\_wrap\_html5"),a=l(this).data("autofill\_url");l(this).data("autofill\_url",null);function n(t){t?0==e.find("img").length&&e.append(' <img src="'+window.\_tutorobject.loading\_icon\_url+'" style="display:inline-block"/>'):e.find("img").remove()}function i(t){for(var e=Math.floor(t/3600),o=Math.floor((t-3600\*e)/60),t=Math.round(t-3600\*e-60\*o),a=\[e=e<10?"0"+e:e,o=o<10?"0"+o:o,t=t<10?"0"+t:t\],n=r.find("input"),i=0;i<3;i++)n.eq(i).val(a\[i\])}var s,u,c,t=o?l(this).find("span").data("video\_url"):a||t.originalEvent.clipboardData.getData("text");o||l(this).parent().hasClass("video\_source\_wrap\_external\_url")?((s=document.createElement("video")).addEventListener("loadedmetadata",function(){i(s.duration),n(!1)}),n(!0),s.src=t):l(this).parent().hasClass("video\_source\_wrap\_vimeo")?(u=(c=t.match(/^.\*(vimeo\\.com\\/)((channels\\/\[A-z\]+\\/)|(groups\\/\[A-z\]+\\/videos\\/))?(\[0-9\]+)/))?c\[5\]:null)&&(n(!0),l.getJSON("http://vimeo.com/api/v2/video/"+u+"/json",function(t){Array.isArray(t)&&t\[0\]&&void 0!==t\[0\].duration&&i(t\[0\].duration),n(!1)})):l(this).parent().hasClass("video\_source\_wrap\_youtube")&&(u=!(!(c=t.match(/^.\*((youtu.be\\/)|(v\\/)|(\\/u\\/\\w\\/)|(embed\\/)|(watch\\?))\\??v?=?(\[^#&?\]\*).\*/))||11!=c\[7\].length)&&c\[7\],c=l(this).data("youtube\_api\_key"),u&&c&&(c="https://www.googleapis.com/youtube/v3/videos?id="+u+"&key="+c+"&part=contentDetails",n(!0),l.getJSON(c,function(t){"object"==g(t)&&t.items&&t.items\[0\]&&t.items\[0\].contentDetails&&t.items\[0\].contentDetails.duration&&i(function(t){t=(t=t.match(/PT(\\d+H)?(\\d+M)?(\\d+S)?/)).slice(1).map(function(t){if(null!=t)return t.replace(/\\D/,"")});return 3600\*(parseInt(t\[0\])||0)+60\*(parseInt(t\[1\])||0)+(parseInt(t\[2\])||0)}(t.items\[0\].contentDetails.duration)),n(!1)})))}).on("input",m,function(){b&&clearTimeout(b);var e=l(this);b=setTimeout(function(){var t=(t=e.val())?t.trim():"";console.log("Trigger",t),t&&e.data("autofill\_url",t).trigger("paste")},700)}),l(".tutor-form-submit-through-ajax").submit(function(t){t.preventDefault();var e=l(this),o=l(this).attr("action")||window.location.href,a=l(this).attr("method")||"GET",t=l(this).serializeObject();e.find("button").addClass("tutor-updating-message"),l.ajax({url:o,type:a,data:t,success:function(){tutor\_toast(n("Success","tutor"),e.data("toast\_success\_message"),"success")},complete:function(){e.find("button").removeClass("tutor-updating-message")}})}),l.ajaxSetup({data:tutor\_get\_nonce\_data()})}),jQuery.fn.serializeObject=function(){var t={},e=this.serializeArray();return jQuery.each(e,function(){t\[this.name\]?(t\[this.name\].push||(t\[this.name\]=\[t\[this.name\]\]),t\[this.name\].push(this.value||"")):t\[this.name\]=this.value||""}),t},window.tutor\_toast=function(t,e,o){var a=((window.\_tutorobject||{}).tutor\_url||"")+"assets/images/";jQuery(".tutor-toast-parent").length||jQuery("body").append('<div class="tutor-toast-parent"></div>');var n=jQuery(' <div> <div> <img src="'+{success:a+"icon-check.svg",error:a+"icon-cross.svg"}\[o\]+'"/> </div> <div> <div> <b>'+t+"</b> <span>"+e+'</span> </div> </div> <div> <i class="tutor-toast-close tutor-icon-line-cross"></i> </div> </div>');n.find(".tutor-toast-close").click(function(){n.remove()}),jQuery(".tutor-toast-parent").append(n),setTimeout(function(){n&&n.fadeOut("fast",function(){jQuery(this).remove()})},5e3)},window.disableAddoption=function(){function t(t){t.classList.contains("disabled")||t.classList.add("disabled")}function e(t){t.classList.contains("disabled")&&t.classList.remove("disabled")}var o=document.querySelector(".tutor\_select\_value\_holder").value,a=document.getElementById("tutor\_quiz\_question\_answers"),n=document.getElementById("tutor\_quiz\_question\_answer\_form"),i=document.querySelector(".add\_question\_answers\_option");("open\_ended"===o||"short\_answer"===o||("true\_false"===o||"fill\_in\_the\_blank"===o)&&(n.hasChildNodes()||a.hasChildNodes())?t:e)(i)}},896:()=>{window.jQuery(document).ready(function(o){var a=wp.i18n.\_\_;o(document).on("click",".tutor-copy-text",function(t){t.stopImmediatePropagation(),t.preventDefault();var e=o(this).data("text"),t=o("<input>");o("body").append(t),t.val(e).select(),document.execCommand("copy"),t.remove(),tutor\_toast(a("Copied!","tutor"),e,"success")})})}},a={};function n(t){var e=a\[t\];if(void 0!==e)return e.exports;e=a\[t\]={exports:{}};return o\[t\](e,e.exports,n),e.exports}(()=>{"use strict";n(896),n(623);jQuery.fn.serializeObject=function(){var t={},e=this.serializeArray();return jQuery.each(e,function(){t\[this.name\]?(t\[this.name\].push||(t\[this.name\]=\[t\[this.name\]\]),t\[this.name\].push(this.value||"")):t\[this.name\]=this.value||""}),t},jQuery(document).ready(function(a){var t=window.location.href;if(0<t.indexOf("#")){a(".tutor-wizard-container > div").removeClass("active"),a(".tutor-wizard-container > div.tutor-setup-wizard-settings").addClass("active");t=t.split("#");if(t\[1\]){var e=a(".tutor-setup-title li."+t\[1\]).index();a(".tutor-setup-title li").removeClass("current"),a(".tutor-setup-content li").removeClass("active");for(var o=0;o<=e;o++)a(".tutor-setup-title li").eq(o).addClass("active"),e==o&&(a(".tutor-setup-title li").eq(o).addClass("current"),a(".tutor-setup-content li").eq(o).addClass("active"))}t=a("input\[name='enable\_course\_marketplace'").val();i(t||0)}function n(t){var e=t.parent().parent();t.prop("checked")?(e.find(".label-on").addClass("active"),e.find(".label-off").removeClass("active")):(e.find(".label-on").removeClass("active"),e.find(".label-off").addClass("active"))}function i(t){1==t?(a(".tutor-show-hide").addClass("active"),a(".tutor-setup-title li.instructor").removeClass("hide-this"),a(".tutor-setup-content li").eq(a(".tutor-setup-title li.instructor")).removeClass("hide-this")):(a(".tutor-show-hide").removeClass("active"),a(".tutor-setup-title li.instructor").addClass("hide-this"),a(".tutor-setup-content li").eq(a(".tutor-setup-title li.instructor")).addClass("hide-this"))}function r(){var t;a(".tutor-setup-title li.instructor").hasClass("hide-this")?(a(".tutor-steps").html(5),2<(t=a(".tutor-setup-title li.current").index())&&a(".tutor-setup-content li.active .tutor-steps-current").html(t)):(a(".tutor-steps").html(6),a(".tutor-setup-content li").each(function(){a(this).find(".tutor-steps-current").html(a(this).index()+1)}))}a(".tutor-setup-title li").on("click",function(t){t.preventDefault();var e=a(this).closest("li").index();a(".tutor-setup-title li").removeClass("active current"),a(".tutor-setup-title li").eq(e).addClass("active current"),a(".tutor-setup-content li").removeClass("active"),a(".tutor-setup-content li").eq(e).addClass("active"),window.location.hash=a("ul.tutor-setup-title li").eq(e).data("url");for(var o=0;o<=e;o++)a(".tutor-setup-title li").eq(o).addClass("active")}),a(".tutor-boarding-next, .tutor-boarding-skip").on("click",function(t){t.preventDefault(),a(".tutor-setup-wizard-boarding").removeClass("active"),a(".tutor-setup-wizard-type").addClass("active")}),a(".tutor-type-next, .tutor-type-skip").on("click",function(t){t.preventDefault(),a(".tutor-setup-wizard-type").removeClass("active"),a(".tutor-setup-wizard-settings").addClass("active"),a(".tutor-setup-title li").eq(0).addClass("active"),window.location.hash="general",i(a("input\[name='enable\_course\_marketplace\_setup'\]:checked").val())}),a("input\[type=radio\]\[name=enable\_course\_marketplace\_setup\]").change(function(){"0"==this.value?(a("input\[name=enable\_course\_marketplace\]").val(""),a("input\[name=enable\_tutor\_earning\]").val("")):"1"==this.value&&(a("input\[name=enable\_course\_marketplace\]").val("1"),a("input\[name=enable\_tutor\_earning\]").val("1"))}),a(".tutor-setup-previous").on("click",function(t){t.preventDefault();t=a(this).closest("li").index();a("ul.tutor-setup-title li").eq(t).removeClass("active"),0<t&&t==a(".tutor-setup-title li.instructor").index()+1&&a(".tutor-setup-title li.instructor").hasClass("hide-this")&&(t-=1),0<t?(a("ul.tutor-setup-title li").eq(t-1).addClass("active"),a("ul.tutor-setup-content li").removeClass("active").eq(t-1).addClass("active"),a("ul.tutor-setup-title li").removeClass("current").eq(t-1).addClass("current"),window.location.hash=a("ul.tutor-setup-title li").eq(t-1).data("url")):(a(".tutor-setup-wizard-settings").removeClass("active"),a(".tutor-setup-wizard-type").addClass("active"),window.location.hash=""),r()}),a(".tutor-setup-type-previous").on("click",function(t){a(".tutor-setup-wizard-type").removeClass("active"),a(".tutor-setup-wizard-boarding").addClass("active")}),a(".tutor-setup-skip, .tutor-setup-next").on("click",function(t){t.preventDefault();t=a(this).closest("li").index()+1;t==a(".tutor-setup-title li.instructor").index()&&a(".tutor-setup-title li.instructor").hasClass("hide-this")&&(t+=1),a("ul.tutor-setup-title li").eq(t).addClass("active"),a("ul.tutor-setup-content li").removeClass("active").eq(t).addClass("active"),a("ul.tutor-setup-title li").removeClass("current").eq(t).addClass("current"),window.location.hash=a("ul.tutor-setup-title li").eq(t).data("url"),r()}),a(".tutor-boarding-next, .tutor-boarding-skip").on("click",function(t){t.preventDefault(),a(".tutor-setup-wizard-boarding").removeClass("active"),a(".tutor-setup-wizard-type").addClass("active")}),a(".tutor-boarding").slick({speed:1e3,centerMode:!0,centerPadding:"19.5%",slidesToShow:1,arrows:!1,dots:!0,responsive:\[{breakpoint:768,settings:{arrows:!1,centerMode:!0,centerPadding:"50px",slidesToShow:1}},{breakpoint:480,settings:{arrows:!1,centerMode:!0,centerPadding:"30px",slidesToShow:1}}\]}),a(".tutor-redirect").on("click",function(t){var e=a(this);t.preventDefault();t=a("#tutor-setup-form").serializeObject();a.ajax({url:\_tutorobject.ajaxurl,type:"POST",data:t,success:function(t){t.success&&(window.location=e.data("url"))}})}),a(".tutor-reset-section").on("click",function(t){a(this).closest("li").find("input").val(function(){switch(this.type){case"text":return this.defaultValue;case"checkbox":case"radio":this.checked=this.defaultChecked;break;case"range":var t=a(this).closest(".limit-slider");if(!t.find(".range-input").hasClass("double-range-slider"))return t.find(".range-value").html(this.defaultValue),this.defaultValue;t.find(".range-value-1").html(this.defaultValue+"%"),a(".range-value-data-1").val(this.defaultValue),t.find(".range-value-2").html(100-this.defaultValue+"%"),a(".range-value-data-2").val(100-this.defaultValue);break;case"hidden":return this.value}})}),a(".tooltip-btn").on("click",function(t){t.preventDefault(),a(this).toggleClass("active")}),a(".input-switchbox").each(function(){n(a(this))}),a(".input-switchbox").click(function(){n(a(this))}),a(".selected").on("click",function(){a(".options-container").toggleClass("active")}),a(".option").each(function(){a(this).on("click",function(){a(".selected").html(a(this).find("label").html()),a(".options-container").removeClass("active")})}),a(".range-input").on("change mousemove",function(t){var e=a(this).val();a(this).parent().parent().find(".range-value").text(e)}),a(".double-range-slider").on("change mousemove",function(){var t=a(this).closest(".settings");t.find(".range-value-1").text(a(this).val()+"%"),t.find('input\[name="earning\_instructor\_commission"\]').val(a(this).val()),t.find(".range-value-2").text(100-a(this).val()+"%"),t.find('input\[name="earning\_admin\_commission"\]').val(100-a(this).val())}),a("#attempts-allowed-1").on("click",function(t){a("#attempts-allowed-numer").prop("disabled",!0)&&(a(this).parent().parent().parent().addClass("active"),a("#attempts-allowed-numer").prop("disabled",!1))}),a("#attempts-allowed-2").on("click",function(t){a("#attempts-allowed-2").is(":checked")&&(a(this).parent().parent().parent().removeClass("active"),a("#attempts-allowed-numer").prop("disabled",!0))}),a(".wizard-type-item").on("click",function(t){i(a(this).find("input").val())}),r(),a("input\[name='attempts-allowed'\]").on("change",function(t){"unlimited"==a(this).filter(":checked").val()?a("input\[name='quiz\_attempts\_allowed'\]").val(0):a("input\[name='quiz\_attempts\_allowed'\]").val(a("input\[name='attempts-allowed-number").val())}),a("input\[name='attempts-allowed-number'\]").on("change",function(t){a("input\[name='quiz\_attempts\_allowed'\]").val(a(this).val())}),a("input\[name='attempts-allowed-number'\]").on("focus",function(t){a("input\[name='attempts-allowed'\]\[value='single'\]").attr("checked",!0)})})})()})();
tutor/trunk/classes/Assets.php
r2610239
r2615802
158
158
}
159
159
//End: chart data
160
if (tutor\_utils()->get\_option('load\_tutor\_css')){
161
wp\_enqueue\_style('tutor-frontend', tutor()->url."assets/css/tutor-front{$suffix}.css", array(), tutor()->version);
162
}
160
161
wp\_enqueue\_style('tutor-frontend', tutor()->url."assets/css/tutor-front{$suffix}.css", array(), tutor()->version);
163
162
164
163
/\*\*
tutor/trunk/classes/Options.php
r2610239
r2615802
151
151
'default' => '0',
152
152
'desc' => \_\_('Disable to use the default WordPress login page', 'tutor'),
153
),
154
'load\_tutor\_css' => array(
155
'type' => 'checkbox',
156
'label' => \_\_('Load Tutor CSS', 'tutor'),
157
'label\_title' => \_\_('Enable', 'tutor'),
158
'default' => '0',
159
'desc' => \_\_('If your theme has its own styling, then you can turn it off to load CSS from the plugin directory', 'tutor'),
160
153
),
161
154
'student\_must\_login\_to\_view\_course' => array(
tutor/trunk/classes/Quiz.php
r2585449
r2615802
285
285
$attempt\_id = (int) sanitize\_text\_field(tutor\_utils()->avalue\_dot('attempt\_id', $\_POST));
286
286
$attempt = tutor\_utils()->get\_attempt($attempt\_id);
287
$course\_id = tutor\_utils()->get\_course\_by\_quiz($attempt->quiz\_id)->ID;
287
288
288
289
$attempt\_answers = isset($\_POST\['attempt'\]) ? $\_POST\['attempt'\] : false;
…
…
454
455
}
455
456
456
do\_action('tutor\_quiz/attempt\_ended', $attempt\_id);
457
do\_action('tutor\_quiz/attempt\_ended', $attempt\_id, $course\_id, $user\_id);
457
458
return true;
458
459
}
…
…
549
550
}
550
551
551
$attempt\_answer = $wpdb->get\_row($wpdb->prepare("SELECT \* FROM {$wpdb->prefix}tutor\_quiz\_attempt\_answers WHERE attempt\_answer\_id = %d ", $attempt\_answer\_id));
552
$attempt\_answer = $wpdb->get\_row($wpdb->prepare(
553
"SELECT \* FROM {$wpdb->prefix}tutor\_quiz\_attempt\_answers
554
WHERE attempt\_answer\_id = %d ",
555
$attempt\_answer\_id
556
));
552
557
553
558
$attempt = tutor\_utils()->get\_attempt($attempt\_id);
554
559
$question = tutils()->get\_quiz\_question\_by\_id($attempt\_answer->question\_id);
555
560
$course\_id = $attempt->course\_id;
561
$student\_id = $attempt->user\_id;
556
562
$previous\_ans = $attempt\_answer->is\_correct;
557
563
…
…
611
617
}
612
618
do\_action('tutor\_quiz\_review\_answer\_after', $attempt\_answer\_id, $attempt\_id, $mark\_as);
619
do\_action('tutor\_quiz/answer/review/after', $attempt\_answer\_id, $course\_id, $student\_id);
613
620
614
621
if (wp\_doing\_ajax())
tutor/trunk/classes/RestAPI.php
r2396788
r2615802
37
37
38
38
private $ratingObj;
39
39
40
40
public function \_\_construct() {
41
41
42
42
$this->path = plugin\_dir\_path(TUTOR\_FILE);
43
//autoloading clases
44
if (function\_exists('\_\_autoload')) {
45
spl\_autoload\_register('\_\_autoload');
46
}
43
47
44
spl\_autoload\_register(array($this, 'loader'));
48
45
tutor/trunk/classes/Tutor.php
r2610239
r2615802
104
104
\* Loading Autoloader
105
105
\*/
106
107
if ( function\_exists( '\_\_autoload' ) ) {
108
spl\_autoload\_register( '\_\_autoload' );
109
}
110
106
spl\_autoload\_register(array($this, 'loader'));
111
107
…
…
551
547
$options = array (
552
548
'pagination\_per\_page' => '20',
553
'load\_tutor\_css' => '1',
554
'load\_tutor\_js' => '1',
555
549
'course\_allow\_upload\_private\_files' => '1',
556
550
'display\_course\_instructors' => '1',
tutor/trunk/classes/Utils.php
r2610239
r2615802
249
249
\*/
250
250
public function has\_pmpro($check\_monetization=false) {
251
$has\_pmpro = $this->is\_plugin\_active('paid-memberships-pro/paid-memberships-pro.php');
252
return $has\_pmpro && (!$check\_monetization || get\_tutor\_option('monetize\_by') == 'pmpro' );
253
}
254
255
public function is\_plugin\_active($plugin\_path) {
251
256
$activated\_plugins = apply\_filters( 'active\_plugins', get\_option( 'active\_plugins' ) );
252
$depends = array( 'paid-memberships-pro/paid-memberships-pro.php' );
253
$has\_pmpro = count( array\_intersect( $depends, $activated\_plugins ) ) == count( $depends );
254
255
return $has\_pmpro && (!$check\_monetization || get\_tutor\_option('monetize\_by') == 'pmpro' );
257
$depends = is\_array($plugin\_path) ? $plugin\_path : array( $plugin\_path );
258
$has\_plugin = count( array\_intersect( $depends, $activated\_plugins ) ) == count( $depends );
259
260
return $has\_plugin;
256
261
}
257
262
258
263
public function has\_wcs(){
259
$activated\_plugins = apply\_filters( 'active\_plugins', get\_option( 'active\_plugins' ) );
260
$depends = array( 'woocommerce-subscriptions/woocommerce-subscriptions.php' );
261
$has\_wcs = count( array\_intersect( $depends, $activated\_plugins ) ) == count( $depends );
264
$has\_wcs = $this->is\_plugin\_active('woocommerce-subscriptions/woocommerce-subscriptions.php');
262
265
return $has\_wcs;
266
}
267
268
public function is\_addon\_enabled($basename) {
269
if($this->is\_plugin\_active('tutor-pro/tutor-pro.php')) {
270
$addonConfig = $this->get\_addon\_config($basename);
271
272
return (bool) $this->avalue\_dot('is\_enable', $addonConfig);
273
}
263
274
}
264
275
…
…
7644
7655
return $data;
7645
7656
}
7657
7658
public function get\_course\_duration($course\_id, $return\_array, $texts = array('h'=>'hr', 'm'=>'min', 's'=>'sec')) {
7659
$duration = maybe\_unserialize(get\_post\_meta($course\_id, '\_course\_duration', true));
7660
$durationHours = tutor\_utils()->avalue\_dot('hours', $duration);
7661
$durationMinutes = tutor\_utils()->avalue\_dot('minutes', $duration);
7662
$durationSeconds = tutor\_utils()->avalue\_dot('seconds', $duration);
7663
7664
if($return\_array) {
7665
return array(
7666
'duration' => $duration,
7667
'durationHours' => $durationHours,
7668
'durationMinutes' => $durationMinutes,
7669
'durationSeconds' => $durationSeconds,
7670
);
7671
}
7672
7673
if(!$durationHours && !$durationMinutes && !$durationSeconds) {
7674
return '';
7675
}
7676
7677
return $durationHours . $texts\['h'\] . ' ' .
7678
$durationMinutes . $texts\['m'\] . ' ' .
7679
$durationSeconds . $texts\['s'\];
7680
}
7646
7681
}
tutor/trunk/languages/tutor.pot
r2610239
r2615802
14
14
"Plural-Forms: nplurals=2; plural=(n != 1);\\n"
15
15
16
#: tutor.php:62, classes/Tutor.php:428
16
#: tutor.php:62, classes/Tutor.php:424
17
17
msgid "Tutor Instructor"
18
18
msgstr ""
…
…
126
126
msgstr ""
127
127
128
#: classes/Admin.php:60, classes/Admin.php:60, classes/Course.php:484, classes/Options.php:600, classes/Quiz\_Attempts\_List.php:113, templates/student-public-profile.php:103, views/pages/students.php:8
128
#: classes/Admin.php:60, classes/Admin.php:60, classes/Course.php:484, classes/Options.php:593, classes/Quiz\_Attempts\_List.php:113, templates/student-public-profile.php:103, views/pages/students.php:8
129
129
msgid "Students"
130
130
msgstr ""
131
131
132
#: classes/Admin.php:63, classes/Admin.php:63, classes/Course.php:182, classes/Course.php:261, classes/Options.php:561, views/pages/instructors.php:29
132
#: classes/Admin.php:63, classes/Admin.php:63, classes/Course.php:182, classes/Course.php:261, classes/Options.php:554, views/pages/instructors.php:29
133
133
msgid "Instructors"
134
134
msgstr ""
135
135
136
#: classes/Admin.php:66, classes/Admin.php:66, classes/Utils.php:1284, classes/Utils.php:2469, templates/dashboard/announcements.php:123, views/pages/announcements.php:104, views/pages/announcements.php:114
136
#: classes/Admin.php:66, classes/Admin.php:66, classes/Utils.php:1295, classes/Utils.php:2480, templates/dashboard/announcements.php:123, views/pages/announcements.php:104, views/pages/announcements.php:114
137
137
msgid "Announcements"
138
138
msgstr ""
…
…
146
146
msgstr ""
147
147
148
#: classes/Admin.php:70, classes/Admin.php:70, classes/Utils.php:2471, templates/dashboard/quiz-attempts.php:19, views/pages/quiz\_attempts.php:29
148
#: classes/Admin.php:70, classes/Admin.php:70, classes/Utils.php:2482, templates/dashboard/quiz-attempts.php:19, views/pages/quiz\_attempts.php:29
149
149
msgid "Quiz Attempts"
150
150
msgstr ""
…
…
158
158
msgstr ""
159
159
160
#: classes/Admin.php:80, classes/Admin.php:80, classes/Admin.php:453, classes/Utils.php:2484, templates/dashboard/settings.php:8, views/modal/add\_quiz.php:24, views/modal/edit\_quiz.php:35, templates/dashboard/notifications/profile-completion.php:14, templates/dashboard/settings/education.php:7, templates/dashboard/settings/skill.php:8
160
#: classes/Admin.php:80, classes/Admin.php:80, classes/Admin.php:453, classes/Utils.php:2495, templates/dashboard/settings.php:8, views/modal/add\_quiz.php:24, views/modal/edit\_quiz.php:35, templates/dashboard/notifications/profile-completion.php:14, templates/dashboard/settings/education.php:7, templates/dashboard/settings/skill.php:8
161
161
msgid "Settings"
162
162
msgstr ""
…
…
202
202
msgstr ""
203
203
204
#: classes/Ajax.php:62, classes/Ajax.php:115, classes/Ajax.php:179, classes/Ajax.php:237, classes/Ajax.php:290, classes/Ajax.php:332, classes/Ajax.php:353, classes/Ajax.php:456, classes/Ajax.php:527, classes/Course.php:424, classes/Course.php:459, classes/Course.php:696, classes/Course.php:747, classes/Course.php:784, classes/Course.php:797, classes/Instructor.php:250, classes/Lesson.php:121, classes/Lesson.php:161, classes/Lesson.php:218, classes/Quiz.php:147, classes/Quiz.php:548, classes/Quiz.php:638, classes/Quiz.php:684, classes/Quiz.php:728, classes/Quiz.php:768, classes/Quiz.php:791, classes/Quiz.php:887, classes/Quiz.php:910, classes/Quiz.php:931, classes/Quiz.php:1042, classes/Quiz.php:1087, classes/Quiz.php:1168, classes/Quiz.php:1228, classes/Quiz.php:1253, classes/Q\_and\_A.php:71
204
#: classes/Ajax.php:62, classes/Ajax.php:115, classes/Ajax.php:179, classes/Ajax.php:237, classes/Ajax.php:290, classes/Ajax.php:332, classes/Ajax.php:353, classes/Ajax.php:456, classes/Ajax.php:527, classes/Course.php:424, classes/Course.php:459, classes/Course.php:696, classes/Course.php:747, classes/Course.php:784, classes/Course.php:797, classes/Instructor.php:250, classes/Lesson.php:121, classes/Lesson.php:161, classes/Lesson.php:218, classes/Quiz.php:147, classes/Quiz.php:549, classes/Quiz.php:645, classes/Quiz.php:691, classes/Quiz.php:735, classes/Quiz.php:775, classes/Quiz.php:798, classes/Quiz.php:894, classes/Quiz.php:917, classes/Quiz.php:938, classes/Quiz.php:1049, classes/Quiz.php:1094, classes/Quiz.php:1175, classes/Quiz.php:1235, classes/Quiz.php:1260, classes/Q\_and\_A.php:71
205
205
msgid "Access Denied"
206
206
msgstr ""
…
…
302
302
msgstr ""
303
303
304
#: classes/Course.php:483, classes/Options.php:454, classes/Post\_types.php:172, templates/single/course/course-topics.php:38
304
#: classes/Course.php:483, classes/Options.php:447, classes/Post\_types.php:172, templates/single/course/course-topics.php:38
305
305
msgid "Lessons"
306
306
msgstr ""
…
…
354
354
msgstr ""
355
355
356
#: classes/Course\_Settings\_Tabs.php:31, classes/Options.php:230, classes/Tutor\_Setup.php:400, views/metabox/course/settings-tabs.php:13
356
#: classes/Course\_Settings\_Tabs.php:31, classes/Options.php:223, classes/Tutor\_Setup.php:400, views/metabox/course/settings-tabs.php:13
357
357
msgid "Course Settings"
358
358
msgstr ""
359
359
360
#: classes/Course\_Settings\_Tabs.php:37, classes/Options.php:120, classes/Options.php:123, classes/Options.php:229, classes/Tutor\_Setup.php:561, classes/WooCommerce.php:281
360
#: classes/Course\_Settings\_Tabs.php:37, classes/Options.php:120, classes/Options.php:123, classes/Options.php:222, classes/Tutor\_Setup.php:561, classes/WooCommerce.php:281
361
361
msgid "General"
362
362
msgstr ""
…
…
370
370
msgstr ""
371
371
372
#: classes/Course\_Settings\_Tabs.php:45, classes/Options.php:136, classes/Options.php:143, classes/Options.php:157, classes/Options.php:170, classes/Options.php:177, classes/Options.php:184, classes/Options.php:191, classes/Options.php:204, classes/Options.php:235, classes/Options.php:253, classes/Options.php:270, classes/Options.php:303, classes/Options.php:321, classes/Options.php:327, classes/Options.php:463, classes/Options.php:570, classes/Options.php:584, classes/Options.php:591, classes/Options.php:616, classes/Options.php:623, classes/Options.php:641, classes/Options.php:665, classes/User.php:177
372
#: classes/Course\_Settings\_Tabs.php:45, classes/Options.php:136, classes/Options.php:143, classes/Options.php:163, classes/Options.php:170, classes/Options.php:177, classes/Options.php:184, classes/Options.php:197, classes/Options.php:228, classes/Options.php:246, classes/Options.php:263, classes/Options.php:296, classes/Options.php:314, classes/Options.php:320, classes/Options.php:456, classes/Options.php:563, classes/Options.php:577, classes/Options.php:584, classes/Options.php:609, classes/Options.php:616, classes/Options.php:634, classes/Options.php:658, classes/User.php:177
373
373
msgid "Enable"
374
374
msgstr ""
…
…
638
638
msgstr ""
639
639
640
#: classes/Lesson.php:271, classes/Options.php:226, classes/Question\_Answers\_List.php:75, classes/Quiz\_Attempts\_List.php:115, classes/Tutor\_Setup.php:562, templates/student-public-profile.php:98, templates/dashboard/question-answer.php:27, templates/shortcode/tutor-instructor.php:27, views/pages/view\_attempt.php:73, templates/dashboard/announcements/details.php:19, templates/dashboard/assignments/review.php:44, templates/dashboard/assignments/submitted.php:30, templates/dashboard/earning/statement.php:13, templates/single/quiz/top.php:27
640
#: classes/Lesson.php:271, classes/Options.php:219, classes/Question\_Answers\_List.php:75, classes/Quiz\_Attempts\_List.php:115, classes/Tutor\_Setup.php:562, templates/student-public-profile.php:98, templates/dashboard/question-answer.php:27, templates/shortcode/tutor-instructor.php:27, views/pages/view\_attempt.php:73, templates/dashboard/announcements/details.php:19, templates/dashboard/assignments/review.php:44, templates/dashboard/assignments/submitted.php:30, templates/dashboard/earning/statement.php:13, templates/single/quiz/top.php:27
641
641
msgid "Course"
642
642
msgstr ""
…
…
699
699
msgstr ""
700
700
701
#: classes/Options.php:128, classes/Utils.php:6780
701
#: classes/Options.php:128, classes/Utils.php:6791
702
702
msgid "Dashboard Page"
703
703
msgstr ""
…
…
727
727
msgstr ""
728
728
729
#: classes/Options.php:150, classes/Options.php:334, classes/Options.php:341, classes/Options.php:348, classes/Options.php:355, classes/Options.php:362, classes/Options.php:369, classes/Options.php:376, classes/Options.php:383, classes/Options.php:390, classes/Options.php:397, classes/Options.php:404, classes/Options.php:411, classes/Options.php:418, classes/Options.php:425, classes/Options.php:432, classes/Options.php:539
729
#: classes/Options.php:150, classes/Options.php:327, classes/Options.php:334, classes/Options.php:341, classes/Options.php:348, classes/Options.php:355, classes/Options.php:362, classes/Options.php:369, classes/Options.php:376, classes/Options.php:383, classes/Options.php:390, classes/Options.php:397, classes/Options.php:404, classes/Options.php:411, classes/Options.php:418, classes/Options.php:425, classes/Options.php:532
730
730
msgid "Disable"
731
731
msgstr ""
…
…
736
736
737
737
#: classes/Options.php:156
738
msgid "Load Tutor CSS"
739
msgstr ""
740
741
#: classes/Options.php:159
742
msgid "If your theme has its own styling, then you can turn it off to load CSS from the plugin directory"
743
msgstr ""
744
745
#: classes/Options.php:163
746
738
msgid "Course Visibility"
747
739
msgstr ""
748
740
741
#: classes/Options.php:157
742
msgid "Logged in only"
743
msgstr ""
744
745
#: classes/Options.php:158
746
msgid "Students must be logged in to view course"
747
msgstr ""
748
749
#: classes/Options.php:162
750
msgid "Erase upon uninstallation"
751
msgstr ""
752
749
753
#: classes/Options.php:164
750
msgid "Logged in only"
751
msgstr ""
752
753
#: classes/Options.php:165
754
msgid "Students must be logged in to view course"
754
msgid "Delete all data during uninstallation"
755
755
msgstr ""
756
756
757
757
#: classes/Options.php:169
758
msgid "Erase upon uninstallation"
759
msgstr ""
760
761
#: classes/Options.php:171
762
msgid "Delete all data during uninstallation"
763
msgstr ""
764
765
#: classes/Options.php:176
766
758
msgid "Spotlight mode"
767
759
msgstr ""
768
760
769
#: classes/Options.php:179
761
#: classes/Options.php:172
770
762
msgid "This will hide the header and the footer and enable spotlight (full screen) mode when students view lessons."
771
763
msgstr ""
772
764
773
#: classes/Options.php:183, classes/Tutor\_Setup.php:381
765
#: classes/Options.php:176, classes/Tutor\_Setup.php:381
774
766
msgid "YouTube Player"
775
767
msgstr ""
776
768
777
#: classes/Options.php:186, classes/Options.php:193
769
#: classes/Options.php:179, classes/Options.php:186
778
770
msgid "Disable this option to use Tutor LMS video player."
779
771
msgstr ""
780
772
781
#: classes/Options.php:190, classes/Tutor\_Setup.php:386
773
#: classes/Options.php:183, classes/Tutor\_Setup.php:386
782
774
msgid "Vimeo Player"
783
775
msgstr ""
784
776
785
#: classes/Options.php:197
777
#: classes/Options.php:190
786
778
msgid "Pagination"
787
779
msgstr ""
788
780
781
#: classes/Options.php:192
782
msgid "Number of items you would like displayed \\"per page\\" in the pagination"
783
msgstr ""
784
785
#: classes/Options.php:196
786
msgid "Maintenance Mode"
787
msgstr ""
788
789
789
#: classes/Options.php:199
790
msgid "Number of items you would like displayed \\"per page\\" in the pagination"
790
msgid "Enabling the maintenance mode allows you to display a custom message on the frontend. During this time, visitors can not access the site content. But the wp-admin dashboard will remain accessible."
791
791
msgstr ""
792
792
793
793
#: classes/Options.php:203
794
msgid "Maintenance Mode"
794
msgid "Frontend Admin Bar"
795
msgstr ""
796
797
#: classes/Options.php:204
798
msgid "Hide"
795
799
msgstr ""
796
800
797
801
#: classes/Options.php:206
798
msgid "Enabling the maintenance mode allows you to display a custom message on the frontend. During this time, visitors can not access the site content. But the wp-admin dashboard will remain accessible."
802
msgid "Hide admin bar option allow you to hide WordPress admin bar entirely from the frontend. It will still show to administrator roles user"
799
803
msgstr ""
800
804
801
805
#: classes/Options.php:210
802
msgid "Frontend Admin Bar"
803
msgstr ""
804
805
#: classes/Options.php:211
806
msgid "Hide"
807
msgstr ""
808
809
#: classes/Options.php:213
810
msgid "Hide admin bar option allow you to hide WordPress admin bar entirely from the frontend. It will still show to administrator roles user"
811
msgstr ""
812
813
#: classes/Options.php:217
814
806
msgid "Error message for wrong login credentials"
815
807
msgstr ""
816
808
817
#: classes/Options.php:219
809
#: classes/Options.php:212
818
810
msgid "Login error message displayed when the user puts wrong login credentials."
819
811
msgstr ""
820
812
813
#: classes/Options.php:227
814
msgid "Gutenberg Editor"
815
msgstr ""
816
817
#: classes/Options.php:229
818
msgid "Use Gutenberg editor on course description area."
819
msgstr ""
820
821
#: classes/Options.php:233, classes/Options.php:239, classes/Options.php:308, classes/Options.php:461, classes/WooCommerce.php:292
822
msgid "Enable / Disable"
823
msgstr ""
824
821
825
#: classes/Options.php:234
822
msgid "Gutenberg Editor"
823
msgstr ""
824
825
#: classes/Options.php:236
826
msgid "Use Gutenberg editor on course description area."
827
msgstr ""
828
829
#: classes/Options.php:240, classes/Options.php:246, classes/Options.php:315, classes/Options.php:468, classes/WooCommerce.php:292
830
msgid "Enable / Disable"
826
msgid "Hide course products from shop page"
827
msgstr ""
828
829
#: classes/Options.php:235
830
msgid "Enabling this feature will remove course products from the shop page."
831
msgstr ""
832
833
#: classes/Options.php:240
834
msgid "Course Content Access"
831
835
msgstr ""
832
836
833
837
#: classes/Options.php:241
834
msgid "Hide course products from shop page"
835
msgstr ""
836
837
#: classes/Options.php:242
838
msgid "Enabling this feature will remove course products from the shop page."
838
msgid "Allow instructors and admins to view the course content without enrolling"
839
msgstr ""
840
841
#: classes/Options.php:245
842
msgid "Auto redirect to courses"
839
843
msgstr ""
840
844
841
845
#: classes/Options.php:247
842
msgid "Course Content Access"
843
msgstr ""
844
845
#: classes/Options.php:248
846
msgid "Allow instructors and admins to view the course content without enrolling"
847
msgstr ""
848
849
#: classes/Options.php:252
850
msgid "Auto redirect to courses"
851
msgstr ""
852
853
#: classes/Options.php:254
854
846
msgid "When a user's WooCommerce order is auto-completed, they will be redirected to enrolled courses"
855
847
msgstr ""
856
848
849
#: classes/Options.php:251
850
msgid "Course Completion Process"
851
msgstr ""
852
853
#: classes/Options.php:255
854
msgid "Flexible"
855
msgstr ""
856
857
#: classes/Options.php:256
858
msgid "Strict Mode"
859
msgstr ""
860
857
861
#: classes/Options.php:258
858
msgid "Course Completion Process"
862
msgid "Students can complete courses anytime in the Flexible mode. In the Strict mode, students have to complete, pass all the lessons and quizzes (if any) to mark a course as complete."
859
863
msgstr ""
860
864
861
865
#: classes/Options.php:262
862
msgid "Flexible"
863
msgstr ""
864
865
#: classes/Options.php:263
866
msgid "Strict Mode"
867
msgstr ""
868
869
#: classes/Options.php:265
870
msgid "Students can complete courses anytime in the Flexible mode. In the Strict mode, students have to complete, pass all the lessons and quizzes (if any) to mark a course as complete."
866
msgid "Course Retake"
867
msgstr ""
868
869
#: classes/Options.php:264
870
msgid "Enabling this feature will allow students to reset course progress and start over."
871
871
msgstr ""
872
872
873
873
#: classes/Options.php:269
874
msgid "Course Retake"
875
msgstr ""
876
877
#: classes/Options.php:271
878
msgid "Enabling this feature will allow students to reset course progress and start over."
879
msgstr ""
880
881
#: classes/Options.php:276
882
874
msgid "Archive"
883
875
msgstr ""
884
876
877
#: classes/Options.php:270
878
msgid "Course Archive Settings"
879
msgstr ""
880
881
#: classes/Options.php:274
882
msgid "Course Archive Page"
883
msgstr ""
884
885
885
#: classes/Options.php:277
886
msgid "Course Archive Settings"
886
msgid "This page will be used to list all the published courses."
887
887
msgstr ""
888
888
889
889
#: classes/Options.php:281
890
msgid "Course Archive Page"
890
msgid "Column Per Row"
891
891
msgstr ""
892
892
893
893
#: classes/Options.php:284
894
msgid "This page will be used to list all the published courses."
895
msgstr ""
896
897
#: classes/Options.php:288
898
msgid "Column Per Row"
894
msgid "Define how many column you want to use to display courses."
895
msgstr ""
896
897
#: classes/Options.php:288, classes/Tutor\_Setup.php:419
898
msgid "Courses Per Page"
899
899
msgstr ""
900
900
901
901
#: classes/Options.php:291
902
msgid "Define how many column you want to use to display courses."
903
msgstr ""
904
905
#: classes/Options.php:295, classes/Tutor\_Setup.php:419
906
msgid "Courses Per Page"
907
msgstr ""
908
909
#: classes/Options.php:298
910
902
msgid "Define how many courses you want to show per page"
911
903
msgstr ""
912
904
913
#: classes/Options.php:302
905
#: classes/Options.php:295
914
906
msgid "Course Filter"
915
907
msgstr ""
916
908
917
#: classes/Options.php:304
909
#: classes/Options.php:297
918
910
msgid "Show sorting and filtering options on course archive page"
919
911
msgstr ""
920
912
921
#: classes/Options.php:308
913
#: classes/Options.php:301
922
914
msgid "Preferred Course Filters"
923
915
msgstr ""
924
916
925
#: classes/Options.php:310
917
#: classes/Options.php:303
926
918
msgid "Choose preferred filter options you'd like to show in course archive page."
927
919
msgstr ""
928
920
929
#: classes/Options.php:316
921
#: classes/Options.php:309
930
922
msgid "Course Display Settings"
931
923
msgstr ""
932
924
933
#: classes/Options.php:320
925
#: classes/Options.php:313
934
926
msgid "Display Instructor Info"
935
927
msgstr ""
936
928
929
#: classes/Options.php:315
930
msgid "Show instructor bio on each page"
931
msgstr ""
932
933
#: classes/Options.php:319
934
msgid "Question and Answer"
935
msgstr ""
936
937
937
#: classes/Options.php:322
938
msgid "Show instructor bio on each page"
938
msgid "Enabling this feature will add a Q&A section on every course."
939
939
msgstr ""
940
940
941
941
#: classes/Options.php:326
942
msgid "Question and Answer"
942
msgid "Course Author"
943
943
msgstr ""
944
944
945
945
#: classes/Options.php:329
946
msgid "Enabling this feature will add a Q&A section on every course."
946
msgid "Disabling this feature will be removed course author name from the course page."
947
947
msgstr ""
948
948
949
949
#: classes/Options.php:333
950
msgid "Course Author"
950
msgid "Course Level"
951
951
msgstr ""
952
952
953
953
#: classes/Options.php:336
954
msgid "Disabling this feature will be removed course author name from the course page."
954
msgid "Disabling this feature will be removed course level from the course page."
955
955
msgstr ""
956
956
957
957
#: classes/Options.php:340
958
msgid "Course Level"
958
msgid "Course Share"
959
959
msgstr ""
960
960
961
961
#: classes/Options.php:343
962
msgid "Disabling this feature will be removed course level from the course page."
962
msgid "Disabling this feature will be removed course share option from the course page."
963
963
msgstr ""
964
964
965
965
#: classes/Options.php:347
966
msgid "Course Share"
966
msgid "Course Duration"
967
967
msgstr ""
968
968
969
969
#: classes/Options.php:350
970
msgid "Disabling this feature will be removed course share option from the course page."
970
msgid "Disabling this feature will be removed course duration from the course page."
971
971
msgstr ""
972
972
973
973
#: classes/Options.php:354
974
msgid "Course Duration"
974
msgid "Course Total Enrolled"
975
975
msgstr ""
976
976
977
977
#: classes/Options.php:357
978
msgid "Disabling this feature will be removed course duration from the course page."
978
msgid "Disabling this feature will be removed course total enrolled from the course page."
979
979
msgstr ""
980
980
981
981
#: classes/Options.php:361
982
msgid "Course Total Enrolled"
982
msgid "Course Update Date"
983
983
msgstr ""
984
984
985
985
#: classes/Options.php:364
986
msgid "Disabling this feature will be removed course total enrolled from the course page."
986
msgid "Disabling this feature will be removed course update date from the course page."
987
987
msgstr ""
988
988
989
989
#: classes/Options.php:368
990
msgid "Course Update Date"
990
msgid "Course Progress Bar"
991
991
msgstr ""
992
992
993
993
#: classes/Options.php:371
994
msgid "Disabling this feature will be removed course update date from the course page."
994
msgid "Disabling this feature will be removed completing progress bar from the course page."
995
995
msgstr ""
996
996
997
997
#: classes/Options.php:375
998
msgid "Course Progress Bar"
998
msgid "Course Material"
999
999
msgstr ""
1000
1000
1001
1001
#: classes/Options.php:378
1002
msgid "Disabling this feature will be removed completing progress bar from the course page."
1002
msgid "Disabling this feature will be removed course material from the course page."
1003
1003
msgstr ""
1004
1004
1005
1005
#: classes/Options.php:382
1006
msgid "Course Material"
1006
msgid "Course About"
1007
1007
msgstr ""
1008
1008
1009
1009
#: classes/Options.php:385
1010
msgid "Disabling this feature will be removed course material from the course page."
1010
msgid "Disabling this feature will be removed course about from the course page."
1011
1011
msgstr ""
1012
1012
1013
1013
#: classes/Options.php:389
1014
msgid "Course About"
1014
msgid "Course Description"
1015
1015
msgstr ""
1016
1016
1017
1017
#: classes/Options.php:392
1018
msgid "Disabling this feature will be removed course about from the course page."
1018
msgid "Disabling this feature will be removed course description from the course page."
1019
1019
msgstr ""
1020
1020
1021
1021
#: classes/Options.php:396
1022
msgid "Course Description"
1022
msgid "Course Benefits"
1023
1023
msgstr ""
1024
1024
1025
1025
#: classes/Options.php:399
1026
msgid "Disabling this feature will be removed course description from the course page."
1026
msgid "Disabling this feature will be removed course benefits from the course page."
1027
1027
msgstr ""
1028
1028
1029
1029
#: classes/Options.php:403
1030
msgid "Course Benefits"
1030
msgid "Course Requirements"
1031
1031
msgstr ""
1032
1032
1033
1033
#: classes/Options.php:406
1034
msgid "Disabling this feature will be removed course benefits from the course page."
1034
msgid "Disabling this feature will be removed course requirements from the course page."
1035
1035
msgstr ""
1036
1036
1037
1037
#: classes/Options.php:410
1038
msgid "Course Requirements"
1038
msgid "Course Target Audience"
1039
1039
msgstr ""
1040
1040
1041
1041
#: classes/Options.php:413
1042
msgid "Disabling this feature will be removed course requirements from the course page."
1042
msgid "Disabling this feature will be removed course target audience from the course page."
1043
1043
msgstr ""
1044
1044
1045
1045
#: classes/Options.php:417
1046
msgid "Course Target Audience"
1046
msgid "Course Announcements"
1047
1047
msgstr ""
1048
1048
1049
1049
#: classes/Options.php:420
1050
msgid "Disabling this feature will be removed course target audience from the course page."
1050
msgid "Disabling this feature will be removed course announcements from the course page."
1051
1051
msgstr ""
1052
1052
1053
1053
#: classes/Options.php:424
1054
msgid "Course Announcements"
1054
msgid "Course Review"
1055
1055
msgstr ""
1056
1056
1057
1057
#: classes/Options.php:427
1058
msgid "Disabling this feature will be removed course announcements from the course page."
1058
msgid "Disabling this feature will be removed course review system from the course page."
1059
1059
msgstr ""
1060
1060
1061
1061
#: classes/Options.php:431
1062
msgid "Course Review"
1063
msgstr ""
1064
1065
#: classes/Options.php:434
1066
msgid "Disabling this feature will be removed course review system from the course page."
1067
msgstr ""
1068
1069
#: classes/Options.php:438
1070
1062
msgid "Preferred Video Source"
1071
1063
msgstr ""
1072
1064
1065
#: classes/Options.php:433
1066
msgid "Choose video sources you'd like to support. Unchecking all will not disable video feature."
1067
msgstr ""
1068
1069
#: classes/Options.php:437
1070
msgid "Default Video Source"
1071
msgstr ""
1072
1073
1073
#: classes/Options.php:440
1074
msgid "Choose video sources you'd like to support. Unchecking all will not disable video feature."
1075
msgstr ""
1076
1077
#: classes/Options.php:444
1078
msgid "Default Video Source"
1079
msgstr ""
1080
1081
#: classes/Options.php:447
1082
1074
msgid "Choose video source to be selected by default."
1083
1075
msgstr ""
1084
1076
1077
#: classes/Options.php:450
1078
msgid "Lesson Settings"
1079
msgstr ""
1080
1081
#: classes/Options.php:451
1082
msgid "Lesson settings will be here"
1083
msgstr ""
1084
1085
#: classes/Options.php:455, views/modal/edit-lesson.php:12
1086
msgid "Classic Editor"
1087
msgstr ""
1088
1085
1089
#: classes/Options.php:457
1086
msgid "Lesson Settings"
1087
msgstr ""
1088
1089
#: classes/Options.php:458
1090
msgid "Lesson settings will be here"
1091
msgstr ""
1092
1093
#: classes/Options.php:462, views/modal/edit-lesson.php:12
1094
msgid "Classic Editor"
1095
msgstr ""
1096
1097
#: classes/Options.php:464
1098
1090
msgid "Enable classic editor to get full support of any editor/page builder."
1099
1091
msgstr ""
1100
1092
1101
#: classes/Options.php:469
1093
#: classes/Options.php:462
1102
1094
msgid "Automatically load next course content."
1103
1095
msgstr ""
1104
1096
1105
#: classes/Options.php:470
1097
#: classes/Options.php:463
1106
1098
msgid "Enabling this feature will be load next course content automatically after finishing current video."
1107
1099
msgstr ""
1108
1100
1109
#: classes/Options.php:474
1101
#: classes/Options.php:467
1110
1102
msgid "Lesson Permalink Base"
1111
1103
msgstr ""
1112
1104
1113
#: classes/Options.php:480
1105
#: classes/Options.php:473
1114
1106
msgid "Youtube API Key"
1115
1107
msgstr ""
1116
1108
1117
#: classes/Options.php:489, classes/Options.php:492, classes/Quiz\_Attempts\_List.php:114, classes/Tutor\_Setup.php:563, views/metabox/course-contents.php:169, views/metabox/course-topics.php:62, views/pages/view\_attempt.php:39, templates/single/quiz/top.php:24
1109
#: classes/Options.php:482, classes/Options.php:485, classes/Quiz\_Attempts\_List.php:114, classes/Tutor\_Setup.php:563, views/metabox/course-contents.php:169, views/metabox/course-topics.php:62, views/pages/view\_attempt.php:39, templates/single/quiz/top.php:24
1118
1110
msgid "Quiz"
1119
1111
msgstr ""
1120
1112
1121
#: classes/Options.php:493
1113
#: classes/Options.php:486
1122
1114
msgid "The values you set here define the default values that are used in the settings form when you create a new quiz."
1123
1115
msgstr ""
1124
1116
1125
#: classes/Options.php:497, classes/Tutor\_Setup.php:432, views/modal/edit\_quiz.php:144
1117
#: classes/Options.php:490, classes/Tutor\_Setup.php:432, views/modal/edit\_quiz.php:144
1126
1118
msgid "Time Limit"
1127
1119
msgstr ""
1128
1120
1129
#: classes/Options.php:498
1121
#: classes/Options.php:491
1130
1122
msgid "0 means unlimited time."
1131
1123
msgstr ""
1132
1124
1133
#: classes/Options.php:509, views/modal/edit\_quiz.php:156
1125
#: classes/Options.php:502, views/modal/edit\_quiz.php:156
1134
1126
msgid "Weeks"
1135
1127
msgstr ""
1136
1128
1137
#: classes/Options.php:510, views/modal/edit\_quiz.php:155
1129
#: classes/Options.php:503, views/modal/edit\_quiz.php:155
1138
1130
msgid "Days"
1139
1131
msgstr ""
1140
1132
1141
#: classes/Options.php:511, views/modal/edit\_quiz.php:154
1133
#: classes/Options.php:504, views/modal/edit\_quiz.php:154
1142
1134
msgid "Hours"
1143
1135
msgstr ""
1144
1136
1145
#: classes/Options.php:512, views/modal/edit\_quiz.php:153
1137
#: classes/Options.php:505, views/modal/edit\_quiz.php:153
1146
1138
msgid "Minutes"
1147
1139
msgstr ""
1148
1140
1149
#: classes/Options.php:513, views/modal/edit\_quiz.php:152
1141
#: classes/Options.php:506, views/modal/edit\_quiz.php:152
1150
1142
msgid "Seconds"
1151
1143
msgstr ""
1152
1144
1153
#: classes/Options.php:520
1145
#: classes/Options.php:513
1154
1146
msgid "When time expires"
1155
1147
msgstr ""
1156
1148
1157
#: classes/Options.php:524, classes/Tutor\_Setup.php:439
1149
#: classes/Options.php:517, classes/Tutor\_Setup.php:439
1158
1150
msgid "The current quiz answers are submitted automatically."
1159
1151
msgstr ""
1160
1152
1161
#: classes/Options.php:525, classes/Tutor\_Setup.php:440
1153
#: classes/Options.php:518, classes/Tutor\_Setup.php:440
1162
1154
msgid "The current quiz answers are submitted by students."
1163
1155
msgstr ""
1164
1156
1165
#: classes/Options.php:526, classes/Tutor\_Setup.php:441
1157
#: classes/Options.php:519, classes/Tutor\_Setup.php:441
1166
1158
msgid "Attempts must be submitted before time expires, otherwise they will not be counted"
1167
1159
msgstr ""
1168
1160
1169
#: classes/Options.php:528
1161
#: classes/Options.php:521
1170
1162
msgid "Choose which action to follow when the quiz time expires."
1171
1163
msgstr ""
1172
1164
1173
#: classes/Options.php:532
1165
#: classes/Options.php:525
1174
1166
msgid "Attempts allowed"
1175
1167
msgstr ""
1176
1168
1169
#: classes/Options.php:527
1170
msgid "The highest number of attempts students are allowed to take for a quiz. 0 means unlimited attempts."
1171
msgstr ""
1172
1173
#: classes/Options.php:531
1174
msgid "Show Previous button"
1175
msgstr ""
1176
1177
1177
#: classes/Options.php:534
1178
msgid "The highest number of attempts students are allowed to take for a quiz. 0 means unlimited attempts."
1178
msgid "Choose whether to show or hide previous button for single question."
1179
1179
msgstr ""
1180
1180
1181
1181
#: classes/Options.php:538
1182
msgid "Show Previous button"
1183
msgstr ""
1184
1185
#: classes/Options.php:541
1186
msgid "Choose whether to show or hide previous button for single question."
1187
msgstr ""
1188
1189
#: classes/Options.php:545
1190
1182
msgid "Final grade calculation"
1191
1183
msgstr ""
1192
1184
1193
#: classes/Options.php:549, classes/Tutor\_Setup.php:455
1185
#: classes/Options.php:542, classes/Tutor\_Setup.php:455
1194
1186
msgid "Highest Grade"
1195
1187
msgstr ""
1196
1188
1197
#: classes/Options.php:550, classes/Tutor\_Setup.php:460
1189
#: classes/Options.php:543, classes/Tutor\_Setup.php:460
1198
1190
msgid "Average Grade"
1199
1191
msgstr ""
1200
1192
1201
#: classes/Options.php:551, classes/Tutor\_Setup.php:465
1193
#: classes/Options.php:544, classes/Tutor\_Setup.php:465
1202
1194
msgid "First Attempt"
1203
1195
msgstr ""
1204
1196
1205
#: classes/Options.php:552, classes/Tutor\_Setup.php:470
1197
#: classes/Options.php:545, classes/Tutor\_Setup.php:470
1206
1198
msgid "Last Attempt"
1207
1199
msgstr ""
1208
1200
1209
#: classes/Options.php:554
1201
#: classes/Options.php:547
1210
1202
msgid "When multiple attempts are allowed, which method should be used to calculate a student's final grade for the quiz."
1211
1203
msgstr ""
1212
1204
1213
#: classes/Options.php:564
1205
#: classes/Options.php:557
1214
1206
msgid "Instructor Profile Settings"
1215
1207
msgstr ""
1216
1208
1217
#: classes/Options.php:565, classes/Options.php:604, classes/Options.php:636
1209
#: classes/Options.php:558, classes/Options.php:597, classes/Options.php:629
1218
1210
msgid "Enable Disable Option to on/off notification on various event"
1219
1211
msgstr ""
1220
1212
1221
#: classes/Options.php:569
1213
#: classes/Options.php:562
1222
1214
msgid "Course Marketplace"
1223
1215
msgstr ""
1224
1216
1217
#: classes/Options.php:565
1218
msgid "Allow multiple instructors to upload their courses."
1219
msgstr ""
1220
1221
#: classes/Options.php:569, classes/Utils.php:6792
1222
msgid "Instructor Registration Page"
1223
msgstr ""
1224
1225
1225
#: classes/Options.php:572
1226
msgid "Allow multiple instructors to upload their courses."
1227
msgstr ""
1228
1229
#: classes/Options.php:576, classes/Utils.php:6781
1230
msgid "Instructor Registration Page"
1226
msgid "This page will be used to sign up new instructors."
1227
msgstr ""
1228
1229
#: classes/Options.php:576
1230
msgid "Allow publishing course"
1231
1231
msgstr ""
1232
1232
1233
1233
#: classes/Options.php:579
1234
msgid "This page will be used to sign up new instructors."
1234
msgid "Enable instructors to publish course directly. <strong>Do not select</strong> if admins want to review courses before publishing."
1235
1235
msgstr ""
1236
1236
1237
1237
#: classes/Options.php:583
1238
msgid "Allow publishing course"
1238
msgid "Become Instructor Button"
1239
1239
msgstr ""
1240
1240
1241
1241
#: classes/Options.php:586
1242
msgid "Enable instructors to publish course directly. <strong>Do not select</strong> if admins want to review courses before publishing."
1243
msgstr ""
1244
1245
#: classes/Options.php:590
1246
msgid "Become Instructor Button"
1247
msgstr ""
1248
1249
#: classes/Options.php:593
1250
1242
msgid "Uncheck this option to hide the button from student dashboard."
1251
1243
msgstr ""
1252
1244
1253
#: classes/Options.php:603
1245
#: classes/Options.php:596
1254
1246
msgid "Student Profile settings"
1255
1247
msgstr ""
1256
1248
1257
#: classes/Options.php:608, classes/Utils.php:6782
1249
#: classes/Options.php:601, classes/Utils.php:6793
1258
1250
msgid "Student Registration Page"
1259
1251
msgstr ""
1260
1252
1253
#: classes/Options.php:604
1254
msgid "Choose the page for student registration page"
1255
msgstr ""
1256
1257
#: classes/Options.php:608
1258
msgid "Show reviews on profile"
1259
msgstr ""
1260
1261
1261
#: classes/Options.php:611
1262
msgid "Choose the page for student registration page"
1262
msgid "Enabling this will show the reviews written by each student on their profile"
1263
1263
msgstr ""
1264
1264
1265
1265
#: classes/Options.php:615
1266
msgid "Show reviews on profile"
1266
msgid "Show completed courses"
1267
1267
msgstr ""
1268
1268
1269
1269
#: classes/Options.php:618
1270
msgid "Enabling this will show the reviews written by each student on their profile"
1271
msgstr ""
1272
1273
#: classes/Options.php:622
1274
msgid "Show completed courses"
1275
msgstr ""
1276
1277
#: classes/Options.php:625
1278
1270
msgid "Completed courses will be shown on student profiles. <br/> For example, you can see this link-"
1279
1271
msgstr ""
1280
1272
1281
#: classes/Options.php:632, classes/Options.php:640, classes/Tutor\_Setup.php:491, templates/dashboard/earning.php:123, templates/dashboard/earning/chart-body.php:17, templates/dashboard/earning/statement.php:14, templates/dashboard/earning/statements.php:133
1273
#: classes/Options.php:625, classes/Options.php:633, classes/Tutor\_Setup.php:491, templates/dashboard/earning.php:123, templates/dashboard/earning/chart-body.php:17, templates/dashboard/earning/statement.php:14, templates/dashboard/earning/statements.php:133
1282
1274
msgid "Earning"
1283
1275
msgstr ""
1284
1276
1285
#: classes/Options.php:635
1277
#: classes/Options.php:628
1286
1278
msgid "Earning and commission allocation"
1287
1279
msgstr ""
1288
1280
1289
#: classes/Options.php:643
1281
#: classes/Options.php:636
1290
1282
msgid "If disabled, the Admin will receive 100% of the earning"
1291
1283
msgstr ""
1292
1284
1293
#: classes/Options.php:647
1285
#: classes/Options.php:640
1294
1286
msgid "Admin Commission Percentage"
1295
1287
msgstr ""
1296
1288
1297
#: classes/Options.php:649
1289
#: classes/Options.php:642
1298
1290
msgid "Define the commission of the Admin from each sale.(after deducting fees)"
1299
1291
msgstr ""
1300
1292
1293
#: classes/Options.php:646
1294
msgid "Instructor Commission Percentage"
1295
msgstr ""
1296
1297
#: classes/Options.php:648
1298
msgid "Define the commission for instructors from each sale.(after deducting fees)"
1299
msgstr ""
1300
1301
#: classes/Options.php:652
1302
msgid "Fee Deduction"
1303
msgstr ""
1304
1301
1305
#: classes/Options.php:653
1302
msgid "Instructor Commission Percentage"
1303
msgstr ""
1304
1305
#: classes/Options.php:655
1306
msgid "Define the commission for instructors from each sale.(after deducting fees)"
1307
msgstr ""
1308
1309
#: classes/Options.php:659
1310
msgid "Fee Deduction"
1311
msgstr ""
1312
1313
#: classes/Options.php:660
1314
1306
msgid "Fees are charged from the entire sales amount. The remaining amount will be divided among admin and instructors."
1315
1307
msgstr ""
1316
1308
1317
#: classes/Options.php:670
1309
#: classes/Options.php:663
1318
1310
msgid "Fee Name"
1319
1311
msgstr ""
1320
1312
1321
#: classes/Options.php:675
1313
#: classes/Options.php:668
1322
1314
msgid "Fee Amount"
1323
1315
msgstr ""
1324
1316
1325
#: classes/Options.php:683
1317
#: classes/Options.php:676
1326
1318
msgid "Select Fees Type"
1327
1319
msgstr ""
1328
1320
1329
#: classes/Options.php:684
1321
#: classes/Options.php:677
1330
1322
msgid "Percent"
1331
1323
msgstr ""
1332
1324
1333
#: classes/Options.php:685
1325
#: classes/Options.php:678
1334
1326
msgid "Fixed"
1335
1327
msgstr ""
1336
1328
1337
#: classes/Options.php:693
1329
#: classes/Options.php:686
1338
1330
msgid "Show Statement Per Page"
1339
1331
msgstr ""
1340
1332
1341
#: classes/Options.php:695
1333
#: classes/Options.php:688
1342
1334
msgid "Define the number of statements to show."
1343
1335
msgstr ""
1344
1336
1345
#: classes/Options.php:702, templates/dashboard/withdraw.php:43
1337
#: classes/Options.php:695, templates/dashboard/withdraw.php:43
1346
1338
msgid "Withdrawal"
1347
1339
msgstr ""
1348
1340
1349
#: classes/Options.php:705
1341
#: classes/Options.php:698
1350
1342
msgid "Withdrawal Settings"
1351
1343
msgstr ""
1352
1344
1353
#: classes/Options.php:709
1345
#: classes/Options.php:702
1354
1346
msgid "Minimum Withdraw Amount"
1355
1347
msgstr ""
1356
1348
1349
#: classes/Options.php:704
1350
msgid "Instructors should earn equal or above this amount to make a withdraw request."
1351
msgstr ""
1352
1353
#: classes/Options.php:710
1354
msgid "Withdraw Methods"
1355
msgstr ""
1356
1357
1357
#: classes/Options.php:711
1358
msgid "Instructors should earn equal or above this amount to make a withdraw request."
1358
msgid "Set withdraw settings"
1359
1359
msgstr ""
1360
1360
1361
1361
#: classes/Options.php:717
1362
msgid "Withdraw Methods"
1363
msgstr ""
1364
1365
#: classes/Options.php:718
1366
msgid "Set withdraw settings"
1362
msgid "Style"
1363
msgstr ""
1364
1365
#: classes/Options.php:720
1366
msgid "Color Style"
1367
1367
msgstr ""
1368
1368
1369
1369
#: classes/Options.php:724
1370
msgid "Style"
1371
msgstr ""
1372
1373
#: classes/Options.php:727
1374
msgid "Color Style"
1375
msgstr ""
1376
1377
#: classes/Options.php:731
1378
1370
msgid "Primary Color"
1379
1371
msgstr ""
1380
1372
1381
#: classes/Options.php:736
1373
#: classes/Options.php:729
1382
1374
msgid "Primary Hover Color"
1383
1375
msgstr ""
1384
1376
1385
#: classes/Options.php:741
1377
#: classes/Options.php:734
1386
1378
msgid "Text color"
1387
1379
msgstr ""
1388
1380
1381
#: classes/Options.php:739
1382
msgid "Light color"
1383
msgstr ""
1384
1389
1385
#: classes/Options.php:746
1390
msgid "Light color"
1391
msgstr ""
1392
1393
#: classes/Options.php:753
1394
1386
msgid "Button Primary Color"
1395
1387
msgstr ""
1396
1388
1397
#: classes/Options.php:759
1389
#: classes/Options.php:752
1398
1390
msgid "Button Danger Color"
1399
1391
msgstr ""
1400
1392
1401
#: classes/Options.php:764
1393
#: classes/Options.php:757
1402
1394
msgid "Button Success Color"
1403
1395
msgstr ""
1404
1396
1405
#: classes/Options.php:769
1397
#: classes/Options.php:762
1406
1398
msgid "Button Warning Color"
1407
1399
msgstr ""
1408
1400
1409
#: classes/Options.php:779, classes/Options.php:782
1401
#: classes/Options.php:772, classes/Options.php:775
1410
1402
msgid "Monetization"
1411
1403
msgstr ""
1412
1404
1413
#: classes/Options.php:783
1405
#: classes/Options.php:776
1414
1406
msgid "You can monetize your LMS website by selling courses in a various way."
1415
1407
msgstr ""
1416
1408
1417
#: classes/Options.php:788
1409
#: classes/Options.php:781
1418
1410
msgid "Monetize Option"
1419
1411
msgstr ""
1420
1412
1421
#: classes/Options.php:792
1413
#: classes/Options.php:785
1422
1414
msgid "Disable Monetization"
1423
1415
msgstr ""
1424
1416
1425
#: classes/Options.php:794
1417
#: classes/Options.php:787
1426
1418
msgid "Select a monetization option to generate revenue by selling courses. Supports: WooCommerce, Easy Digital Downloads, Paid Memberships Pro"
1427
1419
msgstr ""
…
…
1833
1825
msgstr ""
1834
1826
1835
#: classes/Question\_Answers\_List.php:44, classes/Question\_Answers\_List.php:76, classes/Quiz.php:1113, templates/dashboard/question-answer.php:28, views/modal/question\_form.php:146, views/pages/answer.php:11, templates/dashboard/question-answer/answers.php:13
1827
#: classes/Question\_Answers\_List.php:44, classes/Question\_Answers\_List.php:76, classes/Quiz.php:1120, templates/dashboard/question-answer.php:28, views/modal/question\_form.php:146, views/pages/answer.php:11, templates/dashboard/question-answer/answers.php:13
1836
1828
msgid "Answer"
1837
1829
msgstr ""
1838
1830
1839
#: classes/Question\_Answers\_List.php:73, classes/Quiz.php:800, templates/dashboard/question-answer.php:25, views/pages/view\_attempt.php:192, templates/dashboard/my-quiz-attempts/attempts-details.php:210, templates/dashboard/quiz-attempts/quiz-reviews.php:227
1831
#: classes/Question\_Answers\_List.php:73, classes/Quiz.php:807, templates/dashboard/question-answer.php:25, views/pages/view\_attempt.php:192, templates/dashboard/my-quiz-attempts/attempts-details.php:210, templates/dashboard/quiz-attempts/quiz-reviews.php:227
1840
1832
msgid "Question"
1841
1833
msgstr ""
…
…
1845
1837
msgstr ""
1846
1838
1847
#: classes/Quiz.php:530
1839
#: classes/Quiz.php:531
1848
1840
msgid "Quiz has been timeout already"
1849
1841
msgstr ""
1850
1842
1851
#: classes/Quiz.php:663, classes/Quiz.php:746, views/metabox/course-contents.php:110, views/metabox/course-contents.php:200
1843
#: classes/Quiz.php:670, classes/Quiz.php:753, views/metabox/course-contents.php:110, views/metabox/course-contents.php:200
1852
1844
msgid "QUIZ"
1853
1845
msgstr ""
1854
1846
1855
#: classes/Quiz.php:870
1847
#: classes/Quiz.php:877
1856
1848
msgid "Please make sure you have added more than one option and saved them"
1857
1849
msgstr ""
1858
1850
1859
#: classes/Quiz.php:866
1851
#: classes/Quiz.php:873
1860
1852
msgid "Please select the correct answer"
1861
1853
msgstr ""
1862
1854
1863
#: classes/Quiz.php:979, views/modal/question\_answer\_form.php:21
1855
#: classes/Quiz.php:986, views/modal/question\_answer\_form.php:21
1864
1856
msgid "True"
1865
1857
msgstr ""
1866
1858
1867
#: classes/Quiz.php:986, views/modal/question\_answer\_form.php:25
1859
#: classes/Quiz.php:993, views/modal/question\_answer\_form.php:25
1868
1860
msgid "False"
1869
1861
msgstr ""
1870
1862
1871
#: classes/Quiz.php:1097
1863
#: classes/Quiz.php:1104
1872
1864
msgid "Answer options & mark correct"
1873
1865
msgstr ""
1874
1866
1875
#: classes/Quiz.php:1100
1867
#: classes/Quiz.php:1107
1876
1868
msgid "Make sure you’re saving the answers in the right order. Students will have to match this order exactly."
1877
1869
msgstr ""
1878
1870
1879
#: classes/Quiz.php:1135, classes/Quiz.php:1129, views/modal/question\_form.php:170, views/modal/question\_form.php:163, views/pages/view\_attempt.php:342, templates/dashboard/quiz-attempts/quiz-reviews.php:400
1871
#: classes/Quiz.php:1142, classes/Quiz.php:1136, views/modal/question\_form.php:170, views/modal/question\_form.php:163, views/pages/view\_attempt.php:342, templates/dashboard/quiz-attempts/quiz-reviews.php:400
1880
1872
msgid "Mark as correct"
1881
1873
msgstr ""
1882
1874
1883
#: classes/Quiz.php:1285
1875
#: classes/Quiz.php:1292
1884
1876
msgid "Access Denied."
1885
1877
msgstr ""
…
…
1977
1969
msgstr ""
1978
1970
1979
#: classes/Tutor.php:523, classes/Utils.php:2456, templates/dashboard/dashboard.php:9
1971
#: classes/Tutor.php:519, classes/Utils.php:2467, templates/dashboard/dashboard.php:9
1980
1972
msgid "Dashboard"
1981
1973
msgstr ""
1982
1974
1983
#: classes/Tutor.php:532
1975
#: classes/Tutor.php:528
1984
1976
msgid "Student Registration"
1985
1977
msgstr ""
1986
1978
1987
#: classes/Tutor.php:541
1979
#: classes/Tutor.php:537
1988
1980
msgid "Instructor Registration"
1989
1981
msgstr ""
…
…
2073
2065
msgstr ""
2074
2066
2075
#: classes/Tutor\_Setup.php:275, classes/Tutor\_Setup.php:564, classes/Utils.php:2466
2067
#: classes/Tutor\_Setup.php:275, classes/Tutor\_Setup.php:564, classes/Utils.php:2477
2076
2068
msgid "Instructor"
2077
2069
msgstr ""
…
…
2381
2373
msgstr ""
2382
2374
2383
#: classes/Utils.php:911
2375
#: classes/Utils.php:922
2384
2376
msgid "Nonce not matched"
2385
2377
msgstr ""
2386
2378
2387
#: classes/Utils.php:1283
2379
#: classes/Utils.php:1294
2388
2380
msgid "Q&A"
2389
2381
msgstr ""
2390
2382
2391
#: classes/Utils.php:2151, templates/student-public-profile.php:116
2383
#: classes/Utils.php:2162, templates/student-public-profile.php:116
2392
2384
msgid "Course Enrolled"
2393
2385
msgstr ""
2394
2386
2395
#: classes/Utils.php:2457, templates/dashboard/my-profile.php:21
2387
#: classes/Utils.php:2468, templates/dashboard/my-profile.php:21
2396
2388
msgid "My Profile"
2397
2389
msgstr ""
2398
2390
2399
#: classes/Utils.php:2458, templates/dashboard/dashboard.php:36, templates/dashboard/enrolled-courses.php:9
2391
#: classes/Utils.php:2469, templates/dashboard/dashboard.php:36, templates/dashboard/enrolled-courses.php:9
2400
2392
msgid "Enrolled Courses"
2401
2393
msgstr ""
2402
2394
2403
#: classes/Utils.php:2459, templates/dashboard/wishlist.php:10
2395
#: classes/Utils.php:2470, templates/dashboard/wishlist.php:10
2404
2396
msgid "Wishlist"
2405
2397
msgstr ""
2406
2398
2407
#: classes/Utils.php:2460
2399
#: classes/Utils.php:2471
2408
2400
msgid "Reviews"
2409
2401
msgstr ""
2410
2402
2411
#: classes/Utils.php:2461, templates/dashboard/my-quiz-attempts.php:26
2403
#: classes/Utils.php:2472, templates/dashboard/my-quiz-attempts.php:26
2412
2404
msgid "My Quiz Attempts"
2413
2405
msgstr ""
2414
2406
2415
#: classes/Utils.php:2462, templates/dashboard/purchase\_history.php:9
2407
#: classes/Utils.php:2473, templates/dashboard/purchase\_history.php:9
2416
2408
msgid "Purchase History"
2417
2409
msgstr ""
2418
2410
2419
#: classes/Utils.php:2467
2411
#: classes/Utils.php:2478
2420
2412
msgid "Create Course"
2421
2413
msgstr ""
2422
2414
2423
#: classes/Utils.php:2468, templates/dashboard/my-courses.php:9
2415
#: classes/Utils.php:2479, templates/dashboard/my-courses.php:9
2424
2416
msgid "My Courses"
2425
2417
msgstr ""
2426
2418
2427
#: classes/Utils.php:2470
2419
#: classes/Utils.php:2481
2428
2420
msgid "Withdrawals"
2429
2421
msgstr ""
2430
2422
2431
#: classes/Utils.php:2472, templates/dashboard/question-answer.php:10, views/pages/question\_answer.php:18
2423
#: classes/Utils.php:2483, templates/dashboard/question-answer.php:10, views/pages/question\_answer.php:18
2432
2424
msgid "Question & Answer"
2433
2425
msgstr ""
2434
2426
2435
#: classes/Utils.php:2485
2427
#: classes/Utils.php:2496
2436
2428
msgid "Logout"
2437
2429
msgstr ""
2438
2430
2439
#: classes/Utils.php:2496
2431
#: classes/Utils.php:2507
2440
2432
msgid "Retrieve Password"
2441
2433
msgstr ""
2442
2434
2443
#: classes/Utils.php:2600, templates/dashboard/dashboard.php:27
2435
#: classes/Utils.php:2611, templates/dashboard/dashboard.php:27
2444
2436
msgid "Pending"
2445
2437
msgstr ""
2446
2438
2447
#: classes/Utils.php:2601
2439
#: classes/Utils.php:2612
2448
2440
msgid "Approved"
2449
2441
msgstr ""
2450
2442
2451
#: classes/Utils.php:2602
2443
#: classes/Utils.php:2613
2452
2444
msgid "Blocked"
2453
2445
msgstr ""
2454
2446
2455
#: classes/Utils.php:4217
2447
#: classes/Utils.php:4228
2456
2448
msgid "True/False"
2457
2449
msgstr ""
2458
2450
2459
#: classes/Utils.php:4218
2451
#: classes/Utils.php:4229
2460
2452
msgid "Single Choice"
2461
2453
msgstr ""
2462
2454
2463
#: classes/Utils.php:4219
2455
#: classes/Utils.php:4230
2464
2456
msgid "Multiple Choice"
2465
2457
msgstr ""
2466
2458
2467
#: classes/Utils.php:4220
2459
#: classes/Utils.php:4231
2468
2460
msgid "Open Ended/Essay"
2469
2461
msgstr ""
2470
2462
2471
#: classes/Utils.php:4221
2463
#: classes/Utils.php:4232
2472
2464
msgid "Fill In The Blanks"
2473
2465
msgstr ""
2474
2466
2475
#: classes/Utils.php:4222
2467
#: classes/Utils.php:4233
2476
2468
msgid "Short Answer"
2477
2469
msgstr ""
2478
2470
2479
#: classes/Utils.php:4223
2471
#: classes/Utils.php:4234
2480
2472
msgid "Matching"
2481
2473
msgstr ""
2482
2474
2483
#: classes/Utils.php:4224
2475
#: classes/Utils.php:4235
2484
2476
msgid "Image Matching"
2485
2477
msgstr ""
2486
2478
2487
#: classes/Utils.php:4225
2479
#: classes/Utils.php:4236
2488
2480
msgid "Image Answering"
2489
2481
msgstr ""
2490
2482
2491
#: classes/Utils.php:4226
2483
#: classes/Utils.php:4237
2492
2484
msgid "Ordering"
2493
2485
msgstr ""
2494
2486
2495
#: classes/Utils.php:5053
2487
#: classes/Utils.php:5064
2496
2488
msgid "All Levels"
2497
2489
msgstr ""
2498
2490
2499
#: classes/Utils.php:5054, templates/course-filter/filters.php:4
2491
#: classes/Utils.php:5065, templates/course-filter/filters.php:4
2500
2492
msgid "Beginner"
2501
2493
msgstr ""
2502
2494
2503
#: classes/Utils.php:5055, templates/course-filter/filters.php:5
2495
#: classes/Utils.php:5066, templates/course-filter/filters.php:5
2504
2496
msgid "Intermediate"
2505
2497
msgstr ""
2506
2498
2507
#: classes/Utils.php:5056, templates/course-filter/filters.php:6
2499
#: classes/Utils.php:5067, templates/course-filter/filters.php:6
2508
2500
msgid "Expert"
2509
2501
msgstr ""
2510
2502
2511
#: classes/Utils.php:5079
2503
#: classes/Utils.php:5090
2512
2504
msgid "Courses Taken"
2513
2505
msgstr ""
2514
2506
2515
#: classes/Utils.php:5086
2507
#: classes/Utils.php:5097
2516
2508
msgid "Enrolled Course"
2517
2509
msgstr ""
2518
2510
2519
#: classes/Utils.php:5090
2511
#: classes/Utils.php:5101
2520
2512
msgid "Reviews Written"
2521
2513
msgstr ""
2522
2514
2523
#: classes/Utils.php:5376
2515
#: classes/Utils.php:5387
2524
2516
msgid "Website URL"
2525
2517
msgstr ""
2526
2518
2527
#: classes/Utils.php:5381
2519
#: classes/Utils.php:5392
2528
2520
msgid "Github URL"
2529
2521
msgstr ""
2530
2522
2531
#: classes/Utils.php:5386
2523
#: classes/Utils.php:5397
2532
2524
msgid "Facebook URL"
2533
2525
msgstr ""
2534
2526
2535
#: classes/Utils.php:5391
2527
#: classes/Utils.php:5402
2536
2528
msgid "Twitter URL"
2537
2529
msgstr ""
2538
2530
2539
#: classes/Utils.php:5396
2531
#: classes/Utils.php:5407
2540
2532
msgid "Linkedin URL"
2541
2533
msgstr ""
2542
2534
2543
#: classes/Utils.php:6745
2535
#: classes/Utils.php:6756
2544
2536
msgid "Not Taken"
2545
2537
msgstr ""
2546
2538
2547
#: classes/Utils.php:6743
2539
#: classes/Utils.php:6754
2548
2540
msgid "In Progress"
2549
2541
msgstr ""
2550
2542
2551
#: classes/Utils.php:6739
2543
#: classes/Utils.php:6750
2552
2544
msgid "Completed"
2553
2545
msgstr ""
2554
2546
2555
#: classes/Utils.php:6922, templates/dashboard/my-profile.php:34, templates/dashboard/registration.php:50, templates/dashboard/registration.php:53, views/pages/add\_new\_instructor.php:29, views/pages/add\_new\_instructor.php:35, templates/dashboard/instructor/registration.php:51, templates/dashboard/instructor/registration.php:54, templates/dashboard/settings/profile.php:95, templates/dashboard/settings/profile.php:97
2547
#: classes/Utils.php:6933, templates/dashboard/my-profile.php:34, templates/dashboard/registration.php:50, templates/dashboard/registration.php:53, views/pages/add\_new\_instructor.php:29, views/pages/add\_new\_instructor.php:35, templates/dashboard/instructor/registration.php:51, templates/dashboard/instructor/registration.php:54, templates/dashboard/settings/profile.php:95, templates/dashboard/settings/profile.php:97
2556
2548
msgid "First Name"
2557
2549
msgstr ""
2558
2550
2559
#: classes/Utils.php:6923, templates/dashboard/my-profile.php:42, templates/dashboard/registration.php:60, templates/dashboard/registration.php:63, views/pages/add\_new\_instructor.php:43, views/pages/add\_new\_instructor.php:49, templates/dashboard/instructor/registration.php:61, templates/dashboard/instructor/registration.php:64, templates/dashboard/settings/profile.php:104, templates/dashboard/settings/profile.php:106
2551
#: classes/Utils.php:6934, templates/dashboard/my-profile.php:42, templates/dashboard/registration.php:60, templates/dashboard/registration.php:63, views/pages/add\_new\_instructor.php:43, views/pages/add\_new\_instructor.php:49, templates/dashboard/instructor/registration.php:61, templates/dashboard/instructor/registration.php:64, templates/dashboard/settings/profile.php:104, templates/dashboard/settings/profile.php:106
2560
2552
msgid "Last Name"
2561
2553
msgstr ""
2562
2554
2563
#: classes/Utils.php:6924
2555
#: classes/Utils.php:6935
2564
2556
msgid "Profile Photo"
2565
2557
msgstr ""
2566
2558
2567
#: classes/Utils.php:6925
2559
#: classes/Utils.php:6936
2568
2560
msgid "Withdraw Method"
2569
2561
msgstr ""
…
…
3662
3654
msgstr ""
3663
3655
3664
#: views/metabox/course-additional-data.php:20
3656
#: views/metabox/course-additional-data.php:18
3665
3657
msgid "Total Course Duration"
3666
3658
msgstr ""
3667
3659
3668
#: views/metabox/course-additional-data.php:28, views/metabox/video-metabox.php:152
3660
#: views/metabox/course-additional-data.php:26, views/metabox/video-metabox.php:152
3669
3661
msgid "HH"
3670
3662
msgstr ""
3671
3663
3672
#: views/metabox/course-additional-data.php:32, views/metabox/video-metabox.php:157
3664
#: views/metabox/course-additional-data.php:30, views/metabox/video-metabox.php:157
3673
3665
msgid "MM"
3674
3666
msgstr ""
3675
3667
3676
#: views/metabox/course-additional-data.php:37, views/metabox/video-metabox.php:162
3668
#: views/metabox/course-additional-data.php:35, views/metabox/video-metabox.php:162
3677
3669
msgid "SS"
3678
3670
msgstr ""
3679
3671
3680
#: views/metabox/course-additional-data.php:51
3672
#: views/metabox/course-additional-data.php:49
3681
3673
msgid "Benefits of the course"
3682
3674
msgstr ""
3683
3675
3684
#: views/metabox/course-additional-data.php:57
3676
#: views/metabox/course-additional-data.php:55
3685
3677
msgid ""
3686
3678
"List the knowledge and skills that students will learn after completing this course. (One per line)\\n"
…
…
3688
3680
msgstr ""
3689
3681
3690
#: views/metabox/course-additional-data.php:66
3682
#: views/metabox/course-additional-data.php:64
3691
3683
msgid "Requirements/Instructions"
3692
3684
msgstr ""
3693
3685
3694
#: views/metabox/course-additional-data.php:73
3686
#: views/metabox/course-additional-data.php:71
3695
3687
msgid "Additional requirements or special instructions for the students (One per line)"
3696
3688
msgstr ""
3697
3689
3698
#: views/metabox/course-additional-data.php:81
3690
#: views/metabox/course-additional-data.php:79
3699
3691
msgid "Targeted Audience"
3700
3692
msgstr ""
3701
3693
3702
#: views/metabox/course-additional-data.php:88
3694
#: views/metabox/course-additional-data.php:86
3703
3695
msgid "Specify the target audience that will benefit the most from the course. (One line per target audience.)"
3704
3696
msgstr ""
3705
3697
3706
#: views/metabox/course-additional-data.php:97
3698
#: views/metabox/course-additional-data.php:95
3707
3699
msgid "Materials Included"
3708
3700
msgstr ""
3709
3701
3710
#: views/metabox/course-additional-data.php:104
3702
#: views/metabox/course-additional-data.php:102
3711
3703
msgid "A list of assets you will be providing for the students in this course (One per line)"
3712
3704
msgstr ""
…
…
5674
5666
msgid "Assignment"
5675
5667
msgstr ""
5668
5669
#: assets/js/tutor-front.js:1, assets/js/tutor-admin.js:1, assets/js/tutor-course-builder.js:1, assets/js/tutor-setup.js:1
5670
msgid "Copied!"
5671
msgstr ""
tutor/trunk/readme.txt
r2610239
r2615802
6
6
Tested up to: 5.8
7
7
Requires PHP: 7.0
8
Stable tag: 1.9.10
8
Stable tag: 1.9.11
9
9
License: GPLv3
10
10
License URI: https://www.gnu.org/licenses/gpl-3.0.html
…
…
242
242
\== Changelog ==
243
243
244
\= 1.9.11 - October 18, 2021 =
245
246
New: Certificate Builder plugin compatibility
247
Update: Gradebook data generates automatically
248
Update: Generate Gradebook button removed
249
Fix: Gradebook data not deleting on course retake
250
Fix: XSS vulnerability in registration page
251
244
252
\= 1.9.10 - October 06, 2021 =
245
253
…
…
248
256
Fix: Date Picker not working issue in frontend Announcement Tab
249
257
Fix: CSV Download button disabled for empty reports
250
Fix: Yoast plugin conflict issue
251
258
252
259
\= 1.9.9 - September 16, 2021 =
tutor/trunk/templates/dashboard/registration.php
r2592629
r2615802
51
51
</label>
52
52
53
<input type="text" name="first\_name" value="<?php echo tutor\_utils()->input\_old('first\_name'); ?>" placeholder="<?php \_e('First Name', 'tutor'); ?>" required autocomplete="given-name">
53
<input type="text" name="first\_name" value="<?php esc\_attr\_e(tutor\_utils()->input\_old('first\_name')) ; ?>" placeholder="<?php \_e('First Name', 'tutor'); ?>" required autocomplete="given-name">
54
54
</div>
55
55
</div>
…
…
61
61
</label>
62
62
63
<input type="text" name="last\_name" value="<?php echo tutor\_utils()->input\_old('last\_name'); ?>" placeholder="<?php \_e('Last Name', 'tutor'); ?>" required autocomplete="family-name">
63
<input type="text" name="last\_name" value="<?php esc\_attr\_e(tutor\_utils()->input\_old('last\_name')); ?>" placeholder="<?php \_e('Last Name', 'tutor'); ?>" required autocomplete="family-name">
64
64
</div>
65
65
</div>
…
…
74
74
</label>
75
75
76
<input type="text" name="user\_login" class="tutor\_user\_name" value="<?php echo tutor\_utils()->input\_old('user\_login'); ?>" placeholder="<?php \_e('User Name', 'tutor'); ?>" required autocomplete="username">
76
<input type="text" name="user\_login" class="tutor\_user\_name" value="<?php esc\_attr\_e(tutor\_utils()->input\_old('user\_login')); ?>" placeholder="<?php \_e('User Name', 'tutor'); ?>" required autocomplete="username">
77
77
</div>
78
78
</div>
…
…
84
84
</label>
85
85
86
<input type="text" name="email" value="<?php echo tutor\_utils()->input\_old('email'); ?>" placeholder="<?php \_e('E-Mail', 'tutor'); ?>" required autocomplete="email">
86
<input type="text" name="email" value="<?php esc\_attr\_e(tutor\_utils()->input\_old('email')); ?>" placeholder="<?php \_e('E-Mail', 'tutor'); ?>" required autocomplete="email">
87
87
</div>
88
88
</div>
…
…
97
97
</label>
98
98
99
<input type="password" name="password" value="<?php echo tutor\_utils()->input\_old('password'); ?>" placeholder="<?php \_e('Password', 'tutor'); ?>" required autocomplete="new-password">
99
<input type="password" name="password" value="<?php esc\_attr\_e(tutor\_utils()->input\_old('password')); ?>" placeholder="<?php \_e('Password', 'tutor'); ?>" required autocomplete="new-password">
100
100
</div>
101
101
</div>
…
…
107
107
</label>
108
108
109
<input type="password" name="password\_confirmation" value="<?php echo tutor\_utils()->input\_old('password\_confirmation'); ?>" placeholder="<?php \_e('Password Confirmation', 'tutor'); ?>" required autocomplete="new-password">
109
<input type="password" name="password\_confirmation" value="<?php esc\_attr\_e(tutor\_utils()->input\_old('password\_confirmation')); ?>" placeholder="<?php \_e('Password Confirmation', 'tutor'); ?>" required autocomplete="new-password">
110
110
</div>
111
111
</div>
tutor/trunk/tutor.php
r2610239
r2615802
5
5
Description: Tutor is a complete solution for creating a Learning Management System in WordPress way. It can help you to create small to large scale online education site very conveniently. Power features like report, certificate, course preview, private file sharing make Tutor a robust plugin for any educational institutes.
6
6
Author: Themeum
7
Version: 1.9.10
7
Version: 1.9.11
8
8
Author URI: https://themeum.com
9
9
Requires at least: 4.5
…
…
18
18
\* Defined the tutor main file
19
19
\*/
20
define( 'TUTOR\_VERSION', '1.9.10' );
20
define( 'TUTOR\_VERSION', '1.9.11' );
21
21
define( 'TUTOR\_FILE', \_\_FILE\_\_ );
22
22
…
…
86
86
if ( ! function\_exists('tutor\_utils') ) {
87
87
function tutor\_utils() {
88
return new \\TUTOR\\Utils();
88
if(!isset($GLOBALS\['tutor\_utils\_object'\])) {
89
// Use runtime cache
90
$GLOBALS\['tutor\_utils\_object'\] = new \\TUTOR\\Utils();
91
}
92
93
return $GLOBALS\['tutor\_utils\_object'\];
89
94
}
90
95
}
tutor/trunk/views/metabox/course-additional-data.php
r2396788
r2615802
2
2
$course\_id = get\_the\_ID();
3
3
4
$duration = maybe\_unserialize(get\_post\_meta($course\_id, '\_course\_duration', true));
5
$durationHours = tutor\_utils()->avalue\_dot('hours', $duration);
6
$durationMinutes = tutor\_utils()->avalue\_dot('minutes', $duration);
7
$durationSeconds = tutor\_utils()->avalue\_dot('seconds', $duration);
4
// Extract: $duration, $durationHours, $durationMinutes, $durationSeconds
5
extract(tutor\_utils()->get\_course\_duration($course\_id, true));
8
6
9
7
$benefits = get\_post\_meta($course\_id, '\_tutor\_course\_benefits', true);