Version Description
- Added quiz option to minus a number of point for each wrong question in quiz
- Added admin email to send to admin when an order is completed
- Added button allows wp admin can send a request to subscriber ~ Improved auto redirecting to current question when user go to a quiz ~ Improved UI of course editor for RTL ~ Improved content of email sending to admin and instructor ~ Fixed page show 404 with pagination in courses page (conflict with WPML) ~ Fixed course price is still showing after user enrolled course ~ Fixed not auto redirecting to checkout after logged in ~ Fixed some issues made question can't edit ~ Fixed issue for requesting to get related themes/addons in admin ~ Fixed some issues with content header when viewing in Safari ~ Fixed wrong ordering of course item when adding new ~ Fixed order for multiple user is not show in list of orders ~ Fixed some text is not translatable ~ Fixed breadcrumb not show page name when viewing archive course ~ Fixed archive course show header is title of first course
Download this release
Release Info
Developer | tunnhn |
Plugin | ![]() |
Version | 3.0.10 |
Comparing to | |
See all releases |
Code changes from version 3.0.9 to 3.0.10
- assets/css/admin/admin.css +87 -26
- assets/js/admin/admin.js +33 -4
- assets/js/admin/meta-box-order.js +0 -1
- assets/js/admin/modal-search-items.js +9 -3
- assets/js/admin/question-editor.js +23 -4
- assets/js/admin/quiz-editor.js +17 -1
- assets/js/vendor/vue.min.js +6 -0
- assets/scss/_mixin.scss +1 -0
- assets/scss/admin/_addons.scss +2 -2
- assets/scss/admin/_admin-editor.scss +1 -2
- assets/scss/admin/_modal-search.scss +28 -13
- assets/scss/admin/_post-types.scss +7 -9
- assets/scss/admin/_rtl.scss +83 -0
- assets/scss/admin/admin.scss +1 -0
- inc/abstracts/abstract-background-process.php +16 -2
- inc/abstracts/abstract-object-data.php +1 -1
- inc/admin/class-lp-admin-ajax.php +57 -10
- inc/admin/class-lp-admin-assets.php +4 -2
- inc/admin/class-lp-admin.php +65 -48
- inc/admin/class-lp-install-sample-data.php +21 -20
- inc/admin/class-lp-modal-search-items.php +17 -16
- inc/admin/helpers/class-lp-plugins-helper.php +14 -31
- inc/admin/lp-admin-functions.php +1 -1
- inc/admin/settings/class-lp-settings-payments.php +6 -0
- inc/admin/settings/email-groups/class-lp-settings-become-teacher-emails.php +2 -1
- inc/admin/settings/email-groups/class-lp-settings-completed-order-emails.php +1 -1
- inc/admin/sub-menus/class-lp-submenu-addons.php +7 -5
- inc/admin/sub-menus/class-lp-submenu-statistics.php +7 -1
- inc/admin/views/addons/html-loop-plugin.php +3 -2
- inc/admin/views/addons/html-plugins-more.php +8 -0
- inc/admin/views/addons/html-themes.php +6 -2
- inc/admin/views/course/new-section.php +1 -1
- inc/admin/views/course/section-item.php +1 -2
- inc/admin/views/course/section.php +2 -3
- inc/admin/views/meta-boxes/order/order-item.php +1 -1
- inc/admin/views/modal-search-items.php +1 -1
- inc/admin/views/modal-search-users.php +1 -1
- inc/admin/views/quiz/question-actions.php +2 -3
- inc/admin/views/quiz/question-meta.php +1 -1
- inc/admin/views/tools/subscription-button.php +19 -0
- inc/background-process/class-lp-background-query-items.php +104 -13
- inc/cart/class-lp-cart.php +1 -1
- inc/class-lp-ajax.php +2 -1
- inc/class-lp-assets.php +4 -4
- inc/class-lp-breadcrumb.php +10 -10
- inc/class-lp-checkout.php +19 -9
- inc/class-lp-datetime.php +26 -6
- inc/class-lp-emails.php +35 -37
- inc/class-lp-forms-handler.php +14 -20
- inc/class-lp-install.php +18 -0
- inc/class-lp-page-controller.php +68 -11
- inc/class-lp-preview-course.php +7 -4
- inc/class-lp-request-handler.php +26 -17
- inc/course/abstract-course.php +7 -2
- inc/course/class-lp-course-item.php +6 -3
- inc/course/class-lp-course.php +12 -1
- inc/course/lp-course-functions.php +115 -26
- inc/curds/class-lp-course-curd.php +14 -12
- inc/curds/class-lp-question-curd.php +1 -1
- inc/curds/class-lp-quiz-curd.php +17 -14
- inc/curds/class-lp-section-curd.php +55 -76
- inc/curds/class-lp-user-curd.php +23 -24
- inc/custom-post-types/lesson.php +2 -2
- inc/custom-post-types/order.php +89 -25
- inc/custom-post-types/question.php +1 -2
- inc/custom-post-types/quiz.php +49 -3
- inc/debug.php +8 -7
- inc/emails/_bk/class-lp-email-finished-course-admin.php +0 -199
- inc/emails/_bk/class-lp-email-finished-course-instructor.php +0 -201
- inc/emails/_bk/class-lp-email-finished-course-user.php +0 -201
- inc/emails/class-lp-email-become-an-instructor.php +19 -3
- inc/emails/class-lp-email-completed-order-admin.php +68 -0
- inc/emails/class-lp-email-instructor-accepted.php +4 -4
- inc/emails/class-lp-email-instructor-denied.php +68 -0
- inc/emails/class-lp-email-new-order-user.php +4 -0
- inc/libraries/meta-box/css/image-advanced.css +0 -52
- inc/libraries/meta-box/img/loader.gif +0 -0
- inc/libraries/meta-box/inc/fields/thickbox-image.php +0 -80
- inc/libraries/meta-box/js/thickbox-image.js +0 -34
- inc/libraries/wp-background-process.php +2 -0
- inc/lp-constants.php +1 -1
- inc/lp-core-functions.php +29 -5
- inc/lp-template-functions.php +29 -4
- inc/lp-template-hooks.php +1 -1
- inc/order/lp-order-functions.php +3 -2
- inc/question/class-lp-question.php +11 -7
- inc/quiz/class-lp-quiz-factory.php +21 -25
- inc/quiz/class-lp-quiz.php +51 -21
- inc/updates/learnpress-update-3.0.0.php +10 -6
- inc/user-item/class-lp-user-item-course-bk.php +898 -0
- inc/user-item/class-lp-user-item-quiz.php +13 -4
- inc/user/abstract-lp-user.php +24 -9
- inc/user/class-lp-user-factory.php +27 -21
- languages/learnpress-es_ES.mo +0 -0
- languages/learnpress-es_ES.po +6646 -4248
- languages/learnpress-pt_BR.mo +0 -0
- languages/learnpress.pot +4515 -4593
- learnpress.php +2 -4
- readme.txt +26 -6
- templates/checkout/term-conditions.php +22 -0
- templates/content-lesson/block-content.php +0 -17
- templates/content-quiz/result.php +1 -1
- templates/emails/become-an-instructor.php +9 -3
- templates/emails/cancelled-order-admin.php +0 -2
- templates/emails/cancelled-order-guest.php +0 -2
- templates/emails/cancelled-order-instructor.php +0 -2
- templates/emails/cancelled-order-user.php +0 -2
- templates/emails/completed-order-admin.php +7 -0
- templates/emails/completed-order-guest.php +0 -2
- templates/emails/completed-order-user.php +0 -2
- templates/emails/enrolled-course-admin.php +0 -2
- templates/emails/enrolled-course-instructor.php +0 -2
- templates/emails/enrolled-course-user.php +0 -2
- templates/emails/enrolled-course.php +0 -2
- templates/emails/finished-course-admin.php +0 -2
- templates/emails/finished-course-instructor.php +0 -2
- templates/emails/finished-course-user.php +0 -2
- templates/emails/finished-course.php +0 -2
- templates/emails/instructor-accepted.php +1 -3
- templates/emails/instructor-denied.php +6 -0
- templates/emails/new-course.php +0 -2
- templates/emails/new-order-admin.php +0 -2
- templates/emails/new-order-guest.php +0 -2
- templates/emails/new-order-instructor.php +0 -2
- templates/emails/new-order-user.php +0 -2
- templates/emails/order-items-table.php +14 -7
- templates/emails/plain/become-an-instructor.php +9 -2
- templates/emails/plain/completed-order-admin.php +7 -0
- templates/emails/plain/instructor-accepted.php +1 -2
- templates/emails/plain/instructor-denied.php +6 -0
- templates/emails/processing-order-guest.php +0 -2
- templates/emails/processing-order-user.php +0 -2
- templates/emails/published-course.php +0 -2
- templates/emails/rejected-course.php +0 -2
- templates/emails/update-course.php +0 -2
- templates/emails/user-order-changed-status.php +0 -2
- templates/emails/user-order-completed.php +0 -2
- templates/global/become-teacher-form/button.php +2 -4
- templates/search-form.php +1 -1
- templates/single-course/students.php +3 -3
assets/css/admin/admin.css
CHANGED
@@ -1201,9 +1201,10 @@
|
|
1201 |
text-overflow: ellipsis;
|
1202 |
display: -webkit-box;
|
1203 |
-webkit-box-orient: vertical;
|
1204 |
-
-webkit-line-clamp:
|
1205 |
-
line-height: 1.
|
1206 |
-
max-height:
|
|
|
1207 |
color: #777; }
|
1208 |
.learn-press-addons .addons-browse .plugin-card .search-highlight {
|
1209 |
text-decoration: underline; }
|
@@ -1212,9 +1213,10 @@
|
|
1212 |
text-overflow: ellipsis;
|
1213 |
display: -webkit-box;
|
1214 |
-webkit-box-orient: vertical;
|
1215 |
-
-webkit-line-clamp:
|
1216 |
line-height: 1.3em;
|
1217 |
-
max-height:
|
|
|
1218 |
.learn-press-addons .addons-browse .plugin-card-top .desc {
|
1219 |
min-height: 90px;
|
1220 |
margin-right: 0; }
|
@@ -1258,6 +1260,7 @@
|
|
1258 |
-webkit-line-clamp: 5;
|
1259 |
line-height: 1.6em;
|
1260 |
max-height: 8em;
|
|
|
1261 |
color: #777; }
|
1262 |
|
1263 |
.related-themes .theme-title {
|
@@ -1363,10 +1366,10 @@
|
|
1363 |
margin-right: 10px;
|
1364 |
color: #FF0000; }
|
1365 |
|
1366 |
-
.
|
1367 |
text-align: left;
|
1368 |
float: none; }
|
1369 |
-
.
|
1370 |
border: none;
|
1371 |
width: 30px;
|
1372 |
height: auto;
|
@@ -1379,20 +1382,20 @@
|
|
1379 |
-ms-transform: rotate(-180deg);
|
1380 |
-o-transform: rotate(-180deg);
|
1381 |
transform: rotate(-180deg); }
|
1382 |
-
.
|
1383 |
font: 400 21px/1 fontawesome;
|
1384 |
content: "\f205";
|
1385 |
font-size: 24px;
|
1386 |
width: 30px;
|
1387 |
margin: 0;
|
1388 |
text-align: center; }
|
1389 |
-
.
|
1390 |
-webkit-transform: rotate(0deg);
|
1391 |
-moz-transform: rotate(0deg);
|
1392 |
-ms-transform: rotate(0deg);
|
1393 |
-o-transform: rotate(0deg);
|
1394 |
transform: rotate(0deg); }
|
1395 |
-
.
|
1396 |
margin-top: -1px; }
|
1397 |
|
1398 |
.post-type-page .column-lp-page {
|
@@ -1415,14 +1418,14 @@
|
|
1415 |
height: 24px;
|
1416 |
line-height: 22px; }
|
1417 |
|
1418 |
-
.modal {
|
1419 |
position: fixed;
|
1420 |
z-index: 1000000;
|
1421 |
width: 100%;
|
1422 |
height: 100%;
|
1423 |
top: 0;
|
1424 |
display: table; }
|
1425 |
-
.modal .modal-overlay {
|
1426 |
position: fixed;
|
1427 |
z-index: 1000000;
|
1428 |
background: #000;
|
@@ -1430,12 +1433,12 @@
|
|
1430 |
width: 100%;
|
1431 |
height: 100%;
|
1432 |
top: 0; }
|
1433 |
-
.modal .modal-wrapper {
|
1434 |
display: table-cell;
|
1435 |
vertical-align: middle;
|
1436 |
z-index: 1000010;
|
1437 |
position: relative; }
|
1438 |
-
.modal .modal-wrapper .modal-container {
|
1439 |
max-width: 800px;
|
1440 |
width: 90%;
|
1441 |
margin: 0px auto;
|
@@ -1447,13 +1450,13 @@
|
|
1447 |
-webkit-box-sizing: border-box;
|
1448 |
-moz-box-sizing: border-box;
|
1449 |
box-sizing: border-box; }
|
1450 |
-
.modal .modal-wrapper header {
|
1451 |
font-size: 16px;
|
1452 |
padding: 15px 20px;
|
1453 |
border-bottom: 1px solid #DDD; }
|
1454 |
-
.modal .modal-wrapper article {
|
1455 |
-
margin: 20px; }
|
1456 |
-
.modal .modal-wrapper article input[name="search"] {
|
1457 |
width: 100%;
|
1458 |
font-size: 16px;
|
1459 |
box-sizing: border-box;
|
@@ -1464,23 +1467,35 @@
|
|
1464 |
border-radius: 2px;
|
1465 |
border-color: #e4e4e4;
|
1466 |
font-weight: lighter; }
|
1467 |
-
.modal .modal-wrapper article .search-results li > label {
|
1468 |
display: block; }
|
1469 |
-
.modal .modal-wrapper footer {
|
1470 |
-
padding:
|
1471 |
-
overflow: hidden;
|
1472 |
-
|
|
|
1473 |
float: left; }
|
1474 |
-
.modal .modal-wrapper footer .search-nav a, .modal .modal-wrapper footer .search-nav span {
|
1475 |
display: inline-block;
|
1476 |
line-height: 26px;
|
1477 |
height: 28px;
|
1478 |
margin: 0;
|
1479 |
padding: 0 10px 1px; }
|
1480 |
-
.modal .modal-wrapper footer button {
|
1481 |
float: right;
|
1482 |
margin-left: 3px; }
|
1483 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1484 |
.modal-search {
|
1485 |
position: relative;
|
1486 |
display: inline-block;
|
@@ -2076,7 +2091,7 @@
|
|
2076 |
color: #a00; }
|
2077 |
#admin-editor-lp_course .lp-course-curriculum .section-list-items .section-item:hover .drag {
|
2078 |
visibility: visible; }
|
2079 |
-
#admin-editor-lp_course .lp-course-curriculum .section-list-items .section-item
|
2080 |
display: none; }
|
2081 |
#admin-editor-lp_course .lp-course-curriculum .section-list-items .new-section-item {
|
2082 |
border-bottom-width: 1px;
|
@@ -3079,6 +3094,52 @@ body.lp-item-moving {
|
|
3079 |
#learn-press-advertisement .slider-controls {
|
3080 |
bottom: 40px; } }
|
3081 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3082 |
.button.disabled {
|
3083 |
pointer-events: none; }
|
3084 |
|
1201 |
text-overflow: ellipsis;
|
1202 |
display: -webkit-box;
|
1203 |
-webkit-box-orient: vertical;
|
1204 |
+
-webkit-line-clamp: 3;
|
1205 |
+
line-height: 1.6;
|
1206 |
+
max-height: 4.8;
|
1207 |
+
min-height: 4.8;
|
1208 |
color: #777; }
|
1209 |
.learn-press-addons .addons-browse .plugin-card .search-highlight {
|
1210 |
text-decoration: underline; }
|
1213 |
text-overflow: ellipsis;
|
1214 |
display: -webkit-box;
|
1215 |
-webkit-box-orient: vertical;
|
1216 |
+
-webkit-line-clamp: 2;
|
1217 |
line-height: 1.3em;
|
1218 |
+
max-height: 2.6em;
|
1219 |
+
min-height: 2.6em; }
|
1220 |
.learn-press-addons .addons-browse .plugin-card-top .desc {
|
1221 |
min-height: 90px;
|
1222 |
margin-right: 0; }
|
1260 |
-webkit-line-clamp: 5;
|
1261 |
line-height: 1.6em;
|
1262 |
max-height: 8em;
|
1263 |
+
min-height: 8em;
|
1264 |
color: #777; }
|
1265 |
|
1266 |
.related-themes .theme-title {
|
1366 |
margin-right: 10px;
|
1367 |
color: #FF0000; }
|
1368 |
|
1369 |
+
.wp-list-table .column-preview {
|
1370 |
text-align: left;
|
1371 |
float: none; }
|
1372 |
+
.wp-list-table .column-preview input[type="checkbox"] {
|
1373 |
border: none;
|
1374 |
width: 30px;
|
1375 |
height: auto;
|
1382 |
-ms-transform: rotate(-180deg);
|
1383 |
-o-transform: rotate(-180deg);
|
1384 |
transform: rotate(-180deg); }
|
1385 |
+
.wp-list-table .column-preview input[type="checkbox"]:before, .wp-list-table .column-preview input[type="checkbox"]:checked:before {
|
1386 |
font: 400 21px/1 fontawesome;
|
1387 |
content: "\f205";
|
1388 |
font-size: 24px;
|
1389 |
width: 30px;
|
1390 |
margin: 0;
|
1391 |
text-align: center; }
|
1392 |
+
.wp-list-table .column-preview input[type="checkbox"]:checked {
|
1393 |
-webkit-transform: rotate(0deg);
|
1394 |
-moz-transform: rotate(0deg);
|
1395 |
-ms-transform: rotate(0deg);
|
1396 |
-o-transform: rotate(0deg);
|
1397 |
transform: rotate(0deg); }
|
1398 |
+
.wp-list-table .column-preview input[type="checkbox"]:checked:before {
|
1399 |
margin-top: -1px; }
|
1400 |
|
1401 |
.post-type-page .column-lp-page {
|
1418 |
height: 24px;
|
1419 |
line-height: 22px; }
|
1420 |
|
1421 |
+
.learn-press-modal {
|
1422 |
position: fixed;
|
1423 |
z-index: 1000000;
|
1424 |
width: 100%;
|
1425 |
height: 100%;
|
1426 |
top: 0;
|
1427 |
display: table; }
|
1428 |
+
.learn-press-modal .modal-overlay {
|
1429 |
position: fixed;
|
1430 |
z-index: 1000000;
|
1431 |
background: #000;
|
1433 |
width: 100%;
|
1434 |
height: 100%;
|
1435 |
top: 0; }
|
1436 |
+
.learn-press-modal .modal-wrapper {
|
1437 |
display: table-cell;
|
1438 |
vertical-align: middle;
|
1439 |
z-index: 1000010;
|
1440 |
position: relative; }
|
1441 |
+
.learn-press-modal .modal-wrapper .modal-container {
|
1442 |
max-width: 800px;
|
1443 |
width: 90%;
|
1444 |
margin: 0px auto;
|
1450 |
-webkit-box-sizing: border-box;
|
1451 |
-moz-box-sizing: border-box;
|
1452 |
box-sizing: border-box; }
|
1453 |
+
.learn-press-modal .modal-wrapper header {
|
1454 |
font-size: 16px;
|
1455 |
padding: 15px 20px;
|
1456 |
border-bottom: 1px solid #DDD; }
|
1457 |
+
.learn-press-modal .modal-wrapper article {
|
1458 |
+
margin: 45px 20px; }
|
1459 |
+
.learn-press-modal .modal-wrapper article input[name="search"] {
|
1460 |
width: 100%;
|
1461 |
font-size: 16px;
|
1462 |
box-sizing: border-box;
|
1467 |
border-radius: 2px;
|
1468 |
border-color: #e4e4e4;
|
1469 |
font-weight: lighter; }
|
1470 |
+
.learn-press-modal .modal-wrapper article .search-results li > label {
|
1471 |
display: block; }
|
1472 |
+
.learn-press-modal .modal-wrapper footer {
|
1473 |
+
padding: 15px 20px;
|
1474 |
+
overflow: hidden;
|
1475 |
+
border: 1px solid #eee; }
|
1476 |
+
.learn-press-modal .modal-wrapper footer .search-nav {
|
1477 |
float: left; }
|
1478 |
+
.learn-press-modal .modal-wrapper footer .search-nav a, .learn-press-modal .modal-wrapper footer .search-nav span {
|
1479 |
display: inline-block;
|
1480 |
line-height: 26px;
|
1481 |
height: 28px;
|
1482 |
margin: 0;
|
1483 |
padding: 0 10px 1px; }
|
1484 |
+
.learn-press-modal .modal-wrapper footer button {
|
1485 |
float: right;
|
1486 |
margin-left: 3px; }
|
1487 |
|
1488 |
+
#modal-search-items.loading .search-results:before {
|
1489 |
+
position: absolute;
|
1490 |
+
top: 75px;
|
1491 |
+
left: 0;
|
1492 |
+
right: 0;
|
1493 |
+
bottom: 0;
|
1494 |
+
display: block;
|
1495 |
+
content: '';
|
1496 |
+
z-index: 9;
|
1497 |
+
background: url("../../images/spinner.gif") no-repeat center center; }
|
1498 |
+
|
1499 |
.modal-search {
|
1500 |
position: relative;
|
1501 |
display: inline-block;
|
2091 |
color: #a00; }
|
2092 |
#admin-editor-lp_course .lp-course-curriculum .section-list-items .section-item:hover .drag {
|
2093 |
visibility: visible; }
|
2094 |
+
#admin-editor-lp_course .lp-course-curriculum .section-list-items .section-item:not(.lp_lesson) .item-actions .actions .preview-item {
|
2095 |
display: none; }
|
2096 |
#admin-editor-lp_course .lp-course-curriculum .section-list-items .new-section-item {
|
2097 |
border-bottom-width: 1px;
|
3094 |
#learn-press-advertisement .slider-controls {
|
3095 |
bottom: 40px; } }
|
3096 |
|
3097 |
+
.rtl .section-item-counts {
|
3098 |
+
left: 41px;
|
3099 |
+
right: auto; }
|
3100 |
+
|
3101 |
+
.rtl #admin-editor-lp_course .lp-course-curriculum .heading .status {
|
3102 |
+
margin-right: 10px; }
|
3103 |
+
|
3104 |
+
.rtl #admin-editor-lp_course .lp-course-curriculum .collapse-sections {
|
3105 |
+
left: 0;
|
3106 |
+
right: unset !important; }
|
3107 |
+
|
3108 |
+
.rtl #admin-editor-lp_course .lp-course-curriculum .section-list-items .section-item .title {
|
3109 |
+
margin-right: 5px; }
|
3110 |
+
|
3111 |
+
.rtl #admin-editor-lp_course .lp-course-curriculum .section-list-items .section-item .item-actions {
|
3112 |
+
left: 0;
|
3113 |
+
right: unset !important; }
|
3114 |
+
.rtl #admin-editor-lp_course .lp-course-curriculum .section-list-items .section-item .item-actions .actions .ui-sortable {
|
3115 |
+
right: unset !important;
|
3116 |
+
left: 0; }
|
3117 |
+
.rtl #admin-editor-lp_course .lp-course-curriculum .section-list-items .section-item .item-actions .actions .ui-sortable li {
|
3118 |
+
text-align: left; }
|
3119 |
+
|
3120 |
+
.rtl #admin-editor-lp_course .lp-course-curriculum .section-actions .remove {
|
3121 |
+
float: left; }
|
3122 |
+
|
3123 |
+
.rtl #admin-editor-lp_course .lp-course-curriculum .actions {
|
3124 |
+
right: unset !important;
|
3125 |
+
left: 0; }
|
3126 |
+
|
3127 |
+
.rtl #admin-editor-lp_quiz .lp-list-questions .question-item .lp-toolbar-btn-dropdown ul {
|
3128 |
+
left: 0;
|
3129 |
+
right: unset !important; }
|
3130 |
+
.rtl #admin-editor-lp_quiz .lp-list-questions .question-item .lp-toolbar-btn-dropdown ul li a {
|
3131 |
+
text-align: left; }
|
3132 |
+
|
3133 |
+
.rtl #admin-editor-lp_quiz .add-new-question {
|
3134 |
+
text-align: right; }
|
3135 |
+
|
3136 |
+
.rtl #lp-modal-choose-items .header .preview-title {
|
3137 |
+
padding-right: 20px; }
|
3138 |
+
|
3139 |
+
.rtl #lp-modal-choose-items .header .close {
|
3140 |
+
left: 0;
|
3141 |
+
right: unset; }
|
3142 |
+
|
3143 |
.button.disabled {
|
3144 |
pointer-events: none; }
|
3145 |
|
assets/js/admin/admin.js
CHANGED
@@ -159,12 +159,12 @@
|
|
159 |
}).apply(this)
|
160 |
}
|
161 |
|
162 |
-
function
|
163 |
$.ajax({
|
164 |
url: '',
|
165 |
data: {
|
166 |
-
'lp-ajax': '
|
167 |
-
|
168 |
previewable: this.checked ? 'yes' : 'no',
|
169 |
nonce: $(this).attr('data-nonce')
|
170 |
},
|
@@ -378,6 +378,33 @@
|
|
378 |
});
|
379 |
}
|
380 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
381 |
|
382 |
var $doc = $(document);
|
383 |
|
@@ -385,7 +412,7 @@
|
|
385 |
|
386 |
$('.learn-press-dropdown-pages').dropdownPages();
|
387 |
$('.learn-press-advertisement-slider').LP_Advertisement_Slider();
|
388 |
-
$('.learn-press-toggle-
|
389 |
$('.learn-press-tip').QuickTip();
|
390 |
|
391 |
initTooltips();
|
@@ -403,6 +430,8 @@
|
|
403 |
.on('click', '.plugin-action-buttons a', pluginActions)
|
404 |
.on('click', '.learn-press-filter-template', _callbackFilterTemplates)
|
405 |
.on('click', '.lp-duplicate-row-action .lp-duplicate-post', _duplicatePost)
|
|
|
|
|
406 |
.on('mousedown', '.lp-sortable-handle', function (e) {
|
407 |
$('html, body').addClass('lp-item-moving');
|
408 |
$(e.target).closest('.lp-sortable-handle').css('cursor', 'inherit');
|
159 |
}).apply(this)
|
160 |
}
|
161 |
|
162 |
+
function updateItemPreview() {
|
163 |
$.ajax({
|
164 |
url: '',
|
165 |
data: {
|
166 |
+
'lp-ajax': 'toggle_item_preview',
|
167 |
+
item_id: this.value,
|
168 |
previewable: this.checked ? 'yes' : 'no',
|
169 |
nonce: $(this).attr('data-nonce')
|
170 |
},
|
378 |
});
|
379 |
}
|
380 |
|
381 |
+
function send_newsletter_info(e){
|
382 |
+
var $notice = $(e.target),
|
383 |
+
context = $notice.attr('data-context');
|
384 |
+
$(this).addClass('updating-message button-working disabled');
|
385 |
+
$.ajax({
|
386 |
+
url: '',
|
387 |
+
data: {
|
388 |
+
'lp-ajax': 'join_newsletter',
|
389 |
+
context: context
|
390 |
+
},
|
391 |
+
success: function (response) {
|
392 |
+
response = LP.parseJSON(response);
|
393 |
+
$(this).removeClass('updating-message button-working');
|
394 |
+
if (response.success) {
|
395 |
+
$('#learn-press-newsletter-button').fadeOut();
|
396 |
+
//alert(response.data);
|
397 |
+
} else {
|
398 |
+
//alert(response.data);
|
399 |
+
}
|
400 |
+
}
|
401 |
+
});
|
402 |
+
}
|
403 |
+
|
404 |
+
function checkUpdates(e){
|
405 |
+
//e.preventDefault();
|
406 |
+
}
|
407 |
+
|
408 |
|
409 |
var $doc = $(document);
|
410 |
|
412 |
|
413 |
$('.learn-press-dropdown-pages').dropdownPages();
|
414 |
$('.learn-press-advertisement-slider').LP_Advertisement_Slider();
|
415 |
+
$('.learn-press-toggle-item-preview').on('change', updateItemPreview);
|
416 |
$('.learn-press-tip').QuickTip();
|
417 |
|
418 |
initTooltips();
|
430 |
.on('click', '.plugin-action-buttons a', pluginActions)
|
431 |
.on('click', '.learn-press-filter-template', _callbackFilterTemplates)
|
432 |
.on('click', '.lp-duplicate-row-action .lp-duplicate-post', _duplicatePost)
|
433 |
+
.on('click', '#learn-press-newsletter-button button', send_newsletter_info)
|
434 |
+
.on('click','#learn-press-check-update-addons', checkUpdates)
|
435 |
.on('mousedown', '.lp-sortable-handle', function (e) {
|
436 |
$('html, body').addClass('lp-item-moving');
|
437 |
$(e.target).closest('.lp-sortable-handle').css('cursor', 'inherit');
|
assets/js/admin/meta-box-order.js
CHANGED
@@ -91,7 +91,6 @@
|
|
91 |
});
|
92 |
|
93 |
$('#learn-press-add-order-item').on('click', function () {
|
94 |
-
console.log(getAddedItems())
|
95 |
LP.$modalSearchItems.open({
|
96 |
data: {
|
97 |
postType: 'lp_course',
|
91 |
});
|
92 |
|
93 |
$('#learn-press-add-order-item').on('click', function () {
|
|
|
94 |
LP.$modalSearchItems.open({
|
95 |
data: {
|
96 |
postType: 'lp_course',
|
assets/js/admin/modal-search-items.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
/*global jQuery, Backbone, _ */
|
2 |
-
(
|
3 |
'use strict';
|
4 |
|
5 |
$(document).ready(function () {
|
@@ -23,6 +23,11 @@
|
|
23 |
props: ['postType', 'context', 'contextId', 'show', 'callbacks', 'exclude'],
|
24 |
created: function () {
|
25 |
},
|
|
|
|
|
|
|
|
|
|
|
26 |
methods: {
|
27 |
doSearch: function (e) {
|
28 |
this.term = e.target.value;
|
@@ -30,8 +35,8 @@
|
|
30 |
this.search();
|
31 |
},
|
32 |
search: _.debounce(function (term) {
|
|
|
33 |
var that = this;
|
34 |
-
console.log(this)
|
35 |
Vue.http.post(
|
36 |
window.location.href, {
|
37 |
type: this.postType,
|
@@ -49,6 +54,8 @@
|
|
49 |
var result = LP.parseJSON(response.body || response.bodyText);
|
50 |
that.hasItems = !!_.size(result.items);
|
51 |
|
|
|
|
|
52 |
$(that.$el).find('.search-results').html(result.html).find('input[type="checkbox"]').each(function () {
|
53 |
var id = parseInt($(this).val());
|
54 |
if (_.indexOf(that.selected, id) >= 0) {
|
@@ -117,7 +124,6 @@
|
|
117 |
},
|
118 |
methods: {
|
119 |
open: function (options) {
|
120 |
-
console.log(options)
|
121 |
_.each(options.data, function (v, k) {
|
122 |
this[k] = v;
|
123 |
}, this);
|
1 |
/*global jQuery, Backbone, _ */
|
2 |
+
(function ($, Vue, _) {
|
3 |
'use strict';
|
4 |
|
5 |
$(document).ready(function () {
|
23 |
props: ['postType', 'context', 'contextId', 'show', 'callbacks', 'exclude'],
|
24 |
created: function () {
|
25 |
},
|
26 |
+
mounted: function () {
|
27 |
+
this.term = '';
|
28 |
+
this.paged = 1;
|
29 |
+
this.search();
|
30 |
+
},
|
31 |
methods: {
|
32 |
doSearch: function (e) {
|
33 |
this.term = e.target.value;
|
35 |
this.search();
|
36 |
},
|
37 |
search: _.debounce(function (term) {
|
38 |
+
$('#modal-search-items').addClass('loading');
|
39 |
var that = this;
|
|
|
40 |
Vue.http.post(
|
41 |
window.location.href, {
|
42 |
type: this.postType,
|
54 |
var result = LP.parseJSON(response.body || response.bodyText);
|
55 |
that.hasItems = !!_.size(result.items);
|
56 |
|
57 |
+
$('#modal-search-items').removeClass('loading');
|
58 |
+
|
59 |
$(that.$el).find('.search-results').html(result.html).find('input[type="checkbox"]').each(function () {
|
60 |
var id = parseInt($(this).val());
|
61 |
if (_.indexOf(that.selected, id) >= 0) {
|
124 |
},
|
125 |
methods: {
|
126 |
open: function (options) {
|
|
|
127 |
_.each(options.data, function (v, k) {
|
128 |
this[k] = v;
|
129 |
}, this);
|
assets/js/admin/question-editor.js
CHANGED
@@ -35,6 +35,10 @@
|
|
35 |
type: function (state) {
|
36 |
return state.type;
|
37 |
},
|
|
|
|
|
|
|
|
|
38 |
autoDraft: function (state) {
|
39 |
return state.auto_draft;
|
40 |
},
|
@@ -154,9 +158,13 @@
|
|
154 |
},
|
155 |
|
156 |
updateAnswerTitle: function (context, answer) {
|
|
|
|
|
|
|
|
|
157 |
Vue.http.LPRequest({
|
158 |
type: 'update-answer-title',
|
159 |
-
answer:
|
160 |
})
|
161 |
},
|
162 |
|
@@ -249,13 +257,18 @@
|
|
249 |
payload['id'] = $store.getters.id;
|
250 |
payload['nonce'] = $store.getters.nonce;
|
251 |
payload['lp-ajax'] = $store.getters.action;
|
252 |
-
|
|
|
|
|
|
|
|
|
253 |
return Vue.http.post($store.getters.urlAjax,
|
254 |
payload,
|
255 |
{
|
256 |
emulateJSON: true,
|
257 |
params: {
|
258 |
-
namespace: 'LPQuestionEditorRequest
|
|
|
259 |
}
|
260 |
});
|
261 |
};
|
@@ -269,7 +282,6 @@
|
|
269 |
$store.dispatch('newRequest');
|
270 |
|
271 |
next(function (response) {
|
272 |
-
|
273 |
if (!jQuery.isPlainObject(response.body)) {
|
274 |
response.body = LP.parseJSON(response.body);
|
275 |
}
|
@@ -282,6 +294,13 @@
|
|
282 |
} else {
|
283 |
$store.dispatch('requestCompleted', 'failed');
|
284 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
285 |
});
|
286 |
});
|
287 |
})(window, Vue, LP_Question_Store);
|
35 |
type: function (state) {
|
36 |
return state.type;
|
37 |
},
|
38 |
+
code: function(state){
|
39 |
+
return Date.now();
|
40 |
+
}
|
41 |
+
,
|
42 |
autoDraft: function (state) {
|
43 |
return state.auto_draft;
|
44 |
},
|
158 |
},
|
159 |
|
160 |
updateAnswerTitle: function (context, answer) {
|
161 |
+
if(typeof answer.question_answer_id == 'undefined'){
|
162 |
+
return;
|
163 |
+
}
|
164 |
+
answer = JSON.stringify(answer);
|
165 |
Vue.http.LPRequest({
|
166 |
type: 'update-answer-title',
|
167 |
+
answer: answer
|
168 |
})
|
169 |
},
|
170 |
|
257 |
payload['id'] = $store.getters.id;
|
258 |
payload['nonce'] = $store.getters.nonce;
|
259 |
payload['lp-ajax'] = $store.getters.action;
|
260 |
+
payload['code'] = $store.getters.code;
|
261 |
+
$( '#publishing-action #publish' ).addClass( 'disabled' );
|
262 |
+
$( '#publishing-action .spinner' ).addClass( 'is-active' );
|
263 |
+
$( '#publishing-action' ).addClass( 'code-'+payload['code'] );
|
264 |
+
|
265 |
return Vue.http.post($store.getters.urlAjax,
|
266 |
payload,
|
267 |
{
|
268 |
emulateJSON: true,
|
269 |
params: {
|
270 |
+
namespace: 'LPQuestionEditorRequest',
|
271 |
+
code: payload['code'],
|
272 |
}
|
273 |
});
|
274 |
};
|
282 |
$store.dispatch('newRequest');
|
283 |
|
284 |
next(function (response) {
|
|
|
285 |
if (!jQuery.isPlainObject(response.body)) {
|
286 |
response.body = LP.parseJSON(response.body);
|
287 |
}
|
294 |
} else {
|
295 |
$store.dispatch('requestCompleted', 'failed');
|
296 |
}
|
297 |
+
|
298 |
+
$( '#publishing-action' ).removeClass( 'code-'+request.params.code );
|
299 |
+
if(!$( '#publishing-action' ).attr('class')){
|
300 |
+
$( '#publishing-action #publish' ).removeClass( 'disabled' );
|
301 |
+
$( '#publishing-action .spinner' ).removeClass( 'is-active' );
|
302 |
+
}
|
303 |
+
|
304 |
});
|
305 |
});
|
306 |
})(window, Vue, LP_Question_Store);
|
assets/js/admin/quiz-editor.js
CHANGED
@@ -45,6 +45,9 @@ var LP_Choose_Quiz_Items_Modal_Store = (function (exports, Vue, helpers, data) {
|
|
45 |
return item;
|
46 |
});
|
47 |
},
|
|
|
|
|
|
|
48 |
addedItems: function (state) {
|
49 |
return state.addedItems;
|
50 |
},
|
@@ -929,12 +932,18 @@ var LP_List_Quiz_Questions_Store = (function (Vue, helpers, data, $) {
|
|
929 |
payload['id'] = $store.getters.id;
|
930 |
payload['nonce'] = $store.getters.nonce;
|
931 |
payload['lp-ajax'] = $store.getters.action;
|
|
|
|
|
|
|
|
|
|
|
932 |
|
933 |
return Vue.http.post($store.getters.urlAjax,
|
934 |
payload, {
|
935 |
emulateJSON: true,
|
936 |
params: {
|
937 |
-
namespace: 'LPListQuizQuestionsRequest
|
|
|
938 |
}
|
939 |
});
|
940 |
};
|
@@ -961,6 +970,13 @@ var LP_List_Quiz_Questions_Store = (function (Vue, helpers, data, $) {
|
|
961 |
} else {
|
962 |
$store.dispatch('requestComplete', 'fail');
|
963 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
964 |
});
|
965 |
});
|
966 |
|
45 |
return item;
|
46 |
});
|
47 |
},
|
48 |
+
code: function(state){
|
49 |
+
return Date.now();
|
50 |
+
},
|
51 |
addedItems: function (state) {
|
52 |
return state.addedItems;
|
53 |
},
|
932 |
payload['id'] = $store.getters.id;
|
933 |
payload['nonce'] = $store.getters.nonce;
|
934 |
payload['lp-ajax'] = $store.getters.action;
|
935 |
+
|
936 |
+
payload['code'] = $store.getters.code;
|
937 |
+
$( '#publishing-action #publish' ).addClass( 'disabled' );
|
938 |
+
$( '#publishing-action .spinner' ).addClass( 'is-active' );
|
939 |
+
$( '#publishing-action' ).addClass( 'code-'+payload['code'] );
|
940 |
|
941 |
return Vue.http.post($store.getters.urlAjax,
|
942 |
payload, {
|
943 |
emulateJSON: true,
|
944 |
params: {
|
945 |
+
namespace: 'LPListQuizQuestionsRequest',
|
946 |
+
code: payload['code'],
|
947 |
}
|
948 |
});
|
949 |
};
|
970 |
} else {
|
971 |
$store.dispatch('requestComplete', 'fail');
|
972 |
}
|
973 |
+
|
974 |
+
$( '#publishing-action' ).removeClass( 'code-'+request.params.code );
|
975 |
+
if(!$( '#publishing-action' ).attr('class')){
|
976 |
+
$( '#publishing-action #publish' ).removeClass( 'disabled' );
|
977 |
+
$( '#publishing-action .spinner' ).removeClass( 'is-active' );
|
978 |
+
}
|
979 |
+
|
980 |
});
|
981 |
});
|
982 |
|
assets/js/vendor/vue.min.js
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
* Vue.js v2.5.16
|
3 |
+
* (c) 2014-2018 Evan You
|
4 |
+
* Released under the MIT License.
|
5 |
+
*/
|
6 |
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Vue=t()}(this,function(){"use strict";var y=Object.freeze({});function M(e){return null==e}function D(e){return null!=e}function S(e){return!0===e}function T(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function P(e){return null!==e&&"object"==typeof e}var r=Object.prototype.toString;function l(e){return"[object Object]"===r.call(e)}function i(e){var t=parseFloat(String(e));return 0<=t&&Math.floor(t)===t&&isFinite(e)}function t(e){return null==e?"":"object"==typeof e?JSON.stringify(e,null,2):String(e)}function F(e){var t=parseFloat(e);return isNaN(t)?e:t}function s(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}var c=s("slot,component",!0),u=s("key,ref,slot,slot-scope,is");function f(e,t){if(e.length){var n=e.indexOf(t);if(-1<n)return e.splice(n,1)}}var n=Object.prototype.hasOwnProperty;function p(e,t){return n.call(e,t)}function e(t){var n=Object.create(null);return function(e){return n[e]||(n[e]=t(e))}}var o=/-(\w)/g,g=e(function(e){return e.replace(o,function(e,t){return t?t.toUpperCase():""})}),d=e(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),a=/\B([A-Z])/g,_=e(function(e){return e.replace(a,"-$1").toLowerCase()});var v=Function.prototype.bind?function(e,t){return e.bind(t)}:function(n,r){function e(e){var t=arguments.length;return t?1<t?n.apply(r,arguments):n.call(r,e):n.call(r)}return e._length=n.length,e};function h(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function m(e,t){for(var n in t)e[n]=t[n];return e}function b(e){for(var t={},n=0;n<e.length;n++)e[n]&&m(t,e[n]);return t}function $(e,t,n){}var O=function(e,t,n){return!1},w=function(e){return e};function C(t,n){if(t===n)return!0;var e=P(t),r=P(n);if(!e||!r)return!e&&!r&&String(t)===String(n);try{var i=Array.isArray(t),o=Array.isArray(n);if(i&&o)return t.length===n.length&&t.every(function(e,t){return C(e,n[t])});if(i||o)return!1;var a=Object.keys(t),s=Object.keys(n);return a.length===s.length&&a.every(function(e){return C(t[e],n[e])})}catch(e){return!1}}function x(e,t){for(var n=0;n<e.length;n++)if(C(e[n],t))return n;return-1}function R(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var E="data-server-rendered",k=["component","directive","filter"],A=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured"],j={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:O,isReservedAttr:O,isUnknownElement:O,getTagNamespace:$,parsePlatformTagName:w,mustUseProp:O,_lifecycleHooks:A};function N(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var L=/[^\w.$]/;var I,H="__proto__"in{},B="undefined"!=typeof window,U="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,V=U&&WXEnvironment.platform.toLowerCase(),z=B&&window.navigator.userAgent.toLowerCase(),K=z&&/msie|trident/.test(z),J=z&&0<z.indexOf("msie 9.0"),q=z&&0<z.indexOf("edge/"),W=(z&&z.indexOf("android"),z&&/iphone|ipad|ipod|ios/.test(z)||"ios"===V),G=(z&&/chrome\/\d+/.test(z),{}.watch),Z=!1;if(B)try{var X={};Object.defineProperty(X,"passive",{get:function(){Z=!0}}),window.addEventListener("test-passive",null,X)}catch(e){}var Y=function(){return void 0===I&&(I=!B&&!U&&"undefined"!=typeof global&&"server"===global.process.env.VUE_ENV),I},Q=B&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ee(e){return"function"==typeof e&&/native code/.test(e.toString())}var te,ne="undefined"!=typeof Symbol&&ee(Symbol)&&"undefined"!=typeof Reflect&&ee(Reflect.ownKeys);te="undefined"!=typeof Set&&ee(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var re=$,ie=0,oe=function(){this.id=ie++,this.subs=[]};oe.prototype.addSub=function(e){this.subs.push(e)},oe.prototype.removeSub=function(e){f(this.subs,e)},oe.prototype.depend=function(){oe.target&&oe.target.addDep(this)},oe.prototype.notify=function(){for(var e=this.subs.slice(),t=0,n=e.length;t<n;t++)e[t].update()},oe.target=null;var ae=[];function se(e){oe.target&&ae.push(oe.target),oe.target=e}function ce(){oe.target=ae.pop()}var le=function(e,t,n,r,i,o,a,s){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},ue={child:{configurable:!0}};ue.child.get=function(){return this.componentInstance},Object.defineProperties(le.prototype,ue);var fe=function(e){void 0===e&&(e="");var t=new le;return t.text=e,t.isComment=!0,t};function pe(e){return new le(void 0,void 0,void 0,String(e))}function de(e){var t=new le(e.tag,e.data,e.children,e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.isCloned=!0,t}var ve=Array.prototype,he=Object.create(ve);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(o){var a=ve[o];N(he,o,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,r=a.apply(this,e),i=this.__ob__;switch(o){case"push":case"unshift":n=e;break;case"splice":n=e.slice(2)}return n&&i.observeArray(n),i.dep.notify(),r})});var me=Object.getOwnPropertyNames(he),ye=!0;function ge(e){ye=e}var _e=function(e){(this.value=e,this.dep=new oe,this.vmCount=0,N(e,"__ob__",this),Array.isArray(e))?((H?be:$e)(e,he,me),this.observeArray(e)):this.walk(e)};function be(e,t,n){e.__proto__=t}function $e(e,t,n){for(var r=0,i=n.length;r<i;r++){var o=n[r];N(e,o,t[o])}}function we(e,t){var n;if(P(e)&&!(e instanceof le))return p(e,"__ob__")&&e.__ob__ instanceof _e?n=e.__ob__:ye&&!Y()&&(Array.isArray(e)||l(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new _e(e)),t&&n&&n.vmCount++,n}function Ce(n,e,r,t,i){var o=new oe,a=Object.getOwnPropertyDescriptor(n,e);if(!a||!1!==a.configurable){var s=a&&a.get;s||2!==arguments.length||(r=n[e]);var c=a&&a.set,l=!i&&we(r);Object.defineProperty(n,e,{enumerable:!0,configurable:!0,get:function(){var e=s?s.call(n):r;return oe.target&&(o.depend(),l&&(l.dep.depend(),Array.isArray(e)&&function e(t){for(var n=void 0,r=0,i=t.length;r<i;r++)(n=t[r])&&n.__ob__&&n.__ob__.dep.depend(),Array.isArray(n)&&e(n)}(e))),e},set:function(e){var t=s?s.call(n):r;e===t||e!=e&&t!=t||(c?c.call(n,e):r=e,l=!i&&we(e),o.notify())}})}}function xe(e,t,n){if(Array.isArray(e)&&i(t))return e.length=Math.max(e.length,t),e.splice(t,1,n),n;if(t in e&&!(t in Object.prototype))return e[t]=n;var r=e.__ob__;return e._isVue||r&&r.vmCount?n:r?(Ce(r.value,t,n),r.dep.notify(),n):e[t]=n}function ke(e,t){if(Array.isArray(e)&&i(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||p(e,t)&&(delete e[t],n&&n.dep.notify())}}_e.prototype.walk=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)Ce(e,t[n])},_e.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)we(e[t])};var Ae=j.optionMergeStrategies;function Oe(e,t){if(!t)return e;for(var n,r,i,o=Object.keys(t),a=0;a<o.length;a++)r=e[n=o[a]],i=t[n],p(e,n)?l(r)&&l(i)&&Oe(r,i):xe(e,n,i);return e}function Se(n,r,i){return i?function(){var e="function"==typeof r?r.call(i,i):r,t="function"==typeof n?n.call(i,i):n;return e?Oe(e,t):t}:r?n?function(){return Oe("function"==typeof r?r.call(this,this):r,"function"==typeof n?n.call(this,this):n)}:r:n}function Te(e,t){return t?e?e.concat(t):Array.isArray(t)?t:[t]:e}function Ee(e,t,n,r){var i=Object.create(e||null);return t?m(i,t):i}Ae.data=function(e,t,n){return n?Se(e,t,n):t&&"function"!=typeof t?e:Se(e,t)},A.forEach(function(e){Ae[e]=Te}),k.forEach(function(e){Ae[e+"s"]=Ee}),Ae.watch=function(e,t,n,r){if(e===G&&(e=void 0),t===G&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var i={};for(var o in m(i,e),t){var a=i[o],s=t[o];a&&!Array.isArray(a)&&(a=[a]),i[o]=a?a.concat(s):Array.isArray(s)?s:[s]}return i},Ae.props=Ae.methods=Ae.inject=Ae.computed=function(e,t,n,r){if(!e)return t;var i=Object.create(null);return m(i,e),t&&m(i,t),i},Ae.provide=Se;var je=function(e,t){return void 0===t?e:t};function Ne(n,r,i){"function"==typeof r&&(r=r.options),function(e,t){var n=e.props;if(n){var r,i,o={};if(Array.isArray(n))for(r=n.length;r--;)"string"==typeof(i=n[r])&&(o[g(i)]={type:null});else if(l(n))for(var a in n)i=n[a],o[g(a)]=l(i)?i:{type:i};e.props=o}}(r),function(e,t){var n=e.inject;if(n){var r=e.inject={};if(Array.isArray(n))for(var i=0;i<n.length;i++)r[n[i]]={from:n[i]};else if(l(n))for(var o in n){var a=n[o];r[o]=l(a)?m({from:o},a):{from:a}}}}(r),function(e){var t=e.directives;if(t)for(var n in t){var r=t[n];"function"==typeof r&&(t[n]={bind:r,update:r})}}(r);var e=r.extends;if(e&&(n=Ne(n,e,i)),r.mixins)for(var t=0,o=r.mixins.length;t<o;t++)n=Ne(n,r.mixins[t],i);var a,s={};for(a in n)c(a);for(a in r)p(n,a)||c(a);function c(e){var t=Ae[e]||je;s[e]=t(n[e],r[e],i,e)}return s}function Le(e,t,n,r){if("string"==typeof n){var i=e[t];if(p(i,n))return i[n];var o=g(n);if(p(i,o))return i[o];var a=d(o);return p(i,a)?i[a]:i[n]||i[o]||i[a]}}function Ie(e,t,n,r){var i=t[e],o=!p(n,e),a=n[e],s=Pe(Boolean,i.type);if(-1<s)if(o&&!p(i,"default"))a=!1;else if(""===a||a===_(e)){var c=Pe(String,i.type);(c<0||s<c)&&(a=!0)}if(void 0===a){a=function(e,t,n){if(!p(t,"default"))return;var r=t.default;if(e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n])return e._props[n];return"function"==typeof r&&"Function"!==Me(t.type)?r.call(e):r}(r,i,e);var l=ye;ge(!0),we(a),ge(l)}return a}function Me(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function De(e,t){return Me(e)===Me(t)}function Pe(e,t){if(!Array.isArray(t))return De(t,e)?0:-1;for(var n=0,r=t.length;n<r;n++)if(De(t[n],e))return n;return-1}function Fe(e,t,n){if(t)for(var r=t;r=r.$parent;){var i=r.$options.errorCaptured;if(i)for(var o=0;o<i.length;o++)try{if(!1===i[o].call(r,e,t,n))return}catch(e){Re(e,r,"errorCaptured hook")}}Re(e,t,n)}function Re(e,t,n){if(j.errorHandler)try{return j.errorHandler.call(null,e,t,n)}catch(e){He(e,null,"config.errorHandler")}He(e,t,n)}function He(e,t,n){if(!B&&!U||"undefined"==typeof console)throw e;console.error(e)}var Be,Ue,Ve=[],ze=!1;function Ke(){ze=!1;for(var e=Ve.slice(0),t=Ve.length=0;t<e.length;t++)e[t]()}var Je=!1;if("undefined"!=typeof setImmediate&&ee(setImmediate))Ue=function(){setImmediate(Ke)};else if("undefined"==typeof MessageChannel||!ee(MessageChannel)&&"[object MessageChannelConstructor]"!==MessageChannel.toString())Ue=function(){setTimeout(Ke,0)};else{var qe=new MessageChannel,We=qe.port2;qe.port1.onmessage=Ke,Ue=function(){We.postMessage(1)}}if("undefined"!=typeof Promise&&ee(Promise)){var Ge=Promise.resolve();Be=function(){Ge.then(Ke),W&&setTimeout($)}}else Be=Ue;function Ze(e,t){var n;if(Ve.push(function(){if(e)try{e.call(t)}catch(e){Fe(e,t,"nextTick")}else n&&n(t)}),ze||(ze=!0,Je?Ue():Be()),!e&&"undefined"!=typeof Promise)return new Promise(function(e){n=e})}var Xe=new te;function Ye(e){!function e(t,n){var r,i;var o=Array.isArray(t);if(!o&&!P(t)||Object.isFrozen(t)||t instanceof le)return;if(t.__ob__){var a=t.__ob__.dep.id;if(n.has(a))return;n.add(a)}if(o)for(r=t.length;r--;)e(t[r],n);else for(i=Object.keys(t),r=i.length;r--;)e(t[i[r]],n)}(e,Xe),Xe.clear()}var Qe,et=e(function(e){var t="&"===e.charAt(0),n="~"===(e=t?e.slice(1):e).charAt(0),r="!"===(e=n?e.slice(1):e).charAt(0);return{name:e=r?e.slice(1):e,once:n,capture:r,passive:t}});function tt(e){function i(){var e=arguments,t=i.fns;if(!Array.isArray(t))return t.apply(null,arguments);for(var n=t.slice(),r=0;r<n.length;r++)n[r].apply(null,e)}return i.fns=e,i}function nt(e,t,n,r,i){var o,a,s,c;for(o in e)a=e[o],s=t[o],c=et(o),M(a)||(M(s)?(M(a.fns)&&(a=e[o]=tt(a)),n(c.name,a,c.once,c.capture,c.passive,c.params)):a!==s&&(s.fns=a,e[o]=s));for(o in t)M(e[o])&&r((c=et(o)).name,t[o],c.capture)}function rt(e,t,n){var r;e instanceof le&&(e=e.data.hook||(e.data.hook={}));var i=e[t];function o(){n.apply(this,arguments),f(r.fns,o)}M(i)?r=tt([o]):D(i.fns)&&S(i.merged)?(r=i).fns.push(o):r=tt([i,o]),r.merged=!0,e[t]=r}function it(e,t,n,r,i){if(D(t)){if(p(t,n))return e[n]=t[n],i||delete t[n],!0;if(p(t,r))return e[n]=t[r],i||delete t[r],!0}return!1}function ot(e){return T(e)?[pe(e)]:Array.isArray(e)?function e(t,n){var r=[];var i,o,a,s;for(i=0;i<t.length;i++)M(o=t[i])||"boolean"==typeof o||(a=r.length-1,s=r[a],Array.isArray(o)?0<o.length&&(at((o=e(o,(n||"")+"_"+i))[0])&&at(s)&&(r[a]=pe(s.text+o[0].text),o.shift()),r.push.apply(r,o)):T(o)?at(s)?r[a]=pe(s.text+o):""!==o&&r.push(pe(o)):at(o)&&at(s)?r[a]=pe(s.text+o.text):(S(t._isVList)&&D(o.tag)&&M(o.key)&&D(n)&&(o.key="__vlist"+n+"_"+i+"__"),r.push(o)));return r}(e):void 0}function at(e){return D(e)&&D(e.text)&&!1===e.isComment}function st(e,t){return(e.__esModule||ne&&"Module"===e[Symbol.toStringTag])&&(e=e.default),P(e)?t.extend(e):e}function ct(e){return e.isComment&&e.asyncFactory}function lt(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];if(D(n)&&(D(n.componentOptions)||ct(n)))return n}}function ut(e,t,n){n?Qe.$once(e,t):Qe.$on(e,t)}function ft(e,t){Qe.$off(e,t)}function pt(e,t,n){Qe=e,nt(t,n||{},ut,ft),Qe=void 0}function dt(e,t){var n={};if(!e)return n;for(var r=0,i=e.length;r<i;r++){var o=e[r],a=o.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,o.context!==t&&o.fnContext!==t||!a||null==a.slot)(n.default||(n.default=[])).push(o);else{var s=a.slot,c=n[s]||(n[s]=[]);"template"===o.tag?c.push.apply(c,o.children||[]):c.push(o)}}for(var l in n)n[l].every(vt)&&delete n[l];return n}function vt(e){return e.isComment&&!e.asyncFactory||" "===e.text}function ht(e,t){t=t||{};for(var n=0;n<e.length;n++)Array.isArray(e[n])?ht(e[n],t):t[e[n].key]=e[n].fn;return t}var mt=null;function yt(e){for(;e&&(e=e.$parent);)if(e._inactive)return!0;return!1}function gt(e,t){if(t){if(e._directInactive=!1,yt(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var n=0;n<e.$children.length;n++)gt(e.$children[n]);_t(e,"activated")}}function _t(t,n){se();var e=t.$options[n];if(e)for(var r=0,i=e.length;r<i;r++)try{e[r].call(t)}catch(e){Fe(e,t,n+" hook")}t._hasHookEvent&&t.$emit("hook:"+n),ce()}var bt=[],$t=[],wt={},Ct=!1,xt=!1,kt=0;function At(){var e,t;for(xt=!0,bt.sort(function(e,t){return e.id-t.id}),kt=0;kt<bt.length;kt++)t=(e=bt[kt]).id,wt[t]=null,e.run();var n=$t.slice(),r=bt.slice();kt=bt.length=$t.length=0,wt={},Ct=xt=!1,function(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,gt(e[t],!0)}(n),function(e){var t=e.length;for(;t--;){var n=e[t],r=n.vm;r._watcher===n&&r._isMounted&&_t(r,"updated")}}(r),Q&&j.devtools&&Q.emit("flush")}var Ot=0,St=function(e,t,n,r,i){this.vm=e,i&&(e._watcher=this),e._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++Ot,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new te,this.newDepIds=new te,this.expression="","function"==typeof t?this.getter=t:(this.getter=function(e){if(!L.test(e)){var n=e.split(".");return function(e){for(var t=0;t<n.length;t++){if(!e)return;e=e[n[t]]}return e}}}(t),this.getter||(this.getter=function(){})),this.value=this.lazy?void 0:this.get()};St.prototype.get=function(){var e;se(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(e){if(!this.user)throw e;Fe(e,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&Ye(e),ce(),this.cleanupDeps()}return e},St.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},St.prototype.cleanupDeps=function(){for(var e=this.deps.length;e--;){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},St.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():function(e){var t=e.id;if(null==wt[t]){if(wt[t]=!0,xt){for(var n=bt.length-1;kt<n&&bt[n].id>e.id;)n--;bt.splice(n+1,0,e)}else bt.push(e);Ct||(Ct=!0,Ze(At))}}(this)},St.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||P(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){Fe(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},St.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},St.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},St.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||f(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var Tt={enumerable:!0,configurable:!0,get:$,set:$};function Et(e,t,n){Tt.get=function(){return this[t][n]},Tt.set=function(e){this[t][n]=e},Object.defineProperty(e,n,Tt)}function jt(e){e._watchers=[];var t=e.$options;t.props&&function(n,r){var i=n.$options.propsData||{},o=n._props={},a=n.$options._propKeys=[];n.$parent&&ge(!1);var e=function(e){a.push(e);var t=Ie(e,r,i,n);Ce(o,e,t),e in n||Et(n,"_props",e)};for(var t in r)e(t);ge(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var n in t)e[n]=null==t[n]?$:v(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;l(t=e._data="function"==typeof t?function(e,t){se();try{return e.call(t,t)}catch(e){return Fe(e,t,"data()"),{}}finally{ce()}}(t,e):t||{})||(t={});var n=Object.keys(t),r=e.$options.props,i=(e.$options.methods,n.length);for(;i--;){var o=n[i];r&&p(r,o)||(void 0,36!==(a=(o+"").charCodeAt(0))&&95!==a&&Et(e,"_data",o))}var a;we(t,!0)}(e):we(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),r=Y();for(var i in t){var o=t[i],a="function"==typeof o?o:o.get;r||(n[i]=new St(e,a||$,$,Nt)),i in e||Lt(e,i,o)}}(e,t.computed),t.watch&&t.watch!==G&&function(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)Mt(e,n,r[i]);else Mt(e,n,r)}}(e,t.watch)}var Nt={lazy:!0};function Lt(e,t,n){var r=!Y();"function"==typeof n?(Tt.get=r?It(t):n,Tt.set=$):(Tt.get=n.get?r&&!1!==n.cache?It(t):n.get:$,Tt.set=n.set?n.set:$),Object.defineProperty(e,t,Tt)}function It(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),oe.target&&e.depend(),e.value}}function Mt(e,t,n,r){return l(n)&&(n=(r=n).handler),"string"==typeof n&&(n=e[n]),e.$watch(t,n,r)}function Dt(t,e){if(t){for(var n=Object.create(null),r=ne?Reflect.ownKeys(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}):Object.keys(t),i=0;i<r.length;i++){for(var o=r[i],a=t[o].from,s=e;s;){if(s._provided&&p(s._provided,a)){n[o]=s._provided[a];break}s=s.$parent}if(!s&&"default"in t[o]){var c=t[o].default;n[o]="function"==typeof c?c.call(e):c}}return n}}function Pt(e,t){var n,r,i,o,a;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),r=0,i=e.length;r<i;r++)n[r]=t(e[r],r);else if("number"==typeof e)for(n=new Array(e),r=0;r<e;r++)n[r]=t(r+1,r);else if(P(e))for(o=Object.keys(e),n=new Array(o.length),r=0,i=o.length;r<i;r++)a=o[r],n[r]=t(e[a],a,r);return D(n)&&(n._isVList=!0),n}function Ft(e,t,n,r){var i,o=this.$scopedSlots[e];if(o)n=n||{},r&&(n=m(m({},r),n)),i=o(n)||t;else{var a=this.$slots[e];a&&(a._rendered=!0),i=a||t}var s=n&&n.slot;return s?this.$createElement("template",{slot:s},i):i}function Rt(e){return Le(this.$options,"filters",e)||w}function Ht(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function Bt(e,t,n,r,i){var o=j.keyCodes[t]||n;return i&&r&&!j.keyCodes[t]?Ht(i,r):o?Ht(o,e):r?_(r)!==t:void 0}function Ut(n,r,i,o,a){if(i)if(P(i)){var s;Array.isArray(i)&&(i=b(i));var e=function(t){if("class"===t||"style"===t||u(t))s=n;else{var e=n.attrs&&n.attrs.type;s=o||j.mustUseProp(r,e,t)?n.domProps||(n.domProps={}):n.attrs||(n.attrs={})}t in s||(s[t]=i[t],a&&((n.on||(n.on={}))["update:"+t]=function(e){i[t]=e}))};for(var t in i)e(t)}else;return n}function Vt(e,t){var n=this._staticTrees||(this._staticTrees=[]),r=n[e];return r&&!t||Kt(r=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this),"__static__"+e,!1),r}function zt(e,t,n){return Kt(e,"__once__"+t+(n?"_"+n:""),!0),e}function Kt(e,t,n){if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]&&"string"!=typeof e[r]&&Jt(e[r],t+"_"+r,n);else Jt(e,t,n)}function Jt(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function qt(e,t){if(t)if(l(t)){var n=e.on=e.on?m({},e.on):{};for(var r in t){var i=n[r],o=t[r];n[r]=i?[].concat(i,o):o}}else;return e}function Wt(e){e._o=zt,e._n=F,e._s=t,e._l=Pt,e._t=Ft,e._q=C,e._i=x,e._m=Vt,e._f=Rt,e._k=Bt,e._b=Ut,e._v=pe,e._e=fe,e._u=ht,e._g=qt}function Gt(e,t,n,o,r){var a,s=r.options;p(o,"_uid")?(a=Object.create(o))._original=o:o=(a=o)._original;var i=S(s._compiled),c=!i;this.data=e,this.props=t,this.children=n,this.parent=o,this.listeners=e.on||y,this.injections=Dt(s.inject,o),this.slots=function(){return dt(n,o)},i&&(this.$options=s,this.$slots=this.slots(),this.$scopedSlots=e.scopedSlots||y),s._scopeId?this._c=function(e,t,n,r){var i=rn(a,e,t,n,r,c);return i&&!Array.isArray(i)&&(i.fnScopeId=s._scopeId,i.fnContext=o),i}:this._c=function(e,t,n,r){return rn(a,e,t,n,r,c)}}function Zt(e,t,n,r){var i=de(e);return i.fnContext=n,i.fnOptions=r,t.slot&&((i.data||(i.data={})).slot=t.slot),i}function Xt(e,t){for(var n in t)e[g(n)]=t[n]}Wt(Gt.prototype);var Yt={init:function(e,t,n,r){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var i=e;Yt.prepatch(i,i)}else{(e.componentInstance=function(e,t,n,r){var i={_isComponent:!0,parent:t,_parentVnode:e,_parentElm:n||null,_refElm:r||null},o=e.data.inlineTemplate;D(o)&&(i.render=o.render,i.staticRenderFns=o.staticRenderFns);return new e.componentOptions.Ctor(i)}(e,mt,n,r)).$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var n=t.componentOptions;!function(e,t,n,r,i){var o=!!(i||e.$options._renderChildren||r.data.scopedSlots||e.$scopedSlots!==y);if(e.$options._parentVnode=r,e.$vnode=r,e._vnode&&(e._vnode.parent=r),e.$options._renderChildren=i,e.$attrs=r.data.attrs||y,e.$listeners=n||y,t&&e.$options.props){ge(!1);for(var a=e._props,s=e.$options._propKeys||[],c=0;c<s.length;c++){var l=s[c],u=e.$options.props;a[l]=Ie(l,u,t,e)}ge(!0),e.$options.propsData=t}n=n||y;var f=e.$options._parentListeners;e.$options._parentListeners=n,pt(e,n,f),o&&(e.$slots=dt(i,r.context),e.$forceUpdate())}(t.componentInstance=e.componentInstance,n.propsData,n.listeners,t,n.children)},insert:function(e){var t,n=e.context,r=e.componentInstance;r._isMounted||(r._isMounted=!0,_t(r,"mounted")),e.data.keepAlive&&(n._isMounted?((t=r)._inactive=!1,$t.push(t)):gt(r,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?function e(t,n){if(!(n&&(t._directInactive=!0,yt(t))||t._inactive)){t._inactive=!0;for(var r=0;r<t.$children.length;r++)e(t.$children[r]);_t(t,"deactivated")}}(t,!0):t.$destroy())}},Qt=Object.keys(Yt);function en(e,t,n,r,i){if(!M(e)){var o=n.$options._base;if(P(e)&&(e=o.extend(e)),"function"==typeof e){var a,s,c,l,u,f,p;if(M(e.cid)&&void 0===(e=function(t,n,e){if(S(t.error)&&D(t.errorComp))return t.errorComp;if(D(t.resolved))return t.resolved;if(S(t.loading)&&D(t.loadingComp))return t.loadingComp;if(!D(t.contexts)){var r=t.contexts=[e],i=!0,o=function(){for(var e=0,t=r.length;e<t;e++)r[e].$forceUpdate()},a=R(function(e){t.resolved=st(e,n),i||o()}),s=R(function(e){D(t.errorComp)&&(t.error=!0,o())}),c=t(a,s);return P(c)&&("function"==typeof c.then?M(t.resolved)&&c.then(a,s):D(c.component)&&"function"==typeof c.component.then&&(c.component.then(a,s),D(c.error)&&(t.errorComp=st(c.error,n)),D(c.loading)&&(t.loadingComp=st(c.loading,n),0===c.delay?t.loading=!0:setTimeout(function(){M(t.resolved)&&M(t.error)&&(t.loading=!0,o())},c.delay||200)),D(c.timeout)&&setTimeout(function(){M(t.resolved)&&s(null)},c.timeout))),i=!1,t.loading?t.loadingComp:t.resolved}t.contexts.push(e)}(a=e,o,n)))return s=a,c=t,l=n,u=r,f=i,(p=fe()).asyncFactory=s,p.asyncMeta={data:c,context:l,children:u,tag:f},p;t=t||{},dn(e),D(t.model)&&function(e,t){var n=e.model&&e.model.prop||"value",r=e.model&&e.model.event||"input";(t.props||(t.props={}))[n]=t.model.value;var i=t.on||(t.on={});D(i[r])?i[r]=[t.model.callback].concat(i[r]):i[r]=t.model.callback}(e.options,t);var d=function(e,t,n){var r=t.options.props;if(!M(r)){var i={},o=e.attrs,a=e.props;if(D(o)||D(a))for(var s in r){var c=_(s);it(i,a,s,c,!0)||it(i,o,s,c,!1)}return i}}(t,e);if(S(e.options.functional))return function(e,t,n,r,i){var o=e.options,a={},s=o.props;if(D(s))for(var c in s)a[c]=Ie(c,s,t||y);else D(n.attrs)&&Xt(a,n.attrs),D(n.props)&&Xt(a,n.props);var l=new Gt(n,a,i,r,e),u=o.render.call(null,l._c,l);if(u instanceof le)return Zt(u,n,l.parent,o);if(Array.isArray(u)){for(var f=ot(u)||[],p=new Array(f.length),d=0;d<f.length;d++)p[d]=Zt(f[d],n,l.parent,o);return p}}(e,d,t,n,r);var v=t.on;if(t.on=t.nativeOn,S(e.options.abstract)){var h=t.slot;t={},h&&(t.slot=h)}!function(e){for(var t=e.hook||(e.hook={}),n=0;n<Qt.length;n++){var r=Qt[n];t[r]=Yt[r]}}(t);var m=e.options.name||i;return new le("vue-component-"+e.cid+(m?"-"+m:""),t,void 0,void 0,void 0,n,{Ctor:e,propsData:d,listeners:v,tag:i,children:r},a)}}}var tn=1,nn=2;function rn(e,t,n,r,i,o){return(Array.isArray(n)||T(n))&&(i=r,r=n,n=void 0),S(o)&&(i=nn),function(e,t,n,r,i){if(D(n)&&D(n.__ob__))return fe();D(n)&&D(n.is)&&(t=n.is);if(!t)return fe();Array.isArray(r)&&"function"==typeof r[0]&&((n=n||{}).scopedSlots={default:r[0]},r.length=0);i===nn?r=ot(r):i===tn&&(r=function(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}(r));var o,a;if("string"==typeof t){var s;a=e.$vnode&&e.$vnode.ns||j.getTagNamespace(t),o=j.isReservedTag(t)?new le(j.parsePlatformTagName(t),n,r,void 0,void 0,e):D(s=Le(e.$options,"components",t))?en(s,n,e,r,t):new le(t,n,r,void 0,void 0,e)}else o=en(t,n,e,r);return Array.isArray(o)?o:D(o)?(D(a)&&function e(t,n,r){t.ns=n;"foreignObject"===t.tag&&(n=void 0,r=!0);if(D(t.children))for(var i=0,o=t.children.length;i<o;i++){var a=t.children[i];D(a.tag)&&(M(a.ns)||S(r)&&"svg"!==a.tag)&&e(a,n,r)}}(o,a),D(n)&&function(e){P(e.style)&&Ye(e.style);P(e.class)&&Ye(e.class)}(n),o):fe()}(e,t,n,r,i)}var on,an,sn,cn,ln,un,fn,pn=0;function dn(e){var t=e.options;if(e.super){var n=dn(e.super);if(n!==e.superOptions){e.superOptions=n;var r=function(e){var t,n=e.options,r=e.extendOptions,i=e.sealedOptions;for(var o in n)n[o]!==i[o]&&(t||(t={}),t[o]=vn(n[o],r[o],i[o]));return t}(e);r&&m(e.extendOptions,r),(t=e.options=Ne(n,e.extendOptions)).name&&(t.components[t.name]=e)}}return t}function vn(e,t,n){if(Array.isArray(e)){var r=[];n=Array.isArray(n)?n:[n],t=Array.isArray(t)?t:[t];for(var i=0;i<e.length;i++)(0<=t.indexOf(e[i])||n.indexOf(e[i])<0)&&r.push(e[i]);return r}return e}function hn(e){this._init(e)}function mn(e){e.cid=0;var a=1;e.extend=function(e){e=e||{};var t=this,n=t.cid,r=e._Ctor||(e._Ctor={});if(r[n])return r[n];var i=e.name||t.options.name,o=function(e){this._init(e)};return((o.prototype=Object.create(t.prototype)).constructor=o).cid=a++,o.options=Ne(t.options,e),o.super=t,o.options.props&&function(e){var t=e.options.props;for(var n in t)Et(e.prototype,"_props",n)}(o),o.options.computed&&function(e){var t=e.options.computed;for(var n in t)Lt(e.prototype,n,t[n])}(o),o.extend=t.extend,o.mixin=t.mixin,o.use=t.use,k.forEach(function(e){o[e]=t[e]}),i&&(o.options.components[i]=o),o.superOptions=t.options,o.extendOptions=e,o.sealedOptions=m({},o.options),r[n]=o}}function yn(e){return e&&(e.Ctor.options.name||e.tag)}function gn(e,t){return Array.isArray(e)?-1<e.indexOf(t):"string"==typeof e?-1<e.split(",").indexOf(t):(n=e,"[object RegExp]"===r.call(n)&&e.test(t));var n}function _n(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var o in n){var a=n[o];if(a){var s=yn(a.componentOptions);s&&!t(s)&&bn(n,o,r,i)}}}function bn(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,f(n,t)}hn.prototype._init=function(e){var t,n,r,i,o=this;o._uid=pn++,o._isVue=!0,e&&e._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r,n._parentElm=t._parentElm,n._refElm=t._refElm;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(o,e):o.$options=Ne(dn(o.constructor),e||{},o),function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}((o._renderProxy=o)._self=o),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&pt(e,t)}(o),function(i){i._vnode=null,i._staticTrees=null;var e=i.$options,t=i.$vnode=e._parentVnode,n=t&&t.context;i.$slots=dt(e._renderChildren,n),i.$scopedSlots=y,i._c=function(e,t,n,r){return rn(i,e,t,n,r,!1)},i.$createElement=function(e,t,n,r){return rn(i,e,t,n,r,!0)};var r=t&&t.data;Ce(i,"$attrs",r&&r.attrs||y,null,!0),Ce(i,"$listeners",e._parentListeners||y,null,!0)}(o),_t(o,"beforeCreate"),(n=Dt((t=o).$options.inject,t))&&(ge(!1),Object.keys(n).forEach(function(e){Ce(t,e,n[e])}),ge(!0)),jt(o),(i=(r=o).$options.provide)&&(r._provided="function"==typeof i?i.call(r):i),_t(o,"created"),o.$options.el&&o.$mount(o.$options.el)},on=hn,an={get:function(){return this._data}},sn={get:function(){return this._props}},Object.defineProperty(on.prototype,"$data",an),Object.defineProperty(on.prototype,"$props",sn),on.prototype.$set=xe,on.prototype.$delete=ke,on.prototype.$watch=function(e,t,n){if(l(t))return Mt(this,e,t,n);(n=n||{}).user=!0;var r=new St(this,e,t,n);return n.immediate&&t.call(this,r.value),function(){r.teardown()}},ln=/^hook:/,(cn=hn).prototype.$on=function(e,t){if(Array.isArray(e))for(var n=0,r=e.length;n<r;n++)this.$on(e[n],t);else(this._events[e]||(this._events[e]=[])).push(t),ln.test(e)&&(this._hasHookEvent=!0);return this},cn.prototype.$once=function(e,t){var n=this;function r(){n.$off(e,r),t.apply(n,arguments)}return r.fn=t,n.$on(e,r),n},cn.prototype.$off=function(e,t){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(e)){for(var r=0,i=e.length;r<i;r++)this.$off(e[r],t);return n}var o=n._events[e];if(!o)return n;if(!t)return n._events[e]=null,n;if(t)for(var a,s=o.length;s--;)if((a=o[s])===t||a.fn===t){o.splice(s,1);break}return n},cn.prototype.$emit=function(t){var n=this,e=n._events[t];if(e){e=1<e.length?h(e):e;for(var r=h(arguments,1),i=0,o=e.length;i<o;i++)try{e[i].apply(n,r)}catch(e){Fe(e,n,'event handler for "'+t+'"')}}return n},(un=hn).prototype._update=function(e,t){var n=this;n._isMounted&&_t(n,"beforeUpdate");var r=n.$el,i=n._vnode,o=mt;(mt=n)._vnode=e,i?n.$el=n.__patch__(i,e):(n.$el=n.__patch__(n.$el,e,t,!1,n.$options._parentElm,n.$options._refElm),n.$options._parentElm=n.$options._refElm=null),mt=o,r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},un.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},un.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){_t(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||f(t.$children,e),e._watcher&&e._watcher.teardown();for(var n=e._watchers.length;n--;)e._watchers[n].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),_t(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}},Wt((fn=hn).prototype),fn.prototype.$nextTick=function(e){return Ze(e,this)},fn.prototype._render=function(){var t,n=this,e=n.$options,r=e.render,i=e._parentVnode;i&&(n.$scopedSlots=i.data.scopedSlots||y),n.$vnode=i;try{t=r.call(n._renderProxy,n.$createElement)}catch(e){Fe(e,n,"render"),t=n._vnode}return t instanceof le||(t=fe()),t.parent=i,t};var $n,wn,Cn,xn=[String,RegExp,Array],kn={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:xn,exclude:xn,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)bn(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",function(t){_n(e,function(e){return gn(t,e)})}),this.$watch("exclude",function(t){_n(e,function(e){return!gn(t,e)})})},render:function(){var e=this.$slots.default,t=lt(e),n=t&&t.componentOptions;if(n){var r=yn(n),i=this.include,o=this.exclude;if(i&&(!r||!gn(i,r))||o&&r&&gn(o,r))return t;var a=this.cache,s=this.keys,c=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;a[c]?(t.componentInstance=a[c].componentInstance,f(s,c),s.push(c)):(a[c]=t,s.push(c),this.max&&s.length>parseInt(this.max)&&bn(a,s[0],s,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}}};$n=hn,Cn={get:function(){return j}},Object.defineProperty($n,"config",Cn),$n.util={warn:re,extend:m,mergeOptions:Ne,defineReactive:Ce},$n.set=xe,$n.delete=ke,$n.nextTick=Ze,$n.options=Object.create(null),k.forEach(function(e){$n.options[e+"s"]=Object.create(null)}),m(($n.options._base=$n).options.components,kn),$n.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(-1<t.indexOf(e))return this;var n=h(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this},$n.mixin=function(e){return this.options=Ne(this.options,e),this},mn($n),wn=$n,k.forEach(function(n){wn[n]=function(e,t){return t?("component"===n&&l(t)&&(t.name=t.name||e,t=this.options._base.extend(t)),"directive"===n&&"function"==typeof t&&(t={bind:t,update:t}),this.options[n+"s"][e]=t):this.options[n+"s"][e]}}),Object.defineProperty(hn.prototype,"$isServer",{get:Y}),Object.defineProperty(hn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(hn,"FunctionalRenderContext",{value:Gt}),hn.version="2.5.16";var An=s("style,class"),On=s("input,textarea,option,select,progress"),Sn=function(e,t,n){return"value"===n&&On(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},Tn=s("contenteditable,draggable,spellcheck"),En=s("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),jn="http://www.w3.org/1999/xlink",Nn=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Ln=function(e){return Nn(e)?e.slice(6,e.length):""},In=function(e){return null==e||!1===e};function Mn(e){for(var t=e.data,n=e,r=e;D(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(t=Dn(r.data,t));for(;D(n=n.parent);)n&&n.data&&(t=Dn(t,n.data));return function(e,t){if(D(e)||D(t))return Pn(e,Fn(t));return""}(t.staticClass,t.class)}function Dn(e,t){return{staticClass:Pn(e.staticClass,t.staticClass),class:D(e.class)?[e.class,t.class]:t.class}}function Pn(e,t){return e?t?e+" "+t:e:t||""}function Fn(e){return Array.isArray(e)?function(e){for(var t,n="",r=0,i=e.length;r<i;r++)D(t=Fn(e[r]))&&""!==t&&(n&&(n+=" "),n+=t);return n}(e):P(e)?function(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}(e):"string"==typeof e?e:""}var Rn={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Hn=s("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Bn=s("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Un=function(e){return Hn(e)||Bn(e)};function Vn(e){return Bn(e)?"svg":"math"===e?"math":void 0}var zn=Object.create(null);var Kn=s("text,number,password,search,email,tel,url");function Jn(e){if("string"==typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}var qn=Object.freeze({createElement:function(e,t){var n=document.createElement(e);return"select"!==e||t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n},createElementNS:function(e,t){return document.createElementNS(Rn[e],t)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},setStyleScope:function(e,t){e.setAttribute(t,"")}}),Wn={create:function(e,t){Gn(t)},update:function(e,t){e.data.ref!==t.data.ref&&(Gn(e,!0),Gn(t))},destroy:function(e){Gn(e,!0)}};function Gn(e,t){var n=e.data.ref;if(D(n)){var r=e.context,i=e.componentInstance||e.elm,o=r.$refs;t?Array.isArray(o[n])?f(o[n],i):o[n]===i&&(o[n]=void 0):e.data.refInFor?Array.isArray(o[n])?o[n].indexOf(i)<0&&o[n].push(i):o[n]=[i]:o[n]=i}}var Zn=new le("",{},[]),Xn=["create","activate","update","remove","destroy"];function Yn(e,t){return e.key===t.key&&(e.tag===t.tag&&e.isComment===t.isComment&&D(e.data)===D(t.data)&&function(e,t){if("input"!==e.tag)return!0;var n,r=D(n=e.data)&&D(n=n.attrs)&&n.type,i=D(n=t.data)&&D(n=n.attrs)&&n.type;return r===i||Kn(r)&&Kn(i)}(e,t)||S(e.isAsyncPlaceholder)&&e.asyncFactory===t.asyncFactory&&M(t.asyncFactory.error))}function Qn(e,t,n){var r,i,o={};for(r=t;r<=n;++r)D(i=e[r].key)&&(o[i]=r);return o}var er={create:tr,update:tr,destroy:function(e){tr(e,Zn)}};function tr(e,t){(e.data.directives||t.data.directives)&&function(t,n){var e,r,i,o=t===Zn,a=n===Zn,s=rr(t.data.directives,t.context),c=rr(n.data.directives,n.context),l=[],u=[];for(e in c)r=s[e],i=c[e],r?(i.oldValue=r.value,ir(i,"update",n,t),i.def&&i.def.componentUpdated&&u.push(i)):(ir(i,"bind",n,t),i.def&&i.def.inserted&&l.push(i));if(l.length){var f=function(){for(var e=0;e<l.length;e++)ir(l[e],"inserted",n,t)};o?rt(n,"insert",f):f()}u.length&&rt(n,"postpatch",function(){for(var e=0;e<u.length;e++)ir(u[e],"componentUpdated",n,t)});if(!o)for(e in s)c[e]||ir(s[e],"unbind",t,t,a)}(e,t)}var nr=Object.create(null);function rr(e,t){var n,r,i,o=Object.create(null);if(!e)return o;for(n=0;n<e.length;n++)(r=e[n]).modifiers||(r.modifiers=nr),(o[(i=r,i.rawName||i.name+"."+Object.keys(i.modifiers||{}).join("."))]=r).def=Le(t.$options,"directives",r.name);return o}function ir(t,n,r,e,i){var o=t.def&&t.def[n];if(o)try{o(r.elm,t,r,e,i)}catch(e){Fe(e,r.context,"directive "+t.name+" "+n+" hook")}}var or=[Wn,er];function ar(e,t){var n=t.componentOptions;if(!(D(n)&&!1===n.Ctor.options.inheritAttrs||M(e.data.attrs)&&M(t.data.attrs))){var r,i,o=t.elm,a=e.data.attrs||{},s=t.data.attrs||{};for(r in D(s.__ob__)&&(s=t.data.attrs=m({},s)),s)i=s[r],a[r]!==i&&sr(o,r,i);for(r in(K||q)&&s.value!==a.value&&sr(o,"value",s.value),a)M(s[r])&&(Nn(r)?o.removeAttributeNS(jn,Ln(r)):Tn(r)||o.removeAttribute(r))}}function sr(e,t,n){-1<e.tagName.indexOf("-")?cr(e,t,n):En(t)?In(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):Tn(t)?e.setAttribute(t,In(n)||"false"===n?"false":"true"):Nn(t)?In(n)?e.removeAttributeNS(jn,Ln(t)):e.setAttributeNS(jn,t,n):cr(e,t,n)}function cr(t,e,n){if(In(n))t.removeAttribute(e);else{if(K&&!J&&"TEXTAREA"===t.tagName&&"placeholder"===e&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,n)}}var lr={create:ar,update:ar};function ur(e,t){var n=t.elm,r=t.data,i=e.data;if(!(M(r.staticClass)&&M(r.class)&&(M(i)||M(i.staticClass)&&M(i.class)))){var o=Mn(t),a=n._transitionClasses;D(a)&&(o=Pn(o,Fn(a))),o!==n._prevClass&&(n.setAttribute("class",o),n._prevClass=o)}}var fr,pr,dr,vr,hr,mr,yr={create:ur,update:ur},gr=/[\w).+\-_$\]]/;function _r(e){var t,n,r,i,o,a=!1,s=!1,c=!1,l=!1,u=0,f=0,p=0,d=0;for(r=0;r<e.length;r++)if(n=t,t=e.charCodeAt(r),a)39===t&&92!==n&&(a=!1);else if(s)34===t&&92!==n&&(s=!1);else if(c)96===t&&92!==n&&(c=!1);else if(l)47===t&&92!==n&&(l=!1);else if(124!==t||124===e.charCodeAt(r+1)||124===e.charCodeAt(r-1)||u||f||p){switch(t){case 34:s=!0;break;case 39:a=!0;break;case 96:c=!0;break;case 40:p++;break;case 41:p--;break;case 91:f++;break;case 93:f--;break;case 123:u++;break;case 125:u--}if(47===t){for(var v=r-1,h=void 0;0<=v&&" "===(h=e.charAt(v));v--);h&&gr.test(h)||(l=!0)}}else void 0===i?(d=r+1,i=e.slice(0,r).trim()):m();function m(){(o||(o=[])).push(e.slice(d,r).trim()),d=r+1}if(void 0===i?i=e.slice(0,r).trim():0!==d&&m(),o)for(r=0;r<o.length;r++)i=br(i,o[r]);return i}function br(e,t){var n=t.indexOf("(");if(n<0)return'_f("'+t+'")('+e+")";var r=t.slice(0,n),i=t.slice(n+1);return'_f("'+r+'")('+e+(")"!==i?","+i:i)}function $r(e){console.error("[Vue compiler]: "+e)}function wr(e,t){return e?e.map(function(e){return e[t]}).filter(function(e){return e}):[]}function Cr(e,t,n){(e.props||(e.props=[])).push({name:t,value:n}),e.plain=!1}function xr(e,t,n){(e.attrs||(e.attrs=[])).push({name:t,value:n}),e.plain=!1}function kr(e,t,n){e.attrsMap[t]=n,e.attrsList.push({name:t,value:n})}function Ar(e,t,n,r,i,o){var a;(r=r||y).capture&&(delete r.capture,t="!"+t),r.once&&(delete r.once,t="~"+t),r.passive&&(delete r.passive,t="&"+t),"click"===t&&(r.right?(t="contextmenu",delete r.right):r.middle&&(t="mouseup")),r.native?(delete r.native,a=e.nativeEvents||(e.nativeEvents={})):a=e.events||(e.events={});var s={value:n.trim()};r!==y&&(s.modifiers=r);var c=a[t];Array.isArray(c)?i?c.unshift(s):c.push(s):a[t]=c?i?[s,c]:[c,s]:s,e.plain=!1}function Or(e,t,n){var r=Sr(e,":"+t)||Sr(e,"v-bind:"+t);if(null!=r)return _r(r);if(!1!==n){var i=Sr(e,t);if(null!=i)return JSON.stringify(i)}}function Sr(e,t,n){var r;if(null!=(r=e.attrsMap[t]))for(var i=e.attrsList,o=0,a=i.length;o<a;o++)if(i[o].name===t){i.splice(o,1);break}return n&&delete e.attrsMap[t],r}function Tr(e,t,n){var r=n||{},i=r.number,o="$v",a=o;r.trim&&(a="(typeof $v === 'string'? $v.trim(): $v)"),i&&(a="_n("+a+")");var s=Er(t,a);e.model={value:"("+t+")",expression:'"'+t+'"',callback:"function ($v) {"+s+"}"}}function Er(e,t){var n=function(e){if(e=e.trim(),fr=e.length,e.indexOf("[")<0||e.lastIndexOf("]")<fr-1)return-1<(vr=e.lastIndexOf("."))?{exp:e.slice(0,vr),key:'"'+e.slice(vr+1)+'"'}:{exp:e,key:null};pr=e,vr=hr=mr=0;for(;!Nr();)Lr(dr=jr())?Mr(dr):91===dr&&Ir(dr);return{exp:e.slice(0,hr),key:e.slice(hr+1,mr)}}(e);return null===n.key?e+"="+t:"$set("+n.exp+", "+n.key+", "+t+")"}function jr(){return pr.charCodeAt(++vr)}function Nr(){return fr<=vr}function Lr(e){return 34===e||39===e}function Ir(e){var t=1;for(hr=vr;!Nr();)if(Lr(e=jr()))Mr(e);else if(91===e&&t++,93===e&&t--,0===t){mr=vr;break}}function Mr(e){for(var t=e;!Nr()&&(e=jr())!==t;);}var Dr,Pr="__r",Fr="__c";function Rr(e,t,n,r,i){var o,a,s,c,l;t=(o=t)._withTask||(o._withTask=function(){Je=!0;var e=o.apply(null,arguments);return Je=!1,e}),n&&(a=t,s=e,c=r,l=Dr,t=function e(){null!==a.apply(null,arguments)&&Hr(s,e,c,l)}),Dr.addEventListener(e,t,Z?{capture:r,passive:i}:r)}function Hr(e,t,n,r){(r||Dr).removeEventListener(e,t._withTask||t,n)}function Br(e,t){if(!M(e.data.on)||!M(t.data.on)){var n=t.data.on||{},r=e.data.on||{};Dr=t.elm,function(e){if(D(e[Pr])){var t=K?"change":"input";e[t]=[].concat(e[Pr],e[t]||[]),delete e[Pr]}D(e[Fr])&&(e.change=[].concat(e[Fr],e.change||[]),delete e[Fr])}(n),nt(n,r,Rr,Hr,t.context),Dr=void 0}}var Ur={create:Br,update:Br};function Vr(e,t){if(!M(e.data.domProps)||!M(t.data.domProps)){var n,r,i,o,a=t.elm,s=e.data.domProps||{},c=t.data.domProps||{};for(n in D(c.__ob__)&&(c=t.data.domProps=m({},c)),s)M(c[n])&&(a[n]="");for(n in c){if(r=c[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),r===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n){var l=M(a._value=r)?"":String(r);o=l,(i=a).composing||"OPTION"!==i.tagName&&!function(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(i,o)&&!function(e,t){var n=e.value,r=e._vModifiers;if(D(r)){if(r.lazy)return!1;if(r.number)return F(n)!==F(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}(i,o)||(a.value=l)}else a[n]=r}}}var zr={create:Vr,update:Vr},Kr=e(function(e){var n={},r=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach(function(e){if(e){var t=e.split(r);1<t.length&&(n[t[0].trim()]=t[1].trim())}}),n});function Jr(e){var t=qr(e.style);return e.staticStyle?m(e.staticStyle,t):t}function qr(e){return Array.isArray(e)?b(e):"string"==typeof e?Kr(e):e}var Wr,Gr=/^--/,Zr=/\s*!important#x2F;,Xr=function(e,t,n){if(Gr.test(t))e.style.setProperty(t,n);else if(Zr.test(n))e.style.setProperty(t,n.replace(Zr,""),"important");else{var r=Qr(t);if(Array.isArray(n))for(var i=0,o=n.length;i<o;i++)e.style[r]=n[i];else e.style[r]=n}},Yr=["Webkit","Moz","ms"],Qr=e(function(e){if(Wr=Wr||document.createElement("div").style,"filter"!==(e=g(e))&&e in Wr)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<Yr.length;n++){var r=Yr[n]+t;if(r in Wr)return r}});function ei(e,t){var n=t.data,r=e.data;if(!(M(n.staticStyle)&&M(n.style)&&M(r.staticStyle)&&M(r.style))){var i,o,a=t.elm,s=r.staticStyle,c=r.normalizedStyle||r.style||{},l=s||c,u=qr(t.data.style)||{};t.data.normalizedStyle=D(u.__ob__)?m({},u):u;var f=function(e,t){var n,r={};if(t)for(var i=e;i.componentInstance;)(i=i.componentInstance._vnode)&&i.data&&(n=Jr(i.data))&&m(r,n);(n=Jr(e.data))&&m(r,n);for(var o=e;o=o.parent;)o.data&&(n=Jr(o.data))&&m(r,n);return r}(t,!0);for(o in l)M(f[o])&&Xr(a,o,"");for(o in f)(i=f[o])!==l[o]&&Xr(a,o,null==i?"":i)}}var ti={create:ei,update:ei};function ni(t,e){if(e&&(e=e.trim()))if(t.classList)-1<e.indexOf(" ")?e.split(/\s+/).forEach(function(e){return t.classList.add(e)}):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function ri(t,e){if(e&&(e=e.trim()))if(t.classList)-1<e.indexOf(" ")?e.split(/\s+/).forEach(function(e){return t.classList.remove(e)}):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" "+(t.getAttribute("class")||"")+" ",r=" "+e+" ";0<=n.indexOf(r);)n=n.replace(r," ");(n=n.trim())?t.setAttribute("class",n):t.removeAttribute("class")}}function ii(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&m(t,oi(e.name||"v")),m(t,e),t}return"string"==typeof e?oi(e):void 0}}var oi=e(function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}}),ai=B&&!J,si="transition",ci="animation",li="transition",ui="transitionend",fi="animation",pi="animationend";ai&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(li="WebkitTransition",ui="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(fi="WebkitAnimation",pi="webkitAnimationEnd"));var di=B?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function vi(e){di(function(){di(e)})}function hi(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),ni(e,t))}function mi(e,t){e._transitionClasses&&f(e._transitionClasses,t),ri(e,t)}function yi(t,e,n){var r=_i(t,e),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===si?ui:pi,c=0,l=function(){t.removeEventListener(s,u),n()},u=function(e){e.target===t&&++c>=a&&l()};setTimeout(function(){c<a&&l()},o+1),t.addEventListener(s,u)}var gi=/\b(transform|all)(,|$)/;function _i(e,t){var n,r=window.getComputedStyle(e),i=r[li+"Delay"].split(", "),o=r[li+"Duration"].split(", "),a=bi(i,o),s=r[fi+"Delay"].split(", "),c=r[fi+"Duration"].split(", "),l=bi(s,c),u=0,f=0;return t===si?0<a&&(n=si,u=a,f=o.length):t===ci?0<l&&(n=ci,u=l,f=c.length):f=(n=0<(u=Math.max(a,l))?l<a?si:ci:null)?n===si?o.length:c.length:0,{type:n,timeout:u,propCount:f,hasTransform:n===si&&gi.test(r[li+"Property"])}}function bi(n,e){for(;n.length<e.length;)n=n.concat(n);return Math.max.apply(null,e.map(function(e,t){return $i(e)+$i(n[t])}))}function $i(e){return 1e3*Number(e.slice(0,-1))}function wi(n,e){var r=n.elm;D(r._leaveCb)&&(r._leaveCb.cancelled=!0,r._leaveCb());var t=ii(n.data.transition);if(!M(t)&&!D(r._enterCb)&&1===r.nodeType){for(var i=t.css,o=t.type,a=t.enterClass,s=t.enterToClass,c=t.enterActiveClass,l=t.appearClass,u=t.appearToClass,f=t.appearActiveClass,p=t.beforeEnter,d=t.enter,v=t.afterEnter,h=t.enterCancelled,m=t.beforeAppear,y=t.appear,g=t.afterAppear,_=t.appearCancelled,b=t.duration,$=mt,w=mt.$vnode;w&&w.parent;)$=(w=w.parent).context;var C=!$._isMounted||!n.isRootInsert;if(!C||y||""===y){var x=C&&l?l:a,k=C&&f?f:c,A=C&&u?u:s,O=C&&m||p,S=C&&"function"==typeof y?y:d,T=C&&g||v,E=C&&_||h,j=F(P(b)?b.enter:b),N=!1!==i&&!J,L=ki(S),I=r._enterCb=R(function(){N&&(mi(r,A),mi(r,k)),I.cancelled?(N&&mi(r,x),E&&E(r)):T&&T(r),r._enterCb=null});n.data.show||rt(n,"insert",function(){var e=r.parentNode,t=e&&e._pending&&e._pending[n.key];t&&t.tag===n.tag&&t.elm._leaveCb&&t.elm._leaveCb(),S&&S(r,I)}),O&&O(r),N&&(hi(r,x),hi(r,k),vi(function(){mi(r,x),I.cancelled||(hi(r,A),L||(xi(j)?setTimeout(I,j):yi(r,o,I)))})),n.data.show&&(e&&e(),S&&S(r,I)),N||L||I()}}}function Ci(e,t){var n=e.elm;D(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var r=ii(e.data.transition);if(M(r)||1!==n.nodeType)return t();if(!D(n._leaveCb)){var i=r.css,o=r.type,a=r.leaveClass,s=r.leaveToClass,c=r.leaveActiveClass,l=r.beforeLeave,u=r.leave,f=r.afterLeave,p=r.leaveCancelled,d=r.delayLeave,v=r.duration,h=!1!==i&&!J,m=ki(u),y=F(P(v)?v.leave:v),g=n._leaveCb=R(function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[e.key]=null),h&&(mi(n,s),mi(n,c)),g.cancelled?(h&&mi(n,a),p&&p(n)):(t(),f&&f(n)),n._leaveCb=null});d?d(_):_()}function _(){g.cancelled||(e.data.show||((n.parentNode._pending||(n.parentNode._pending={}))[e.key]=e),l&&l(n),h&&(hi(n,a),hi(n,c),vi(function(){mi(n,a),g.cancelled||(hi(n,s),m||(xi(y)?setTimeout(g,y):yi(n,o,g)))})),u&&u(n,g),h||m||g())}}function xi(e){return"number"==typeof e&&!isNaN(e)}function ki(e){if(M(e))return!1;var t=e.fns;return D(t)?ki(Array.isArray(t)?t[0]:t):1<(e._length||e.length)}function Ai(e,t){!0!==t.data.show&&wi(t)}var Oi=function(e){var r,t,g={},n=e.modules,_=e.nodeOps;for(r=0;r<Xn.length;++r)for(g[Xn[r]]=[],t=0;t<n.length;++t)D(n[t][Xn[r]])&&g[Xn[r]].push(n[t][Xn[r]]);function o(e){var t=_.parentNode(e);D(t)&&_.removeChild(t,e)}function b(e,t,n,r,i,o,a){if(D(e.elm)&&D(o)&&(e=o[a]=de(e)),e.isRootInsert=!i,!function(e,t,n,r){var i=e.data;if(D(i)){var o=D(e.componentInstance)&&i.keepAlive;if(D(i=i.hook)&&D(i=i.init)&&i(e,!1,n,r),D(e.componentInstance))return d(e,t),S(o)&&function(e,t,n,r){for(var i,o=e;o.componentInstance;)if(o=o.componentInstance._vnode,D(i=o.data)&&D(i=i.transition)){for(i=0;i<g.activate.length;++i)g.activate[i](Zn,o);t.push(o);break}u(n,e.elm,r)}(e,t,n,r),!0}}(e,t,n,r)){var s=e.data,c=e.children,l=e.tag;D(l)?(e.elm=e.ns?_.createElementNS(e.ns,l):_.createElement(l,e),f(e),v(e,c,t),D(s)&&h(e,t)):S(e.isComment)?e.elm=_.createComment(e.text):e.elm=_.createTextNode(e.text),u(n,e.elm,r)}}function d(e,t){D(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,$(e)?(h(e,t),f(e)):(Gn(e),t.push(e))}function u(e,t,n){D(e)&&(D(n)?n.parentNode===e&&_.insertBefore(e,t,n):_.appendChild(e,t))}function v(e,t,n){if(Array.isArray(t))for(var r=0;r<t.length;++r)b(t[r],n,e.elm,null,!0,t,r);else T(e.text)&&_.appendChild(e.elm,_.createTextNode(String(e.text)))}function $(e){for(;e.componentInstance;)e=e.componentInstance._vnode;return D(e.tag)}function h(e,t){for(var n=0;n<g.create.length;++n)g.create[n](Zn,e);D(r=e.data.hook)&&(D(r.create)&&r.create(Zn,e),D(r.insert)&&t.push(e))}function f(e){var t;if(D(t=e.fnScopeId))_.setStyleScope(e.elm,t);else for(var n=e;n;)D(t=n.context)&&D(t=t.$options._scopeId)&&_.setStyleScope(e.elm,t),n=n.parent;D(t=mt)&&t!==e.context&&t!==e.fnContext&&D(t=t.$options._scopeId)&&_.setStyleScope(e.elm,t)}function y(e,t,n,r,i,o){for(;r<=i;++r)b(n[r],o,e,t,!1,n,r)}function w(e){var t,n,r=e.data;if(D(r))for(D(t=r.hook)&&D(t=t.destroy)&&t(e),t=0;t<g.destroy.length;++t)g.destroy[t](e);if(D(t=e.children))for(n=0;n<e.children.length;++n)w(e.children[n])}function C(e,t,n,r){for(;n<=r;++n){var i=t[n];D(i)&&(D(i.tag)?(a(i),w(i)):o(i.elm))}}function a(e,t){if(D(t)||D(e.data)){var n,r=g.remove.length+1;for(D(t)?t.listeners+=r:t=function(e,t){function n(){0==--n.listeners&&o(e)}return n.listeners=t,n}(e.elm,r),D(n=e.componentInstance)&&D(n=n._vnode)&&D(n.data)&&a(n,t),n=0;n<g.remove.length;++n)g.remove[n](e,t);D(n=e.data.hook)&&D(n=n.remove)?n(e,t):t()}else o(e.elm)}function x(e,t,n,r){for(var i=n;i<r;i++){var o=t[i];if(D(o)&&Yn(e,o))return i}}function k(e,t,n,r){if(e!==t){var i=t.elm=e.elm;if(S(e.isAsyncPlaceholder))D(t.asyncFactory.resolved)?O(e.elm,t,n):t.isAsyncPlaceholder=!0;else if(S(t.isStatic)&&S(e.isStatic)&&t.key===e.key&&(S(t.isCloned)||S(t.isOnce)))t.componentInstance=e.componentInstance;else{var o,a=t.data;D(a)&&D(o=a.hook)&&D(o=o.prepatch)&&o(e,t);var s=e.children,c=t.children;if(D(a)&&$(t)){for(o=0;o<g.update.length;++o)g.update[o](e,t);D(o=a.hook)&&D(o=o.update)&&o(e,t)}M(t.text)?D(s)&&D(c)?s!==c&&function(e,t,n,r,i){for(var o,a,s,c=0,l=0,u=t.length-1,f=t[0],p=t[u],d=n.length-1,v=n[0],h=n[d],m=!i;c<=u&&l<=d;)M(f)?f=t[++c]:M(p)?p=t[--u]:Yn(f,v)?(k(f,v,r),f=t[++c],v=n[++l]):Yn(p,h)?(k(p,h,r),p=t[--u],h=n[--d]):Yn(f,h)?(k(f,h,r),m&&_.insertBefore(e,f.elm,_.nextSibling(p.elm)),f=t[++c],h=n[--d]):(Yn(p,v)?(k(p,v,r),m&&_.insertBefore(e,p.elm,f.elm),p=t[--u]):(M(o)&&(o=Qn(t,c,u)),M(a=D(v.key)?o[v.key]:x(v,t,c,u))?b(v,r,e,f.elm,!1,n,l):Yn(s=t[a],v)?(k(s,v,r),t[a]=void 0,m&&_.insertBefore(e,s.elm,f.elm)):b(v,r,e,f.elm,!1,n,l)),v=n[++l]);u<c?y(e,M(n[d+1])?null:n[d+1].elm,n,l,d,r):d<l&&C(0,t,c,u)}(i,s,c,n,r):D(c)?(D(e.text)&&_.setTextContent(i,""),y(i,null,c,0,c.length-1,n)):D(s)?C(0,s,0,s.length-1):D(e.text)&&_.setTextContent(i,""):e.text!==t.text&&_.setTextContent(i,t.text),D(a)&&D(o=a.hook)&&D(o=o.postpatch)&&o(e,t)}}}function A(e,t,n){if(S(n)&&D(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r<t.length;++r)t[r].data.hook.insert(t[r])}var m=s("attrs,class,staticClass,staticStyle,key");function O(e,t,n,r){var i,o=t.tag,a=t.data,s=t.children;if(r=r||a&&a.pre,t.elm=e,S(t.isComment)&&D(t.asyncFactory))return t.isAsyncPlaceholder=!0;if(D(a)&&(D(i=a.hook)&&D(i=i.init)&&i(t,!0),D(i=t.componentInstance)))return d(t,n),!0;if(D(o)){if(D(s))if(e.hasChildNodes())if(D(i=a)&&D(i=i.domProps)&&D(i=i.innerHTML)){if(i!==e.innerHTML)return!1}else{for(var c=!0,l=e.firstChild,u=0;u<s.length;u++){if(!l||!O(l,s[u],n,r)){c=!1;break}l=l.nextSibling}if(!c||l)return!1}else v(t,s,n);if(D(a)){var f=!1;for(var p in a)if(!m(p)){f=!0,h(t,n);break}!f&&a.class&&Ye(a.class)}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,t,n,r,i,o){if(!M(t)){var a,s=!1,c=[];if(M(e))s=!0,b(t,c,i,o);else{var l=D(e.nodeType);if(!l&&Yn(e,t))k(e,t,c,r);else{if(l){if(1===e.nodeType&&e.hasAttribute(E)&&(e.removeAttribute(E),n=!0),S(n)&&O(e,t,c))return A(t,c,!0),e;a=e,e=new le(_.tagName(a).toLowerCase(),{},[],void 0,a)}var u=e.elm,f=_.parentNode(u);if(b(t,c,u._leaveCb?null:f,_.nextSibling(u)),D(t.parent))for(var p=t.parent,d=$(t);p;){for(var v=0;v<g.destroy.length;++v)g.destroy[v](p);if(p.elm=t.elm,d){for(var h=0;h<g.create.length;++h)g.create[h](Zn,p);var m=p.data.hook.insert;if(m.merged)for(var y=1;y<m.fns.length;y++)m.fns[y]()}else Gn(p);p=p.parent}D(f)?C(0,[e],0,0):D(e.tag)&&w(e)}}return A(t,c,s),t.elm}D(e)&&w(e)}}({nodeOps:qn,modules:[lr,yr,Ur,zr,ti,B?{create:Ai,activate:Ai,remove:function(e,t){!0!==e.data.show?Ci(e,t):t()}}:{}].concat(or)});J&&document.addEventListener("selectionchange",function(){var e=document.activeElement;e&&e.vmodel&&Mi(e,"input")});var Si={inserted:function(e,t,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?rt(n,"postpatch",function(){Si.componentUpdated(e,t,n)}):Ti(e,t,n.context),e._vOptions=[].map.call(e.options,Ni)):("textarea"===n.tag||Kn(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",Li),e.addEventListener("compositionend",Ii),e.addEventListener("change",Ii),J&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){Ti(e,t,n.context);var r=e._vOptions,i=e._vOptions=[].map.call(e.options,Ni);if(i.some(function(e,t){return!C(e,r[t])}))(e.multiple?t.value.some(function(e){return ji(e,i)}):t.value!==t.oldValue&&ji(t.value,i))&&Mi(e,"change")}}};function Ti(e,t,n){Ei(e,t,n),(K||q)&&setTimeout(function(){Ei(e,t,n)},0)}function Ei(e,t,n){var r=t.value,i=e.multiple;if(!i||Array.isArray(r)){for(var o,a,s=0,c=e.options.length;s<c;s++)if(a=e.options[s],i)o=-1<x(r,Ni(a)),a.selected!==o&&(a.selected=o);else if(C(Ni(a),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function ji(t,e){return e.every(function(e){return!C(e,t)})}function Ni(e){return"_value"in e?e._value:e.value}function Li(e){e.target.composing=!0}function Ii(e){e.target.composing&&(e.target.composing=!1,Mi(e.target,"input"))}function Mi(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function Di(e){return!e.componentInstance||e.data&&e.data.transition?e:Di(e.componentInstance._vnode)}var Pi={model:Si,show:{bind:function(e,t,n){var r=t.value,i=(n=Di(n)).data&&n.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,wi(n,function(){e.style.display=o})):e.style.display=r?o:"none"},update:function(e,t,n){var r=t.value;!r!=!t.oldValue&&((n=Di(n)).data&&n.data.transition?(n.data.show=!0,r?wi(n,function(){e.style.display=e.__vOriginalDisplay}):Ci(n,function(){e.style.display="none"})):e.style.display=r?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}}},Fi={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Ri(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Ri(lt(t.children)):e}function Hi(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var o in i)t[g(o)]=i[o];return t}function Bi(e,t){if(/\d-keep-alive#x2F;.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var Ui={name:"transition",props:Fi,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(function(e){return e.tag||ct(e)})).length){var r=this.mode,i=n[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return i;var o=Ri(i);if(!o)return i;if(this._leaving)return Bi(e,i);var a="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?a+"comment":a+o.tag:T(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var s,c,l=(o.data||(o.data={})).transition=Hi(this),u=this._vnode,f=Ri(u);if(o.data.directives&&o.data.directives.some(function(e){return"show"===e.name})&&(o.data.show=!0),f&&f.data&&(s=o,(c=f).key!==s.key||c.tag!==s.tag)&&!ct(f)&&(!f.componentInstance||!f.componentInstance._vnode.isComment)){var p=f.data.transition=m({},l);if("out-in"===r)return this._leaving=!0,rt(p,"afterLeave",function(){t._leaving=!1,t.$forceUpdate()}),Bi(e,i);if("in-out"===r){if(ct(o))return u;var d,v=function(){d()};rt(l,"afterEnter",v),rt(l,"enterCancelled",v),rt(p,"delayLeave",function(e){d=e})}}return i}}},Vi=m({tag:String,moveClass:String},Fi);function zi(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function Ki(e){e.data.newPos=e.elm.getBoundingClientRect()}function Ji(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var o=e.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}delete Vi.mode;var qi={Transition:Ui,TransitionGroup:{props:Vi,render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=Hi(this),s=0;s<i.length;s++){var c=i[s];c.tag&&null!=c.key&&0!==String(c.key).indexOf("__vlist")&&(o.push(c),((n[c.key]=c).data||(c.data={})).transition=a)}if(r){for(var l=[],u=[],f=0;f<r.length;f++){var p=r[f];p.data.transition=a,p.data.pos=p.elm.getBoundingClientRect(),n[p.key]?l.push(p):u.push(p)}this.kept=e(t,null,l),this.removed=u}return e(t,null,o)},beforeUpdate:function(){this.__patch__(this._vnode,this.kept,!1,!0),this._vnode=this.kept},updated:function(){var e=this.prevChildren,r=this.moveClass||(this.name||"v")+"-move";e.length&&this.hasMove(e[0].elm,r)&&(e.forEach(zi),e.forEach(Ki),e.forEach(Ji),this._reflow=document.body.offsetHeight,e.forEach(function(e){if(e.data.moved){var n=e.elm,t=n.style;hi(n,r),t.transform=t.WebkitTransform=t.transitionDuration="",n.addEventListener(ui,n._moveCb=function e(t){t&&!/transform#x2F;.test(t.propertyName)||(n.removeEventListener(ui,e),n._moveCb=null,mi(n,r))})}}))},methods:{hasMove:function(e,t){if(!ai)return!1;if(this._hasMove)return this._hasMove;var n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach(function(e){ri(n,e)}),ni(n,t),n.style.display="none",this.$el.appendChild(n);var r=_i(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}}};hn.config.mustUseProp=Sn,hn.config.isReservedTag=Un,hn.config.isReservedAttr=An,hn.config.getTagNamespace=Vn,hn.config.isUnknownElement=function(e){if(!B)return!0;if(Un(e))return!1;if(e=e.toLowerCase(),null!=zn[e])return zn[e];var t=document.createElement(e);return-1<e.indexOf("-")?zn[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:zn[e]=/HTMLUnknownElement/.test(t.toString())},m(hn.options.directives,Pi),m(hn.options.components,qi),hn.prototype.__patch__=B?Oi:$,hn.prototype.$mount=function(e,t){return e=e&&B?Jn(e):void 0,r=e,i=t,(n=this).$el=r,n.$options.render||(n.$options.render=fe),_t(n,"beforeMount"),new St(n,function(){n._update(n._render(),i)},$,null,!0),i=!1,null==n.$vnode&&(n._isMounted=!0,_t(n,"mounted")),n;var n,r,i},B&&setTimeout(function(){j.devtools&&Q&&Q.emit("init",hn)},0);var Wi=/\{\{((?:.|\n)+?)\}\}/g,Gi=/[-.*+?^${}()|[\]\/\\]/g,Zi=e(function(e){var t=e[0].replace(Gi,"\\amp;"),n=e[1].replace(Gi,"\\amp;");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")});var Xi={staticKeys:["staticClass"],transformNode:function(e,t){t.warn;var n=Sr(e,"class");n&&(e.staticClass=JSON.stringify(n));var r=Or(e,"class",!1);r&&(e.classBinding=r)},genData:function(e){var t="";return e.staticClass&&(t+="staticClass:"+e.staticClass+","),e.classBinding&&(t+="class:"+e.classBinding+","),t}};var Yi,Qi={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;var n=Sr(e,"style");n&&(e.staticStyle=JSON.stringify(Kr(n)));var r=Or(e,"style",!1);r&&(e.styleBinding=r)},genData:function(e){var t="";return e.staticStyle&&(t+="staticStyle:"+e.staticStyle+","),e.styleBinding&&(t+="style:("+e.styleBinding+"),"),t}},eo=function(e){return(Yi=Yi||document.createElement("div")).innerHTML=e,Yi.textContent},to=s("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),no=s("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),ro=s("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),io=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,oo="[a-zA-Z_][\\w\\-\\.]*",ao="((?:"+oo+"\\:)?"+oo+")",so=new RegExp("^<"+ao),co=/^\s*(\/?)>/,lo=new RegExp("^<\\/"+ao+"[^>]*>"),uo=/^<!DOCTYPE [^>]+>/i,fo=/^<!\--/,po=/^<!\[/,vo=!1;"x".replace(/x(.)?/g,function(e,t){vo=""===t});var ho=s("script,style,textarea",!0),mo={},yo={"<":"<",">":">",""":'"',"&":"&"," ":"\n","	":"\t"},go=/&(?:lt|gt|quot|amp);/g,_o=/&(?:lt|gt|quot|amp|#10|#9);/g,bo=s("pre,textarea",!0),$o=function(e,t){return e&&bo(e)&&"\n"===t[0]};var wo,Co,xo,ko,Ao,Oo,So,To,Eo=/^@|^v-on:/,jo=/^v-|^@|^:/,No=/([^]*?)\s+(?:in|of)\s+([^]*)/,Lo=/,([^,\}\]]*)(?:,([^,\}\]]*))?#x2F;,Io=/^\(|\)#x2F;g,Mo=/:(.*)#x2F;,Do=/^:|^v-bind:/,Po=/\.[^.]+/g,Fo=e(eo);function Ro(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:function(e){for(var t={},n=0,r=e.length;n<r;n++)t[e[n].name]=e[n].value;return t}(t),parent:n,children:[]}}function Ho(e,p){wo=p.warn||$r,Oo=p.isPreTag||O,So=p.mustUseProp||O,To=p.getTagNamespace||O,xo=wr(p.modules,"transformNode"),ko=wr(p.modules,"preTransformNode"),Ao=wr(p.modules,"postTransformNode"),Co=p.delimiters;var d,v,h=[],i=!1!==p.preserveWhitespace,m=!1,y=!1;function g(e){e.pre&&(m=!1),Oo(e.tag)&&(y=!1);for(var t=0;t<Ao.length;t++)Ao[t](e,p)}return function(i,d){for(var e,v,h=[],m=d.expectHTML,y=d.isUnaryTag||O,g=d.canBeLeftOpenTag||O,a=0;i;){if(e=i,v&&ho(v)){var r=0,o=v.toLowerCase(),t=mo[o]||(mo[o]=new RegExp("([\\s\\S]*?)(</"+o+"[^>]*>)","i")),n=i.replace(t,function(e,t,n){return r=n.length,ho(o)||"noscript"===o||(t=t.replace(/<!\--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),$o(o,t)&&(t=t.slice(1)),d.chars&&d.chars(t),""});a+=i.length-n.length,i=n,A(o,a-r,a)}else{var s=i.indexOf("<");if(0===s){if(fo.test(i)){var c=i.indexOf("--\x3e");if(0<=c){d.shouldKeepComment&&d.comment(i.substring(4,c)),C(c+3);continue}}if(po.test(i)){var l=i.indexOf("]>");if(0<=l){C(l+2);continue}}var u=i.match(uo);if(u){C(u[0].length);continue}var f=i.match(lo);if(f){var p=a;C(f[0].length),A(f[1],p,a);continue}var _=x();if(_){k(_),$o(v,i)&&C(1);continue}}var b=void 0,$=void 0,w=void 0;if(0<=s){for($=i.slice(s);!(lo.test($)||so.test($)||fo.test($)||po.test($)||(w=$.indexOf("<",1))<0);)s+=w,$=i.slice(s);b=i.substring(0,s),C(s)}s<0&&(b=i,i=""),d.chars&&b&&d.chars(b)}if(i===e){d.chars&&d.chars(i);break}}function C(e){a+=e,i=i.substring(e)}function x(){var e=i.match(so);if(e){var t,n,r={tagName:e[1],attrs:[],start:a};for(C(e[0].length);!(t=i.match(co))&&(n=i.match(io));)C(n[0].length),r.attrs.push(n);if(t)return r.unarySlash=t[1],C(t[0].length),r.end=a,r}}function k(e){var t=e.tagName,n=e.unarySlash;m&&("p"===v&&ro(t)&&A(v),g(t)&&v===t&&A(t));for(var r,i,o,a=y(t)||!!n,s=e.attrs.length,c=new Array(s),l=0;l<s;l++){var u=e.attrs[l];vo&&-1===u[0].indexOf('""')&&(""===u[3]&&delete u[3],""===u[4]&&delete u[4],""===u[5]&&delete u[5]);var f=u[3]||u[4]||u[5]||"",p="a"===t&&"href"===u[1]?d.shouldDecodeNewlinesForHref:d.shouldDecodeNewlines;c[l]={name:u[1],value:(r=f,i=p,o=i?_o:go,r.replace(o,function(e){return yo[e]}))}}a||(h.push({tag:t,lowerCasedTag:t.toLowerCase(),attrs:c}),v=t),d.start&&d.start(t,c,a,e.start,e.end)}function A(e,t,n){var r,i;if(null==t&&(t=a),null==n&&(n=a),e&&(i=e.toLowerCase()),e)for(r=h.length-1;0<=r&&h[r].lowerCasedTag!==i;r--);else r=0;if(0<=r){for(var o=h.length-1;r<=o;o--)d.end&&d.end(h[o].tag,t,n);h.length=r,v=r&&h[r-1].tag}else"br"===i?d.start&&d.start(e,[],!0,t,n):"p"===i&&(d.start&&d.start(e,[],!1,t,n),d.end&&d.end(e,t,n))}A()}(e,{warn:wo,expectHTML:p.expectHTML,isUnaryTag:p.isUnaryTag,canBeLeftOpenTag:p.canBeLeftOpenTag,shouldDecodeNewlines:p.shouldDecodeNewlines,shouldDecodeNewlinesForHref:p.shouldDecodeNewlinesForHref,shouldKeepComment:p.comments,start:function(e,t,n){var r=v&&v.ns||To(e);K&&"svg"===r&&(t=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];Ko.test(r.name)||(r.name=r.name.replace(Jo,""),t.push(r))}return t}(t));var i,o,a,s,c,l=Ro(e,t,v);r&&(l.ns=r),"style"!==(i=l).tag&&("script"!==i.tag||i.attrsMap.type&&"text/javascript"!==i.attrsMap.type)||Y()||(l.forbidden=!0);for(var u=0;u<ko.length;u++)l=ko[u](l,p)||l;if(m||(null!=Sr(o=l,"v-pre")&&(o.pre=!0),l.pre&&(m=!0)),Oo(l.tag)&&(y=!0),m?function(e){var t=e.attrsList.length;if(t)for(var n=e.attrs=new Array(t),r=0;r<t;r++)n[r]={name:e.attrsList[r].name,value:JSON.stringify(e.attrsList[r].value)};else e.pre||(e.plain=!0)}(l):l.processed||(Uo(l),function(e){var t=Sr(e,"v-if");if(t)e.if=t,Vo(e,{exp:t,block:e});else{null!=Sr(e,"v-else")&&(e.else=!0);var n=Sr(e,"v-else-if");n&&(e.elseif=n)}}(l),null!=Sr(a=l,"v-once")&&(a.once=!0),Bo(l,p)),d?h.length||d.if&&(l.elseif||l.else)&&Vo(d,{exp:l.elseif,block:l}):d=l,v&&!l.forbidden)if(l.elseif||l.else)s=l,(c=function(e){var t=e.length;for(;t--;){if(1===e[t].type)return e[t];e.pop()}}(v.children))&&c.if&&Vo(c,{exp:s.elseif,block:s});else if(l.slotScope){v.plain=!1;var f=l.slotTarget||'"default"';(v.scopedSlots||(v.scopedSlots={}))[f]=l}else v.children.push(l),l.parent=v;n?g(l):(v=l,h.push(l))},end:function(){var e=h[h.length-1],t=e.children[e.children.length-1];t&&3===t.type&&" "===t.text&&!y&&e.children.pop(),h.length-=1,v=h[h.length-1],g(e)},chars:function(e){if(v&&(!K||"textarea"!==v.tag||v.attrsMap.placeholder!==e)){var t,n,r=v.children;if(e=y||e.trim()?"script"===(t=v).tag||"style"===t.tag?e:Fo(e):i&&r.length?" ":"")!m&&" "!==e&&(n=function(e,t){var n=t?Zi(t):Wi;if(n.test(e)){for(var r,i,o,a=[],s=[],c=n.lastIndex=0;r=n.exec(e);){c<(i=r.index)&&(s.push(o=e.slice(c,i)),a.push(JSON.stringify(o)));var l=_r(r[1].trim());a.push("_s("+l+")"),s.push({"@binding":l}),c=i+r[0].length}return c<e.length&&(s.push(o=e.slice(c)),a.push(JSON.stringify(o))),{expression:a.join("+"),tokens:s}}}(e,Co))?r.push({type:2,expression:n.expression,tokens:n.tokens,text:e}):" "===e&&r.length&&" "===r[r.length-1].text||r.push({type:3,text:e})}},comment:function(e){v.children.push({type:3,text:e,isComment:!0})}}),d}function Bo(e,t){var n,r,i,o;(r=Or(n=e,"key"))&&(n.key=r),e.plain=!e.key&&!e.attrsList.length,(o=Or(i=e,"ref"))&&(i.ref=o,i.refInFor=function(e){for(var t=e;t;){if(void 0!==t.for)return!0;t=t.parent}return!1}(i)),function(e){if("slot"===e.tag)e.slotName=Or(e,"name");else{var t;"template"===e.tag?(t=Sr(e,"scope"),e.slotScope=t||Sr(e,"slot-scope")):(t=Sr(e,"slot-scope"))&&(e.slotScope=t);var n=Or(e,"slot");n&&(e.slotTarget='""'===n?'"default"':n,"template"===e.tag||e.slotScope||xr(e,"slot",n))}}(e),function(e){var t;(t=Or(e,"is"))&&(e.component=t);null!=Sr(e,"inline-template")&&(e.inlineTemplate=!0)}(e);for(var a=0;a<xo.length;a++)e=xo[a](e,t)||e;!function(e){var t,n,r,i,o,a,s,c=e.attrsList;for(t=0,n=c.length;t<n;t++)if(r=i=c[t].name,o=c[t].value,jo.test(r))if(e.hasBindings=!0,(a=zo(r))&&(r=r.replace(Po,"")),Do.test(r))r=r.replace(Do,""),o=_r(o),s=!1,a&&(a.prop&&(s=!0,"innerHtml"===(r=g(r))&&(r="innerHTML")),a.camel&&(r=g(r)),a.sync&&Ar(e,"update:"+g(r),Er(o,"$event"))),s||!e.component&&So(e.tag,e.attrsMap.type,r)?Cr(e,r,o):xr(e,r,o);else if(Eo.test(r))r=r.replace(Eo,""),Ar(e,r,o,a,!1);else{var l=(r=r.replace(jo,"")).match(Mo),u=l&&l[1];u&&(r=r.slice(0,-(u.length+1))),p=r,d=i,v=o,h=u,m=a,((f=e).directives||(f.directives=[])).push({name:p,rawName:d,value:v,arg:h,modifiers:m}),f.plain=!1}else xr(e,r,JSON.stringify(o)),!e.component&&"muted"===r&&So(e.tag,e.attrsMap.type,r)&&Cr(e,r,"true");var f,p,d,v,h,m}(e)}function Uo(e){var t;if(t=Sr(e,"v-for")){var n=function(e){var t=e.match(No);if(!t)return;var n={};n.for=t[2].trim();var r=t[1].trim().replace(Io,""),i=r.match(Lo);i?(n.alias=r.replace(Lo,""),n.iterator1=i[1].trim(),i[2]&&(n.iterator2=i[2].trim())):n.alias=r;return n}(t);n&&m(e,n)}}function Vo(e,t){e.ifConditions||(e.ifConditions=[]),e.ifConditions.push(t)}function zo(e){var t=e.match(Po);if(t){var n={};return t.forEach(function(e){n[e.slice(1)]=!0}),n}}var Ko=/^xmlns:NS\d+/,Jo=/^NS\d+:/;function qo(e){return Ro(e.tag,e.attrsList.slice(),e.parent)}var Wo=[Xi,Qi,{preTransformNode:function(e,t){if("input"===e.tag){var n,r=e.attrsMap;if(!r["v-model"])return;if((r[":type"]||r["v-bind:type"])&&(n=Or(e,"type")),r.type||n||!r["v-bind"]||(n="("+r["v-bind"]+").type"),n){var i=Sr(e,"v-if",!0),o=i?"&&("+i+")":"",a=null!=Sr(e,"v-else",!0),s=Sr(e,"v-else-if",!0),c=qo(e);Uo(c),kr(c,"type","checkbox"),Bo(c,t),c.processed=!0,c.if="("+n+")==='checkbox'"+o,Vo(c,{exp:c.if,block:c});var l=qo(e);Sr(l,"v-for",!0),kr(l,"type","radio"),Bo(l,t),Vo(c,{exp:"("+n+")==='radio'"+o,block:l});var u=qo(e);return Sr(u,"v-for",!0),kr(u,":type",n),Bo(u,t),Vo(c,{exp:i,block:u}),a?c.else=!0:s&&(c.elseif=s),c}}}}];var Go,Zo,Xo,Yo={expectHTML:!0,modules:Wo,directives:{model:function(e,t,n){var r,i,o,a,s,c,l,u,f,p,d,v,h,m,y,g,_=t.value,b=t.modifiers,$=e.tag,w=e.attrsMap.type;if(e.component)return Tr(e,_,b),!1;if("select"===$)h=e,m=_,g=(g='var $selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+((y=b)&&y.number?"_n(val)":"val")+"});")+" "+Er(m,"$event.target.multiple ? $selectedVal : $selectedVal[0]"),Ar(h,"change",g,null,!0);else if("input"===amp;&"checkbox"===w)c=e,l=_,f=(u=b)&&u.number,p=Or(c,"value")||"null",d=Or(c,"true-value")||"true",v=Or(c,"false-value")||"false",Cr(c,"checked","Array.isArray("+l+")?_i("+l+","+p+")>-1"+("true"===d?":("+l+")":":_q("+l+","+d+")")),Ar(c,"change","var $a="+l+",$el=$event.target,$c=$el.checked?("+d+"):("+v+");if(Array.isArray($a)){var $v="+(f?"_n("+p+")":p)+",$i=_i($a,$v);if($el.checked){$i<0&&("+Er(l,"$a.concat([$v])")+")}else{$i>-1&&("+Er(l,"$a.slice(0,$i).concat($a.slice($i+1))")+")}}else{"+Er(l,"$c")+"}",null,!0);else if("input"===amp;&"radio"===w)r=e,i=_,a=(o=b)&&o.number,s=Or(r,"value")||"null",Cr(r,"checked","_q("+i+","+(s=a?"_n("+s+")":s)+")"),Ar(r,"change",Er(i,s),null,!0);else if("input"===$||"textarea"===$)!function(e,t,n){var r=e.attrsMap.type,i=n||{},o=i.lazy,a=i.number,s=i.trim,c=!o&&"range"!==r,l=o?"change":"range"===r?Pr:"input",u="$event.target.value";s&&(u="$event.target.value.trim()"),a&&(u="_n("+u+")");var f=Er(t,u);c&&(f="if($event.target.composing)return;"+f),Cr(e,"value","("+t+")"),Ar(e,l,f,null,!0),(s||a)&&Ar(e,"blur","$forceUpdate()")}(e,_,b);else if(!j.isReservedTag($))return Tr(e,_,b),!1;return!0},text:function(e,t){t.value&&Cr(e,"textContent","_s("+t.value+")")},html:function(e,t){t.value&&Cr(e,"innerHTML","_s("+t.value+")")}},isPreTag:function(e){return"pre"===e},isUnaryTag:to,mustUseProp:Sn,canBeLeftOpenTag:no,isReservedTag:Un,getTagNamespace:Vn,staticKeys:(Go=Wo,Go.reduce(function(e,t){return e.concat(t.staticKeys||[])},[]).join(","))},Qo=e(function(e){return s("type,tag,attrsList,attrsMap,plain,parent,children,attrs"+(e?","+e:""))});function ea(e,t){e&&(Zo=Qo(t.staticKeys||""),Xo=t.isReservedTag||O,function e(t){t.static=function(e){if(2===e.type)return!1;if(3===e.type)return!0;return!(!e.pre&&(e.hasBindings||e.if||e.for||c(e.tag)||!Xo(e.tag)||function(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}(e)||!Object.keys(e).every(Zo)))}(t);if(1===t.type){if(!Xo(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(var n=0,r=t.children.length;n<r;n++){var i=t.children[n];e(i),i.static||(t.static=!1)}if(t.ifConditions)for(var o=1,a=t.ifConditions.length;o<a;o++){var s=t.ifConditions[o].block;e(s),s.static||(t.static=!1)}}}(e),function e(t,n){if(1===t.type){if((t.static||t.once)&&(t.staticInFor=n),t.static&&t.children.length&&(1!==t.children.length||3!==t.children[0].type))return void(t.staticRoot=!0);if(t.staticRoot=!1,t.children)for(var r=0,i=t.children.length;r<i;r++)e(t.children[r],n||!!t.for);if(t.ifConditions)for(var o=1,a=t.ifConditions.length;o<a;o++)e(t.ifConditions[o].block,n)}}(e,!1))}var ta=/^([\w$_]+|\([^)]*?\))\s*=>|^function\s*\(/,na=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*#x2F;,ra={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},ia={esc:"Escape",tab:"Tab",enter:"Enter",space:" ",up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete"]},oa=function(e){return"if("+e+")return null;"},aa={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:oa("$event.target !== $event.currentTarget"),ctrl:oa("!$event.ctrlKey"),shift:oa("!$event.shiftKey"),alt:oa("!$event.altKey"),meta:oa("!$event.metaKey"),left:oa("'button' in $event && $event.button !== 0"),middle:oa("'button' in $event && $event.button !== 1"),right:oa("'button' in $event && $event.button !== 2")};function sa(e,t,n){var r=t?"nativeOn:{":"on:{";for(var i in e)r+='"'+i+'":'+ca(i,e[i])+",";return r.slice(0,-1)+"}"}function ca(t,e){if(!e)return"function(){}";if(Array.isArray(e))return"["+e.map(function(e){return ca(t,e)}).join(",")+"]";var n=na.test(e.value),r=ta.test(e.value);if(e.modifiers){var i="",o="",a=[];for(var s in e.modifiers)if(aa[s])o+=aa[s],ra[s]&&a.push(s);else if("exact"===s){var c=e.modifiers;o+=oa(["ctrl","shift","alt","meta"].filter(function(e){return!c[e]}).map(function(e){return"$event."+e+"Key"}).join("||"))}else a.push(s);return a.length&&(i+="if(!('button' in $event)&&"+a.map(la).join("&&")+")return null;"),o&&(i+=o),"function($event){"+i+(n?"return "+e.value+"($event)":r?"return ("+e.value+")($event)":e.value)+"}"}return n||r?e.value:"function($event){"+e.value+"}"}function la(e){var t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;var n=ra[e],r=ia[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(r)+")"}var ua={on:function(e,t){e.wrapListeners=function(e){return"_g("+e+","+t.value+")"}},bind:function(t,n){t.wrapData=function(e){return"_b("+e+",'"+t.tag+"',"+n.value+","+(n.modifiers&&n.modifiers.prop?"true":"false")+(n.modifiers&&n.modifiers.sync?",true":"")+")"}},cloak:$},fa=function(e){this.options=e,this.warn=e.warn||$r,this.transforms=wr(e.modules,"transformCode"),this.dataGenFns=wr(e.modules,"genData"),this.directives=m(m({},ua),e.directives);var t=e.isReservedTag||O;this.maybeComponent=function(e){return!t(e.tag)},this.onceId=0,this.staticRenderFns=[]};function pa(e,t){var n=new fa(t);return{render:"with(this){return "+(e?da(e,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function da(e,t){if(e.staticRoot&&!e.staticProcessed)return va(e,t);if(e.once&&!e.onceProcessed)return ha(e,t);if(e.for&&!e.forProcessed)return f=t,v=(u=e).for,h=u.alias,m=u.iterator1?","+u.iterator1:"",y=u.iterator2?","+u.iterator2:"",u.forProcessed=!0,(d||"_l")+"(("+v+"),function("+h+m+y+"){return "+(p||da)(u,f)+"})";if(e.if&&!e.ifProcessed)return ma(e,t);if("template"!==e.tag||e.slotTarget){if("slot"===e.tag)return function(e,t){var n=e.slotName||'"default"',r=_a(e,t),i="_t("+n+(r?","+r:""),o=e.attrs&&"{"+e.attrs.map(function(e){return g(e.name)+":"+e.value}).join(",")+"}",a=e.attrsMap["v-bind"];!o&&!a||r||(i+=",null");o&&(i+=","+o);a&&(i+=(o?"":",null")+","+a);return i+")"}(e,t);var n;if(e.component)a=e.component,c=t,l=(s=e).inlineTemplate?null:_a(s,c,!0),n="_c("+a+","+ya(s,c)+(l?","+l:"")+")";else{var r=e.plain?void 0:ya(e,t),i=e.inlineTemplate?null:_a(e,t,!0);n="_c('"+e.tag+"'"+(r?","+r:"")+(i?","+i:"")+")"}for(var o=0;o<t.transforms.length;o++)n=t.transforms[o](e,n);return n}return _a(e,t)||"void 0";var a,s,c,l,u,f,p,d,v,h,m,y}function va(e,t){return e.staticProcessed=!0,t.staticRenderFns.push("with(this){return "+da(e,t)+"}"),"_m("+(t.staticRenderFns.length-1)+(e.staticInFor?",true":"")+")"}function ha(e,t){if(e.onceProcessed=!0,e.if&&!e.ifProcessed)return ma(e,t);if(e.staticInFor){for(var n="",r=e.parent;r;){if(r.for){n=r.key;break}r=r.parent}return n?"_o("+da(e,t)+","+t.onceId+++","+n+")":da(e,t)}return va(e,t)}function ma(e,t,n,r){return e.ifProcessed=!0,function e(t,n,r,i){if(!t.length)return i||"_e()";var o=t.shift();return o.exp?"("+o.exp+")?"+a(o.block)+":"+e(t,n,r,i):""+a(o.block);function a(e){return r?r(e,n):e.once?ha(e,n):da(e,n)}}(e.ifConditions.slice(),t,n,r)}function ya(e,t){var n,r,i="{",o=function(e,t){var n=e.directives;if(!n)return;var r,i,o,a,s="directives:[",c=!1;for(r=0,i=n.length;r<i;r++){o=n[r],a=!0;var l=t.directives[o.name];l&&(a=!!l(e,o,t.warn)),a&&(c=!0,s+='{name:"'+o.name+'",rawName:"'+o.rawName+'"'+(o.value?",value:("+o.value+"),expression:"+JSON.stringify(o.value):"")+(o.arg?',arg:"'+o.arg+'"':"")+(o.modifiers?",modifiers:"+JSON.stringify(o.modifiers):"")+"},")}if(c)return s.slice(0,-1)+"]"}(e,t);o&&(i+=o+","),e.key&&(i+="key:"+e.key+","),e.ref&&(i+="ref:"+e.ref+","),e.refInFor&&(i+="refInFor:true,"),e.pre&&(i+="pre:true,"),e.component&&(i+='tag:"'+e.tag+'",');for(var a=0;a<t.dataGenFns.length;a++)i+=t.dataGenFns[a](e);if(e.attrs&&(i+="attrs:{"+wa(e.attrs)+"},"),e.props&&(i+="domProps:{"+wa(e.props)+"},"),e.events&&(i+=sa(e.events,!1,t.warn)+","),e.nativeEvents&&(i+=sa(e.nativeEvents,!0,t.warn)+","),e.slotTarget&&!e.slotScope&&(i+="slot:"+e.slotTarget+","),e.scopedSlots&&(i+=(n=e.scopedSlots,r=t,"scopedSlots:_u(["+Object.keys(n).map(function(e){return ga(e,n[e],r)}).join(",")+"]),")),e.model&&(i+="model:{value:"+e.model.value+",callback:"+e.model.callback+",expression:"+e.model.expression+"},"),e.inlineTemplate){var s=function(e,t){var n=e.children[0];if(1===n.type){var r=pa(n,t.options);return"inlineTemplate:{render:function(){"+r.render+"},staticRenderFns:["+r.staticRenderFns.map(function(e){return"function(){"+e+"}"}).join(",")+"]}"}}(e,t);s&&(i+=s+",")}return i=i.replace(/,#x2F;,"")+"}",e.wrapData&&(i=e.wrapData(i)),e.wrapListeners&&(i=e.wrapListeners(i)),i}function ga(e,t,n){return t.for&&!t.forProcessed?(r=e,o=n,a=(i=t).for,s=i.alias,c=i.iterator1?","+i.iterator1:"",l=i.iterator2?","+i.iterator2:"",i.forProcessed=!0,"_l(("+a+"),function("+s+c+l+"){return "+ga(r,i,o)+"})"):"{key:"+e+",fn:"+("function("+String(t.slotScope)+"){return "+("template"===t.tag?t.if?t.if+"?"+(_a(t,n)||"undefined")+":undefined":_a(t,n)||"undefined":da(t,n))+"}")+"}";var r,i,o,a,s,c,l}function _a(e,t,n,r,i){var o=e.children;if(o.length){var a=o[0];if(1===o.length&&a.for&&"template"!==a.tag&&"slot"!==a.tag)return(r||da)(a,t);var s=n?function(e,t){for(var n=0,r=0;r<e.length;r++){var i=e[r];if(1===i.type){if(ba(i)||i.ifConditions&&i.ifConditions.some(function(e){return ba(e.block)})){n=2;break}(t(i)||i.ifConditions&&i.ifConditions.some(function(e){return t(e.block)}))&&(n=1)}}return n}(o,t.maybeComponent):0,c=i||$a;return"["+o.map(function(e){return c(e,t)}).join(",")+"]"+(s?","+s:"")}}function ba(e){return void 0!==e.for||"template"===e.tag||"slot"===e.tag}function $a(e,t){return 1===e.type?da(e,t):3===e.type&&e.isComment?(r=e,"_e("+JSON.stringify(r.text)+")"):"_v("+(2===(n=e).type?n.expression:Ca(JSON.stringify(n.text)))+")";var n,r}function wa(e){for(var t="",n=0;n<e.length;n++){var r=e[n];t+='"'+r.name+'":'+Ca(r.value)+","}return t.slice(0,-1)}function Ca(e){return e.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),new RegExp("\\b"+"delete,typeof,void".split(",").join("\\s*\\([^\\)]*\\)|\\b")+"\\s*\\([^\\)]*\\)");function xa(t,n){try{return new Function(t)}catch(e){return n.push({err:e,code:t}),$}}var ka,Aa,Oa=(ka=function(e,t){var n=Ho(e.trim(),t);!1!==t.optimize&&ea(n,t);var r=pa(n,t);return{ast:n,render:r.render,staticRenderFns:r.staticRenderFns}},function(s){function e(e,t){var n=Object.create(s),r=[],i=[];if(n.warn=function(e,t){(t?i:r).push(e)},t)for(var o in t.modules&&(n.modules=(s.modules||[]).concat(t.modules)),t.directives&&(n.directives=m(Object.create(s.directives||null),t.directives)),t)"modules"!==o&&"directives"!==o&&(n[o]=t[o]);var a=ka(e,n);return a.errors=r,a.tips=i,a}return{compile:e,compileToFunctions:(c=e,l=Object.create(null),function(e,t,n){(t=m({},t)).warn,delete t.warn;var r=t.delimiters?String(t.delimiters)+e:e;if(l[r])return l[r];var i=c(e,t),o={},a=[];return o.render=xa(i.render,a),o.staticRenderFns=i.staticRenderFns.map(function(e){return xa(e,a)}),l[r]=o})};var c,l})(Yo).compileToFunctions;function Sa(e){return(Aa=Aa||document.createElement("div")).innerHTML=e?'<a href="\n"/>':'<div a="\n"/>',0<Aa.innerHTML.indexOf(" ")}var Ta=!!B&&Sa(!1),Ea=!!B&&Sa(!0),ja=e(function(e){var t=Jn(e);return t&&t.innerHTML}),Na=hn.prototype.$mount;return hn.prototype.$mount=function(e,t){if((e=e&&Jn(e))===document.body||e===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=ja(r));else{if(!r.nodeType)return this;r=r.innerHTML}else e&&(r=function(e){{if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}}(e));if(r){var i=Oa(r,{shouldDecodeNewlines:Ta,shouldDecodeNewlinesForHref:Ea,delimiters:n.delimiters,comments:n.comments},this),o=i.render,a=i.staticRenderFns;n.render=o,n.staticRenderFns=a}}return Na.call(this,e,t)},hn.compile=Oa,hn});
|
assets/scss/_mixin.scss
CHANGED
@@ -66,6 +66,7 @@
|
|
66 |
-webkit-line-clamp: $line;
|
67 |
line-height: $base;
|
68 |
max-height: $base * $line;
|
|
|
69 |
}
|
70 |
|
71 |
@mixin flex() {
|
66 |
-webkit-line-clamp: $line;
|
67 |
line-height: $base;
|
68 |
max-height: $base * $line;
|
69 |
+
min-height: $base * $line;
|
70 |
}
|
71 |
|
72 |
@mixin flex() {
|
assets/scss/admin/_addons.scss
CHANGED
@@ -31,7 +31,7 @@
|
|
31 |
.plugin-card {
|
32 |
.column-description {
|
33 |
p:not(.authors) {
|
34 |
-
@include text-overflow
|
35 |
color: #777;
|
36 |
}
|
37 |
}
|
@@ -41,7 +41,7 @@
|
|
41 |
}
|
42 |
.plugin-card-top {
|
43 |
h3 {
|
44 |
-
@include text-overflow(1.3em,
|
45 |
}
|
46 |
.desc {
|
47 |
min-height: 90px;
|
31 |
.plugin-card {
|
32 |
.column-description {
|
33 |
p:not(.authors) {
|
34 |
+
@include text-overflow(1.6, 3);
|
35 |
color: #777;
|
36 |
}
|
37 |
}
|
41 |
}
|
42 |
.plugin-card-top {
|
43 |
h3 {
|
44 |
+
@include text-overflow(1.3em, 2);
|
45 |
}
|
46 |
.desc {
|
47 |
min-height: 90px;
|
assets/scss/admin/_admin-editor.scss
CHANGED
@@ -381,7 +381,7 @@
|
|
381 |
}
|
382 |
}
|
383 |
|
384 |
-
|
385 |
.item-actions {
|
386 |
.actions {
|
387 |
.preview-item {
|
@@ -642,7 +642,6 @@
|
|
642 |
}
|
643 |
}
|
644 |
|
645 |
-
|
646 |
.section-item-counts {
|
647 |
position: absolute;
|
648 |
top: 0;
|
381 |
}
|
382 |
}
|
383 |
|
384 |
+
&:not(.lp_lesson) {
|
385 |
.item-actions {
|
386 |
.actions {
|
387 |
.preview-item {
|
642 |
}
|
643 |
}
|
644 |
|
|
|
645 |
.section-item-counts {
|
646 |
position: absolute;
|
647 |
top: 0;
|
assets/scss/admin/_modal-search.scss
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
.modal {
|
2 |
position: fixed;
|
3 |
z-index: 1000000;
|
4 |
width: 100%;
|
@@ -31,14 +31,14 @@
|
|
31 |
overflow: hidden;
|
32 |
@include box-sizing();
|
33 |
}
|
34 |
-
header{
|
35 |
font-size: 16px;
|
36 |
padding: 15px 20px;
|
37 |
border-bottom: 1px solid #DDD;
|
38 |
}
|
39 |
-
article{
|
40 |
-
margin: 20px;
|
41 |
-
input[name="search
|
42 |
width: 100%;
|
43 |
font-size: 16px;
|
44 |
box-sizing: border-box;
|
@@ -50,18 +50,19 @@
|
|
50 |
border-color: #e4e4e4;
|
51 |
font-weight: lighter;
|
52 |
}
|
53 |
-
.search-results{
|
54 |
-
li > label{
|
55 |
display: block;
|
56 |
}
|
57 |
}
|
58 |
}
|
59 |
-
footer{
|
60 |
-
padding:
|
61 |
overflow: hidden;
|
62 |
-
|
|
|
63 |
float: left;
|
64 |
-
a, span{
|
65 |
display: inline-block;
|
66 |
line-height: 26px;
|
67 |
height: 28px;
|
@@ -69,7 +70,7 @@
|
|
69 |
padding: 0 10px 1px;
|
70 |
}
|
71 |
}
|
72 |
-
button{
|
73 |
float: right;
|
74 |
margin-left: 3px;
|
75 |
}
|
@@ -77,7 +78,21 @@
|
|
77 |
}
|
78 |
}
|
79 |
|
80 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
|
82 |
.modal-search {
|
83 |
position: relative;
|
1 |
+
.learn-press-modal {
|
2 |
position: fixed;
|
3 |
z-index: 1000000;
|
4 |
width: 100%;
|
31 |
overflow: hidden;
|
32 |
@include box-sizing();
|
33 |
}
|
34 |
+
header {
|
35 |
font-size: 16px;
|
36 |
padding: 15px 20px;
|
37 |
border-bottom: 1px solid #DDD;
|
38 |
}
|
39 |
+
article {
|
40 |
+
margin: 45px 20px;
|
41 |
+
input[name="search"] {
|
42 |
width: 100%;
|
43 |
font-size: 16px;
|
44 |
box-sizing: border-box;
|
50 |
border-color: #e4e4e4;
|
51 |
font-weight: lighter;
|
52 |
}
|
53 |
+
.search-results {
|
54 |
+
li > label {
|
55 |
display: block;
|
56 |
}
|
57 |
}
|
58 |
}
|
59 |
+
footer {
|
60 |
+
padding: 15px 20px;
|
61 |
overflow: hidden;
|
62 |
+
border: 1px solid #eee;
|
63 |
+
.search-nav {
|
64 |
float: left;
|
65 |
+
a, span {
|
66 |
display: inline-block;
|
67 |
line-height: 26px;
|
68 |
height: 28px;
|
70 |
padding: 0 10px 1px;
|
71 |
}
|
72 |
}
|
73 |
+
button {
|
74 |
float: right;
|
75 |
margin-left: 3px;
|
76 |
}
|
78 |
}
|
79 |
}
|
80 |
|
81 |
+
#modal-search-items.loading {
|
82 |
+
.search-results {
|
83 |
+
&:before {
|
84 |
+
position: absolute;
|
85 |
+
top: 75px;
|
86 |
+
left: 0;
|
87 |
+
right: 0;
|
88 |
+
bottom: 0;
|
89 |
+
display: block;
|
90 |
+
content: '';
|
91 |
+
z-index: 9;
|
92 |
+
background: url('../../images/spinner.gif') no-repeat center center;
|
93 |
+
}
|
94 |
+
}
|
95 |
+
}
|
96 |
|
97 |
.modal-search {
|
98 |
position: relative;
|
assets/scss/admin/_post-types.scss
CHANGED
@@ -67,7 +67,7 @@
|
|
67 |
}
|
68 |
}
|
69 |
|
70 |
-
.
|
71 |
.column-preview {
|
72 |
text-align: left;
|
73 |
float: none;
|
@@ -104,25 +104,23 @@
|
|
104 |
.column-lp-page {
|
105 |
width: 200px;
|
106 |
}
|
107 |
-
.for-plugin-page{
|
108 |
color: #FF0000;
|
109 |
font-size: 11px;
|
110 |
margin: 0;
|
111 |
}
|
112 |
}
|
113 |
|
114 |
-
|
115 |
-
|
116 |
-
#learn-press-box-edit-slug{
|
117 |
background: #FFF;
|
118 |
padding: 10px;
|
119 |
border: 1px solid #DDD;
|
120 |
margin: 0 -10px;
|
121 |
-
overflow:hidden;
|
122 |
color: #b79186;
|
123 |
-
.button{
|
124 |
float: right;
|
125 |
-
|
126 |
-
|
127 |
}
|
128 |
}
|
67 |
}
|
68 |
}
|
69 |
|
70 |
+
.wp-list-table {
|
71 |
.column-preview {
|
72 |
text-align: left;
|
73 |
float: none;
|
104 |
.column-lp-page {
|
105 |
width: 200px;
|
106 |
}
|
107 |
+
.for-plugin-page {
|
108 |
color: #FF0000;
|
109 |
font-size: 11px;
|
110 |
margin: 0;
|
111 |
}
|
112 |
}
|
113 |
|
114 |
+
#learn-press-box-edit-slug {
|
|
|
|
|
115 |
background: #FFF;
|
116 |
padding: 10px;
|
117 |
border: 1px solid #DDD;
|
118 |
margin: 0 -10px;
|
119 |
+
overflow: hidden;
|
120 |
color: #b79186;
|
121 |
+
.button {
|
122 |
float: right;
|
123 |
+
height: 24px;
|
124 |
+
line-height: 22px;
|
125 |
}
|
126 |
}
|
assets/scss/admin/_rtl.scss
ADDED
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.rtl {
|
2 |
+
|
3 |
+
.section-item-counts {
|
4 |
+
left: 41px;
|
5 |
+
right: auto;
|
6 |
+
}
|
7 |
+
|
8 |
+
#admin-editor-lp_course {
|
9 |
+
.lp-course-curriculum {
|
10 |
+
.heading {
|
11 |
+
.status {
|
12 |
+
margin-right: 10px;
|
13 |
+
}
|
14 |
+
}
|
15 |
+
.collapse-sections {
|
16 |
+
left: 0;
|
17 |
+
right: unset !important;
|
18 |
+
}
|
19 |
+
.section-list-items {
|
20 |
+
.section-item {
|
21 |
+
.title {
|
22 |
+
margin-right: 5px;
|
23 |
+
}
|
24 |
+
.item-actions {
|
25 |
+
left: 0;
|
26 |
+
right: unset !important;
|
27 |
+
.actions {
|
28 |
+
.ui-sortable {
|
29 |
+
right: unset !important;
|
30 |
+
left: 0;
|
31 |
+
li {
|
32 |
+
text-align: left;
|
33 |
+
}
|
34 |
+
}
|
35 |
+
}
|
36 |
+
}
|
37 |
+
}
|
38 |
+
}
|
39 |
+
.section-actions {
|
40 |
+
.remove {
|
41 |
+
float: left;
|
42 |
+
}
|
43 |
+
}
|
44 |
+
.actions {
|
45 |
+
right: unset !important;
|
46 |
+
left: 0;
|
47 |
+
}
|
48 |
+
}
|
49 |
+
}
|
50 |
+
|
51 |
+
#admin-editor-lp_quiz {
|
52 |
+
.lp-list-questions {
|
53 |
+
.question-item {
|
54 |
+
.lp-toolbar-btn-dropdown {
|
55 |
+
ul {
|
56 |
+
left: 0;
|
57 |
+
right: unset !important;
|
58 |
+
li {
|
59 |
+
a {
|
60 |
+
text-align: left;
|
61 |
+
}
|
62 |
+
}
|
63 |
+
}
|
64 |
+
}
|
65 |
+
}
|
66 |
+
}
|
67 |
+
.add-new-question{
|
68 |
+
text-align: right;
|
69 |
+
}
|
70 |
+
}
|
71 |
+
|
72 |
+
#lp-modal-choose-items {
|
73 |
+
.header {
|
74 |
+
.preview-title {
|
75 |
+
padding-right: 20px;
|
76 |
+
}
|
77 |
+
.close {
|
78 |
+
left: 0;
|
79 |
+
right: unset;
|
80 |
+
}
|
81 |
+
}
|
82 |
+
}
|
83 |
+
}
|
assets/scss/admin/admin.scss
CHANGED
@@ -16,6 +16,7 @@
|
|
16 |
@import "admin-tools";
|
17 |
@import "../quick-tip";
|
18 |
@import "responsive";
|
|
|
19 |
|
20 |
.button {
|
21 |
&.disabled {
|
16 |
@import "admin-tools";
|
17 |
@import "../quick-tip";
|
18 |
@import "responsive";
|
19 |
+
@import "rtl";
|
20 |
|
21 |
.button {
|
22 |
&.disabled {
|
inc/abstracts/abstract-background-process.php
CHANGED
@@ -34,8 +34,16 @@ if ( ! class_exists( 'LP_Abstract_Background_Process' ) ) {
|
|
34 |
*/
|
35 |
protected $safe = true;
|
36 |
|
|
|
|
|
|
|
37 |
protected $_safe = '';
|
38 |
|
|
|
|
|
|
|
|
|
|
|
39 |
/**
|
40 |
* LP_Abstract_Background_Process constructor.
|
41 |
*/
|
@@ -47,7 +55,7 @@ if ( ! class_exists( 'LP_Abstract_Background_Process' ) ) {
|
|
47 |
*
|
48 |
* @since 3.0.8
|
49 |
*/
|
50 |
-
add_action( 'shutdown', array( $this, 'dispatch_queue' ), 1000 );
|
51 |
}
|
52 |
|
53 |
/**
|
@@ -83,7 +91,7 @@ if ( ! class_exists( 'LP_Abstract_Background_Process' ) ) {
|
|
83 |
// Check to preventing loop
|
84 |
if ( $this->safe ) {
|
85 |
if ( learn_press_is_ajax() || ! empty( $_REQUEST['action'] ) ) {
|
86 |
-
return $this;
|
87 |
}
|
88 |
}
|
89 |
|
@@ -105,9 +113,15 @@ if ( ! class_exists( 'LP_Abstract_Background_Process' ) ) {
|
|
105 |
print_r( $_REQUEST );
|
106 |
$msg = ob_get_clean();
|
107 |
LP_Debug::instance()->add( $msg, 'background-process-task', false, true );
|
|
|
108 |
return false;
|
109 |
}
|
110 |
|
|
|
|
|
|
|
|
|
|
|
111 |
/**
|
112 |
* Array of singleton classes.
|
113 |
*
|
34 |
*/
|
35 |
protected $safe = true;
|
36 |
|
37 |
+
/**
|
38 |
+
* @var string
|
39 |
+
*/
|
40 |
protected $_safe = '';
|
41 |
|
42 |
+
/**
|
43 |
+
* @var string
|
44 |
+
*/
|
45 |
+
protected $prefix = 'lp';
|
46 |
+
|
47 |
/**
|
48 |
* LP_Abstract_Background_Process constructor.
|
49 |
*/
|
55 |
*
|
56 |
* @since 3.0.8
|
57 |
*/
|
58 |
+
//add_action( 'shutdown', array( $this, 'dispatch_queue' ), 1000 );
|
59 |
}
|
60 |
|
61 |
/**
|
91 |
// Check to preventing loop
|
92 |
if ( $this->safe ) {
|
93 |
if ( learn_press_is_ajax() || ! empty( $_REQUEST['action'] ) ) {
|
94 |
+
///return $this;
|
95 |
}
|
96 |
}
|
97 |
|
113 |
print_r( $_REQUEST );
|
114 |
$msg = ob_get_clean();
|
115 |
LP_Debug::instance()->add( $msg, 'background-process-task', false, true );
|
116 |
+
|
117 |
return false;
|
118 |
}
|
119 |
|
120 |
+
public function clear_queue() {
|
121 |
+
$this->data = array();
|
122 |
+
return $this;
|
123 |
+
}
|
124 |
+
|
125 |
/**
|
126 |
* Array of singleton classes.
|
127 |
*
|
inc/abstracts/abstract-object-data.php
CHANGED
@@ -263,7 +263,7 @@ if ( ! class_exists( 'LP_Abstract_Object_Data' ) ) {
|
|
263 |
catch ( Exception $ex ) {
|
264 |
print_r( $key_or_data );
|
265 |
print_r( $ex->getMessage() );
|
266 |
-
die
|
267 |
}
|
268 |
}
|
269 |
}
|
263 |
catch ( Exception $ex ) {
|
264 |
print_r( $key_or_data );
|
265 |
print_r( $ex->getMessage() );
|
266 |
+
die(__FILE__ . '::'.__FUNCTION__);;
|
267 |
}
|
268 |
}
|
269 |
}
|
inc/admin/class-lp-admin-ajax.php
CHANGED
@@ -68,7 +68,7 @@ if ( ! class_exists( 'LP_Admin_Ajax' ) ) {
|
|
68 |
'search_items' => 'modal_search_items',
|
69 |
'update-payment-order',
|
70 |
'update-payment-status',
|
71 |
-
'
|
72 |
|
73 |
// admin editor
|
74 |
'admin_course_editor',
|
@@ -87,7 +87,8 @@ if ( ! class_exists( 'LP_Admin_Ajax' ) ) {
|
|
87 |
'update_email_status',
|
88 |
'create-pages',
|
89 |
'search-authors',
|
90 |
-
'skip-notice-install
|
|
|
91 |
);
|
92 |
foreach ( $ajax_events as $action => $callback ) {
|
93 |
|
@@ -119,8 +120,9 @@ if ( ! class_exists( 'LP_Admin_Ajax' ) ) {
|
|
119 |
|
120 |
if ( $results = $q->get_results() ) {
|
121 |
foreach ( $results as $result ) {
|
122 |
-
$users[] = array(
|
123 |
-
|
|
|
124 |
);
|
125 |
}
|
126 |
}
|
@@ -186,6 +188,48 @@ if ( ! class_exists( 'LP_Admin_Ajax' ) ) {
|
|
186 |
learn_press_send_json_success( $result );
|
187 |
}
|
188 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
189 |
/**
|
190 |
* Duplicate course, lesson, quiz, question.
|
191 |
*
|
@@ -295,16 +339,19 @@ if ( ! class_exists( 'LP_Admin_Ajax' ) ) {
|
|
295 |
/**
|
296 |
* Toggle lesson preview.
|
297 |
*/
|
298 |
-
public static function
|
299 |
-
$id = learn_press_get_request( '
|
300 |
-
if ( get_post_type( $id
|
|
|
|
|
|
|
301 |
$previewable = learn_press_get_request( 'previewable' );
|
302 |
if ( is_null( $previewable ) ) {
|
303 |
$previewable = '0';
|
304 |
}
|
305 |
update_post_meta( $id, '_lp_preview', $previewable );
|
306 |
}
|
307 |
-
die
|
308 |
}
|
309 |
|
310 |
/**
|
@@ -541,7 +588,7 @@ if ( ! class_exists( 'LP_Admin_Ajax' ) ) {
|
|
541 |
$term = stripslashes( $_REQUEST['term'] );
|
542 |
|
543 |
if ( empty( $term ) ) {
|
544 |
-
die
|
545 |
}
|
546 |
|
547 |
$found_customers = array();
|
@@ -597,7 +644,7 @@ if ( ! class_exists( 'LP_Admin_Ajax' ) ) {
|
|
597 |
update_option( 'learn_press_dismiss_notice_' . $context, 'off' );
|
598 |
}
|
599 |
}
|
600 |
-
die
|
601 |
}
|
602 |
|
603 |
public static function plugin_action() {
|
68 |
'search_items' => 'modal_search_items',
|
69 |
'update-payment-order',
|
70 |
'update-payment-status',
|
71 |
+
'toggle_item_preview',
|
72 |
|
73 |
// admin editor
|
74 |
'admin_course_editor',
|
87 |
'update_email_status',
|
88 |
'create-pages',
|
89 |
'search-authors',
|
90 |
+
'skip-notice-install',
|
91 |
+
'join_newsletter'
|
92 |
);
|
93 |
foreach ( $ajax_events as $action => $callback ) {
|
94 |
|
120 |
|
121 |
if ( $results = $q->get_results() ) {
|
122 |
foreach ( $results as $result ) {
|
123 |
+
$users[] = array(
|
124 |
+
'id' => $result->ID,
|
125 |
+
'text' => learn_press_get_profile_display_name( $result->ID )
|
126 |
);
|
127 |
}
|
128 |
}
|
188 |
learn_press_send_json_success( $result );
|
189 |
}
|
190 |
|
191 |
+
/**
|
192 |
+
* Send data to join newsletter or dismiss
|
193 |
+
*
|
194 |
+
* @since 3.0.10
|
195 |
+
*/
|
196 |
+
public static function join_newsletter() {
|
197 |
+
$context = LP_Request::get_string( 'context' );
|
198 |
+
if ( ! $context || $context != 'newsletter' ) {
|
199 |
+
update_option( 'learn-press-dismissed-newsletter-button', 1 );
|
200 |
+
learn_press_send_json_success( __( 'Dismissed!', 'learnpress' ) );
|
201 |
+
}
|
202 |
+
$user = learn_press_get_current_user();
|
203 |
+
if ( ! $user || $user->get_email() == '' ) {
|
204 |
+
learn_press_send_json_error( __( 'Fail while joining newsletter! Please try again!', 'learnpress' ) );
|
205 |
+
}
|
206 |
+
$url = 'https://thimpress.com/mailster/subscribe';
|
207 |
+
$response = wp_remote_post( $url, array(
|
208 |
+
'method' => 'POST',
|
209 |
+
'timeout' => 45,
|
210 |
+
'redirection' => 5,
|
211 |
+
'httpversion' => '1.0',
|
212 |
+
'blocking' => true,
|
213 |
+
'headers' => array(),
|
214 |
+
'body' => array(
|
215 |
+
'_referer' => 'extern',
|
216 |
+
'_nonce' => '4b266caf7b',
|
217 |
+
'formid' => '19',
|
218 |
+
'email' => $user->get_email(),
|
219 |
+
'website' => site_url(),
|
220 |
+
),
|
221 |
+
'cookies' => array()
|
222 |
+
)
|
223 |
+
);
|
224 |
+
if ( is_wp_error( $response ) ) {
|
225 |
+
$error_message = $response->get_error_message();
|
226 |
+
learn_press_send_json_error( __( 'Something went wrong: ', 'learnpress' ) . $error_message );
|
227 |
+
} else {
|
228 |
+
update_option( 'learn-press-dismissed-newsletter-button', 1 );
|
229 |
+
learn_press_send_json_success( __( 'Thank you for subscribing! Please check and click the confirmation link from the email we\'ve just sent to your mail box.', 'learnpress' ) );
|
230 |
+
}
|
231 |
+
}
|
232 |
+
|
233 |
/**
|
234 |
* Duplicate course, lesson, quiz, question.
|
235 |
*
|
339 |
/**
|
340 |
* Toggle lesson preview.
|
341 |
*/
|
342 |
+
public static function toggle_item_preview() {
|
343 |
+
$id = learn_press_get_request( 'item_id' );
|
344 |
+
if ( in_array( get_post_type( $id ), apply_filters( 'learn-press/reviewable-post-types', array(
|
345 |
+
'lp_lesson',
|
346 |
+
'lp_quiz'
|
347 |
+
) ) ) && wp_verify_nonce( learn_press_get_request( 'nonce' ), 'learn-press-toggle-item-preview' ) ) {
|
348 |
$previewable = learn_press_get_request( 'previewable' );
|
349 |
if ( is_null( $previewable ) ) {
|
350 |
$previewable = '0';
|
351 |
}
|
352 |
update_post_meta( $id, '_lp_preview', $previewable );
|
353 |
}
|
354 |
+
die(__FILE__ . '::'.__FUNCTION__);;
|
355 |
}
|
356 |
|
357 |
/**
|
588 |
$term = stripslashes( $_REQUEST['term'] );
|
589 |
|
590 |
if ( empty( $term ) ) {
|
591 |
+
die(__FILE__ . '::'.__FUNCTION__);;
|
592 |
}
|
593 |
|
594 |
$found_customers = array();
|
644 |
update_option( 'learn_press_dismiss_notice_' . $context, 'off' );
|
645 |
}
|
646 |
}
|
647 |
+
die(__FILE__ . '::'.__FUNCTION__);;
|
648 |
}
|
649 |
|
650 |
public static function plugin_action() {
|
inc/admin/class-lp-admin-assets.php
CHANGED
@@ -54,13 +54,15 @@ class LP_Admin_Assets extends LP_Abstract_Assets {
|
|
54 |
* @return mixed
|
55 |
*/
|
56 |
protected function _get_scripts() {
|
|
|
|
|
57 |
return apply_filters(
|
58 |
'learn-press/admin-default-scripts',
|
59 |
array(
|
60 |
'select2' => LP_Admin_Assets::url( '../inc/libraries/meta-box/js/select2/select2.min.js' ),
|
61 |
'lp-vue' => array(
|
62 |
-
'url' => self::url( 'js/vendor/vue.js' ),
|
63 |
-
'ver' => '2.
|
64 |
),
|
65 |
'lp-vuex' => array(
|
66 |
'url' => self::url( 'js/vendor/vuex.2.3.1.js' ),
|
54 |
* @return mixed
|
55 |
*/
|
56 |
protected function _get_scripts() {
|
57 |
+
$min = defined( 'LP_DEBUG_DEV' ) && LP_DEBUG_DEV ? '' : '.min';
|
58 |
+
|
59 |
return apply_filters(
|
60 |
'learn-press/admin-default-scripts',
|
61 |
array(
|
62 |
'select2' => LP_Admin_Assets::url( '../inc/libraries/meta-box/js/select2/select2.min.js' ),
|
63 |
'lp-vue' => array(
|
64 |
+
'url' => self::url( 'js/vendor/vue' . $min . '.js' ),
|
65 |
+
'ver' => '2.5.16'
|
66 |
),
|
67 |
'lp-vuex' => array(
|
68 |
'url' => self::url( 'js/vendor/vuex.2.3.1.js' ),
|
inc/admin/class-lp-admin.php
CHANGED
@@ -49,6 +49,19 @@ if ( ! class_exists( 'LP_Admin' ) ) {
|
|
49 |
add_filter( 'views_plugins', array( $this, 'views_plugins' ) );
|
50 |
|
51 |
LP_Request::register( 'lp-action', array( $this, 'filter_users' ) );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
}
|
53 |
|
54 |
public function add_empty_page( $pages, $args ) {
|
@@ -87,21 +100,9 @@ if ( ! class_exists( 'LP_Admin' ) ) {
|
|
87 |
}
|
88 |
|
89 |
if ( $s && false !== stripos( $s, 'learnpress' ) ) {
|
90 |
-
$views['learnpress'] = sprintf(
|
91 |
-
'<a href="%s" class="current">%s <span class="count">(%d/%d)</span></a>',
|
92 |
-
admin_url( 'plugins.php?s=learnpress' ),
|
93 |
-
__( 'LearnPress', 'learnpress' ),
|
94 |
-
$count_activated,
|
95 |
-
sizeof( $search )
|
96 |
-
);
|
97 |
} else {
|
98 |
-
$views['learnpress'] = sprintf(
|
99 |
-
'<a href="%s">%s <span class="count">(%d/%d)</span></a>',
|
100 |
-
admin_url( 'plugins.php?s=learnpress' ),
|
101 |
-
__( 'LearnPress', 'learnpress' ),
|
102 |
-
$count_activated,
|
103 |
-
sizeof( $search )
|
104 |
-
);
|
105 |
}
|
106 |
|
107 |
return $views;
|
@@ -326,7 +327,7 @@ if ( ! class_exists( 'LP_Admin' ) ) {
|
|
326 |
* Display the page is assigned to LP Page.
|
327 |
*
|
328 |
* @param string $column_name
|
329 |
-
* @param int
|
330 |
*/
|
331 |
public function page_columns_content( $column_name, $post ) {
|
332 |
$pages = $this->_get_static_pages();
|
@@ -358,11 +359,7 @@ if ( ! class_exists( 'LP_Admin' ) ) {
|
|
358 |
if ( $pages = $this->_get_static_pages( 'learnpress' ) ) {
|
359 |
$text = sprintf( __( 'LearnPress Pages (%d)', 'learnpress' ), sizeof( $pages ) );
|
360 |
if ( 'yes' !== LP_Request::get( 'lp-page' ) ) {
|
361 |
-
$actions['lp-page'] = sprintf(
|
362 |
-
'<a href="%s">%s</a>',
|
363 |
-
admin_url( 'edit.php?post_type=page&lp-page=yes' ),
|
364 |
-
$text
|
365 |
-
);
|
366 |
} else {
|
367 |
$actions['lp-page'] = $text;
|
368 |
}
|
@@ -389,15 +386,18 @@ if ( ! class_exists( 'LP_Admin' ) ) {
|
|
389 |
/**
|
390 |
* Add actions to users list
|
391 |
*
|
392 |
-
* @param array
|
393 |
* @param WP_User $user
|
394 |
*
|
395 |
* @return mixed
|
396 |
*/
|
397 |
public function user_row_actions( $actions, $user ) {
|
398 |
-
|
|
|
|
|
399 |
if ( in_array( $user->ID, $pending_request ) ) {
|
400 |
-
$actions['accept']
|
|
|
401 |
}
|
402 |
}
|
403 |
|
@@ -410,21 +410,31 @@ if ( ! class_exists( 'LP_Admin' ) ) {
|
|
410 |
* @param string $action
|
411 |
*/
|
412 |
public function filter_users( $action ) {
|
413 |
-
|
414 |
-
|
415 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
416 |
$be_teacher = new WP_User( $user_id );
|
417 |
$be_teacher->set_role( LP_TEACHER_ROLE );
|
418 |
-
delete_user_meta( $user_id, '_requested_become_teacher' );
|
419 |
-
|
420 |
-
do_action( 'learn-press/user-become-a-teacher', $user_id );
|
421 |
|
|
|
422 |
wp_redirect( admin_url( 'users.php?lp-action=accepted-request&user_id=' . $user_id ) );
|
423 |
exit();
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
|
|
428 |
}
|
429 |
}
|
430 |
|
@@ -468,11 +478,21 @@ if ( ! class_exists( 'LP_Admin' ) ) {
|
|
468 |
learn_press_admin_view( 'setup/notice-setup' );
|
469 |
}
|
470 |
|
471 |
-
|
|
|
|
|
|
|
|
|
|
|
472 |
if ( ! current_user_can( 'promote_user', $user_id ) ) {
|
473 |
wp_die( __( 'Sorry, you are not allowed to edit this user.' ) );
|
474 |
-
}
|
475 |
-
|
|
|
|
|
|
|
|
|
|
|
476 |
}
|
477 |
|
478 |
if ( LP()->session->get( 'do-update-learnpress' ) ) {
|
@@ -572,19 +592,16 @@ if ( ! class_exists( 'LP_Admin' ) ) {
|
|
572 |
}
|
573 |
|
574 |
$missing_pages = array();
|
575 |
-
$pages = apply_filters(
|
576 |
-
'
|
577 |
-
|
578 |
-
'
|
579 |
-
|
580 |
-
|
581 |
-
),
|
582 |
-
'
|
583 |
-
'title' => __( 'Checkout Page', 'learnpress' ),
|
584 |
-
'settings' => admin_url( 'admin.php?page=learn-press-settings&tab=payments' )
|
585 |
-
)
|
586 |
)
|
587 |
-
);
|
588 |
|
589 |
foreach ( $pages as $id => $page ) {
|
590 |
|
49 |
add_filter( 'views_plugins', array( $this, 'views_plugins' ) );
|
50 |
|
51 |
LP_Request::register( 'lp-action', array( $this, 'filter_users' ) );
|
52 |
+
|
53 |
+
add_filter( 'learn-press/modal-search-items-args', array( $this, 'filter_modal_search' ) );
|
54 |
+
}
|
55 |
+
|
56 |
+
/**
|
57 |
+
* @param $options
|
58 |
+
*
|
59 |
+
* @return array
|
60 |
+
*/
|
61 |
+
public function filter_modal_search( $options ) {
|
62 |
+
$options = wp_parse_args( array( 'title' => __( 'Available Courses', 'learnpress' ) ), $options );
|
63 |
+
|
64 |
+
return $options;
|
65 |
}
|
66 |
|
67 |
public function add_empty_page( $pages, $args ) {
|
100 |
}
|
101 |
|
102 |
if ( $s && false !== stripos( $s, 'learnpress' ) ) {
|
103 |
+
$views['learnpress'] = sprintf( '<a href="%s" class="current">%s <span class="count">(%d/%d)</span></a>', admin_url( 'plugins.php?s=learnpress' ), __( 'LearnPress', 'learnpress' ), $count_activated, sizeof( $search ) );
|
|
|
|
|
|
|
|
|
|
|
|
|
104 |
} else {
|
105 |
+
$views['learnpress'] = sprintf( '<a href="%s">%s <span class="count">(%d/%d)</span></a>', admin_url( 'plugins.php?s=learnpress' ), __( 'LearnPress', 'learnpress' ), $count_activated, sizeof( $search ) );
|
|
|
|
|
|
|
|
|
|
|
|
|
106 |
}
|
107 |
|
108 |
return $views;
|
327 |
* Display the page is assigned to LP Page.
|
328 |
*
|
329 |
* @param string $column_name
|
330 |
+
* @param int $post
|
331 |
*/
|
332 |
public function page_columns_content( $column_name, $post ) {
|
333 |
$pages = $this->_get_static_pages();
|
359 |
if ( $pages = $this->_get_static_pages( 'learnpress' ) ) {
|
360 |
$text = sprintf( __( 'LearnPress Pages (%d)', 'learnpress' ), sizeof( $pages ) );
|
361 |
if ( 'yes' !== LP_Request::get( 'lp-page' ) ) {
|
362 |
+
$actions['lp-page'] = sprintf( '<a href="%s">%s</a>', admin_url( 'edit.php?post_type=page&lp-page=yes' ), $text );
|
|
|
|
|
|
|
|
|
363 |
} else {
|
364 |
$actions['lp-page'] = $text;
|
365 |
}
|
386 |
/**
|
387 |
* Add actions to users list
|
388 |
*
|
389 |
+
* @param array $actions
|
390 |
* @param WP_User $user
|
391 |
*
|
392 |
* @return mixed
|
393 |
*/
|
394 |
public function user_row_actions( $actions, $user ) {
|
395 |
+
$pending_request = LP_User_Factory::get_pending_requests();
|
396 |
+
if ( LP_Request::get_string( 'lp-action' ) == 'pending-request' && $pending_request ) {
|
397 |
+
$actions = array();
|
398 |
if ( in_array( $user->ID, $pending_request ) ) {
|
399 |
+
$actions['accept'] = sprintf( '<a href="' . admin_url( 'users.php?lp-action=accept-request&user_id=' . $user->ID ) . '">%s</a>', _x( 'Accept', 'pending-request', 'learnpress' ) );
|
400 |
+
$actions['delete deny'] = sprintf( '<a class="submitdelete" href="' . admin_url( 'users.php?lp-action=deny-request&user_id=' . $user->ID ) . '">%s</a>', _x( 'Deny', 'pending-request', 'learnpress' ) );
|
401 |
}
|
402 |
}
|
403 |
|
410 |
* @param string $action
|
411 |
*/
|
412 |
public function filter_users( $action ) {
|
413 |
+
$user_id = LP_Request::get_int( 'user_id' );
|
414 |
+
|
415 |
+
if ( ! $user_id || ! get_user_by( 'id', $user_id ) ) {
|
416 |
+
return;
|
417 |
+
}
|
418 |
+
|
419 |
+
$user_data = get_userdata( $user_id );
|
420 |
+
|
421 |
+
if ( in_array( $action, array( 'accept-request', 'deny-request' ) ) ) {
|
422 |
+
|
423 |
+
delete_user_meta( $user_id, '_requested_become_teacher' );
|
424 |
+
|
425 |
+
switch ( $action ) {
|
426 |
+
case 'accept-request':
|
427 |
$be_teacher = new WP_User( $user_id );
|
428 |
$be_teacher->set_role( LP_TEACHER_ROLE );
|
|
|
|
|
|
|
429 |
|
430 |
+
do_action( 'learn-press/user-become-a-teacher-accept', $user_data->user_email );
|
431 |
wp_redirect( admin_url( 'users.php?lp-action=accepted-request&user_id=' . $user_id ) );
|
432 |
exit();
|
433 |
+
case 'deny-request':
|
434 |
+
do_action( 'learn-press/user-become-a-teacher-deny', $user_data->user_email );
|
435 |
+
wp_redirect( admin_url( 'users.php?lp-action=denied-request&user_id=' . $user_id ) );
|
436 |
+
exit();
|
437 |
+
}
|
438 |
}
|
439 |
}
|
440 |
|
478 |
learn_press_admin_view( 'setup/notice-setup' );
|
479 |
}
|
480 |
|
481 |
+
$action = LP_Request::get( 'lp-action' );
|
482 |
+
|
483 |
+
if ( ( in_array( $action, array(
|
484 |
+
'accepted-request',
|
485 |
+
'denied-request'
|
486 |
+
) ) ) && ( $user_id = LP_Request::get_int( 'user_id' ) ) && get_user_by( 'id', $user_id ) ) {
|
487 |
if ( ! current_user_can( 'promote_user', $user_id ) ) {
|
488 |
wp_die( __( 'Sorry, you are not allowed to edit this user.' ) );
|
489 |
+
} ?>
|
490 |
+
|
491 |
+
<div class="updated notice">
|
492 |
+
<p><?php echo sprintf( __( 'User has %s to become a teacher.', 'learnpress' ), $action == 'accepted-request' ? 'accepted' : 'denied' ); ?></p>
|
493 |
+
</div>
|
494 |
+
|
495 |
+
<?php
|
496 |
}
|
497 |
|
498 |
if ( LP()->session->get( 'do-update-learnpress' ) ) {
|
592 |
}
|
593 |
|
594 |
$missing_pages = array();
|
595 |
+
$pages = apply_filters( 'learn-press/required-pages', array(
|
596 |
+
'profile' => array(
|
597 |
+
'title' => __( 'Profile Page', 'learnpress' ),
|
598 |
+
'settings' => admin_url( 'admin.php?page=learn-press-settings&tab=profile' )
|
599 |
+
),
|
600 |
+
'checkout' => array(
|
601 |
+
'title' => __( 'Checkout Page', 'learnpress' ),
|
602 |
+
'settings' => admin_url( 'admin.php?page=learn-press-settings&tab=payments' )
|
|
|
|
|
|
|
603 |
)
|
604 |
+
) );
|
605 |
|
606 |
foreach ( $pages as $id => $page ) {
|
607 |
|
inc/admin/class-lp-install-sample-data.php
CHANGED
@@ -135,8 +135,7 @@ class LP_Install_Sample_Data {
|
|
135 |
|
136 |
LP_Debug::commitTransaction();
|
137 |
|
138 |
-
}
|
139 |
-
catch ( Exception $ex ) {
|
140 |
LP_Debug::rollbackTransaction();
|
141 |
|
142 |
echo $ex->getMessage();
|
@@ -177,8 +176,7 @@ class LP_Install_Sample_Data {
|
|
177 |
|
178 |
$this->_delete_post( $post->ID );
|
179 |
}
|
180 |
-
}
|
181 |
-
catch ( Exception $ex ) {
|
182 |
LP_Debug::rollbackTransaction();
|
183 |
echo "Error: " . $ex->getMessage();
|
184 |
}
|
@@ -352,7 +350,7 @@ class LP_Install_Sample_Data {
|
|
352 |
* Create section.
|
353 |
*
|
354 |
* @param string $name
|
355 |
-
* @param int
|
356 |
*
|
357 |
* @return int
|
358 |
*/
|
@@ -413,8 +411,8 @@ class LP_Install_Sample_Data {
|
|
413 |
* Create lesson.
|
414 |
*
|
415 |
* @param string $name
|
416 |
-
* @param int
|
417 |
-
* @param int
|
418 |
*
|
419 |
* @return int|WP_Error
|
420 |
*/
|
@@ -454,8 +452,8 @@ class LP_Install_Sample_Data {
|
|
454 |
* Create quiz.
|
455 |
*
|
456 |
* @param string $name
|
457 |
-
* @param int
|
458 |
-
* @param int
|
459 |
*
|
460 |
* @return int|WP_Error
|
461 |
*/
|
@@ -474,16 +472,19 @@ class LP_Install_Sample_Data {
|
|
474 |
if ( $quiz_id ) {
|
475 |
|
476 |
$metas = array(
|
477 |
-
'
|
478 |
-
'
|
479 |
-
'
|
480 |
-
'
|
481 |
-
'
|
482 |
-
'
|
483 |
-
'
|
484 |
-
'
|
485 |
-
'
|
486 |
-
'
|
|
|
|
|
|
|
487 |
);
|
488 |
|
489 |
foreach ( $metas as $key => $value ) {
|
@@ -557,7 +558,7 @@ class LP_Install_Sample_Data {
|
|
557 |
/**
|
558 |
* Create answers for a question.
|
559 |
*
|
560 |
-
* @param int
|
561 |
* @param string $type
|
562 |
*/
|
563 |
protected function create_question_answers( $question_id, $type ) {
|
135 |
|
136 |
LP_Debug::commitTransaction();
|
137 |
|
138 |
+
} catch ( Exception $ex ) {
|
|
|
139 |
LP_Debug::rollbackTransaction();
|
140 |
|
141 |
echo $ex->getMessage();
|
176 |
|
177 |
$this->_delete_post( $post->ID );
|
178 |
}
|
179 |
+
} catch ( Exception $ex ) {
|
|
|
180 |
LP_Debug::rollbackTransaction();
|
181 |
echo "Error: " . $ex->getMessage();
|
182 |
}
|
350 |
* Create section.
|
351 |
*
|
352 |
* @param string $name
|
353 |
+
* @param int $course_id
|
354 |
*
|
355 |
* @return int
|
356 |
*/
|
411 |
* Create lesson.
|
412 |
*
|
413 |
* @param string $name
|
414 |
+
* @param int $section_id
|
415 |
+
* @param int $course_id
|
416 |
*
|
417 |
* @return int|WP_Error
|
418 |
*/
|
452 |
* Create quiz.
|
453 |
*
|
454 |
* @param string $name
|
455 |
+
* @param int $section_id
|
456 |
+
* @param int $course_id
|
457 |
*
|
458 |
* @return int|WP_Error
|
459 |
*/
|
472 |
if ( $quiz_id ) {
|
473 |
|
474 |
$metas = array(
|
475 |
+
'_lp_preview' => 'no',
|
476 |
+
'_lp_minus_points' => 0,
|
477 |
+
'_lp_minus_skip_questions' => 'no',
|
478 |
+
'_lp_show_hide_question' => 'no',
|
479 |
+
'_lp_review_questions' => 'yes',
|
480 |
+
'_lp_show_result' => 'yes',
|
481 |
+
'_lp_duration' => ( rand( 1, 5 ) * 10 ) . ' ' . 'minute',
|
482 |
+
'_lp_passing_grade' => rand( 5, 9 ) * 10,
|
483 |
+
'_lp_retake_count' => rand( 0, 10 ),
|
484 |
+
'_lp_archive_history' => 'no',
|
485 |
+
'_lp_show_check_answer' => '0',
|
486 |
+
'_lp_show_hint' => '0',
|
487 |
+
'_lp_sample_data' => 'yes'
|
488 |
);
|
489 |
|
490 |
foreach ( $metas as $key => $value ) {
|
558 |
/**
|
559 |
* Create answers for a question.
|
560 |
*
|
561 |
+
* @param int $question_id
|
562 |
* @param string $type
|
563 |
*/
|
564 |
protected function create_question_answers( $question_id, $type ) {
|
inc/admin/class-lp-modal-search-items.php
CHANGED
@@ -47,20 +47,21 @@ if ( ! class_exists( 'LP_Modal_Search_Items' ) ) {
|
|
47 |
*/
|
48 |
public function __construct( $options = '' ) {
|
49 |
add_action( 'admin_print_footer_scripts', array( $this, 'js_template' ) );
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
|
|
64 |
);
|
65 |
|
66 |
if ( is_string( $this->_options['exclude'] ) ) {
|
@@ -265,7 +266,7 @@ if ( ! class_exists( 'LP_Modal_Search_Items' ) ) {
|
|
265 |
}
|
266 |
|
267 |
/**
|
268 |
-
* @param array
|
269 |
* @param string $context
|
270 |
* @param string $context_id
|
271 |
*
|
@@ -288,7 +289,7 @@ if ( ! class_exists( 'LP_Modal_Search_Items' ) ) {
|
|
288 |
* @param $exclude
|
289 |
* @param $type
|
290 |
* @param string $context
|
291 |
-
* @param null
|
292 |
*
|
293 |
* @return array
|
294 |
*/
|
47 |
*/
|
48 |
public function __construct( $options = '' ) {
|
49 |
add_action( 'admin_print_footer_scripts', array( $this, 'js_template' ) );
|
50 |
+
|
51 |
+
$this->_options = apply_filters( 'learn-press/modal-search-items-args', wp_parse_args(
|
52 |
+
$options,
|
53 |
+
array(
|
54 |
+
'type' => '',
|
55 |
+
'context' => '',
|
56 |
+
'context_id' => '',
|
57 |
+
'exclude' => '',
|
58 |
+
'term' => '',
|
59 |
+
'add_button' => __( 'Add', 'learnpress' ),
|
60 |
+
'close_button' => __( 'Close', 'learnpress' ),
|
61 |
+
'title' => __( 'Search items', 'learnpress' ),
|
62 |
+
'limit' => 10,
|
63 |
+
'paged' => 1
|
64 |
+
) )
|
65 |
);
|
66 |
|
67 |
if ( is_string( $this->_options['exclude'] ) ) {
|
266 |
}
|
267 |
|
268 |
/**
|
269 |
+
* @param array $args
|
270 |
* @param string $context
|
271 |
* @param string $context_id
|
272 |
*
|
289 |
* @param $exclude
|
290 |
* @param $type
|
291 |
* @param string $context
|
292 |
+
* @param null $context_id
|
293 |
*
|
294 |
* @return array
|
295 |
*/
|
inc/admin/helpers/class-lp-plugins-helper.php
CHANGED
@@ -138,16 +138,7 @@ class LP_Plugins_Helper {
|
|
138 |
* @return mixed
|
139 |
*/
|
140 |
public static function get_plugins_from_wp( $args = null ) {
|
141 |
-
|
142 |
-
if ( ! ( $plugins = get_transient( 'lp_plugins_wp' ) ) ) {
|
143 |
-
LP()->background('query-items')->push_to_queue(
|
144 |
-
array(
|
145 |
-
'callback' => array( 'LP_Background_Query_Items', 'query_free_addons' )
|
146 |
-
)
|
147 |
-
);
|
148 |
-
}
|
149 |
-
|
150 |
-
return $plugins;
|
151 |
}
|
152 |
|
153 |
/**
|
@@ -158,16 +149,7 @@ class LP_Plugins_Helper {
|
|
158 |
* @return mixed
|
159 |
*/
|
160 |
public static function get_premium_plugins() {
|
161 |
-
|
162 |
-
if ( ! ( $plugins = get_transient( 'lp_plugins_tp' ) ) ) {
|
163 |
-
LP()->background('query-items')->push_to_queue(
|
164 |
-
array(
|
165 |
-
'callback' => array( 'LP_Background_Query_Items', 'query_premium_addons' )
|
166 |
-
)
|
167 |
-
);
|
168 |
-
}
|
169 |
-
|
170 |
-
return $plugins;
|
171 |
}
|
172 |
|
173 |
/**
|
@@ -180,14 +162,10 @@ class LP_Plugins_Helper {
|
|
180 |
*/
|
181 |
public static function get_related_themes( $type = '', $args = array() ) {
|
182 |
|
183 |
-
|
184 |
|
185 |
-
if ( !
|
186 |
-
|
187 |
-
array(
|
188 |
-
'callback' => array( 'LP_Background_Query_Items', 'get_related_themes' )
|
189 |
-
)
|
190 |
-
);
|
191 |
}
|
192 |
|
193 |
if ( $type && self::$themes && array_key_exists( $type, self::$themes ) ) {
|
@@ -206,6 +184,7 @@ class LP_Plugins_Helper {
|
|
206 |
$themes = self::$themes;
|
207 |
}
|
208 |
|
|
|
209 |
return $themes;
|
210 |
}
|
211 |
|
@@ -426,11 +405,15 @@ class LP_Plugins_Helper {
|
|
426 |
require_once( LP_PLUGIN_PATH . '/inc/admin/class-lp-upgrader.php' );
|
427 |
add_filter( 'extra_plugin_headers', array( __CLASS__, 'add_on_header' ) );
|
428 |
|
429 |
-
|
430 |
-
|
431 |
-
|
|
|
|
|
|
|
|
|
432 |
}
|
433 |
}
|
434 |
|
435 |
// Init hooks, etc...
|
436 |
-
LP_Plugins_Helper
|
138 |
* @return mixed
|
139 |
*/
|
140 |
public static function get_plugins_from_wp( $args = null ) {
|
141 |
+
return LP_Background_Query_Items::instance()->get_plugins_from_wp();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
142 |
}
|
143 |
|
144 |
/**
|
149 |
* @return mixed
|
150 |
*/
|
151 |
public static function get_premium_plugins() {
|
152 |
+
return LP_Background_Query_Items::instance()->get_plugins_from_tp();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
153 |
}
|
154 |
|
155 |
/**
|
162 |
*/
|
163 |
public static function get_related_themes( $type = '', $args = array() ) {
|
164 |
|
165 |
+
$themes = array_filter( self::$themes );
|
166 |
|
167 |
+
if ( ! $themes ) {
|
168 |
+
self::$themes = LP_Background_Query_Items::instance()->get_related_themes();
|
|
|
|
|
|
|
|
|
169 |
}
|
170 |
|
171 |
if ( $type && self::$themes && array_key_exists( $type, self::$themes ) ) {
|
184 |
$themes = self::$themes;
|
185 |
}
|
186 |
|
187 |
+
|
188 |
return $themes;
|
189 |
}
|
190 |
|
405 |
require_once( LP_PLUGIN_PATH . '/inc/admin/class-lp-upgrader.php' );
|
406 |
add_filter( 'extra_plugin_headers', array( __CLASS__, 'add_on_header' ) );
|
407 |
|
408 |
+
if ( ( LP_Request::get( 'force-check-update' ) !== 'yes' ) || ! wp_verify_nonce( LP_Request::get( '_wpnonce' ), 'lp-check-updates' ) ) {
|
409 |
+
return;
|
410 |
+
}
|
411 |
+
|
412 |
+
LP_Background_Query_Items::instance()->force_update();
|
413 |
+
wp_redirect( remove_query_arg( array( 'force-check-update', '_wpnonce' ) ) );
|
414 |
+
exit();
|
415 |
}
|
416 |
}
|
417 |
|
418 |
// Init hooks, etc...
|
419 |
+
add_action( 'init', array( 'LP_Plugins_Helper', 'init' ) );
|
inc/admin/lp-admin-functions.php
CHANGED
@@ -2231,7 +2231,7 @@ function learn_press_preview_post_link( $link, $post ) {
|
|
2231 |
$items = learn_press_course_get_support_item_types( true );
|
2232 |
|
2233 |
if ( in_array( $post->post_type, $items ) ) {
|
2234 |
-
$link = learn_press_course_item_type_link( $link, $post );
|
2235 |
}
|
2236 |
|
2237 |
return $link;
|
2231 |
$items = learn_press_course_get_support_item_types( true );
|
2232 |
|
2233 |
if ( in_array( $post->post_type, $items ) ) {
|
2234 |
+
$link = learn_press_course_item_type_link( $link, $post, false, false );
|
2235 |
}
|
2236 |
|
2237 |
return $link;
|
inc/admin/settings/class-lp-settings-payments.php
CHANGED
@@ -110,6 +110,12 @@ class LP_Settings_Payments extends LP_Abstract_Settings_Page {
|
|
110 |
'default' => 'yes',
|
111 |
'type' => 'yes-no',
|
112 |
'desc' => __( 'Enable registration form in checkout page.', 'learnpress' )
|
|
|
|
|
|
|
|
|
|
|
|
|
113 |
)
|
114 |
)
|
115 |
),
|
110 |
'default' => 'yes',
|
111 |
'type' => 'yes-no',
|
112 |
'desc' => __( 'Enable registration form in checkout page.', 'learnpress' )
|
113 |
+
),
|
114 |
+
array(
|
115 |
+
'title' => __( 'Terms & conditions page', 'learnpress' ),
|
116 |
+
'id' => 'term_conditions_page_id',
|
117 |
+
'default' => '',
|
118 |
+
'type' => 'pages-dropdown'
|
119 |
)
|
120 |
)
|
121 |
),
|
inc/admin/settings/email-groups/class-lp-settings-become-teacher-emails.php
CHANGED
@@ -12,7 +12,8 @@ class LP_Settings_Become_Teacher_Emails extends LP_Settings_Emails_Group {
|
|
12 |
$this->group_id = 'become-teacher-emails';
|
13 |
$this->items = array(
|
14 |
'become-an-instructor',
|
15 |
-
'instructor-accepted
|
|
|
16 |
);
|
17 |
|
18 |
parent::__construct();
|
12 |
$this->group_id = 'become-teacher-emails';
|
13 |
$this->items = array(
|
14 |
'become-an-instructor',
|
15 |
+
'instructor-accepted',
|
16 |
+
'instructor-denied',
|
17 |
);
|
18 |
|
19 |
parent::__construct();
|
inc/admin/settings/email-groups/class-lp-settings-completed-order-emails.php
CHANGED
@@ -11,7 +11,7 @@ class LP_Settings_Completed_Order_Emails extends LP_Settings_Emails_Group {
|
|
11 |
public function __construct() {
|
12 |
$this->group_id = 'completed-order-emails';
|
13 |
$this->items = array(
|
14 |
-
|
15 |
'completed-order-user',
|
16 |
'completed-order-guest'
|
17 |
);
|
11 |
public function __construct() {
|
12 |
$this->group_id = 'completed-order-emails';
|
13 |
$this->items = array(
|
14 |
+
'completed-order-admin',
|
15 |
'completed-order-user',
|
16 |
'completed-order-guest'
|
17 |
);
|
inc/admin/sub-menus/class-lp-submenu-addons.php
CHANGED
@@ -24,13 +24,15 @@ class LP_Submenu_Addons extends LP_Abstract_Submenu {
|
|
24 |
}
|
25 |
|
26 |
public function add_ons_tabs() {
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
$this->tabs = apply_filters(
|
28 |
'learn-press/admin/page-addons-tabs',
|
29 |
-
|
30 |
-
'installed' => sprintf( __( 'Installed (%d)', 'learnpress' ), LP_Plugins_Helper::count_plugins( 'installed' ) ),
|
31 |
-
'more' => sprintf( __( 'Get more (%d)', 'learnpress' ), LP_Plugins_Helper::count_plugins() ),
|
32 |
-
'themes' => sprintf( __( 'Themes (%d)', 'learnpress' ), LP_Plugins_Helper::count_themes() )
|
33 |
-
)
|
34 |
);
|
35 |
}
|
36 |
|
24 |
}
|
25 |
|
26 |
public function add_ons_tabs() {
|
27 |
+
$tabs = array(
|
28 |
+
'installed' => sprintf( __( 'Installed (%d)', 'learnpress' ), LP_Plugins_Helper::count_plugins( 'installed' ) ),
|
29 |
+
'more' => sprintf( __( 'Get more (%d)', 'learnpress' ), LP_Plugins_Helper::count_plugins() ),
|
30 |
+
'themes' => sprintf( __( 'Themes (%d)', 'learnpress' ), LP_Plugins_Helper::count_themes() )
|
31 |
+
);
|
32 |
+
|
33 |
$this->tabs = apply_filters(
|
34 |
'learn-press/admin/page-addons-tabs',
|
35 |
+
$tabs
|
|
|
|
|
|
|
|
|
36 |
);
|
37 |
}
|
38 |
|
inc/admin/sub-menus/class-lp-submenu-statistics.php
CHANGED
@@ -203,9 +203,15 @@ class LP_Submenu_Statistics extends LP_Abstract_Submenu {
|
|
203 |
*
|
204 |
*/
|
205 |
public function scripts() {
|
|
|
|
|
|
|
206 |
wp_enqueue_style( 'learn-press-statistic', LP_CSS_URL . 'admin/statistic.css' );
|
207 |
|
208 |
-
wp_enqueue_script( 'learn-press-chart', LP_JS_URL . 'vendor/chart.min.js', array(
|
|
|
|
|
|
|
209 |
wp_enqueue_script( 'learn-press-statistic', LP_JS_URL . 'admin/statistic.js' );
|
210 |
}
|
211 |
|
203 |
*
|
204 |
*/
|
205 |
public function scripts() {
|
206 |
+
if ( LP_Request::get( 'page' ) !== 'learn-press-statistics' ) {
|
207 |
+
return;
|
208 |
+
}
|
209 |
wp_enqueue_style( 'learn-press-statistic', LP_CSS_URL . 'admin/statistic.css' );
|
210 |
|
211 |
+
wp_enqueue_script( 'learn-press-chart', LP_JS_URL . 'vendor/chart.min.js', array(
|
212 |
+
'jquery',
|
213 |
+
'jquery-ui-datepicker'
|
214 |
+
) );
|
215 |
wp_enqueue_script( 'learn-press-statistic', LP_JS_URL . 'admin/statistic.js' );
|
216 |
}
|
217 |
|
inc/admin/views/addons/html-loop-plugin.php
CHANGED
@@ -32,8 +32,9 @@ defined( 'ABSPATH' ) or exit();
|
|
32 |
echo '<ul class="plugin-action-buttons"><li>' . implode( '</li><li>', $action_links ) . '</li></ul>';
|
33 |
} ?>
|
34 |
</div>
|
35 |
-
|
36 |
-
|
|
|
37 |
<p class="authors"><?php printf( __( '<cite>By %s</cite>', 'learnpress' ), $add_on['author'] ); ?></p>
|
38 |
</div>
|
39 |
</div>
|
32 |
echo '<ul class="plugin-action-buttons"><li>' . implode( '</li><li>', $action_links ) . '</li></ul>';
|
33 |
} ?>
|
34 |
</div>
|
35 |
+
<?php $short_desc = preg_replace( '!\s+!', ' ', trim( strip_tags( $add_on['short_description'] ) ) ); ?>
|
36 |
+
<div class="desc column-description" title="<?php echo esc_attr( $short_desc ); ?>">
|
37 |
+
<p><?php echo strip_tags( $short_desc ); ?></p>
|
38 |
<p class="authors"><?php printf( __( '<cite>By %s</cite>', 'learnpress' ), $add_on['author'] ); ?></p>
|
39 |
</div>
|
40 |
</div>
|
inc/admin/views/addons/html-plugins-more.php
CHANGED
@@ -8,9 +8,17 @@
|
|
8 |
*/
|
9 |
|
10 |
defined( 'ABSPATH' ) or exit();
|
|
|
|
|
|
|
|
|
11 |
?>
|
12 |
|
|
|
|
|
13 |
<?php
|
|
|
|
|
14 |
// get all free Learnpress plugins
|
15 |
$wp_plugins = LP_Plugins_Helper::get_plugins( 'free' );
|
16 |
// get all premium Learnpress plugins
|
8 |
*/
|
9 |
|
10 |
defined( 'ABSPATH' ) or exit();
|
11 |
+
|
12 |
+
$last_checked = LP_Background_Query_Items::instance()->get_last_checked( 'plugins_tp' );
|
13 |
+
$check_url = wp_nonce_url( add_query_arg( 'force-check-update', 'yes' ), 'lp-check-updates' );
|
14 |
+
|
15 |
?>
|
16 |
|
17 |
+
<p><?php printf( __( 'Last checked %s. <a href="%s">Check again</a>', 'learnpress' ), human_time_diff( $last_checked ), $check_url ); ?></p>
|
18 |
+
|
19 |
<?php
|
20 |
+
|
21 |
+
|
22 |
// get all free Learnpress plugins
|
23 |
$wp_plugins = LP_Plugins_Helper::get_plugins( 'free' );
|
24 |
// get all premium Learnpress plugins
|
inc/admin/views/addons/html-themes.php
CHANGED
@@ -8,8 +8,13 @@
|
|
8 |
*/
|
9 |
|
10 |
defined( 'ABSPATH' ) or exit();
|
|
|
|
|
|
|
11 |
?>
|
12 |
|
|
|
|
|
13 |
<?php
|
14 |
// get Thimpress Education themes
|
15 |
$education_themes = LP_Plugins_Helper::get_related_themes( 'education' );
|
@@ -49,5 +54,4 @@ foreach ( $all_themes as $themes ) {
|
|
49 |
</ul>
|
50 |
<?php
|
51 |
}
|
52 |
-
}
|
53 |
-
?>
|
8 |
*/
|
9 |
|
10 |
defined( 'ABSPATH' ) or exit();
|
11 |
+
|
12 |
+
$last_checked = LP_Background_Query_Items::instance()->get_last_checked( 'plugins_tp' );
|
13 |
+
$check_url = wp_nonce_url( add_query_arg( 'force-check-update', 'yes' ), 'lp-check-updates' );
|
14 |
?>
|
15 |
|
16 |
+
<p><?php printf( __( 'Last checked %s. <a href="%s">Check again</a>', 'learnpress' ), human_time_diff( $last_checked ), $check_url ); ?></p>
|
17 |
+
|
18 |
<?php
|
19 |
// get Thimpress Education themes
|
20 |
$education_themes = LP_Plugins_Helper::get_related_themes( 'education' );
|
54 |
</ul>
|
55 |
<?php
|
56 |
}
|
57 |
+
}
|
|
inc/admin/views/course/new-section.php
CHANGED
@@ -14,7 +14,7 @@
|
|
14 |
<div class="section-head">
|
15 |
<span class="creatable"></span>
|
16 |
<input v-model="section_title" type="text" title="title" class="title-input"
|
17 |
-
placeholder="<?php esc_attr_e( '
|
18 |
@keyup.enter.prevent="newSection">
|
19 |
</div>
|
20 |
</form>
|
14 |
<div class="section-head">
|
15 |
<span class="creatable"></span>
|
16 |
<input v-model="section_title" type="text" title="title" class="title-input"
|
17 |
+
placeholder="<?php esc_attr_e( 'Write section name and press Enter', 'learnpress' ); ?>"
|
18 |
@keyup.enter.prevent="newSection">
|
19 |
</div>
|
20 |
</form>
|
inc/admin/views/course/section-item.php
CHANGED
@@ -29,8 +29,7 @@
|
|
29 |
data-content-tip="<?php echo esc_attr( 'Edit item', 'learnpress' ); ?>">
|
30 |
<a :href="url" target="_blank" class="lp-btn-icon dashicons dashicons-edit"></a>
|
31 |
</div>
|
32 |
-
<div class="action delete-item
|
33 |
-
data-content-tip="<?php echo esc_attr( 'Delete', 'learnpress' ); ?>">
|
34 |
<a class="lp-btn-icon dashicons dashicons-trash" @click.prevent="remove"></a>
|
35 |
<ul>
|
36 |
<li>
|
29 |
data-content-tip="<?php echo esc_attr( 'Edit item', 'learnpress' ); ?>">
|
30 |
<a :href="url" target="_blank" class="lp-btn-icon dashicons dashicons-edit"></a>
|
31 |
</div>
|
32 |
+
<div class="action delete-item" v-if="!disableCurriculum">
|
|
|
33 |
<a class="lp-btn-icon dashicons dashicons-trash" @click.prevent="remove"></a>
|
34 |
<ul>
|
35 |
<li>
|
inc/admin/views/course/section.php
CHANGED
@@ -55,7 +55,7 @@ learn_press_admin_view( 'course/new-section-item' );
|
|
55 |
<button type="button" class="button button-secondary"
|
56 |
@click="openModal"><?php esc_html_e( 'Select items', 'learnpress' ); ?></button>
|
57 |
|
58 |
-
<div class="remove
|
59 |
<span class="icon" @click="removing"><span
|
60 |
class="dashicons dashicons-trash"></span></span>
|
61 |
<div class="confirm" @click="remove"><?php esc_html_e( 'Are you sure?', 'learnpress' ); ?></div>
|
@@ -171,7 +171,7 @@ learn_press_admin_view( 'course/new-section-item' );
|
|
171 |
|
172 |
for (var i = 0, n = orders.length; i < n; i++) {
|
173 |
$.each(allItems, function (j, item) {
|
174 |
-
if (orders[i]
|
175 |
items.push(JSON.parse(JSON.stringify(item)));
|
176 |
found = true;
|
177 |
return false;
|
@@ -273,7 +273,6 @@ learn_press_admin_view( 'course/new-section-item' );
|
|
273 |
// new section item
|
274 |
newItem: function (item) {
|
275 |
$store.dispatch('ss/newSectionItem', {section_id: this.section.id, item: item});
|
276 |
-
console.log(item)
|
277 |
},
|
278 |
openModal: function () {
|
279 |
$store.dispatch('ci/open', parseInt(this.section.id));
|
55 |
<button type="button" class="button button-secondary"
|
56 |
@click="openModal"><?php esc_html_e( 'Select items', 'learnpress' ); ?></button>
|
57 |
|
58 |
+
<div class="remove" :class="{confirm: confirm}" title="<?php echo esc_attr( 'Delete section', 'learnpress' ); ?>">
|
59 |
<span class="icon" @click="removing"><span
|
60 |
class="dashicons dashicons-trash"></span></span>
|
61 |
<div class="confirm" @click="remove"><?php esc_html_e( 'Are you sure?', 'learnpress' ); ?></div>
|
171 |
|
172 |
for (var i = 0, n = orders.length; i < n; i++) {
|
173 |
|