ThemeGrill Demo Importer - Version 1.5.8

Version Description

  • 20-06-2019 =
  • Tweak - Update demo import message.
Download this release

Release Info

Developer ThemeGrill
Plugin Icon 128x128 ThemeGrill Demo Importer
Version 1.5.8
Comparing to
See all releases

Code changes from version 1.5.7 to 1.5.8

.eslintignore DELETED
@@ -1,3 +0,0 @@
1
- *.min.js
2
-
3
- /assets/js/jquery-tiptip/**
.eslintrc DELETED
@@ -1,16 +0,0 @@
1
- {
2
- "root": true,
3
- "env": {
4
- "browser": true,
5
- "node": true
6
- },
7
- "globals": {
8
- "wp": true
9
- },
10
- "rules": {
11
- "camelcase": 0,
12
- "indent": 0,
13
- "max-len": [ 2, { "code": 250 } ],
14
- "no-console": 1
15
- }
16
- }
.stylelintrc.json DELETED
@@ -1,22 +0,0 @@
1
- {
2
- "extends": "stylelint-config-wordpress",
3
- "rules": {
4
- "at-rule-empty-line-before": null,
5
- "at-rule-no-unknown": null,
6
- "comment-empty-line-before": null,
7
- "declaration-block-no-duplicate-properties": null,
8
- "declaration-colon-newline-after": null,
9
- "declaration-property-unit-whitelist": null,
10
- "font-weight-notation": null,
11
- "font-family-name-quotes": null,
12
- "font-family-no-missing-generic-family-keyword": null,
13
- "max-line-length": null,
14
- "no-descending-specificity": null,
15
- "no-duplicate-selectors": null,
16
- "rule-empty-line-before": null,
17
- "selector-class-pattern": null,
18
- "string-quotes": "single",
19
- "value-keyword-case": null,
20
- "value-list-comma-newline-after": null
21
- }
22
- }
.wordpress-org/banner-1544x500.png DELETED
Binary file
.wordpress-org/banner-772x250.png DELETED
Binary file
.wordpress-org/icon-128x128.png DELETED
Binary file
.wordpress-org/icon-256x256.png DELETED
Binary file
.wordpress-org/screenshot-1.png DELETED
Binary file
.wordpress-org/screenshot-2.png DELETED
Binary file
.wordpress-org/screenshot-3.png DELETED
Binary file
CHANGELOG.txt DELETED
@@ -1,97 +0,0 @@
1
- == Changelog ==
2
-
3
- = 1.5.7 - 06-03-2019 =
4
- * Fix - Demo preview overlay not importing specific demo.
5
-
6
- = 1.5.6 - 15-02-2019 =
7
- * Fetaure - Install plugins and import demo on a single click.
8
- * Tweak - Remove the more details on demo preview hover.
9
- * Dev - Improve Coding standard with husky compatibility.
10
-
11
- = 1.5.5 - 05-11-2018 =
12
- * Feature - Add support for elementor schemes.
13
-
14
- = 1.5.4 - 02-11-2018 =
15
- * Change Modular to Zakra
16
-
17
- = 1.5.3 - 30-10-2018 =
18
- * Support - Modular theme.
19
-
20
- = 1.5.2 - 25-09-2018 =
21
- * Fix - Custom CSS migration on demo import.
22
- * Fix - Live Preview button when demo is successfully imported in demo preview page.
23
-
24
- = 1.5.1 - 24-08-2018 =
25
- * Support - Cenote Pro theme.
26
-
27
- = 1.5.0 - 21-08-2018 =
28
- * Feature - Fetches the demo config from GitHub repo.
29
- * Feature - Category and pagebuilder routes for views.
30
- * Fetaure - Install and activate plugins on a single click.
31
- * Fix - Slashes to be stripped from imported comments.
32
- * Fix - Importing export files with multiline term meta data.
33
- * Fix - Deprecation notices including `wp_get_http()` and `screen_icon()`.
34
- * Tweak - Demo preview is supported via iframe.
35
- * Tweak - Different device preview is possible for a demo.
36
- * Tweak - Only store single demo package files in upload directory.
37
- * Dev - Improve PHP7 compatibility.
38
- * Deprecated - Upload process for the demo packages.
39
- * Deprecated - Filter hooks `themegrill_demo_importer_config` and `themegrill_demo_importer_packages`.
40
-
41
- = 1.4.3 - 23-04-2018 =
42
- * Support - Cenote theme.
43
-
44
- = 1.4.2 - 25-12-2017 =
45
- * Fix - Disable WooCommerce setup wizard for demo import.
46
- * Fix - Styling issue caused by missing `theme-id-container` container.
47
-
48
- = 1.4.1 - 08-12-2017 =
49
- * Feature - Compatiable with Elementor page builder.
50
- * Fix - Styling issue caused by missing `theme-id-container` container.
51
-
52
- = 1.4.0 - 20-07-2017 =
53
- * Feature - Plugin installer and activator mechinism.
54
- * Fix - Call to undefined function `preg_filter()`.
55
- * Dev - Improved file structure.
56
- * Dev - Introduced `tg_demo_installer_enabled()`.
57
- * Dev - Introduced `tg_demo_installer_preview()`.
58
- * Dev - Introduced `tg_demo_preview_screenshot_url()`.
59
-
60
- = 1.3.4 - 03-07-2017 =
61
- * Feature - Support RTL for Importer.
62
- * Feature - Reset wizard for clean up.
63
- * Fixed - Undefined queue job update action.
64
- * Fixed - Use of `wp-heading-inline` core class.
65
- * Tweak - Use of defined constant for demo packs.
66
- * Tweak - Uninstall data with a defined constant.
67
- * Tweak - Fallback screenshot for flash demo preview.
68
-
69
- = 1.3.3 =
70
- * Tweak - Support demo import for suffice theme.
71
-
72
- = 1.3.2 =
73
- * Tweak - Load screenshots for pro theme demos.
74
-
75
- = 1.3.1 =
76
- * Tweak - Load screenshot from theme instead of plugin for themes with single demo.
77
-
78
- = 1.3.0 =
79
- * Tweak - Support data update for nested siteorigin layoutbuilder.
80
- * Fix - Import button not working on firefox.
81
-
82
- = 1.2.0 =
83
- * Tweak - Load scripts perfecly on demo importer appearance page.
84
- * Tweak - Set transient for redirecting to demo importer page after install or update.
85
- * Tweak - Introduced filter hook `themegrill_demo_importer_installer` to control demo view.
86
-
87
- = 1.1.0 =
88
- * Feature - Backbone views interface for demos and previews
89
- * Feature - Added download button for the preview not installed
90
- * Feature - Robust quick search view to change in demo interface
91
- * Feature - Detailed information in popup to showcase plugins, events, etc
92
- * Refactor - Replace old way to import demo with new `wp.updates` methods
93
- * Fix - Menu classes to hide admin menu if no JS using css class `hide-if-no-js`
94
- * Fix - Remove the old demo pack if found and to update the new demo packs
95
-
96
- = 1.0.0 =
97
- * Initial Public Release
CODE_OF_CONDUCT.md DELETED
@@ -1,46 +0,0 @@
1
- # Contributor Covenant Code of Conduct
2
-
3
- ## Our Pledge
4
-
5
- In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
-
7
- ## Our Standards
8
-
9
- Examples of behavior that contributes to creating a positive environment include:
10
-
11
- * Using welcoming and inclusive language
12
- * Being respectful of differing viewpoints and experiences
13
- * Gracefully accepting constructive criticism
14
- * Focusing on what is best for the community
15
- * Showing empathy towards other community members
16
-
17
- Examples of unacceptable behavior by participants include:
18
-
19
- * The use of sexualized language or imagery and unwelcome sexual attention or advances
20
- * Trolling, insulting/derogatory comments, and personal or political attacks
21
- * Public or private harassment
22
- * Publishing others' private information, such as a physical or electronic address, without explicit permission
23
- * Other conduct which could reasonably be considered inappropriate in a professional setting
24
-
25
- ## Our Responsibilities
26
-
27
- Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
28
-
29
- Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
30
-
31
- ## Scope
32
-
33
- This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project email address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
34
-
35
- ## Enforcement
36
-
37
- Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at support@themegrill.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
38
-
39
- Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
40
-
41
- ## Attribution
42
-
43
- This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
44
-
45
- [homepage]: http://contributor-covenant.org
46
- [version]: http://contributor-covenant.org/version/1/4/
assets/css/demo-importer-rtl.css CHANGED
@@ -1 +1 @@
1
- @-webkit-keyframes spin{100%{-webkit-transform:rotate(-360deg);transform:rotate(-360deg)}}@keyframes spin{100%{-webkit-transform:rotate(-360deg);transform:rotate(-360deg)}}.appearance_page_demo-importer .demo-importer .wp-filter{padding:0 20px}.appearance_page_demo-importer .demo-importer .wp-filter .search-form{margin-right:1em}.appearance_page_demo-importer .demo-importer .wp-filter .filter-section{float:right}.appearance_page_demo-importer .demo-importer .wp-filter .filter-section.right{float:left}.appearance_page_demo-importer .demo-importer .wp-filter .filter-links li>a:focus{box-shadow:none}.appearance_page_demo-importer .demo-importer .theme-browser .theme .premium-demo-banner{position:absolute;top:15px;left:-16px;color:#fff;padding:0 20px;font-weight:600;min-height:30px;line-height:28px;background:#5fbd0a;text-transform:uppercase}.appearance_page_demo-importer .demo-importer .theme-browser .theme .premium-demo-banner::after,.appearance_page_demo-importer .demo-importer .theme-browser .theme .premium-demo-banner::before{content:'';position:absolute}.appearance_page_demo-importer .demo-importer .theme-browser .theme .premium-demo-banner::before{right:-15px;color:#fff;border:15px solid #5fbd0a;border-right-color:transparent}.appearance_page_demo-importer .demo-importer .theme-browser .theme .premium-demo-banner::after{top:30px;left:0;border:8px solid #478d07;border-left-color:transparent;border-bottom-color:transparent}.appearance_page_demo-importer .demo-importer .theme-browser .theme .theme-screenshot img{-o-object-fit:cover;object-fit:cover}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-header{background-color:#eee}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content{z-index:1;bottom:132px}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info .theme-version{margin-top:0}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info .theme-screenshot{width:100%;box-sizing:border-box}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info .premium-demo-tag{color:#fff;font-size:13px;font-weight:400;margin-right:5px;padding:0 10px;line-height:22px;border-radius:3px;background:#67c016;display:inline-block}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info table.plugins-list-table{margin-bottom:1em}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info table.plugins-list-table .plugin-status{float:left}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info table.plugins-list-table .plugin-status span{width:20px;height:20px;overflow:hidden;border-radius:50%;position:relative;vertical-align:top;white-space:nowrap;text-indent:-9999px;display:inline-block;border:2px solid #bfbfbf}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info table.plugins-list-table .plugin-status span.active{border-color:#5cb85c}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info table.plugins-list-table .plugin-status span.active::after{position:absolute;right:50%;top:50%;opacity:1;width:25%;height:50%;content:'';-webkit-transform-origin:right top;-ms-transform-origin:right top;transform-origin:right top;border-top:2px solid #5cb85c;border-left:2px solid #5cb85c;-webkit-transform:scaleX(-1) rotate(-135deg) translate(58%,-40%);-ms-transform:scaleX(-1) rotate(-135deg) translate(58%,-40%);transform:scaleX(-1) rotate(-135deg) translate(58%,-40%)}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info table.plugins-list-table .plugin-status span.updating-message{border-right-color:#5cb85c;-webkit-animation:spin .75s linear infinite;animation:spin .75s linear infinite}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-footer{height:132px}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-footer .devices button:focus,.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-footer .devices button:hover{background-color:transparent}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-footer .demo-import-actions{padding:20px;background:#fff;border-bottom:1px solid #ddd}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-footer .demo-import-actions .button{width:100%;text-align:center}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-footer .demo-import-actions .button.updated-message::before,.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-footer .demo-import-actions .button.updating-message::before{margin-top:11px}.appearance_page_demo-importer .demo-importer .theme-install-overlay.expanded .wp-full-overlay-footer{right:initial}.tips{cursor:help;text-decoration:none}img.tips{padding:5px 0 0}#tiptip_holder{display:none;z-index:8675309;position:absolute;top:0;left:0}#tiptip_holder.tip_top{padding-bottom:5px}#tiptip_holder.tip_top #tiptip_arrow_inner{margin-top:-7px;margin-right:-6px;border-top-color:#333}#tiptip_holder.tip_bottom{padding-top:5px}#tiptip_holder.tip_bottom #tiptip_arrow_inner{margin-top:-5px;margin-right:-6px;border-bottom-color:#333}#tiptip_holder.tip_right{padding-right:5px}#tiptip_holder.tip_right #tiptip_arrow_inner{margin-top:-6px;margin-right:-5px;border-left-color:#333}#tiptip_holder.tip_left{padding-left:5px}#tiptip_holder.tip_left #tiptip_arrow_inner{margin-top:-6px;margin-right:-7px;border-right-color:#333}#tiptip_content{color:#fff;font-size:.8em;max-width:150px;background:#333;text-align:center;border-radius:3px;padding:.618em 1em;box-shadow:0 1px 3px rgba(0,0,0,.2)}#tiptip_content code{padding:1px;background:#888}#tiptip_arrow,#tiptip_arrow_inner{position:absolute;border-color:transparent;border-style:solid;border-width:6px;height:0;width:0}#tiptip_arrow{right:50%;margin-right:-6px}
1
+ @-webkit-keyframes spin{100%{-webkit-transform:rotate(-360deg);transform:rotate(-360deg)}}@keyframes spin{100%{-webkit-transform:rotate(-360deg);transform:rotate(-360deg)}}.appearance_page_demo-importer .demo-importer .wp-filter{padding:0 20px}.appearance_page_demo-importer .demo-importer .wp-filter .search-form{margin-right:1em}.appearance_page_demo-importer .demo-importer .wp-filter .filter-section{float:right}.appearance_page_demo-importer .demo-importer .wp-filter .filter-section.right{float:left}.appearance_page_demo-importer .demo-importer .wp-filter .filter-links li>a:focus{box-shadow:none}.appearance_page_demo-importer .demo-importer .theme-browser .theme .premium-demo-banner{position:absolute;top:15px;left:-16px;color:#fff;padding:0 20px;font-weight:600;min-height:30px;line-height:28px;background:#5fbd0a;text-transform:uppercase}.appearance_page_demo-importer .demo-importer .theme-browser .theme .premium-demo-banner::after,.appearance_page_demo-importer .demo-importer .theme-browser .theme .premium-demo-banner::before{content:'';position:absolute}.appearance_page_demo-importer .demo-importer .theme-browser .theme .premium-demo-banner::before{right:-15px;color:#fff;border:15px solid #5fbd0a;border-right-color:transparent}.appearance_page_demo-importer .demo-importer .theme-browser .theme .premium-demo-banner::after{top:30px;left:0;border:8px solid #478d07;border-left-color:transparent;border-bottom-color:transparent}.appearance_page_demo-importer .demo-importer .theme-browser .theme .theme-screenshot img{-o-object-fit:cover;object-fit:cover}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-header{background-color:#eee}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content{z-index:1;bottom:132px}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info .theme-version{margin-top:0}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info .theme-screenshot{width:100%;box-sizing:border-box}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info .premium-demo-tag{color:#fff;font-size:13px;font-weight:400;margin-right:5px;padding:0 10px;line-height:22px;border-radius:3px;background:#67c016;display:inline-block}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info table.plugins-list-table{margin-bottom:1em}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info table.plugins-list-table .plugin-status{float:left}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info table.plugins-list-table .plugin-status span{width:20px;height:20px;overflow:hidden;border-radius:50%;position:relative;vertical-align:top;white-space:nowrap;text-indent:-9999px;display:inline-block;border:2px solid #bfbfbf}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info table.plugins-list-table .plugin-status span.active{border-color:#5cb85c}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info table.plugins-list-table .plugin-status span.active::after{position:absolute;right:50%;top:50%;opacity:1;width:25%;height:50%;content:'';-webkit-transform-origin:right top;-ms-transform-origin:right top;transform-origin:right top;border-top:2px solid #5cb85c;border-left:2px solid #5cb85c;-webkit-transform:scaleX(-1) rotate(-135deg) translate(58%,-40%);-ms-transform:scaleX(-1) rotate(-135deg) translate(58%,-40%);transform:scaleX(-1) rotate(-135deg) translate(58%,-40%)}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info table.plugins-list-table .plugin-status span.updating-message{border-right-color:#5cb85c;-webkit-animation:spin .75s linear infinite;animation:spin .75s linear infinite}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-footer{height:132px}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-footer .devices button:focus,.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-footer .devices button:hover{background-color:transparent}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-footer .demo-import-actions{padding:20px;background:#fff;border-bottom:1px solid #ddd}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-footer .demo-import-actions .button{width:100%;text-align:center}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-footer .demo-import-actions .button.updated-message::before,.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-footer .demo-import-actions .button.updating-message::before{margin-top:11px}.appearance_page_demo-importer .demo-importer .theme-install-overlay.expanded .wp-full-overlay-footer{right:initial}.tips{cursor:help;text-decoration:none}img.tips{padding:5px 0 0}#tiptip_holder{display:none;z-index:8675309;position:absolute;top:0;left:0}#tiptip_holder.tip_top{padding-bottom:5px}#tiptip_holder.tip_top #tiptip_arrow_inner{margin-top:-7px;margin-right:-6px;border-top-color:#333}#tiptip_holder.tip_bottom{padding-top:5px}#tiptip_holder.tip_bottom #tiptip_arrow_inner{margin-top:-5px;margin-right:-6px;border-bottom-color:#333}#tiptip_holder.tip_right{padding-right:5px}#tiptip_holder.tip_right #tiptip_arrow_inner{margin-top:-6px;margin-right:-5px;border-left-color:#333}#tiptip_holder.tip_left{padding-left:5px}#tiptip_holder.tip_left #tiptip_arrow_inner{margin-top:-6px;margin-right:-7px;border-right-color:#333}#tiptip_content{color:#fff;font-size:.8em;max-width:150px;background:#333;text-align:center;border-radius:3px;padding:.618em 1em;box-shadow:0 1px 3px rgba(0,0,0,.2)}#tiptip_content code{padding:1px;background:#888}#tiptip_arrow,#tiptip_arrow_inner{position:absolute;border-color:transparent;border-style:solid;border-width:6px;height:0;width:0}#tiptip_arrow{right:50%;margin-right:-6px}.demo-import-confirm-message{font-size:14px;padding:10px 10px 0}.demo-import-confirm-message ol{margin-right:20px}.demo-import-confirm-message ol .warning{color:#f00000}.jconfirm-buttons .demo-import-confirm-button{background:#f00000;color:#fff}.jconfirm-buttons .demo-import-cancel-button{background:#eee;border-color:#999;color:#23282d}body.demo-import-message-popup{overflow:visible;visibility:visible}
assets/css/demo-importer.css CHANGED
@@ -1 +1 @@
1
- @-webkit-keyframes spin{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes spin{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.appearance_page_demo-importer .demo-importer .wp-filter{padding:0 20px}.appearance_page_demo-importer .demo-importer .wp-filter .search-form{margin-left:1em}.appearance_page_demo-importer .demo-importer .wp-filter .filter-section{float:left}.appearance_page_demo-importer .demo-importer .wp-filter .filter-section.right{float:right}.appearance_page_demo-importer .demo-importer .wp-filter .filter-links li>a:focus{box-shadow:none}.appearance_page_demo-importer .demo-importer .theme-browser .theme .premium-demo-banner{position:absolute;top:15px;right:-16px;color:#fff;padding:0 20px;font-weight:600;min-height:30px;line-height:28px;background:#5fbd0a;text-transform:uppercase}.appearance_page_demo-importer .demo-importer .theme-browser .theme .premium-demo-banner::after,.appearance_page_demo-importer .demo-importer .theme-browser .theme .premium-demo-banner::before{content:'';position:absolute}.appearance_page_demo-importer .demo-importer .theme-browser .theme .premium-demo-banner::before{left:-15px;color:#fff;border:15px solid #5fbd0a;border-left-color:transparent}.appearance_page_demo-importer .demo-importer .theme-browser .theme .premium-demo-banner::after{top:30px;right:0;border:8px solid #478d07;border-right-color:transparent;border-bottom-color:transparent}.appearance_page_demo-importer .demo-importer .theme-browser .theme .theme-screenshot img{-o-object-fit:cover;object-fit:cover}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-header{background-color:#eee}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content{z-index:1;bottom:132px}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info .theme-version{margin-top:0}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info .theme-screenshot{width:100%;box-sizing:border-box}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info .premium-demo-tag{color:#fff;font-size:13px;font-weight:400;margin-left:5px;padding:0 10px;line-height:22px;border-radius:3px;background:#67c016;display:inline-block}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info table.plugins-list-table{margin-bottom:1em}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info table.plugins-list-table .plugin-status{float:right}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info table.plugins-list-table .plugin-status span{width:20px;height:20px;overflow:hidden;border-radius:50%;position:relative;vertical-align:top;white-space:nowrap;text-indent:-9999px;display:inline-block;border:2px solid #bfbfbf}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info table.plugins-list-table .plugin-status span.active{border-color:#5cb85c}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info table.plugins-list-table .plugin-status span.active::after{position:absolute;left:50%;top:50%;opacity:1;width:25%;height:50%;content:'';-webkit-transform-origin:left top;-ms-transform-origin:left top;transform-origin:left top;border-top:2px solid #5cb85c;border-right:2px solid #5cb85c;-webkit-transform:scaleX(-1) rotate(135deg) translate(-58%,-40%);-ms-transform:scaleX(-1) rotate(135deg) translate(-58%,-40%);transform:scaleX(-1) rotate(135deg) translate(-58%,-40%)}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info table.plugins-list-table .plugin-status span.updating-message{border-left-color:#5cb85c;-webkit-animation:spin .75s linear infinite;animation:spin .75s linear infinite}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-footer{height:132px}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-footer .devices button:focus,.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-footer .devices button:hover{background-color:transparent}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-footer .demo-import-actions{padding:20px;background:#fff;border-bottom:1px solid #ddd}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-footer .demo-import-actions .button{width:100%;text-align:center}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-footer .demo-import-actions .button.updated-message::before,.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-footer .demo-import-actions .button.updating-message::before{margin-top:11px}.appearance_page_demo-importer .demo-importer .theme-install-overlay.expanded .wp-full-overlay-footer{left:initial}.tips{cursor:help;text-decoration:none}img.tips{padding:5px 0 0}#tiptip_holder{display:none;z-index:8675309;position:absolute;top:0;left:0}#tiptip_holder.tip_top{padding-bottom:5px}#tiptip_holder.tip_top #tiptip_arrow_inner{margin-top:-7px;margin-left:-6px;border-top-color:#333}#tiptip_holder.tip_bottom{padding-top:5px}#tiptip_holder.tip_bottom #tiptip_arrow_inner{margin-top:-5px;margin-left:-6px;border-bottom-color:#333}#tiptip_holder.tip_right{padding-left:5px}#tiptip_holder.tip_right #tiptip_arrow_inner{margin-top:-6px;margin-left:-5px;border-right-color:#333}#tiptip_holder.tip_left{padding-right:5px}#tiptip_holder.tip_left #tiptip_arrow_inner{margin-top:-6px;margin-left:-7px;border-left-color:#333}#tiptip_content{color:#fff;font-size:.8em;max-width:150px;background:#333;text-align:center;border-radius:3px;padding:.618em 1em;box-shadow:0 1px 3px rgba(0,0,0,.2)}#tiptip_content code{padding:1px;background:#888}#tiptip_arrow,#tiptip_arrow_inner{position:absolute;border-color:transparent;border-style:solid;border-width:6px;height:0;width:0}
1
+ @-webkit-keyframes spin{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes spin{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.appearance_page_demo-importer .demo-importer .wp-filter{padding:0 20px}.appearance_page_demo-importer .demo-importer .wp-filter .search-form{margin-left:1em}.appearance_page_demo-importer .demo-importer .wp-filter .filter-section{float:left}.appearance_page_demo-importer .demo-importer .wp-filter .filter-section.right{float:right}.appearance_page_demo-importer .demo-importer .wp-filter .filter-links li>a:focus{box-shadow:none}.appearance_page_demo-importer .demo-importer .theme-browser .theme .premium-demo-banner{position:absolute;top:15px;right:-16px;color:#fff;padding:0 20px;font-weight:600;min-height:30px;line-height:28px;background:#5fbd0a;text-transform:uppercase}.appearance_page_demo-importer .demo-importer .theme-browser .theme .premium-demo-banner::after,.appearance_page_demo-importer .demo-importer .theme-browser .theme .premium-demo-banner::before{content:'';position:absolute}.appearance_page_demo-importer .demo-importer .theme-browser .theme .premium-demo-banner::before{left:-15px;color:#fff;border:15px solid #5fbd0a;border-left-color:transparent}.appearance_page_demo-importer .demo-importer .theme-browser .theme .premium-demo-banner::after{top:30px;right:0;border:8px solid #478d07;border-right-color:transparent;border-bottom-color:transparent}.appearance_page_demo-importer .demo-importer .theme-browser .theme .theme-screenshot img{-o-object-fit:cover;object-fit:cover}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-header{background-color:#eee}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content{z-index:1;bottom:132px}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info .theme-version{margin-top:0}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info .theme-screenshot{width:100%;box-sizing:border-box}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info .premium-demo-tag{color:#fff;font-size:13px;font-weight:400;margin-left:5px;padding:0 10px;line-height:22px;border-radius:3px;background:#67c016;display:inline-block}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info table.plugins-list-table{margin-bottom:1em}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info table.plugins-list-table .plugin-status{float:right}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info table.plugins-list-table .plugin-status span{width:20px;height:20px;overflow:hidden;border-radius:50%;position:relative;vertical-align:top;white-space:nowrap;text-indent:-9999px;display:inline-block;border:2px solid #bfbfbf}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info table.plugins-list-table .plugin-status span.active{border-color:#5cb85c}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info table.plugins-list-table .plugin-status span.active::after{position:absolute;left:50%;top:50%;opacity:1;width:25%;height:50%;content:'';-webkit-transform-origin:left top;-ms-transform-origin:left top;transform-origin:left top;border-top:2px solid #5cb85c;border-right:2px solid #5cb85c;-webkit-transform:scaleX(-1) rotate(135deg) translate(-58%,-40%);-ms-transform:scaleX(-1) rotate(135deg) translate(-58%,-40%);transform:scaleX(-1) rotate(135deg) translate(-58%,-40%)}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-sidebar-content .install-theme-info table.plugins-list-table .plugin-status span.updating-message{border-left-color:#5cb85c;-webkit-animation:spin .75s linear infinite;animation:spin .75s linear infinite}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-footer{height:132px}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-footer .devices button:focus,.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-footer .devices button:hover{background-color:transparent}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-footer .demo-import-actions{padding:20px;background:#fff;border-bottom:1px solid #ddd}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-footer .demo-import-actions .button{width:100%;text-align:center}.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-footer .demo-import-actions .button.updated-message::before,.appearance_page_demo-importer .demo-importer .theme-install-overlay .wp-full-overlay-footer .demo-import-actions .button.updating-message::before{margin-top:11px}.appearance_page_demo-importer .demo-importer .theme-install-overlay.expanded .wp-full-overlay-footer{left:initial}.tips{cursor:help;text-decoration:none}img.tips{padding:5px 0 0}#tiptip_holder{display:none;z-index:8675309;position:absolute;top:0;left:0}#tiptip_holder.tip_top{padding-bottom:5px}#tiptip_holder.tip_top #tiptip_arrow_inner{margin-top:-7px;margin-left:-6px;border-top-color:#333}#tiptip_holder.tip_bottom{padding-top:5px}#tiptip_holder.tip_bottom #tiptip_arrow_inner{margin-top:-5px;margin-left:-6px;border-bottom-color:#333}#tiptip_holder.tip_right{padding-left:5px}#tiptip_holder.tip_right #tiptip_arrow_inner{margin-top:-6px;margin-left:-5px;border-right-color:#333}#tiptip_holder.tip_left{padding-right:5px}#tiptip_holder.tip_left #tiptip_arrow_inner{margin-top:-6px;margin-left:-7px;border-left-color:#333}#tiptip_content{color:#fff;font-size:.8em;max-width:150px;background:#333;text-align:center;border-radius:3px;padding:.618em 1em;box-shadow:0 1px 3px rgba(0,0,0,.2)}#tiptip_content code{padding:1px;background:#888}#tiptip_arrow,#tiptip_arrow_inner{position:absolute;border-color:transparent;border-style:solid;border-width:6px;height:0;width:0}.demo-import-confirm-message{font-size:14px;padding:10px 10px 0}.demo-import-confirm-message ol{margin-left:20px}.demo-import-confirm-message ol .warning{color:#f00000}.jconfirm-buttons .demo-import-confirm-button{background:#f00000;color:#fff}.jconfirm-buttons .demo-import-cancel-button{background:#eee;border-color:#999;color:#23282d}body.demo-import-message-popup{overflow:visible;visibility:visible}
assets/css/demo-importer.scss CHANGED
@@ -283,3 +283,41 @@ img.tips {
283
margin-right: -6px;
284
}
285
*/
283
margin-right: -6px;
284
}
285
*/
286
+
287
+ /**
288
+ * Demo Import message CSS.
289
+ */
290
+ .demo-import-confirm-message {
291
+ font-size: 14px;
292
+ padding: 10px 10px 0;
293
+
294
+ ol {
295
+ margin-left: 20px;
296
+
297
+ .warning {
298
+ color: #f00000;
299
+ }
300
+ }
301
+ }
302
+
303
+ .jconfirm-buttons {
304
+
305
+ .demo-import-confirm-button {
306
+ background: #f00000;
307
+ color: #ffffff;
308
+ }
309
+
310
+ .demo-import-cancel-button {
311
+ background: #eeeeee;
312
+ border-color: #999999;
313
+ color: #23282d;
314
+ }
315
+ }
316
+
317
+ body {
318
+
319
+ &.demo-import-message-popup {
320
+ overflow: visible;
321
+ visibility: visible;
322
+ }
323
+ }
assets/css/jquery-confirm/jquery-confirm.css ADDED
@@ -0,0 +1,1140 @@
1
+ /*!
2
+ * jquery-confirm v3.3.4 (http://craftpip.github.io/jquery-confirm/)
3
+ * Author: boniface pereira
4
+ * Website: www.craftpip.com
5
+ * Contact: hey@craftpip.com
6
+ *
7
+ * Copyright 2013-2019 jquery-confirm
8
+ * Licensed under MIT (https://github.com/craftpip/jquery-confirm/blob/master/LICENSE)
9
+ */
10
+ @-webkit-keyframes jconfirm-spin {
11
+ from {
12
+ -webkit-transform: rotate(0deg);
13
+ transform: rotate(0deg);
14
+ }
15
+ to {
16
+ -webkit-transform: rotate(360deg);
17
+ transform: rotate(360deg);
18
+ }
19
+ }
20
+
21
+ @keyframes jconfirm-spin {
22
+ from {
23
+ -webkit-transform: rotate(0deg);
24
+ transform: rotate(0deg);
25
+ }
26
+ to {
27
+ -webkit-transform: rotate(360deg);
28
+ transform: rotate(360deg);
29
+ }
30
+ }
31
+
32
+ body[class*=jconfirm-no-scroll-] {
33
+ overflow: hidden !important;
34
+ }
35
+
36
+ .jconfirm {
37
+ position: fixed;
38
+ top: 0;
39
+ left: 0;
40
+ right: 0;
41
+ bottom: 0;
42
+ z-index: 99999999;
43
+ font-family: inherit;
44
+ overflow: hidden;
45
+ }
46
+
47
+ .jconfirm .jconfirm-bg {
48
+ position: fixed;
49
+ top: 0;
50
+ left: 0;
51
+ right: 0;
52
+ bottom: 0;
53
+ -webkit-transition: opacity .4s;
54
+ transition: opacity .4s;
55
+ }
56
+
57
+ .jconfirm .jconfirm-bg.jconfirm-bg-h {
58
+ opacity: 0 !important;
59
+ }
60
+
61
+ .jconfirm .jconfirm-scrollpane {
62
+ -webkit-perspective: 500px;
63
+ perspective: 500px;
64
+ -webkit-perspective-origin: center;
65
+ perspective-origin: center;
66
+ display: table;
67
+ width: 100%;
68
+ height: 100%;
69
+ }
70
+
71
+ .jconfirm .jconfirm-row {
72
+ display: table-row;
73
+ width: 100%;
74
+ }
75
+
76
+ .jconfirm .jconfirm-cell {
77
+ display: table-cell;
78
+ vertical-align: middle;
79
+ }
80
+
81
+ .jconfirm .jconfirm-holder {
82
+ max-height: 100%;
83
+ padding: 50px 0;
84
+ }
85
+
86
+ .jconfirm .jconfirm-box-container {
87
+ -webkit-transition: -webkit-transform;
88
+ transition: -webkit-transform;
89
+ transition: transform;
90
+ transition: transform, -webkit-transform;
91
+ }
92
+
93
+ .jconfirm .jconfirm-box-container.jconfirm-no-transition {
94
+ -webkit-transition: none !important;
95
+ transition: none !important;
96
+ }
97
+
98
+ .jconfirm .jconfirm-box {
99
+ background: white;
100
+ border-radius: 4px;
101
+ position: relative;
102
+ outline: none;
103
+ padding: 15px 15px 0;
104
+ overflow: hidden;
105
+ margin-left: auto;
106
+ margin-right: auto;
107
+ }
108
+
109
+ @-webkit-keyframes type-blue {
110
+ 1%,
111
+ 100% {
112
+ border-color: #3498db;
113
+ }
114
+ 50% {
115
+ border-color: #5faee3;
116
+ }
117
+ }
118
+
119
+ @keyframes type-blue {
120
+ 1%,
121
+ 100% {
122
+ border-color: #3498db;
123
+ }
124
+ 50% {
125
+ border-color: #5faee3;
126
+ }
127
+ }
128
+
129
+ @-webkit-keyframes type-green {
130
+ 1%,
131
+ 100% {
132
+ border-color: #2ecc71;
133
+ }
134
+ 50% {
135
+ border-color: #54d98c;
136
+ }
137
+ }
138
+
139
+ @keyframes type-green {
140
+ 1%,
141
+ 100% {
142
+ border-color: #2ecc71;
143
+ }
144
+ 50% {
145
+ border-color: #54d98c;
146
+ }
147
+ }
148
+
149
+ @-webkit-keyframes type-red {
150
+ 1%,
151
+ 100% {
152
+ border-color: #e74c3c;
153
+ }
154
+ 50% {
155
+ border-color: #ed7669;
156
+ }
157
+ }
158
+
159
+ @keyframes type-red {
160
+ 1%,
161
+ 100% {
162
+ border-color: #e74c3c;
163
+ }
164
+ 50% {
165
+ border-color: #ed7669;
166
+ }
167
+ }
168
+
169
+ @-webkit-keyframes type-orange {
170
+ 1%,
171
+ 100% {
172
+ border-color: #f1c40f;
173
+ }
174
+ 50% {
175
+ border-color: #f4d03f;
176
+ }
177
+ }
178
+
179
+ @keyframes type-orange {
180
+ 1%,
181
+ 100% {
182
+ border-color: #f1c40f;
183
+ }
184
+ 50% {
185
+ border-color: #f4d03f;
186
+ }
187
+ }
188
+
189
+ @-webkit-keyframes type-purple {
190
+ 1%,
191
+ 100% {
192
+ border-color: #9b59b6;
193
+ }
194
+ 50% {
195
+ border-color: #b07cc6;
196
+ }
197
+ }
198
+
199
+ @keyframes type-purple {
200
+ 1%,
201
+ 100% {
202
+ border-color: #9b59b6;
203
+ }
204
+ 50% {
205
+ border-color: #b07cc6;
206
+ }
207
+ }
208
+
209
+ @-webkit-keyframes type-dark {
210
+ 1%,
211
+ 100% {
212
+ border-color: #34495e;
213
+ }
214
+ 50% {
215
+ border-color: #46627f;
216
+ }
217
+ }
218
+
219
+ @keyframes type-dark {
220
+ 1%,
221
+ 100% {
222
+ border-color: #34495e;
223
+ }
224
+ 50% {
225
+ border-color: #46627f;
226
+ }
227
+ }
228
+
229
+ .jconfirm .jconfirm-box.jconfirm-type-animated {
230
+ -webkit-animation-duration: 2s;
231
+ animation-duration: 2s;
232
+ -webkit-animation-iteration-count: infinite;
233
+ animation-iteration-count: infinite;
234
+ }
235
+
236
+ .jconfirm .jconfirm-box.jconfirm-type-blue {
237
+ border-top: solid 7px #3498db;
238
+ -webkit-animation-name: type-blue;
239
+ animation-name: type-blue;
240
+ }
241
+
242
+ .jconfirm .jconfirm-box.jconfirm-type-green {
243
+ border-top: solid 7px #2ecc71;
244
+ -webkit-animation-name: type-green;
245
+ animation-name: type-green;
246
+ }
247
+
248
+ .jconfirm .jconfirm-box.jconfirm-type-red {
249
+ border-top: solid 7px #e74c3c;
250
+ -webkit-animation-name: type-red;
251
+ animation-name: type-red;
252
+ }
253
+
254
+ .jconfirm .jconfirm-box.jconfirm-type-orange {
255
+ border-top: solid 7px #f1c40f;
256
+ -webkit-animation-name: type-orange;
257
+ animation-name: type-orange;
258
+ }
259
+
260
+ .jconfirm .jconfirm-box.jconfirm-type-purple {
261
+ border-top: solid 7px #9b59b6;
262
+ -webkit-animation-name: type-purple;
263
+ animation-name: type-purple;
264
+ }
265
+
266
+ .jconfirm .jconfirm-box.jconfirm-type-dark {
267
+ border-top: solid 7px #34495e;
268
+ -webkit-animation-name: type-dark;
269
+ animation-name: type-dark;
270
+ }
271
+
272
+ .jconfirm .jconfirm-box.loading {
273
+ height: 120px;
274
+ }
275
+
276
+ .jconfirm .jconfirm-box.loading:before {
277
+ content: '';
278
+ position: absolute;
279
+ left: 0;
280
+ background: white;
281
+ right: 0;
282
+ top: 0;
283
+ bottom: 0;
284
+ border-radius: 10px;
285
+ z-index: 1;
286
+ }
287
+
288
+ .jconfirm .jconfirm-box.loading:after {
289
+ opacity: 0.6;
290
+ content: '';
291
+ height: 30px;
292
+ width: 30px;
293
+ border: solid 3px transparent;
294
+ position: absolute;
295
+ left: 50%;
296
+ margin-left: -15px;
297
+ border-radius: 50%;
298
+ -webkit-animation: jconfirm-spin 1s infinite linear;
299
+ animation: jconfirm-spin 1s infinite linear;
300
+ border-bottom-color: dodgerblue;
301
+ top: 50%;
302
+ margin-top: -15px;
303
+ z-index: 2;
304
+ }
305
+
306
+ .jconfirm .jconfirm-box div.jconfirm-closeIcon {
307
+ height: 20px;
308
+ width: 20px;
309
+ position: absolute;
310
+ top: 10px;
311
+ right: 10px;
312
+ cursor: pointer;
313
+ opacity: .6;
314
+ text-align: center;
315
+ font-size: 27px !important;
316
+ line-height: 14px !important;
317
+ display: none;
318
+ z-index: 1;
319
+ }
320
+
321
+ .jconfirm .jconfirm-box div.jconfirm-closeIcon:empty {
322
+ display: none;
323
+ }
324
+
325
+ .jconfirm .jconfirm-box div.jconfirm-closeIcon .fa {
326
+ font-size: 16px;
327
+ }
328
+
329
+ .jconfirm .jconfirm-box div.jconfirm-closeIcon .glyphicon {
330
+ font-size: 16px;
331
+ }
332
+
333
+ .jconfirm .jconfirm-box div.jconfirm-closeIcon .zmdi {
334
+ font-size: 16px;
335
+ }
336
+
337
+ .jconfirm .jconfirm-box div.jconfirm-closeIcon:hover {
338
+ opacity: 1;
339
+ }
340
+
341
+ .jconfirm .jconfirm-box div.jconfirm-title-c {
342
+ display: block;
343
+ font-size: 22px;
344
+ line-height: 20px;
345
+ -webkit-user-select: none;
346
+ -moz-user-select: none;
347
+ -ms-user-select: none;
348
+ user-select: none;
349
+ cursor: default;
350
+ padding-bottom: 15px;
351
+ }
352
+
353
+ .jconfirm .jconfirm-box div.jconfirm-title-c.jconfirm-hand {
354
+ cursor: move;
355
+ }
356
+
357
+ .jconfirm .jconfirm-box div.jconfirm-title-c .jconfirm-icon-c {
358
+ font-size: inherit;
359
+ display: inline-block;
360
+ vertical-align: middle;
361
+ }
362
+
363
+ .jconfirm .jconfirm-box div.jconfirm-title-c .jconfirm-icon-c i {
364
+ vertical-align: middle;
365
+ }
366
+
367
+ .jconfirm .jconfirm-box div.jconfirm-title-c .jconfirm-icon-c:empty {
368
+ display: none;
369
+ }
370
+
371
+ .jconfirm .jconfirm-box div.jconfirm-title-c .jconfirm-title {
372
+ -webkit-user-select: none;
373
+ -moz-user-select: none;
374
+ -ms-user-select: none;
375
+ user-select: none;
376
+ font-size: inherit;
377
+ font-family: inherit;
378
+ display: inline-block;
379
+ vertical-align: middle;
380
+ }
381
+
382
+ .jconfirm .jconfirm-box div.jconfirm-title-c .jconfirm-title:empty {
383
+ display: none;
384
+ }
385
+
386
+ .jconfirm .jconfirm-box div.jconfirm-content-pane {
387
+ margin-bottom: 15px;
388
+ height: auto;
389
+ -webkit-transition: height 0.4s ease-in;
390
+ transition: height 0.4s ease-in;
391
+ display: inline-block;
392
+ width: 100%;
393
+ position: relative;
394
+ overflow-x: hidden;
395
+ overflow-y: auto;
396
+ }
397
+
398
+ .jconfirm .jconfirm-box div.jconfirm-content-pane.no-scroll {
399
+ overflow-y: hidden;
400
+ }
401
+
402
+ .jconfirm .jconfirm-box div.jconfirm-content-pane::-webkit-scrollbar {
403
+ width: 3px;
404
+ }
405
+
406
+ .jconfirm .jconfirm-box div.jconfirm-content-pane::-webkit-scrollbar-track {
407
+ background: rgba(0, 0, 0, 0.1);
408
+ }
409
+
410
+ .jconfirm .jconfirm-box div.jconfirm-content-pane::-webkit-scrollbar-thumb {
411
+ background: #666;
412
+ border-radius: 3px;
413
+ }
414
+
415
+ .jconfirm .jconfirm-box div.jconfirm-content-pane .jconfirm-content {
416
+ overflow: auto;
417
+ }
418
+
419
+ .jconfirm .jconfirm-box div.jconfirm-content-pane .jconfirm-content img {
420
+ max-width: 100%;
421
+ height: auto;
422
+ }
423
+
424
+ .jconfirm .jconfirm-box div.jconfirm-content-pane .jconfirm-content:empty {
425
+ display: none;
426
+ }
427
+
428
+ .jconfirm .jconfirm-box .jconfirm-buttons {
429
+ padding-bottom: 11px;
430
+ }
431
+
432
+ .jconfirm .jconfirm-box .jconfirm-buttons > button {
433
+ margin-bottom: 4px;
434
+ margin-left: 2px;
435
+ margin-right: 2px;
436
+ }
437
+
438
+ .jconfirm .jconfirm-box .jconfirm-buttons button {
439
+ display: inline-block;
440
+ padding: 6px 12px;
441
+ font-size: 14px;
442
+ font-weight: 400;
443
+ line-height: 1.42857143;
444
+ text-align: center;
445
+ white-space: nowrap;
446
+ vertical-align: middle;
447
+ -ms-touch-action: manipulation;
448
+ touch-action: manipulation;
449
+ cursor: pointer;
450
+ -webkit-user-select: none;
451
+ -moz-user-select: none;
452
+ -ms-user-select: none;
453
+ user-select: none;
454
+ border-radius: 4px;
455
+ min-height: 1em;
456
+ -webkit-transition: opacity 0.1s ease, background-color 0.1s ease, color 0.1s ease, background 0.1s ease, -webkit-box-shadow 0.1s ease;
457
+ transition: opacity 0.1s ease, background-color 0.1s ease, color 0.1s ease, background 0.1s ease, -webkit-box-shadow 0.1s ease;
458
+ transition: opacity 0.1s ease, background-color 0.1s ease, color 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
459
+ transition: opacity 0.1s ease, background-color 0.1s ease, color 0.1s ease, box-shadow 0.1s ease, background 0.1s ease, -webkit-box-shadow 0.1s ease;
460
+ -webkit-tap-highlight-color: transparent;
461
+ border: none;
462
+ background-image: none;
463
+ }
464
+
465
+ .jconfirm .jconfirm-box .jconfirm-buttons button.btn-blue {
466
+ background-color: #3498db;
467
+ color: #FFF;
468
+ text-shadow: none;
469
+ -webkit-transition: background .2s;
470
+ transition: background .2s;
471
+ }
472
+
473
+ .jconfirm .jconfirm-box .jconfirm-buttons button.btn-blue:hover {
474
+ background-color: #2980b9;
475
+ color: #FFF;
476
+ }
477
+
478
+ .jconfirm .jconfirm-box .jconfirm-buttons button.btn-green {
479
+ background-color: #2ecc71;
480
+ color: #FFF;
481
+ text-shadow: none;
482
+ -webkit-transition: background .2s;
483
+ transition: background .2s;
484
+ }
485
+
486
+ .jconfirm .jconfirm-box .jconfirm-buttons button.btn-green:hover {
487
+ background-color: #27ae60;
488
+ color: #FFF;
489
+ }
490
+
491
+ .jconfirm .jconfirm-box .jconfirm-buttons button.btn-red {
492
+ background-color: #e74c3c;
493
+ color: #FFF;
494
+ text-shadow: none;
495
+ -webkit-transition: background .2s;
496
+ transition: background .2s;
497
+ }
498
+
499
+ .jconfirm .jconfirm-box .jconfirm-buttons button.btn-red:hover {
500
+ background-color: #c0392b;
501
+ color: #FFF;
502
+ }
503
+
504
+ .jconfirm .jconfirm-box .jconfirm-buttons button.btn-orange {
505
+ background-color: #f1c40f;
506
+ color: #FFF;
507
+ text-shadow: none;
508
+ -webkit-transition: background .2s;
509
+ transition: background .2s;
510
+ }
511
+
512
+ .jconfirm .jconfirm-box .jconfirm-buttons button.btn-orange:hover {
513
+ background-color: #f39c12;
514
+ color: #FFF;
515
+ }
516
+
517
+ .jconfirm .jconfirm-box .jconfirm-buttons button.btn-default {
518
+ background-color: #ecf0f1;
519
+ color: #000;
520
+ text-shadow: none;
521
+ -webkit-transition: background .2s;
522
+ transition: background .2s;
523
+ }
524
+
525
+ .jconfirm .jconfirm-box .jconfirm-buttons button.btn-default:hover {
526
+ background-color: #bdc3c7;
527
+ color: #000;
528
+ }
529
+
530
+ .jconfirm .jconfirm-box .jconfirm-buttons button.btn-purple {
531
+ background-color: #9b59b6;
532
+ color: #FFF;
533
+ text-shadow: none;
534
+ -webkit-transition: background .2s;
535
+ transition: background .2s;
536
+ }
537
+
538
+ .jconfirm .jconfirm-box .jconfirm-buttons button.btn-purple:hover {
539
+ background-color: #8e44ad;
540
+ color: #FFF;
541
+ }
542
+
543
+ .jconfirm .jconfirm-box .jconfirm-buttons button.btn-dark {
544
+ background-color: #34495e;
545
+ color: #FFF;
546
+ text-shadow: none;
547
+ -webkit-transition: background .2s;
548
+ transition: background .2s;
549
+ }
550
+
551
+ .jconfirm .jconfirm-box .jconfirm-buttons button.btn-dark:hover {
552
+ background-color: #2c3e50;
553
+ color: #FFF;
554
+ }
555
+
556
+ .jconfirm .jconfirm-box.jconfirm-type-red .jconfirm-title-c .jconfirm-icon-c {
557
+ color: #e74c3c !important;
558
+ }
559
+
560
+ .jconfirm .jconfirm-box.jconfirm-type-blue .jconfirm-title-c .jconfirm-icon-c {
561
+ color: #3498db !important;
562
+ }
563
+
564
+ .jconfirm .jconfirm-box.jconfirm-type-green .jconfirm-title-c .jconfirm-icon-c {
565
+ color: #2ecc71 !important;
566
+ }
567
+
568
+ .jconfirm .jconfirm-box.jconfirm-type-purple .jconfirm-title-c .jconfirm-icon-c {
569
+ color: #9b59b6 !important;
570
+ }
571
+
572
+ .jconfirm .jconfirm-box.jconfirm-type-orange .jconfirm-title-c .jconfirm-icon-c {
573
+ color: #f1c40f !important;
574
+ }
575
+
576
+ .jconfirm .jconfirm-box.jconfirm-type-dark .jconfirm-title-c .jconfirm-icon-c {
577
+ color: #34495e !important;
578
+ }
579
+
580
+ .jconfirm .jconfirm-clear {
581
+ clear: both;
582
+ }
583
+
584
+ .jconfirm.jconfirm-rtl {
585
+ direction: rtl;
586
+ }
587
+
588
+ .jconfirm.jconfirm-rtl div.jconfirm-closeIcon {
589
+ left: 5px;
590
+ right: auto;
591
+ }
592
+
593
+ .jconfirm.jconfirm-white .jconfirm-bg,
594
+ .jconfirm.jconfirm-light .jconfirm-bg {
595
+ background-color: #444;
596
+ opacity: .2;
597
+ }
598
+
599
+ .jconfirm.jconfirm-white .jconfirm-box,
600
+ .jconfirm.jconfirm-light .jconfirm-box {
601
+ -webkit-box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
602
+ box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
603
+ border-radius: 5px;
604
+ }
605
+
606
+ .jconfirm.jconfirm-white .jconfirm-box .jconfirm-title-c .jconfirm-icon-c,
607
+ .jconfirm.jconfirm-light .jconfirm-box .jconfirm-title-c .jconfirm-icon-c {
608
+ margin-right: 8px;
609
+ margin-left: 0px;
610
+ }
611
+
612
+ .jconfirm.jconfirm-white .jconfirm-box .jconfirm-buttons,
613
+ .jconfirm.jconfirm-light .jconfirm-box .jconfirm-buttons {
614
+ float: right;
615
+ }
616
+
617
+ .jconfirm.jconfirm-white .jconfirm-box .jconfirm-buttons button,
618
+ .jconfirm.jconfirm-light .jconfirm-box .jconfirm-buttons button {
619
+ text-transform: uppercase;
620
+ font-size: 14px;
621
+ font-weight: bold;
622
+ text-shadow: none;
623
+ }
624
+
625
+ .jconfirm.jconfirm-white .jconfirm-box .jconfirm-buttons button.btn-default,
626
+ .jconfirm.jconfirm-light .jconfirm-box .jconfirm-buttons button.btn-default {
627
+ -webkit-box-shadow: none;
628
+ box-shadow: none;
629
+ color: #333;
630
+ }
631
+
632
+ .jconfirm.jconfirm-white .jconfirm-box .jconfirm-buttons button.btn-default:hover,
633
+ .jconfirm.jconfirm-light .jconfirm-box .jconfirm-buttons button.btn-default:hover {
634
+ background: #ddd;
635
+ }
636
+
637
+ .jconfirm.jconfirm-white.jconfirm-rtl .jconfirm-title-c .jconfirm-icon-c,
638
+ .jconfirm.jconfirm-light.jconfirm-rtl .jconfirm-title-c .jconfirm-icon-c {
639
+ margin-left: 8px;
640
+ margin-right: 0px;
641
+ }
642
+
643
+ .jconfirm.jconfirm-black .jconfirm-bg,
644
+ .jconfirm.jconfirm-dark .jconfirm-bg {
645
+ background-color: darkslategray;
646
+ opacity: .4;
647
+ }
648
+
649
+ .jconfirm.jconfirm-black .jconfirm-box,
650
+ .jconfirm.jconfirm-dark .jconfirm-box {
651
+ -webkit-box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
652
+ box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
653
+ background: #444;
654
+ border-radius: 5px;
655
+ color: white;
656
+ }
657
+
658
+ .jconfirm.jconfirm-black .jconfirm-box .jconfirm-title-c .jconfirm-icon-c,
659
+ .jconfirm.jconfirm-dark .jconfirm-box .jconfirm-title-c .jconfirm-icon-c {
660
+ margin-right: 8px;
661
+ margin-left: 0px;
662
+ }
663
+
664
+ .jconfirm.jconfirm-black .jconfirm-box .jconfirm-buttons,
665
+ .jconfirm.jconfirm-dark .jconfirm-box .jconfirm-buttons {
666
+ float: right;
667
+ }
668
+
669
+ .jconfirm.jconfirm-black .jconfirm-box .jconfirm-buttons button,
670
+ .jconfirm.jconfirm-dark .jconfirm-box .jconfirm-buttons button {
671
+ border: none;
672
+ background-image: none;
673
+ text-transform: uppercase;
674
+ font-size: 14px;
675
+ font-weight: bold;
676
+ text-shadow: none;
677
+ -webkit-transition: background .1s;
678
+ transition: background .1s;
679
+ color: white;
680
+ }
681
+
682
+ .jconfirm.jconfirm-black .jconfirm-box .jconfirm-buttons button.btn-default,
683
+ .jconfirm.jconfirm-dark .jconfirm-box .jconfirm-buttons button.btn-default {
684
+ -webkit-box-shadow: none;
685
+ box-shadow: none;
686
+ color: #fff;
687
+ background: none;
688
+ }
689
+
690
+ .jconfirm.jconfirm-black .jconfirm-box .jconfirm-buttons button.btn-default:hover,
691
+ .jconfirm.jconfirm-dark .jconfirm-box .jconfirm-buttons button.btn-default:hover {
692
+ background: #666;
693
+ }
694
+
695
+ .jconfirm.jconfirm-black.jconfirm-rtl .jconfirm-title-c .jconfirm-icon-c,
696
+ .jconfirm.jconfirm-dark.jconfirm-rtl .jconfirm-title-c .jconfirm-icon-c {
697
+ margin-left: 8px;
698
+ margin-right: 0px;
699
+ }
700
+
701
+ .jconfirm .jconfirm-box.hilight.jconfirm-hilight-shake {
702
+ -webkit-animation: shake 0.82s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
703
+ animation: shake 0.82s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
704
+ -webkit-transform: translate3d(0, 0, 0);
705
+ transform: translate3d(0, 0, 0);
706
+ }
707
+
708
+ .jconfirm .jconfirm-box.hilight.jconfirm-hilight-glow {
709
+ -webkit-animation: glow 0.82s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
710
+ animation: glow 0.82s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
711
+ -webkit-transform: translate3d(0, 0, 0);
712
+ transform: translate3d(0, 0, 0);
713
+ }
714
+
715
+ @-webkit-keyframes shake {
716
+ 10%,
717
+ 90% {
718
+ -webkit-transform: translate3d(-2px, 0, 0);
719
+ transform: translate3d(-2px, 0, 0);
720
+ }
721
+ 20%,
722
+ 80% {
723
+ -webkit-transform: translate3d(4px, 0, 0);
724
+ transform: translate3d(4px, 0, 0);
725
+ }
726
+ 30%,
727
+ 50%,
728
+ 70% {
729
+ -webkit-transform: translate3d(-8px, 0, 0);
730
+ transform: translate3d(-8px, 0, 0);
731
+ }
732
+ 40%,
733
+ 60% {
734
+ -webkit-transform: translate3d(8px, 0, 0);
735
+ transform: translate3d(8px, 0, 0);
736
+ }
737
+ }
738
+
739
+ @keyframes shake {
740
+ 10%,
741
+ 90% {
742
+ -webkit-transform: translate3d(-2px, 0, 0);
743
+ transform: translate3d(-2px, 0, 0);
744
+ }
745
+ 20%,
746
+ 80% {
747
+ -webkit-transform: translate3d(4px, 0, 0);
748
+ transform: translate3d(4px, 0, 0);
749
+ }
750
+ 30%,
751
+ 50%,
752
+ 70% {
753
+ -webkit-transform: translate3d(-8px, 0, 0);
754
+ transform: translate3d(-8px, 0, 0);
755
+ }
756
+ 40%,
757
+ 60% {
758
+ -webkit-transform: translate3d(8px, 0, 0);
759
+ transform: translate3d(8px, 0, 0);
760
+ }
761
+ }
762
+
763
+ @-webkit-keyframes glow {
764
+ 0%,
765
+ 100% {
766
+ -webkit-box-shadow: 0 0 0px red;
767
+ box-shadow: 0 0 0px red;
768
+ }
769
+ 50% {
770
+ -webkit-box-shadow: 0 0 30px red;
771
+ box-shadow: 0 0 30px red;
772
+ }
773
+ }
774
+
775
+ @keyframes glow {
776
+ 0%,
777
+ 100% {
778
+ -webkit-box-shadow: 0 0 0px red;
779
+ box-shadow: 0 0 0px red;
780
+ }
781
+ 50% {
782
+ -webkit-box-shadow: 0 0 30px red;
783
+ box-shadow: 0 0 30px red;
784
+ }
785
+ }
786
+
787
+ /*Transition rules*/
788
+ .jconfirm {
789
+ -webkit-perspective: 400px;
790
+ perspective: 400px;
791
+ }
792
+
793
+ .jconfirm .jconfirm-box {
794
+ opacity: 1;
795
+ -webkit-transition-property: all;
796
+ transition-property: all;
797
+ }
798
+
799
+ .jconfirm .jconfirm-box.jconfirm-animation-top,
800
+ .jconfirm .jconfirm-box.jconfirm-animation-left,
801
+ .jconfirm .jconfirm-box.jconfirm-animation-right,
802
+ .jconfirm .jconfirm-box.jconfirm-animation-bottom,
803
+ .jconfirm .jconfirm-box.jconfirm-animation-opacity,
804
+ .jconfirm .jconfirm-box.jconfirm-animation-zoom,
805
+ .jconfirm .jconfirm-box.jconfirm-animation-scale,
806
+ .jconfirm .jconfirm-box.jconfirm-animation-none,
807
+ .jconfirm .jconfirm-box.jconfirm-animation-rotate,
808
+ .jconfirm .jconfirm-box.jconfirm-animation-rotatex,
809
+ .jconfirm .jconfirm-box.jconfirm-animation-rotatey,
810
+ .jconfirm .jconfirm-box.jconfirm-animation-scaley,
811
+ .jconfirm .jconfirm-box.jconfirm-animation-scalex {
812
+ opacity: 0;
813
+ }
814
+
815
+ .jconfirm .jconfirm-box.jconfirm-animation-rotate {
816
+ -webkit-transform: rotate(90deg);
817
+ transform: rotate(90deg);
818
+ }
819
+
820
+ .jconfirm .jconfirm-box.jconfirm-animation-rotatex {
821
+ -webkit-transform: rotateX(90deg);
822
+ transform: rotateX(90deg);
823
+ -webkit-transform-origin: center;
824
+ transform-origin: center;
825
+ }
826
+
827
+ .jconfirm .jconfirm-box.jconfirm-animation-rotatexr {
828
+ -webkit-transform: rotateX(-90deg);
829
+ transform: rotateX(-90deg);
830
+ -webkit-transform-origin: center;
831
+ transform-origin: center;
832
+ }
833
+
834
+ .jconfirm .jconfirm-box.jconfirm-animation-rotatey {
835
+ -webkit-transform: rotatey(90deg);
836
+ transform: rotatey(90deg);
837
+ -webkit-transform-origin: center;
838
+ transform-origin: center;
839
+ }
840
+
841
+ .jconfirm .jconfirm-box.jconfirm-animation-rotateyr {
842
+ -webkit-transform: rotatey(-90deg);
843
+ transform: rotatey(-90deg);
844
+ -webkit-transform-origin: center;
845
+ transform-origin: center;
846
+ }
847
+
848
+ .jconfirm .jconfirm-box.jconfirm-animation-scaley {
849
+ -webkit-transform: scaley(1.5);
850
+ transform: scaley(1.5);
851
+ -webkit-transform-origin: center;
852
+ transform-origin: center;
853
+ }
854
+
855
+ .jconfirm .jconfirm-box.jconfirm-animation-scalex {
856
+ -webkit-transform: scalex(1.5);
857
+ transform: scalex(1.5);
858
+ -webkit-transform-origin: center;
859
+ transform-origin: center;
860
+ }
861
+
862
+ .jconfirm .jconfirm-box.jconfirm-animation-top {
863
+ -webkit-transform: translate(0px, -100px);
864
+ transform: translate(0px, -100px);
865
+ }
866
+
867
+ .jconfirm .jconfirm-box.jconfirm-animation-left {
868
+ -webkit-transform: translate(-100px, 0px);
869
+ transform: translate(-100px, 0px);
870
+ }
871
+
872
+ .jconfirm .jconfirm-box.jconfirm-animation-right {
873
+ -webkit-transform: translate(100px, 0px);
874
+ transform: translate(100px, 0px);
875
+ }
876
+
877
+ .jconfirm .jconfirm-box.jconfirm-animation-bottom {
878
+ -webkit-transform: translate(0px, 100px);
879
+ transform: translate(0px, 100px);
880
+ }
881
+
882
+ .jconfirm .jconfirm-box.jconfirm-animation-zoom {
883
+ -webkit-transform: scale(1.2);
884
+ transform: scale(1.2);
885
+ }
886
+
887
+ .jconfirm .jconfirm-box.jconfirm-animation-scale {
888
+ -webkit-transform: scale(0.5);
889
+ transform: scale(0.5);
890
+ }
891
+
892
+ .jconfirm .jconfirm-box.jconfirm-animation-none {
893
+ visibility: hidden;
894
+ }
895
+
896
+ .jconfirm.jconfirm-supervan .jconfirm-bg {
897
+ background-color: rgba(54, 70, 93, 0.95);
898
+ }
899
+
900
+ .jconfirm.jconfirm-supervan .jconfirm-box {
901
+ background-color: transparent;
902
+ }
903
+
904
+ .jconfirm.jconfirm-supervan .jconfirm-box.jconfirm-type-blue {
905
+ border: none;
906
+ }
907
+
908
+ .jconfirm.jconfirm-supervan .jconfirm-box.jconfirm-type-green {
909
+ border: none;
910
+ }
911
+
912
+ .jconfirm.jconfirm-supervan .jconfirm-box.jconfirm-type-red {
913
+ border: none;
914
+ }
915
+
916
+ .jconfirm.jconfirm-supervan .jconfirm-box.jconfirm-type-orange {
917
+ border: none;
918
+ }
919
+
920
+ .jconfirm.jconfirm-supervan .jconfirm-box.jconfirm-type-purple {
921
+ border: none;
922
+ }
923
+
924
+ .jconfirm.jconfirm-supervan .jconfirm-box.jconfirm-type-dark {
925
+ border: none;
926
+ }
927
+
928
+ .jconfirm.jconfirm-supervan .jconfirm-box div.jconfirm-closeIcon {
929
+ color: white;
930
+ }
931
+
932
+ .jconfirm.jconfirm-supervan .jconfirm-box div.jconfirm-title-c {
933
+ text-align: center;
934
+ color: white;
935
+ font-size: 28px;
936
+ font-weight: normal;
937
+ }
938
+
939
+ .jconfirm.jconfirm-supervan .jconfirm-box div.jconfirm-title-c > * {
940
+ padding-bottom: 25px;
941
+ }
942
+
943
+ .jconfirm.jconfirm-supervan .jconfirm-box div.jconfirm-title-c .jconfirm-icon-c {
944
+ margin-right: 8px;
945
+ margin-left: 0px;
946
+ }
947
+
948
+ .jconfirm.jconfirm-supervan .jconfirm-box div.jconfirm-content-pane {
949
+ margin-bottom: 25px;
950
+ }
951
+
952
+ .jconfirm.jconfirm-supervan .jconfirm-box div.jconfirm-content {
953
+ text-align: center;
954
+ color: white;
955
+ }
956
+
957
+ .jconfirm.jconfirm-supervan .jconfirm-box .jconfirm-buttons {
958
+ text-align: center;
959
+ }
960
+
961
+ .jconfirm.jconfirm-supervan .jconfirm-box .jconfirm-buttons button {
962
+ font-size: 16px;
963
+ border-radius: 2px;
964
+ background: #303f53;
965
+ text-shadow: none;
966
+ border: none;
967
+ color: white;
968
+ padding: 10px;
969
+ min-width: 100px;
970
+ }
971
+
972
+ .jconfirm.jconfirm-supervan.jconfirm-rtl .jconfirm-box div.jconfirm-title-c .jconfirm-icon-c {
973
+ margin-left: 8px;
974
+ margin-right: 0px;
975
+ }
976
+
977
+ .jconfirm.jconfirm-material .jconfirm-bg {
978
+ background-color: rgba(0, 0, 0, 0.67);
979
+ }
980
+
981
+ .jconfirm.jconfirm-material .jconfirm-box {
982
+ background-color: white;
983
+ -webkit-box-shadow: 0 7px 8px -4px rgba(0, 0, 0, 0.2), 0 13px 19px 2px rgba(0, 0, 0, 0.14), 0 5px 24px 4px rgba(0, 0, 0, 0.12);
984
+ box-shadow: 0 7px 8px -4px rgba(0, 0, 0, 0.2), 0 13px 19px 2px rgba(0, 0, 0, 0.14), 0 5px 24px 4px rgba(0, 0, 0, 0.12);
985
+ padding: 30px 25px 10px 25px;
986
+ }
987
+
988
+ .jconfirm.jconfirm-material .jconfirm-box .jconfirm-title-c .jconfirm-icon-c {
989
+ margin-right: 8px;
990
+ margin-left: 0px;
991
+ }
992
+
993
+ .jconfirm.jconfirm-material .jconfirm-box div.jconfirm-closeIcon {
994
+ color: rgba(0, 0, 0, 0.87);
995
+ }
996
+
997
+ .jconfirm.jconfirm-material .jconfirm-box div.jconfirm-title-c {
998
+ color: rgba(0, 0, 0, 0.87);
999
+ font-size: 22px;
1000
+ font-weight: bold;
1001
+ }
1002
+
1003
+ .jconfirm.jconfirm-material .jconfirm-box div.jconfirm-content {
1004
+ color: rgba(0, 0, 0, 0.87);
1005
+ }
1006
+
1007
+ .jconfirm.jconfirm-material .jconfirm-box .jconfirm-buttons {
1008
+ text-align: right;
1009
+ }
1010
+
1011
+ .jconfirm.jconfirm-material .jconfirm-box .jconfirm-buttons button {
1012
+ text-transform: uppercase;
1013
+ font-weight: 500;
1014
+ }
1015
+
1016
+ .jconfirm.jconfirm-material.jconfirm-rtl .jconfirm-title-c .jconfirm-icon-c {
1017
+ margin-left: 8px;
1018
+ margin-right: 0px;
1019
+ }
1020
+
1021
+ .jconfirm.jconfirm-bootstrap .jconfirm-bg {
1022
+ background-color: rgba(0, 0, 0, 0.21);
1023
+ }
1024
+
1025
+ .jconfirm.jconfirm-bootstrap .jconfirm-box {
1026
+ background-color: white;
1027
+ -webkit-box-shadow: 0 3px 8px 0px rgba(0, 0, 0, 0.2);
1028
+ box-shadow: 0 3px 8px 0px rgba(0, 0, 0, 0.2);
1029
+ border: solid 1px rgba(0, 0, 0, 0.4);
1030
+ padding: 15px 0 0;
1031
+ }
1032
+
1033
+ .jconfirm.jconfirm-bootstrap .jconfirm-box .jconfirm-title-c .jconfirm-icon-c {
1034
+ margin-right: 8px;
1035
+ margin-left: 0px;
1036
+ }
1037
+
1038
+ .jconfirm.jconfirm-bootstrap .jconfirm-box div.jconfirm-closeIcon {
1039
+ color: rgba(0, 0, 0, 0.87);
1040
+ }
1041
+
1042
+ .jconfirm.jconfirm-bootstrap .jconfirm-box div.jconfirm-title-c {
1043
+ color: rgba(0, 0, 0, 0.87);
1044
+ font-size: 22px;
1045
+ font-weight: bold;
1046
+ padding-left: 15px;
1047
+ padding-right: 15px;
1048
+ }
1049
+
1050
+ .jconfirm.jconfirm-bootstrap .jconfirm-box div.jconfirm-content {
1051
+ color: rgba(0, 0, 0, 0.87);
1052
+ padding: 0px 15px;
1053
+ }
1054
+
1055
+ .jconfirm.jconfirm-bootstrap .jconfirm-box .jconfirm-buttons {
1056
+ text-align: right;
1057
+ padding: 10px;
1058
+ margin: -5px 0 0px;
1059
+ border-top: solid 1px #ddd;
1060
+ overflow: hidden;
1061
+ border-radius: 0 0 4px 4px;
1062
+ }
1063
+
1064
+ .jconfirm.jconfirm-bootstrap .jconfirm-box .jconfirm-buttons button {
1065
+ font-weight: 500;
1066
+ }
1067
+
1068
+ .jconfirm.jconfirm-bootstrap.jconfirm-rtl .jconfirm-title-c .jconfirm-icon-c {
1069
+ margin-left: 8px;
1070
+ margin-right: 0px;
1071
+ }
1072
+
1073
+ .jconfirm.jconfirm-modern .jconfirm-bg {
1074
+ background-color: slategray;
1075
+ opacity: .6;
1076
+ }
1077
+
1078
+ .jconfirm.jconfirm-modern .jconfirm-box {
1079
+ background-color: white;
1080
+ -webkit-box-shadow: 0 7px 8px -4px rgba(0, 0, 0, 0.2), 0 13px 19px 2px rgba(0, 0, 0, 0.14), 0 5px 24px 4px rgba(0, 0, 0, 0.12);
1081
+ box-shadow: 0 7px 8px -4px rgba(0, 0, 0, 0.2), 0 13px 19px 2px rgba(0, 0, 0, 0.14), 0 5px 24px 4px rgba(0, 0, 0, 0.12);
1082
+ padding: 30px 30px 15px;
1083
+ }
1084
+
1085
+ .jconfirm.jconfirm-modern .jconfirm-box div.jconfirm-closeIcon {
1086
+ color: rgba(0, 0, 0, 0.87);
1087
+ top: 15px;
1088
+ right: 15px;
1089
+ }
1090
+
1091
+ .jconfirm.jconfirm-modern .jconfirm-box div.jconfirm-title-c {
1092
+ color: rgba(0, 0, 0, 0.87);
1093
+ font-size: 24px;
1094
+ font-weight: bold;
1095
+ text-align: center;
1096
+ margin-bottom: 10px;
1097
+ }
1098
+
1099
+ .jconfirm.jconfirm-modern .jconfirm-box div.jconfirm-title-c .jconfirm-icon-c {
1100
+ -webkit-transition: -webkit-transform .5s;
1101
+ transition: -webkit-transform .5s;
1102
+ transition: transform .5s;
1103
+ transition: transform .5s, -webkit-transform .5s;
1104
+ -webkit-transform: scale(0);
1105
+ transform: scale(0);
1106
+ display: block;
1107
+ margin-right: 0px;
1108
+ margin-left: 0px;
1109
+ margin-bottom: 10px;
1110
+ font-size: 69px;
1111
+ color: #aaa;
1112
+ }
1113
+
1114
+ .jconfirm.jconfirm-modern .jconfirm-box div.jconfirm-content {
1115
+ text-align: center;
1116
+ font-size: 15px;
1117
+ color: #777;
1118
+ margin-bottom: 25px;
1119
+ }
1120
+
1121
+ .jconfirm.jconfirm-modern .jconfirm-box .jconfirm-buttons {
1122
+ text-align: center;
1123
+ }
1124
+
1125
+ .jconfirm.jconfirm-modern .jconfirm-box .jconfirm-buttons button {
1126
+ font-weight: bold;
1127
+ text-transform: uppercase;
1128
+ -webkit-transition: background .1s;
1129
+ transition: background .1s;
1130
+ padding: 10px 20px;
1131
+ }
1132
+
1133
+ .jconfirm.jconfirm-modern .jconfirm-box .jconfirm-buttons button + button {
1134
+ margin-left: 4px;
1135
+ }
1136
+
1137
+ .jconfirm.jconfirm-modern.jconfirm-open .jconfirm-box .jconfirm-title-c .jconfirm-icon-c {
1138
+ -webkit-transform: scale(1);
1139
+ transform: scale(1);
1140
+ }
assets/css/jquery-confirm/jquery-confirm.min.css ADDED
@@ -0,0 +1,9 @@
1
+ /*!
2
+ * jquery-confirm v3.3.4 (http://craftpip.github.io/jquery-confirm/)
3
+ * Author: boniface pereira
4
+ * Website: www.craftpip.com
5
+ * Contact: hey@craftpip.com
6
+ *
7
+ * Copyright 2013-2019 jquery-confirm
8
+ * Licensed under MIT (https://github.com/craftpip/jquery-confirm/blob/master/LICENSE)
9
+ */@-webkit-keyframes jconfirm-spin{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes jconfirm-spin{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}body[class*=jconfirm-no-scroll-]{overflow:hidden!important}.jconfirm{position:fixed;top:0;left:0;right:0;bottom:0;z-index:99999999;font-family:inherit;overflow:hidden}.jconfirm .jconfirm-bg{position:fixed;top:0;left:0;right:0;bottom:0;-webkit-transition:opacity .4s;transition:opacity .4s}.jconfirm .jconfirm-bg.jconfirm-bg-h{opacity:0!important}.jconfirm .jconfirm-scrollpane{-webkit-perspective:500px;perspective:500px;-webkit-perspective-origin:center;perspective-origin:center;display:table;width:100%;height:100%}.jconfirm .jconfirm-row{display:table-row;width:100%}.jconfirm .jconfirm-cell{display:table-cell;vertical-align:middle}.jconfirm .jconfirm-holder{max-height:100%;padding:50px 0}.jconfirm .jconfirm-box-container{-webkit-transition:-webkit-transform;transition:-webkit-transform;transition:transform;transition:transform,-webkit-transform}.jconfirm .jconfirm-box-container.jconfirm-no-transition{-webkit-transition:none!important;transition:none!important}.jconfirm .jconfirm-box{background:white;border-radius:4px;position:relative;outline:0;padding:15px 15px 0;overflow:hidden;margin-left:auto;margin-right:auto}@-webkit-keyframes type-blue{1%,100%{border-color:#3498db}50%{border-color:#5faee3}}@keyframes type-blue{1%,100%{border-color:#3498db}50%{border-color:#5faee3}}@-webkit-keyframes type-green{1%,100%{border-color:#2ecc71}50%{border-color:#54d98c}}@keyframes type-green{1%,100%{border-color:#2ecc71}50%{border-color:#54d98c}}@-webkit-keyframes type-red{1%,100%{border-color:#e74c3c}50%{border-color:#ed7669}}@keyframes type-red{1%,100%{border-color:#e74c3c}50%{border-color:#ed7669}}@-webkit-keyframes type-orange{1%,100%{border-color:#f1c40f}50%{border-color:#f4d03f}}@keyframes type-orange{1%,100%{border-color:#f1c40f}50%{border-color:#f4d03f}}@-webkit-keyframes type-purple{1%,100%{border-color:#9b59b6}50%{border-color:#b07cc6}}@keyframes type-purple{1%,100%{border-color:#9b59b6}50%{border-color:#b07cc6}}@-webkit-keyframes type-dark{1%,100%{border-color:#34495e}50%{border-color:#46627f}}@keyframes type-dark{1%,100%{border-color:#34495e}50%{border-color:#46627f}}.jconfirm .jconfirm-box.jconfirm-type-animated{-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.jconfirm .jconfirm-box.jconfirm-type-blue{border-top:solid 7px #3498db;-webkit-animation-name:type-blue;animation-name:type-blue}.jconfirm .jconfirm-box.jconfirm-type-green{border-top:solid 7px #2ecc71;-webkit-animation-name:type-green;animation-name:type-green}.jconfirm .jconfirm-box.jconfirm-type-red{border-top:solid 7px #e74c3c;-webkit-animation-name:type-red;animation-name:type-red}.jconfirm .jconfirm-box.jconfirm-type-orange{border-top:solid 7px #f1c40f;-webkit-animation-name:type-orange;animation-name:type-orange}.jconfirm .jconfirm-box.jconfirm-type-purple{border-top:solid 7px #9b59b6;-webkit-animation-name:type-purple;animation-name:type-purple}.jconfirm .jconfirm-box.jconfirm-type-dark{border-top:solid 7px #34495e;-webkit-animation-name:type-dark;animation-name:type-dark}.jconfirm .jconfirm-box.loading{height:120px}.jconfirm .jconfirm-box.loading:before{content:'';position:absolute;left:0;background:white;right:0;top:0;bottom:0;border-radius:10px;z-index:1}.jconfirm .jconfirm-box.loading:after{opacity:.6;content:'';height:30px;width:30px;border:solid 3px transparent;position:absolute;left:50%;margin-left:-15px;border-radius:50%;-webkit-animation:jconfirm-spin 1s infinite linear;animation:jconfirm-spin 1s infinite linear;border-bottom-color:dodgerblue;top:50%;margin-top:-15px;z-index:2}.jconfirm .jconfirm-box div.jconfirm-closeIcon{height:20px;width:20px;position:absolute;top:10px;right:10px;cursor:pointer;opacity:.6;text-align:center;font-size:27px!important;line-height:14px!important;display:none;z-index:1}.jconfirm .jconfirm-box div.jconfirm-closeIcon:empty{display:none}.jconfirm .jconfirm-box div.jconfirm-closeIcon .fa{font-size:16px}.jconfirm .jconfirm-box div.jconfirm-closeIcon .glyphicon{font-size:16px}.jconfirm .jconfirm-box div.jconfirm-closeIcon .zmdi{font-size:16px}.jconfirm .jconfirm-box div.jconfirm-closeIcon:hover{opacity:1}.jconfirm .jconfirm-box div.jconfirm-title-c{display:block;font-size:22px;line-height:20px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default;padding-bottom:15px}.jconfirm .jconfirm-box div.jconfirm-title-c.jconfirm-hand{cursor:move}.jconfirm .jconfirm-box div.jconfirm-title-c .jconfirm-icon-c{font-size:inherit;display:inline-block;vertical-align:middle}.jconfirm .jconfirm-box div.jconfirm-title-c .jconfirm-icon-c i{vertical-align:middle}.jconfirm .jconfirm-box div.jconfirm-title-c .jconfirm-icon-c:empty{display:none}.jconfirm .jconfirm-box div.jconfirm-title-c .jconfirm-title{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:inherit;font-family:inherit;display:inline-block;vertical-align:middle}.jconfirm .jconfirm-box div.jconfirm-title-c .jconfirm-title:empty{display:none}.jconfirm .jconfirm-box div.jconfirm-content-pane{margin-bottom:15px;height:auto;-webkit-transition:height .4s ease-in;transition:height .4s ease-in;display:inline-block;width:100%;position:relative;overflow-x:hidden;overflow-y:auto}.jconfirm .jconfirm-box div.jconfirm-content-pane.no-scroll{overflow-y:hidden}.jconfirm .jconfirm-box div.jconfirm-content-pane::-webkit-scrollbar{width:3px}.jconfirm .jconfirm-box div.jconfirm-content-pane::-webkit-scrollbar-track{background:rgba(0,0,0,0.1)}.jconfirm .jconfirm-box div.jconfirm-content-pane::-webkit-scrollbar-thumb{background:#666;border-radius:3px}.jconfirm .jconfirm-box div.jconfirm-content-pane .jconfirm-content{overflow:auto}.jconfirm .jconfirm-box div.jconfirm-content-pane .jconfirm-content img{max-width:100%;height:auto}.jconfirm .jconfirm-box div.jconfirm-content-pane .jconfirm-content:empty{display:none}.jconfirm .jconfirm-box .jconfirm-buttons{padding-bottom:11px}.jconfirm .jconfirm-box .jconfirm-buttons>button{margin-bottom:4px;margin-left:2px;margin-right:2px}.jconfirm .jconfirm-box .jconfirm-buttons button{display:inline-block;padding:6px 12px;font-size:14px;font-weight:400;line-height:1.42857143;text-align:center;white-space:nowrap;vertical-align:middle;-ms-touch-action:manipulation;touch-action:manipulation;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-radius:4px;min-height:1em;-webkit-transition:opacity .1s ease,background-color .1s ease,color .1s ease,background .1s ease,-webkit-box-shadow .1s ease;transition:opacity .1s ease,background-color .1s ease,color .1s ease,background .1s ease,-webkit-box-shadow .1s ease;transition:opacity .1s ease,background-color .1s ease,color .1s ease,box-shadow .1s ease,background .1s ease;transition:opacity .1s ease,background-color .1s ease,color .1s ease,box-shadow .1s ease,background .1s ease,-webkit-box-shadow .1s ease;-webkit-tap-highlight-color:transparent;border:0;background-image:none}.jconfirm .jconfirm-box .jconfirm-buttons button.btn-blue{background-color:#3498db;color:#FFF;text-shadow:none;-webkit-transition:background .2s;transition:background .2s}.jconfirm .jconfirm-box .jconfirm-buttons button.btn-blue:hover{background-color:#2980b9;color:#FFF}.jconfirm .jconfirm-box .jconfirm-buttons button.btn-green{background-color:#2ecc71;color:#FFF;text-shadow:none;-webkit-transition:background .2s;transition:background .2s}.jconfirm .jconfirm-box .jconfirm-buttons button.btn-green:hover{background-color:#27ae60;color:#FFF}.jconfirm .jconfirm-box .jconfirm-buttons button.btn-red{background-color:#e74c3c;color:#FFF;text-shadow:none;-webkit-transition:background .2s;transition:background .2s}.jconfirm .jconfirm-box .jconfirm-buttons button.btn-red:hover{background-color:#c0392b;color:#FFF}.jconfirm .jconfirm-box .jconfirm-buttons button.btn-orange{background-color:#f1c40f;color:#FFF;text-shadow:none;-webkit-transition:background .2s;transition:background .2s}.jconfirm .jconfirm-box .jconfirm-buttons button.btn-orange:hover{background-color:#f39c12;color:#FFF}.jconfirm .jconfirm-box .jconfirm-buttons button.btn-default{background-color:#ecf0f1;color:#000;text-shadow:none;-webkit-transition:background .2s;transition:background .2s}.jconfirm .jconfirm-box .jconfirm-buttons button.btn-default:hover{background-color:#bdc3c7;color:#000}.jconfirm .jconfirm-box .jconfirm-buttons button.btn-purple{background-color:#9b59b6;color:#FFF;text-shadow:none;-webkit-transition:background .2s;transition:background .2s}.jconfirm .jconfirm-box .jconfirm-buttons button.btn-purple:hover{background-color:#8e44ad;color:#FFF}.jconfirm .jconfirm-box .jconfirm-buttons button.btn-dark{background-color:#34495e;color:#FFF;text-shadow:none;-webkit-transition:background .2s;transition:background .2s}.jconfirm .jconfirm-box .jconfirm-buttons button.btn-dark:hover{background-color:#2c3e50;color:#FFF}.jconfirm .jconfirm-box.jconfirm-type-red .jconfirm-title-c .jconfirm-icon-c{color:#e74c3c!important}.jconfirm .jconfirm-box.jconfirm-type-blue .jconfirm-title-c .jconfirm-icon-c{color:#3498db!important}.jconfirm .jconfirm-box.jconfirm-type-green .jconfirm-title-c .jconfirm-icon-c{color:#2ecc71!important}.jconfirm .jconfirm-box.jconfirm-type-purple .jconfirm-title-c .jconfirm-icon-c{color:#9b59b6!important}.jconfirm .jconfirm-box.jconfirm-type-orange .jconfirm-title-c .jconfirm-icon-c{color:#f1c40f!important}.jconfirm .jconfirm-box.jconfirm-type-dark .jconfirm-title-c .jconfirm-icon-c{color:#34495e!important}.jconfirm .jconfirm-clear{clear:both}.jconfirm.jconfirm-rtl{direction:rtl}.jconfirm.jconfirm-rtl div.jconfirm-closeIcon{left:5px;right:auto}.jconfirm.jconfirm-white .jconfirm-bg,.jconfirm.jconfirm-light .jconfirm-bg{background-color:#444;opacity:.2}.jconfirm.jconfirm-white .jconfirm-box,.jconfirm.jconfirm-light .jconfirm-box{-webkit-box-shadow:0 2px 6px rgba(0,0,0,0.2);box-shadow:0 2px 6px rgba(0,0,0,0.2);border-radius:5px}.jconfirm.jconfirm-white .jconfirm-box .jconfirm-title-c .jconfirm-icon-c,.jconfirm.jconfirm-light .jconfirm-box .jconfirm-title-c .jconfirm-icon-c{margin-right:8px;margin-left:0}.jconfirm.jconfirm-white .jconfirm-box .jconfirm-buttons,.jconfirm.jconfirm-light .jconfirm-box .jconfirm-buttons{float:right}.jconfirm.jconfirm-white .jconfirm-box .jconfirm-buttons button,.jconfirm.jconfirm-light .jconfirm-box .jconfirm-buttons button{text-transform:uppercase;font-size:14px;font-weight:bold;text-shadow:none}.jconfirm.jconfirm-white .jconfirm-box .jconfirm-buttons button.btn-default,.jconfirm.jconfirm-light .jconfirm-box .jconfirm-buttons button.btn-default{-webkit-box-shadow:none;box-shadow:none;color:#333}.jconfirm.jconfirm-white .jconfirm-box .jconfirm-buttons button.btn-default:hover,.jconfirm.jconfirm-light .jconfirm-box .jconfirm-buttons button.btn-default:hover{background:#ddd}.jconfirm.jconfirm-white.jconfirm-rtl .jconfirm-title-c .jconfirm-icon-c,.jconfirm.jconfirm-light.jconfirm-rtl .jconfirm-title-c .jconfirm-icon-c{margin-left:8px;margin-right:0}.jconfirm.jconfirm-black .jconfirm-bg,.jconfirm.jconfirm-dark .jconfirm-bg{background-color:darkslategray;opacity:.4}.jconfirm.jconfirm-black .jconfirm-box,.jconfirm.jconfirm-dark .jconfirm-box{-webkit-box-shadow:0 2px 6px rgba(0,0,0,0.2);box-shadow:0 2px 6px rgba(0,0,0,0.2);background:#444;border-radius:5px;color:white}.jconfirm.jconfirm-black .jconfirm-box .jconfirm-title-c .jconfirm-icon-c,.jconfirm.jconfirm-dark .jconfirm-box .jconfirm-title-c .jconfirm-icon-c{margin-right:8px;margin-left:0}.jconfirm.jconfirm-black .jconfirm-box .jconfirm-buttons,.jconfirm.jconfirm-dark .jconfirm-box .jconfirm-buttons{float:right}.jconfirm.jconfirm-black .jconfirm-box .jconfirm-buttons button,.jconfirm.jconfirm-dark .jconfirm-box .jconfirm-buttons button{border:0;background-image:none;text-transform:uppercase;font-size:14px;font-weight:bold;text-shadow:none;-webkit-transition:background .1s;transition:background .1s;color:white}.jconfirm.jconfirm-black .jconfirm-box .jconfirm-buttons button.btn-default,.jconfirm.jconfirm-dark .jconfirm-box .jconfirm-buttons button.btn-default{-webkit-box-shadow:none;box-shadow:none;color:#fff;background:0}.jconfirm.jconfirm-black .jconfirm-box .jconfirm-buttons button.btn-default:hover,.jconfirm.jconfirm-dark .jconfirm-box .jconfirm-buttons button.btn-default:hover{background:#666}.jconfirm.jconfirm-black.jconfirm-rtl .jconfirm-title-c .jconfirm-icon-c,.jconfirm.jconfirm-dark.jconfirm-rtl .jconfirm-title-c .jconfirm-icon-c{margin-left:8px;margin-right:0}.jconfirm .jconfirm-box.hilight.jconfirm-hilight-shake{-webkit-animation:shake .82s cubic-bezier(0.36,0.07,0.19,0.97) both;animation:shake .82s cubic-bezier(0.36,0.07,0.19,0.97) both;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.jconfirm .jconfirm-box.hilight.jconfirm-hilight-glow{-webkit-animation:glow .82s cubic-bezier(0.36,0.07,0.19,0.97) both;animation:glow .82s cubic-bezier(0.36,0.07,0.19,0.97) both;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}@-webkit-keyframes shake{10%,90%{-webkit-transform:translate3d(-2px,0,0);transform:translate3d(-2px,0,0)}20%,80%{-webkit-transform:translate3d(4px,0,0);transform:translate3d(4px,0,0)}30%,50%,70%{-webkit-transform:translate3d(-8px,0,0);transform:translate3d(-8px,0,0)}40%,60%{-webkit-transform:translate3d(8px,0,0);transform:translate3d(8px,0,0)}}@keyframes shake{10%,90%{-webkit-transform:translate3d(-2px,0,0);transform:translate3d(-2px,0,0)}20%,80%{-webkit-transform:translate3d(4px,0,0);transform:translate3d(4px,0,0)}30%,50%,70%{-webkit-transform:translate3d(-8px,0,0);transform:translate3d(-8px,0,0)}40%,60%{-webkit-transform:translate3d(8px,0,0);transform:translate3d(8px,0,0)}}@-webkit-keyframes glow{0%,100%{-webkit-box-shadow:0 0 0 red;box-shadow:0 0 0 red}50%{-webkit-box-shadow:0 0 30px red;box-shadow:0 0 30px red}}@keyframes glow{0%,100%{-webkit-box-shadow:0 0 0 red;box-shadow:0 0 0 red}50%{-webkit-box-shadow:0 0 30px red;box-shadow:0 0 30px red}}.jconfirm{-webkit-perspective:400px;perspective:400px}.jconfirm .jconfirm-box{opacity:1;-webkit-transition-property:all;transition-property:all}.jconfirm .jconfirm-box.jconfirm-animation-top,.jconfirm .jconfirm-box.jconfirm-animation-left,.jconfirm .jconfirm-box.jconfirm-animation-right,.jconfirm .jconfirm-box.jconfirm-animation-bottom,.jconfirm .jconfirm-box.jconfirm-animation-opacity,.jconfirm .jconfirm-box.jconfirm-animation-zoom,.jconfirm .jconfirm-box.jconfirm-animation-scale,.jconfirm .jconfirm-box.jconfirm-animation-none,.jconfirm .jconfirm-box.jconfirm-animation-rotate,.jconfirm .jconfirm-box.jconfirm-animation-rotatex,.jconfirm .jconfirm-box.jconfirm-animation-rotatey,.jconfirm .jconfirm-box.jconfirm-animation-scaley,.jconfirm .jconfirm-box.jconfirm-animation-scalex{opacity:0}.jconfirm .jconfirm-box.jconfirm-animation-rotate{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.jconfirm .jconfirm-box.jconfirm-animation-rotatex{-webkit-transform:rotateX(90deg);transform:rotateX(90deg);-webkit-transform-origin:center;transform-origin:center}.jconfirm .jconfirm-box.jconfirm-animation-rotatexr{-webkit-transform:rotateX(-90deg);transform:rotateX(-90deg);-webkit-transform-origin:center;transform-origin:center}.jconfirm .jconfirm-box.jconfirm-animation-rotatey{-webkit-transform:rotatey(90deg);transform:rotatey(90deg);-webkit-transform-origin:center;transform-origin:center}.jconfirm .jconfirm-box.jconfirm-animation-rotateyr{-webkit-transform:rotatey(-90deg);transform:rotatey(-90deg);-webkit-transform-origin:center;transform-origin:center}.jconfirm .jconfirm-box.jconfirm-animation-scaley{-webkit-transform:scaley(1.5);transform:scaley(1.5);-webkit-transform-origin:center;transform-origin:center}.jconfirm .jconfirm-box.jconfirm-animation-scalex{-webkit-transform:scalex(1.5);transform:scalex(1.5);-webkit-transform-origin:center;transform-origin:center}.jconfirm .jconfirm-box.jconfirm-animation-top{-webkit-transform:translate(0px,-100px);transform:translate(0px,-100px)}.jconfirm .jconfirm-box.jconfirm-animation-left{-webkit-transform:translate(-100px,0px);transform:translate(-100px,0px)}.jconfirm .jconfirm-box.jconfirm-animation-right{-webkit-transform:translate(100px,0px);transform:translate(100px,0px)}.jconfirm .jconfirm-box.jconfirm-animation-bottom{-webkit-transform:translate(0px,100px);transform:translate(0px,100px)}.jconfirm .jconfirm-box.jconfirm-animation-zoom{-webkit-transform:scale(1.2);transform:scale(1.2)}.jconfirm .jconfirm-box.jconfirm-animation-scale{-webkit-transform:scale(0.5);transform:scale(0.5)}.jconfirm .jconfirm-box.jconfirm-animation-none{visibility:hidden}.jconfirm.jconfirm-supervan .jconfirm-bg{background-color:rgba(54,70,93,0.95)}.jconfirm.jconfirm-supervan .jconfirm-box{background-color:transparent}.jconfirm.jconfirm-supervan .jconfirm-box.jconfirm-type-blue{border:0}.jconfirm.jconfirm-supervan .jconfirm-box.jconfirm-type-green{border:0}.jconfirm.jconfirm-supervan .jconfirm-box.jconfirm-type-red{border:0}.jconfirm.jconfirm-supervan .jconfirm-box.jconfirm-type-orange{border:0}.jconfirm.jconfirm-supervan .jconfirm-box.jconfirm-type-purple{border:0}.jconfirm.jconfirm-supervan .jconfirm-box.jconfirm-type-dark{border:0}.jconfirm.jconfirm-supervan .jconfirm-box div.jconfirm-closeIcon{color:white}.jconfirm.jconfirm-supervan .jconfirm-box div.jconfirm-title-c{text-align:center;color:white;font-size:28px;font-weight:normal}.jconfirm.jconfirm-supervan .jconfirm-box div.jconfirm-title-c>*{padding-bottom:25px}.jconfirm.jconfirm-supervan .jconfirm-box div.jconfirm-title-c .jconfirm-icon-c{margin-right:8px;margin-left:0}.jconfirm.jconfirm-supervan .jconfirm-box div.jconfirm-content-pane{margin-bottom:25px}.jconfirm.jconfirm-supervan .jconfirm-box div.jconfirm-content{text-align:center;color:white}.jconfirm.jconfirm-supervan .jconfirm-box .jconfirm-buttons{text-align:center}.jconfirm.jconfirm-supervan .jconfirm-box .jconfirm-buttons button{font-size:16px;border-radius:2px;background:#303f53;text-shadow:none;border:0;color:white;padding:10px;min-width:100px}.jconfirm.jconfirm-supervan.jconfirm-rtl .jconfirm-box div.jconfirm-title-c .jconfirm-icon-c{margin-left:8px;margin-right:0}.jconfirm.jconfirm-material .jconfirm-bg{background-color:rgba(0,0,0,0.67)}.jconfirm.jconfirm-material .jconfirm-box{background-color:white;-webkit-box-shadow:0 7px 8px -4px rgba(0,0,0,0.2),0 13px 19px 2px rgba(0,0,0,0.14),0 5px 24px 4px rgba(0,0,0,0.12);box-shadow:0 7px 8px -4px rgba(0,0,0,0.2),0 13px 19px 2px rgba(0,0,0,0.14),0 5px 24px 4px rgba(0,0,0,0.12);padding:30px 25px 10px 25px}.jconfirm.jconfirm-material .jconfirm-box .jconfirm-title-c .jconfirm-icon-c{margin-right:8px;margin-left:0}.jconfirm.jconfirm-material .jconfirm-box div.jconfirm-closeIcon{color:rgba(0,0,0,0.87)}.jconfirm.jconfirm-material .jconfirm-box div.jconfirm-title-c{color:rgba(0,0,0,0.87);font-size:22px;font-weight:bold}.jconfirm.jconfirm-material .jconfirm-box div.jconfirm-content{color:rgba(0,0,0,0.87)}.jconfirm.jconfirm-material .jconfirm-box .jconfirm-buttons{text-align:right}.jconfirm.jconfirm-material .jconfirm-box .jconfirm-buttons button{text-transform:uppercase;font-weight:500}.jconfirm.jconfirm-material.jconfirm-rtl .jconfirm-title-c .jconfirm-icon-c{margin-left:8px;margin-right:0}.jconfirm.jconfirm-bootstrap .jconfirm-bg{background-color:rgba(0,0,0,0.21)}.jconfirm.jconfirm-bootstrap .jconfirm-box{background-color:white;-webkit-box-shadow:0 3px 8px 0 rgba(0,0,0,0.2);box-shadow:0 3px 8px 0 rgba(0,0,0,0.2);border:solid 1px rgba(0,0,0,0.4);padding:15px 0 0}.jconfirm.jconfirm-bootstrap .jconfirm-box .jconfirm-title-c .jconfirm-icon-c{margin-right:8px;margin-left:0}.jconfirm.jconfirm-bootstrap .jconfirm-box div.jconfirm-closeIcon{color:rgba(0,0,0,0.87)}.jconfirm.jconfirm-bootstrap .jconfirm-box div.jconfirm-title-c{color:rgba(0,0,0,0.87);font-size:22px;font-weight:bold;padding-left:15px;padding-right:15px}.jconfirm.jconfirm-bootstrap .jconfirm-box div.jconfirm-content{color:rgba(0,0,0,0.87);padding:0 15px}.jconfirm.jconfirm-bootstrap .jconfirm-box .jconfirm-buttons{text-align:right;padding:10px;margin:-5px 0 0;border-top:solid 1px #ddd;overflow:hidden;border-radius:0 0 4px 4px}.jconfirm.jconfirm-bootstrap .jconfirm-box .jconfirm-buttons button{font-weight:500}.jconfirm.jconfirm-bootstrap.jconfirm-rtl .jconfirm-title-c .jconfirm-icon-c{margin-left:8px;margin-right:0}.jconfirm.jconfirm-modern .jconfirm-bg{background-color:slategray;opacity:.6}.jconfirm.jconfirm-modern .jconfirm-box{background-color:white;-webkit-box-shadow:0 7px 8px -4px rgba(0,0,0,0.2),0 13px 19px 2px rgba(0,0,0,0.14),0 5px 24px 4px rgba(0,0,0,0.12);box-shadow:0 7px 8px -4px rgba(0,0,0,0.2),0 13px 19px 2px rgba(0,0,0,0.14),0 5px 24px 4px rgba(0,0,0,0.12);padding:30px 30px 15px}.jconfirm.jconfirm-modern .jconfirm-box div.jconfirm-closeIcon{color:rgba(0,0,0,0.87);top:15px;right:15px}.jconfirm.jconfirm-modern .jconfirm-box div.jconfirm-title-c{color:rgba(0,0,0,0.87);font-size:24px;font-weight:bold;text-align:center;margin-bottom:10px}.jconfirm.jconfirm-modern .jconfirm-box div.jconfirm-title-c .jconfirm-icon-c{-webkit-transition:-webkit-transform .5s;transition:-webkit-transform .5s;transition:transform .5s;transition:transform .5s,-webkit-transform .5s;-webkit-transform:scale(0);transform:scale(0);display:block;margin-right:0;margin-left:0;margin-bottom:10px;font-size:69px;color:#aaa}.jconfirm.jconfirm-modern .jconfirm-box div.jconfirm-content{text-align:center;font-size:15px;color:#777;margin-bottom:25px}.jconfirm.jconfirm-modern .jconfirm-box .jconfirm-buttons{text-align:center}.jconfirm.jconfirm-modern .jconfirm-box .jconfirm-buttons button{font-weight:bold;text-transform:uppercase;-webkit-transition:background .1s;transition:background .1s;padding:10px 20px}.jconfirm.jconfirm-modern .jconfirm-box .jconfirm-buttons button+button{margin-left:4px}.jconfirm.jconfirm-modern.jconfirm-open .jconfirm-box .jconfirm-title-c .jconfirm-icon-c{-webkit-transform:scale(1);transform:scale(1)}
assets/js/admin/demo-importer.js CHANGED
@@ -565,10 +565,31 @@ demos.view.Demo = wp.Backbone.View.extend({
565
return;
566
}
567
568
- if ( ! window.confirm( wp.demos.data.settings.confirmImport ) ) {
569
- return;
570
- }
571
572
wp.updates.maybeRequestFilesystemCredentials( event );
573
574
$( document ).trigger( 'wp-plugin-bulk-install', pluginsList );
@@ -760,10 +781,37 @@ demos.view.Preview = wp.Backbone.View.extend({
760
return;
761
}
762
763
- if ( ! window.confirm( wp.demos.data.settings.confirmImport ) ) {
764
- return;
765
- }
766
767
wp.updates.maybeRequestFilesystemCredentials( event );
768
769
// Disable the next and previous demo.
@@ -799,7 +847,7 @@ demos.view.Preview = wp.Backbone.View.extend({
799
// Display bulk notification for install of plugin.
800
$( document ).on( 'wp-plugin-bulk-install-success wp-plugin-bulk-install-error', function( event, response ) {
801
var $itemRow = $( '[data-slug="' + response.slug + '"]' ),
802
- $bulkActionNotice, itemName;
803
804
if ( 'wp-' + response.install + '-bulk-install-success' === event.type ) {
805
success++;
565
return;
566
}
567
568
+ $.confirm( {
569
+ title : '',
570
+ content: '<div class="demo-import-confirm-message">' + wp.demos.data.settings.confirmImport + '</div>',
571
+ boxWidth: '50%',
572
+ useBootstrap: false,
573
+ buttons: {
574
+ confirm: {
575
+ text: wp.demos.data.l10n.confirmMsg,
576
+ keys: ['enter'],
577
+ btnClass: 'demo-import-confirm-button',
578
+ action: function(){
579
+ _this.processImport( $target, pluginsList, _this );
580
+ }
581
+ },
582
+ cancel: {
583
+ btnClass: 'demo-import-cancel-button',
584
+ action: function() {
585
+ return;
586
+ }
587
+ }
588
+ }
589
+ } );
590
591
+ },
592
+ processImport: function ( $target, pluginsList, _this ) {
593
wp.updates.maybeRequestFilesystemCredentials( event );
594
595
$( document ).trigger( 'wp-plugin-bulk-install', pluginsList );
781
return;
782
}
783
784
+ $.confirm( {
785
+ title : '',
786
+ content: '<div class="demo-import-confirm-message">' + wp.demos.data.settings.confirmImport + '</div>',
787
+ boxWidth: '50%',
788
+ useBootstrap: false,
789
+ buttons: {
790
+ confirm: {
791
+ text: wp.demos.data.l10n.confirmMsg,
792
+ keys: ['enter'],
793
+ btnClass: 'demo-import-confirm-button',
794
+ action: function(){
795
+ _this.processImport( $target, pluginsList, success, error, errorMessages, _this );
796
+ }
797
+ },
798
+ cancel: {
799
+ btnClass: 'demo-import-cancel-button',
800
+ action: function() {
801
+ return;
802
+ }
803
+ }
804
+ },
805
+ onContentReady: function () {
806
+ $( 'body' ).addClass( 'demo-import-message-popup' );
807
+ },
808
+ onDestroy: function () {
809
+ $( 'body' ).removeClass( 'demo-import-message-popup' );
810
+ }
811
+ } );
812
+ },
813
814
+ processImport: function ( $target, pluginsList, success, error, errorMessages, _this ) {
815
wp.updates.maybeRequestFilesystemCredentials( event );
816
817
// Disable the next and previous demo.
847
// Display bulk notification for install of plugin.
848
$( document ).on( 'wp-plugin-bulk-install-success wp-plugin-bulk-install-error', function( event, response ) {
849
var $itemRow = $( '[data-slug="' + response.slug + '"]' ),
850
+ $bulkActionNotice, itemName;
851
852
if ( 'wp-' + response.install + '-bulk-install-success' === event.type ) {
853
success++;
assets/js/admin/demo-importer.min.js CHANGED
@@ -1 +1 @@
1
- window.wp=window.wp||{},function(d){var a,i;(a=wp.demos=wp.demos||{}).data=_demoImporterSettings,i=a.data.l10n,a.isNew=!!a.data.settings.isNew,_.extend(a,{model:{},view:{},routes:{},router:{},template:wp.template}),a.Model=Backbone.Model.extend({initialize:function(){var e;this.set({id:this.get("slug")||this.get("id")}),this.has("sections")&&(e=this.get("sections").description,this.set({description:e}))}}),a.view.Appearance=wp.Backbone.View.extend({el:"#wpbody-content .wrap .theme-browser",window:d(window),page:0,initialize:function(e){_.bindAll(this,"scroller"),this.SearchView=e.SearchView?e.SearchView:a.view.Search,this.window.bind("scroll",_.throttle(this.scroller,300))},render:function(){this.view=new a.view.Demos({collection:this.collection,parent:this}),this.search(),this.$el.removeClass("search-loading"),this.view.render(),this.$el.empty().append(this.view.el).addClass("rendered")},searchContainer:d(".search-form"),search:function(){var e;1!==a.data.demos.length&&(e=new this.SearchView({collection:this.collection,parent:this}),(this.SearchView=e).render(),this.searchContainer.append(d.parseHTML('<label class="screen-reader-text" for="wp-filter-search-input">'+i.search+"</label>")).append(e.el).on("submit",function(e){e.preventDefault()}))},scroller:function(){var e,t=this;this.window.scrollTop(),t.window.height(),e=t.$el.offset().top+t.$el.outerHeight(!1)-t.window.height(),e=Math.round(.9*e)}}),a.Collection=Backbone.Collection.extend({model:a.Model,terms:"",doSearch:function(e){this.terms!==e&&(this.terms=e,0<this.terms.length&&this.search(this.terms),""===this.terms&&(this.reset(a.data.demos),d("body").removeClass("no-results")),this.trigger("demos:update"))},search:function(t){var i,e,r,s,o,n;this.reset(a.data.demos,{silent:!0}),t=(t=t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\amp;")).replace(/ /g,")(?=.*"),i=new RegExp("^(?=.*"+t+").+","i"),0===(e=this.filter(function(e){return s=e.get("name").replace(/(<([^>]+)>)/gi,""),o=e.get("description").replace(/(<([^>]+)>)/gi,""),n=e.get("author").replace(/(<([^>]+)>)/gi,""),r=_.union([s,e.get("id"),o,n,e.get("tags")]),i.test(e.get("author"))&&2<t.length&&e.set("displayAuthor",!0),i.test(r)})).length?this.trigger("query:empty"):d("body").removeClass("no-results"),this.reset(e)},paginate:function(e){var t=this;return e=e||0,t=_(t.rest(20*e)),t=_(t.first(20))},count:!1,query:function(t){var e,i,r,s=this.queries,o=this;if(this.currentQuery.request=t,e=_.find(s,function(e){return _.isEqual(e.request,t)}),(i=_.has(t,"page"))||(this.currentQuery.page=1),e||i){if(i)return this.apiCall(t,i).done(function(e){o.add(e.demos),o.trigger("query:success"),o.loadingDemos=!1}).fail(function(){o.trigger("query:fail")});0===e.demos.length?o.trigger("query:empty"):d("body").removeClass("no-results"),_.isNumber(e.total)&&(this.count=e.total),this.reset(e.demos),e.total||(this.count=this.length),this.trigger("demos:update"),this.trigger("query:success",this.count)}else e=this.apiCall(t).done(function(e){e.demos&&(o.reset(e.demos),r=e.info.results,s.push({demos:e.demos,request:t,total:r})),o.trigger("demos:update"),o.trigger("query:success",r),e.demos&&0===e.demos.length&&o.trigger("query:empty")}).fail(function(){o.trigger("query:fail")})},queries:[],currentQuery:{page:1,request:{}},apiCall:function(e,t){return wp.ajax.send("query-demos",{data:{request:_.extend({per_page:100},e)},beforeSend:function(){t||d("body").addClass("loading-content").removeClass("no-results")}})},loadingDemos:!1}),a.view.Demo=wp.Backbone.View.extend({className:"theme",state:"grid",html:a.template("demo"),events:{click:"preview",keydown:"preview",touchend:"preview",keyup:"addFocus",touchmove:"preventExpand","click .demo-import":"importDemo"},touchDrag:!1,initialize:function(){this.model.on("change",this.render,this)},render:function(){var e=this.model.toJSON();this.$el.html(this.html(e)).attr({tabindex:0,"aria-describedby":e.id+"-action "+e.id+"-name","data-slug":e.id}),this.activeDemo(),this.model.get("displayAuthor")&&this.$el.addClass("display-author")},activeDemo:function(){this.model.get("active")&&this.$el.addClass("active")},addFocus:function(){var e=d(":focus").hasClass("theme")?d(":focus"):d(":focus").parents(".theme");d(".theme.focus").removeClass("focus"),e.addClass("focus")},preventExpand:function(){this.touchDrag=!0},preview:function(e){var t,i,r=this;if(e=e||window.event,!0===this.touchDrag)return this.touchDrag=!1;d(e.target).not(".install-demo-preview").parents(".theme-actions").length||"keydown"===e.type&&13!==e.which&&32!==e.which||"keydown"===e.type&&13!==e.which&&d(":focus").hasClass("button")||(e.preventDefault(),e=e||window.event,a.focusedDemo=this.$el,a.preview=i=new a.view.Preview({model:this.model}),i.render(),this.setNavButtonsState(),1===this.model.collection.length?i.$el.addClass("no-navigation"):i.$el.removeClass("no-navigation"),d("div.wrap").append(i.el),this.listenTo(i,"demo:next",function(){if(t=r.model,_.isUndefined(r.current)||(t=r.current),r.current=r.model.collection.at(r.model.collection.indexOf(t)+1),_.isUndefined(r.current))return r.options.parent.parent.trigger("demo:end"),r.current=t;i.model=r.current,i.render(),this.setNavButtonsState(),d(".next-theme").focus()}).listenTo(i,"demo:previous",function(){t=r.model,0!==r.model.collection.indexOf(r.current)&&(_.isUndefined(r.current)||(t=r.current),r.current=r.model.collection.at(r.model.collection.indexOf(t)-1),_.isUndefined(r.current)||(i.model=r.current,i.render(),this.setNavButtonsState(),d(".previous-theme").focus()))}),this.listenTo(i,"preview:close",function(){r.current=r.model}))},setNavButtonsState:function(){var e=d(".theme-install-overlay"),t=_.isUndefined(this.current)?this.model:this.current,i=e.find(".previous-theme"),r=e.find(".next-theme");0===this.model.collection.indexOf(t)&&(i.addClass("disabled").prop("disabled",!0),r.focus()),_.isUndefined(this.model.collection.at(this.model.collection.indexOf(t)+1))&&(r.addClass("disabled").prop("disabled",!0),i.focus())},importDemo:function(e){var i=this,r=d(e.target),t=d(e.target).data("plugins");e.preventDefault(),r.hasClass("disabled")||r.hasClass("updating-message")||window.confirm(wp.demos.data.settings.confirmImport)&&(wp.updates.maybeRequestFilesystemCredentials(e),d(document).trigger("wp-plugin-bulk-install",t),d.each(t,function(e,t){t.is_active||wp.updates.queue.push({action:"install-plugin",data:{plugin:t.slug,name:t.name,slug:e,demo:r.data("slug")}})}),d(document).on("wp-demo-import-success",function(e,t){i.model.get("id")===t.slug&&(i.render(),i.model.set({imported:!0}))}),wp.updates.queue.push({action:"import-demo",data:{slug:r.data("slug")}}),wp.updates.queueChecker())}}),a.view.Preview=wp.Backbone.View.extend({className:"wp-full-overlay expanded",el:".theme-install-overlay",events:{"click .close-full-overlay":"close","click .collapse-sidebar":"collapse","click .devices button":"previewDevice","click .previous-theme":"previousDemo","click .next-theme":"nextDemo",keyup:"keyEvent","click .demo-import":"importDemo"},html:a.template("demo-preview"),render:function(){var e,t=this,i=this.model.toJSON(),r=d(document.body);r.attr("aria-busy","true"),this.$el.removeClass("iframe-ready").html(this.html(i)),(e=this.$el.data("current-preview-device"))&&t.tooglePreviewDeviceButtons(e),a.router.navigate(a.router.baseUrl(a.router.demoPath+this.model.get("id")),{replace:!1}),this.$el.fadeIn(200,function(){r.addClass("demo-importer-active full-overlay-active")}),this.$el.find("iframe").one("load",function(){t.iframeLoaded()})},iframeLoaded:function(){this.$el.addClass("iframe-ready"),d(document.body).attr("aria-busy","false")},close:function(){return this.$el.fadeOut(200,function(){d("body").removeClass("demo-importer-active full-overlay-active"),a.focusedDemo&&a.focusedDemo.focus()}).removeClass("iframe-ready"),a.router.selectedTab?a.router.navigate(a.router.baseUrl("&browse="+a.router.selectedTab)):a.router.navigate(a.router.baseUrl("")),this.trigger("preview:close"),this.undelegateEvents(),this.unbind(),!1},collapse:function(e){var t=d(e.currentTarget);return"true"===t.attr("aria-expanded")?t.attr({"aria-expanded":"false","aria-label":i.expandSidebar}):t.attr({"aria-expanded":"true","aria-label":i.collapseSidebar}),this.$el.toggleClass("collapsed").toggleClass("expanded"),!1},previewDevice:function(e){var t=d(e.currentTarget).data("device");this.$el.removeClass("preview-desktop preview-tablet preview-mobile").addClass("preview-"+t).data("current-preview-device",t),this.tooglePreviewDeviceButtons(t)},tooglePreviewDeviceButtons:function(e){var t=d(".wp-full-overlay-footer .devices");t.find("button").removeClass("active").attr("aria-pressed",!1),t.find("button.preview-"+e).addClass("active").attr("aria-pressed",!0)},keyEvent:function(e){27===e.keyCode&&(this.undelegateEvents(),this.close()),39===e.keyCode&&_.once(this.nextDemo()),37===e.keyCode&&this.previousDemo()},nextDemo:function(){return this.trigger("demo:next",this.model.cid),!1},previousDemo:function(){return this.trigger("demo:previous",this.model.cid),!1},importDemo:function(e){var o=this,n=d(e.target),t=d(".plugins-list-table").find("#the-list tr"),a=0,l=0,c=[];e.preventDefault(),n.hasClass("disabled")||n.hasClass("updating-message")||window.confirm(wp.demos.data.settings.confirmImport)&&(wp.updates.maybeRequestFilesystemCredentials(e),d(".theme-install-overlay").find(".next-theme, .previous-theme").addClass("disabled"),d(document).trigger("wp-plugin-bulk-install",t),t.each(function(e,t){var i=d(t);i.hasClass("inactive")&&!i.find("notice-error").length&&wp.updates.queue.push({action:"install-plugin",data:{plugin:i.data("plugin"),slug:i.data("slug"),demo:n.data("slug")}})}),d(document).on("wp-plugin-bulk-installing",function(){d(".wp-full-overlay-sidebar-content").animate({scrollTop:d(document).height()})}),d(document).on("wp-plugin-bulk-install-success wp-plugin-bulk-install-error",function(e,t){var i,r,s=d('[data-slug="'+t.slug+'"]');"wp-"+t.install+"-bulk-install-success"===e.type?a++:(r=t.pluginName?t.pluginName:s.find(".plugin-name").text(),l++,c.push(r+": "+t.errorMessage)),wp.updates.adminNotice=wp.template("wp-bulk-installs-admin-notice"),d(".plugins-details .bulk-action-notice").remove(),d(".plugins-details .plugins-info").after(wp.updates.adminNotice({id:"bulk-action-notice",className:"bulk-action-notice notice-alt",successes:a,errors:l,errorMessages:c,type:t.install})),i=d("#bulk-action-notice").on("click","button",function(){d(this).toggleClass("bulk-action-errors-collapsed").attr("aria-expanded",!d(this).hasClass("bulk-action-errors-collapsed")),i.find(".bulk-action-errors").toggleClass("hidden")}),wp.updates.queue.length||(0<l?n.removeClass("updating-message").text(n.data("originaltext")):(o.model.set({requiredPlugins:!1}),d(".theme-install-overlay").find(".next-theme, .previous-theme").addClass("disabled")))}),d(document).on("wp-updates-notice-added",function(){wp.updates.adminNotice=wp.template("wp-updates-admin-notice")}),d(document).on("wp-demo-import-success",function(e,t){o.model.get("id")===t.slug&&o.model.set({imported:!0})}),wp.updates.queue.push({action:"import-demo",data:{slug:n.data("slug")}}),wp.updates.queueChecker())}}),a.view.Demos=wp.Backbone.View.extend({className:"themes wp-clearfix",$overlay:d("div.theme-overlay"),index:0,count:d(".wrap .demo-count"),liveDemoCount:0,initialize:function(e){var t=this;this.parent=e.parent,this.setView("grid"),t.importedDemo(),this.listenTo(t.collection,"demos:update",function(){t.parent.page=0,t.importedDemo(),t.render(this)}),this.listenTo(t.collection,"query:success",function(e){_.isNumber(e)?(t.count.text(e),t.announceSearchResults(e)):(t.count.text(t.collection.length),t.announceSearchResults(t.collection.length))}),this.listenTo(t.collection,"query:empty",function(){d("body").addClass("no-results")}),this.listenTo(this.parent,"demo:scroll",function(){t.renderDemos(t.parent.page)})},render:function(){this.$el.empty(),0<this.options.collection.size()&&this.renderDemos(this.parent.page),this.liveDemoCount=this.collection.count?this.collection.count:this.collection.length,this.count.text(this.liveDemoCount)},renderDemos:function(e){var t=this;t.instance=t.collection.paginate(e),0!==t.instance.size()?(a.isNew&&1<=e&&d(".add-new-theme").remove(),t.instance.each(function(e){t.demo=new a.view.Demo({model:e,parent:t}),t.demo.render(),t.$el.append(t.demo.el)}),a.isNew&&a.data.settings.suggestURI&&this.$el.append('<div class="theme add-new-theme"><a href="'+a.data.settings.suggestURI+'" target="blank"><div class="theme-screenshot"><span></span></div><h2 class="theme-name">'+i.suggestNew+"</h2></a></div>"),this.parent.page++):this.parent.trigger("demo:end")},importedDemo:function(){var e;(e=this.collection.findWhere({active:!0}))&&(this.collection.remove(e),this.collection.add(e,{at:0}))},setView:function(e){return e},announceSearchResults:function(e){0===e?wp.a11y.speak(i.noDemosFound):wp.a11y.speak(i.demosFound.replace("%d",e))}}),a.view.Search=wp.Backbone.View.extend({tagName:"input",className:"wp-filter-search",id:"wp-filter-search-input",searching:!1,attributes:{placeholder:i.searchPlaceholder,type:"search","aria-describedby":"live-search-desc"},events:{input:"search",keyup:"search",blur:"pushState"},initialize:function(e){this.parent=e.parent,this.listenTo(this.parent,"demo:close",function(){this.searching=!1})},search:function(e){"keyup"===e.type&&27===e.which&&(e.target.value=""),this.doSearch(e)},doSearch:function(e){var t={};this.collection.doSearch(e.target.value.replace(/\+/g," ")),this.searching&&13!==e.which?t.replace=!0:this.searching=!0,e.target.value?a.router.navigate(a.router.baseUrl(a.router.searchPath+e.target.value),t):a.router.navigate(a.router.baseUrl(""))},pushState:function(e){var t=a.router.baseUrl("");e.target.value&&(t=a.router.baseUrl(a.router.searchPath+encodeURIComponent(e.target.value))),this.searching=!1,a.router.navigate(t)}}),a.Router=Backbone.Router.extend({routes:{"themes.php?page=demo-importer&demo=:slug":"preview","themes.php?page=demo-importer&browse=:sort":"sort","themes.php?page=demo-importer&search=:query":"search","themes.php?page=demo-importer":"sort"},baseUrl:function(e){return"themes.php?page=demo-importer"+e},demoPath:"&demo=",browsePath:"&browse=",searchPath:"&search=",search:function(e){d(".wp-filter-search").val(e.replace(/\+/g," "))},navigate:function r(e,t){Backbone.history._hasPushState&&Backbone.Router.prototype.navigate.call(this,e,t)}}),a.view.InstallerSearch=a.view.Search.extend({events:{input:"search",keyup:"search"},terms:"",search:function(e){("keyup"!==e.type||9!==e.which&&16!==e.which)&&(this.collection=this.options.parent.view.collection,"keyup"===e.type&&27===e.which&&(e.target.value=""),this.doSearch(e.target.value))},doSearch:function(e){this.terms!==e&&(this.terms=e,d(".filter-links li > a.current").removeClass("current").removeAttr("aria-current"),this.collection.doSearch(e.replace(/\+/g," ")),a.router.navigate(a.router.baseUrl(a.router.searchPath+encodeURIComponent(e)),{replace:!0}))}}),a.view.Installer=a.view.Appearance.extend({el:"#wpbody-content .wrap",events:{"click .filter-links li > a":"onSort"},render:function(){var e=this;this.search(),this.collection=new a.Collection,this.listenTo(this,"demo:end",function(){e.collection.loadingDemos||(e.collection.loadingDemos=!0,e.collection.currentQuery.page++,_.extend(e.collection.currentQuery.request,{page:e.collection.currentQuery.page}),e.collection.query(e.collection.currentQuery.request))}),this.listenTo(this.collection,"query:success",function(){d("body").removeClass("loading-content"),d(".theme-browser").find("div.error").remove()}),this.listenTo(this.collection,"query:fail",function(){d("body").removeClass("loading-content"),d(".theme-browser").find("div.error").remove(),d(".theme-browser").find("div.themes").before('<div class="error"><p>'+i.error+'</p><p><button class="button try-again">'+i.tryAgain+"</button></p></div>"),d(".theme-browser .error .try-again").on("click",function(e){e.preventDefault(),d("input.wp-filter-search").trigger("input")})}),this.view&&this.view.remove(),this.view=new a.view.Demos({collection:this.collection,parent:this}),this.page=0,this.$el.find(".themes").remove(),this.view.render(),this.$el.find(".theme-browser").append(this.view.el).addClass("rendered")},browse:function(e,t){this.collection.query({browse:e,builder:t})},onSort:function(e){var t=d(e.target),i=t.data("sort"),r=t.data("type");e.preventDefault(),i=i||a.router.selectedTab,r=r||a.router.selectedType,t.hasClass(this.activeClass)||(this.sort(i,r),a.router.navigate(a.router.baseUrl(a.router.browsePath+i)))},sort:function(e,t){this.clearSearch(),a.router.selectedTab=e,a.router.selectedType=t,d(".filter-links li > a").removeClass(this.activeClass).removeAttr("aria-current"),d('[data-sort="'+e+'"]').addClass(this.activeClass).attr("aria-current","page"),d('[data-type="'+t+'"]').addClass(this.activeClass).attr("aria-current","page"),this.browse(e,t)},activeClass:"current",clearSearch:function(){d("#wp-filter-search-input").val("")}}),a.RunInstaller={init:function(){this.view=new a.view.Installer({section:"all",SearchView:a.view.InstallerSearch}),this.render(),this.view.SearchView.doSearch=_.debounce(this.view.SearchView.doSearch,500)},render:function(){this.view.render(),this.routes(),Backbone.History.started&&Backbone.history.stop(),Backbone.history.start({root:a.data.settings.adminUrl,pushState:!0,hashChange:!1})},routes:function(){var i=this,t={};a.router=new a.Router,a.router.on("route:preview",function(e){a.preview&&(a.preview.undelegateEvents(),a.preview.unbind()),i.view.view.demo&&i.view.view.demo.preview?(i.view.view.demo.model=i.view.collection.findWhere({slug:e}),i.view.view.demo.preview()):(t.demo=e,i.view.collection.query(t),i.view.collection.trigger("update"),i.view.collection.once("query:success",function(){d('div[data-slug="'+e+'"]').trigger("click")}))}),a.router.on("route:sort",function(e){var t=a.router.selectedType?a.router.selectedType:d(".filter-links.pagebuilders li").first().find("a").data("type");e&&d('[data-sort="'+e+'"]').length||(e="all",a.router.navigate(a.router.baseUrl("&browse=all"),{replace:!0})),i.view.sort(e,t),a.preview&&a.preview.close()}),a.router.on("route:search",function(){d(".wp-filter-search").focus().trigger("keyup")}),this.extraRoutes()},extraRoutes:function(){return!1}},d(document).ready(function(){a.RunInstaller.init(),d(document.body).on("init_tooltips",function(){d("#tiptip_holder").removeAttr("style"),d("#tiptip_arrow").removeAttr("style"),d(".tips").tipTip({attribute:"data-tip",defaultPosition:"top",fadeIn:50,fadeOut:50,delay:50})}).trigger("init_tooltips"),d(".themegrill-reset-wordpress").on("click",function(){return window.confirm(_demoImporterSettings.settings.confirmReset)}),d(".themegrill-demo-importer-rating-link").on("click",function(){var e=d(this);d.post(a.data.settings.ajaxUrl,{action:"footer-text-rated"}),e.parent().text(e.data("rated"))})})}(jQuery);
1
+ window.wp=window.wp||{},function(d){var a,i;(a=wp.demos=wp.demos||{}).data=_demoImporterSettings,i=a.data.l10n,a.isNew=!!a.data.settings.isNew,_.extend(a,{model:{},view:{},routes:{},router:{},template:wp.template}),a.Model=Backbone.Model.extend({initialize:function(){var e;this.set({id:this.get("slug")||this.get("id")}),this.has("sections")&&(e=this.get("sections").description,this.set({description:e}))}}),a.view.Appearance=wp.Backbone.View.extend({el:"#wpbody-content .wrap .theme-browser",window:d(window),page:0,initialize:function(e){_.bindAll(this,"scroller"),this.SearchView=e.SearchView?e.SearchView:a.view.Search,this.window.bind("scroll",_.throttle(this.scroller,300))},render:function(){this.view=new a.view.Demos({collection:this.collection,parent:this}),this.search(),this.$el.removeClass("search-loading"),this.view.render(),this.$el.empty().append(this.view.el).addClass("rendered")},searchContainer:d(".search-form"),search:function(){var e;1!==a.data.demos.length&&(e=new this.SearchView({collection:this.collection,parent:this}),(this.SearchView=e).render(),this.searchContainer.append(d.parseHTML('<label class="screen-reader-text" for="wp-filter-search-input">'+i.search+"</label>")).append(e.el).on("submit",function(e){e.preventDefault()}))},scroller:function(){var e,t=this;this.window.scrollTop(),t.window.height(),e=t.$el.offset().top+t.$el.outerHeight(!1)-t.window.height(),e=Math.round(.9*e)}}),a.Collection=Backbone.Collection.extend({model:a.Model,terms:"",doSearch:function(e){this.terms!==e&&(this.terms=e,0<this.terms.length&&this.search(this.terms),""===this.terms&&(this.reset(a.data.demos),d("body").removeClass("no-results")),this.trigger("demos:update"))},search:function(t){var i,e,r,s,o,n;this.reset(a.data.demos,{silent:!0}),t=(t=t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\amp;")).replace(/ /g,")(?=.*"),i=new RegExp("^(?=.*"+t+").+","i"),0===(e=this.filter(function(e){return s=e.get("name").replace(/(<([^>]+)>)/gi,""),o=e.get("description").replace(/(<([^>]+)>)/gi,""),n=e.get("author").replace(/(<([^>]+)>)/gi,""),r=_.union([s,e.get("id"),o,n,e.get("tags")]),i.test(e.get("author"))&&2<t.length&&e.set("displayAuthor",!0),i.test(r)})).length?this.trigger("query:empty"):d("body").removeClass("no-results"),this.reset(e)},paginate:function(e){var t=this;return e=e||0,t=_(t.rest(20*e)),t=_(t.first(20))},count:!1,query:function(t){var e,i,r,s=this.queries,o=this;if(this.currentQuery.request=t,e=_.find(s,function(e){return _.isEqual(e.request,t)}),(i=_.has(t,"page"))||(this.currentQuery.page=1),e||i){if(i)return this.apiCall(t,i).done(function(e){o.add(e.demos),o.trigger("query:success"),o.loadingDemos=!1}).fail(function(){o.trigger("query:fail")});0===e.demos.length?o.trigger("query:empty"):d("body").removeClass("no-results"),_.isNumber(e.total)&&(this.count=e.total),this.reset(e.demos),e.total||(this.count=this.length),this.trigger("demos:update"),this.trigger("query:success",this.count)}else e=this.apiCall(t).done(function(e){e.demos&&(o.reset(e.demos),r=e.info.results,s.push({demos:e.demos,request:t,total:r})),o.trigger("demos:update"),o.trigger("query:success",r),e.demos&&0===e.demos.length&&o.trigger("query:empty")}).fail(function(){o.trigger("query:fail")})},queries:[],currentQuery:{page:1,request:{}},apiCall:function(e,t){return wp.ajax.send("query-demos",{data:{request:_.extend({per_page:100},e)},beforeSend:function(){t||d("body").addClass("loading-content").removeClass("no-results")}})},loadingDemos:!1}),a.view.Demo=wp.Backbone.View.extend({className:"theme",state:"grid",html:a.template("demo"),events:{click:"preview",keydown:"preview",touchend:"preview",keyup:"addFocus",touchmove:"preventExpand","click .demo-import":"importDemo"},touchDrag:!1,initialize:function(){this.model.on("change",this.render,this)},render:function(){var e=this.model.toJSON();this.$el.html(this.html(e)).attr({tabindex:0,"aria-describedby":e.id+"-action "+e.id+"-name","data-slug":e.id}),this.activeDemo(),this.model.get("displayAuthor")&&this.$el.addClass("display-author")},activeDemo:function(){this.model.get("active")&&this.$el.addClass("active")},addFocus:function(){var e=d(":focus").hasClass("theme")?d(":focus"):d(":focus").parents(".theme");d(".theme.focus").removeClass("focus"),e.addClass("focus")},preventExpand:function(){this.touchDrag=!0},preview:function(e){var t,i,r=this;if(e=e||window.event,!0===this.touchDrag)return this.touchDrag=!1;d(e.target).not(".install-demo-preview").parents(".theme-actions").length||"keydown"===e.type&&13!==e.which&&32!==e.which||"keydown"===e.type&&13!==e.which&&d(":focus").hasClass("button")||(e.preventDefault(),e=e||window.event,a.focusedDemo=this.$el,a.preview=i=new a.view.Preview({model:this.model}),i.render(),this.setNavButtonsState(),1===this.model.collection.length?i.$el.addClass("no-navigation"):i.$el.removeClass("no-navigation"),d("div.wrap").append(i.el),this.listenTo(i,"demo:next",function(){if(t=r.model,_.isUndefined(r.current)||(t=r.current),r.current=r.model.collection.at(r.model.collection.indexOf(t)+1),_.isUndefined(r.current))return r.options.parent.parent.trigger("demo:end"),r.current=t;i.model=r.current,i.render(),this.setNavButtonsState(),d(".next-theme").focus()}).listenTo(i,"demo:previous",function(){t=r.model,0!==r.model.collection.indexOf(r.current)&&(_.isUndefined(r.current)||(t=r.current),r.current=r.model.collection.at(r.model.collection.indexOf(t)-1),_.isUndefined(r.current)||(i.model=r.current,i.render(),this.setNavButtonsState(),d(".previous-theme").focus()))}),this.listenTo(i,"preview:close",function(){r.current=r.model}))},setNavButtonsState:function(){var e=d(".theme-install-overlay"),t=_.isUndefined(this.current)?this.model:this.current,i=e.find(".previous-theme"),r=e.find(".next-theme");0===this.model.collection.indexOf(t)&&(i.addClass("disabled").prop("disabled",!0),r.focus()),_.isUndefined(this.model.collection.at(this.model.collection.indexOf(t)+1))&&(r.addClass("disabled").prop("disabled",!0),i.focus())},importDemo:function(e){var t=this,i=d(e.target),r=d(e.target).data("plugins");e.preventDefault(),i.hasClass("disabled")||i.hasClass("updating-message")||d.confirm({title:"",content:'<div class="demo-import-confirm-message">'+wp.demos.data.settings.confirmImport+"</div>",boxWidth:"50%",useBootstrap:!1,buttons:{confirm:{text:wp.demos.data.l10n.confirmMsg,keys:["enter"],btnClass:"demo-import-confirm-button",action:function(){t.processImport(i,r,t)}},cancel:{btnClass:"demo-import-cancel-button",action:function(){}}}})},processImport:function(i,e,r){wp.updates.maybeRequestFilesystemCredentials(event),d(document).trigger("wp-plugin-bulk-install",e),d.each(e,function(e,t){t.is_active||wp.updates.queue.push({action:"install-plugin",data:{plugin:t.slug,name:t.name,slug:e,demo:i.data("slug")}})}),d(document).on("wp-demo-import-success",function(e,t){r.model.get("id")===t.slug&&(r.render(),r.model.set({imported:!0}))}),wp.updates.queue.push({action:"import-demo",data:{slug:i.data("slug")}}),wp.updates.queueChecker()}}),a.view.Preview=wp.Backbone.View.extend({className:"wp-full-overlay expanded",el:".theme-install-overlay",events:{"click .close-full-overlay":"close","click .collapse-sidebar":"collapse","click .devices button":"previewDevice","click .previous-theme":"previousDemo","click .next-theme":"nextDemo",keyup:"keyEvent","click .demo-import":"importDemo"},html:a.template("demo-preview"),render:function(){var e,t=this,i=this.model.toJSON(),r=d(document.body);r.attr("aria-busy","true"),this.$el.removeClass("iframe-ready").html(this.html(i)),(e=this.$el.data("current-preview-device"))&&t.tooglePreviewDeviceButtons(e),a.router.navigate(a.router.baseUrl(a.router.demoPath+this.model.get("id")),{replace:!1}),this.$el.fadeIn(200,function(){r.addClass("demo-importer-active full-overlay-active")}),this.$el.find("iframe").one("load",function(){t.iframeLoaded()})},iframeLoaded:function(){this.$el.addClass("iframe-ready"),d(document.body).attr("aria-busy","false")},close:function(){return this.$el.fadeOut(200,function(){d("body").removeClass("demo-importer-active full-overlay-active"),a.focusedDemo&&a.focusedDemo.focus()}).removeClass("iframe-ready"),a.router.selectedTab?a.router.navigate(a.router.baseUrl("&browse="+a.router.selectedTab)):a.router.navigate(a.router.baseUrl("")),this.trigger("preview:close"),this.undelegateEvents(),this.unbind(),!1},collapse:function(e){var t=d(e.currentTarget);return"true"===t.attr("aria-expanded")?t.attr({"aria-expanded":"false","aria-label":i.expandSidebar}):t.attr({"aria-expanded":"true","aria-label":i.collapseSidebar}),this.$el.toggleClass("collapsed").toggleClass("expanded"),!1},previewDevice:function(e){var t=d(e.currentTarget).data("device");this.$el.removeClass("preview-desktop preview-tablet preview-mobile").addClass("preview-"+t).data("current-preview-device",t),this.tooglePreviewDeviceButtons(t)},tooglePreviewDeviceButtons:function(e){var t=d(".wp-full-overlay-footer .devices");t.find("button").removeClass("active").attr("aria-pressed",!1),t.find("button.preview-"+e).addClass("active").attr("aria-pressed",!0)},keyEvent:function(e){27===e.keyCode&&(this.undelegateEvents(),this.close()),39===e.keyCode&&_.once(this.nextDemo()),37===e.keyCode&&this.previousDemo()},nextDemo:function(){return this.trigger("demo:next",this.model.cid),!1},previousDemo:function(){return this.trigger("demo:previous",this.model.cid),!1},importDemo:function(e){var t=this,i=d(e.target),r=d(".plugins-list-table").find("#the-list tr"),s=[];e.preventDefault(),i.hasClass("disabled")||i.hasClass("updating-message")||d.confirm({title:"",content:'<div class="demo-import-confirm-message">'+wp.demos.data.settings.confirmImport+"</div>",boxWidth:"50%",useBootstrap:!1,buttons:{confirm:{text:wp.demos.data.l10n.confirmMsg,keys:["enter"],btnClass:"demo-import-confirm-button",action:function(){t.processImport(i,r,0,0,s,t)}},cancel:{btnClass:"demo-import-cancel-button",action:function(){}}},onContentReady:function(){d("body").addClass("demo-import-message-popup")},onDestroy:function(){d("body").removeClass("demo-import-message-popup")}})},processImport:function(o,e,n,a,l,c){wp.updates.maybeRequestFilesystemCredentials(event),d(".theme-install-overlay").find(".next-theme, .previous-theme").addClass("disabled"),d(document).trigger("wp-plugin-bulk-install",e),e.each(function(e,t){var i=d(t);i.hasClass("inactive")&&!i.find("notice-error").length&&wp.updates.queue.push({action:"install-plugin",data:{plugin:i.data("plugin"),slug:i.data("slug"),demo:o.data("slug")}})}),d(document).on("wp-plugin-bulk-installing",function(){d(".wp-full-overlay-sidebar-content").animate({scrollTop:d(document).height()})}),d(document).on("wp-plugin-bulk-install-success wp-plugin-bulk-install-error",function(e,t){var i,r,s=d('[data-slug="'+t.slug+'"]');"wp-"+t.install+"-bulk-install-success"===e.type?n++:(r=t.pluginName?t.pluginName:s.find(".plugin-name").text(),a++,l.push(r+": "+t.errorMessage)),wp.updates.adminNotice=wp.template("wp-bulk-installs-admin-notice"),d(".plugins-details .bulk-action-notice").remove(),d(".plugins-details .plugins-info").after(wp.updates.adminNotice({id:"bulk-action-notice",className:"bulk-action-notice notice-alt",successes:n,errors:a,errorMessages:l,type:t.install})),i=d("#bulk-action-notice").on("click","button",function(){d(this).toggleClass("bulk-action-errors-collapsed").attr("aria-expanded",!d(this).hasClass("bulk-action-errors-collapsed")),i.find(".bulk-action-errors").toggleClass("hidden")}),wp.updates.queue.length||(0<a?o.removeClass("updating-message").text(o.data("originaltext")):(c.model.set({requiredPlugins:!1}),d(".theme-install-overlay").find(".next-theme, .previous-theme").addClass("disabled")))}),d(document).on("wp-updates-notice-added",function(){wp.updates.adminNotice=wp.template("wp-updates-admin-notice")}),d(document).on("wp-demo-import-success",function(e,t){c.model.get("id")===t.slug&&c.model.set({imported:!0})}),wp.updates.queue.push({action:"import-demo",data:{slug:o.data("slug")}}),wp.updates.queueChecker()}}),a.view.Demos=wp.Backbone.View.extend({className:"themes wp-clearfix",$overlay:d("div.theme-overlay"),index:0,count:d(".wrap .demo-count"),liveDemoCount:0,initialize:function(e){var t=this;this.parent=e.parent,this.setView("grid"),t.importedDemo(),this.listenTo(t.collection,"demos:update",function(){t.parent.page=0,t.importedDemo(),t.render(this)}),this.listenTo(t.collection,"query:success",function(e){_.isNumber(e)?(t.count.text(e),t.announceSearchResults(e)):(t.count.text(t.collection.length),t.announceSearchResults(t.collection.length))}),this.listenTo(t.collection,"query:empty",function(){d("body").addClass("no-results")}),this.listenTo(this.parent,"demo:scroll",function(){t.renderDemos(t.parent.page)})},render:function(){this.$el.empty(),0<this.options.collection.size()&&this.renderDemos(this.parent.page),this.liveDemoCount=this.collection.count?this.collection.count:this.collection.length,this.count.text(this.liveDemoCount)},renderDemos:function(e){var t=this;t.instance=t.collection.paginate(e),0!==t.instance.size()?(a.isNew&&1<=e&&d(".add-new-theme").remove(),t.instance.each(function(e){t.demo=new a.view.Demo({model:e,parent:t}),t.demo.render(),t.$el.append(t.demo.el)}),a.isNew&&a.data.settings.suggestURI&&this.$el.append('<div class="theme add-new-theme"><a href="'+a.data.settings.suggestURI+'" target="blank"><div class="theme-screenshot"><span></span></div><h2 class="theme-name">'+i.suggestNew+"</h2></a></div>"),this.parent.page++):this.parent.trigger("demo:end")},importedDemo:function(){var e;(e=this.collection.findWhere({active:!0}))&&(this.collection.remove(e),this.collection.add(e,{at:0}))},setView:function(e){return e},announceSearchResults:function(e){0===e?wp.a11y.speak(i.noDemosFound):wp.a11y.speak(i.demosFound.replace("%d",e))}}),a.view.Search=wp.Backbone.View.extend({tagName:"input",className:"wp-filter-search",id:"wp-filter-search-input",searching:!1,attributes:{placeholder:i.searchPlaceholder,type:"search","aria-describedby":"live-search-desc"},events:{input:"search",keyup:"search",blur:"pushState"},initialize:function(e){this.parent=e.parent,this.listenTo(this.parent,"demo:close",function(){this.searching=!1})},search:function(e){"keyup"===e.type&&27===e.which&&(e.target.value=""),this.doSearch(e)},doSearch:function(e){var t={};this.collection.doSearch(e.target.value.replace(/\+/g," ")),this.searching&&13!==e.which?t.replace=!0:this.searching=!0,e.target.value?a.router.navigate(a.router.baseUrl(a.router.searchPath+e.target.value),t):a.router.navigate(a.router.baseUrl(""))},pushState:function(e){var t=a.router.baseUrl("");e.target.value&&(t=a.router.baseUrl(a.router.searchPath+encodeURIComponent(e.target.value))),this.searching=!1,a.router.navigate(t)}}),a.Router=Backbone.Router.extend({routes:{"themes.php?page=demo-importer&demo=:slug":"preview","themes.php?page=demo-importer&browse=:sort":"sort","themes.php?page=demo-importer&search=:query":"search","themes.php?page=demo-importer":"sort"},baseUrl:function(e){return"themes.php?page=demo-importer"+e},demoPath:"&demo=",browsePath:"&browse=",searchPath:"&search=",search:function(e){d(".wp-filter-search").val(e.replace(/\+/g," "))},navigate:function r(e,t){Backbone.history._hasPushState&&Backbone.Router.prototype.navigate.call(this,e,t)}}),a.view.InstallerSearch=a.view.Search.extend({events:{input:"search",keyup:"search"},terms:"",search:function(e){("keyup"!==e.type||9!==e.which&&16!==e.which)&&(this.collection=this.options.parent.view.collection,"keyup"===e.type&&27===e.which&&(e.target.value=""),this.doSearch(e.target.value))},doSearch:function(e){this.terms!==e&&(this.terms=e,d(".filter-links li > a.current").removeClass("current").removeAttr("aria-current"),this.collection.doSearch(e.replace(/\+/g," ")),a.router.navigate(a.router.baseUrl(a.router.searchPath+encodeURIComponent(e)),{replace:!0}))}}),a.view.Installer=a.view.Appearance.extend({el:"#wpbody-content .wrap",events:{"click .filter-links li > a":"onSort"},render:function(){var e=this;this.search(),this.collection=new a.Collection,this.listenTo(this,"demo:end",function(){e.collection.loadingDemos||(e.collection.loadingDemos=!0,e.collection.currentQuery.page++,_.extend(e.collection.currentQuery.request,{page:e.collection.currentQuery.page}),e.collection.query(e.collection.currentQuery.request))}),this.listenTo(this.collection,"query:success",function(){d("body").removeClass("loading-content"),d(".theme-browser").find("div.error").remove()}),this.listenTo(this.collection,"query:fail",function(){d("body").removeClass("loading-content"),d(".theme-browser").find("div.error").remove(),d(".theme-browser").find("div.themes").before('<div class="error"><p>'+i.error+'</p><p><button class="button try-again">'+i.tryAgain+"</button></p></div>"),d(".theme-browser .error .try-again").on("click",function(e){e.preventDefault(),d("input.wp-filter-search").trigger("input")})}),this.view&&this.view.remove(),this.view=new a.view.Demos({collection:this.collection,parent:this}),this.page=0,this.$el.find(".themes").remove(),this.view.render(),this.$el.find(".theme-browser").append(this.view.el).addClass("rendered")},browse:function(e,t){this.collection.query({browse:e,builder:t})},onSort:function(e){var t=d(e.target),i=t.data("sort"),r=t.data("type");e.preventDefault(),i=i||a.router.selectedTab,r=r||a.router.selectedType,t.hasClass(this.activeClass)||(this.sort(i,r),a.router.navigate(a.router.baseUrl(a.router.browsePath+i)))},sort:function(e,t){this.clearSearch(),a.router.selectedTab=e,a.router.selectedType=t,d(".filter-links li > a").removeClass(this.activeClass).removeAttr("aria-current"),d('[data-sort="'+e+'"]').addClass(this.activeClass).attr("aria-current","page"),d('[data-type="'+t+'"]').addClass(this.activeClass).attr("aria-current","page"),this.browse(e,t)},activeClass:"current",clearSearch:function(){d("#wp-filter-search-input").val("")}}),a.RunInstaller={init:function(){this.view=new a.view.Installer({section:"all",SearchView:a.view.InstallerSearch}),this.render(),this.view.SearchView.doSearch=_.debounce(this.view.SearchView.doSearch,500)},render:function(){this.view.render(),this.routes(),Backbone.History.started&&Backbone.history.stop(),Backbone.history.start({root:a.data.settings.adminUrl,pushState:!0,hashChange:!1})},routes:function(){var i=this,t={};a.router=new a.Router,a.router.on("route:preview",function(e){a.preview&&(a.preview.undelegateEvents(),a.preview.unbind()),i.view.view.demo&&i.view.view.demo.preview?(i.view.view.demo.model=i.view.collection.findWhere({slug:e}),i.view.view.demo.preview()):(t.demo=e,i.view.collection.query(t),i.view.collection.trigger("update"),i.view.collection.once("query:success",function(){d('div[data-slug="'+e+'"]').trigger("click")}))}),a.router.on("route:sort",function(e){var t=a.router.selectedType?a.router.selectedType:d(".filter-links.pagebuilders li").first().find("a").data("type");e&&d('[data-sort="'+e+'"]').length||(e="all",a.router.navigate(a.router.baseUrl("&browse=all"),{replace:!0})),i.view.sort(e,t),a.preview&&a.preview.close()}),a.router.on("route:search",function(){d(".wp-filter-search").focus().trigger("keyup")}),this.extraRoutes()},extraRoutes:function(){return!1}},d(document).ready(function(){a.RunInstaller.init(),d(document.body).on("init_tooltips",function(){d("#tiptip_holder").removeAttr("style"),d("#tiptip_arrow").removeAttr("style"),d(".tips").tipTip({attribute:"data-tip",defaultPosition:"top",fadeIn:50,fadeOut:50,delay:50})}).trigger("init_tooltips"),d(".themegrill-reset-wordpress").on("click",function(){return window.confirm(_demoImporterSettings.settings.confirmReset)}),d(".themegrill-demo-importer-rating-link").on("click",function(){var e=d(this);d.post(a.data.settings.ajaxUrl,{action:"footer-text-rated"}),e.parent().text(e.data("rated"))})})}(jQuery);
assets/js/jquery-confirm/jquery-confirm.js ADDED
@@ -0,0 +1,1379 @@