Version Description
- 05/09/2019 =
- Feature - Live new user registration notice and badge.
- Feature - Import/Export registration form in JSON format.
- Feature - Shortcut to save form ( Ctrl + s ).
- Tweak - Form name edit position change.
- Tweak - UI enhancement for full-screen mode.
- Tweak - Input field box design on the builder.
- Tweak - Brand logo add in the builder.
- Tweak - Header design enhancement on the builder.
- Tweak - Remove footer save button.
- Tweak - Remove builder reload on save.
- Tweak - Form builder pre-loader.
- Tweak - Setting tab design.
- Tweak - Form fields design.
- Tweak - Overall form builder design
- Tweak - Add row button color adjustment.
- Tweak - Field description placement below the input in front-end.
- Tweak - Success and Error messages.
- Tweak - Fields Icon change.
- Tweak - SweetAlert2 confirmation and alert box.
- Fix - Manage draggable user fields on row delete.
- Add - Perfect Scrollbar in the builder.
- Add - New Smarttag ( {{ur_login}} ).
- Dev - Action hook in form builder footer wrapper.
- Dev - Action hook after form save.
- Dev - Filter hooks before and after form fields.
- Dev - Filter before and after field row.
- Dev - Add and Delete row JS events.
- Dev - Color picker field in form setting.
- Dev - Bool to string and vise Versa formatting add.
Download this release
Release Info
Developer | wpeverest |
Plugin | User Registration – Custom Registration Form, Login Form And User Profile For WordPress |
Version | 1.7.0 |
Comparing to | |
See all releases |
Code changes from version 1.6.3 to 1.7.0
- assets/css/_button.scss +49 -7
- assets/css/_colors.scss +10 -8
- assets/css/_fonts.scss +79 -0
- assets/css/_variables.scss +1 -1
- assets/css/activation-rtl.css +1 -1
- assets/css/activation.css +1 -1
- assets/css/admin-rtl.css +1 -1
- assets/css/admin.css +1 -1
- assets/css/admin.scss +1013 -447
- assets/css/menu-rtl.css +1 -1
- assets/css/menu.css +1 -1
- assets/css/menu.scss +19 -0
- assets/css/my-account-layout-rtl.css +1 -1
- assets/css/my-account-layout.css +1 -1
- assets/css/perfect-scrollbar/perfect-scrollbar.css +116 -0
- assets/css/sweetalert2/sweetalert2.css +1371 -0
- assets/css/sweetalert2/sweetalert2.min.css +1 -0
- assets/css/user-registration-rtl.css +1 -1
- assets/css/user-registration.css +1 -1
- assets/css/user-registration.scss +78 -50
- assets/fonts/UserRegistration.eot +0 -0
- assets/fonts/UserRegistration.svg +71 -0
- assets/fonts/UserRegistration.ttf +0 -0
- assets/fonts/UserRegistration.woff +0 -0
- assets/images/logo.svg +1 -0
- assets/js/admin/admin.js +380 -170
- assets/js/admin/admin.min.js +1 -1
- assets/js/admin/live-user-notice.js +60 -0
- assets/js/admin/live-user-notice.min.js +1 -0
- assets/js/frontend/jquery.min.js +1 -1
- assets/js/frontend/jquery.validate.js +1 -1
- assets/js/frontend/user-registration.js +1 -1
- assets/js/frontend/user-registration.min.js +1 -1
- assets/js/perfect-scrollbar/perfect-scrollbar.js +1324 -0
- assets/js/perfect-scrollbar/perfect-scrollbar.min.js +6 -0
- assets/js/sweetalert2/sweetalert2.js +2902 -0
- assets/js/sweetalert2/sweetalert2.min.js +1 -0
- includes/abstracts/abstract-ur-form-field.php +2 -2
- includes/admin/class-ur-admin-assets.php +22 -7
- includes/admin/class-ur-admin-import-export-forms.php +216 -0
- includes/admin/class-ur-admin-menus.php +70 -17
- includes/admin/class-ur-admin-settings.php +47 -49
- includes/admin/class-ur-admin.php +48 -0
- includes/admin/functions-ur-admin.php +2 -0
- includes/admin/settings/class-ur-settings-general.php +7 -13
- includes/admin/settings/class-ur-settings-import-export.php +90 -0
- includes/admin/settings/emails/class-ur-settings-email-confirmation.php +1 -1
- includes/admin/settings/emails/class-ur-settings-reset-password-email.php +1 -1
- includes/admin/views/html-admin-page-forms.php +76 -60
- includes/admin/views/html-admin-page-import-export-forms.php +57 -0
- includes/class-ur-ajax.php +29 -3
- includes/class-ur-emailer.php +134 -121
- includes/class-ur-preview.php +62 -5
- includes/class-ur-shortcodes.php +19 -4
- includes/form/class-ur-form-field-checkbox.php +1 -1
- includes/form/class-ur-form-field-country.php +1 -1
- includes/form/class-ur-form-field-date.php +1 -1
- includes/form/class-ur-form-field-description.php +1 -1
- includes/form/class-ur-form-field-display-name.php +1 -1
- includes/form/class-ur-form-field-email.php +1 -1
- includes/form/class-ur-form-field-first-name.php +1 -1
- includes/form/class-ur-form-field-last-name.php +1 -1
- includes/form/class-ur-form-field-nickname.php +1 -1
- includes/form/class-ur-form-field-number.php +1 -1
- includes/form/class-ur-form-field-password.php +1 -1
- includes/form/class-ur-form-field-privacy-policy.php +1 -1
- includes/form/class-ur-form-field-radio.php +1 -1
- includes/form/class-ur-form-field-select.php +1 -1
- includes/form/class-ur-form-field-text.php +1 -1
- includes/form/class-ur-form-field-textarea.php +1 -1
- includes/form/class-ur-form-field-user-confirm-email.php +1 -1
- includes/form/class-ur-form-field-user-confirm-password.php +1 -1
- includes/form/class-ur-form-field-user-email.php +1 -1
- includes/form/class-ur-form-field-user-login.php +1 -1
- includes/form/class-ur-form-field-user-pass.php +1 -1
- includes/form/class-ur-form-field-user-url.php +1 -1
- includes/frontend/class-ur-frontend.php +7 -1
- includes/functions-ur-core.php +70 -1
- includes/functions-ur-template.php +24 -19
- languages/user-registration.pot +314 -253
- readme.txt +33 -2
- templates/form-registration.php +25 -11
- user-registration.php +2 -2
assets/css/_button.scss
CHANGED
@@ -1,10 +1,31 @@
|
|
1 |
.user-registration,
|
2 |
.ur-form-container {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
4 |
.button-primary {
|
5 |
background: $primary_color;
|
6 |
border-color: $primary_color;
|
7 |
box-shadow: 0 1px 0 $primary_color;
|
|
|
8 |
|
9 |
&:hover,
|
10 |
&:active,
|
@@ -13,24 +34,45 @@
|
|
13 |
border-color: $primary_dark;
|
14 |
box-shadow: 0 1px 0 $primary_dark;
|
15 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
}
|
17 |
|
18 |
.button-secondary {
|
19 |
-
background:
|
20 |
-
border-color:
|
21 |
-
box-shadow: 0 1px 0
|
22 |
|
23 |
&:hover,
|
24 |
&:active,
|
25 |
&:focus {
|
26 |
-
background:
|
27 |
-
border-color:
|
28 |
-
box-shadow: 0 1px 0
|
29 |
}
|
30 |
}
|
31 |
|
32 |
-
.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
|
|
|
34 |
button,
|
35 |
input[type='button'],
|
36 |
input[type='submit'],
|
1 |
.user-registration,
|
2 |
.ur-form-container {
|
3 |
+
button,
|
4 |
+
.button {
|
5 |
+
transition: all 0.25s ease 0s;
|
6 |
+
|
7 |
+
&.button-icon {
|
8 |
+
height: 32px;
|
9 |
+
width: 32px;
|
10 |
+
display: flex;
|
11 |
+
align-items: center;
|
12 |
+
justify-content: center;
|
13 |
+
|
14 |
+
.dashicons {
|
15 |
+
line-height: 1;
|
16 |
+
}
|
17 |
+
}
|
18 |
+
|
19 |
+
&.button-icon-round {
|
20 |
+
border-radius: 50%;
|
21 |
+
}
|
22 |
+
}
|
23 |
|
24 |
.button-primary {
|
25 |
background: $primary_color;
|
26 |
border-color: $primary_color;
|
27 |
box-shadow: 0 1px 0 $primary_color;
|
28 |
+
text-shadow: none;
|
29 |
|
30 |
&:hover,
|
31 |
&:active,
|
34 |
border-color: $primary_dark;
|
35 |
box-shadow: 0 1px 0 $primary_dark;
|
36 |
}
|
37 |
+
|
38 |
+
&:disabled {
|
39 |
+
color: lighten($primary_color, 30%) !important;
|
40 |
+
background: lighten($primary_color, 10%) !important;
|
41 |
+
border-color: lighten($primary_color, 10%) !important;
|
42 |
+
}
|
43 |
}
|
44 |
|
45 |
.button-secondary {
|
46 |
+
background: $color_gray_four;
|
47 |
+
border-color: $color_gray_four;
|
48 |
+
box-shadow: 0 1px 0 $color_gray_four;
|
49 |
|
50 |
&:hover,
|
51 |
&:active,
|
52 |
&:focus {
|
53 |
+
background: $color_gray_three;
|
54 |
+
border-color: $color_gray_three;
|
55 |
+
box-shadow: 0 1px 0 $color_gray_three;
|
56 |
}
|
57 |
}
|
58 |
|
59 |
+
.button-danger {
|
60 |
+
color: $white;
|
61 |
+
background: $color_danger;
|
62 |
+
border-color: $color_danger;
|
63 |
+
box-shadow: 0 1px 0 $color_danger;
|
64 |
+
|
65 |
+
&:hover,
|
66 |
+
&:active,
|
67 |
+
&:focus {
|
68 |
+
color: $white;
|
69 |
+
background: adjust-color($color_danger, $saturation: -15%, $lightness: -8% );
|
70 |
+
border-color: adjust-color($color_danger, $saturation: -15%, $lightness: -8% );
|
71 |
+
box-shadow: 0 1px 0 adjust-color($color_danger, $saturation: -15%, $lightness: -8% );
|
72 |
+
}
|
73 |
+
}
|
74 |
|
75 |
+
.publishing-action {
|
76 |
button,
|
77 |
input[type='button'],
|
78 |
input[type='submit'],
|
assets/css/_colors.scss
CHANGED
@@ -2,6 +2,8 @@ $primary_color: #475BB2;
|
|
2 |
$primary_dark: darken($primary_color, 10% ); // #217dbb
|
3 |
$primary_light: lighten($primary_color, 40%); // #e1f0fa
|
4 |
|
|
|
|
|
5 |
$white: #ffffff;
|
6 |
$color_gray_eleven: darken($white, 1% ); // #fcfcfc
|
7 |
$color_gray_ten: darken($white, 2.5% ); // #f9f9f9
|
@@ -10,16 +12,16 @@ $color_gray_eight: darken($white, 5% ); //#f2f2f2
|
|
10 |
$color_gray_seven: darken($white, 9% ); // #e8e8e8
|
11 |
$color_gray_six: darken($white, 13.5% ); // #dddddd
|
12 |
|
13 |
-
$gray_base: #
|
14 |
-
$color_gray_one:
|
15 |
-
$color_gray_two:
|
16 |
-
$color_gray_three:
|
17 |
-
$color_gray_four:
|
18 |
-
$color_gray_five:
|
19 |
$color_sortable_background: #f7f7f7;
|
20 |
|
21 |
-
$
|
22 |
-
$
|
23 |
$label_color: #69717A;
|
24 |
$input_background_color: #f8f9fa;
|
25 |
$flat_background: #F6F7F9;
|
2 |
$primary_dark: darken($primary_color, 10% ); // #217dbb
|
3 |
$primary_light: lighten($primary_color, 40%); // #e1f0fa
|
4 |
|
5 |
+
$green: #40c057;
|
6 |
+
|
7 |
$white: #ffffff;
|
8 |
$color_gray_eleven: darken($white, 1% ); // #fcfcfc
|
9 |
$color_gray_ten: darken($white, 2.5% ); // #f9f9f9
|
12 |
$color_gray_seven: darken($white, 9% ); // #e8e8e8
|
13 |
$color_gray_six: darken($white, 13.5% ); // #dddddd
|
14 |
|
15 |
+
$gray_base: #2d3559;
|
16 |
+
$color_gray_one: adjust-color($gray_base, $saturation: -11%, $lightness: +12%); // #4c5477
|
17 |
+
$color_gray_two: adjust-color($gray_base, $saturation: -18%, $lightness: +21%); // #676d8a
|
18 |
+
$color_gray_three: adjust-color($gray_base, $saturation: -13%, $lightness: +50%); // #b6bbcf
|
19 |
+
$color_gray_four: adjust-color($gray_base, $saturation: -14%, $lightness: +63%); // #dee0e9
|
20 |
+
$color_gray_five: adjust-color($gray_base, $saturation: -12%, $lightness: +69%); // #b1b1b1
|
21 |
$color_sortable_background: #f7f7f7;
|
22 |
|
23 |
+
$border_color: $color_gray_four;
|
24 |
+
$color_danger: #ff4149;
|
25 |
$label_color: #69717A;
|
26 |
$input_background_color: #f8f9fa;
|
27 |
$flat_background: #F6F7F9;
|
assets/css/_fonts.scss
ADDED
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
@font-face {
|
2 |
+
font-family: 'UserRegistration';
|
3 |
+
src: url('../fonts/UserRegistration.eot?5hlcw0');
|
4 |
+
src: url('../fonts/UserRegistration.eot?5hlcw0#iefix') format('embedded-opentype'),
|
5 |
+
url('../fonts/UserRegistration.ttf?5hlcw0') format('truetype'),
|
6 |
+
url('../fonts/UserRegistration.woff?5hlcw0') format('woff'),
|
7 |
+
url('../fonts/UserRegistration.svg?5hlcw0#UserRegistration') format('svg');
|
8 |
+
font-weight: normal;
|
9 |
+
font-style: normal;
|
10 |
+
font-display: block;
|
11 |
+
}
|
12 |
+
|
13 |
+
[class^='ur-icon-'],
|
14 |
+
[class*=' ur-icon-'] {
|
15 |
+
/* use !important to prevent issues with browser extensions that change fonts */
|
16 |
+
font-family: 'UserRegistration' !important;
|
17 |
+
speak: none;
|
18 |
+
font-style: normal;
|
19 |
+
font-weight: normal;
|
20 |
+
font-variant: normal;
|
21 |
+
text-transform: none;
|
22 |
+
line-height: 1;
|
23 |
+
|
24 |
+
/* Better Font Rendering =========== */
|
25 |
+
-webkit-font-smoothing: antialiased;
|
26 |
+
-moz-osx-font-smoothing: grayscale;
|
27 |
+
}
|
28 |
+
|
29 |
+
/* Define the Map for $field-icons */
|
30 |
+
$field-icons: (
|
31 |
+
input-first-name: "\e001",
|
32 |
+
input-last-name: "\e002",
|
33 |
+
input-field: "\e003",
|
34 |
+
input-password: "\e004",
|
35 |
+
input-checkbox: "\e005",
|
36 |
+
radio: "\e006",
|
37 |
+
number: "\e007",
|
38 |
+
phone: "\e008",
|
39 |
+
calendar: "\e009",
|
40 |
+
drop-down: "\e00a",
|
41 |
+
textarea: "\e00b",
|
42 |
+
email: "\e00c",
|
43 |
+
email-secondary: "\e00d",
|
44 |
+
email-confirm: "\e00e",
|
45 |
+
invite-codes: "\e00f",
|
46 |
+
password: "\e010",
|
47 |
+
password-confirm: "\e011",
|
48 |
+
user: "\e012",
|
49 |
+
user-nickname: "\e013",
|
50 |
+
user-display-name: "\e014",
|
51 |
+
user-bio: "\e015",
|
52 |
+
website: "\e016",
|
53 |
+
flag: "\e017",
|
54 |
+
map-one: "\e018",
|
55 |
+
map-two: "\e019",
|
56 |
+
zip-code: "\e01a",
|
57 |
+
select2: "\e01b",
|
58 |
+
multi-select: "\e01c",
|
59 |
+
section-title: "\e01d",
|
60 |
+
time-picker: "\e01e",
|
61 |
+
state: "\e01f",
|
62 |
+
buildings: "\e020",
|
63 |
+
text-editor: "\e021",
|
64 |
+
bill: "\e022",
|
65 |
+
doc: "\e023",
|
66 |
+
file-upload: "\e024",
|
67 |
+
file-dollar: "\e025",
|
68 |
+
code: "\e026",
|
69 |
+
mailchimp: "\e027"
|
70 |
+
);
|
71 |
+
|
72 |
+
/* For each key in the map, creating own class */
|
73 |
+
@each $name, $value in $field-icons {
|
74 |
+
.ur-icon-#{$name}{
|
75 |
+
&::before{
|
76 |
+
content: $value;
|
77 |
+
}
|
78 |
+
}
|
79 |
+
}
|
assets/css/_variables.scss
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
*/
|
4 |
|
5 |
$green: #7ad03a;
|
6 |
-
$red: #
|
7 |
$orange: #ffba00;
|
8 |
$blue: #2ea2cc;
|
9 |
|
3 |
*/
|
4 |
|
5 |
$green: #7ad03a;
|
6 |
+
$red: #f00;
|
7 |
$orange: #ffba00;
|
8 |
$blue: #2ea2cc;
|
9 |
|
assets/css/activation-rtl.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.user-registration-message{overflow:hidden;position:relative;border-right-color:#2ea2cc!important}.user-registration-message.error{border-right-color
|
1 |
+
.user-registration-message{overflow:hidden;position:relative;border-right-color:#2ea2cc!important}.user-registration-message.error{border-right-color:red!important}.user-registration-message.error p{max-width:1000px}.user-registration-message a.button-primary,.user-registration-message a.button-secondary{text-decoration:none!important}.user-registration-message a.user-registration-message-close{position:absolute;top:0;left:0;padding:10px 21px 10px 15px;font-size:13px;line-height:1.23076923;text-decoration:none}.user-registration-message a.user-registration-message-close:before{position:absolute;top:8px;right:0;-webkit-transition:all .1s ease-in-out;transition:all .1s ease-in-out}
|
assets/css/activation.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.user-registration-message{overflow:hidden;position:relative;border-left-color:#2ea2cc!important}.user-registration-message.error{border-left-color
|
1 |
+
.user-registration-message{overflow:hidden;position:relative;border-left-color:#2ea2cc!important}.user-registration-message.error{border-left-color:red!important}.user-registration-message.error p{max-width:1000px}.user-registration-message a.button-primary,.user-registration-message a.button-secondary{text-decoration:none!important}.user-registration-message a.user-registration-message-close{position:absolute;top:0;right:0;padding:10px 15px 10px 21px;font-size:13px;line-height:1.23076923;text-decoration:none}.user-registration-message a.user-registration-message-close:before{position:absolute;top:8px;left:0;-webkit-transition:all .1s ease-in-out;transition:all .1s ease-in-out}
|
assets/css/admin-rtl.css
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
.select2-container{box-sizing:border-box;display:inline-block;margin:0;position:relative;vertical-align:middle}.select2-container .select2-selection--single{box-sizing:border-box;cursor:pointer;display:block;height:28px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--single .select2-selection__rendered{display:block;padding-left:8px;padding-right:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-selection--single .select2-selection__clear{position:relative}.select2-container[dir=rtl] .select2-selection--single .select2-selection__rendered{padding-right:8px;padding-left:20px}.select2-container .select2-selection--multiple{box-sizing:border-box;cursor:pointer;display:block;min-height:32px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--multiple .select2-selection__rendered{display:inline-block;overflow:hidden;padding-left:8px;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-search--inline{float:left}.select2-container .select2-search--inline .select2-search__field{box-sizing:border-box;border:none;font-size:100%;margin-top:5px;padding:0}.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-dropdown{background-color:#fff;border:1px solid #aaa;border-radius:4px;box-sizing:border-box;display:block;position:absolute;left:-100000px;width:100%;z-index:1051}.select2-results{display:block}.select2-results__options{list-style:none;margin:0;padding:0}.select2-results__option{padding:6px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-results__option[aria-selected],.select2-results__option[data-selected]{cursor:pointer}.select2-container--open .select2-dropdown{left:0}.select2-container--open .select2-dropdown--above{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--open .select2-dropdown--below{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-search--dropdown{display:block;padding:4px}.select2-search--dropdown .select2-search__field{padding:4px;width:100%;box-sizing:border-box}.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-search--dropdown.select2-search--hide{display:none}.select2-close-mask{border:0;margin:0;padding:0;display:block;position:fixed;left:0;top:0;min-height:100%;min-width:100%;height:auto;width:auto;opacity:0;z-index:99;background-color:#fff}.select2-hidden-accessible{border:0!important;clip:rect(0 0 0 0)!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;width:1px!important}.select2-container--default .select2-selection--single{background-color:#fff;border:1px solid #aaa;border-radius:4px}.select2-container--default .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--default .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:700}.select2-container--default .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--default .select2-selection--single .select2-selection__arrow{height:26px;position:absolute;top:1px;right:1px;width:20px}.select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--default[dir=rtl] .select2-selection--single .select2-selection__clear{float:left}.select2-container--default[dir=rtl] .select2-selection--single .select2-selection__arrow{left:1px;right:auto}.select2-container--default.select2-container--disabled .select2-selection--single{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear{display:none}.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--default .select2-selection--multiple{background-color:#fff;border:1px solid #aaa;border-radius:4px;cursor:text}.select2-container--default .select2-selection--multiple .select2-selection__rendered{box-sizing:border-box;list-style:none;margin:0;padding:0 5px;width:100%}.select2-container--default .select2-selection--multiple .select2-selection__rendered li{list-style:none}.select2-container--default .select2-selection--multiple .select2-selection__placeholder{color:#999;margin-top:5px;float:left}.select2-container--default .select2-selection--multiple .select2-selection__clear{cursor:pointer;float:right;font-weight:700;margin-top:5px;margin-right:10px}.select2-container--default .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{color:#999;cursor:pointer;display:inline-block;font-weight:700;margin-right:2px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover{color:#333}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-search--inline,.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice,.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__placeholder{float:right}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--default.select2-container--focus .select2-selection--multiple{border:solid #000 1px;outline:0}.select2-container--default.select2-container--disabled .select2-selection--multiple{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection__choice__remove{display:none}.select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple,.select2-container--default.select2-container--open.select2-container--above .select2-selection--single{border-top-left-radius:0;border-top-right-radius:0}.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple,.select2-container--default.select2-container--open.select2-container--below .select2-selection--single{border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--default .select2-search--dropdown .select2-search__field{border:1px solid #aaa}.select2-container--default .select2-search--inline .select2-search__field{background:0 0;border:none;outline:0;box-shadow:none;-webkit-appearance:textfield}.select2-container--default .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--default .select2-results__option[role=group]{padding:0}.select2-container--default .select2-results__option[aria-disabled=true]{color:#999}.select2-container--default .select2-results__option[aria-selected=true],.select2-container--default .select2-results__option[data-selected=true]{background-color:#ddd}.select2-container--default .select2-results__option .select2-results__option{padding-left:1em}.select2-container--default .select2-results__option .select2-results__option .select2-results__group{padding-left:0}.select2-container--default .select2-results__option .select2-results__option .select2-results__option{margin-left:-1em;padding-left:2em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-2em;padding-left:3em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-3em;padding-left:4em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-4em;padding-left:5em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-5em;padding-left:6em}.select2-container--default .select2-results__option--highlighted[aria-selected],.select2-container--default .select2-results__option--highlighted[data-selected]{background-color:#0073aa;color:#fff}.select2-container--default .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic .select2-selection--single{background-color:#f7f7f7;border:1px solid #aaa;border-radius:4px;outline:0;background-image:-webkit-gradient(linear,left top,left bottom,color-stop(50%,#fff),to(#eee));background-image:-webkit-linear-gradient(top,#fff 50%,#eee 100%);background-image:linear-gradient(to bottom,#fff 50%,#eee 100%);background-repeat:repeat-x}.select2-container--classic .select2-selection--single:focus{border:1px solid #0073aa}.select2-container--classic .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--classic .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:700;margin-right:10px}.select2-container--classic .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--classic .select2-selection--single .select2-selection__arrow{background-color:#ddd;border:none;border-left:1px solid #aaa;border-top-right-radius:4px;border-bottom-right-radius:4px;height:26px;position:absolute;top:1px;right:1px;width:20px;background-image:-webkit-gradient(linear,left top,left bottom,color-stop(50%,#eee),to(#ccc));background-image:-webkit-linear-gradient(top,#eee 50%,#ccc 100%);background-image:linear-gradient(to bottom,#eee 50%,#ccc 100%);background-repeat:repeat-x}.select2-container--classic .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--classic[dir=rtl] .select2-selection--single .select2-selection__clear{float:left}.select2-container--classic[dir=rtl] .select2-selection--single .select2-selection__arrow{border:none;border-right:1px solid #aaa;border-radius:0;border-top-left-radius:4px;border-bottom-left-radius:4px;left:1px;right:auto}.select2-container--classic.select2-container--open .select2-selection--single{border:1px solid #0073aa}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow{background:0 0;border:none}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single{border-top:none;border-top-left-radius:0;border-top-right-radius:0;background-image:-webkit-gradient(linear,left top,left bottom,from(white),color-stop(50%,#eee));background-image:-webkit-linear-gradient(top,#fff 0,#eee 50%);background-image:linear-gradient(to bottom,#fff 0,#eee 50%);background-repeat:repeat-x}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;background-image:-webkit-gradient(linear,left top,left bottom,color-stop(50%,#eee),to(white));background-image:-webkit-linear-gradient(top,#eee 50%,#fff 100%);background-image:linear-gradient(to bottom,#eee 50%,#fff 100%);background-repeat:repeat-x}.select2-container--classic .select2-selection--multiple{background-color:#fff;border:1px solid #aaa;border-radius:4px;cursor:text;outline:0}.select2-container--classic .select2-selection--multiple:focus{border:1px solid #0073aa}.select2-container--classic .select2-selection--multiple .select2-selection__rendered{list-style:none;margin:0;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__clear{display:none}.select2-container--classic .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove{color:#888;cursor:pointer;display:inline-block;font-weight:700;margin-right:2px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover{color:#555}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice{float:right}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--classic.select2-container--open .select2-selection--multiple{border:1px solid #0073aa}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--classic .select2-search--dropdown .select2-search__field{border:1px solid #aaa;outline:0}.select2-container--classic .select2-search--inline .select2-search__field{outline:0;box-shadow:none}.select2-container--classic .select2-dropdown{background-color:#fff;border:1px solid transparent}.select2-container--classic .select2-dropdown--above{border-bottom:none}.select2-container--classic .select2-dropdown--below{border-top:none}.select2-container--classic .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--classic .select2-results__option[role=group]{padding:0}.select2-container--classic .select2-results__option[aria-disabled=true]{color:grey}.select2-container--classic .select2-results__option--highlighted[aria-selected],.select2-container--classic .select2-results__option--highlighted[data-selected]{background-color:#3875d7;color:#fff}.select2-container--classic .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic.select2-container--open .select2-dropdown{border-color:#0073aa}
|
2 |
-
@charset "UTF-8";.ur-form-container .button-primary,.user-registration .button-primary{background:#475bb2;border-color:#475bb2;box-shadow:0 1px 0 #475bb2}.ur-form-container .button-primary:active,.ur-form-container .button-primary:focus,.ur-form-container .button-primary:hover,.user-registration .button-primary:active,.user-registration .button-primary:focus,.user-registration .button-primary:hover{background:#38488e;border-color:#38488e;box-shadow:0 1px 0 #38488e}.ur-form-container .button-secondary,.user-registration .button-secondary{background:#d6d7dc;border-color:#d6d7dc;box-shadow:0 1px 0 #d6d7dc}.ur-form-container .button-secondary:active,.ur-form-container .button-secondary:focus,.ur-form-container .button-secondary:hover,.user-registration .button-secondary:active,.user-registration .button-secondary:focus,.user-registration .button-secondary:hover{background:#bcbdc3;border-color:#bcbdc3;box-shadow:0 1px 0 #bcbdc3}.ur-form-container .publishing-action .button,.ur-form-container .publishing-action button,.ur-form-container .publishing-action input[type=button],.ur-form-container .publishing-action input[type=submit],.user-registration .publishing-action .button,.user-registration .publishing-action button,.user-registration .publishing-action input[type=button],.user-registration .publishing-action input[type=submit]{margin-left:5px}.ur-registered-item.ui-draggable-dragging{padding:10px 10px;line-height:20px;background:#475bb2;color:#fff;text-align:center;margin-bottom:7px;word-break:break-word;white-space:normal;width:200px!important;z-index:9}.ur-registered-item.ui-draggable-dragging span{font-size:14px;line-height:20px;width:auto;height:auto;margin-left:3px}.blockUI.blockOverlay::before{height:1em;width:1em;position:absolute;top:50%;right:50%;margin-right:-.5em;margin-top:-.5em;display:block;content:'';-webkit-animation:spin 1s ease-in-out infinite;animation:spin 1s ease-in-out infinite;background:url(../images/icons/loader.svg) center center;background-size:cover;line-height:1;text-align:center;font-size:2em;color:rgba(0,0,0,.75)}.ur-export-users-page{margin-top:15px}.ur-export-users-page .nav-tab-content .nav-tab-inside .postbox{width:50%;-webkit-box-flex:1;-webkit-flex:1;flex:1;margin:0 15px 10px}.ur-export-users-page .nav-tab-content .nav-tab-inside .postbox .hndle,.ur-export-users-page .nav-tab-content .nav-tab-inside .postbox .stuffbox .hndle{margin:10px}.ur_addons_wrap .products{overflow:hidden;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap}.ur_addons_wrap .products li{margin:0 0 1% 1%!important;padding:0;vertical-align:top;width:19.2%;float:right}.ur_addons_wrap .products li:nth-child(5n){margin:0 0 1% 0!important}.ur_addons_wrap .products li a{text-decoration:none;color:inherit;border:1px solid #ddd;display:block;min-height:220px;overflow:hidden;background:#f5f5f5;box-shadow:inset 0 1px 0 rgba(255,255,255,.2),inset 0 -1px 0 rgba(0,0,0,.1)}.ur_addons_wrap .products li a .product-image{display:block;background:#fff}.ur_addons_wrap .products li a .product-image img{max-width:100%;display:block;margin:0}.ur_addons_wrap .products li a img.extension-thumb+h3{display:none}.ur_addons_wrap .products li a .price{display:none}.ur_addons_wrap .products li a h2,.ur_addons_wrap .products li a h3{margin:0!important;padding:20px!important;background:#fff}.ur_addons_wrap .products li a p{padding:20px!important;margin:0!important;border-top:1px solid #f1f1f1}.ur_addons_wrap .products li a:focus,.ur_addons_wrap .products li a:hover{background-color:#fff}.clear{clear:both}.wrap.user-registration div.error,.wrap.user-registration div.updated{margin-top:10px}.user-registration_page_add-new-registration #post-body .error,.user-registration_page_add-new-registration #post-body .updated{margin:0}.user-registration_page_add-new-registration #post-body-content{position:relative;float:none}.user-registration_page_add-new-registration .howto span{float:right;margin-top:6px}.user-registration_page_add-new-registration .list-wrap{display:none;clear:both;margin-bottom:10px}.user-registration_page_add-new-registration .list li{display:none;margin:0;margin-bottom:5px}.user-registration_page_add-new-registration .list li .menu-item-title{cursor:pointer;display:block}.user-registration_page_add-new-registration .list li .menu-item-title input{margin-left:3px;margin-top:-3px}.user-registration_page_add-new-registration #menu-management-liquid{margin-top:15px}.user-registration_page_add-new-registration .postbox p.submit{margin-bottom:0}.user-registration_page_add-new-registration #nav-menu-header{background-color:#fff}.user-registration_page_add-new-registration .major-publishing-actions{clear:both;padding:10px 0;line-height:28px}.user-registration_page_add-new-registration .major-publishing-actions .publishing-action{text-align:left;float:left}.user-registration_page_add-new-registration .major-publishing-actions .form-invalid{padding-right:4px;margin-right:-4px}.user-registration_page_add-new-registration .major-publishing-actions .ur-form-name{width:25%;margin-left:6px}.user-registration_page_add-new-registration .major-publishing-actions #copy-shortcode{margin-right:-5px;border-radius:3px 0 0 3px}.user-registration_page_add-new-registration .major-publishing-actions #copy-shortcode svg{fill:#fff;margin-top:4px}.user-registration_page_add-new-registration .blank-slate .menu-settings{display:none}.user-registration_page_add-new-registration .delete-action{float:right;line-height:28px}.ur-backbone-modal *{box-sizing:border-box}.ur-backbone-modal .ur-backbone-modal-content{position:fixed;background-color:#fff;z-index:100000;right:50%;top:50%;-webkit-transform:translate(50%,-50%);-ms-transform:translate(50%,-50%);transform:translate(50%,-50%);width:500px}.ur-backbone-modal .ur-backbone-modal-content article{overflow:auto}.ur-backbone-modal.ur-backbone-modal-content{width:75%;min-width:500px}.ur-backbone-modal .select2-container{width:100%!important}.ur-backbone-modal-backdrop{position:fixed;top:0;right:0;left:0;bottom:0;min-height:360px;background-color:#1f2026;opacity:.7;z-index:99900}.ur-backbone-modal-main{padding-bottom:55px}.ur-backbone-modal-main article,.ur-backbone-modal-main header{display:block;position:relative}.ur-backbone-modal-main .ur-backbone-modal-header{height:auto;background-color:#fcfcfc;padding:1em 1.5em;border-bottom:1px solid #ddd}.ur-backbone-modal-main .ur-backbone-modal-header h1{margin:0;font-size:18px;font-weight:700;line-height:1.5em}.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link{cursor:pointer;color:#777;height:54px;width:54px;padding:0;position:absolute;top:0;left:0;text-align:center;border:0;border-right:1px solid #ddd;background-color:transparent;-webkit-transition:color .1s ease-in-out,background .1s ease-in-out;transition:color .1s ease-in-out,background .1s ease-in-out}.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link::before{font:normal 22px/50px dashicons!important;color:#7c8095;display:block;content:'\f335';font-weight:300}.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link:focus,.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link:hover{background-color:#ddd;border-color:#ccc;color:#1f2026}.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link:focus{outline:0}.ur-backbone-modal-main article{padding:1.5em}.ur-backbone-modal-main article p{margin:1.5em 0}.ur-backbone-modal-main article p:first-child{margin-top:0}.ur-backbone-modal-main article p:last-child{margin-bottom:0}.ur-backbone-modal-main article .pagination{padding:10px 0 0;text-align:center}.ur-backbone-modal-main footer{position:absolute;right:0;left:0;bottom:0;z-index:100;padding:1em 1.5em;background-color:#fcfcfc;border-top:1px solid #dfdfdf;box-shadow:0 -4px 4px -4px rgba(0,0,0,.1)}.ur-backbone-modal-main footer .inner{float:left;line-height:23px}.ur-backbone-modal-main footer .inner .button{margin-bottom:0}.user-registration h2.ur-nav-tab-wrapper{margin-bottom:1em}.user-registration nav.ur-nav-tab-wrapper{margin:1.5em 0 1em;border-bottom:1px solid #ccc}.user-registration #mainform>.subsubsub{background:#e5e5e5;float:none}.user-registration #mainform>.subsubsub a{display:block;padding:7px 10px}.user-registration #mainform>.subsubsub a.current{color:#fff;background:#475bb2}.user-registration textarea[disabled=disabled]{background:#dfdfdf!important}.user-registration table.form-table{margin:0;position:relative}.user-registration table.form-table .select2-container{display:block;max-width:350px}.user-registration table.form-table .forminp-radio ul{margin:0}.user-registration table.form-table .forminp-radio ul li{line-height:1.4em}.user-registration table.form-table textarea.input-text{height:100%;min-width:150px;display:block}.user-registration table.form-table input.regular-input{width:25em}.user-registration table.form-table textarea.wide-input{width:100%}.user-registration table.form-table .user-registration-help-tip,.user-registration table.form-table img.help_tip{padding:0;margin:-4px 5px 0 0;vertical-align:middle;cursor:help;line-height:1}.user-registration table.form-table span.help_tip{cursor:help;color:#2ea2cc}.user-registration table.form-table th{position:relative;padding-left:24px}.user-registration table.form-table .select2-container{vertical-align:top;margin-bottom:3px}.user-registration table.form-table table.widefat th{padding-left:inherit}.user-registration table.form-table th .user-registration-help-tip,.user-registration table.form-table th img.help_tip{margin:0 0 0 -24px;float:left}.user-registration table.form-table .wp-list-table .user-registration-help-tip{float:none}.user-registration table.form-table fieldset{margin-top:4px}.user-registration table.form-table fieldset .user-registration-help-tip,.user-registration table.form-table fieldset img.help_tip{margin:-3px 5px 0 0}.user-registration table.form-table fieldset p.description{margin-bottom:8px}.user-registration table.form-table fieldset:first-child{margin-top:0}.user-registration table.form-table .iris-picker{z-index:100;display:none;position:absolute;border:1px solid #ccc;border-radius:3px;box-shadow:0 1px 3px rgba(0,0,0,.2)}.user-registration table.form-table .iris-picker .ui-slider{border:0!important;margin:0!important;width:auto!important;height:auto!important;background:none transparent!important}.user-registration table.form-table .iris-picker .ui-slider .ui-slider-handle{margin-bottom:0!important}.user-registration table.form-table .colorpickpreview{padding:3px;padding-right:20px;border:1px solid #ddd;border-left:0}.user-registration table.form-table .colorpick{border-right:0}.user-registration table.form-table .image_width_settings{vertical-align:middle}.user-registration table.form-table .image_width_settings label{margin-right:10px}@media only screen and (max-width:1599px){.ur_addons_wrap .products li{width:32.66%}.ur_addons_wrap .products li:nth-child(5n){margin:0 0 1% 1%!important}.ur_addons_wrap .products li:nth-child(3n){margin:0 0 1% 0!important}}@media only screen and (max-width:1120px){.ur_addons_wrap .products li{width:49%;margin:0 0 2% 2%!important}.ur_addons_wrap .products li:nth-child(3n),.ur_addons_wrap .products li:nth-child(5n){margin:0 0 2% 2%!important}.ur_addons_wrap .products li:nth-child(2n){margin:0 0 2% 0!important}}@media only screen and (max-width:900px){.ur_addons_wrap .products li{width:49%}}@media only screen and (max-width:480px){.ur_addons_wrap .products li,.ur_addons_wrap .products li:nth-child(2n),.ur_addons_wrap .products li:nth-child(3n),.ur_addons_wrap .products li:nth-child(5n){width:100%;margin:0 0 3% 0!important}}@media only screen and (min-width:769px) and (max-width:1000px){.user-registration_page_add-new-registration #post-body-content{min-width:0}}@media screen and (max-width:782px){body.user-registration_page_add-new-registration{min-width:0!important}}.ur-admin-template-options{display:none}.ur-registered-from{display:-webkit-box;display:-webkit-flex;display:flex;background-color:#f8f8f8;font-family:Roboto,sans-serif;border-bottom:1px solid #ddd}.ur-registered-from *{box-sizing:border-box}.ur-registered-from :focus{outline:0}.ur-registered-from a{text-decoration:none}.ur-registered-from .ur-field{line-height:2}.ur-registered-from .ur-registered-inputs{width:35%;background-color:#f9f9f9}.ur-registered-from .ur-registered-inputs .ur-tabs{border:0 none;padding:0;font-family:Roboto,sans-serif;font-size:14px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists{background-color:transparent;background-image:none;padding:0;border-radius:0;margin:0;display:-webkit-box;display:-webkit-flex;display:flex;border-bottom:2px solid #38488e;border-top:0 none;border-left:0 none;border-right:0 none}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li{background-color:transparent;background-image:none;border-radius:0;margin:0;margin-bottom:-1px;padding:0;float:none;display:inline-block;border:0}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li.active{margin-bottom:0;padding-bottom:0}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li.ui-state-disabled{opacity:1}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li a{float:none;text-decoration:none;margin:0;border:none;display:block;color:#7c8095;background-color:transparent;padding:8px 15px;font-weight:500;cursor:pointer}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li a:focus{box-shadow:0 0 0 0 transparent,0 0 0 0 transparent}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li a.active{background-color:#38488e;color:#fff;line-height:24px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content{padding:10px;height:calc(100vh - 85px);overflow-y:auto}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content#ur-tab-field-options,.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content#ur-tab-registered-fields{background-color:#f2f2f2}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content h2{margin:0;font-size:16px;font-weight:600;font-family:Roboto,sans-serif;color:#585b6c}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list{margin:15px 0;width:100%}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list::after,.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list::before{content:' ';display:table}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list::after{clear:both}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list:last-child{margin-bottom:0}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{float:right;padding:10px 45px 10px 15px;height:auto;line-height:25px;width:48%;background-color:#475bb2;color:#fff;margin-bottom:7px;word-break:break-word;white-space:normal;position:relative;cursor:move}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item .dashicons{position:absolute;top:0;bottom:0;background:rgba(0,0,0,.3);width:35px;right:0;line-height:2.9;font-size:16px;height:auto;margin-left:5px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item:nth-child(2n){float:left}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item:hover{background-color:#38488e;color:#fff}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item:nth-child(2n+1){clear:both;display:block}.ur-registered-from .ur-selected-inputs{width:70%;box-sizing:border-box;border-right:1px solid #ddd;padding:20px;height:calc(100vh - 44px);overflow-y:auto}.ur-registered-from .ur-selected-inputs .ur-single-row{background-color:#f2f2f2;margin-bottom:20px;border:1px solid #ddd}.ur-registered-from .ur-selected-inputs .ur-single-row:last-child{margin-bottom:0}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids{background-color:#f2f2f2;border-bottom:1px solid #ddd;clear:both;display:table;width:100%}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids div{border-left:1px solid #ddd;display:inline-block;line-height:25px;color:#9093a5;float:right}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids div.ur-grid-size{padding:0 10px}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids div.ur-grid-navigation{width:25px;height:25px;background-color:#e8e8e8;font-family:dashicons;font-size:16px;cursor:pointer}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids div.ur-grid-navigation:hover{background-color:#ddd}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids .ur-remove-row{float:left;border-radius:0;border:0;background-color:transparent;color:#9093a5;width:25px;height:25px;cursor:pointer;padding:0;line-height:25px;-webkit-transition:all .1s ease-in-out;transition:all .1s ease-in-out}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids .ur-remove-row:before{font-family:dashicons}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids .ur-remove-row:hover{color:#d82223}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists{width:100%;display:-webkit-box;display:-webkit-flex;display:flex;text-align:center;padding:20px;box-sizing:border-box;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item{display:inline-block;text-align:right;border:0 none;padding:15px;background-color:#f7f7f7;-webkit-box-flex:1;-webkit-flex:1;flex:1;border:2px dashed #d3d3d3}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item{margin-bottom:15px;position:relative;background-color:#f8f8f8;padding:20px;cursor:move;border:1px solid #e8e8e8;-webkit-transition:border-color .35s;transition:border-color .35s}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .select2-container{width:100%!important}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .select2-container .select2-search--inline .select2-search__field{height:auto;min-width:10px}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-input-type-signature canvas{background:rgba(255,255,255,.5);border:1px solid #ddd}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item:last-child{margin-bottom:0}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item.ur-item-active,.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item:hover{border:1px solid #475bb2}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item.ur-item-active{box-shadow:0 0 10px rgba(0,0,0,.1);background-color:#f8f8f8}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item.ui-sortable-helper,.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item.ur-item-active.ui-sortable-helper{box-shadow:0 0 20px rgba(0,0,0,.2);background-color:#e8e8e8}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item.ui-sortable-placeholder{visibility:visible!important;border:2px dashed #acaeba;background-color:#e8eaf1}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons{display:none;position:absolute;left:10px;width:50px;text-align:center;padding:0;font-size:10px;top:10px;color:#cfd1d8}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons span{cursor:pointer;font-size:14px;height:auto}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons span:hover{color:#475bb2}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons:hover .ur-action-buttons{display:block}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons .ur-trash:hover{color:#d82223}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur_label_top_left{text-align:right}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur_label_center{text-align:center}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur_label_top_right{text-align:left}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur_label_disabled{display:none}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item:hover .ur-action-buttons{display:block}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item>li.ur-item-dragged{list-style:none;width:100%;text-align:center;height:60px!important;box-sizing:border-box}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item>li.ur-item-dragged .spinner{float:none}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me{display:table;width:100%;height:100%}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me .user-registration-dragged-me-text{display:table-cell;vertical-align:middle;text-align:center}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me .user-registration-dragged-me-text p{display:inline-block;position:relative;color:#cfd1d8;padding-right:26px;padding-top:8px}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me .user-registration-dragged-me-text p::before{position:absolute;font-family:Dashicons;content:'\f545';font-size:22px;right:0;top:0}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item:nth-child(1n+2){border-right:2px solid #f7f7f7}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item:nth-child(1n+2).ur-sortable-active,.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-sortable-active{border-left:2px dashed #38488e;border-right:2px dashed #38488e;border-top:2px dashed #38488e;border-bottom:2px dashed #38488e;background-color:#e8eaf1}.ur-registered-from .ur-selected-inputs .ur-add-new-row{color:#cfd1d8;display:block;margin:0 auto;font-size:30px;width:40px;cursor:pointer;text-align:center;margin-bottom:20px;background-color:transparent;border:0 none}.ur-registered-from .ur-selected-inputs .ur-add-new-row:hover{color:#475bb2}.ur-registered-from .ur-selected-inputs li.ur-registered-item{list-style:none;padding:10px 10px;line-height:20px;background-color:#475bb2;color:#fff;text-align:center;margin-bottom:7px;word-break:break-word;white-space:normal;width:200px!important}.ur-registered-from .ur-selected-inputs li.ur-registered-item>span{font-size:14px;line-height:20px;width:auto;height:auto;margin-left:3px}.ur-registered-from .ur-selected-inputs li.ur-registered-item.ui-sortable-placeholder{width:100%!important;visibility:visible!important;border:2px dashed #acaeba;background-color:#e8eaf1}.ur-registered-from .ur-advance-setting,.ur-registered-from .ur-general-setting{padding:20px 0 0}.ur-registered-from .ur-advance-setting-block{margin-top:25px}.ur-registered-from .ui-widget select,.ur-registered-from input[type=date],.ur-registered-from input[type=email],.ur-registered-from input[type=number],.ur-registered-from input[type=password],.ur-registered-from input[type=phone],.ur-registered-from input[type=text],.ur-registered-from input[type=timepicker],.ur-registered-from input[type=url],.ur-registered-from select,.ur-registered-from textarea{border:1px solid #ddd;display:block;width:100%;color:#9093a5;box-shadow:0 0 0 transparent;font-size:12px;height:35px;padding:0 10px}.ur-registered-from .ui-widget select:focus,.ur-registered-from input[type=date]:focus,.ur-registered-from input[type=email]:focus,.ur-registered-from input[type=number]:focus,.ur-registered-from input[type=password]:focus,.ur-registered-from input[type=phone]:focus,.ur-registered-from input[type=text]:focus,.ur-registered-from input[type=timepicker]:focus,.ur-registered-from input[type=url]:focus,.ur-registered-from select:focus,.ur-registered-from textarea:focus{border-color:#ddd}.ur-registered-from label{display:block;width:100%;margin-bottom:10px;color:#7c8095;font-size:12px;font-weight:500}.ur-registered-from textarea{padding:10px;height:100px}.ur-registered-from .ur-registered-item.dragging{border:0;box-shadow:0 0 0 transparent;border-radius:0;padding:5px 10px;height:auto;background-color:#475bb2;color:#fff;text-align:center;width:200px}.ur-registered-from .ur-advance-setting-block,.ur-registered-from .ur-general-setting-block{display:none}.ur-registered-from .ur-advance-setting label,.ur-registered-from .ur-general-setting label{display:block}.ur-registered-from .add,.ur-registered-from .remove{background:#fff;border:1px solid #ddd;color:#7c8095;cursor:pointer;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-flex:1;-webkit-flex:1 0 35px;flex:1 0 35px;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;height:35px;max-width:35px;position:relative}.ur-registered-from .add:hover,.ur-registered-from .remove:hover{background:#475bb2;border-color:#475bb2;color:#fff}.ur-registered-from .add .dashicons,.ur-registered-from .remove .dashicons{line-height:22px}.ur-registered-from .add{margin-left:10px}.ur-registered-from .ur-options-list li{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.ur-registered-from .ur-options-list li .editor-block-mover__control-drag-handle{margin-left:10px;cursor:-webkit-grab;cursor:grab}.ur-registered-from .ur-options-list li input{margin-left:10px}.ur-registered-from .ur-options-list li .add{margin-left:10px}.ur-registered-from .ur-options-list .ui-sortable-handle{padding:5px;border:1px solid transparent}.ur-registered-from .ur-options-list .ui-sortable-handle:active{background:#f2f2f2;border:1px solid #475bb2;padding:5px;box-shadow:0 0 20px rgba(0,0,0,.2)}.ur-registered-from .ur-options-list .ui-sortable-handle.ui-sortable-placeholder{border:1px dashed #38488e;background-color:#d6dbef;visibility:visible!important}.ur-registered-from .urcl-rules{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;margin-bottom:15px}.ur-registered-from .urcl-rules>div{margin-left:10px}.ur-registered-from .urcl-rules .urcl-field,.ur-registered-from .urcl-rules .urcl-value{max-width:32%;-webkit-box-flex:1;-webkit-flex:1 0 32%;flex:1 0 32%}#sortable{min-height:400px}@media screen and (max-width:1400px){.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{font-size:12px}.ur-registered-from .urcl-rules .urcl-field{max-width:61%;-webkit-box-flex:1;-webkit-flex:1 0 60%;flex:1 0 60%;margin-bottom:5px}.ur-registered-from .urcl-rules .urcl-value{-webkit-box-ordinal-group:5;-webkit-order:4;order:4;max-width:87%;-webkit-box-flex:1;-webkit-flex:1 0 86%;flex:1 0 86%}.ur-registered-from .urcl-rules .add{-webkit-box-ordinal-group:4;-webkit-order:3;order:3;margin-left:0}.ur-registered-from .urcl-rules .remove{-webkit-box-ordinal-group:6;-webkit-order:5;order:5}}@media screen and (max-width:960px){.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{float:none;width:100%}.ur-registered-from .ur-registered-inputs .ur-single-row .ur-grid-lists,.ur-registered-from .ur-registered-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item,.ur-registered-from .ur-registered-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item{padding:10px}}@media screen and (max-width:782px){.ur-registered-from{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.ur-registered-from .ur-registered-inputs{width:100%;margin-bottom:10px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{float:right;width:48%}.ur-registered-from .ur-selected-inputs{width:100%}}@media screen and (max-width:600px){.user-registration_page_add-new-registration .major-publishing-actions{clear:both;padding:10px 0 19px;line-height:28px}.user-registration_page_add-new-registration .major-publishing-actions .ur-form-name{width:100%}.user-registration_page_add-new-registration .major-publishing-actions .publishing-action{text-align:right;float:none;margin-top:15px}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;display:block}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item{width:100%!important}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item:nth-child(1n+2){border-right:0 none;border-top:2px solid #f2f2f2}}.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,.ur_error_tip{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,.ur_error_tip 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}.ur_error_tip{max-width:20em;line-height:1.8em;position:absolute;white-space:normal;background:#d82223;margin:1.5em -1em 0 1px;z-index:9999999}.ur_error_tip::after{content:'';display:block;border:8px solid #d82223;border-left-color:transparent;border-right-color:transparent;border-top-color:transparent;position:absolute;top:-3px;right:50%;margin:-1em -3px 0 0}.user-registration-help-tip{color:#7c8095;display:inline-block;font-size:1.1em;font-style:normal;height:16px;line-height:16px;position:relative;vertical-align:middle;width:16px}.user-registration-help-tip::after{font-family:Dashicons;speak:none;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;margin:0;text-indent:0;position:absolute;top:0;right:0;width:100%;height:100%;text-align:center;content:"";cursor:help}.select2-drop,.select2-dropdown{z-index:999999!important}.select2-results{line-height:1.5em}.select2-results .select2-results__group,.select2-results .select2-results__option{margin:0;padding:8px}.select2-dropdown{border-color:#ddd}.select2-dropdown--below{box-shadow:0 1px 1px rgba(0,0,0,.1)}.select2-dropdown--above{box-shadow:0 -1px 1px rgba(0,0,0,.1)}.select2-container .select2-selection__rendered.ui-sortable li{cursor:move}.select2-container .select2-selection{border-color:#ddd}.select2-container .select2-search__field{min-width:150px}.select2-container .select2-selection--single{height:32px}.select2-container .select2-selection--single .select2-selection__rendered{line-height:32px;padding-left:24px}.select2-container .select2-selection--single .select2-selection__arrow{left:3px;height:30px}.select2-container .select2-selection--multiple{min-height:28px;border-radius:0;line-height:1.5}.select2-container .select2-selection--multiple li{margin:0}.select2-container .select2-selection--multiple .select2-selection__choice{padding:2px 6px}.select2-container .select2-selection__clear{color:#999;margin-top:-1px}.select2-container .select2-search--inline .select2-search__field{font-family:inherit;font-size:inherit;font-weight:inherit;padding:3px 0}#ur-tab-registered-fields li.ur-registered-item.ui-draggable-disabled{background:#ccc}.ur-no-pointer{pointer-events:none}#ur-tab-field-settings{background:#f2f2f2}.dashicons,.user-registration table.form-table dashicons .dashicons{line-height:inherit}#smart-tags{text-align:center}.form-settings-tab{padding:10px 15px;cursor:pointer;background:#c4c4c4;margin-bottom:10px}.form-settings-tab.active{background:#475bb2;color:#fff}#profile-page form#your-profile .flatpickr-input[readonly]{background-color:#fff}#ur-tab-registered-fields h2{cursor:pointer}#ur-tab-registered-fields h2:before{content:'\f142';cursor:pointer;display:block;font:400 20px/1 Dashicons;line-height:.5!important;padding:4px;position:relative;left:0;top:0;float:left}#ur-tab-registered-fields h2.closed:before{content:""!important}.ur-form-container #ur-full-screen-mode.closed .ur-fs-close-label{display:none}.ur-form-container #ur-full-screen-mode.opened .ur-fs-open-label{display:none}body.ur-full-screen-mode{margin-top:-32px}body.ur-full-screen-mode #wpbody-content{padding-bottom:45px}body.ur-full-screen-mode #wpwrap #wpcontent{margin-right:0;padding-right:0}body.ur-full-screen-mode #wpwrap #wpcontent #wpadminbar{display:none}body.ur-full-screen-mode #wpwrap #wpcontent #wpbody .ur-tab-content{padding:20px}body.ur-full-screen-mode #wpwrap #wpcontent #wpbody .ur-form-container{margin:0}body.ur-full-screen-mode #wpwrap #wpcontent #wpbody .ur-form-container #menu-management-liquid{margin-top:0}body.ur-full-screen-mode #wpwrap #wpcontent #wpbody .ur-form-container #menu-management-liquid .menu-edit{margin-bottom:0;box-shadow:none;border-right:0;border-left:0;border-top:0}body.ur-full-screen-mode #wpwrap #adminmenumain{display:none}body.ur-full-screen-mode #menu-management{margin-top:0}body.ur-full-screen-mode #wpfooter{margin-right:0}
|
1 |
.select2-container{box-sizing:border-box;display:inline-block;margin:0;position:relative;vertical-align:middle}.select2-container .select2-selection--single{box-sizing:border-box;cursor:pointer;display:block;height:28px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--single .select2-selection__rendered{display:block;padding-left:8px;padding-right:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-selection--single .select2-selection__clear{position:relative}.select2-container[dir=rtl] .select2-selection--single .select2-selection__rendered{padding-right:8px;padding-left:20px}.select2-container .select2-selection--multiple{box-sizing:border-box;cursor:pointer;display:block;min-height:32px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--multiple .select2-selection__rendered{display:inline-block;overflow:hidden;padding-left:8px;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-search--inline{float:left}.select2-container .select2-search--inline .select2-search__field{box-sizing:border-box;border:none;font-size:100%;margin-top:5px;padding:0}.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-dropdown{background-color:#fff;border:1px solid #aaa;border-radius:4px;box-sizing:border-box;display:block;position:absolute;left:-100000px;width:100%;z-index:1051}.select2-results{display:block}.select2-results__options{list-style:none;margin:0;padding:0}.select2-results__option{padding:6px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-results__option[aria-selected],.select2-results__option[data-selected]{cursor:pointer}.select2-container--open .select2-dropdown{left:0}.select2-container--open .select2-dropdown--above{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--open .select2-dropdown--below{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-search--dropdown{display:block;padding:4px}.select2-search--dropdown .select2-search__field{padding:4px;width:100%;box-sizing:border-box}.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-search--dropdown.select2-search--hide{display:none}.select2-close-mask{border:0;margin:0;padding:0;display:block;position:fixed;left:0;top:0;min-height:100%;min-width:100%;height:auto;width:auto;opacity:0;z-index:99;background-color:#fff}.select2-hidden-accessible{border:0!important;clip:rect(0 0 0 0)!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;width:1px!important}.select2-container--default .select2-selection--single{background-color:#fff;border:1px solid #aaa;border-radius:4px}.select2-container--default .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--default .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:700}.select2-container--default .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--default .select2-selection--single .select2-selection__arrow{height:26px;position:absolute;top:1px;right:1px;width:20px}.select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--default[dir=rtl] .select2-selection--single .select2-selection__clear{float:left}.select2-container--default[dir=rtl] .select2-selection--single .select2-selection__arrow{left:1px;right:auto}.select2-container--default.select2-container--disabled .select2-selection--single{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear{display:none}.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--default .select2-selection--multiple{background-color:#fff;border:1px solid #aaa;border-radius:4px;cursor:text}.select2-container--default .select2-selection--multiple .select2-selection__rendered{box-sizing:border-box;list-style:none;margin:0;padding:0 5px;width:100%}.select2-container--default .select2-selection--multiple .select2-selection__rendered li{list-style:none}.select2-container--default .select2-selection--multiple .select2-selection__placeholder{color:#999;margin-top:5px;float:left}.select2-container--default .select2-selection--multiple .select2-selection__clear{cursor:pointer;float:right;font-weight:700;margin-top:5px;margin-right:10px}.select2-container--default .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{color:#999;cursor:pointer;display:inline-block;font-weight:700;margin-right:2px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover{color:#333}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-search--inline,.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice,.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__placeholder{float:right}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--default.select2-container--focus .select2-selection--multiple{border:solid #000 1px;outline:0}.select2-container--default.select2-container--disabled .select2-selection--multiple{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection__choice__remove{display:none}.select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple,.select2-container--default.select2-container--open.select2-container--above .select2-selection--single{border-top-left-radius:0;border-top-right-radius:0}.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple,.select2-container--default.select2-container--open.select2-container--below .select2-selection--single{border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--default .select2-search--dropdown .select2-search__field{border:1px solid #aaa}.select2-container--default .select2-search--inline .select2-search__field{background:0 0;border:none;outline:0;box-shadow:none;-webkit-appearance:textfield}.select2-container--default .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--default .select2-results__option[role=group]{padding:0}.select2-container--default .select2-results__option[aria-disabled=true]{color:#999}.select2-container--default .select2-results__option[aria-selected=true],.select2-container--default .select2-results__option[data-selected=true]{background-color:#ddd}.select2-container--default .select2-results__option .select2-results__option{padding-left:1em}.select2-container--default .select2-results__option .select2-results__option .select2-results__group{padding-left:0}.select2-container--default .select2-results__option .select2-results__option .select2-results__option{margin-left:-1em;padding-left:2em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-2em;padding-left:3em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-3em;padding-left:4em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-4em;padding-left:5em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-5em;padding-left:6em}.select2-container--default .select2-results__option--highlighted[aria-selected],.select2-container--default .select2-results__option--highlighted[data-selected]{background-color:#0073aa;color:#fff}.select2-container--default .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic .select2-selection--single{background-color:#f7f7f7;border:1px solid #aaa;border-radius:4px;outline:0;background-image:-webkit-gradient(linear,left top,left bottom,color-stop(50%,#fff),to(#eee));background-image:-webkit-linear-gradient(top,#fff 50%,#eee 100%);background-image:linear-gradient(to bottom,#fff 50%,#eee 100%);background-repeat:repeat-x}.select2-container--classic .select2-selection--single:focus{border:1px solid #0073aa}.select2-container--classic .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--classic .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:700;margin-right:10px}.select2-container--classic .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--classic .select2-selection--single .select2-selection__arrow{background-color:#ddd;border:none;border-left:1px solid #aaa;border-top-right-radius:4px;border-bottom-right-radius:4px;height:26px;position:absolute;top:1px;right:1px;width:20px;background-image:-webkit-gradient(linear,left top,left bottom,color-stop(50%,#eee),to(#ccc));background-image:-webkit-linear-gradient(top,#eee 50%,#ccc 100%);background-image:linear-gradient(to bottom,#eee 50%,#ccc 100%);background-repeat:repeat-x}.select2-container--classic .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--classic[dir=rtl] .select2-selection--single .select2-selection__clear{float:left}.select2-container--classic[dir=rtl] .select2-selection--single .select2-selection__arrow{border:none;border-right:1px solid #aaa;border-radius:0;border-top-left-radius:4px;border-bottom-left-radius:4px;left:1px;right:auto}.select2-container--classic.select2-container--open .select2-selection--single{border:1px solid #0073aa}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow{background:0 0;border:none}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single{border-top:none;border-top-left-radius:0;border-top-right-radius:0;background-image:-webkit-gradient(linear,left top,left bottom,from(white),color-stop(50%,#eee));background-image:-webkit-linear-gradient(top,#fff 0,#eee 50%);background-image:linear-gradient(to bottom,#fff 0,#eee 50%);background-repeat:repeat-x}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;background-image:-webkit-gradient(linear,left top,left bottom,color-stop(50%,#eee),to(white));background-image:-webkit-linear-gradient(top,#eee 50%,#fff 100%);background-image:linear-gradient(to bottom,#eee 50%,#fff 100%);background-repeat:repeat-x}.select2-container--classic .select2-selection--multiple{background-color:#fff;border:1px solid #aaa;border-radius:4px;cursor:text;outline:0}.select2-container--classic .select2-selection--multiple:focus{border:1px solid #0073aa}.select2-container--classic .select2-selection--multiple .select2-selection__rendered{list-style:none;margin:0;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__clear{display:none}.select2-container--classic .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove{color:#888;cursor:pointer;display:inline-block;font-weight:700;margin-right:2px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover{color:#555}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice{float:right}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--classic.select2-container--open .select2-selection--multiple{border:1px solid #0073aa}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--classic .select2-search--dropdown .select2-search__field{border:1px solid #aaa;outline:0}.select2-container--classic .select2-search--inline .select2-search__field{outline:0;box-shadow:none}.select2-container--classic .select2-dropdown{background-color:#fff;border:1px solid transparent}.select2-container--classic .select2-dropdown--above{border-bottom:none}.select2-container--classic .select2-dropdown--below{border-top:none}.select2-container--classic .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--classic .select2-results__option[role=group]{padding:0}.select2-container--classic .select2-results__option[aria-disabled=true]{color:grey}.select2-container--classic .select2-results__option--highlighted[aria-selected],.select2-container--classic .select2-results__option--highlighted[data-selected]{background-color:#3875d7;color:#fff}.select2-container--classic .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic.select2-container--open .select2-dropdown{border-color:#0073aa}
|
2 |
+
@charset "UTF-8";.ur-form-container .button,.ur-form-container button,.user-registration .button,.user-registration button{-webkit-transition:all .25s ease 0s;transition:all .25s ease 0s}.ur-form-container .button.button-icon,.ur-form-container button.button-icon,.user-registration .button.button-icon,.user-registration button.button-icon{height:32px;width:32px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.ur-form-container .button.button-icon .dashicons,.ur-form-container button.button-icon .dashicons,.user-registration .button.button-icon .dashicons,.user-registration button.button-icon .dashicons{line-height:1}.ur-form-container .button.button-icon-round,.ur-form-container button.button-icon-round,.user-registration .button.button-icon-round,.user-registration button.button-icon-round{border-radius:50%}.ur-form-container .button-primary,.user-registration .button-primary{background:#475bb2;border-color:#475bb2;box-shadow:0 1px 0 #475bb2;text-shadow:none}.ur-form-container .button-primary:active,.ur-form-container .button-primary:focus,.ur-form-container .button-primary:hover,.user-registration .button-primary:active,.user-registration .button-primary:focus,.user-registration .button-primary:hover{background:#38488e;border-color:#38488e;box-shadow:0 1px 0 #38488e}.ur-form-container .button-primary:disabled,.user-registration .button-primary:disabled{color:#b2bae0!important;background:#697ac3!important;border-color:#697ac3!important}.ur-form-container .button-secondary,.user-registration .button-secondary{background:#dee0e9;border-color:#dee0e9;box-shadow:0 1px 0 #dee0e9}.ur-form-container .button-secondary:active,.ur-form-container .button-secondary:focus,.ur-form-container .button-secondary:hover,.user-registration .button-secondary:active,.user-registration .button-secondary:focus,.user-registration .button-secondary:hover{background:#b6bbcf;border-color:#b6bbcf;box-shadow:0 1px 0 #b6bbcf}.ur-form-container .button-danger,.user-registration .button-danger{color:#fff;background:#ff4149;border-color:#ff4149;box-shadow:0 1px 0 #ff4149}.ur-form-container .button-danger:active,.ur-form-container .button-danger:focus,.ur-form-container .button-danger:hover,.user-registration .button-danger:active,.user-registration .button-danger:focus,.user-registration .button-danger:hover{color:#fff;background:#ee2a32;border-color:#ee2a32;box-shadow:0 1px 0 #ee2a32}.ur-form-container .publishing-action .button,.ur-form-container .publishing-action button,.ur-form-container .publishing-action input[type=button],.ur-form-container .publishing-action input[type=submit],.user-registration .publishing-action .button,.user-registration .publishing-action button,.user-registration .publishing-action input[type=button],.user-registration .publishing-action input[type=submit]{margin-left:5px}.ur-registered-item.ui-draggable-dragging{padding:10px 10px;line-height:20px;background:#475bb2;color:#fff;text-align:center;margin-bottom:7px;word-break:break-word;white-space:normal;width:200px!important;z-index:9}.ur-registered-item.ui-draggable-dragging span{font-size:14px;line-height:20px;width:auto;height:auto;margin-left:3px}@font-face{font-family:UserRegistration;src:url(../fonts/UserRegistration.eot?5hlcw0);src:url(../fonts/UserRegistration.eot?5hlcw0#iefix) format("embedded-opentype"),url(../fonts/UserRegistration.ttf?5hlcw0) format("truetype"),url(../fonts/UserRegistration.woff?5hlcw0) format("woff"),url(../fonts/UserRegistration.svg?5hlcw0#UserRegistration) format("svg");font-weight:400;font-style:normal;font-display:block}[class*=' ur-icon-'],[class^=ur-icon-]{font-family:UserRegistration!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ur-icon-input-first-name::before{content:""}.ur-icon-input-last-name::before{content:""}.ur-icon-input-field::before{content:""}.ur-icon-input-password::before{content:""}.ur-icon-input-checkbox::before{content:""}.ur-icon-radio::before{content:""}.ur-icon-number::before{content:""}.ur-icon-phone::before{content:""}.ur-icon-calendar::before{content:""}.ur-icon-drop-down::before{content:""}.ur-icon-textarea::before{content:""}.ur-icon-email::before{content:""}.ur-icon-email-secondary::before{content:""}.ur-icon-email-confirm::before{content:""}.ur-icon-invite-codes::before{content:""}.ur-icon-password::before{content:""}.ur-icon-password-confirm::before{content:""}.ur-icon-user::before{content:""}.ur-icon-user-nickname::before{content:""}.ur-icon-user-display-name::before{content:""}.ur-icon-user-bio::before{content:""}.ur-icon-website::before{content:""}.ur-icon-flag::before{content:""}.ur-icon-map-one::before{content:""}.ur-icon-map-two::before{content:""}.ur-icon-zip-code::before{content:""}.ur-icon-select2::before{content:""}.ur-icon-multi-select::before{content:""}.ur-icon-section-title::before{content:""}.ur-icon-time-picker::before{content:""}.ur-icon-state::before{content:""}.ur-icon-buildings::before{content:""}.ur-icon-text-editor::before{content:""}.ur-icon-bill::before{content:""}.ur-icon-doc::before{content:""}.ur-icon-file-upload::before{content:""}.ur-icon-file-dollar::before{content:""}.ur-icon-code::before{content:""}.ur-icon-mailchimp::before{content:""}.blockUI.blockOverlay::before{height:1em;width:1em;position:absolute;top:50%;right:50%;margin-right:-.5em;margin-top:-.5em;display:block;content:'';-webkit-animation:spin 1s ease-in-out infinite;animation:spin 1s ease-in-out infinite;background:url(../images/icons/loader.svg) center center;background-size:cover;line-height:1;text-align:center;font-size:2em;color:rgba(0,0,0,.75)}@-webkit-keyframes spin{100%{-webkit-transform:rotate(-360deg);transform:rotate(-360deg)}}@keyframes spin{100%{-webkit-transform:rotate(-360deg);transform:rotate(-360deg)}}.ur-export-users-page{margin-top:6px}.ur-export-users-page .nav-tab-content .nav-tab-inside .postbox{width:50%;-webkit-box-flex:1;-webkit-flex:1;flex:1}.ur-export-users-page .nav-tab-content .hndle,.ur-export-users-page .nav-tab-content .stuffbox .hndle{margin:10px;padding-bottom:10px}.ur_addons_wrap .products{overflow:hidden;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap}.ur_addons_wrap .products li{margin:0 0 1% 1%!important;padding:0;vertical-align:top;width:19.2%;float:right}.ur_addons_wrap .products li:nth-child(5n){margin:0 0 1% 0!important}.ur_addons_wrap .products li a{text-decoration:none;color:inherit;border:1px solid #ddd;display:block;min-height:220px;overflow:hidden;background:#f5f5f5;box-shadow:inset 0 1px 0 rgba(255,255,255,.2),inset 0 -1px 0 rgba(0,0,0,.1)}.ur_addons_wrap .products li a .product-image{display:block;background:#fff}.ur_addons_wrap .products li a .product-image img{max-width:100%;display:block;margin:0}.ur_addons_wrap .products li a img.extension-thumb+h3{display:none}.ur_addons_wrap .products li a .price{display:none}.ur_addons_wrap .products li a h2,.ur_addons_wrap .products li a h3{margin:0!important;padding:20px!important;background:#fff}.ur_addons_wrap .products li a p{padding:20px!important;margin:0!important;border-top:1px solid #f1f1f1}.ur_addons_wrap .products li a:focus,.ur_addons_wrap .products li a:hover{background-color:#fff}.clear{clear:both}.wrap.user-registration div.error,.wrap.user-registration div.updated{margin-top:10px}.user-registration_page_add-new-registration #post-body .error,.user-registration_page_add-new-registration #post-body .updated{margin:0}.user-registration_page_add-new-registration #post-body-content{position:relative;float:none}.user-registration_page_add-new-registration .howto span{float:right;margin-top:6px}.user-registration_page_add-new-registration .list-wrap{display:none;clear:both;margin-bottom:10px}.user-registration_page_add-new-registration .list li{display:none;margin:0;margin-bottom:5px}.user-registration_page_add-new-registration .list li .menu-item-title{cursor:pointer;display:block}.user-registration_page_add-new-registration .list li .menu-item-title input{margin-left:3px;margin-top:-3px}.user-registration_page_add-new-registration #wpfooter{display:none}.user-registration_page_add-new-registration .ur-form-container{margin:0}.user-registration_page_add-new-registration .ur-form-container .ur-loading-container{position:fixed;right:160px;left:0;top:0;bottom:0;background:#fff;display:-webkit-box;display:-webkit-flex;display:flex;z-index:9}.user-registration_page_add-new-registration .ur-form-container .ur-loading-container .ur-circle-loading{margin:auto;right:30px}.user-registration_page_add-new-registration .ur-form-container #menu-management{margin-top:0}.user-registration_page_add-new-registration .ur-form-container #menu-management .menu-edit{position:fixed;right:160px;left:0;border:none;box-shadow:none;margin-bottom:0}.user-registration_page_add-new-registration .ur-form-container #ur-full-screen-mode.closed .ur-fs-close-label{display:none}.user-registration_page_add-new-registration .ur-form-container #ur-full-screen-mode.opened .ur-fs-open-label{display:none}.user-registration_page_add-new-registration #menu-management-liquid{margin-top:0;margin-right:-20px;min-width:calc(100% + 20px)}.user-registration_page_add-new-registration .postbox p.submit{margin-bottom:0}.user-registration_page_add-new-registration #nav-menu-footer,.user-registration_page_add-new-registration #nav-menu-header{padding:12px}.user-registration_page_add-new-registration #nav-menu-header{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;position:relative;border-color:#dee0e9;background-color:#fff;z-index:9}.user-registration_page_add-new-registration #nav-menu-header .ur-brand-logo{border-left:1px solid #dee0e9}.user-registration_page_add-new-registration #nav-menu-header .ur-brand-logo img{width:32px;height:32px;padding:0 8px;margin-left:8px;display:-webkit-box;display:-webkit-flex;display:flex}.user-registration_page_add-new-registration #nav-menu-header::after,.user-registration_page_add-new-registration #nav-menu-header::before{content:'';display:-webkit-box;display:-webkit-flex;display:flex;position:absolute;right:0;left:0;bottom:0;background:#fff}.user-registration_page_add-new-registration #nav-menu-header::before{top:0;z-index:-1}.user-registration_page_add-new-registration #nav-menu-header::after{height:10px;box-shadow:0 4px 8px rgba(45,53,89,.08);z-index:-2}.user-registration_page_add-new-registration .major-publishing-actions{clear:both;line-height:28px;margin-right:auto}.user-registration_page_add-new-registration .major-publishing-actions .publishing-action{text-align:left;float:left}.user-registration_page_add-new-registration .major-publishing-actions .publishing-action input.code{width:265px;height:30px;padding:0 6px}.user-registration_page_add-new-registration .major-publishing-actions .form-invalid{padding-right:4px;margin-right:-4px}.user-registration_page_add-new-registration .major-publishing-actions .ur-form-name{width:25%;margin-left:6px}.user-registration_page_add-new-registration .major-publishing-actions #copy-shortcode{margin-right:-5px;border-radius:3px 0 0 3px}.user-registration_page_add-new-registration .major-publishing-actions #copy-shortcode svg{fill:#fff;margin-top:4px}.user-registration_page_add-new-registration .blank-slate .menu-settings{display:none}.user-registration_page_add-new-registration .delete-action{float:right;line-height:28px}.ur-backbone-modal *{box-sizing:border-box}.ur-backbone-modal .ur-backbone-modal-content{position:fixed;background-color:#fff;z-index:100000;right:50%;top:50%;-webkit-transform:translate(50%,-50%);-ms-transform:translate(50%,-50%);transform:translate(50%,-50%);width:500px}.ur-backbone-modal .ur-backbone-modal-content article{overflow:auto}.ur-backbone-modal.ur-backbone-modal-content{width:75%;min-width:500px}.ur-backbone-modal .select2-container{width:100%!important}.ur-backbone-modal-backdrop{position:fixed;top:0;right:0;left:0;bottom:0;min-height:360px;background-color:#2d3559;opacity:.7;z-index:99900}.ur-backbone-modal-main{padding-bottom:55px}.ur-backbone-modal-main article,.ur-backbone-modal-main header{display:block;position:relative}.ur-backbone-modal-main .ur-backbone-modal-header{height:auto;background-color:#fcfcfc;padding:1em 1.5em;border-bottom:1px solid #ddd}.ur-backbone-modal-main .ur-backbone-modal-header h1{margin:0;font-size:18px;font-weight:700;line-height:1.5em}.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link{cursor:pointer;color:#777;height:54px;width:54px;padding:0;position:absolute;top:0;left:0;text-align:center;border:0;border-right:1px solid #ddd;background-color:transparent;-webkit-transition:color .1s ease-in-out,background .1s ease-in-out;transition:color .1s ease-in-out,background .1s ease-in-out}.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link::before{font:normal 22px/50px dashicons!important;color:#676d8a;display:block;content:'\f335';font-weight:300}.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link:focus,.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link:hover{background-color:#ddd;border-color:#ccc;color:#2d3559}.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link:focus{outline:0}.ur-backbone-modal-main article{padding:1.5em}.ur-backbone-modal-main article p{margin:1.5em 0}.ur-backbone-modal-main article p:first-child{margin-top:0}.ur-backbone-modal-main article p:last-child{margin-bottom:0}.ur-backbone-modal-main article .pagination{padding:10px 0 0;text-align:center}.ur-backbone-modal-main footer{position:absolute;right:0;left:0;bottom:0;z-index:100;padding:1em 1.5em;background-color:#fcfcfc;border-top:1px solid #dfdfdf;box-shadow:0 -4px 4px -4px rgba(0,0,0,.1)}.ur-backbone-modal-main footer .inner{float:left;line-height:23px}.ur-backbone-modal-main footer .inner .button{margin-bottom:0}.user-registration h2.ur-nav-tab-wrapper{margin-bottom:1em}.user-registration nav.ur-nav-tab-wrapper{margin:1.5em 0 1em;border-bottom:1px solid #ccc}.user-registration #mainform>.subsubsub{background:#e5e5e5;float:none}.user-registration #mainform>.subsubsub a{display:block;padding:7px 10px}.user-registration #mainform>.subsubsub a.current{color:#fff;background:#475bb2}.user-registration textarea[disabled=disabled]{background:#dfdfdf!important}.user-registration table.form-table{margin:0;position:relative}.user-registration table.form-table .select2-container{display:block;max-width:350px}.user-registration table.form-table .forminp-radio ul{margin:0}.user-registration table.form-table .forminp-radio ul li{line-height:1.4em}.user-registration table.form-table textarea.input-text{height:100%;min-width:150px;display:block}.user-registration table.form-table input.regular-input{width:25em}.user-registration table.form-table textarea.wide-input{width:100%}.user-registration table.form-table .user-registration-help-tip,.user-registration table.form-table img.help_tip{padding:0;margin:-4px 5px 0 0;vertical-align:middle;cursor:help;line-height:1}.user-registration table.form-table span.help_tip{cursor:help;color:#2ea2cc}.user-registration table.form-table th{position:relative;padding-left:24px}.user-registration table.form-table .select2-container{vertical-align:top;margin-bottom:3px}.user-registration table.form-table table.widefat th{padding-left:inherit}.user-registration table.form-table th .user-registration-help-tip,.user-registration table.form-table th img.help_tip{margin:0 0 0 -24px;float:left}.user-registration table.form-table .wp-list-table .user-registration-help-tip{float:none}.user-registration table.form-table fieldset{margin-top:4px}.user-registration table.form-table fieldset .user-registration-help-tip,.user-registration table.form-table fieldset img.help_tip{margin:-3px 5px 0 0}.user-registration table.form-table fieldset p.description{margin-bottom:8px}.user-registration table.form-table fieldset:first-child{margin-top:0}.user-registration table.form-table .iris-picker{z-index:100;display:none;position:absolute;border:1px solid #ccc;border-radius:3px;box-shadow:0 1px 3px rgba(0,0,0,.2)}.user-registration table.form-table .iris-picker .ui-slider{border:0!important;margin:0!important;width:auto!important;height:auto!important;background:none transparent!important}.user-registration table.form-table .iris-picker .ui-slider .ui-slider-handle{margin-bottom:0!important}.user-registration table.form-table .colorpickpreview{padding:3px;padding-right:20px;border:1px solid #ddd;border-left:0}.user-registration table.form-table .colorpick{border-right:0}.user-registration table.form-table .image_width_settings{vertical-align:middle}.user-registration table.form-table .image_width_settings label{margin-right:10px}.ur-admin-template-options{display:none}.ur-registered-from{display:-webkit-box;display:-webkit-flex;display:flex;background-color:#fff;font-family:Roboto,sans-serif}.ur-registered-from *{box-sizing:border-box}.ur-registered-from :focus{outline:0}.ur-registered-from a{text-decoration:none}.ur-registered-from h3{color:#2d3559;font-weight:500}.ur-registered-from .ur-field{line-height:2}.ur-registered-from .ur-field label{font-weight:400}.ur-registered-from .ur-field label:last-child{margin-bottom:0}.ur-registered-from .ur-field input[type=checkbox],.ur-registered-from .ur-field input[type=radio]{opacity:1;box-shadow:none;border-color:#dee0e9}.ur-registered-from .wp-picker-container .wp-picker-input-wrap label{display:inline-block;width:auto}.ur-registered-from .wp-picker-container .wp-picker-input-wrap label input.wp-color-picker{height:auto;padding:3px 5px}.ur-registered-from .ur-registered-item{cursor:move;padding:4px;color:#676d8a;height:110px;font-size:12px;border-radius:4px;margin:0 8px 16px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;width:calc(33.3333% - 16px);background-color:#f0f1f5}.ur-registered-from .ur-registered-item .ur-icon{font-size:32px;margin-bottom:4px}.ur-registered-from .ur-registered-item:hover{background-color:#475bb2;color:#fff}.ur-registered-from .ur-registered-item.ui-draggable-dragging{width:110px!important;z-index:9!important}.ur-registered-from .ur-registered-inputs{width:412px;background-color:#f9f9f9}.ur-registered-from .ur-registered-inputs .ur-tabs{border:0 none;padding:0;font-family:Roboto,sans-serif;font-size:14px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists{background-color:#f0f1f5;background-image:none;padding:0;border-radius:0;margin:0;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;border-bottom:none;border-top:0 none;border-left:0 none;border-right:0 none}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li{background-color:transparent;background-image:none;border-radius:0;margin:0;margin-bottom:-1px;padding:0;border:0;-webkit-box-flex:1;-webkit-flex:1;flex:1;text-align:center}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li.active{margin-bottom:0;padding-bottom:0}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li.ui-state-disabled{opacity:1}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li a{float:none;text-decoration:none;margin:0;border:none;display:block;color:#2d3559;background-color:transparent;padding:12px 15px;font-weight:500;cursor:pointer}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li a:focus{box-shadow:0 0 0 0 transparent,0 0 0 0 transparent}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li a.active{background-color:#fff;color:#475bb2;line-height:24px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-contents{height:calc(100vh - 130px);position:relative;overflow-y:auto}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content{padding:16px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content#ur-tab-field-options,.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content#ur-tab-registered-fields{background-color:#fff}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content h2{margin:16px 0;font-size:1em;font-weight:500;font-family:Roboto,sans-serif;color:#2d3559}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content h2~hr{border-top:1px solid #dee0e9}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;width:calc(100% + 16px);margin-right:-8px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list:last-child{margin-bottom:0}.ur-registered-from .ui-widget select,.ur-registered-from input[type=date],.ur-registered-from input[type=email],.ur-registered-from input[type=file],.ur-registered-from input[type=month],.ur-registered-from input[type=number],.ur-registered-from input[type=password],.ur-registered-from input[type=phone],.ur-registered-from input[type=tel],.ur-registered-from input[type=text],.ur-registered-from input[type=time],.ur-registered-from input[type=timepicker],.ur-registered-from input[type=url],.ur-registered-from input[type=week],.ur-registered-from select,.ur-registered-from textarea{width:100%;height:32px;display:block;color:#4c5477;font-size:13px;padding:0 8px;border-radius:3px;border:1px solid #dee0e9;box-shadow:0 0 0 transparent}.ur-registered-from .ui-widget select:focus,.ur-registered-from input[type=date]:focus,.ur-registered-from input[type=email]:focus,.ur-registered-from input[type=file]:focus,.ur-registered-from input[type=month]:focus,.ur-registered-from input[type=number]:focus,.ur-registered-from input[type=password]:focus,.ur-registered-from input[type=phone]:focus,.ur-registered-from input[type=tel]:focus,.ur-registered-from input[type=text]:focus,.ur-registered-from input[type=time]:focus,.ur-registered-from input[type=timepicker]:focus,.ur-registered-from input[type=url]:focus,.ur-registered-from input[type=week]:focus,.ur-registered-from select:focus,.ur-registered-from textarea:focus{border-color:#475bb2}.ur-registered-from .ui-widget select::-webkit-input-placeholder,.ur-registered-from input[type=date]::-webkit-input-placeholder,.ur-registered-from input[type=email]::-webkit-input-placeholder,.ur-registered-from input[type=file]::-webkit-input-placeholder,.ur-registered-from input[type=month]::-webkit-input-placeholder,.ur-registered-from input[type=number]::-webkit-input-placeholder,.ur-registered-from input[type=password]::-webkit-input-placeholder,.ur-registered-from input[type=phone]::-webkit-input-placeholder,.ur-registered-from input[type=tel]::-webkit-input-placeholder,.ur-registered-from input[type=text]::-webkit-input-placeholder,.ur-registered-from input[type=time]::-webkit-input-placeholder,.ur-registered-from input[type=timepicker]::-webkit-input-placeholder,.ur-registered-from input[type=url]::-webkit-input-placeholder,.ur-registered-from input[type=week]::-webkit-input-placeholder,.ur-registered-from select::-webkit-input-placeholder,.ur-registered-from textarea::-webkit-input-placeholder{color:#b6bbcf}.ur-registered-from .ui-widget select::-ms-input-placeholder,.ur-registered-from input[type=date]::-ms-input-placeholder,.ur-registered-from input[type=email]::-ms-input-placeholder,.ur-registered-from input[type=file]::-ms-input-placeholder,.ur-registered-from input[type=month]::-ms-input-placeholder,.ur-registered-from input[type=number]::-ms-input-placeholder,.ur-registered-from input[type=password]::-ms-input-placeholder,.ur-registered-from input[type=phone]::-ms-input-placeholder,.ur-registered-from input[type=tel]::-ms-input-placeholder,.ur-registered-from input[type=text]::-ms-input-placeholder,.ur-registered-from input[type=time]::-ms-input-placeholder,.ur-registered-from input[type=timepicker]::-ms-input-placeholder,.ur-registered-from input[type=url]::-ms-input-placeholder,.ur-registered-from input[type=week]::-ms-input-placeholder,.ur-registered-from select::-ms-input-placeholder,.ur-registered-from textarea::-ms-input-placeholder{color:#b6bbcf}.ur-registered-from .ui-widget select::placeholder,.ur-registered-from input[type=date]::placeholder,.ur-registered-from input[type=email]::placeholder,.ur-registered-from input[type=file]::placeholder,.ur-registered-from input[type=month]::placeholder,.ur-registered-from input[type=number]::placeholder,.ur-registered-from input[type=password]::placeholder,.ur-registered-from input[type=phone]::placeholder,.ur-registered-from input[type=tel]::placeholder,.ur-registered-from input[type=text]::placeholder,.ur-registered-from input[type=time]::placeholder,.ur-registered-from input[type=timepicker]::placeholder,.ur-registered-from input[type=url]::placeholder,.ur-registered-from input[type=week]::placeholder,.ur-registered-from select::placeholder,.ur-registered-from textarea::placeholder{color:#b6bbcf}.ur-registered-from .ui-widget select:disabled,.ur-registered-from input[type=date]:disabled,.ur-registered-from input[type=email]:disabled,.ur-registered-from input[type=file]:disabled,.ur-registered-from input[type=month]:disabled,.ur-registered-from input[type=number]:disabled,.ur-registered-from input[type=password]:disabled,.ur-registered-from input[type=phone]:disabled,.ur-registered-from input[type=tel]:disabled,.ur-registered-from input[type=text]:disabled,.ur-registered-from input[type=time]:disabled,.ur-registered-from input[type=timepicker]:disabled,.ur-registered-from input[type=url]:disabled,.ur-registered-from input[type=week]:disabled,.ur-registered-from select:disabled,.ur-registered-from textarea:disabled{color:#b6bbcf;background:#f0f1f5}.ur-registered-from select{padding-left:0}.ur-registered-from label{display:block;width:100%;margin-bottom:8px;color:#4c5477;font-size:13px;font-weight:500;line-height:1.25}.ur-registered-from textarea{padding:10px;height:100px}.ur-registered-from .ur-builder-wrapper{position:relative;-webkit-box-flex:1;-webkit-flex:1;flex:1;height:calc(100vh - 89px);background:#fafafc;border-right:1px solid #dee0e9;overflow-y:auto}.ur-registered-from .ur-builder-wrapper input[type=date]:disabled,.ur-registered-from .ur-builder-wrapper input[type=email]:disabled,.ur-registered-from .ur-builder-wrapper input[type=file]:disabled,.ur-registered-from .ur-builder-wrapper input[type=month]:disabled,.ur-registered-from .ur-builder-wrapper input[type=number]:disabled,.ur-registered-from .ur-builder-wrapper input[type=password]:disabled,.ur-registered-from .ur-builder-wrapper input[type=phone]:disabled,.ur-registered-from .ur-builder-wrapper input[type=tel]:disabled,.ur-registered-from .ur-builder-wrapper input[type=text]:disabled,.ur-registered-from .ur-builder-wrapper input[type=time]:disabled,.ur-registered-from .ur-builder-wrapper input[type=timepicker]:disabled,.ur-registered-from .ur-builder-wrapper input[type=url]:disabled,.ur-registered-from .ur-builder-wrapper input[type=week]:disabled,.ur-registered-from .ur-builder-wrapper select:disabled,.ur-registered-from .ur-builder-wrapper textarea:disabled{background:#fff}.ur-registered-from .ur-builder-wrapper .ur-builder-header{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.ur-registered-from .ur-builder-wrapper .ur-form-name-wrapper{display:-webkit-inline-box;display:-webkit-inline-flex;display:inline-flex;-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-webkit-flex-direction:row-reverse;flex-direction:row-reverse;margin:16px 0;position:relative}.ur-registered-from .ur-builder-wrapper .ur-form-name-wrapper .ur-edit-form-name{width:32px;height:32px;cursor:pointer;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;border-radius:3px;margin-bottom:0;color:#4c5477;background:#dee0e9;border:1px solid transparent}.ur-registered-from .ur-builder-wrapper .ur-form-name-wrapper .ur-edit-form-name::after{content:'';border-radius:3px;position:absolute;right:32px;left:calc(100% - 32px);height:30px;border-radius:3px 0 0 3px;-webkit-transition:all .3s ease 0s;transition:all .3s ease 0s}.ur-registered-from .ur-builder-wrapper .ur-form-name-wrapper input{color:#2d3559;background:0 0;font-size:16px;width:auto;height:auto;padding:4px 8px;border-color:transparent;pointer-events:none;z-index:1;border:1px solid transparent}.ur-registered-from .ur-builder-wrapper .ur-form-name-wrapper input.ur-editing{border-color:transparent;pointer-events:all}.ur-registered-from .ur-builder-wrapper .ur-form-name-wrapper input.ur-editing+.ur-edit-form-name{color:#fff;background:#475bb2;border-radius:0 3px 3px 0;border:1px solid #475bb2}.ur-registered-from .ur-builder-wrapper .ur-form-name-wrapper input.ur-editing+.ur-edit-form-name::after{top:0;left:0;border:1px solid #475bb2}.ur-registered-from .ur-selected-inputs{box-sizing:border-box;padding:0 20px}.ur-registered-from .ur-selected-inputs .ur-single-row{border-radius:3px;position:relative;border:1px solid transparent}.ur-registered-from .ur-selected-inputs .ur-single-row:last-child{margin-bottom:0}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids{display:-webkit-box;display:-webkit-flex;display:flex;position:absolute;left:0;z-index:1;opacity:0;-webkit-transition:all .2s ease-in;transition:all .2s ease-in}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids button{display:-webkit-box;display:-webkit-flex;display:flex;border-radius:0;border:0;background-color:#676d8a;color:#fff;font-size:16px;height:auto;width:auto;cursor:pointer;padding:4px 6px;line-height:1;-webkit-transition:all .1s ease-in-out;transition:all .1s ease-in-out}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids button svg{width:16px;height:16px;font-size:16px;fill:#fff}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids button:before{font-family:dashicons}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids button.ur-remove-row:hover{background:red}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids button:hover{background:#475bb2}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids button:first-child{border-radius:0 3px 3px 0;border-left:1px solid rgba(255,255,255,.2)}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids button:nth-child(2){border-radius:3px 0 0 3px}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids .ur-toggle-grid-content{background:#fff;padding:1rem;position:absolute;top:40px;left:0;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;white-space:nowrap;border:1px solid #dee0e9;border-radius:4px;box-shadow:-1px 4px 14px 1px rgba(26,31,51,.1)}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids .ur-toggle-grid-content small{font-size:12px;margin-bottom:.5rem;color:#676d8a}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids .ur-toggle-grid-content .ur-grid-selector{cursor:pointer;display:-webkit-box;display:-webkit-flex;display:flex;margin-left:.5rem}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids .ur-toggle-grid-content .ur-grid-selector svg{width:32px;height:32px;fill:#676d8a}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids .ur-toggle-grid-content .ur-grid-selector:last-child{margin-left:0}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids .ur-toggle-grid-content::before{content:'';width:8px;height:8px;border:solid #dee0e9;border-width:1px;border-right:transparent;border-bottom:transparent;position:absolute;top:-5px;left:36px;background:#fff;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists{width:100%;display:-webkit-box;display:-webkit-flex;display:flex;text-align:center;box-sizing:border-box;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;border:1px solid transparent;border-radius:4px;-webkit-transition:all .2s ease-in;transition:all .2s ease-in}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists:hover{background:#fff;border:1px solid #b6bbcf}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists:hover .ur-grid-list-item{border-right:1px solid #b6bbcf}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists:hover .ur-grid-list-item:first-child{border-color:transparent}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item{display:inline-block;text-align:right;border:0 none;padding:15px;-webkit-box-flex:1;-webkit-flex:1;flex:1;border:1px solid transparent;border-radius:4px;-webkit-transition:all .2s ease-in;transition:all .2s ease-in}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item{margin-bottom:5px;position:relative;padding:15px;cursor:move;border:1px solid transparent;border-radius:4px;-webkit-transition:border-color .35s;transition:border-color .35s}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .select2-container{width:100%!important}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .select2-container .select2-search--inline .select2-search__field{height:auto;min-width:10px}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-input-type-signature canvas{background:rgba(255,255,255,.5);border:1px solid #ddd}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item:last-child{margin-bottom:0}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item.ur-item-active,.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item:hover{background:#fff;border:1px solid #475bb2}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item.ui-sortable-helper{box-shadow:0 0 10px 5px rgba(45,53,89,.1)}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item.ui-sortable-placeholder{visibility:visible!important;border:1px dashed #b6bbcf;background-color:#f0f1f5}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons{display:none;position:absolute;left:10px;width:50px;text-align:center;padding:0;font-size:10px;top:10px;color:#b6bbcf}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons span{cursor:pointer;font-size:16px;height:auto}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons span:hover{color:#475bb2}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons:hover .ur-action-buttons{display:block}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons .ur-trash:hover{color:#ff4149}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur_label_top_left{text-align:right}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur_label_center{text-align:center}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur_label_top_right{text-align:left}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur_label_disabled{display:none}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item:hover .ur-action-buttons{display:block}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item>li.ur-item-dragged{list-style:none;width:100%;text-align:center;height:60px!important;box-sizing:border-box}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item>li.ur-item-dragged .spinner{float:none}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me{display:table;width:100%;height:100%}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me .user-registration-dragged-me-text{display:table-cell;vertical-align:middle;text-align:center}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me .user-registration-dragged-me-text p{display:inline-block;position:relative;color:#b6bbcf;padding-right:26px;padding-top:8px}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me .user-registration-dragged-me-text p::before{position:absolute;font-family:Dashicons;content:'\f545';font-size:22px;right:0;top:0}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me:empty{padding:15px;text-align:center;border-radius:4px;border:1px dashed #b6bbcf;background-color:#f0f1f5}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me:empty::before{content:'\f132';font-size:32px;color:#b6bbcf;width:32px;height:32px;font-family:dashicons;display:table-cell;vertical-align:middle}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item.ur-sortable-active .ur-registered-item{margin-bottom:0}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item.ur-sortable-active .user-registration-dragged-me{display:none}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item:first-child{border-radius:0 4px 4px 0}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item:nth-child(2){border-radius:0}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item:nth-child(3){border-radius:4px 0 0 4px}.ur-registered-from .ur-selected-inputs .ur-single-row:hover .ur-grids{opacity:1}.ur-registered-from .ur-selected-inputs .ur-add-new-row{display:block;margin:20px auto;width:auto;height:32px;text-align:center;font-family:inherit}.ur-registered-from .ur-selected-inputs .ur-add-new-row::before{width:16px;height:16px;line-height:1;font-size:16px;margin-left:10px;font-family:dashicons;vertical-align:middle;padding:1px 0 1px 10px;border-left:1px solid rgba(255,255,255,.3)}.ur-registered-from .ur-selected-inputs li.ur-registered-item{width:120px!important}.ur-registered-from .ur-selected-inputs li.ur-registered-item.ui-sortable-placeholder{margin-right:0;width:100%!important;visibility:visible!important;border:1px dashed #acaeba;background-color:#f0f1f5}.ur-registered-from .ur-advance-setting,.ur-registered-from .ur-general-setting{margin:16px 0}.ur-registered-from .ur-advance-setting-block{margin-top:25px}.ur-registered-from .form-row{margin-bottom:1em}.ur-registered-from .form-row .description{color:#676d8a;font-size:12px;margin-bottom:4px;display:block}.ur-registered-from .form-row .ur-checkbox-list label,.ur-registered-from .form-row .ur-radio-list label{display:inline}.ur-registered-from .ur-registered-item.dragging{border:0;box-shadow:0 0 0 transparent;border-radius:0;padding:5px 10px;height:auto;background-color:#475bb2;color:#fff;text-align:center;width:200px}.ur-registered-from .ur-advance-setting-block,.ur-registered-from .ur-general-setting-block{display:none}.ur-registered-from .ur-advance-setting label,.ur-registered-from .ur-general-setting label{display:block}.ur-registered-from .add,.ur-registered-from .remove{background:#fff;border:1px solid #ddd;color:#676d8a;cursor:pointer;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-flex:1;-webkit-flex:1 0 32px;flex:1 0 32px;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;height:32px;max-width:32px;border-radius:4px;position:relative}.ur-registered-from .add:hover,.ur-registered-from .remove:hover{background:#475bb2;border-color:#475bb2;color:#fff}.ur-registered-from .add .dashicons,.ur-registered-from .remove .dashicons{line-height:22px}.ur-registered-from .add{margin-left:8px}.ur-registered-from .ur-options-list li{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.ur-registered-from .ur-options-list li .editor-block-mover__control-drag-handle{margin-left:8px;cursor:-webkit-grab;cursor:grab}.ur-registered-from .ur-options-list li .editor-block-mover__control-drag-handle svg{fill:#676d8a}.ur-registered-from .ur-options-list li input{margin-left:8px}.ur-registered-from .ur-options-list .ui-sortable-handle{padding:5px;border-radius:3px;border:1px solid transparent}.ur-registered-from .ur-options-list .ui-sortable-handle:active{padding:5px;background:#fff;border:1px solid #475bb2;box-shadow:0 0 20px rgba(0,0,0,.2)}.ur-registered-from .ur-options-list .ui-sortable-handle.ui-sortable-placeholder{background-color:#dee0e9;visibility:visible!important}.ur-registered-from .urcl-rules{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;margin-bottom:8px}.ur-registered-from .urcl-rules>div{margin-left:8px}.ur-registered-from .urcl-rules .urcl-operator{width:78px}.ur-registered-from .urcl-rules .urcl-field,.ur-registered-from .urcl-rules .urcl-value{max-width:27%;-webkit-box-flex:1;-webkit-flex:1 0 27%;flex:1 0 27%}#sortable{min-height:400px}.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:#dee0e9}#tiptip_holder.tip_bottom{padding-top:5px}#tiptip_holder.tip_bottom #tiptip_arrow_inner{margin-top:-5px;margin-right:-6px;border-bottom-color:#4c5477}#tiptip_holder.tip_right{padding-right:5px}#tiptip_holder.tip_right #tiptip_arrow_inner{margin-top:-6px;margin-right:-5px;border-left-color:#dee0e9}#tiptip_holder.tip_left{padding-left:5px}#tiptip_holder.tip_left #tiptip_arrow_inner{margin-top:-6px;margin-right:-7px;border-right-color:#dee0e9}#tiptip_content,.ur_error_tip{color:#fff;font-size:.9em;max-width:150px;background:#4c5477;text-align:center;border-radius:3px;padding:.618em 1em;box-shadow:0 1px 3px rgba(0,0,0,.2)}#tiptip_content code,.ur_error_tip 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}.ur_error_tip{max-width:20em;line-height:1.8em;position:absolute;white-space:normal;background:#ff4149;margin:1.5em -1em 0 1px;z-index:9999999}.ur_error_tip::after{content:'';display:block;border:8px solid #ff4149;border-left-color:transparent;border-right-color:transparent;border-top-color:transparent;position:absolute;top:-3px;right:50%;margin:-1em -3px 0 0}.user-registration-help-tip{color:#676d8a;display:inline-block;font-size:16px;font-style:normal;height:16px;line-height:16px;position:relative;vertical-align:middle;width:16px}.user-registration-help-tip::after{font-family:Dashicons;speak:none;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;margin:0;text-indent:0;position:absolute;top:0;right:0;width:100%;height:100%;text-align:center;content:"";cursor:help}.select2-drop,.select2-dropdown{z-index:999999!important}.select2-results{line-height:1.5em}.select2-results .select2-results__group,.select2-results .select2-results__option{margin:0;padding:8px}.select2-dropdown{border-color:#ddd}.select2-dropdown--below{box-shadow:0 1px 1px rgba(0,0,0,.1)}.select2-dropdown--above{box-shadow:0 -1px 1px rgba(0,0,0,.1)}.select2-container .select2-selection__rendered.ui-sortable li{cursor:move}.select2-container .select2-selection{border-color:#ddd}.select2-container .select2-search__field{min-width:150px}.select2-container .select2-selection--single{height:32px}.select2-container .select2-selection--single .select2-selection__rendered{line-height:32px;padding-left:24px}.select2-container .select2-selection--single .select2-selection__arrow{left:3px;height:30px}.select2-container .select2-selection--multiple{min-height:28px;border-radius:0;line-height:1.5}.select2-container .select2-selection--multiple li{margin:0}.select2-container .select2-selection--multiple .select2-selection__choice{padding:2px 6px}.select2-container .select2-selection__clear{color:#999;margin-top:-1px}.select2-container .select2-search--inline .select2-search__field{font-family:inherit;font-size:inherit;font-weight:inherit;padding:3px 0}#ur-tab-registered-fields li.ur-registered-item.ui-draggable-disabled{color:#b6bbcf}#ur-tab-registered-fields li.ur-registered-item.ui-draggable-disabled:hover{background:#f0f1f5;cursor:not-allowed}.ur-no-pointer{pointer-events:none}.dashicons,.user-registration table.form-table dashicons .dashicons{line-height:inherit}#smart-tags{text-align:center}.form-settings-tab{cursor:pointer;padding:10px 15px;color:#2d3559;background:#e8e9ee;margin-bottom:10px;border-radius:4px}.form-settings-tab.active{background:#475bb2;color:#fff}#profile-page form#your-profile .flatpickr-input[readonly]{background-color:#fff}#ur-tab-registered-fields h2{cursor:pointer}#ur-tab-registered-fields h2:before{content:'\f142';cursor:pointer;display:block;font:400 20px/1 Dashicons;line-height:.5!important;padding:4px;position:relative;left:0;top:0;float:left}#ur-tab-registered-fields h2.closed:before{content:""!important}body.ur-full-screen-mode{margin-top:-32px}body.ur-full-screen-mode #wpbody-content{padding-bottom:45px}body.ur-full-screen-mode #wpwrap #wpcontent{margin-right:0;padding-right:0}body.ur-full-screen-mode #wpwrap #wpcontent #wpadminbar{display:none}body.ur-full-screen-mode #wpwrap #wpcontent #wpbody .ur-tab-content{padding:20px}body.ur-full-screen-mode #wpwrap #wpcontent #wpbody #menu-management-liquid{margin-top:0}body.ur-full-screen-mode #wpwrap #wpcontent #wpbody #menu-management-liquid .menu-edit{margin-bottom:0;box-shadow:none;right:0!important}body.ur-full-screen-mode #wpwrap #adminmenumain{display:none}body.ur-full-screen-mode .ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-contents{height:calc(100vh - 98px)}body.ur-full-screen-mode .ur-registered-from .ur-builder-wrapper{height:calc(100vh - 57px)}@-webkit-keyframes ur-circle-loading{0%,100%{-webkit-animation-timing-function:cubic-bezier(.2,0,.8,1);animation-timing-function:cubic-bezier(.2,0,.8,1)}50%{-webkit-animation-timing-function:cubic-bezier(0,.2,1,.8);animation-timing-function:cubic-bezier(0,.2,1,.8)}0%{-webkit-transform:rotate(0) translate(0,-20px) scale(0);transform:rotate(0) translate(0,-20px) scale(0)}50%{-webkit-transform:rotate(-180deg) translate(0,-20px) scale(1);transform:rotate(-180deg) translate(0,-20px) scale(1)}100%{-webkit-transform:rotate(-360deg) translate(0,-20px) scale(0);transform:rotate(-360deg) translate(0,-20px) scale(0)}}@keyframes ur-circle-loading{0%,100%{-webkit-animation-timing-function:cubic-bezier(.2,0,.8,1);animation-timing-function:cubic-bezier(.2,0,.8,1)}50%{-webkit-animation-timing-function:cubic-bezier(0,.2,1,.8);animation-timing-function:cubic-bezier(0,.2,1,.8)}0%{-webkit-transform:rotate(0) translate(0,-20px) scale(0);transform:rotate(0) translate(0,-20px) scale(0)}50%{-webkit-transform:rotate(-180deg) translate(0,-20px) scale(1);transform:rotate(-180deg) translate(0,-20px) scale(1)}100%{-webkit-transform:rotate(-360deg) translate(0,-20px) scale(0);transform:rotate(-360deg) translate(0,-20px) scale(0)}}@-webkit-keyframes ur-circle-loading-keyframe{0%,100%{-webkit-animation-timing-function:cubic-bezier(.2,0,.8,1);animation-timing-function:cubic-bezier(.2,0,.8,1)}50%{-webkit-animation-timing-function:cubic-bezier(0,.2,1,.8);animation-timing-function:cubic-bezier(0,.2,1,.8)}0%{-webkit-transform:rotate(0) translate(0,-20px) scale(0);transform:rotate(0) translate(0,-20px) scale(0)}50%{-webkit-transform:rotate(-180deg) translate(0,-20px) scale(1);transform:rotate(-180deg) translate(0,-20px) scale(1)}100%{-webkit-transform:rotate(-360deg) translate(0,-20px) scale(0);transform:rotate(-360deg) translate(0,-20px) scale(0)}}.ur-circle-loading{position:relative;width:100px!important;height:100px!important;-webkit-transform:translate(50px,-50px) scale(.5) translate(-50px,50px);-ms-transform:translate(50px,-50px) scale(.5) translate(-50px,50px);transform:translate(50px,-50px) scale(.5) translate(-50px,50px)}.ur-circle-loading::after,.ur-circle-loading::before{content:'';position:absolute;top:70px;right:70px;-webkit-animation:ur-circle-loading-keyframe 1.5s linear infinite;animation:ur-circle-loading-keyframe 1.5s linear infinite;width:60px;height:60px;border-radius:50%;background:#475bb2}.ur-circle-loading::after{-webkit-animation-delay:-.75s;animation-delay:-.75s;background:#668fe5}@media only screen and (max-width:1599px){.ur_addons_wrap .products li{width:32.66%}.ur_addons_wrap .products li:nth-child(5n){margin:0 0 1% 1%!important}.ur_addons_wrap .products li:nth-child(3n){margin:0 0 1% 0!important}}@media screen and (max-width:1400px){.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{font-size:12px}.ur-registered-from .urcl-rules .urcl-field{max-width:61%;-webkit-box-flex:1;-webkit-flex:1 0 60%;flex:1 0 60%;margin-bottom:5px}.ur-registered-from .urcl-rules .urcl-value{-webkit-box-ordinal-group:5;-webkit-order:4;order:4;max-width:87%;-webkit-box-flex:1;-webkit-flex:1 0 86%;flex:1 0 86%}.ur-registered-from .urcl-rules .add{-webkit-box-ordinal-group:4;-webkit-order:3;order:3;margin-left:0}.ur-registered-from .urcl-rules .remove{-webkit-box-ordinal-group:6;-webkit-order:5;order:5}}@media only screen and (max-width:1120px){.ur_addons_wrap .products li{width:49%;margin:0 0 2% 2%!important}.ur_addons_wrap .products li:nth-child(3n),.ur_addons_wrap .products li:nth-child(5n){margin:0 0 2% 2%!important}.ur_addons_wrap .products li:nth-child(2n){margin:0 0 2% 0!important}}@media screen and (max-width:960px){.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{float:none;width:100%}.ur-registered-from .ur-registered-inputs .ur-single-row .ur-grid-lists,.ur-registered-from .ur-registered-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item,.ur-registered-from .ur-registered-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item{padding:10px}}@media only screen and (max-width:900px){.ur_addons_wrap .products li{width:49%}}@media screen and (max-width:782px){body.user-registration_page_add-new-registration{min-width:0!important}.ur-registered-from{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.ur-registered-from .ur-registered-inputs{width:100%;margin-bottom:10px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{float:right;width:48%}.ur-registered-from .ur-selected-inputs{width:100%}}@media only screen and (min-width:769px) and (max-width:1000px){.user-registration_page_add-new-registration #post-body-content{min-width:0}}@media screen and (max-width:600px){.user-registration_page_add-new-registration .major-publishing-actions{clear:both;padding:10px 0 19px;line-height:28px}.user-registration_page_add-new-registration .major-publishing-actions .ur-form-name{width:100%}.user-registration_page_add-new-registration .major-publishing-actions .publishing-action{text-align:right;float:none;margin-top:15px}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;display:block}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item{width:100%!important}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item:nth-child(1n+2){border-right:0 none;border-top:2px solid #f2f2f2}}@media only screen and (max-width:480px){.ur_addons_wrap .products li,.ur_addons_wrap .products li:nth-child(2n),.ur_addons_wrap .products li:nth-child(3n),.ur_addons_wrap .products li:nth-child(5n){width:100%;margin:0 0 3% 0!important}}@-webkit-keyframes open-message{0%{opacity:0;-webkit-transform:translateY(-120%);transform:translateY(-120%)}100%{-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes open-message{0%{opacity:0;-webkit-transform:translateY(-120%);transform:translateY(-120%)}100%{-webkit-transform:translateY(0);transform:translateY(0)}}@-webkit-keyframes close-message{0%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}100%{opacity:0;-webkit-transform:scale(.9);transform:scale(.9)}}@keyframes close-message{0%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}100%{opacity:0;-webkit-transform:scale(.9);transform:scale(.9)}}.ur-builder-message-container{position:fixed;top:32px;right:0;left:0;max-width:400px;margin:0 auto;z-index:9999}.ur-builder-message-container .ur-message{display:none;margin:0 auto;margin-top:16px;-webkit-transition:all 240ms cubic-bezier(0,0,.2,1) 0s;transition:all 240ms cubic-bezier(0,0,.2,1) 0s;z-index:99999;height:0}.ur-builder-message-container .ur-message .ur-error,.ur-builder-message-container .ur-message .ur-success{background:#fff;padding:8px 16px;border-radius:3px;border-right:3px solid;position:relative;box-shadow:0 1px 8px 2px rgba(26,31,51,.1)}.ur-builder-message-container .ur-message .ur-error p,.ur-builder-message-container .ur-message .ur-success p{margin:8px 0}.ur-builder-message-container .ur-message .ur-error p::after,.ur-builder-message-container .ur-message .ur-error p::before,.ur-builder-message-container .ur-message .ur-success p::after,.ur-builder-message-container .ur-message .ur-success p::before{font-family:dashicons;width:20px;height:20px;font-size:20px;margin-left:8px;margin-top:-4px;line-height:1;display:inline-block;vertical-align:middle}.ur-builder-message-container .ur-message .ur-success{border-color:#7ad03a}.ur-builder-message-container .ur-message .ur-success p::before{content:"\f12a";color:#7ad03a}.ur-builder-message-container .ur-message .ur-error{border-color:red}.ur-builder-message-container .ur-message .ur-error p::before{content:"\f534";color:red}.ur-builder-message-container .ur-message .dashicons{cursor:pointer;position:absolute;left:16px;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);line-height:1}.ur-builder-message-container .ur-message.entered{display:block;height:50px;-webkit-animation:240ms cubic-bezier(.175,.885,.32,1.175) 0s 1 normal both open-message;animation:240ms cubic-bezier(.175,.885,.32,1.175) 0s 1 normal both open-message}.ur-builder-message-container .ur-message.exiting{display:block;-webkit-animation:120ms cubic-bezier(.4,0,1,1) 0s 1 normal both close-message;animation:120ms cubic-bezier(.4,0,1,1) 0s 1 normal both close-message}.ur-builder-message-container .ur-message:first-child{margin-top:1.5rem}
|
assets/css/admin.css
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
.select2-container{box-sizing:border-box;display:inline-block;margin:0;position:relative;vertical-align:middle}.select2-container .select2-selection--single{box-sizing:border-box;cursor:pointer;display:block;height:28px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--single .select2-selection__rendered{display:block;padding-left:8px;padding-right:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-selection--single .select2-selection__clear{position:relative}.select2-container[dir=rtl] .select2-selection--single .select2-selection__rendered{padding-right:8px;padding-left:20px}.select2-container .select2-selection--multiple{box-sizing:border-box;cursor:pointer;display:block;min-height:32px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--multiple .select2-selection__rendered{display:inline-block;overflow:hidden;padding-left:8px;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-search--inline{float:left}.select2-container .select2-search--inline .select2-search__field{box-sizing:border-box;border:none;font-size:100%;margin-top:5px;padding:0}.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-dropdown{background-color:#fff;border:1px solid #aaa;border-radius:4px;box-sizing:border-box;display:block;position:absolute;left:-100000px;width:100%;z-index:1051}.select2-results{display:block}.select2-results__options{list-style:none;margin:0;padding:0}.select2-results__option{padding:6px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-results__option[aria-selected],.select2-results__option[data-selected]{cursor:pointer}.select2-container--open .select2-dropdown{left:0}.select2-container--open .select2-dropdown--above{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--open .select2-dropdown--below{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-search--dropdown{display:block;padding:4px}.select2-search--dropdown .select2-search__field{padding:4px;width:100%;box-sizing:border-box}.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-search--dropdown.select2-search--hide{display:none}.select2-close-mask{border:0;margin:0;padding:0;display:block;position:fixed;left:0;top:0;min-height:100%;min-width:100%;height:auto;width:auto;opacity:0;z-index:99;background-color:#fff}.select2-hidden-accessible{border:0!important;clip:rect(0 0 0 0)!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;width:1px!important}.select2-container--default .select2-selection--single{background-color:#fff;border:1px solid #aaa;border-radius:4px}.select2-container--default .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--default .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:700}.select2-container--default .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--default .select2-selection--single .select2-selection__arrow{height:26px;position:absolute;top:1px;right:1px;width:20px}.select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--default[dir=rtl] .select2-selection--single .select2-selection__clear{float:left}.select2-container--default[dir=rtl] .select2-selection--single .select2-selection__arrow{left:1px;right:auto}.select2-container--default.select2-container--disabled .select2-selection--single{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear{display:none}.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--default .select2-selection--multiple{background-color:#fff;border:1px solid #aaa;border-radius:4px;cursor:text}.select2-container--default .select2-selection--multiple .select2-selection__rendered{box-sizing:border-box;list-style:none;margin:0;padding:0 5px;width:100%}.select2-container--default .select2-selection--multiple .select2-selection__rendered li{list-style:none}.select2-container--default .select2-selection--multiple .select2-selection__placeholder{color:#999;margin-top:5px;float:left}.select2-container--default .select2-selection--multiple .select2-selection__clear{cursor:pointer;float:right;font-weight:700;margin-top:5px;margin-right:10px}.select2-container--default .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{color:#999;cursor:pointer;display:inline-block;font-weight:700;margin-right:2px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover{color:#333}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-search--inline,.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice,.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__placeholder{float:right}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--default.select2-container--focus .select2-selection--multiple{border:solid #000 1px;outline:0}.select2-container--default.select2-container--disabled .select2-selection--multiple{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection__choice__remove{display:none}.select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple,.select2-container--default.select2-container--open.select2-container--above .select2-selection--single{border-top-left-radius:0;border-top-right-radius:0}.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple,.select2-container--default.select2-container--open.select2-container--below .select2-selection--single{border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--default .select2-search--dropdown .select2-search__field{border:1px solid #aaa}.select2-container--default .select2-search--inline .select2-search__field{background:0 0;border:none;outline:0;box-shadow:none;-webkit-appearance:textfield}.select2-container--default .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--default .select2-results__option[role=group]{padding:0}.select2-container--default .select2-results__option[aria-disabled=true]{color:#999}.select2-container--default .select2-results__option[aria-selected=true],.select2-container--default .select2-results__option[data-selected=true]{background-color:#ddd}.select2-container--default .select2-results__option .select2-results__option{padding-left:1em}.select2-container--default .select2-results__option .select2-results__option .select2-results__group{padding-left:0}.select2-container--default .select2-results__option .select2-results__option .select2-results__option{margin-left:-1em;padding-left:2em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-2em;padding-left:3em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-3em;padding-left:4em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-4em;padding-left:5em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-5em;padding-left:6em}.select2-container--default .select2-results__option--highlighted[aria-selected],.select2-container--default .select2-results__option--highlighted[data-selected]{background-color:#0073aa;color:#fff}.select2-container--default .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic .select2-selection--single{background-color:#f7f7f7;border:1px solid #aaa;border-radius:4px;outline:0;background-image:-webkit-gradient(linear,left top,left bottom,color-stop(50%,#fff),to(#eee));background-image:-webkit-linear-gradient(top,#fff 50%,#eee 100%);background-image:linear-gradient(to bottom,#fff 50%,#eee 100%);background-repeat:repeat-x}.select2-container--classic .select2-selection--single:focus{border:1px solid #0073aa}.select2-container--classic .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--classic .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:700;margin-right:10px}.select2-container--classic .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--classic .select2-selection--single .select2-selection__arrow{background-color:#ddd;border:none;border-left:1px solid #aaa;border-top-right-radius:4px;border-bottom-right-radius:4px;height:26px;position:absolute;top:1px;right:1px;width:20px;background-image:-webkit-gradient(linear,left top,left bottom,color-stop(50%,#eee),to(#ccc));background-image:-webkit-linear-gradient(top,#eee 50%,#ccc 100%);background-image:linear-gradient(to bottom,#eee 50%,#ccc 100%);background-repeat:repeat-x}.select2-container--classic .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--classic[dir=rtl] .select2-selection--single .select2-selection__clear{float:left}.select2-container--classic[dir=rtl] .select2-selection--single .select2-selection__arrow{border:none;border-right:1px solid #aaa;border-radius:0;border-top-left-radius:4px;border-bottom-left-radius:4px;left:1px;right:auto}.select2-container--classic.select2-container--open .select2-selection--single{border:1px solid #0073aa}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow{background:0 0;border:none}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single{border-top:none;border-top-left-radius:0;border-top-right-radius:0;background-image:-webkit-gradient(linear,left top,left bottom,from(white),color-stop(50%,#eee));background-image:-webkit-linear-gradient(top,#fff 0,#eee 50%);background-image:linear-gradient(to bottom,#fff 0,#eee 50%);background-repeat:repeat-x}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;background-image:-webkit-gradient(linear,left top,left bottom,color-stop(50%,#eee),to(white));background-image:-webkit-linear-gradient(top,#eee 50%,#fff 100%);background-image:linear-gradient(to bottom,#eee 50%,#fff 100%);background-repeat:repeat-x}.select2-container--classic .select2-selection--multiple{background-color:#fff;border:1px solid #aaa;border-radius:4px;cursor:text;outline:0}.select2-container--classic .select2-selection--multiple:focus{border:1px solid #0073aa}.select2-container--classic .select2-selection--multiple .select2-selection__rendered{list-style:none;margin:0;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__clear{display:none}.select2-container--classic .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove{color:#888;cursor:pointer;display:inline-block;font-weight:700;margin-right:2px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover{color:#555}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice{float:right}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--classic.select2-container--open .select2-selection--multiple{border:1px solid #0073aa}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--classic .select2-search--dropdown .select2-search__field{border:1px solid #aaa;outline:0}.select2-container--classic .select2-search--inline .select2-search__field{outline:0;box-shadow:none}.select2-container--classic .select2-dropdown{background-color:#fff;border:1px solid transparent}.select2-container--classic .select2-dropdown--above{border-bottom:none}.select2-container--classic .select2-dropdown--below{border-top:none}.select2-container--classic .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--classic .select2-results__option[role=group]{padding:0}.select2-container--classic .select2-results__option[aria-disabled=true]{color:grey}.select2-container--classic .select2-results__option--highlighted[aria-selected],.select2-container--classic .select2-results__option--highlighted[data-selected]{background-color:#3875d7;color:#fff}.select2-container--classic .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic.select2-container--open .select2-dropdown{border-color:#0073aa}
|
2 |
-
@charset "UTF-8";.ur-form-container .button-primary,.user-registration .button-primary{background:#475bb2;border-color:#475bb2;box-shadow:0 1px 0 #475bb2}.ur-form-container .button-primary:active,.ur-form-container .button-primary:focus,.ur-form-container .button-primary:hover,.user-registration .button-primary:active,.user-registration .button-primary:focus,.user-registration .button-primary:hover{background:#38488e;border-color:#38488e;box-shadow:0 1px 0 #38488e}.ur-form-container .button-secondary,.user-registration .button-secondary{background:#d6d7dc;border-color:#d6d7dc;box-shadow:0 1px 0 #d6d7dc}.ur-form-container .button-secondary:active,.ur-form-container .button-secondary:focus,.ur-form-container .button-secondary:hover,.user-registration .button-secondary:active,.user-registration .button-secondary:focus,.user-registration .button-secondary:hover{background:#bcbdc3;border-color:#bcbdc3;box-shadow:0 1px 0 #bcbdc3}.ur-form-container .publishing-action .button,.ur-form-container .publishing-action button,.ur-form-container .publishing-action input[type=button],.ur-form-container .publishing-action input[type=submit],.user-registration .publishing-action .button,.user-registration .publishing-action button,.user-registration .publishing-action input[type=button],.user-registration .publishing-action input[type=submit]{margin-right:5px}.ur-registered-item.ui-draggable-dragging{padding:10px 10px;line-height:20px;background:#475bb2;color:#fff;text-align:center;margin-bottom:7px;word-break:break-word;white-space:normal;width:200px!important;z-index:9}.ur-registered-item.ui-draggable-dragging span{font-size:14px;line-height:20px;width:auto;height:auto;margin-right:3px}.blockUI.blockOverlay::before{height:1em;width:1em;position:absolute;top:50%;left:50%;margin-left:-.5em;margin-top:-.5em;display:block;content:'';-webkit-animation:spin 1s ease-in-out infinite;animation:spin 1s ease-in-out infinite;background:url(../images/icons/loader.svg) center center;background-size:cover;line-height:1;text-align:center;font-size:2em;color:rgba(0,0,0,.75)}.ur-export-users-page{margin-top:15px}.ur-export-users-page .nav-tab-content .nav-tab-inside .postbox{width:50%;-webkit-box-flex:1;-webkit-flex:1;flex:1;margin:0 15px 10px}.ur-export-users-page .nav-tab-content .nav-tab-inside .postbox .hndle,.ur-export-users-page .nav-tab-content .nav-tab-inside .postbox .stuffbox .hndle{margin:10px}.ur_addons_wrap .products{overflow:hidden;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap}.ur_addons_wrap .products li{margin:0 1% 1% 0!important;padding:0;vertical-align:top;width:19.2%;float:left}.ur_addons_wrap .products li:nth-child(5n){margin:0 0 1% 0!important}.ur_addons_wrap .products li a{text-decoration:none;color:inherit;border:1px solid #ddd;display:block;min-height:220px;overflow:hidden;background:#f5f5f5;box-shadow:inset 0 1px 0 rgba(255,255,255,.2),inset 0 -1px 0 rgba(0,0,0,.1)}.ur_addons_wrap .products li a .product-image{display:block;background:#fff}.ur_addons_wrap .products li a .product-image img{max-width:100%;display:block;margin:0}.ur_addons_wrap .products li a img.extension-thumb+h3{display:none}.ur_addons_wrap .products li a .price{display:none}.ur_addons_wrap .products li a h2,.ur_addons_wrap .products li a h3{margin:0!important;padding:20px!important;background:#fff}.ur_addons_wrap .products li a p{padding:20px!important;margin:0!important;border-top:1px solid #f1f1f1}.ur_addons_wrap .products li a:focus,.ur_addons_wrap .products li a:hover{background-color:#fff}.clear{clear:both}.wrap.user-registration div.error,.wrap.user-registration div.updated{margin-top:10px}.user-registration_page_add-new-registration #post-body .error,.user-registration_page_add-new-registration #post-body .updated{margin:0}.user-registration_page_add-new-registration #post-body-content{position:relative;float:none}.user-registration_page_add-new-registration .howto span{float:left;margin-top:6px}.user-registration_page_add-new-registration .list-wrap{display:none;clear:both;margin-bottom:10px}.user-registration_page_add-new-registration .list li{display:none;margin:0;margin-bottom:5px}.user-registration_page_add-new-registration .list li .menu-item-title{cursor:pointer;display:block}.user-registration_page_add-new-registration .list li .menu-item-title input{margin-right:3px;margin-top:-3px}.user-registration_page_add-new-registration #menu-management-liquid{margin-top:15px}.user-registration_page_add-new-registration .postbox p.submit{margin-bottom:0}.user-registration_page_add-new-registration #nav-menu-header{background-color:#fff}.user-registration_page_add-new-registration .major-publishing-actions{clear:both;padding:10px 0;line-height:28px}.user-registration_page_add-new-registration .major-publishing-actions .publishing-action{text-align:right;float:right}.user-registration_page_add-new-registration .major-publishing-actions .form-invalid{padding-left:4px;margin-left:-4px}.user-registration_page_add-new-registration .major-publishing-actions .ur-form-name{width:25%;margin-right:6px}.user-registration_page_add-new-registration .major-publishing-actions #copy-shortcode{margin-left:-5px;border-radius:0 3px 3px 0}.user-registration_page_add-new-registration .major-publishing-actions #copy-shortcode svg{fill:#fff;margin-top:4px}.user-registration_page_add-new-registration .blank-slate .menu-settings{display:none}.user-registration_page_add-new-registration .delete-action{float:left;line-height:28px}.ur-backbone-modal *{box-sizing:border-box}.ur-backbone-modal .ur-backbone-modal-content{position:fixed;background-color:#fff;z-index:100000;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:500px}.ur-backbone-modal .ur-backbone-modal-content article{overflow:auto}.ur-backbone-modal.ur-backbone-modal-content{width:75%;min-width:500px}.ur-backbone-modal .select2-container{width:100%!important}.ur-backbone-modal-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;min-height:360px;background-color:#1f2026;opacity:.7;z-index:99900}.ur-backbone-modal-main{padding-bottom:55px}.ur-backbone-modal-main article,.ur-backbone-modal-main header{display:block;position:relative}.ur-backbone-modal-main .ur-backbone-modal-header{height:auto;background-color:#fcfcfc;padding:1em 1.5em;border-bottom:1px solid #ddd}.ur-backbone-modal-main .ur-backbone-modal-header h1{margin:0;font-size:18px;font-weight:700;line-height:1.5em}.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link{cursor:pointer;color:#777;height:54px;width:54px;padding:0;position:absolute;top:0;right:0;text-align:center;border:0;border-left:1px solid #ddd;background-color:transparent;-webkit-transition:color .1s ease-in-out,background .1s ease-in-out;transition:color .1s ease-in-out,background .1s ease-in-out}.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link::before{font:normal 22px/50px dashicons!important;color:#7c8095;display:block;content:'\f335';font-weight:300}.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link:focus,.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link:hover{background-color:#ddd;border-color:#ccc;color:#1f2026}.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link:focus{outline:0}.ur-backbone-modal-main article{padding:1.5em}.ur-backbone-modal-main article p{margin:1.5em 0}.ur-backbone-modal-main article p:first-child{margin-top:0}.ur-backbone-modal-main article p:last-child{margin-bottom:0}.ur-backbone-modal-main article .pagination{padding:10px 0 0;text-align:center}.ur-backbone-modal-main footer{position:absolute;left:0;right:0;bottom:0;z-index:100;padding:1em 1.5em;background-color:#fcfcfc;border-top:1px solid #dfdfdf;box-shadow:0 -4px 4px -4px rgba(0,0,0,.1)}.ur-backbone-modal-main footer .inner{float:right;line-height:23px}.ur-backbone-modal-main footer .inner .button{margin-bottom:0}.user-registration h2.ur-nav-tab-wrapper{margin-bottom:1em}.user-registration nav.ur-nav-tab-wrapper{margin:1.5em 0 1em;border-bottom:1px solid #ccc}.user-registration #mainform>.subsubsub{background:#e5e5e5;float:none}.user-registration #mainform>.subsubsub a{display:block;padding:7px 10px}.user-registration #mainform>.subsubsub a.current{color:#fff;background:#475bb2}.user-registration textarea[disabled=disabled]{background:#dfdfdf!important}.user-registration table.form-table{margin:0;position:relative}.user-registration table.form-table .select2-container{display:block;max-width:350px}.user-registration table.form-table .forminp-radio ul{margin:0}.user-registration table.form-table .forminp-radio ul li{line-height:1.4em}.user-registration table.form-table textarea.input-text{height:100%;min-width:150px;display:block}.user-registration table.form-table input.regular-input{width:25em}.user-registration table.form-table textarea.wide-input{width:100%}.user-registration table.form-table .user-registration-help-tip,.user-registration table.form-table img.help_tip{padding:0;margin:-4px 0 0 5px;vertical-align:middle;cursor:help;line-height:1}.user-registration table.form-table span.help_tip{cursor:help;color:#2ea2cc}.user-registration table.form-table th{position:relative;padding-right:24px}.user-registration table.form-table .select2-container{vertical-align:top;margin-bottom:3px}.user-registration table.form-table table.widefat th{padding-right:inherit}.user-registration table.form-table th .user-registration-help-tip,.user-registration table.form-table th img.help_tip{margin:0 -24px 0 0;float:right}.user-registration table.form-table .wp-list-table .user-registration-help-tip{float:none}.user-registration table.form-table fieldset{margin-top:4px}.user-registration table.form-table fieldset .user-registration-help-tip,.user-registration table.form-table fieldset img.help_tip{margin:-3px 0 0 5px}.user-registration table.form-table fieldset p.description{margin-bottom:8px}.user-registration table.form-table fieldset:first-child{margin-top:0}.user-registration table.form-table .iris-picker{z-index:100;display:none;position:absolute;border:1px solid #ccc;border-radius:3px;box-shadow:0 1px 3px rgba(0,0,0,.2)}.user-registration table.form-table .iris-picker .ui-slider{border:0!important;margin:0!important;width:auto!important;height:auto!important;background:none transparent!important}.user-registration table.form-table .iris-picker .ui-slider .ui-slider-handle{margin-bottom:0!important}.user-registration table.form-table .colorpickpreview{padding:3px;padding-left:20px;border:1px solid #ddd;border-right:0}.user-registration table.form-table .colorpick{border-left:0}.user-registration table.form-table .image_width_settings{vertical-align:middle}.user-registration table.form-table .image_width_settings label{margin-left:10px}@media only screen and (max-width:1599px){.ur_addons_wrap .products li{width:32.66%}.ur_addons_wrap .products li:nth-child(5n){margin:0 1% 1% 0!important}.ur_addons_wrap .products li:nth-child(3n){margin:0 0 1% 0!important}}@media only screen and (max-width:1120px){.ur_addons_wrap .products li{width:49%;margin:0 2% 2% 0!important}.ur_addons_wrap .products li:nth-child(3n),.ur_addons_wrap .products li:nth-child(5n){margin:0 2% 2% 0!important}.ur_addons_wrap .products li:nth-child(2n){margin:0 0 2% 0!important}}@media only screen and (max-width:900px){.ur_addons_wrap .products li{width:49%}}@media only screen and (max-width:480px){.ur_addons_wrap .products li,.ur_addons_wrap .products li:nth-child(2n),.ur_addons_wrap .products li:nth-child(3n),.ur_addons_wrap .products li:nth-child(5n){width:100%;margin:0 0 3% 0!important}}@media only screen and (min-width:769px) and (max-width:1000px){.user-registration_page_add-new-registration #post-body-content{min-width:0}}@media screen and (max-width:782px){body.user-registration_page_add-new-registration{min-width:0!important}}.ur-admin-template-options{display:none}.ur-registered-from{display:-webkit-box;display:-webkit-flex;display:flex;background-color:#f8f8f8;font-family:Roboto,sans-serif;border-bottom:1px solid #ddd}.ur-registered-from *{box-sizing:border-box}.ur-registered-from :focus{outline:0}.ur-registered-from a{text-decoration:none}.ur-registered-from .ur-field{line-height:2}.ur-registered-from .ur-registered-inputs{width:35%;background-color:#f9f9f9}.ur-registered-from .ur-registered-inputs .ur-tabs{border:0 none;padding:0;font-family:Roboto,sans-serif;font-size:14px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists{background-color:transparent;background-image:none;padding:0;border-radius:0;margin:0;display:-webkit-box;display:-webkit-flex;display:flex;border-bottom:2px solid #38488e;border-top:0 none;border-right:0 none;border-left:0 none}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li{background-color:transparent;background-image:none;border-radius:0;margin:0;margin-bottom:-1px;padding:0;float:none;display:inline-block;border:0}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li.active{margin-bottom:0;padding-bottom:0}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li.ui-state-disabled{opacity:1}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li a{float:none;text-decoration:none;margin:0;border:none;display:block;color:#7c8095;background-color:transparent;padding:8px 15px;font-weight:500;cursor:pointer}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li a:focus{box-shadow:0 0 0 0 transparent,0 0 0 0 transparent}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li a.active{background-color:#38488e;color:#fff;line-height:24px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content{padding:10px;height:calc(100vh - 85px);overflow-y:auto}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content#ur-tab-field-options,.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content#ur-tab-registered-fields{background-color:#f2f2f2}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content h2{margin:0;font-size:16px;font-weight:600;font-family:Roboto,sans-serif;color:#585b6c}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list{margin:15px 0;width:100%}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list::after,.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list::before{content:' ';display:table}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list::after{clear:both}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list:last-child{margin-bottom:0}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{float:left;padding:10px 15px 10px 45px;height:auto;line-height:25px;width:48%;background-color:#475bb2;color:#fff;margin-bottom:7px;word-break:break-word;white-space:normal;position:relative;cursor:move}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item .dashicons{position:absolute;top:0;bottom:0;background:rgba(0,0,0,.3);width:35px;left:0;line-height:2.9;font-size:16px;height:auto;margin-right:5px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item:nth-child(2n){float:right}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item:hover{background-color:#38488e;color:#fff}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item:nth-child(2n+1){clear:both;display:block}.ur-registered-from .ur-selected-inputs{width:70%;box-sizing:border-box;border-left:1px solid #ddd;padding:20px;height:calc(100vh - 44px);overflow-y:auto}.ur-registered-from .ur-selected-inputs .ur-single-row{background-color:#f2f2f2;margin-bottom:20px;border:1px solid #ddd}.ur-registered-from .ur-selected-inputs .ur-single-row:last-child{margin-bottom:0}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids{background-color:#f2f2f2;border-bottom:1px solid #ddd;clear:both;display:table;width:100%}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids div{border-right:1px solid #ddd;display:inline-block;line-height:25px;color:#9093a5;float:left}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids div.ur-grid-size{padding:0 10px}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids div.ur-grid-navigation{width:25px;height:25px;background-color:#e8e8e8;font-family:dashicons;font-size:16px;cursor:pointer}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids div.ur-grid-navigation:hover{background-color:#ddd}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids .ur-remove-row{float:right;border-radius:0;border:0;background-color:transparent;color:#9093a5;width:25px;height:25px;cursor:pointer;padding:0;line-height:25px;-webkit-transition:all .1s ease-in-out;transition:all .1s ease-in-out}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids .ur-remove-row:before{font-family:dashicons}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids .ur-remove-row:hover{color:#d82223}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists{width:100%;display:-webkit-box;display:-webkit-flex;display:flex;text-align:center;padding:20px;box-sizing:border-box;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item{display:inline-block;text-align:left;border:0 none;padding:15px;background-color:#f7f7f7;-webkit-box-flex:1;-webkit-flex:1;flex:1;border:2px dashed #d3d3d3}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item{margin-bottom:15px;position:relative;background-color:#f8f8f8;padding:20px;cursor:move;border:1px solid #e8e8e8;-webkit-transition:border-color .35s;transition:border-color .35s}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .select2-container{width:100%!important}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .select2-container .select2-search--inline .select2-search__field{height:auto;min-width:10px}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-input-type-signature canvas{background:rgba(255,255,255,.5);border:1px solid #ddd}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item:last-child{margin-bottom:0}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item.ur-item-active,.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item:hover{border:1px solid #475bb2}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item.ur-item-active{box-shadow:0 0 10px rgba(0,0,0,.1);background-color:#f8f8f8}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item.ui-sortable-helper,.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item.ur-item-active.ui-sortable-helper{box-shadow:0 0 20px rgba(0,0,0,.2);background-color:#e8e8e8}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item.ui-sortable-placeholder{visibility:visible!important;border:2px dashed #acaeba;background-color:#e8eaf1}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons{display:none;position:absolute;right:10px;width:50px;text-align:center;padding:0;font-size:10px;top:10px;color:#cfd1d8}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons span{cursor:pointer;font-size:14px;height:auto}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons span:hover{color:#475bb2}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons:hover .ur-action-buttons{display:block}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons .ur-trash:hover{color:#d82223}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur_label_top_left{text-align:left}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur_label_center{text-align:center}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur_label_top_right{text-align:right}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur_label_disabled{display:none}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item:hover .ur-action-buttons{display:block}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item>li.ur-item-dragged{list-style:none;width:100%;text-align:center;height:60px!important;box-sizing:border-box}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item>li.ur-item-dragged .spinner{float:none}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me{display:table;width:100%;height:100%}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me .user-registration-dragged-me-text{display:table-cell;vertical-align:middle;text-align:center}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me .user-registration-dragged-me-text p{display:inline-block;position:relative;color:#cfd1d8;padding-left:26px;padding-top:8px}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me .user-registration-dragged-me-text p::before{position:absolute;font-family:Dashicons;content:'\f545';font-size:22px;left:0;top:0}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item:nth-child(1n+2){border-left:2px solid #f7f7f7}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item:nth-child(1n+2).ur-sortable-active,.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-sortable-active{border-right:2px dashed #38488e;border-left:2px dashed #38488e;border-top:2px dashed #38488e;border-bottom:2px dashed #38488e;background-color:#e8eaf1}.ur-registered-from .ur-selected-inputs .ur-add-new-row{color:#cfd1d8;display:block;margin:0 auto;font-size:30px;width:40px;cursor:pointer;text-align:center;margin-bottom:20px;background-color:transparent;border:0 none}.ur-registered-from .ur-selected-inputs .ur-add-new-row:hover{color:#475bb2}.ur-registered-from .ur-selected-inputs li.ur-registered-item{list-style:none;padding:10px 10px;line-height:20px;background-color:#475bb2;color:#fff;text-align:center;margin-bottom:7px;word-break:break-word;white-space:normal;width:200px!important}.ur-registered-from .ur-selected-inputs li.ur-registered-item>span{font-size:14px;line-height:20px;width:auto;height:auto;margin-right:3px}.ur-registered-from .ur-selected-inputs li.ur-registered-item.ui-sortable-placeholder{width:100%!important;visibility:visible!important;border:2px dashed #acaeba;background-color:#e8eaf1}.ur-registered-from .ur-advance-setting,.ur-registered-from .ur-general-setting{padding:20px 0 0}.ur-registered-from .ur-advance-setting-block{margin-top:25px}.ur-registered-from .ui-widget select,.ur-registered-from input[type=date],.ur-registered-from input[type=email],.ur-registered-from input[type=number],.ur-registered-from input[type=password],.ur-registered-from input[type=phone],.ur-registered-from input[type=text],.ur-registered-from input[type=timepicker],.ur-registered-from input[type=url],.ur-registered-from select,.ur-registered-from textarea{border:1px solid #ddd;display:block;width:100%;color:#9093a5;box-shadow:0 0 0 transparent;font-size:12px;height:35px;padding:0 10px}.ur-registered-from .ui-widget select:focus,.ur-registered-from input[type=date]:focus,.ur-registered-from input[type=email]:focus,.ur-registered-from input[type=number]:focus,.ur-registered-from input[type=password]:focus,.ur-registered-from input[type=phone]:focus,.ur-registered-from input[type=text]:focus,.ur-registered-from input[type=timepicker]:focus,.ur-registered-from input[type=url]:focus,.ur-registered-from select:focus,.ur-registered-from textarea:focus{border-color:#ddd}.ur-registered-from label{display:block;width:100%;margin-bottom:10px;color:#7c8095;font-size:12px;font-weight:500}.ur-registered-from textarea{padding:10px;height:100px}.ur-registered-from .ur-registered-item.dragging{border:0;box-shadow:0 0 0 transparent;border-radius:0;padding:5px 10px;height:auto;background-color:#475bb2;color:#fff;text-align:center;width:200px}.ur-registered-from .ur-advance-setting-block,.ur-registered-from .ur-general-setting-block{display:none}.ur-registered-from .ur-advance-setting label,.ur-registered-from .ur-general-setting label{display:block}.ur-registered-from .add,.ur-registered-from .remove{background:#fff;border:1px solid #ddd;color:#7c8095;cursor:pointer;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-flex:1;-webkit-flex:1 0 35px;flex:1 0 35px;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;height:35px;max-width:35px;position:relative}.ur-registered-from .add:hover,.ur-registered-from .remove:hover{background:#475bb2;border-color:#475bb2;color:#fff}.ur-registered-from .add .dashicons,.ur-registered-from .remove .dashicons{line-height:22px}.ur-registered-from .add{margin-right:10px}.ur-registered-from .ur-options-list li{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.ur-registered-from .ur-options-list li .editor-block-mover__control-drag-handle{margin-right:10px;cursor:-webkit-grab;cursor:grab}.ur-registered-from .ur-options-list li input{margin-right:10px}.ur-registered-from .ur-options-list li .add{margin-right:10px}.ur-registered-from .ur-options-list .ui-sortable-handle{padding:5px;border:1px solid transparent}.ur-registered-from .ur-options-list .ui-sortable-handle:active{background:#f2f2f2;border:1px solid #475bb2;padding:5px;box-shadow:0 0 20px rgba(0,0,0,.2)}.ur-registered-from .ur-options-list .ui-sortable-handle.ui-sortable-placeholder{border:1px dashed #38488e;background-color:#d6dbef;visibility:visible!important}.ur-registered-from .urcl-rules{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;margin-bottom:15px}.ur-registered-from .urcl-rules>div{margin-right:10px}.ur-registered-from .urcl-rules .urcl-field,.ur-registered-from .urcl-rules .urcl-value{max-width:32%;-webkit-box-flex:1;-webkit-flex:1 0 32%;flex:1 0 32%}#sortable{min-height:400px}@media screen and (max-width:1400px){.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{font-size:12px}.ur-registered-from .urcl-rules .urcl-field{max-width:61%;-webkit-box-flex:1;-webkit-flex:1 0 60%;flex:1 0 60%;margin-bottom:5px}.ur-registered-from .urcl-rules .urcl-value{-webkit-box-ordinal-group:5;-webkit-order:4;order:4;max-width:87%;-webkit-box-flex:1;-webkit-flex:1 0 86%;flex:1 0 86%}.ur-registered-from .urcl-rules .add{-webkit-box-ordinal-group:4;-webkit-order:3;order:3;margin-right:0}.ur-registered-from .urcl-rules .remove{-webkit-box-ordinal-group:6;-webkit-order:5;order:5}}@media screen and (max-width:960px){.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{float:none;width:100%}.ur-registered-from .ur-registered-inputs .ur-single-row .ur-grid-lists,.ur-registered-from .ur-registered-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item,.ur-registered-from .ur-registered-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item{padding:10px}}@media screen and (max-width:782px){.ur-registered-from{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.ur-registered-from .ur-registered-inputs{width:100%;margin-bottom:10px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{float:left;width:48%}.ur-registered-from .ur-selected-inputs{width:100%}}@media screen and (max-width:600px){.user-registration_page_add-new-registration .major-publishing-actions{clear:both;padding:10px 0 19px;line-height:28px}.user-registration_page_add-new-registration .major-publishing-actions .ur-form-name{width:100%}.user-registration_page_add-new-registration .major-publishing-actions .publishing-action{text-align:left;float:none;margin-top:15px}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;display:block}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item{width:100%!important}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item:nth-child(1n+2){border-left:0 none;border-top:2px solid #f2f2f2}}.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,.ur_error_tip{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,.ur_error_tip 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}.ur_error_tip{max-width:20em;line-height:1.8em;position:absolute;white-space:normal;background:#d82223;margin:1.5em 1px 0 -1em;z-index:9999999}.ur_error_tip::after{content:'';display:block;border:8px solid #d82223;border-right-color:transparent;border-left-color:transparent;border-top-color:transparent;position:absolute;top:-3px;left:50%;margin:-1em 0 0 -3px}.user-registration-help-tip{color:#7c8095;display:inline-block;font-size:1.1em;font-style:normal;height:16px;line-height:16px;position:relative;vertical-align:middle;width:16px}.user-registration-help-tip::after{font-family:Dashicons;speak:none;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;margin:0;text-indent:0;position:absolute;top:0;left:0;width:100%;height:100%;text-align:center;content:"";cursor:help}.select2-drop,.select2-dropdown{z-index:999999!important}.select2-results{line-height:1.5em}.select2-results .select2-results__group,.select2-results .select2-results__option{margin:0;padding:8px}.select2-dropdown{border-color:#ddd}.select2-dropdown--below{box-shadow:0 1px 1px rgba(0,0,0,.1)}.select2-dropdown--above{box-shadow:0 -1px 1px rgba(0,0,0,.1)}.select2-container .select2-selection__rendered.ui-sortable li{cursor:move}.select2-container .select2-selection{border-color:#ddd}.select2-container .select2-search__field{min-width:150px}.select2-container .select2-selection--single{height:32px}.select2-container .select2-selection--single .select2-selection__rendered{line-height:32px;padding-right:24px}.select2-container .select2-selection--single .select2-selection__arrow{right:3px;height:30px}.select2-container .select2-selection--multiple{min-height:28px;border-radius:0;line-height:1.5}.select2-container .select2-selection--multiple li{margin:0}.select2-container .select2-selection--multiple .select2-selection__choice{padding:2px 6px}.select2-container .select2-selection__clear{color:#999;margin-top:-1px}.select2-container .select2-search--inline .select2-search__field{font-family:inherit;font-size:inherit;font-weight:inherit;padding:3px 0}#ur-tab-registered-fields li.ur-registered-item.ui-draggable-disabled{background:#ccc}.ur-no-pointer{pointer-events:none}#ur-tab-field-settings{background:#f2f2f2}.dashicons,.user-registration table.form-table dashicons .dashicons{line-height:inherit}#smart-tags{text-align:center}.form-settings-tab{padding:10px 15px;cursor:pointer;background:#c4c4c4;margin-bottom:10px}.form-settings-tab.active{background:#475bb2;color:#fff}#profile-page form#your-profile .flatpickr-input[readonly]{background-color:#fff}#ur-tab-registered-fields h2{cursor:pointer}#ur-tab-registered-fields h2:before{content:'\f142';cursor:pointer;display:block;font:400 20px/1 Dashicons;line-height:.5!important;padding:4px;position:relative;right:0;top:0;float:right}#ur-tab-registered-fields h2.closed:before{content:""!important}.ur-form-container #ur-full-screen-mode.closed .ur-fs-close-label{display:none}.ur-form-container #ur-full-screen-mode.opened .ur-fs-open-label{display:none}body.ur-full-screen-mode{margin-top:-32px}body.ur-full-screen-mode #wpbody-content{padding-bottom:45px}body.ur-full-screen-mode #wpwrap #wpcontent{margin-left:0;padding-left:0}body.ur-full-screen-mode #wpwrap #wpcontent #wpadminbar{display:none}body.ur-full-screen-mode #wpwrap #wpcontent #wpbody .ur-tab-content{padding:20px}body.ur-full-screen-mode #wpwrap #wpcontent #wpbody .ur-form-container{margin:0}body.ur-full-screen-mode #wpwrap #wpcontent #wpbody .ur-form-container #menu-management-liquid{margin-top:0}body.ur-full-screen-mode #wpwrap #wpcontent #wpbody .ur-form-container #menu-management-liquid .menu-edit{margin-bottom:0;box-shadow:none;border-left:0;border-right:0;border-top:0}body.ur-full-screen-mode #wpwrap #adminmenumain{display:none}body.ur-full-screen-mode #menu-management{margin-top:0}body.ur-full-screen-mode #wpfooter{margin-left:0}
|
1 |
.select2-container{box-sizing:border-box;display:inline-block;margin:0;position:relative;vertical-align:middle}.select2-container .select2-selection--single{box-sizing:border-box;cursor:pointer;display:block;height:28px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--single .select2-selection__rendered{display:block;padding-left:8px;padding-right:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-selection--single .select2-selection__clear{position:relative}.select2-container[dir=rtl] .select2-selection--single .select2-selection__rendered{padding-right:8px;padding-left:20px}.select2-container .select2-selection--multiple{box-sizing:border-box;cursor:pointer;display:block;min-height:32px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--multiple .select2-selection__rendered{display:inline-block;overflow:hidden;padding-left:8px;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-search--inline{float:left}.select2-container .select2-search--inline .select2-search__field{box-sizing:border-box;border:none;font-size:100%;margin-top:5px;padding:0}.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-dropdown{background-color:#fff;border:1px solid #aaa;border-radius:4px;box-sizing:border-box;display:block;position:absolute;left:-100000px;width:100%;z-index:1051}.select2-results{display:block}.select2-results__options{list-style:none;margin:0;padding:0}.select2-results__option{padding:6px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-results__option[aria-selected],.select2-results__option[data-selected]{cursor:pointer}.select2-container--open .select2-dropdown{left:0}.select2-container--open .select2-dropdown--above{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--open .select2-dropdown--below{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-search--dropdown{display:block;padding:4px}.select2-search--dropdown .select2-search__field{padding:4px;width:100%;box-sizing:border-box}.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-search--dropdown.select2-search--hide{display:none}.select2-close-mask{border:0;margin:0;padding:0;display:block;position:fixed;left:0;top:0;min-height:100%;min-width:100%;height:auto;width:auto;opacity:0;z-index:99;background-color:#fff}.select2-hidden-accessible{border:0!important;clip:rect(0 0 0 0)!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;width:1px!important}.select2-container--default .select2-selection--single{background-color:#fff;border:1px solid #aaa;border-radius:4px}.select2-container--default .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--default .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:700}.select2-container--default .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--default .select2-selection--single .select2-selection__arrow{height:26px;position:absolute;top:1px;right:1px;width:20px}.select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--default[dir=rtl] .select2-selection--single .select2-selection__clear{float:left}.select2-container--default[dir=rtl] .select2-selection--single .select2-selection__arrow{left:1px;right:auto}.select2-container--default.select2-container--disabled .select2-selection--single{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear{display:none}.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--default .select2-selection--multiple{background-color:#fff;border:1px solid #aaa;border-radius:4px;cursor:text}.select2-container--default .select2-selection--multiple .select2-selection__rendered{box-sizing:border-box;list-style:none;margin:0;padding:0 5px;width:100%}.select2-container--default .select2-selection--multiple .select2-selection__rendered li{list-style:none}.select2-container--default .select2-selection--multiple .select2-selection__placeholder{color:#999;margin-top:5px;float:left}.select2-container--default .select2-selection--multiple .select2-selection__clear{cursor:pointer;float:right;font-weight:700;margin-top:5px;margin-right:10px}.select2-container--default .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{color:#999;cursor:pointer;display:inline-block;font-weight:700;margin-right:2px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover{color:#333}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-search--inline,.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice,.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__placeholder{float:right}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--default.select2-container--focus .select2-selection--multiple{border:solid #000 1px;outline:0}.select2-container--default.select2-container--disabled .select2-selection--multiple{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection__choice__remove{display:none}.select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple,.select2-container--default.select2-container--open.select2-container--above .select2-selection--single{border-top-left-radius:0;border-top-right-radius:0}.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple,.select2-container--default.select2-container--open.select2-container--below .select2-selection--single{border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--default .select2-search--dropdown .select2-search__field{border:1px solid #aaa}.select2-container--default .select2-search--inline .select2-search__field{background:0 0;border:none;outline:0;box-shadow:none;-webkit-appearance:textfield}.select2-container--default .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--default .select2-results__option[role=group]{padding:0}.select2-container--default .select2-results__option[aria-disabled=true]{color:#999}.select2-container--default .select2-results__option[aria-selected=true],.select2-container--default .select2-results__option[data-selected=true]{background-color:#ddd}.select2-container--default .select2-results__option .select2-results__option{padding-left:1em}.select2-container--default .select2-results__option .select2-results__option .select2-results__group{padding-left:0}.select2-container--default .select2-results__option .select2-results__option .select2-results__option{margin-left:-1em;padding-left:2em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-2em;padding-left:3em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-3em;padding-left:4em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-4em;padding-left:5em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-5em;padding-left:6em}.select2-container--default .select2-results__option--highlighted[aria-selected],.select2-container--default .select2-results__option--highlighted[data-selected]{background-color:#0073aa;color:#fff}.select2-container--default .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic .select2-selection--single{background-color:#f7f7f7;border:1px solid #aaa;border-radius:4px;outline:0;background-image:-webkit-gradient(linear,left top,left bottom,color-stop(50%,#fff),to(#eee));background-image:-webkit-linear-gradient(top,#fff 50%,#eee 100%);background-image:linear-gradient(to bottom,#fff 50%,#eee 100%);background-repeat:repeat-x}.select2-container--classic .select2-selection--single:focus{border:1px solid #0073aa}.select2-container--classic .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--classic .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:700;margin-right:10px}.select2-container--classic .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--classic .select2-selection--single .select2-selection__arrow{background-color:#ddd;border:none;border-left:1px solid #aaa;border-top-right-radius:4px;border-bottom-right-radius:4px;height:26px;position:absolute;top:1px;right:1px;width:20px;background-image:-webkit-gradient(linear,left top,left bottom,color-stop(50%,#eee),to(#ccc));background-image:-webkit-linear-gradient(top,#eee 50%,#ccc 100%);background-image:linear-gradient(to bottom,#eee 50%,#ccc 100%);background-repeat:repeat-x}.select2-container--classic .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--classic[dir=rtl] .select2-selection--single .select2-selection__clear{float:left}.select2-container--classic[dir=rtl] .select2-selection--single .select2-selection__arrow{border:none;border-right:1px solid #aaa;border-radius:0;border-top-left-radius:4px;border-bottom-left-radius:4px;left:1px;right:auto}.select2-container--classic.select2-container--open .select2-selection--single{border:1px solid #0073aa}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow{background:0 0;border:none}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single{border-top:none;border-top-left-radius:0;border-top-right-radius:0;background-image:-webkit-gradient(linear,left top,left bottom,from(white),color-stop(50%,#eee));background-image:-webkit-linear-gradient(top,#fff 0,#eee 50%);background-image:linear-gradient(to bottom,#fff 0,#eee 50%);background-repeat:repeat-x}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;background-image:-webkit-gradient(linear,left top,left bottom,color-stop(50%,#eee),to(white));background-image:-webkit-linear-gradient(top,#eee 50%,#fff 100%);background-image:linear-gradient(to bottom,#eee 50%,#fff 100%);background-repeat:repeat-x}.select2-container--classic .select2-selection--multiple{background-color:#fff;border:1px solid #aaa;border-radius:4px;cursor:text;outline:0}.select2-container--classic .select2-selection--multiple:focus{border:1px solid #0073aa}.select2-container--classic .select2-selection--multiple .select2-selection__rendered{list-style:none;margin:0;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__clear{display:none}.select2-container--classic .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove{color:#888;cursor:pointer;display:inline-block;font-weight:700;margin-right:2px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover{color:#555}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice{float:right}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--classic.select2-container--open .select2-selection--multiple{border:1px solid #0073aa}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--classic .select2-search--dropdown .select2-search__field{border:1px solid #aaa;outline:0}.select2-container--classic .select2-search--inline .select2-search__field{outline:0;box-shadow:none}.select2-container--classic .select2-dropdown{background-color:#fff;border:1px solid transparent}.select2-container--classic .select2-dropdown--above{border-bottom:none}.select2-container--classic .select2-dropdown--below{border-top:none}.select2-container--classic .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--classic .select2-results__option[role=group]{padding:0}.select2-container--classic .select2-results__option[aria-disabled=true]{color:grey}.select2-container--classic .select2-results__option--highlighted[aria-selected],.select2-container--classic .select2-results__option--highlighted[data-selected]{background-color:#3875d7;color:#fff}.select2-container--classic .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic.select2-container--open .select2-dropdown{border-color:#0073aa}
|
2 |
+
@charset "UTF-8";.ur-form-container .button,.ur-form-container button,.user-registration .button,.user-registration button{-webkit-transition:all .25s ease 0s;transition:all .25s ease 0s}.ur-form-container .button.button-icon,.ur-form-container button.button-icon,.user-registration .button.button-icon,.user-registration button.button-icon{height:32px;width:32px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.ur-form-container .button.button-icon .dashicons,.ur-form-container button.button-icon .dashicons,.user-registration .button.button-icon .dashicons,.user-registration button.button-icon .dashicons{line-height:1}.ur-form-container .button.button-icon-round,.ur-form-container button.button-icon-round,.user-registration .button.button-icon-round,.user-registration button.button-icon-round{border-radius:50%}.ur-form-container .button-primary,.user-registration .button-primary{background:#475bb2;border-color:#475bb2;box-shadow:0 1px 0 #475bb2;text-shadow:none}.ur-form-container .button-primary:active,.ur-form-container .button-primary:focus,.ur-form-container .button-primary:hover,.user-registration .button-primary:active,.user-registration .button-primary:focus,.user-registration .button-primary:hover{background:#38488e;border-color:#38488e;box-shadow:0 1px 0 #38488e}.ur-form-container .button-primary:disabled,.user-registration .button-primary:disabled{color:#b2bae0!important;background:#697ac3!important;border-color:#697ac3!important}.ur-form-container .button-secondary,.user-registration .button-secondary{background:#dee0e9;border-color:#dee0e9;box-shadow:0 1px 0 #dee0e9}.ur-form-container .button-secondary:active,.ur-form-container .button-secondary:focus,.ur-form-container .button-secondary:hover,.user-registration .button-secondary:active,.user-registration .button-secondary:focus,.user-registration .button-secondary:hover{background:#b6bbcf;border-color:#b6bbcf;box-shadow:0 1px 0 #b6bbcf}.ur-form-container .button-danger,.user-registration .button-danger{color:#fff;background:#ff4149;border-color:#ff4149;box-shadow:0 1px 0 #ff4149}.ur-form-container .button-danger:active,.ur-form-container .button-danger:focus,.ur-form-container .button-danger:hover,.user-registration .button-danger:active,.user-registration .button-danger:focus,.user-registration .button-danger:hover{color:#fff;background:#ee2a32;border-color:#ee2a32;box-shadow:0 1px 0 #ee2a32}.ur-form-container .publishing-action .button,.ur-form-container .publishing-action button,.ur-form-container .publishing-action input[type=button],.ur-form-container .publishing-action input[type=submit],.user-registration .publishing-action .button,.user-registration .publishing-action button,.user-registration .publishing-action input[type=button],.user-registration .publishing-action input[type=submit]{margin-right:5px}.ur-registered-item.ui-draggable-dragging{padding:10px 10px;line-height:20px;background:#475bb2;color:#fff;text-align:center;margin-bottom:7px;word-break:break-word;white-space:normal;width:200px!important;z-index:9}.ur-registered-item.ui-draggable-dragging span{font-size:14px;line-height:20px;width:auto;height:auto;margin-right:3px}@font-face{font-family:UserRegistration;src:url(../fonts/UserRegistration.eot?5hlcw0);src:url(../fonts/UserRegistration.eot?5hlcw0#iefix) format("embedded-opentype"),url(../fonts/UserRegistration.ttf?5hlcw0) format("truetype"),url(../fonts/UserRegistration.woff?5hlcw0) format("woff"),url(../fonts/UserRegistration.svg?5hlcw0#UserRegistration) format("svg");font-weight:400;font-style:normal;font-display:block}[class*=' ur-icon-'],[class^=ur-icon-]{font-family:UserRegistration!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ur-icon-input-first-name::before{content:""}.ur-icon-input-last-name::before{content:""}.ur-icon-input-field::before{content:""}.ur-icon-input-password::before{content:""}.ur-icon-input-checkbox::before{content:""}.ur-icon-radio::before{content:""}.ur-icon-number::before{content:""}.ur-icon-phone::before{content:""}.ur-icon-calendar::before{content:""}.ur-icon-drop-down::before{content:""}.ur-icon-textarea::before{content:""}.ur-icon-email::before{content:""}.ur-icon-email-secondary::before{content:""}.ur-icon-email-confirm::before{content:""}.ur-icon-invite-codes::before{content:""}.ur-icon-password::before{content:""}.ur-icon-password-confirm::before{content:""}.ur-icon-user::before{content:""}.ur-icon-user-nickname::before{content:""}.ur-icon-user-display-name::before{content:""}.ur-icon-user-bio::before{content:""}.ur-icon-website::before{content:""}.ur-icon-flag::before{content:""}.ur-icon-map-one::before{content:""}.ur-icon-map-two::before{content:""}.ur-icon-zip-code::before{content:""}.ur-icon-select2::before{content:""}.ur-icon-multi-select::before{content:""}.ur-icon-section-title::before{content:""}.ur-icon-time-picker::before{content:""}.ur-icon-state::before{content:""}.ur-icon-buildings::before{content:""}.ur-icon-text-editor::before{content:""}.ur-icon-bill::before{content:""}.ur-icon-doc::before{content:""}.ur-icon-file-upload::before{content:""}.ur-icon-file-dollar::before{content:""}.ur-icon-code::before{content:""}.ur-icon-mailchimp::before{content:""}.blockUI.blockOverlay::before{height:1em;width:1em;position:absolute;top:50%;left:50%;margin-left:-.5em;margin-top:-.5em;display:block;content:'';-webkit-animation:spin 1s ease-in-out infinite;animation:spin 1s ease-in-out infinite;background:url(../images/icons/loader.svg) center center;background-size:cover;line-height:1;text-align:center;font-size:2em;color:rgba(0,0,0,.75)}@-webkit-keyframes spin{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes spin{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.ur-export-users-page{margin-top:6px}.ur-export-users-page .nav-tab-content .nav-tab-inside .postbox{width:50%;-webkit-box-flex:1;-webkit-flex:1;flex:1}.ur-export-users-page .nav-tab-content .hndle,.ur-export-users-page .nav-tab-content .stuffbox .hndle{margin:10px;padding-bottom:10px}.ur_addons_wrap .products{overflow:hidden;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap}.ur_addons_wrap .products li{margin:0 1% 1% 0!important;padding:0;vertical-align:top;width:19.2%;float:left}.ur_addons_wrap .products li:nth-child(5n){margin:0 0 1% 0!important}.ur_addons_wrap .products li a{text-decoration:none;color:inherit;border:1px solid #ddd;display:block;min-height:220px;overflow:hidden;background:#f5f5f5;box-shadow:inset 0 1px 0 rgba(255,255,255,.2),inset 0 -1px 0 rgba(0,0,0,.1)}.ur_addons_wrap .products li a .product-image{display:block;background:#fff}.ur_addons_wrap .products li a .product-image img{max-width:100%;display:block;margin:0}.ur_addons_wrap .products li a img.extension-thumb+h3{display:none}.ur_addons_wrap .products li a .price{display:none}.ur_addons_wrap .products li a h2,.ur_addons_wrap .products li a h3{margin:0!important;padding:20px!important;background:#fff}.ur_addons_wrap .products li a p{padding:20px!important;margin:0!important;border-top:1px solid #f1f1f1}.ur_addons_wrap .products li a:focus,.ur_addons_wrap .products li a:hover{background-color:#fff}.clear{clear:both}.wrap.user-registration div.error,.wrap.user-registration div.updated{margin-top:10px}.user-registration_page_add-new-registration #post-body .error,.user-registration_page_add-new-registration #post-body .updated{margin:0}.user-registration_page_add-new-registration #post-body-content{position:relative;float:none}.user-registration_page_add-new-registration .howto span{float:left;margin-top:6px}.user-registration_page_add-new-registration .list-wrap{display:none;clear:both;margin-bottom:10px}.user-registration_page_add-new-registration .list li{display:none;margin:0;margin-bottom:5px}.user-registration_page_add-new-registration .list li .menu-item-title{cursor:pointer;display:block}.user-registration_page_add-new-registration .list li .menu-item-title input{margin-right:3px;margin-top:-3px}.user-registration_page_add-new-registration #wpfooter{display:none}.user-registration_page_add-new-registration .ur-form-container{margin:0}.user-registration_page_add-new-registration .ur-form-container .ur-loading-container{position:fixed;left:160px;right:0;top:0;bottom:0;background:#fff;display:-webkit-box;display:-webkit-flex;display:flex;z-index:9}.user-registration_page_add-new-registration .ur-form-container .ur-loading-container .ur-circle-loading{margin:auto;left:30px}.user-registration_page_add-new-registration .ur-form-container #menu-management{margin-top:0}.user-registration_page_add-new-registration .ur-form-container #menu-management .menu-edit{position:fixed;left:160px;right:0;border:none;box-shadow:none;margin-bottom:0}.user-registration_page_add-new-registration .ur-form-container #ur-full-screen-mode.closed .ur-fs-close-label{display:none}.user-registration_page_add-new-registration .ur-form-container #ur-full-screen-mode.opened .ur-fs-open-label{display:none}.user-registration_page_add-new-registration #menu-management-liquid{margin-top:0;margin-left:-20px;min-width:calc(100% + 20px)}.user-registration_page_add-new-registration .postbox p.submit{margin-bottom:0}.user-registration_page_add-new-registration #nav-menu-footer,.user-registration_page_add-new-registration #nav-menu-header{padding:12px}.user-registration_page_add-new-registration #nav-menu-header{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;position:relative;border-color:#dee0e9;background-color:#fff;z-index:9}.user-registration_page_add-new-registration #nav-menu-header .ur-brand-logo{border-right:1px solid #dee0e9}.user-registration_page_add-new-registration #nav-menu-header .ur-brand-logo img{width:32px;height:32px;padding:0 8px;margin-right:8px;display:-webkit-box;display:-webkit-flex;display:flex}.user-registration_page_add-new-registration #nav-menu-header::after,.user-registration_page_add-new-registration #nav-menu-header::before{content:'';display:-webkit-box;display:-webkit-flex;display:flex;position:absolute;left:0;right:0;bottom:0;background:#fff}.user-registration_page_add-new-registration #nav-menu-header::before{top:0;z-index:-1}.user-registration_page_add-new-registration #nav-menu-header::after{height:10px;box-shadow:0 4px 8px rgba(45,53,89,.08);z-index:-2}.user-registration_page_add-new-registration .major-publishing-actions{clear:both;line-height:28px;margin-left:auto}.user-registration_page_add-new-registration .major-publishing-actions .publishing-action{text-align:right;float:right}.user-registration_page_add-new-registration .major-publishing-actions .publishing-action input.code{width:265px;height:30px;padding:0 6px}.user-registration_page_add-new-registration .major-publishing-actions .form-invalid{padding-left:4px;margin-left:-4px}.user-registration_page_add-new-registration .major-publishing-actions .ur-form-name{width:25%;margin-right:6px}.user-registration_page_add-new-registration .major-publishing-actions #copy-shortcode{margin-left:-5px;border-radius:0 3px 3px 0}.user-registration_page_add-new-registration .major-publishing-actions #copy-shortcode svg{fill:#fff;margin-top:4px}.user-registration_page_add-new-registration .blank-slate .menu-settings{display:none}.user-registration_page_add-new-registration .delete-action{float:left;line-height:28px}.ur-backbone-modal *{box-sizing:border-box}.ur-backbone-modal .ur-backbone-modal-content{position:fixed;background-color:#fff;z-index:100000;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:500px}.ur-backbone-modal .ur-backbone-modal-content article{overflow:auto}.ur-backbone-modal.ur-backbone-modal-content{width:75%;min-width:500px}.ur-backbone-modal .select2-container{width:100%!important}.ur-backbone-modal-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;min-height:360px;background-color:#2d3559;opacity:.7;z-index:99900}.ur-backbone-modal-main{padding-bottom:55px}.ur-backbone-modal-main article,.ur-backbone-modal-main header{display:block;position:relative}.ur-backbone-modal-main .ur-backbone-modal-header{height:auto;background-color:#fcfcfc;padding:1em 1.5em;border-bottom:1px solid #ddd}.ur-backbone-modal-main .ur-backbone-modal-header h1{margin:0;font-size:18px;font-weight:700;line-height:1.5em}.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link{cursor:pointer;color:#777;height:54px;width:54px;padding:0;position:absolute;top:0;right:0;text-align:center;border:0;border-left:1px solid #ddd;background-color:transparent;-webkit-transition:color .1s ease-in-out,background .1s ease-in-out;transition:color .1s ease-in-out,background .1s ease-in-out}.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link::before{font:normal 22px/50px dashicons!important;color:#676d8a;display:block;content:'\f335';font-weight:300}.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link:focus,.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link:hover{background-color:#ddd;border-color:#ccc;color:#2d3559}.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link:focus{outline:0}.ur-backbone-modal-main article{padding:1.5em}.ur-backbone-modal-main article p{margin:1.5em 0}.ur-backbone-modal-main article p:first-child{margin-top:0}.ur-backbone-modal-main article p:last-child{margin-bottom:0}.ur-backbone-modal-main article .pagination{padding:10px 0 0;text-align:center}.ur-backbone-modal-main footer{position:absolute;left:0;right:0;bottom:0;z-index:100;padding:1em 1.5em;background-color:#fcfcfc;border-top:1px solid #dfdfdf;box-shadow:0 -4px 4px -4px rgba(0,0,0,.1)}.ur-backbone-modal-main footer .inner{float:right;line-height:23px}.ur-backbone-modal-main footer .inner .button{margin-bottom:0}.user-registration h2.ur-nav-tab-wrapper{margin-bottom:1em}.user-registration nav.ur-nav-tab-wrapper{margin:1.5em 0 1em;border-bottom:1px solid #ccc}.user-registration #mainform>.subsubsub{background:#e5e5e5;float:none}.user-registration #mainform>.subsubsub a{display:block;padding:7px 10px}.user-registration #mainform>.subsubsub a.current{color:#fff;background:#475bb2}.user-registration textarea[disabled=disabled]{background:#dfdfdf!important}.user-registration table.form-table{margin:0;position:relative}.user-registration table.form-table .select2-container{display:block;max-width:350px}.user-registration table.form-table .forminp-radio ul{margin:0}.user-registration table.form-table .forminp-radio ul li{line-height:1.4em}.user-registration table.form-table textarea.input-text{height:100%;min-width:150px;display:block}.user-registration table.form-table input.regular-input{width:25em}.user-registration table.form-table textarea.wide-input{width:100%}.user-registration table.form-table .user-registration-help-tip,.user-registration table.form-table img.help_tip{padding:0;margin:-4px 0 0 5px;vertical-align:middle;cursor:help;line-height:1}.user-registration table.form-table span.help_tip{cursor:help;color:#2ea2cc}.user-registration table.form-table th{position:relative;padding-right:24px}.user-registration table.form-table .select2-container{vertical-align:top;margin-bottom:3px}.user-registration table.form-table table.widefat th{padding-right:inherit}.user-registration table.form-table th .user-registration-help-tip,.user-registration table.form-table th img.help_tip{margin:0 -24px 0 0;float:right}.user-registration table.form-table .wp-list-table .user-registration-help-tip{float:none}.user-registration table.form-table fieldset{margin-top:4px}.user-registration table.form-table fieldset .user-registration-help-tip,.user-registration table.form-table fieldset img.help_tip{margin:-3px 0 0 5px}.user-registration table.form-table fieldset p.description{margin-bottom:8px}.user-registration table.form-table fieldset:first-child{margin-top:0}.user-registration table.form-table .iris-picker{z-index:100;display:none;position:absolute;border:1px solid #ccc;border-radius:3px;box-shadow:0 1px 3px rgba(0,0,0,.2)}.user-registration table.form-table .iris-picker .ui-slider{border:0!important;margin:0!important;width:auto!important;height:auto!important;background:none transparent!important}.user-registration table.form-table .iris-picker .ui-slider .ui-slider-handle{margin-bottom:0!important}.user-registration table.form-table .colorpickpreview{padding:3px;padding-left:20px;border:1px solid #ddd;border-right:0}.user-registration table.form-table .colorpick{border-left:0}.user-registration table.form-table .image_width_settings{vertical-align:middle}.user-registration table.form-table .image_width_settings label{margin-left:10px}.ur-admin-template-options{display:none}.ur-registered-from{display:-webkit-box;display:-webkit-flex;display:flex;background-color:#fff;font-family:Roboto,sans-serif}.ur-registered-from *{box-sizing:border-box}.ur-registered-from :focus{outline:0}.ur-registered-from a{text-decoration:none}.ur-registered-from h3{color:#2d3559;font-weight:500}.ur-registered-from .ur-field{line-height:2}.ur-registered-from .ur-field label{font-weight:400}.ur-registered-from .ur-field label:last-child{margin-bottom:0}.ur-registered-from .ur-field input[type=checkbox],.ur-registered-from .ur-field input[type=radio]{opacity:1;box-shadow:none;border-color:#dee0e9}.ur-registered-from .wp-picker-container .wp-picker-input-wrap label{display:inline-block;width:auto}.ur-registered-from .wp-picker-container .wp-picker-input-wrap label input.wp-color-picker{height:auto;padding:3px 5px}.ur-registered-from .ur-registered-item{cursor:move;padding:4px;color:#676d8a;height:110px;font-size:12px;border-radius:4px;margin:0 8px 16px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;width:calc(33.3333% - 16px);background-color:#f0f1f5}.ur-registered-from .ur-registered-item .ur-icon{font-size:32px;margin-bottom:4px}.ur-registered-from .ur-registered-item:hover{background-color:#475bb2;color:#fff}.ur-registered-from .ur-registered-item.ui-draggable-dragging{width:110px!important;z-index:9!important}.ur-registered-from .ur-registered-inputs{width:412px;background-color:#f9f9f9}.ur-registered-from .ur-registered-inputs .ur-tabs{border:0 none;padding:0;font-family:Roboto,sans-serif;font-size:14px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists{background-color:#f0f1f5;background-image:none;padding:0;border-radius:0;margin:0;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;border-bottom:none;border-top:0 none;border-right:0 none;border-left:0 none}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li{background-color:transparent;background-image:none;border-radius:0;margin:0;margin-bottom:-1px;padding:0;border:0;-webkit-box-flex:1;-webkit-flex:1;flex:1;text-align:center}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li.active{margin-bottom:0;padding-bottom:0}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li.ui-state-disabled{opacity:1}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li a{float:none;text-decoration:none;margin:0;border:none;display:block;color:#2d3559;background-color:transparent;padding:12px 15px;font-weight:500;cursor:pointer}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li a:focus{box-shadow:0 0 0 0 transparent,0 0 0 0 transparent}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li a.active{background-color:#fff;color:#475bb2;line-height:24px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-contents{height:calc(100vh - 130px);position:relative;overflow-y:auto}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content{padding:16px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content#ur-tab-field-options,.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content#ur-tab-registered-fields{background-color:#fff}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content h2{margin:16px 0;font-size:1em;font-weight:500;font-family:Roboto,sans-serif;color:#2d3559}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content h2~hr{border-top:1px solid #dee0e9}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;width:calc(100% + 16px);margin-left:-8px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list:last-child{margin-bottom:0}.ur-registered-from .ui-widget select,.ur-registered-from input[type=date],.ur-registered-from input[type=email],.ur-registered-from input[type=file],.ur-registered-from input[type=month],.ur-registered-from input[type=number],.ur-registered-from input[type=password],.ur-registered-from input[type=phone],.ur-registered-from input[type=tel],.ur-registered-from input[type=text],.ur-registered-from input[type=time],.ur-registered-from input[type=timepicker],.ur-registered-from input[type=url],.ur-registered-from input[type=week],.ur-registered-from select,.ur-registered-from textarea{width:100%;height:32px;display:block;color:#4c5477;font-size:13px;padding:0 8px;border-radius:3px;border:1px solid #dee0e9;box-shadow:0 0 0 transparent}.ur-registered-from .ui-widget select:focus,.ur-registered-from input[type=date]:focus,.ur-registered-from input[type=email]:focus,.ur-registered-from input[type=file]:focus,.ur-registered-from input[type=month]:focus,.ur-registered-from input[type=number]:focus,.ur-registered-from input[type=password]:focus,.ur-registered-from input[type=phone]:focus,.ur-registered-from input[type=tel]:focus,.ur-registered-from input[type=text]:focus,.ur-registered-from input[type=time]:focus,.ur-registered-from input[type=timepicker]:focus,.ur-registered-from input[type=url]:focus,.ur-registered-from input[type=week]:focus,.ur-registered-from select:focus,.ur-registered-from textarea:focus{border-color:#475bb2}.ur-registered-from .ui-widget select::-webkit-input-placeholder,.ur-registered-from input[type=date]::-webkit-input-placeholder,.ur-registered-from input[type=email]::-webkit-input-placeholder,.ur-registered-from input[type=file]::-webkit-input-placeholder,.ur-registered-from input[type=month]::-webkit-input-placeholder,.ur-registered-from input[type=number]::-webkit-input-placeholder,.ur-registered-from input[type=password]::-webkit-input-placeholder,.ur-registered-from input[type=phone]::-webkit-input-placeholder,.ur-registered-from input[type=tel]::-webkit-input-placeholder,.ur-registered-from input[type=text]::-webkit-input-placeholder,.ur-registered-from input[type=time]::-webkit-input-placeholder,.ur-registered-from input[type=timepicker]::-webkit-input-placeholder,.ur-registered-from input[type=url]::-webkit-input-placeholder,.ur-registered-from input[type=week]::-webkit-input-placeholder,.ur-registered-from select::-webkit-input-placeholder,.ur-registered-from textarea::-webkit-input-placeholder{color:#b6bbcf}.ur-registered-from .ui-widget select::-ms-input-placeholder,.ur-registered-from input[type=date]::-ms-input-placeholder,.ur-registered-from input[type=email]::-ms-input-placeholder,.ur-registered-from input[type=file]::-ms-input-placeholder,.ur-registered-from input[type=month]::-ms-input-placeholder,.ur-registered-from input[type=number]::-ms-input-placeholder,.ur-registered-from input[type=password]::-ms-input-placeholder,.ur-registered-from input[type=phone]::-ms-input-placeholder,.ur-registered-from input[type=tel]::-ms-input-placeholder,.ur-registered-from input[type=text]::-ms-input-placeholder,.ur-registered-from input[type=time]::-ms-input-placeholder,.ur-registered-from input[type=timepicker]::-ms-input-placeholder,.ur-registered-from input[type=url]::-ms-input-placeholder,.ur-registered-from input[type=week]::-ms-input-placeholder,.ur-registered-from select::-ms-input-placeholder,.ur-registered-from textarea::-ms-input-placeholder{color:#b6bbcf}.ur-registered-from .ui-widget select::placeholder,.ur-registered-from input[type=date]::placeholder,.ur-registered-from input[type=email]::placeholder,.ur-registered-from input[type=file]::placeholder,.ur-registered-from input[type=month]::placeholder,.ur-registered-from input[type=number]::placeholder,.ur-registered-from input[type=password]::placeholder,.ur-registered-from input[type=phone]::placeholder,.ur-registered-from input[type=tel]::placeholder,.ur-registered-from input[type=text]::placeholder,.ur-registered-from input[type=time]::placeholder,.ur-registered-from input[type=timepicker]::placeholder,.ur-registered-from input[type=url]::placeholder,.ur-registered-from input[type=week]::placeholder,.ur-registered-from select::placeholder,.ur-registered-from textarea::placeholder{color:#b6bbcf}.ur-registered-from .ui-widget select:disabled,.ur-registered-from input[type=date]:disabled,.ur-registered-from input[type=email]:disabled,.ur-registered-from input[type=file]:disabled,.ur-registered-from input[type=month]:disabled,.ur-registered-from input[type=number]:disabled,.ur-registered-from input[type=password]:disabled,.ur-registered-from input[type=phone]:disabled,.ur-registered-from input[type=tel]:disabled,.ur-registered-from input[type=text]:disabled,.ur-registered-from input[type=time]:disabled,.ur-registered-from input[type=timepicker]:disabled,.ur-registered-from input[type=url]:disabled,.ur-registered-from input[type=week]:disabled,.ur-registered-from select:disabled,.ur-registered-from textarea:disabled{color:#b6bbcf;background:#f0f1f5}.ur-registered-from select{padding-right:0}.ur-registered-from label{display:block;width:100%;margin-bottom:8px;color:#4c5477;font-size:13px;font-weight:500;line-height:1.25}.ur-registered-from textarea{padding:10px;height:100px}.ur-registered-from .ur-builder-wrapper{position:relative;-webkit-box-flex:1;-webkit-flex:1;flex:1;height:calc(100vh - 89px);background:#fafafc;border-left:1px solid #dee0e9;overflow-y:auto}.ur-registered-from .ur-builder-wrapper input[type=date]:disabled,.ur-registered-from .ur-builder-wrapper input[type=email]:disabled,.ur-registered-from .ur-builder-wrapper input[type=file]:disabled,.ur-registered-from .ur-builder-wrapper input[type=month]:disabled,.ur-registered-from .ur-builder-wrapper input[type=number]:disabled,.ur-registered-from .ur-builder-wrapper input[type=password]:disabled,.ur-registered-from .ur-builder-wrapper input[type=phone]:disabled,.ur-registered-from .ur-builder-wrapper input[type=tel]:disabled,.ur-registered-from .ur-builder-wrapper input[type=text]:disabled,.ur-registered-from .ur-builder-wrapper input[type=time]:disabled,.ur-registered-from .ur-builder-wrapper input[type=timepicker]:disabled,.ur-registered-from .ur-builder-wrapper input[type=url]:disabled,.ur-registered-from .ur-builder-wrapper input[type=week]:disabled,.ur-registered-from .ur-builder-wrapper select:disabled,.ur-registered-from .ur-builder-wrapper textarea:disabled{background:#fff}.ur-registered-from .ur-builder-wrapper .ur-builder-header{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.ur-registered-from .ur-builder-wrapper .ur-form-name-wrapper{display:-webkit-inline-box;display:-webkit-inline-flex;display:inline-flex;-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-webkit-flex-direction:row-reverse;flex-direction:row-reverse;margin:16px 0;position:relative}.ur-registered-from .ur-builder-wrapper .ur-form-name-wrapper .ur-edit-form-name{width:32px;height:32px;cursor:pointer;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;border-radius:3px;margin-bottom:0;color:#4c5477;background:#dee0e9;border:1px solid transparent}.ur-registered-from .ur-builder-wrapper .ur-form-name-wrapper .ur-edit-form-name::after{content:'';border-radius:3px;position:absolute;left:32px;right:calc(100% - 32px);height:30px;border-radius:0 3px 3px 0;-webkit-transition:all .3s ease 0s;transition:all .3s ease 0s}.ur-registered-from .ur-builder-wrapper .ur-form-name-wrapper input{color:#2d3559;background:0 0;font-size:16px;width:auto;height:auto;padding:4px 8px;border-color:transparent;pointer-events:none;z-index:1;border:1px solid transparent}.ur-registered-from .ur-builder-wrapper .ur-form-name-wrapper input.ur-editing{border-color:transparent;pointer-events:all}.ur-registered-from .ur-builder-wrapper .ur-form-name-wrapper input.ur-editing+.ur-edit-form-name{color:#fff;background:#475bb2;border-radius:3px 0 0 3px;border:1px solid #475bb2}.ur-registered-from .ur-builder-wrapper .ur-form-name-wrapper input.ur-editing+.ur-edit-form-name::after{top:0;right:0;border:1px solid #475bb2}.ur-registered-from .ur-selected-inputs{box-sizing:border-box;padding:0 20px}.ur-registered-from .ur-selected-inputs .ur-single-row{border-radius:3px;position:relative;border:1px solid transparent}.ur-registered-from .ur-selected-inputs .ur-single-row:last-child{margin-bottom:0}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids{display:-webkit-box;display:-webkit-flex;display:flex;position:absolute;right:0;z-index:1;opacity:0;-webkit-transition:all .2s ease-in;transition:all .2s ease-in}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids button{display:-webkit-box;display:-webkit-flex;display:flex;border-radius:0;border:0;background-color:#676d8a;color:#fff;font-size:16px;height:auto;width:auto;cursor:pointer;padding:4px 6px;line-height:1;-webkit-transition:all .1s ease-in-out;transition:all .1s ease-in-out}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids button svg{width:16px;height:16px;font-size:16px;fill:#fff}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids button:before{font-family:dashicons}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids button.ur-remove-row:hover{background:red}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids button:hover{background:#475bb2}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids button:first-child{border-radius:3px 0 0 3px;border-right:1px solid rgba(255,255,255,.2)}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids button:nth-child(2){border-radius:0 3px 3px 0}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids .ur-toggle-grid-content{background:#fff;padding:1rem;position:absolute;top:40px;right:0;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;white-space:nowrap;border:1px solid #dee0e9;border-radius:4px;box-shadow:1px 4px 14px 1px rgba(26,31,51,.1)}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids .ur-toggle-grid-content small{font-size:12px;margin-bottom:.5rem;color:#676d8a}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids .ur-toggle-grid-content .ur-grid-selector{cursor:pointer;display:-webkit-box;display:-webkit-flex;display:flex;margin-right:.5rem}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids .ur-toggle-grid-content .ur-grid-selector svg{width:32px;height:32px;fill:#676d8a}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids .ur-toggle-grid-content .ur-grid-selector:last-child{margin-right:0}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids .ur-toggle-grid-content::before{content:'';width:8px;height:8px;border:solid #dee0e9;border-width:1px;border-left:transparent;border-bottom:transparent;position:absolute;top:-5px;right:36px;background:#fff;-webkit-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg)}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists{width:100%;display:-webkit-box;display:-webkit-flex;display:flex;text-align:center;box-sizing:border-box;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;border:1px solid transparent;border-radius:4px;-webkit-transition:all .2s ease-in;transition:all .2s ease-in}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists:hover{background:#fff;border:1px solid #b6bbcf}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists:hover .ur-grid-list-item{border-left:1px solid #b6bbcf}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists:hover .ur-grid-list-item:first-child{border-color:transparent}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item{display:inline-block;text-align:left;border:0 none;padding:15px;-webkit-box-flex:1;-webkit-flex:1;flex:1;border:1px solid transparent;border-radius:4px;-webkit-transition:all .2s ease-in;transition:all .2s ease-in}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item{margin-bottom:5px;position:relative;padding:15px;cursor:move;border:1px solid transparent;border-radius:4px;-webkit-transition:border-color .35s;transition:border-color .35s}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .select2-container{width:100%!important}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .select2-container .select2-search--inline .select2-search__field{height:auto;min-width:10px}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-input-type-signature canvas{background:rgba(255,255,255,.5);border:1px solid #ddd}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item:last-child{margin-bottom:0}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item.ur-item-active,.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item:hover{background:#fff;border:1px solid #475bb2}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item.ui-sortable-helper{box-shadow:0 0 10px 5px rgba(45,53,89,.1)}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item.ui-sortable-placeholder{visibility:visible!important;border:1px dashed #b6bbcf;background-color:#f0f1f5}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons{display:none;position:absolute;right:10px;width:50px;text-align:center;padding:0;font-size:10px;top:10px;color:#b6bbcf}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons span{cursor:pointer;font-size:16px;height:auto}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons span:hover{color:#475bb2}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons:hover .ur-action-buttons{display:block}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons .ur-trash:hover{color:#ff4149}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur_label_top_left{text-align:left}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur_label_center{text-align:center}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur_label_top_right{text-align:right}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur_label_disabled{display:none}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item:hover .ur-action-buttons{display:block}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item>li.ur-item-dragged{list-style:none;width:100%;text-align:center;height:60px!important;box-sizing:border-box}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item>li.ur-item-dragged .spinner{float:none}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me{display:table;width:100%;height:100%}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me .user-registration-dragged-me-text{display:table-cell;vertical-align:middle;text-align:center}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me .user-registration-dragged-me-text p{display:inline-block;position:relative;color:#b6bbcf;padding-left:26px;padding-top:8px}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me .user-registration-dragged-me-text p::before{position:absolute;font-family:Dashicons;content:'\f545';font-size:22px;left:0;top:0}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me:empty{padding:15px;text-align:center;border-radius:4px;border:1px dashed #b6bbcf;background-color:#f0f1f5}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me:empty::before{content:'\f132';font-size:32px;color:#b6bbcf;width:32px;height:32px;font-family:dashicons;display:table-cell;vertical-align:middle}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item.ur-sortable-active .ur-registered-item{margin-bottom:0}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item.ur-sortable-active .user-registration-dragged-me{display:none}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item:first-child{border-radius:4px 0 0 4px}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item:nth-child(2){border-radius:0}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item:nth-child(3){border-radius:0 4px 4px 0}.ur-registered-from .ur-selected-inputs .ur-single-row:hover .ur-grids{opacity:1}.ur-registered-from .ur-selected-inputs .ur-add-new-row{display:block;margin:20px auto;width:auto;height:32px;text-align:center;font-family:inherit}.ur-registered-from .ur-selected-inputs .ur-add-new-row::before{width:16px;height:16px;line-height:1;font-size:16px;margin-right:10px;font-family:dashicons;vertical-align:middle;padding:1px 10px 1px 0;border-right:1px solid rgba(255,255,255,.3)}.ur-registered-from .ur-selected-inputs li.ur-registered-item{width:120px!important}.ur-registered-from .ur-selected-inputs li.ur-registered-item.ui-sortable-placeholder{margin-left:0;width:100%!important;visibility:visible!important;border:1px dashed #acaeba;background-color:#f0f1f5}.ur-registered-from .ur-advance-setting,.ur-registered-from .ur-general-setting{margin:16px 0}.ur-registered-from .ur-advance-setting-block{margin-top:25px}.ur-registered-from .form-row{margin-bottom:1em}.ur-registered-from .form-row .description{color:#676d8a;font-size:12px;margin-bottom:4px;display:block}.ur-registered-from .form-row .ur-checkbox-list label,.ur-registered-from .form-row .ur-radio-list label{display:inline}.ur-registered-from .ur-registered-item.dragging{border:0;box-shadow:0 0 0 transparent;border-radius:0;padding:5px 10px;height:auto;background-color:#475bb2;color:#fff;text-align:center;width:200px}.ur-registered-from .ur-advance-setting-block,.ur-registered-from .ur-general-setting-block{display:none}.ur-registered-from .ur-advance-setting label,.ur-registered-from .ur-general-setting label{display:block}.ur-registered-from .add,.ur-registered-from .remove{background:#fff;border:1px solid #ddd;color:#676d8a;cursor:pointer;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-flex:1;-webkit-flex:1 0 32px;flex:1 0 32px;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;height:32px;max-width:32px;border-radius:4px;position:relative}.ur-registered-from .add:hover,.ur-registered-from .remove:hover{background:#475bb2;border-color:#475bb2;color:#fff}.ur-registered-from .add .dashicons,.ur-registered-from .remove .dashicons{line-height:22px}.ur-registered-from .add{margin-right:8px}.ur-registered-from .ur-options-list li{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.ur-registered-from .ur-options-list li .editor-block-mover__control-drag-handle{margin-right:8px;cursor:-webkit-grab;cursor:grab}.ur-registered-from .ur-options-list li .editor-block-mover__control-drag-handle svg{fill:#676d8a}.ur-registered-from .ur-options-list li input{margin-right:8px}.ur-registered-from .ur-options-list .ui-sortable-handle{padding:5px;border-radius:3px;border:1px solid transparent}.ur-registered-from .ur-options-list .ui-sortable-handle:active{padding:5px;background:#fff;border:1px solid #475bb2;box-shadow:0 0 20px rgba(0,0,0,.2)}.ur-registered-from .ur-options-list .ui-sortable-handle.ui-sortable-placeholder{background-color:#dee0e9;visibility:visible!important}.ur-registered-from .urcl-rules{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;margin-bottom:8px}.ur-registered-from .urcl-rules>div{margin-right:8px}.ur-registered-from .urcl-rules .urcl-operator{width:78px}.ur-registered-from .urcl-rules .urcl-field,.ur-registered-from .urcl-rules .urcl-value{max-width:27%;-webkit-box-flex:1;-webkit-flex:1 0 27%;flex:1 0 27%}#sortable{min-height:400px}.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:#dee0e9}#tiptip_holder.tip_bottom{padding-top:5px}#tiptip_holder.tip_bottom #tiptip_arrow_inner{margin-top:-5px;margin-left:-6px;border-bottom-color:#4c5477}#tiptip_holder.tip_right{padding-left:5px}#tiptip_holder.tip_right #tiptip_arrow_inner{margin-top:-6px;margin-left:-5px;border-right-color:#dee0e9}#tiptip_holder.tip_left{padding-right:5px}#tiptip_holder.tip_left #tiptip_arrow_inner{margin-top:-6px;margin-left:-7px;border-left-color:#dee0e9}#tiptip_content,.ur_error_tip{color:#fff;font-size:.9em;max-width:150px;background:#4c5477;text-align:center;border-radius:3px;padding:.618em 1em;box-shadow:0 1px 3px rgba(0,0,0,.2)}#tiptip_content code,.ur_error_tip 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}.ur_error_tip{max-width:20em;line-height:1.8em;position:absolute;white-space:normal;background:#ff4149;margin:1.5em 1px 0 -1em;z-index:9999999}.ur_error_tip::after{content:'';display:block;border:8px solid #ff4149;border-right-color:transparent;border-left-color:transparent;border-top-color:transparent;position:absolute;top:-3px;left:50%;margin:-1em 0 0 -3px}.user-registration-help-tip{color:#676d8a;display:inline-block;font-size:16px;font-style:normal;height:16px;line-height:16px;position:relative;vertical-align:middle;width:16px}.user-registration-help-tip::after{font-family:Dashicons;speak:none;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;margin:0;text-indent:0;position:absolute;top:0;left:0;width:100%;height:100%;text-align:center;content:"";cursor:help}.select2-drop,.select2-dropdown{z-index:999999!important}.select2-results{line-height:1.5em}.select2-results .select2-results__group,.select2-results .select2-results__option{margin:0;padding:8px}.select2-dropdown{border-color:#ddd}.select2-dropdown--below{box-shadow:0 1px 1px rgba(0,0,0,.1)}.select2-dropdown--above{box-shadow:0 -1px 1px rgba(0,0,0,.1)}.select2-container .select2-selection__rendered.ui-sortable li{cursor:move}.select2-container .select2-selection{border-color:#ddd}.select2-container .select2-search__field{min-width:150px}.select2-container .select2-selection--single{height:32px}.select2-container .select2-selection--single .select2-selection__rendered{line-height:32px;padding-right:24px}.select2-container .select2-selection--single .select2-selection__arrow{right:3px;height:30px}.select2-container .select2-selection--multiple{min-height:28px;border-radius:0;line-height:1.5}.select2-container .select2-selection--multiple li{margin:0}.select2-container .select2-selection--multiple .select2-selection__choice{padding:2px 6px}.select2-container .select2-selection__clear{color:#999;margin-top:-1px}.select2-container .select2-search--inline .select2-search__field{font-family:inherit;font-size:inherit;font-weight:inherit;padding:3px 0}#ur-tab-registered-fields li.ur-registered-item.ui-draggable-disabled{color:#b6bbcf}#ur-tab-registered-fields li.ur-registered-item.ui-draggable-disabled:hover{background:#f0f1f5;cursor:not-allowed}.ur-no-pointer{pointer-events:none}.dashicons,.user-registration table.form-table dashicons .dashicons{line-height:inherit}#smart-tags{text-align:center}.form-settings-tab{cursor:pointer;padding:10px 15px;color:#2d3559;background:#e8e9ee;margin-bottom:10px;border-radius:4px}.form-settings-tab.active{background:#475bb2;color:#fff}#profile-page form#your-profile .flatpickr-input[readonly]{background-color:#fff}#ur-tab-registered-fields h2{cursor:pointer}#ur-tab-registered-fields h2:before{content:'\f142';cursor:pointer;display:block;font:400 20px/1 Dashicons;line-height:.5!important;padding:4px;position:relative;right:0;top:0;float:right}#ur-tab-registered-fields h2.closed:before{content:""!important}body.ur-full-screen-mode{margin-top:-32px}body.ur-full-screen-mode #wpbody-content{padding-bottom:45px}body.ur-full-screen-mode #wpwrap #wpcontent{margin-left:0;padding-left:0}body.ur-full-screen-mode #wpwrap #wpcontent #wpadminbar{display:none}body.ur-full-screen-mode #wpwrap #wpcontent #wpbody .ur-tab-content{padding:20px}body.ur-full-screen-mode #wpwrap #wpcontent #wpbody #menu-management-liquid{margin-top:0}body.ur-full-screen-mode #wpwrap #wpcontent #wpbody #menu-management-liquid .menu-edit{margin-bottom:0;box-shadow:none;left:0!important}body.ur-full-screen-mode #wpwrap #adminmenumain{display:none}body.ur-full-screen-mode .ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-contents{height:calc(100vh - 98px)}body.ur-full-screen-mode .ur-registered-from .ur-builder-wrapper{height:calc(100vh - 57px)}@-webkit-keyframes ur-circle-loading{0%,100%{-webkit-animation-timing-function:cubic-bezier(.2,0,.8,1);animation-timing-function:cubic-bezier(.2,0,.8,1)}50%{-webkit-animation-timing-function:cubic-bezier(0,.2,1,.8);animation-timing-function:cubic-bezier(0,.2,1,.8)}0%{-webkit-transform:rotate(0) translate(0,-20px) scale(0);transform:rotate(0) translate(0,-20px) scale(0)}50%{-webkit-transform:rotate(180deg) translate(0,-20px) scale(1);transform:rotate(180deg) translate(0,-20px) scale(1)}100%{-webkit-transform:rotate(360deg) translate(0,-20px) scale(0);transform:rotate(360deg) translate(0,-20px) scale(0)}}@keyframes ur-circle-loading{0%,100%{-webkit-animation-timing-function:cubic-bezier(.2,0,.8,1);animation-timing-function:cubic-bezier(.2,0,.8,1)}50%{-webkit-animation-timing-function:cubic-bezier(0,.2,1,.8);animation-timing-function:cubic-bezier(0,.2,1,.8)}0%{-webkit-transform:rotate(0) translate(0,-20px) scale(0);transform:rotate(0) translate(0,-20px) scale(0)}50%{-webkit-transform:rotate(180deg) translate(0,-20px) scale(1);transform:rotate(180deg) translate(0,-20px) scale(1)}100%{-webkit-transform:rotate(360deg) translate(0,-20px) scale(0);transform:rotate(360deg) translate(0,-20px) scale(0)}}@-webkit-keyframes ur-circle-loading-keyframe{0%,100%{-webkit-animation-timing-function:cubic-bezier(.2,0,.8,1);animation-timing-function:cubic-bezier(.2,0,.8,1)}50%{-webkit-animation-timing-function:cubic-bezier(0,.2,1,.8);animation-timing-function:cubic-bezier(0,.2,1,.8)}0%{-webkit-transform:rotate(0) translate(0,-20px) scale(0);transform:rotate(0) translate(0,-20px) scale(0)}50%{-webkit-transform:rotate(180deg) translate(0,-20px) scale(1);transform:rotate(180deg) translate(0,-20px) scale(1)}100%{-webkit-transform:rotate(360deg) translate(0,-20px) scale(0);transform:rotate(360deg) translate(0,-20px) scale(0)}}.ur-circle-loading{position:relative;width:100px!important;height:100px!important;-webkit-transform:translate(-50px,-50px) scale(.5) translate(50px,50px);-ms-transform:translate(-50px,-50px) scale(.5) translate(50px,50px);transform:translate(-50px,-50px) scale(.5) translate(50px,50px)}.ur-circle-loading::after,.ur-circle-loading::before{content:'';position:absolute;top:70px;left:70px;-webkit-animation:ur-circle-loading-keyframe 1.5s linear infinite;animation:ur-circle-loading-keyframe 1.5s linear infinite;width:60px;height:60px;border-radius:50%;background:#475bb2}.ur-circle-loading::after{-webkit-animation-delay:-.75s;animation-delay:-.75s;background:#668fe5}@media only screen and (max-width:1599px){.ur_addons_wrap .products li{width:32.66%}.ur_addons_wrap .products li:nth-child(5n){margin:0 1% 1% 0!important}.ur_addons_wrap .products li:nth-child(3n){margin:0 0 1% 0!important}}@media screen and (max-width:1400px){.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{font-size:12px}.ur-registered-from .urcl-rules .urcl-field{max-width:61%;-webkit-box-flex:1;-webkit-flex:1 0 60%;flex:1 0 60%;margin-bottom:5px}.ur-registered-from .urcl-rules .urcl-value{-webkit-box-ordinal-group:5;-webkit-order:4;order:4;max-width:87%;-webkit-box-flex:1;-webkit-flex:1 0 86%;flex:1 0 86%}.ur-registered-from .urcl-rules .add{-webkit-box-ordinal-group:4;-webkit-order:3;order:3;margin-right:0}.ur-registered-from .urcl-rules .remove{-webkit-box-ordinal-group:6;-webkit-order:5;order:5}}@media only screen and (max-width:1120px){.ur_addons_wrap .products li{width:49%;margin:0 2% 2% 0!important}.ur_addons_wrap .products li:nth-child(3n),.ur_addons_wrap .products li:nth-child(5n){margin:0 2% 2% 0!important}.ur_addons_wrap .products li:nth-child(2n){margin:0 0 2% 0!important}}@media screen and (max-width:960px){.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{float:none;width:100%}.ur-registered-from .ur-registered-inputs .ur-single-row .ur-grid-lists,.ur-registered-from .ur-registered-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item,.ur-registered-from .ur-registered-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item{padding:10px}}@media only screen and (max-width:900px){.ur_addons_wrap .products li{width:49%}}@media screen and (max-width:782px){body.user-registration_page_add-new-registration{min-width:0!important}.ur-registered-from{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.ur-registered-from .ur-registered-inputs{width:100%;margin-bottom:10px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{float:left;width:48%}.ur-registered-from .ur-selected-inputs{width:100%}}@media only screen and (min-width:769px) and (max-width:1000px){.user-registration_page_add-new-registration #post-body-content{min-width:0}}@media screen and (max-width:600px){.user-registration_page_add-new-registration .major-publishing-actions{clear:both;padding:10px 0 19px;line-height:28px}.user-registration_page_add-new-registration .major-publishing-actions .ur-form-name{width:100%}.user-registration_page_add-new-registration .major-publishing-actions .publishing-action{text-align:left;float:none;margin-top:15px}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;display:block}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item{width:100%!important}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item:nth-child(1n+2){border-left:0 none;border-top:2px solid #f2f2f2}}@media only screen and (max-width:480px){.ur_addons_wrap .products li,.ur_addons_wrap .products li:nth-child(2n),.ur_addons_wrap .products li:nth-child(3n),.ur_addons_wrap .products li:nth-child(5n){width:100%;margin:0 0 3% 0!important}}@-webkit-keyframes open-message{0%{opacity:0;-webkit-transform:translateY(-120%);transform:translateY(-120%)}100%{-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes open-message{0%{opacity:0;-webkit-transform:translateY(-120%);transform:translateY(-120%)}100%{-webkit-transform:translateY(0);transform:translateY(0)}}@-webkit-keyframes close-message{0%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}100%{opacity:0;-webkit-transform:scale(.9);transform:scale(.9)}}@keyframes close-message{0%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}100%{opacity:0;-webkit-transform:scale(.9);transform:scale(.9)}}.ur-builder-message-container{position:fixed;top:32px;left:0;right:0;max-width:400px;margin:0 auto;z-index:9999}.ur-builder-message-container .ur-message{display:none;margin:0 auto;margin-top:16px;-webkit-transition:all 240ms cubic-bezier(0,0,.2,1) 0s;transition:all 240ms cubic-bezier(0,0,.2,1) 0s;z-index:99999;height:0}.ur-builder-message-container .ur-message .ur-error,.ur-builder-message-container .ur-message .ur-success{background:#fff;padding:8px 16px;border-radius:3px;border-left:3px solid;position:relative;box-shadow:0 1px 8px 2px rgba(26,31,51,.1)}.ur-builder-message-container .ur-message .ur-error p,.ur-builder-message-container .ur-message .ur-success p{margin:8px 0}.ur-builder-message-container .ur-message .ur-error p::after,.ur-builder-message-container .ur-message .ur-error p::before,.ur-builder-message-container .ur-message .ur-success p::after,.ur-builder-message-container .ur-message .ur-success p::before{font-family:dashicons;width:20px;height:20px;font-size:20px;margin-right:8px;margin-top:-4px;line-height:1;display:inline-block;vertical-align:middle}.ur-builder-message-container .ur-message .ur-success{border-color:#7ad03a}.ur-builder-message-container .ur-message .ur-success p::before{content:"\f12a";color:#7ad03a}.ur-builder-message-container .ur-message .ur-error{border-color:red}.ur-builder-message-container .ur-message .ur-error p::before{content:"\f534";color:red}.ur-builder-message-container .ur-message .dashicons{cursor:pointer;position:absolute;right:16px;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);line-height:1}.ur-builder-message-container .ur-message.entered{display:block;height:50px;-webkit-animation:240ms cubic-bezier(.175,.885,.32,1.175) 0s 1 normal both open-message;animation:240ms cubic-bezier(.175,.885,.32,1.175) 0s 1 normal both open-message}.ur-builder-message-container .ur-message.exiting{display:block;-webkit-animation:120ms cubic-bezier(.4,0,1,1) 0s 1 normal both close-message;animation:120ms cubic-bezier(.4,0,1,1) 0s 1 normal both close-message}.ur-builder-message-container .ur-message:first-child{margin-top:1.5rem}
|
assets/css/admin.scss
CHANGED
@@ -9,6 +9,7 @@
|
|
9 |
@import "button";
|
10 |
@import "mixins";
|
11 |
@import "variables";
|
|
|
12 |
|
13 |
/**
|
14 |
* Styling begins
|
@@ -17,21 +18,35 @@
|
|
17 |
@include loader();
|
18 |
}
|
19 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
.ur-export-users-page {
|
21 |
-
margin-top:
|
22 |
|
23 |
-
.nav-tab-content
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
|
|
|
|
|
|
|
|
|
|
28 |
margin: 10px;
|
|
|
29 |
}
|
30 |
}
|
31 |
}
|
32 |
|
33 |
.ur_addons_wrap {
|
34 |
-
|
35 |
.products {
|
36 |
overflow: hidden;
|
37 |
display: flex;
|
@@ -149,26 +164,131 @@
|
|
149 |
}
|
150 |
}
|
151 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
152 |
#menu-management-liquid {
|
153 |
-
margin-top:
|
|
|
|
|
154 |
}
|
155 |
|
156 |
.postbox p.submit {
|
157 |
margin-bottom: 0;
|
158 |
}
|
159 |
|
|
|
|
|
|
|
|
|
|
|
160 |
#nav-menu-header {
|
|
|
|
|
|
|
|
|
161 |
background-color: $white;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
162 |
}
|
163 |
|
164 |
.major-publishing-actions {
|
165 |
clear: both;
|
166 |
-
padding: 10px 0;
|
167 |
line-height: 28px;
|
|
|
168 |
|
169 |
.publishing-action {
|
170 |
text-align: right;
|
171 |
float: right;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
172 |
}
|
173 |
|
174 |
.form-invalid {
|
@@ -504,78 +624,19 @@
|
|
504 |
}
|
505 |
}
|
506 |
|
507 |
-
/* =Media Queries
|
508 |
-
-------------------------------------------------------------- */
|
509 |
-
|
510 |
-
@media only screen and (max-width: 1599px) {
|
511 |
-
.ur_addons_wrap .products li {
|
512 |
-
width: 32.66%;
|
513 |
-
}
|
514 |
-
.ur_addons_wrap .products li:nth-child(5n) {
|
515 |
-
margin: 0 1% 1% 0 !important;
|
516 |
-
}
|
517 |
-
.ur_addons_wrap .products li:nth-child(3n) {
|
518 |
-
margin: 0 0 1% 0 !important;
|
519 |
-
}
|
520 |
-
}
|
521 |
-
|
522 |
-
@media only screen and (max-width: 1120px) {
|
523 |
-
.ur_addons_wrap .products li {
|
524 |
-
width: 49%;
|
525 |
-
margin: 0 2% 2% 0 !important;
|
526 |
-
}
|
527 |
-
.ur_addons_wrap .products li:nth-child(5n),
|
528 |
-
.ur_addons_wrap .products li:nth-child(3n) {
|
529 |
-
margin: 0 2% 2% 0 !important;
|
530 |
-
}
|
531 |
-
.ur_addons_wrap .products li:nth-child(2n) {
|
532 |
-
margin: 0 0 2% 0 !important;
|
533 |
-
}
|
534 |
-
}
|
535 |
-
|
536 |
-
@media only screen and (max-width: 900px) {
|
537 |
-
.ur_addons_wrap .products li {
|
538 |
-
width: 49%;
|
539 |
-
}
|
540 |
-
}
|
541 |
-
|
542 |
-
@media only screen and (max-width: 480px) {
|
543 |
-
.ur_addons_wrap .products li,
|
544 |
-
.ur_addons_wrap .products li:nth-child(5n),
|
545 |
-
.ur_addons_wrap .products li:nth-child(3n),
|
546 |
-
.ur_addons_wrap .products li:nth-child(2n) {
|
547 |
-
width: 100%;
|
548 |
-
margin: 0 0 3% 0 !important;
|
549 |
-
}
|
550 |
-
|
551 |
-
}
|
552 |
-
|
553 |
-
@media only screen and (min-width: 769px) and (max-width: 1000px) {
|
554 |
-
|
555 |
-
.user-registration_page_add-new-registration #post-body-content {
|
556 |
-
min-width: 0;
|
557 |
-
}
|
558 |
-
}
|
559 |
-
|
560 |
-
@media screen and (max-width: 782px) {
|
561 |
-
body.user-registration_page_add-new-registration {
|
562 |
-
min-width: 0 !important;
|
563 |
-
}
|
564 |
-
}
|
565 |
-
|
566 |
.ur-admin-template-options {
|
567 |
display: none;
|
568 |
}
|
569 |
|
570 |
.ur-registered-from {
|
571 |
display: flex;
|
572 |
-
background-color: $
|
573 |
font-family: Roboto, sans-serif;
|
574 |
-
border-bottom: 1px solid $color_gray_six;
|
575 |
|
576 |
* {
|
577 |
box-sizing: border-box;
|
578 |
}
|
|
|
579 |
*:focus {
|
580 |
outline: 0;
|
581 |
}
|
@@ -584,12 +645,79 @@
|
|
584 |
text-decoration: none;
|
585 |
}
|
586 |
|
|
|
|
|
|
|
|
|
|
|
587 |
.ur-field {
|
588 |
line-height: 2;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
589 |
}
|
590 |
|
591 |
.ur-registered-inputs {
|
592 |
-
width:
|
593 |
background-color: $color_gray_ten;
|
594 |
|
595 |
.ur-tabs {
|
@@ -599,13 +727,14 @@
|
|
599 |
font-size: 14px;
|
600 |
|
601 |
.ur-tab-lists {
|
602 |
-
background-color:
|
603 |
background-image: none;
|
604 |
padding: 0;
|
605 |
border-radius: 0;
|
606 |
margin: 0;
|
607 |
display: flex;
|
608 |
-
|
|
|
609 |
border-top: 0 none;
|
610 |
border-right: 0 none;
|
611 |
border-left: 0 none;
|
@@ -617,9 +746,9 @@
|
|
617 |
margin: 0;
|
618 |
margin-bottom: -1px;
|
619 |
padding: 0px;
|
620 |
-
float: none;
|
621 |
-
display: inline-block;
|
622 |
border: 0;
|
|
|
|
|
623 |
|
624 |
&.active {
|
625 |
margin-bottom: 0;
|
@@ -636,9 +765,9 @@
|
|
636 |
margin: 0;
|
637 |
border: none;
|
638 |
display: block;
|
639 |
-
color: $
|
640 |
background-color: transparent;
|
641 |
-
padding:
|
642 |
font-weight: 500;
|
643 |
cursor: pointer;
|
644 |
|
@@ -647,71 +776,204 @@
|
|
647 |
}
|
648 |
|
649 |
&.active {
|
650 |
-
background-color: $
|
651 |
-
color: $
|
652 |
line-height: 24px;
|
653 |
}
|
654 |
}
|
655 |
}
|
656 |
}
|
657 |
-
|
658 |
-
|
659 |
-
height: calc(100vh -
|
|
|
660 |
overflow-y: auto;
|
|
|
|
|
|
|
|
|
|
|
661 |
&#ur-tab-registered-fields,
|
662 |
&#ur-tab-field-options {
|
663 |
-
background-color: $
|
664 |
}
|
|
|
665 |
h2 {
|
666 |
-
margin: 0;
|
667 |
-
font-size:
|
668 |
-
font-weight:
|
669 |
font-family: Roboto, sans-serif;
|
670 |
-
color: $
|
|
|
|
|
|
|
|
|
671 |
}
|
|
|
672 |
.ur-registered-list {
|
673 |
-
|
674 |
-
|
675 |
-
|
|
|
|
|
676 |
&:last-child {
|
677 |
margin-bottom: 0;
|
678 |
}
|
679 |
-
|
680 |
-
|
681 |
-
|
682 |
-
|
683 |
-
|
684 |
-
|
685 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
686 |
color: $white;
|
687 |
-
|
688 |
-
|
689 |
-
|
690 |
-
position: relative;
|
691 |
-
cursor: move;
|
692 |
-
.dashicons {
|
693 |
-
position: absolute;
|
694 |
-
top: 0;
|
695 |
-
bottom: 0;
|
696 |
-
background: rgba(0, 0, 0, 0.3);
|
697 |
-
width: 35px;
|
698 |
-
left: 0;
|
699 |
-
line-height: 2.9;
|
700 |
-
font-size: 16px;
|
701 |
-
height: auto;
|
702 |
-
margin-right: 5px;
|
703 |
-
}
|
704 |
|
705 |
-
|
706 |
-
|
707 |
-
|
708 |
-
|
709 |
-
background-color: $primary_dark;
|
710 |
-
color: $white;
|
711 |
-
}
|
712 |
-
&:nth-child(2n+1) {
|
713 |
-
clear: both;
|
714 |
-
display: block;
|
715 |
}
|
716 |
}
|
717 |
}
|
@@ -720,73 +982,120 @@
|
|
720 |
}
|
721 |
|
722 |
.ur-selected-inputs {
|
723 |
-
width: 70%;
|
724 |
box-sizing: border-box;
|
725 |
-
|
726 |
-
padding: 20px;
|
727 |
-
height: calc(100vh - 44px);
|
728 |
-
overflow-y: auto;
|
729 |
|
730 |
.ur-single-row {
|
731 |
-
|
732 |
-
|
733 |
-
border: 1px solid
|
734 |
|
735 |
&:last-child {
|
736 |
margin-bottom: 0;
|
737 |
}
|
738 |
|
739 |
.ur-grids {
|
740 |
-
|
741 |
-
|
742 |
-
|
743 |
-
|
744 |
-
|
745 |
-
|
746 |
-
|
747 |
-
|
748 |
-
display:
|
749 |
-
|
750 |
-
|
751 |
-
|
752 |
-
|
753 |
-
|
754 |
-
|
755 |
-
|
|
|
|
|
|
|
|
|
756 |
|
757 |
-
|
758 |
-
width:
|
759 |
-
height:
|
760 |
-
background-color: $color_gray_seven;
|
761 |
-
font-family: dashicons;
|
762 |
font-size: 16px;
|
763 |
-
|
|
|
764 |
|
|
|
|
|
|
|
|
|
|
|
765 |
&:hover {
|
766 |
-
background
|
767 |
}
|
768 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
769 |
}
|
770 |
|
771 |
-
.ur-
|
772 |
-
|
773 |
-
|
774 |
-
|
775 |
-
|
776 |
-
|
777 |
-
|
778 |
-
|
779 |
-
|
780 |
-
|
781 |
-
|
782 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
783 |
|
784 |
-
|
785 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
786 |
}
|
787 |
|
788 |
-
|
789 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
790 |
}
|
791 |
}
|
792 |
}
|
@@ -795,26 +1104,42 @@
|
|
795 |
width: 100%;
|
796 |
display: flex;
|
797 |
text-align: center;
|
798 |
-
padding: 20px;
|
799 |
box-sizing: border-box;
|
800 |
justify-content: center;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
801 |
|
802 |
.ur-grid-list-item {
|
803 |
display: inline-block;
|
804 |
text-align: left;
|
805 |
border: 0 none;
|
806 |
padding: 15px;
|
807 |
-
background-color: $color_sortable_background;
|
808 |
flex: 1;
|
809 |
-
border:
|
|
|
|
|
810 |
|
811 |
.ur-selected-item {
|
812 |
-
margin-bottom:
|
813 |
position: relative;
|
814 |
-
|
815 |
-
padding: 20px;
|
816 |
cursor: move;
|
817 |
-
border: 1px solid
|
|
|
818 |
transition: border-color 0.35s;
|
819 |
|
820 |
.select2-container {
|
@@ -841,24 +1166,18 @@
|
|
841 |
|
842 |
&:hover,
|
843 |
&.ur-item-active {
|
|
|
844 |
border: 1px solid $primary_color;
|
845 |
}
|
846 |
|
847 |
-
&.ur-item-active {
|
848 |
-
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
849 |
-
background-color: #f8f8f8;
|
850 |
-
}
|
851 |
-
|
852 |
-
&.ur-item-active.ui-sortable-helper,
|
853 |
&.ui-sortable-helper {
|
854 |
-
box-shadow: 0 0
|
855 |
-
background-color: $color_gray_seven;
|
856 |
}
|
857 |
|
858 |
&.ui-sortable-placeholder {
|
859 |
visibility: visible !important;
|
860 |
-
border:
|
861 |
-
background-color:
|
862 |
}
|
863 |
|
864 |
.ur-action-buttons {
|
@@ -870,12 +1189,13 @@
|
|
870 |
padding: 0;
|
871 |
font-size: 10px;
|
872 |
top: 10px;
|
873 |
-
color: $
|
874 |
|
875 |
span {
|
876 |
cursor: pointer;
|
877 |
-
font-size:
|
878 |
height: auto;
|
|
|
879 |
&:hover {
|
880 |
color: $primary_color;
|
881 |
}
|
@@ -942,7 +1262,7 @@
|
|
942 |
p {
|
943 |
display: inline-block;
|
944 |
position: relative;
|
945 |
-
color: $
|
946 |
padding-left: 26px;
|
947 |
padding-top: 8px;
|
948 |
|
@@ -956,117 +1276,116 @@
|
|
956 |
}
|
957 |
}
|
958 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
959 |
}
|
960 |
-
}
|
961 |
|
962 |
-
|
963 |
-
|
|
|
|
|
|
|
|
|
|
|
964 |
}
|
|
|
965 |
|
966 |
-
|
967 |
-
.ur-
|
968 |
-
|
969 |
-
border-left: 2px dashed $primary_dark;
|
970 |
-
border-top: 2px dashed $primary_dark;
|
971 |
-
border-bottom: 2px dashed $primary_dark;
|
972 |
-
background-color: adjust-color($primary_dark, $saturation: -20%, $lightness: +54);
|
973 |
}
|
974 |
}
|
975 |
}
|
976 |
|
977 |
.ur-add-new-row {
|
978 |
-
color: $color_gray_five;
|
979 |
display: block;
|
980 |
-
margin:
|
981 |
-
|
982 |
-
|
983 |
-
cursor: pointer;
|
984 |
text-align: center;
|
985 |
-
|
986 |
-
background-color: transparent;
|
987 |
-
border: 0 none;
|
988 |
|
989 |
-
|
990 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
991 |
}
|
992 |
}
|
993 |
|
994 |
li.ur-registered-item {
|
995 |
-
|
996 |
-
padding: 10px 10px;
|
997 |
-
line-height: 20px;
|
998 |
-
background-color: $primary_color;
|
999 |
-
color: $white;
|
1000 |
-
text-align: center;
|
1001 |
-
margin-bottom: 7px;
|
1002 |
-
word-break: break-word;
|
1003 |
-
white-space: normal;
|
1004 |
-
width: 200px !important;
|
1005 |
-
|
1006 |
-
> span {
|
1007 |
-
font-size: 14px;
|
1008 |
-
line-height: 20px;
|
1009 |
-
width: auto;
|
1010 |
-
height: auto;
|
1011 |
-
margin-right: 3px;
|
1012 |
-
}
|
1013 |
|
1014 |
&.ui-sortable-placeholder {
|
|
|
1015 |
width: 100% !important;
|
1016 |
visibility: visible !important;
|
1017 |
-
border:
|
1018 |
-
background-color:
|
1019 |
}
|
1020 |
}
|
1021 |
}
|
1022 |
|
1023 |
.ur-general-setting,
|
1024 |
.ur-advance-setting {
|
1025 |
-
|
1026 |
}
|
1027 |
|
1028 |
.ur-advance-setting-block {
|
1029 |
margin-top: 25px;
|
1030 |
}
|
1031 |
|
1032 |
-
|
1033 |
-
|
1034 |
-
input[type="text"],
|
1035 |
-
input[type="password"],
|
1036 |
-
input[type="number"],
|
1037 |
-
input[type="date"],
|
1038 |
-
input[type="phone"],
|
1039 |
-
input[type="timepicker"],
|
1040 |
-
textarea,
|
1041 |
-
.ui-widget select,
|
1042 |
-
select {
|
1043 |
-
border: 1px solid #ddd;
|
1044 |
-
display: block;
|
1045 |
-
width: 100%;
|
1046 |
-
color: $color_gray_four;
|
1047 |
-
box-shadow: 0 0 0 transparent;
|
1048 |
-
font-size: 12px;
|
1049 |
-
height: 35px;
|
1050 |
-
padding: 0 10px;
|
1051 |
|
1052 |
-
|
1053 |
-
|
|
|
|
|
|
|
1054 |
}
|
1055 |
-
}
|
1056 |
-
|
1057 |
-
label {
|
1058 |
-
display: block;
|
1059 |
-
width: 100%;
|
1060 |
-
margin-bottom: 10px;
|
1061 |
-
color: $color_gray_two;
|
1062 |
-
font-size: 12px;
|
1063 |
-
font-weight: 500;
|
1064 |
-
}
|
1065 |
-
|
1066 |
-
textarea {
|
1067 |
-
padding: 10px;
|
1068 |
-
height: 100px;
|
1069 |
|
|
|
|
|
|
|
|
|
|
|
|
|
1070 |
}
|
1071 |
|
1072 |
.ur-registered-item.dragging {
|
@@ -1098,11 +1417,12 @@
|
|
1098 |
color: $color_gray_two;
|
1099 |
cursor: pointer;
|
1100 |
display: flex;
|
1101 |
-
flex: 1 0
|
1102 |
align-items: center;
|
1103 |
justify-content: center;
|
1104 |
-
height:
|
1105 |
-
max-width:
|
|
|
1106 |
position: relative;
|
1107 |
|
1108 |
&:hover {
|
@@ -1117,7 +1437,7 @@
|
|
1117 |
}
|
1118 |
|
1119 |
.add {
|
1120 |
-
margin-right:
|
1121 |
}
|
1122 |
|
1123 |
.ur-options-list {
|
@@ -1127,33 +1447,33 @@
|
|
1127 |
align-items: center;
|
1128 |
|
1129 |
.editor-block-mover__control-drag-handle {
|
1130 |
-
margin-right:
|
1131 |
cursor: grab;
|
1132 |
-
}
|
1133 |
|
1134 |
-
|
1135 |
-
|
|
|
1136 |
}
|
1137 |
|
1138 |
-
|
1139 |
-
margin-right:
|
1140 |
}
|
1141 |
}
|
1142 |
|
1143 |
.ui-sortable-handle {
|
1144 |
padding: 5px;
|
|
|
1145 |
border: 1px solid transparent;
|
1146 |
|
1147 |
&:active{
|
1148 |
-
background: $color_gray_eight;
|
1149 |
-
border: 1px solid $primary_color;
|
1150 |
padding: 5px;
|
|
|
|
|
1151 |
box-shadow: 0 0 20px rgba(0,0,0,.2);
|
1152 |
}
|
1153 |
|
1154 |
&.ui-sortable-placeholder {
|
1155 |
-
|
1156 |
-
background-color: $primary_light;
|
1157 |
visibility: visible !important;
|
1158 |
}
|
1159 |
}
|
@@ -1162,16 +1482,20 @@
|
|
1162 |
.urcl-rules {
|
1163 |
display: flex;
|
1164 |
flex-wrap: wrap;
|
1165 |
-
margin-bottom:
|
1166 |
|
1167 |
> div {
|
1168 |
-
margin-right:
|
|
|
|
|
|
|
|
|
1169 |
}
|
1170 |
|
1171 |
.urcl-field,
|
1172 |
.urcl-value {
|
1173 |
-
max-width:
|
1174 |
-
flex: 1 0
|
1175 |
}
|
1176 |
}
|
1177 |
}
|
@@ -1180,122 +1504,10 @@
|
|
1180 |
min-height: 400px;
|
1181 |
}
|
1182 |
|
1183 |
-
@media screen and (max-width: 1400px) {
|
1184 |
-
.ur-registered-from {
|
1185 |
-
.ur-registered-inputs {
|
1186 |
-
.ur-tabs .ur-tab-content {
|
1187 |
-
.ur-registered-list {
|
1188 |
-
.ur-registered-item {
|
1189 |
-
font-size: 12px;
|
1190 |
-
}
|
1191 |
-
}
|
1192 |
-
}
|
1193 |
-
}
|
1194 |
-
|
1195 |
-
.urcl-rules {
|
1196 |
-
.urcl-field {
|
1197 |
-
max-width: 61%;
|
1198 |
-
flex: 1 0 60%;
|
1199 |
-
margin-bottom: 5px;
|
1200 |
-
}
|
1201 |
-
|
1202 |
-
.urcl-value {
|
1203 |
-
order: 4;
|
1204 |
-
max-width: 87%;
|
1205 |
-
flex: 1 0 86%;
|
1206 |
-
}
|
1207 |
-
|
1208 |
-
.add {
|
1209 |
-
order: 3;
|
1210 |
-
margin-right: 0;
|
1211 |
-
}
|
1212 |
-
|
1213 |
-
.remove {
|
1214 |
-
order: 5;
|
1215 |
-
}
|
1216 |
-
}
|
1217 |
-
}
|
1218 |
-
|
1219 |
-
|
1220 |
-
}
|
1221 |
-
|
1222 |
-
@media screen and (max-width: 960px) {
|
1223 |
-
.ur-registered-from {
|
1224 |
-
.ur-registered-inputs {
|
1225 |
-
.ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item {
|
1226 |
-
float: none;
|
1227 |
-
width: 100%;
|
1228 |
-
}
|
1229 |
-
.ur-single-row .ur-grid-lists,
|
1230 |
-
.ur-single-row .ur-grid-lists .ur-grid-list-item,
|
1231 |
-
.ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item {
|
1232 |
-
padding: 10px;
|
1233 |
-
}
|
1234 |
-
}
|
1235 |
-
}
|
1236 |
-
}
|
1237 |
-
|
1238 |
-
@media screen and (max-width: 782px) {
|
1239 |
-
.ur-registered-from {
|
1240 |
-
flex-direction: column;
|
1241 |
-
|
1242 |
-
.ur-registered-inputs {
|
1243 |
-
width: 100%;
|
1244 |
-
margin-bottom: 10px;
|
1245 |
-
|
1246 |
-
.ur-tabs {
|
1247 |
-
.ur-tab-content {
|
1248 |
-
.ur-registered-list {
|
1249 |
-
.ur-registered-item {
|
1250 |
-
float: left;
|
1251 |
-
width: 48%;
|
1252 |
-
}
|
1253 |
-
}
|
1254 |
-
}
|
1255 |
-
}
|
1256 |
-
}
|
1257 |
-
|
1258 |
-
.ur-selected-inputs {
|
1259 |
-
width: 100%;
|
1260 |
-
}
|
1261 |
-
}
|
1262 |
-
}
|
1263 |
-
|
1264 |
-
@media screen and (max-width: 600px) {
|
1265 |
-
.user-registration_page_add-new-registration .major-publishing-actions {
|
1266 |
-
clear: both;
|
1267 |
-
padding: 10px 0 19px;
|
1268 |
-
line-height: 28px;
|
1269 |
-
|
1270 |
-
.ur-form-name {
|
1271 |
-
width: 100%;
|
1272 |
-
}
|
1273 |
-
|
1274 |
-
.publishing-action {
|
1275 |
-
text-align: left;
|
1276 |
-
float: none;
|
1277 |
-
margin-top: 15px;
|
1278 |
-
}
|
1279 |
-
}
|
1280 |
-
|
1281 |
-
.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists {
|
1282 |
-
flex-direction: column;
|
1283 |
-
display: block;
|
1284 |
-
|
1285 |
-
.ur-grid-list-item {
|
1286 |
-
width: 100% !important;
|
1287 |
-
|
1288 |
-
&:nth-child(1n+2) {
|
1289 |
-
border-left: 0 none;
|
1290 |
-
border-top: 2px solid $color_gray_eight;
|
1291 |
-
}
|
1292 |
-
}
|
1293 |
-
}
|
1294 |
-
}
|
1295 |
-
|
1296 |
/**
|
1297 |
* Tooltips
|
1298 |
*/
|
|
|
1299 |
.tips {
|
1300 |
cursor: help;
|
1301 |
text-decoration: none;
|
@@ -1329,7 +1541,7 @@ img.tips {
|
|
1329 |
#tiptip_arrow_inner {
|
1330 |
margin-top: -5px;
|
1331 |
margin-left: -6px;
|
1332 |
-
border-bottom-color: $
|
1333 |
}
|
1334 |
}
|
1335 |
|
@@ -1357,9 +1569,9 @@ img.tips {
|
|
1357 |
#tiptip_content,
|
1358 |
.ur_error_tip {
|
1359 |
color: $white;
|
1360 |
-
font-size: 0.
|
1361 |
max-width: 150px;
|
1362 |
-
background: $
|
1363 |
text-align: center;
|
1364 |
border-radius: 3px;
|
1365 |
padding: 0.618em 1em;
|
@@ -1417,7 +1629,7 @@ img.tips {
|
|
1417 |
.user-registration-help-tip {
|
1418 |
color: $color_gray_two;
|
1419 |
display: inline-block;
|
1420 |
-
font-size:
|
1421 |
font-style: normal;
|
1422 |
height: 16px;
|
1423 |
line-height: 16px;
|
@@ -1517,17 +1729,18 @@ img.tips {
|
|
1517 |
}
|
1518 |
|
1519 |
#ur-tab-registered-fields li.ur-registered-item.ui-draggable-disabled {
|
1520 |
-
|
|
|
|
|
|
|
|
|
|
|
1521 |
}
|
1522 |
|
1523 |
.ur-no-pointer {
|
1524 |
pointer-events: none;
|
1525 |
}
|
1526 |
|
1527 |
-
#ur-tab-field-settings {
|
1528 |
-
background: #F2F2F2;
|
1529 |
-
}
|
1530 |
-
|
1531 |
.user-registration table.form-table dashicons .dashicons, .dashicons{
|
1532 |
line-height: inherit;
|
1533 |
}
|
@@ -1537,10 +1750,12 @@ img.tips {
|
|
1537 |
}
|
1538 |
|
1539 |
.form-settings-tab {
|
1540 |
-
padding: 10px 15px;
|
1541 |
cursor: pointer;
|
1542 |
-
|
|
|
|
|
1543 |
margin-bottom: 10px;
|
|
|
1544 |
}
|
1545 |
|
1546 |
.form-settings-tab.active {
|
@@ -1582,71 +1797,422 @@ img.tips {
|
|
1582 |
}
|
1583 |
}
|
1584 |
|
1585 |
-
|
1586 |
-
|
1587 |
-
|
1588 |
-
|
1589 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1590 |
}
|
1591 |
}
|
1592 |
|
1593 |
-
|
1594 |
-
.ur-
|
1595 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1596 |
}
|
1597 |
}
|
1598 |
}
|
1599 |
}
|
1600 |
|
1601 |
-
|
1602 |
-
|
1603 |
|
1604 |
-
|
1605 |
-
|
|
|
1606 |
}
|
1607 |
|
1608 |
-
|
1609 |
-
|
1610 |
-
|
1611 |
-
padding-left: 0;
|
1612 |
|
1613 |
-
|
1614 |
-
|
1615 |
-
|
|
|
1616 |
|
1617 |
-
|
1618 |
-
|
1619 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1620 |
}
|
|
|
|
|
1621 |
|
1622 |
-
|
1623 |
-
|
|
|
|
|
|
|
|
|
1624 |
|
1625 |
-
|
1626 |
-
|
|
|
|
|
|
|
1627 |
|
1628 |
-
|
1629 |
-
|
1630 |
-
|
1631 |
-
|
1632 |
-
|
1633 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1634 |
}
|
1635 |
}
|
1636 |
}
|
1637 |
}
|
1638 |
}
|
1639 |
|
1640 |
-
|
1641 |
-
|
1642 |
}
|
1643 |
}
|
|
|
1644 |
|
1645 |
-
|
1646 |
-
|
|
|
|
|
1647 |
}
|
|
|
1648 |
|
1649 |
-
|
1650 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1651 |
}
|
1652 |
}
|
9 |
@import "button";
|
10 |
@import "mixins";
|
11 |
@import "variables";
|
12 |
+
@import "fonts";
|
13 |
|
14 |
/**
|
15 |
* Styling begins
|
18 |
@include loader();
|
19 |
}
|
20 |
|
21 |
+
/**
|
22 |
+
* Keyframe animation
|
23 |
+
*/
|
24 |
+
@keyframes spin {
|
25 |
+
100% {
|
26 |
+
transform: rotate( 360deg );
|
27 |
+
}
|
28 |
+
}
|
29 |
+
|
30 |
.ur-export-users-page {
|
31 |
+
margin-top: 6px;
|
32 |
|
33 |
+
.nav-tab-content {
|
34 |
+
.nav-tab-inside {
|
35 |
+
.postbox {
|
36 |
+
width: 50%;
|
37 |
+
flex: 1;
|
38 |
+
}
|
39 |
+
}
|
40 |
+
|
41 |
+
.hndle,
|
42 |
+
.stuffbox .hndle {
|
43 |
margin: 10px;
|
44 |
+
padding-bottom: 10px;
|
45 |
}
|
46 |
}
|
47 |
}
|
48 |
|
49 |
.ur_addons_wrap {
|
|
|
50 |
.products {
|
51 |
overflow: hidden;
|
52 |
display: flex;
|
164 |
}
|
165 |
}
|
166 |
|
167 |
+
#wpfooter {
|
168 |
+
display: none;
|
169 |
+
}
|
170 |
+
|
171 |
+
.ur-form-container {
|
172 |
+
margin: 0;
|
173 |
+
|
174 |
+
.ur-loading-container{
|
175 |
+
position: fixed;
|
176 |
+
left: 160px;
|
177 |
+
right: 0;
|
178 |
+
top: 0;
|
179 |
+
bottom: 0;
|
180 |
+
background: $white;
|
181 |
+
display: flex;
|
182 |
+
z-index: 9;
|
183 |
+
|
184 |
+
.ur-circle-loading{
|
185 |
+
margin: auto;
|
186 |
+
left: 30px;
|
187 |
+
}
|
188 |
+
}
|
189 |
+
|
190 |
+
#menu-management {
|
191 |
+
margin-top: 0;
|
192 |
+
|
193 |
+
.menu-edit {
|
194 |
+
position: fixed;
|
195 |
+
left: 160px;
|
196 |
+
right: 0;
|
197 |
+
border: none;
|
198 |
+
box-shadow: none;
|
199 |
+
margin-bottom: 0;
|
200 |
+
}
|
201 |
+
}
|
202 |
+
|
203 |
+
#ur-full-screen-mode {
|
204 |
+
&.closed {
|
205 |
+
.ur-fs-close-label {
|
206 |
+
display:none;
|
207 |
+
}
|
208 |
+
}
|
209 |
+
|
210 |
+
&.opened {
|
211 |
+
.ur-fs-open-label {
|
212 |
+
display:none;
|
213 |
+
}
|
214 |
+
}
|
215 |
+
}
|
216 |
+
}
|
217 |
+
|
218 |
#menu-management-liquid {
|
219 |
+
margin-top: 0;
|
220 |
+
margin-left: -20px;
|
221 |
+
min-width: calc(100% + 20px);
|
222 |
}
|
223 |
|
224 |
.postbox p.submit {
|
225 |
margin-bottom: 0;
|
226 |
}
|
227 |
|
228 |
+
#nav-menu-header,
|
229 |
+
#nav-menu-footer {
|
230 |
+
padding: 12px;
|
231 |
+
}
|
232 |
+
|
233 |
#nav-menu-header {
|
234 |
+
display: flex;
|
235 |
+
align-items: center;
|
236 |
+
position: relative;
|
237 |
+
border-color: $border_color;
|
238 |
background-color: $white;
|
239 |
+
z-index: 9;
|
240 |
+
|
241 |
+
.ur-brand-logo {
|
242 |
+
border-right: 1px solid $border_color;
|
243 |
+
|
244 |
+
img {
|
245 |
+
width: 32px;
|
246 |
+
height: 32px;
|
247 |
+
padding: 0 8px;
|
248 |
+
margin-right: 8px;
|
249 |
+
display: flex;
|
250 |
+
}
|
251 |
+
}
|
252 |
+
|
253 |
+
&::before,
|
254 |
+
&::after {
|
255 |
+
content: '';
|
256 |
+
display: flex;
|
257 |
+
position: absolute;
|
258 |
+
left: 0;
|
259 |
+
right: 0;
|
260 |
+
bottom: 0;
|
261 |
+
background: $white;
|
262 |
+
}
|
263 |
+
|
264 |
+
&::before {
|
265 |
+
top: 0;
|
266 |
+
z-index: -1;
|
267 |
+
}
|
268 |
+
|
269 |
+
&::after {
|
270 |
+
height: 10px;
|
271 |
+
box-shadow: 0px 4px 8px transparentize($gray_base, 0.92);
|
272 |
+
z-index: -2;
|
273 |
+
}
|
274 |
}
|
275 |
|
276 |
.major-publishing-actions {
|
277 |
clear: both;
|
|
|
278 |
line-height: 28px;
|
279 |
+
margin-left: auto;
|
280 |
|
281 |
.publishing-action {
|
282 |
text-align: right;
|
283 |
float: right;
|
284 |
+
|
285 |
+
input {
|
286 |
+
&.code {
|
287 |
+
width: 265px;
|
288 |
+
height: 30px;
|
289 |
+
padding: 0 6px;
|
290 |
+
}
|
291 |
+
}
|
292 |
}
|
293 |
|
294 |
.form-invalid {
|
624 |
}
|
625 |
}
|
626 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
627 |
.ur-admin-template-options {
|
628 |
display: none;
|
629 |
}
|
630 |
|
631 |
.ur-registered-from {
|
632 |
display: flex;
|
633 |
+
background-color: $white;
|
634 |
font-family: Roboto, sans-serif;
|
|
|
635 |
|
636 |
* {
|
637 |
box-sizing: border-box;
|
638 |
}
|
639 |
+
|
640 |
*:focus {
|
641 |
outline: 0;
|
642 |
}
|
645 |
text-decoration: none;
|
646 |
}
|
647 |
|
648 |
+
h3 {
|
649 |
+
color: $gray_base;
|
650 |
+
font-weight: 500;
|
651 |
+
}
|
652 |
+
|
653 |
.ur-field {
|
654 |
line-height: 2;
|
655 |
+
|
656 |
+
label {
|
657 |
+
font-weight: 400;
|
658 |
+
|
659 |
+
&:last-child {
|
660 |
+
margin-bottom: 0;
|
661 |
+
}
|
662 |
+
}
|
663 |
+
|
664 |
+
input {
|
665 |
+
&[type='radio'],
|
666 |
+
&[type='checkbox'] {
|
667 |
+
opacity: 1;
|
668 |
+
box-shadow: none;
|
669 |
+
border-color: $border_color;
|
670 |
+
}
|
671 |
+
}
|
672 |
+
}
|
673 |
+
|
674 |
+
.wp-picker-container {
|
675 |
+
.wp-picker-input-wrap {
|
676 |
+
label {
|
677 |
+
display: inline-block;
|
678 |
+
width: auto;
|
679 |
+
|
680 |
+
input.wp-color-picker {
|
681 |
+
height: auto;
|
682 |
+
padding: 3px 5px;
|
683 |
+
}
|
684 |
+
}
|
685 |
+
}
|
686 |
+
}
|
687 |
+
|
688 |
+
.ur-registered-item {
|
689 |
+
cursor: move;
|
690 |
+
padding: 4px;
|
691 |
+
color: $color_gray_two;
|
692 |
+
height: 110px;
|
693 |
+
font-size: 12px;
|
694 |
+
border-radius: 4px;
|
695 |
+
margin: 0 8px 16px;
|
696 |
+
display: flex;
|
697 |
+
align-items: center;
|
698 |
+
flex-direction: column;
|
699 |
+
justify-content: center;
|
700 |
+
width: calc(33.3333% - 16px);
|
701 |
+
background-color: $color_gray_five;
|
702 |
+
|
703 |
+
.ur-icon {
|
704 |
+
font-size: 32px;
|
705 |
+
margin-bottom: 4px;
|
706 |
+
}
|
707 |
+
|
708 |
+
&:hover {
|
709 |
+
background-color: $primary_color;
|
710 |
+
color: $white;
|
711 |
+
}
|
712 |
+
|
713 |
+
&.ui-draggable-dragging {
|
714 |
+
width: 110px !important; // Inherit js styles
|
715 |
+
z-index: 9 !important;
|
716 |
+
}
|
717 |
}
|
718 |
|
719 |
.ur-registered-inputs {
|
720 |
+
width: 412px;
|
721 |
background-color: $color_gray_ten;
|
722 |
|
723 |
.ur-tabs {
|
727 |
font-size: 14px;
|
728 |
|
729 |
.ur-tab-lists {
|
730 |
+
background-color: $color_gray_five;
|
731 |
background-image: none;
|
732 |
padding: 0;
|
733 |
border-radius: 0;
|
734 |
margin: 0;
|
735 |
display: flex;
|
736 |
+
justify-content: space-between;
|
737 |
+
border-bottom: none;
|
738 |
border-top: 0 none;
|
739 |
border-right: 0 none;
|
740 |
border-left: 0 none;
|
746 |
margin: 0;
|
747 |
margin-bottom: -1px;
|
748 |
padding: 0px;
|
|
|
|
|
749 |
border: 0;
|
750 |
+
flex: 1;
|
751 |
+
text-align: center;
|
752 |
|
753 |
&.active {
|
754 |
margin-bottom: 0;
|
765 |
margin: 0;
|
766 |
border: none;
|
767 |
display: block;
|
768 |
+
color: $gray_base;
|
769 |
background-color: transparent;
|
770 |
+
padding: 12px 15px;
|
771 |
font-weight: 500;
|
772 |
cursor: pointer;
|
773 |
|
776 |
}
|
777 |
|
778 |
&.active {
|
779 |
+
background-color: $white;
|
780 |
+
color: $primary_color;
|
781 |
line-height: 24px;
|
782 |
}
|
783 |
}
|
784 |
}
|
785 |
}
|
786 |
+
|
787 |
+
.ur-tab-contents {
|
788 |
+
height: calc(100vh - 130px);
|
789 |
+
position: relative;
|
790 |
overflow-y: auto;
|
791 |
+
}
|
792 |
+
|
793 |
+
.ur-tab-content {
|
794 |
+
padding: 16px;
|
795 |
+
|
796 |
&#ur-tab-registered-fields,
|
797 |
&#ur-tab-field-options {
|
798 |
+
background-color: $white;
|
799 |
}
|
800 |
+
|
801 |
h2 {
|
802 |
+
margin: 16px 0;
|
803 |
+
font-size: 1em;
|
804 |
+
font-weight: 500;
|
805 |
font-family: Roboto, sans-serif;
|
806 |
+
color: $gray_base;
|
807 |
+
|
808 |
+
~ hr {
|
809 |
+
border-top: 1px solid $border_color;
|
810 |
+
}
|
811 |
}
|
812 |
+
|
813 |
.ur-registered-list {
|
814 |
+
display: flex;
|
815 |
+
flex-wrap: wrap;
|
816 |
+
width: calc(100% + 16px);
|
817 |
+
margin-left: -8px;
|
818 |
+
|
819 |
&:last-child {
|
820 |
margin-bottom: 0;
|
821 |
}
|
822 |
+
}
|
823 |
+
}
|
824 |
+
}
|
825 |
+
}
|
826 |
+
|
827 |
+
input[type='text'],
|
828 |
+
input[type='date'],
|
829 |
+
input[type='email'],
|
830 |
+
input[type='file'],
|
831 |
+
input[type='month'],
|
832 |
+
input[type='number'],
|
833 |
+
input[type='phone'],
|
834 |
+
input[type='password'],
|
835 |
+
input[type='tel'],
|
836 |
+
input[type='time'],
|
837 |
+
input[type='url'],
|
838 |
+
input[type='week'],
|
839 |
+
input[type='timepicker'],
|
840 |
+
textarea,
|
841 |
+
.ui-widget select,
|
842 |
+
select {
|
843 |
+
width: 100%;
|
844 |
+
height: 32px;
|
845 |
+
display: block;
|
846 |
+
color: $color_gray_one;
|
847 |
+
font-size: 13px;
|
848 |
+
padding: 0 8px;
|
849 |
+
border-radius: 3px;
|
850 |
+
border: 1px solid $border_color;
|
851 |
+
box-shadow: 0 0 0 transparent;
|
852 |
+
|
853 |
+
&:focus {
|
854 |
+
border-color: $primary_color;
|
855 |
+
}
|
856 |
+
|
857 |
+
&::placeholder {
|
858 |
+
color: $color_gray_three;
|
859 |
+
}
|
860 |
+
|
861 |
+
&:disabled {
|
862 |
+
color: $color_gray_three;
|
863 |
+
background: $color_gray_five;
|
864 |
+
}
|
865 |
+
}
|
866 |
+
|
867 |
+
select {
|
868 |
+
padding-right: 0;
|
869 |
+
}
|
870 |
+
|
871 |
+
label {
|
872 |
+
display: block;
|
873 |
+
width: 100%;
|
874 |
+
margin-bottom: 8px;
|
875 |
+
color: $color_gray_one;
|
876 |
+
font-size: 13px;
|
877 |
+
font-weight: 500;
|
878 |
+
line-height: 1.25;
|
879 |
+
}
|
880 |
+
|
881 |
+
textarea {
|
882 |
+
padding: 10px;
|
883 |
+
height: 100px;
|
884 |
+
}
|
885 |
+
|
886 |
+
.ur-builder-wrapper {
|
887 |
+
position: relative;
|
888 |
+
flex: 1;
|
889 |
+
height: calc(100vh - 89px);
|
890 |
+
background: lighten($color_gray_five, 3%);
|
891 |
+
border-left: 1px solid $border_color;
|
892 |
+
overflow-y: auto;
|
893 |
+
|
894 |
+
input[type='text'],
|
895 |
+
input[type='date'],
|
896 |
+
input[type='email'],
|
897 |
+
input[type='file'],
|
898 |
+
input[type='month'],
|
899 |
+
input[type='number'],
|
900 |
+
input[type='phone'],
|
901 |
+
input[type='password'],
|
902 |
+
input[type='tel'],
|
903 |
+
input[type='time'],
|
904 |
+
input[type='url'],
|
905 |
+
input[type='week'],
|
906 |
+
input[type='timepicker'],
|
907 |
+
textarea,
|
908 |
+
select {
|
909 |
+
&:disabled {
|
910 |
+
background: $white;
|
911 |
+
}
|
912 |
+
}
|
913 |
+
|
914 |
+
.ur-builder-header {
|
915 |
+
display: flex;
|
916 |
+
align-items: center;
|
917 |
+
justify-content: space-between;
|
918 |
+
}
|
919 |
+
|
920 |
+
.ur-form-name-wrapper {
|
921 |
+
display: inline-flex;
|
922 |
+
flex-direction: row-reverse;
|
923 |
+
margin: 16px 0;
|
924 |
+
position: relative;
|
925 |
+
|
926 |
+
.ur-edit-form-name {
|
927 |
+
width: 32px;
|
928 |
+
height: 32px;
|
929 |
+
cursor: pointer;
|
930 |
+
display: flex;
|
931 |
+
align-items: center;
|
932 |
+
justify-content: center;
|
933 |
+
border-radius: 3px;
|
934 |
+
margin-bottom: 0;
|
935 |
+
color: $color_gray_one;
|
936 |
+
background: $color_gray_four;
|
937 |
+
border: 1px solid transparent;
|
938 |
+
|
939 |
+
&::after {
|
940 |
+
content: '';
|
941 |
+
border-radius: 3px;
|
942 |
+
position: absolute;
|
943 |
+
left: 32px;
|
944 |
+
right: calc(100% - 32px);
|
945 |
+
height: 30px;
|
946 |
+
border-radius: 0 3px 3px 0;
|
947 |
+
transition: all 0.3s ease 0s;
|
948 |
+
}
|
949 |
+
}
|
950 |
+
|
951 |
+
input {
|
952 |
+
color: $gray_base;
|
953 |
+
background: none;
|
954 |
+
font-size: 16px;
|
955 |
+
width: auto;
|
956 |
+
height: auto;
|
957 |
+
padding: 4px 8px;
|
958 |
+
border-color: transparent;
|
959 |
+
pointer-events: none;
|
960 |
+
z-index: 1;
|
961 |
+
border: 1px solid transparent;
|
962 |
+
|
963 |
+
&.ur-editing {
|
964 |
+
border-color: transparent;
|
965 |
+
pointer-events: all;
|
966 |
+
|
967 |
+
+ .ur-edit-form-name {
|
968 |
color: $white;
|
969 |
+
background: $primary_color;
|
970 |
+
border-radius: 3px 0 0 3px;
|
971 |
+
border: 1px solid $primary_color;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
972 |
|
973 |
+
&::after {
|
974 |
+
top: 0;
|
975 |
+
right: 0;
|
976 |
+
border: 1px solid $primary_color;
|
|
|
|
|
|
|
|
|
|
|
|
|
977 |
}
|
978 |
}
|
979 |
}
|
982 |
}
|
983 |
|
984 |
.ur-selected-inputs {
|
|
|
985 |
box-sizing: border-box;
|
986 |
+
padding: 0 20px;
|
|
|
|
|
|
|
987 |
|
988 |
.ur-single-row {
|
989 |
+
border-radius: 3px;
|
990 |
+
position: relative;
|
991 |
+
border: 1px solid transparent;
|
992 |
|
993 |
&:last-child {
|
994 |
margin-bottom: 0;
|
995 |
}
|
996 |
|
997 |
.ur-grids {
|
998 |
+
display: flex;
|
999 |
+
position: absolute;
|
1000 |
+
right: 0;
|
1001 |
+
z-index: 1;
|
1002 |
+
opacity: 0;
|
1003 |
+
transition: all .2s ease-in;
|
1004 |
+
|
1005 |
+
button {
|
1006 |
+
display: flex;
|
1007 |
+
border-radius: 0;
|
1008 |
+
border: 0;
|
1009 |
+
background-color: $color_gray_two;
|
1010 |
+
color: $white;
|
1011 |
+
font-size: 16px;
|
1012 |
+
height: auto;
|
1013 |
+
width: auto;
|
1014 |
+
cursor: pointer;
|
1015 |
+
padding: 4px 6px;
|
1016 |
+
line-height: 1;
|
1017 |
+
transition: all 0.1s ease-in-out;
|
1018 |
|
1019 |
+
svg {
|
1020 |
+
width: 16px;
|
1021 |
+
height: 16px;
|
|
|
|
|
1022 |
font-size: 16px;
|
1023 |
+
fill: $white;
|
1024 |
+
}
|
1025 |
|
1026 |
+
&:before {
|
1027 |
+
font-family: 'dashicons';
|
1028 |
+
}
|
1029 |
+
|
1030 |
+
&.ur-remove-row {
|
1031 |
&:hover {
|
1032 |
+
background: $red;
|
1033 |
}
|
1034 |
}
|
1035 |
+
|
1036 |
+
&:hover {
|
1037 |
+
background: $primary_color;
|
1038 |
+
}
|
1039 |
+
|
1040 |
+
&:first-child {
|
1041 |
+
border-radius: 3px 0 0 3px;
|
1042 |
+
border-right: 1px solid transparentize($white, 0.8)
|
1043 |
+
}
|
1044 |
+
|
1045 |
+
&:nth-child(2) {
|
1046 |
+
border-radius: 0 3px 3px 0;
|
1047 |
+
}
|
1048 |
}
|
1049 |
|
1050 |
+
.ur-toggle-grid-content {
|
1051 |
+
background: $white;
|
1052 |
+
padding: 1rem;
|
1053 |
+
position: absolute;
|
1054 |
+
top: 40px;
|
1055 |
+
right: 0;
|
1056 |
+
display: flex;
|
1057 |
+
flex-wrap: wrap;
|
1058 |
+
justify-content: center;
|
1059 |
+
white-space: nowrap;
|
1060 |
+
border: 1px solid $border_color;
|
1061 |
+
border-radius: 4px;
|
1062 |
+
box-shadow: 1px 4px 14px 1px transparentize($color_gray-base, 0.9);
|
1063 |
+
|
1064 |
+
small {
|
1065 |
+
font-size: 12px;
|
1066 |
+
margin-bottom: 0.5rem;
|
1067 |
+
color: $color_gray-two;
|
1068 |
+
}
|
1069 |
|
1070 |
+
.ur-grid-selector {
|
1071 |
+
cursor: pointer;
|
1072 |
+
display: flex;
|
1073 |
+
margin-right: 0.5rem;
|
1074 |
+
|
1075 |
+
svg {
|
1076 |
+
width: 32px;
|
1077 |
+
height: 32px;
|
1078 |
+
fill: $color_gray_two;
|
1079 |
+
}
|
1080 |
+
|
1081 |
+
&:last-child {
|
1082 |
+
margin-right: 0;
|
1083 |
+
}
|
1084 |
}
|
1085 |
|
1086 |
+
&::before {
|
1087 |
+
content: '';
|
1088 |
+
width: 8px;
|
1089 |
+
height: 8px;
|
1090 |
+
border: solid $border-color;
|
1091 |
+
border-width: 1px;
|
1092 |
+
border-left: transparent;
|
1093 |
+
border-bottom: transparent;
|
1094 |
+
position: absolute;
|
1095 |
+
top: -5px;
|
1096 |
+
right: 36px;
|
1097 |
+
background: $white;
|
1098 |
+
transform: rotate(-45deg);
|
1099 |
}
|
1100 |
}
|
1101 |
}
|
1104 |
width: 100%;
|
1105 |
display: flex;
|
1106 |
text-align: center;
|
|
|
1107 |
box-sizing: border-box;
|
1108 |
justify-content: center;
|
1109 |
+
border: 1px solid transparent;
|
1110 |
+
border-radius: 4px;
|
1111 |
+
transition: all 0.2s ease-in;
|
1112 |
+
|
1113 |
+
&:hover {
|
1114 |
+
background: $white;
|
1115 |
+
border: 1px solid $color_gray_three;
|
1116 |
+
|
1117 |
+
.ur-grid-list-item {
|
1118 |
+
border-left: 1px solid $color_gray_three;
|
1119 |
+
|
1120 |
+
&:first-child {
|
1121 |
+
border-color: transparent;
|
1122 |
+
}
|
1123 |
+
}
|
1124 |
+
}
|
1125 |
|
1126 |
.ur-grid-list-item {
|
1127 |
display: inline-block;
|
1128 |
text-align: left;
|
1129 |
border: 0 none;
|
1130 |
padding: 15px;
|
|
|
1131 |
flex: 1;
|
1132 |
+
border: 1px solid transparent;
|
1133 |
+
border-radius: 4px;
|
1134 |
+
transition: all 0.2s ease-in;
|
1135 |
|
1136 |
.ur-selected-item {
|
1137 |
+
margin-bottom: 5px;
|
1138 |
position: relative;
|
1139 |
+
padding: 15px;
|
|
|
1140 |
cursor: move;
|
1141 |
+
border: 1px solid transparent;
|
1142 |
+
border-radius: 4px;
|
1143 |
transition: border-color 0.35s;
|
1144 |
|
1145 |
.select2-container {
|
1166 |
|
1167 |
&:hover,
|
1168 |
&.ur-item-active {
|
1169 |
+
background: $white;
|
1170 |
border: 1px solid $primary_color;
|
1171 |
}
|
1172 |
|
|
|
|
|
|
|
|
|
|
|
|
|
1173 |
&.ui-sortable-helper {
|
1174 |
+
box-shadow: 0 0 10px 5px transparentize($gray_base, 0.9);
|
|
|
1175 |
}
|
1176 |
|
1177 |
&.ui-sortable-placeholder {
|
1178 |
visibility: visible !important;
|
1179 |
+
border: 1px dashed $color_gray_three;
|
1180 |
+
background-color: $color_gray_five;
|
1181 |
}
|
1182 |
|
1183 |
.ur-action-buttons {
|
1189 |
padding: 0;
|
1190 |
font-size: 10px;
|
1191 |
top: 10px;
|
1192 |
+
color: $color_gray_three;
|
1193 |
|
1194 |
span {
|
1195 |
cursor: pointer;
|
1196 |
+
font-size: 16px;
|
1197 |
height: auto;
|
1198 |
+
|
1199 |
&:hover {
|
1200 |
color: $primary_color;
|
1201 |
}
|
1262 |
p {
|
1263 |
display: inline-block;
|
1264 |
position: relative;
|
1265 |
+
color: $color_gray_three;
|
1266 |
padding-left: 26px;
|
1267 |
padding-top: 8px;
|
1268 |
|
1276 |
}
|
1277 |
}
|
1278 |
}
|
1279 |
+
|
1280 |
+
&:empty {
|
1281 |
+
padding: 15px;
|
1282 |
+
text-align: center;
|
1283 |
+
border-radius: 4px;
|
1284 |
+
border: 1px dashed $color_gray_three;
|
1285 |
+
background-color: $color_gray_five;
|
1286 |
+
|
1287 |
+
&::before {
|
1288 |
+
content: '\f132';
|
1289 |
+
font-size: 32px;
|
1290 |
+
color: $color_gray_three;
|
1291 |
+
width: 32px;
|
1292 |
+
height: 32px;
|
1293 |
+
font-family: dashicons;
|
1294 |
+
display: table-cell;
|
1295 |
+
vertical-align: middle;
|
1296 |
+
}
|
1297 |
+
}
|
1298 |
+
}
|
1299 |
+
|
1300 |
+
&.ur-sortable-active {
|
1301 |
+
.ur-registered-item {
|
1302 |
+
margin-bottom: 0;
|
1303 |
+
}
|
1304 |
+
.user-registration-dragged-me {
|
1305 |
+
display: none;
|
1306 |
+
}
|
1307 |
+
}
|
1308 |
+
|
1309 |
+
&:first-child {
|
1310 |
+
border-radius: 4px 0 0 4px;
|
1311 |
}
|
|
|
1312 |
|
1313 |
+
&:nth-child(2) {
|
1314 |
+
border-radius: 0;
|
1315 |
+
}
|
1316 |
+
|
1317 |
+
&:nth-child(3){
|
1318 |
+
border-radius: 0 4px 4px 0;
|
1319 |
+
}
|
1320 |
}
|
1321 |
+
}
|
1322 |
|
1323 |
+
&:hover {
|
1324 |
+
.ur-grids {
|
1325 |
+
opacity: 1;
|
|
|
|
|
|
|
|
|
1326 |
}
|
1327 |
}
|
1328 |
}
|
1329 |
|
1330 |
.ur-add-new-row {
|
|
|
1331 |
display: block;
|
1332 |
+
margin: 20px auto;
|
1333 |
+
width: auto;
|
1334 |
+
height: 32px;
|
|
|
1335 |
text-align: center;
|
1336 |
+
font-family: inherit;
|
|
|
|
|
1337 |
|
1338 |
+
&::before {
|
1339 |
+
width: 16px;
|
1340 |
+
height: 16px;
|
1341 |
+
line-height: 1;
|
1342 |
+
font-size: 16px;
|
1343 |
+
margin-right: 10px;
|
1344 |
+
font-family: dashicons;
|
1345 |
+
vertical-align: middle;
|
1346 |
+
padding: 1px 10px 1px 0;
|
1347 |
+
border-right: 1px solid transparentize($white, 0.7);
|
1348 |
}
|
1349 |
}
|
1350 |
|
1351 |
li.ur-registered-item {
|
1352 |
+
width: 120px !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1353 |
|
1354 |
&.ui-sortable-placeholder {
|
1355 |
+
margin-left: 0;
|
1356 |
width: 100% !important;
|
1357 |
visibility: visible !important;
|
1358 |
+
border: 1px dashed $color_gray_lighter;
|
1359 |
+
background-color: $color_gray_five;
|
1360 |
}
|
1361 |
}
|
1362 |
}
|
1363 |
|
1364 |
.ur-general-setting,
|
1365 |
.ur-advance-setting {
|
1366 |
+
margin: 16px 0;
|
1367 |
}
|
1368 |
|
1369 |
.ur-advance-setting-block {
|
1370 |
margin-top: 25px;
|
1371 |
}
|
1372 |
|
1373 |
+
.form-row {
|
1374 |
+
margin-bottom: 1em;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1375 |
|
1376 |
+
.description {
|
1377 |
+
color: $color_gray_two;
|
1378 |
+
font-size: 12px;
|
1379 |
+
margin-bottom: 4px;
|
1380 |
+
display: block;
|
1381 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1382 |
|
1383 |
+
.ur-radio-list,
|
1384 |
+
.ur-checkbox-list {
|
1385 |
+
label {
|
1386 |
+
display: inline;
|
1387 |
+
}
|
1388 |
+
}
|
1389 |
}
|
1390 |
|
1391 |
.ur-registered-item.dragging {
|
1417 |
color: $color_gray_two;
|
1418 |
cursor: pointer;
|
1419 |
display: flex;
|
1420 |
+
flex: 1 0 32px;
|
1421 |
align-items: center;
|
1422 |
justify-content: center;
|
1423 |
+
height: 32px;
|
1424 |
+
max-width: 32px;
|
1425 |
+
border-radius: 4px;
|
1426 |
position: relative;
|
1427 |
|
1428 |
&:hover {
|
1437 |
}
|
1438 |
|
1439 |
.add {
|
1440 |
+
margin-right: 8px;
|
1441 |
}
|
1442 |
|
1443 |
.ur-options-list {
|
1447 |
align-items: center;
|
1448 |
|
1449 |
.editor-block-mover__control-drag-handle {
|
1450 |
+
margin-right: 8px;
|
1451 |
cursor: grab;
|
|
|
1452 |
|
1453 |
+
svg {
|
1454 |
+
fill: $color_gray_two;
|
1455 |
+
}
|
1456 |
}
|
1457 |
|
1458 |
+
input {
|
1459 |
+
margin-right: 8px;
|
1460 |
}
|
1461 |
}
|
1462 |
|
1463 |
.ui-sortable-handle {
|
1464 |
padding: 5px;
|
1465 |
+
border-radius: 3px;
|
1466 |
border: 1px solid transparent;
|
1467 |
|
1468 |
&:active{
|
|
|
|
|
1469 |
padding: 5px;
|
1470 |
+
background: $white;
|
1471 |
+
border: 1px solid $primary_color;
|
1472 |
box-shadow: 0 0 20px rgba(0,0,0,.2);
|
1473 |
}
|
1474 |
|
1475 |
&.ui-sortable-placeholder {
|
1476 |
+
background-color: $color_gray_four;
|
|
|
1477 |
visibility: visible !important;
|
1478 |
}
|
1479 |
}
|
1482 |
.urcl-rules {
|
1483 |
display: flex;
|
1484 |
flex-wrap: wrap;
|
1485 |
+
margin-bottom: 8px;
|
1486 |
|
1487 |
> div {
|
1488 |
+
margin-right: 8px;
|
1489 |
+
}
|
1490 |
+
|
1491 |
+
.urcl-operator {
|
1492 |
+
width: 78px;
|
1493 |
}
|
1494 |
|
1495 |
.urcl-field,
|
1496 |
.urcl-value {
|
1497 |
+
max-width: 27%;
|
1498 |
+
flex: 1 0 27%;
|
1499 |
}
|
1500 |
}
|
1501 |
}
|
1504 |
min-height: 400px;
|
1505 |
}
|
1506 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1507 |
/**
|
1508 |
* Tooltips
|
1509 |
*/
|
1510 |
+
|
1511 |
.tips {
|
1512 |
cursor: help;
|
1513 |
text-decoration: none;
|
1541 |
#tiptip_arrow_inner {
|
1542 |
margin-top: -5px;
|
1543 |
margin-left: -6px;
|
1544 |
+
border-bottom-color: $color_gray_one;
|
1545 |
}
|
1546 |
}
|
1547 |
|
1569 |
#tiptip_content,
|
1570 |
.ur_error_tip {
|
1571 |
color: $white;
|
1572 |
+
font-size: 0.9em;
|
1573 |
max-width: 150px;
|
1574 |
+
background: $color_gray_one;
|
1575 |
text-align: center;
|
1576 |
border-radius: 3px;
|
1577 |
padding: 0.618em 1em;
|
1629 |
.user-registration-help-tip {
|
1630 |
color: $color_gray_two;
|
1631 |
display: inline-block;
|
1632 |
+
font-size: 16px;
|
1633 |
font-style: normal;
|
1634 |
height: 16px;
|
1635 |
line-height: 16px;
|
1729 |
}
|
1730 |
|
1731 |
#ur-tab-registered-fields li.ur-registered-item.ui-draggable-disabled {
|
1732 |
+
color: $color_gray_three;
|
1733 |
+
|
1734 |
+
&:hover {
|
1735 |
+
background: $color_gray_five;
|
1736 |
+
cursor: not-allowed;
|
1737 |
+
}
|
1738 |
}
|
1739 |
|
1740 |
.ur-no-pointer {
|
1741 |
pointer-events: none;
|
1742 |
}
|
1743 |
|
|
|
|
|
|
|
|
|
1744 |
.user-registration table.form-table dashicons .dashicons, .dashicons{
|
1745 |
line-height: inherit;
|
1746 |
}
|
1750 |
}
|
1751 |
|
1752 |
.form-settings-tab {
|
|
|
1753 |
cursor: pointer;
|
1754 |
+
padding: 10px 15px;
|
1755 |
+
color: $gray_base;
|
1756 |
+
background: $color_gray_lighten;
|
1757 |
margin-bottom: 10px;
|
1758 |
+
border-radius: 4px;
|
1759 |
}
|
1760 |
|
1761 |
.form-settings-tab.active {
|
1797 |
}
|
1798 |
}
|
1799 |
|
1800 |
+
body {
|
1801 |
+
&.ur-full-screen-mode {
|
1802 |
+
margin-top: -32px;
|
1803 |
+
|
1804 |
+
#wpbody-content {
|
1805 |
+
padding-bottom: 45px;
|
1806 |
+
}
|
1807 |
+
|
1808 |
+
#wpwrap {
|
1809 |
+
#wpcontent {
|
1810 |
+
margin-left: 0;
|
1811 |
+
padding-left: 0;
|
1812 |
+
|
1813 |
+
#wpadminbar {
|
1814 |
+
display: none;
|
1815 |
+
}
|
1816 |
+
|
1817 |
+
#wpbody {
|
1818 |
+
.ur-tab-content {
|
1819 |
+
padding: 20px;
|
1820 |
+
}
|
1821 |
+
|
1822 |
+
#menu-management-liquid {
|
1823 |
+
margin-top: 0;
|
1824 |
+
|
1825 |
+
.menu-edit {
|
1826 |
+
margin-bottom: 0;
|
1827 |
+
box-shadow: none;
|
1828 |
+
left: 0!important;
|
1829 |
+
}
|
1830 |
+
}
|
1831 |
+
}
|
1832 |
+
}
|
1833 |
+
|
1834 |
+
#adminmenumain{
|
1835 |
+
display: none;
|
1836 |
}
|
1837 |
}
|
1838 |
|
1839 |
+
.ur-registered-from {
|
1840 |
+
.ur-registered-inputs {
|
1841 |
+
.ur-tabs {
|
1842 |
+
.ur-tab-contents {
|
1843 |
+
height: calc(100vh - 98px);
|
1844 |
+
}
|
1845 |
+
}
|
1846 |
+
}
|
1847 |
+
|
1848 |
+
.ur-builder-wrapper {
|
1849 |
+
height: calc(100vh - 57px);
|
1850 |
}
|
1851 |
}
|
1852 |
}
|
1853 |
}
|
1854 |
|
1855 |
+
// User Registration Builder Loading
|
1856 |
+
@keyframes ur-circle-loading {
|
1857 |
|
1858 |
+
0%,
|
1859 |
+
100% {
|
1860 |
+
animation-timing-function: cubic-bezier(0.2, 0, 0.8, 1);
|
1861 |
}
|
1862 |
|
1863 |
+
50% {
|
1864 |
+
animation-timing-function: cubic-bezier(0, 0.2, 1, 0.8);
|
1865 |
+
}
|
|
|
1866 |
|
1867 |
+
0% {
|
1868 |
+
-webkit-transform: rotate(0deg) translate(0, -20px) scale(0);
|
1869 |
+
transform: rotate(0deg) translate(0, -20px) scale(0);
|
1870 |
+
}
|
1871 |
|
1872 |
+
50% {
|
1873 |
+
-webkit-transform: rotate(180deg) translate(0, -20px) scale(1);
|
1874 |
+
transform: rotate(180deg) translate(0, -20px) scale(1);
|
1875 |
+
}
|
1876 |
+
|
1877 |
+
100% {
|
1878 |
+
-webkit-transform: rotate(360deg) translate(0, -20px) scale(0);
|
1879 |
+
transform: rotate(360deg) translate(0, -20px) scale(0);
|
1880 |
+
}
|
1881 |
+
}
|
1882 |
+
|
1883 |
+
@-webkit-keyframes ur-circle-loading-keyframe {
|
1884 |
+
|
1885 |
+
0%,
|
1886 |
+
100% {
|
1887 |
+
animation-timing-function: cubic-bezier(0.2, 0, 0.8, 1);
|
1888 |
+
}
|
1889 |
+
|
1890 |
+
50% {
|
1891 |
+
animation-timing-function: cubic-bezier(0, 0.2, 1, 0.8);
|
1892 |
+
}
|
1893 |
+
|
1894 |
+
0% {
|
1895 |
+
-webkit-transform: rotate(0deg) translate(0, -20px) scale(0);
|
1896 |
+
transform: rotate(0deg) translate(0, -20px) scale(0);
|
1897 |
+
}
|
1898 |
+
|
1899 |
+
50% {
|
1900 |
+
-webkit-transform: rotate(180deg) translate(0, -20px) scale(1);
|
1901 |
+
transform: rotate(180deg) translate(0, -20px) scale(1);
|
1902 |
+
}
|
1903 |
+
|
1904 |
+
100% {
|
1905 |
+
-webkit-transform: rotate(360deg) translate(0, -20px) scale(0);
|
1906 |
+
transform: rotate(360deg) translate(0, -20px) scale(0);
|
1907 |
+
}
|
1908 |
+
}
|
1909 |
+
|
1910 |
+
.ur-circle-loading {
|
1911 |
+
position: relative;
|
1912 |
+
width: 100px !important;
|
1913 |
+
height: 100px !important;
|
1914 |
+
-webkit-transform: translate(-50px, -50px) scale(0.5) translate(50px, 50px);
|
1915 |
+
transform: translate(-50px, -50px) scale(0.5) translate(50px, 50px);
|
1916 |
+
|
1917 |
+
&::before,
|
1918 |
+
&::after {
|
1919 |
+
content: '';
|
1920 |
+
position: absolute;
|
1921 |
+
top: 70px;
|
1922 |
+
left: 70px;
|
1923 |
+
-webkit-animation: ur-circle-loading-keyframe 1.5s linear infinite;
|
1924 |
+
animation: ur-circle-loading-keyframe 1.5s linear infinite;
|
1925 |
+
width: 60px;
|
1926 |
+
height: 60px;
|
1927 |
+
border-radius: 50%;
|
1928 |
+
background: #475bb2;
|
1929 |
+
}
|
1930 |
+
|
1931 |
+
&::after {
|
1932 |
+
-webkit-animation-delay: -0.75s;
|
1933 |
+
animation-delay: -0.75s;
|
1934 |
+
background: #668fe5;
|
1935 |
+
}
|
1936 |
+
}
|
1937 |
+
|
1938 |
+
|
1939 |
+
|
1940 |
+
/**
|
1941 |
+
* Media Queries
|
1942 |
+
*/
|
1943 |
+
|
1944 |
+
@media only screen and (max-width: 1599px) {
|
1945 |
+
.ur_addons_wrap .products li {
|
1946 |
+
width: 32.66%;
|
1947 |
+
}
|
1948 |
+
.ur_addons_wrap .products li:nth-child(5n) {
|
1949 |
+
margin: 0 1% 1% 0 !important;
|
1950 |
+
}
|
1951 |
+
.ur_addons_wrap .products li:nth-child(3n) {
|
1952 |
+
margin: 0 0 1% 0 !important;
|
1953 |
+
}
|
1954 |
+
}
|
1955 |
+
|
1956 |
+
@media screen and (max-width: 1400px) {
|
1957 |
+
.ur-registered-from {
|
1958 |
+
.ur-registered-inputs {
|
1959 |
+
.ur-tabs .ur-tab-content {
|
1960 |
+
.ur-registered-list {
|
1961 |
+
.ur-registered-item {
|
1962 |
+
font-size: 12px;
|
1963 |
+
}
|
1964 |
}
|
1965 |
+
}
|
1966 |
+
}
|
1967 |
|
1968 |
+
.urcl-rules {
|
1969 |
+
.urcl-field {
|
1970 |
+
max-width: 61%;
|
1971 |
+
flex: 1 0 60%;
|
1972 |
+
margin-bottom: 5px;
|
1973 |
+
}
|
1974 |
|
1975 |
+
.urcl-value {
|
1976 |
+
order: 4;
|
1977 |
+
max-width: 87%;
|
1978 |
+
flex: 1 0 86%;
|
1979 |
+
}
|
1980 |
|
1981 |
+
.add {
|
1982 |
+
order: 3;
|
1983 |
+
margin-right: 0;
|
1984 |
+
}
|
1985 |
+
|
1986 |
+
.remove {
|
1987 |
+
order: 5;
|
1988 |
+
}
|
1989 |
+
}
|
1990 |
+
}
|
1991 |
+
}
|
1992 |
+
|
1993 |
+
@media only screen and (max-width: 1120px) {
|
1994 |
+
.ur_addons_wrap .products li {
|
1995 |
+
width: 49%;
|
1996 |
+
margin: 0 2% 2% 0 !important;
|
1997 |
+
}
|
1998 |
+
.ur_addons_wrap .products li:nth-child(5n),
|
1999 |
+
.ur_addons_wrap .products li:nth-child(3n) {
|
2000 |
+
margin: 0 2% 2% 0 !important;
|
2001 |
+
}
|
2002 |
+
.ur_addons_wrap .products li:nth-child(2n) {
|
2003 |
+
margin: 0 0 2% 0 !important;
|
2004 |
+
}
|
2005 |
+
}
|
2006 |
+
|
2007 |
+
@media screen and (max-width: 960px) {
|
2008 |
+
.ur-registered-from {
|
2009 |
+
.ur-registered-inputs {
|
2010 |
+
.ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item {
|
2011 |
+
float: none;
|
2012 |
+
width: 100%;
|
2013 |
+
}
|
2014 |
+
.ur-single-row .ur-grid-lists,
|
2015 |
+
.ur-single-row .ur-grid-lists .ur-grid-list-item,
|
2016 |
+
.ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item {
|
2017 |
+
padding: 10px;
|
2018 |
+
}
|
2019 |
+
}
|
2020 |
+
}
|
2021 |
+
}
|
2022 |
+
|
2023 |
+
@media only screen and (max-width: 900px) {
|
2024 |
+
.ur_addons_wrap .products li {
|
2025 |
+
width: 49%;
|
2026 |
+
}
|
2027 |
+
}
|
2028 |
+
|
2029 |
+
@media screen and (max-width: 782px) {
|
2030 |
+
body.user-registration_page_add-new-registration {
|
2031 |
+
min-width: 0 !important;
|
2032 |
+
}
|
2033 |
+
|
2034 |
+
.ur-registered-from {
|
2035 |
+
flex-direction: column;
|
2036 |
+
|
2037 |
+
.ur-registered-inputs {
|
2038 |
+
width: 100%;
|
2039 |
+
margin-bottom: 10px;
|
2040 |
+
|
2041 |
+
.ur-tabs {
|
2042 |
+
.ur-tab-content {
|
2043 |
+
.ur-registered-list {
|
2044 |
+
.ur-registered-item {
|
2045 |
+
float: left;
|
2046 |
+
width: 48%;
|
2047 |
}
|
2048 |
}
|
2049 |
}
|
2050 |
}
|
2051 |
}
|
2052 |
|
2053 |
+
.ur-selected-inputs {
|
2054 |
+
width: 100%;
|
2055 |
}
|
2056 |
}
|
2057 |
+
}
|
2058 |
|
2059 |
+
@media only screen and (min-width: 769px) and (max-width: 1000px) {
|
2060 |
+
|
2061 |
+
.user-registration_page_add-new-registration #post-body-content {
|
2062 |
+
min-width: 0;
|
2063 |
}
|
2064 |
+
}
|
2065 |
|
2066 |
+
@media screen and (max-width: 600px) {
|
2067 |
+
.user-registration_page_add-new-registration .major-publishing-actions {
|
2068 |
+
clear: both;
|
2069 |
+
padding: 10px 0 19px;
|
2070 |
+
line-height: 28px;
|
2071 |
+
|
2072 |
+
.ur-form-name {
|
2073 |
+
width: 100%;
|
2074 |
+
}
|
2075 |
+
|
2076 |
+
.publishing-action {
|
2077 |
+
text-align: left;
|
2078 |
+
float: none;
|
2079 |
+
margin-top: 15px;
|
2080 |
+
}
|
2081 |
+
}
|
2082 |
+
|
2083 |
+
.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists {
|
2084 |
+
flex-direction: column;
|
2085 |
+
display: block;
|
2086 |
+
|
2087 |
+
.ur-grid-list-item {
|
2088 |
+
width: 100% !important;
|
2089 |
+
|
2090 |
+
&:nth-child(1n+2) {
|
2091 |
+
border-left: 0 none;
|
2092 |
+
border-top: 2px solid $color_gray_eight;
|
2093 |
+
}
|
2094 |
+
}
|
2095 |
+
}
|
2096 |
+
}
|
2097 |
+
|
2098 |
+
@media only screen and (max-width: 480px) {
|
2099 |
+
.ur_addons_wrap .products li,
|
2100 |
+
.ur_addons_wrap .products li:nth-child(5n),
|
2101 |
+
.ur_addons_wrap .products li:nth-child(3n),
|
2102 |
+
.ur_addons_wrap .products li:nth-child(2n) {
|
2103 |
+
width: 100%;
|
2104 |
+
margin: 0 0 3% 0 !important;
|
2105 |
+
}
|
2106 |
+
}
|
2107 |
+
|
2108 |
+
@keyframes open-message {
|
2109 |
+
0% {
|
2110 |
+
opacity: 0;
|
2111 |
+
transform: translateY(-120%);
|
2112 |
+
}
|
2113 |
+
100% {
|
2114 |
+
transform: translateY(0px);
|
2115 |
+
}
|
2116 |
+
}
|
2117 |
+
|
2118 |
+
@keyframes close-message {
|
2119 |
+
0% {
|
2120 |
+
opacity: 1;
|
2121 |
+
transform: scale(1);
|
2122 |
+
}
|
2123 |
+
100% {
|
2124 |
+
opacity: 0;
|
2125 |
+
transform: scale(0.9);
|
2126 |
+
}
|
2127 |
+
}
|
2128 |
+
|
2129 |
+
.ur-builder-message-container {
|
2130 |
+
position: fixed;
|
2131 |
+
top: 32px;
|
2132 |
+
left: 0;
|
2133 |
+
right: 0;
|
2134 |
+
max-width: 400px;
|
2135 |
+
margin: 0 auto;
|
2136 |
+
z-index: 9999;
|
2137 |
+
|
2138 |
+
.ur-message {
|
2139 |
+
display: none;
|
2140 |
+
margin: 0 auto;
|
2141 |
+
margin-top: 16px;
|
2142 |
+
transition: all 240ms cubic-bezier(0, 0, 0.2, 1) 0s;
|
2143 |
+
z-index: 99999;
|
2144 |
+
height: 0px;
|
2145 |
+
|
2146 |
+
.ur-success,
|
2147 |
+
.ur-error {
|
2148 |
+
background: $white;
|
2149 |
+
padding: 8px 16px;
|
2150 |
+
border-radius: 3px;
|
2151 |
+
border-left: 3px solid;
|
2152 |
+
position: relative;
|
2153 |
+
box-shadow: 0px 1px 8px 2px transparentize($color_gray-base, 0.9);
|
2154 |
+
|
2155 |
+
p {
|
2156 |
+
margin: 8px 0;
|
2157 |
+
&::before,
|
2158 |
+
&::after {
|
2159 |
+
font-family: dashicons;
|
2160 |
+
width: 20px;
|
2161 |
+
height: 20px;
|
2162 |
+
font-size: 20px;
|
2163 |
+
margin-right: 8px;
|
2164 |
+
margin-top: -4px;
|
2165 |
+
line-height: 1;
|
2166 |
+
display: inline-block;
|
2167 |
+
vertical-align: middle;
|
2168 |
+
}
|
2169 |
+
}
|
2170 |
+
}
|
2171 |
+
|
2172 |
+
.ur-success {
|
2173 |
+
border-color: $green;
|
2174 |
+
|
2175 |
+
p {
|
2176 |
+
&::before {
|
2177 |
+
content: "\f12a";
|
2178 |
+
color: $green;
|
2179 |
+
}
|
2180 |
+
}
|
2181 |
+
}
|
2182 |
+
|
2183 |
+
.ur-error {
|
2184 |
+
border-color: $red;
|
2185 |
+
|
2186 |
+
p {
|
2187 |
+
&::before {
|
2188 |
+
content: "\f534";
|
2189 |
+
color: $red;
|
2190 |
+
}
|
2191 |
+
}
|
2192 |
+
}
|
2193 |
+
|
2194 |
+
.dashicons {
|
2195 |
+
cursor: pointer;
|
2196 |
+
position: absolute;
|
2197 |
+
right: 16px;
|
2198 |
+
top: 50%;
|
2199 |
+
transform: translateY(-50%);
|
2200 |
+
line-height: 1;
|
2201 |
+
}
|
2202 |
+
|
2203 |
+
&.entered {
|
2204 |
+
display: block;
|
2205 |
+
height: 50px;
|
2206 |
+
animation: 240ms cubic-bezier(0.175, 0.885, 0.32, 1.175) 0s 1 normal both open-message;
|
2207 |
+
}
|
2208 |
+
|
2209 |
+
&.exiting {
|
2210 |
+
display: block;
|
2211 |
+
animation: 120ms cubic-bezier(0.4, 0, 1, 1) 0s 1 normal both close-message;
|
2212 |
+
}
|
2213 |
+
|
2214 |
+
&:first-child {
|
2215 |
+
margin-top: 1.5rem;
|
2216 |
+
}
|
2217 |
}
|
2218 |
}
|
assets/css/menu-rtl.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.ur_plugin_upgrade_notice{font-weight:400;color:#fff;background:#d54d21;padding:1em;margin:9px 0}.ur_plugin_upgrade_notice::before{content:'\f348';display:inline-block;font:400 18px/1 dashicons;speak:none;margin:0 -2px 0 8px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:top}.user-registration-updater-licensed td,.user-registration-updater-licensed th{box-shadow:none!important}.user-registration-deactivation-notice td,.user-registration-deactivation-notice th{box-shadow:none!important}.user-registration-updater-license-key{border:0;font-size:13px;font-weight:400;padding:6px 12px;margin:5px 40px 15px 20px;background-color:rgba(0,0,0,.03);line-height:27px}.user-registration-updater-license-key input{margin:0 4px;vertical-align:middle}.user-registration-updater-license-key::before{color:#32373c;content:'\f160';margin:0 -2px 0 8px;display:inline-block;font:400 20px/27px dashicons;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:middle}
|
1 |
+
.ur_plugin_upgrade_notice{font-weight:400;color:#fff;background:#d54d21;padding:1em;margin:9px 0}.ur_plugin_upgrade_notice::before{content:'\f348';display:inline-block;font:400 18px/1 dashicons;speak:none;margin:0 -2px 0 8px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:top}.user-registration-updater-licensed td,.user-registration-updater-licensed th{box-shadow:none!important}.user-registration-deactivation-notice td,.user-registration-deactivation-notice th{box-shadow:none!important}.user-registration-updater-license-key{border:0;font-size:13px;font-weight:400;padding:6px 12px;margin:5px 40px 15px 20px;background-color:rgba(0,0,0,.03);line-height:27px}.user-registration-updater-license-key input{margin:0 4px;vertical-align:middle}.user-registration-updater-license-key::before{color:#32373c;content:'\f160';margin:0 -2px 0 8px;display:inline-block;font:400 20px/27px dashicons;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:middle}.wp-list-table.users .ur-user-notification td{padding:0;text-align:center}.wp-list-table.users .ur-user-notification td a{display:none;padding:10px;box-shadow:none;background:#e8ebf6;border:1px solid #a0aad9}
|
assets/css/menu.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.ur_plugin_upgrade_notice{font-weight:400;color:#fff;background:#d54d21;padding:1em;margin:9px 0}.ur_plugin_upgrade_notice::before{content:'\f348';display:inline-block;font:400 18px/1 dashicons;speak:none;margin:0 8px 0 -2px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:top}.user-registration-updater-licensed td,.user-registration-updater-licensed th{box-shadow:none!important}.user-registration-deactivation-notice td,.user-registration-deactivation-notice th{box-shadow:none!important}.user-registration-updater-license-key{border:0;font-size:13px;font-weight:400;padding:6px 12px;margin:5px 20px 15px 40px;background-color:rgba(0,0,0,.03);line-height:27px}.user-registration-updater-license-key input{margin:0 4px;vertical-align:middle}.user-registration-updater-license-key::before{color:#32373c;content:'\f160';margin:0 8px 0 -2px;display:inline-block;font:400 20px/27px dashicons;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:middle}
|
1 |
+
.ur_plugin_upgrade_notice{font-weight:400;color:#fff;background:#d54d21;padding:1em;margin:9px 0}.ur_plugin_upgrade_notice::before{content:'\f348';display:inline-block;font:400 18px/1 dashicons;speak:none;margin:0 8px 0 -2px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:top}.user-registration-updater-licensed td,.user-registration-updater-licensed th{box-shadow:none!important}.user-registration-deactivation-notice td,.user-registration-deactivation-notice th{box-shadow:none!important}.user-registration-updater-license-key{border:0;font-size:13px;font-weight:400;padding:6px 12px;margin:5px 20px 15px 40px;background-color:rgba(0,0,0,.03);line-height:27px}.user-registration-updater-license-key input{margin:0 4px;vertical-align:middle}.user-registration-updater-license-key::before{color:#32373c;content:'\f160';margin:0 8px 0 -2px;display:inline-block;font:400 20px/27px dashicons;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:middle}.wp-list-table.users .ur-user-notification td{padding:0;text-align:center}.wp-list-table.users .ur-user-notification td a{display:none;padding:10px;box-shadow:none;background:#e8ebf6;border:1px solid #a0aad9}
|
assets/css/menu.scss
CHANGED
@@ -73,3 +73,22 @@
|
|
73 |
vertical-align: middle;
|
74 |
}
|
75 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
vertical-align: middle;
|
74 |
}
|
75 |
}
|
76 |
+
|
77 |
+
.wp-list-table {
|
78 |
+
&.users {
|
79 |
+
.ur-user-notification {
|
80 |
+
td {
|
81 |
+
padding: 0;
|
82 |
+
text-align: center;
|
83 |
+
|
84 |
+
a {
|
85 |
+
display: none;
|
86 |
+
padding: 10px;
|
87 |
+
box-shadow: none;
|
88 |
+
background: lighten(#475bb2, 45%);
|
89 |
+
border: 1px solid lighten(#475bb2, 25%)
|
90 |
+
}
|
91 |
+
}
|
92 |
+
}
|
93 |
+
}
|
94 |
+
}
|
assets/css/my-account-layout-rtl.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
#user-registration.vertical{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap}#user-registration.vertical .user-registration-error,#user-registration.vertical .user-registration-message{float:none;width:100%}#user-registration.vertical .user-registration-MyAccount-navigation{background:#f6f7f9;width:20%}#user-registration.vertical .user-registration-MyAccount-navigation ul{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-flex-wrap:nowrap;flex-wrap:nowrap}#user-registration.vertical .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link.is-active a{background:#e8e9ee;border-right:4px solid #475bb2}#user-registration.vertical .user-registration-MyAccount-content{width:80%}#user-registration.vertical .user-registration-MyAccount-content .user-registration-profile-header{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-webkit-align-items:center;align-items:center}#user-registration.vertical .user-registration-MyAccount-content .user-registration-profile-header .user-registration-img-container{margin-left:20px}#user-registration.horizontal{box-shadow:0 2px 20px rgba(
|
1 |
+
#user-registration.vertical{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap}#user-registration.vertical .user-registration-error,#user-registration.vertical .user-registration-message{float:none;width:100%}#user-registration.vertical .user-registration-MyAccount-navigation{background:#f6f7f9;width:20%}#user-registration.vertical .user-registration-MyAccount-navigation ul{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-flex-wrap:nowrap;flex-wrap:nowrap}#user-registration.vertical .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link.is-active a{background:#e8e9ee;border-right:4px solid #475bb2}#user-registration.vertical .user-registration-MyAccount-content{width:80%}#user-registration.vertical .user-registration-MyAccount-content .user-registration-profile-header{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-webkit-align-items:center;align-items:center}#user-registration.vertical .user-registration-MyAccount-content .user-registration-profile-header .user-registration-img-container{margin-left:20px}#user-registration.horizontal{box-shadow:0 2px 20px rgba(45,53,89,.1)}#user-registration.horizontal .user-registration-error,#user-registration.horizontal .user-registration-info,#user-registration.horizontal .user-registration-message{margin-bottom:0}#user-registration.horizontal .user-registration-MyAccount-navigation ul{-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;border-bottom:1px solid #e8e9ee}#user-registration.horizontal .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link a{padding:15px 20px}#user-registration.horizontal .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link.is-active a{background-color:#e8e9ee}#user-registration.horizontal .user-registration-MyAccount-content{text-align:center}#user-registration.horizontal .user-registration-MyAccount-content .user-registration-profile-header .user-registration-img-container{margin:0 auto;margin-bottom:15px}#user-registration.horizontal .user-registration-MyAccount-content .user-registration-profile-header .user-registration-img-container img{border-radius:50%;margin:0 auto}#user-registration.horizontal .user-registration-MyAccount-content .edit-password,#user-registration.horizontal .user-registration-MyAccount-content .edit-profile{text-align:right}#user-registration.horizontal .user-registration-MyAccount-content .edit-profile .user-registration-profile-header,#user-registration.horizontal .user-registration-MyAccount-content .edit-profile h2{text-align:center}@media screen and (max-width:980px){#user-registration.vertical .user-registration-MyAccount-navigation{width:30%}#user-registration.vertical .user-registration-MyAccount-content{width:70%}}@media screen and (max-width:600px){#user-registration.vertical .user-registration-MyAccount-navigation{width:100%}#user-registration.vertical .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link a{padding:15px 20px}#user-registration.vertical .user-registration-MyAccount-content{width:100%}#user-registration .user-registration-MyAccount-content{padding:15px}}
|
assets/css/my-account-layout.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
#user-registration.vertical{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap}#user-registration.vertical .user-registration-error,#user-registration.vertical .user-registration-message{float:none;width:100%}#user-registration.vertical .user-registration-MyAccount-navigation{background:#f6f7f9;width:20%}#user-registration.vertical .user-registration-MyAccount-navigation ul{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-flex-wrap:nowrap;flex-wrap:nowrap}#user-registration.vertical .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link.is-active a{background:#e8e9ee;border-left:4px solid #475bb2}#user-registration.vertical .user-registration-MyAccount-content{width:80%}#user-registration.vertical .user-registration-MyAccount-content .user-registration-profile-header{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-webkit-align-items:center;align-items:center}#user-registration.vertical .user-registration-MyAccount-content .user-registration-profile-header .user-registration-img-container{margin-right:20px}#user-registration.horizontal{box-shadow:0 2px 20px rgba(
|
1 |
+
#user-registration.vertical{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap}#user-registration.vertical .user-registration-error,#user-registration.vertical .user-registration-message{float:none;width:100%}#user-registration.vertical .user-registration-MyAccount-navigation{background:#f6f7f9;width:20%}#user-registration.vertical .user-registration-MyAccount-navigation ul{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-flex-wrap:nowrap;flex-wrap:nowrap}#user-registration.vertical .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link.is-active a{background:#e8e9ee;border-left:4px solid #475bb2}#user-registration.vertical .user-registration-MyAccount-content{width:80%}#user-registration.vertical .user-registration-MyAccount-content .user-registration-profile-header{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-webkit-align-items:center;align-items:center}#user-registration.vertical .user-registration-MyAccount-content .user-registration-profile-header .user-registration-img-container{margin-right:20px}#user-registration.horizontal{box-shadow:0 2px 20px rgba(45,53,89,.1)}#user-registration.horizontal .user-registration-error,#user-registration.horizontal .user-registration-info,#user-registration.horizontal .user-registration-message{margin-bottom:0}#user-registration.horizontal .user-registration-MyAccount-navigation ul{-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;border-bottom:1px solid #e8e9ee}#user-registration.horizontal .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link a{padding:15px 20px}#user-registration.horizontal .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link.is-active a{background-color:#e8e9ee}#user-registration.horizontal .user-registration-MyAccount-content{text-align:center}#user-registration.horizontal .user-registration-MyAccount-content .user-registration-profile-header .user-registration-img-container{margin:0 auto;margin-bottom:15px}#user-registration.horizontal .user-registration-MyAccount-content .user-registration-profile-header .user-registration-img-container img{border-radius:50%;margin:0 auto}#user-registration.horizontal .user-registration-MyAccount-content .edit-password,#user-registration.horizontal .user-registration-MyAccount-content .edit-profile{text-align:left}#user-registration.horizontal .user-registration-MyAccount-content .edit-profile .user-registration-profile-header,#user-registration.horizontal .user-registration-MyAccount-content .edit-profile h2{text-align:center}@media screen and (max-width:980px){#user-registration.vertical .user-registration-MyAccount-navigation{width:30%}#user-registration.vertical .user-registration-MyAccount-content{width:70%}}@media screen and (max-width:600px){#user-registration.vertical .user-registration-MyAccount-navigation{width:100%}#user-registration.vertical .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link a{padding:15px 20px}#user-registration.vertical .user-registration-MyAccount-content{width:100%}#user-registration .user-registration-MyAccount-content{padding:15px}}
|
assets/css/perfect-scrollbar/perfect-scrollbar.css
ADDED
@@ -0,0 +1,116 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*
|
2 |
+
* Container style
|
3 |
+
*/
|
4 |
+
.ps {
|
5 |
+
overflow: hidden !important;
|
6 |
+
overflow-anchor: none;
|
7 |
+
-ms-overflow-style: none;
|
8 |
+
touch-action: auto;
|
9 |
+
-ms-touch-action: auto;
|
10 |
+
}
|
11 |
+
|
12 |
+
/*
|
13 |
+
* Scrollbar rail styles
|
14 |
+
*/
|
15 |
+
.ps__rail-x {
|
16 |
+
display: none;
|
17 |
+
opacity: 0;
|
18 |
+
transition: background-color .2s linear, opacity .2s linear;
|
19 |
+
-webkit-transition: background-color .2s linear, opacity .2s linear;
|
20 |
+
height: 15px;
|
21 |
+
/* there must be 'bottom' or 'top' for ps__rail-x */
|
22 |
+
bottom: 0px;
|
23 |
+
/* please don't change 'position' */
|
24 |
+
position: absolute;
|
25 |
+
}
|
26 |
+
|
27 |
+
.ps__rail-y {
|
28 |
+
display: none;
|
29 |
+
opacity: 0;
|
30 |
+
transition: background-color .2s linear, opacity .2s linear;
|
31 |
+
-webkit-transition: background-color .2s linear, opacity .2s linear;
|
32 |
+
width: 15px;
|
33 |
+
/* there must be 'right' or 'left' for ps__rail-y */
|
34 |
+
right: 0;
|
35 |
+
/* please don't change 'position' */
|
36 |
+
position: absolute;
|
37 |
+
}
|
38 |
+
|
39 |
+
.ps--active-x > .ps__rail-x,
|
40 |
+
.ps--active-y > .ps__rail-y {
|
41 |
+
display: block;
|
42 |
+
background-color: transparent;
|
43 |
+
}
|
44 |
+
|
45 |
+
.ps:hover > .ps__rail-x,
|
46 |
+
.ps:hover > .ps__rail-y,
|
47 |
+
.ps--focus > .ps__rail-x,
|
48 |
+
.ps--focus > .ps__rail-y,
|
49 |
+
.ps--scrolling-x > .ps__rail-x,
|
50 |
+
.ps--scrolling-y > .ps__rail-y {
|
51 |
+
opacity: 0.6;
|
52 |
+
}
|
53 |
+
|
54 |
+
.ps .ps__rail-x:hover,
|
55 |
+
.ps .ps__rail-y:hover,
|
56 |
+
.ps .ps__rail-x:focus,
|
57 |
+
.ps .ps__rail-y:focus,
|
58 |
+
.ps .ps__rail-x.ps--clicking,
|
59 |
+
.ps .ps__rail-y.ps--clicking {
|
60 |
+
background-color: #eee;
|
61 |
+
opacity: 0.9;
|
62 |
+
}
|
63 |
+
|
64 |
+
/*
|
65 |
+
* Scrollbar thumb styles
|
66 |
+
*/
|
67 |
+
.ps__thumb-x {
|
68 |
+
background-color: #aaa;
|
69 |
+
border-radius: 6px;
|
70 |
+
transition: background-color .2s linear, height .2s ease-in-out;
|
71 |
+
-webkit-transition: background-color .2s linear, height .2s ease-in-out;
|
72 |
+
height: 6px;
|
73 |
+
/* there must be 'bottom' for ps__thumb-x */
|
74 |
+
bottom: 2px;
|
75 |
+
/* please don't change 'position' */
|
76 |
+
position: absolute;
|
77 |
+
}
|
78 |
+
|
79 |
+
.ps__thumb-y {
|
80 |
+
background-color: #aaa;
|
81 |
+
border-radius: 6px;
|
82 |
+
transition: background-color .2s linear, width .2s ease-in-out;
|
83 |
+
-webkit-transition: background-color .2s linear, width .2s ease-in-out;
|
84 |
+
width: 6px;
|
85 |
+
/* there must be 'right' for ps__thumb-y */
|
86 |
+
right: 2px;
|
87 |
+
/* please don't change 'position' */
|
88 |
+
position: absolute;
|
89 |
+
}
|
90 |
+
|
91 |
+
.ps__rail-x:hover > .ps__thumb-x,
|
92 |
+
.ps__rail-x:focus > .ps__thumb-x,
|
93 |
+
.ps__rail-x.ps--clicking .ps__thumb-x {
|
94 |
+
background-color: #999;
|
95 |
+
height: 11px;
|
96 |
+
}
|
97 |
+
|
98 |
+
.ps__rail-y:hover > .ps__thumb-y,
|
99 |
+
.ps__rail-y:focus > .ps__thumb-y,
|
100 |
+
.ps__rail-y.ps--clicking .ps__thumb-y {
|
101 |
+
background-color: #999;
|
102 |
+
width: 11px;
|
103 |
+
}
|
104 |
+
|
105 |
+
/* MS supports */
|
106 |
+
@supports (-ms-overflow-style: none) {
|
107 |
+
.ps {
|
108 |
+
overflow: auto !important;
|
109 |
+
}
|
110 |
+
}
|
111 |
+
|
112 |
+
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
113 |
+
.ps {
|
114 |
+
overflow: auto !important;
|
115 |
+
}
|
116 |
+
}
|
assets/css/sweetalert2/sweetalert2.css
ADDED
@@ -0,0 +1,1371 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
@charset "UTF-8";
|
2 |
+
@-webkit-keyframes swal2-show {
|
3 |
+
0% {
|
4 |
+
transform: scale(0.7);
|
5 |
+
}
|
6 |
+
45% {
|
7 |
+
transform: scale(1.05);
|
8 |
+
}
|
9 |
+
80% {
|
10 |
+
transform: scale(0.95);
|
11 |
+
}
|
12 |
+
100% {
|
13 |
+
transform: scale(1);
|
14 |
+
}
|
15 |
+
}
|
16 |
+
@keyframes swal2-show {
|
17 |
+
0% {
|
18 |
+
transform: scale(0.7);
|
19 |
+
}
|
20 |
+
45% {
|
21 |
+
transform: scale(1.05);
|
22 |
+
}
|
23 |
+
80% {
|
24 |
+
transform: scale(0.95);
|
25 |
+
}
|
26 |
+
100% {
|
27 |
+
transform: scale(1);
|
28 |
+
}
|
29 |
+
}
|
30 |
+
@-webkit-keyframes swal2-hide {
|
31 |
+
0% {
|
32 |
+
transform: scale(1);
|
33 |
+
opacity: 1;
|
34 |
+
}
|
35 |
+
100% {
|
36 |
+
transform: scale(0.5);
|
37 |
+
opacity: 0;
|
38 |
+
}
|
39 |
+
}
|
40 |
+
@keyframes swal2-hide {
|
41 |
+
0% {
|
42 |
+
transform: scale(1);
|
43 |
+
opacity: 1;
|
44 |
+
}
|
45 |
+
100% {
|
46 |
+
transform: scale(0.5);
|
47 |
+
opacity: 0;
|
48 |
+
}
|
49 |
+
}
|
50 |
+
@-webkit-keyframes swal2-animate-success-line-tip {
|
51 |
+
0% {
|
52 |
+
top: 1.1875em;
|
53 |
+
left: 0.0625em;
|
54 |
+
width: 0;
|
55 |
+
}
|
56 |
+
54% {
|
57 |
+
top: 1.0625em;
|
58 |
+
left: 0.125em;
|
59 |
+
width: 0;
|
60 |
+
}
|
61 |
+
70% {
|
62 |
+
top: 2.1875em;
|
63 |
+
left: -0.375em;
|
64 |
+
width: 3.125em;
|
65 |
+
}
|
66 |
+
84% {
|
67 |
+
top: 3em;
|
68 |
+
left: 1.3125em;
|
69 |
+
width: 1.0625em;
|
70 |
+
}
|
71 |
+
100% {
|
72 |
+
top: 2.8125em;
|
73 |
+
left: 0.875em;
|
74 |
+
width: 1.5625em;
|
75 |
+
}
|
76 |
+
}
|
77 |
+
@keyframes swal2-animate-success-line-tip {
|
78 |
+
0% {
|
79 |
+
top: 1.1875em;
|
80 |
+
left: 0.0625em;
|
81 |
+
width: 0;
|
82 |
+
}
|
83 |
+
54% {
|
84 |
+
top: 1.0625em;
|
85 |
+
left: 0.125em;
|
86 |
+
width: 0;
|
87 |
+
}
|
88 |
+
70% {
|
89 |
+
top: 2.1875em;
|
90 |
+
left: -0.375em;
|
91 |
+
width: 3.125em;
|
92 |
+
}
|
93 |
+
84% {
|
94 |
+
top: 3em;
|
95 |
+
left: 1.3125em;
|
96 |
+
width: 1.0625em;
|
97 |
+
}
|
98 |
+
100% {
|
99 |
+
top: 2.8125em;
|
100 |
+
left: 0.875em;
|
101 |
+
width: 1.5625em;
|
102 |
+
}
|
103 |
+
}
|
104 |
+
@-webkit-keyframes swal2-animate-success-line-long {
|
105 |
+
0% {
|
106 |
+
top: 3.375em;
|
107 |
+
right: 2.875em;
|
108 |
+
width: 0;
|
109 |
+
}
|
110 |
+
65% {
|
111 |
+
top: 3.375em;
|
112 |
+
right: 2.875em;
|
113 |
+
width: 0;
|
114 |
+
}
|
115 |
+
84% {
|
116 |
+
top: 2.1875em;
|
117 |
+
right: 0;
|
118 |
+
width: 3.4375em;
|
119 |
+
}
|
120 |
+
100% {
|
121 |
+
top: 2.375em;
|
122 |
+
right: 0.5em;
|
123 |
+
width: 2.9375em;
|
124 |
+
}
|
125 |
+
}
|
126 |
+
@keyframes swal2-animate-success-line-long {
|
127 |
+
0% {
|
128 |
+
top: 3.375em;
|
129 |
+
right: 2.875em;
|
130 |
+
width: 0;
|
131 |
+
}
|
132 |
+
65% {
|
133 |
+
top: 3.375em;
|
134 |
+
right: 2.875em;
|
135 |
+
width: 0;
|
136 |
+
}
|
137 |
+
84% {
|
138 |
+
top: 2.1875em;
|
139 |
+
right: 0;
|
140 |
+
width: 3.4375em;
|
141 |
+
}
|
142 |
+
100% {
|
143 |
+
top: 2.375em;
|
144 |
+
right: 0.5em;
|
145 |
+
width: 2.9375em;
|
146 |
+
}
|
147 |
+
}
|
148 |
+
@-webkit-keyframes swal2-rotate-success-circular-line {
|
149 |
+
0% {
|
150 |
+
transform: rotate(-45deg);
|
151 |
+
}
|
152 |
+
5% {
|
153 |
+
transform: rotate(-45deg);
|
154 |
+
}
|
155 |
+
12% {
|
156 |
+
transform: rotate(-405deg);
|
157 |
+
}
|
158 |
+
100% {
|
159 |
+
transform: rotate(-405deg);
|
160 |
+
}
|
161 |
+
}
|
162 |
+
@keyframes swal2-rotate-success-circular-line {
|
163 |
+
0% {
|
164 |
+
transform: rotate(-45deg);
|
165 |
+
}
|
166 |
+
5% {
|
167 |
+
transform: rotate(-45deg);
|
168 |
+
}
|
169 |
+
12% {
|
170 |
+
transform: rotate(-405deg);
|
171 |
+
}
|
172 |
+
100% {
|
173 |
+
transform: rotate(-405deg);
|
174 |
+
}
|
175 |
+
}
|
176 |
+
@-webkit-keyframes swal2-animate-error-x-mark {
|
177 |
+
0% {
|
178 |
+
margin-top: 1.625em;
|
179 |
+
transform: scale(0.4);
|
180 |
+
opacity: 0;
|
181 |
+
}
|
182 |
+
50% {
|
183 |
+
margin-top: 1.625em;
|
184 |
+
transform: scale(0.4);
|
185 |
+
opacity: 0;
|
186 |
+
}
|
187 |
+
80% {
|
188 |
+
margin-top: -0.375em;
|
189 |
+
transform: scale(1.15);
|
190 |
+
}
|
191 |
+
100% {
|
192 |
+
margin-top: 0;
|
193 |
+
transform: scale(1);
|
194 |
+
opacity: 1;
|
195 |
+
}
|
196 |
+
}
|
197 |
+
@keyframes swal2-animate-error-x-mark {
|
198 |
+
0% {
|
199 |
+
margin-top: 1.625em;
|
200 |
+
transform: scale(0.4);
|
201 |
+
opacity: 0;
|
202 |
+
}
|
203 |
+
50% {
|
204 |
+
margin-top: 1.625em;
|
205 |
+
transform: scale(0.4);
|
206 |
+
opacity: 0;
|
207 |
+
}
|
208 |
+
80% {
|
209 |
+
margin-top: -0.375em;
|
210 |
+
transform: scale(1.15);
|
211 |
+
}
|
212 |
+
100% {
|
213 |
+
margin-top: 0;
|
214 |
+
transform: scale(1);
|
215 |
+
opacity: 1;
|
216 |
+
}
|
217 |
+
}
|
218 |
+
@-webkit-keyframes swal2-animate-error-icon {
|
219 |
+
0% {
|
220 |
+
transform: rotateX(100deg);
|
221 |
+
opacity: 0;
|
222 |
+
}
|
223 |
+
100% {
|
224 |
+
transform: rotateX(0deg);
|
225 |
+
opacity: 1;
|
226 |
+
}
|
227 |
+
}
|
228 |
+
@keyframes swal2-animate-error-icon {
|
229 |
+
0% {
|
230 |
+
transform: rotateX(100deg);
|
231 |
+
opacity: 0;
|
232 |
+
}
|
233 |
+
100% {
|
234 |
+
transform: rotateX(0deg);
|
235 |
+
opacity: 1;
|
236 |
+
}
|
237 |
+
}
|
238 |
+
body.swal2-toast-shown .swal2-container {
|
239 |
+
background-color: transparent;
|
240 |
+
}
|
241 |
+
body.swal2-toast-shown .swal2-container.swal2-shown {
|
242 |
+
background-color: transparent;
|
243 |
+
}
|
244 |
+
body.swal2-toast-shown .swal2-container.swal2-top {
|
245 |
+
top: 0;
|
246 |
+
right: auto;
|
247 |
+
bottom: auto;
|
248 |
+
left: 50%;
|
249 |
+
transform: translateX(-50%);
|
250 |
+
}
|
251 |
+
body.swal2-toast-shown .swal2-container.swal2-top-end, body.swal2-toast-shown .swal2-container.swal2-top-right {
|
252 |
+
top: 0;
|
253 |
+
right: 0;
|
254 |
+
bottom: auto;
|
255 |
+
left: auto;
|
256 |
+
}
|
257 |
+
body.swal2-toast-shown .swal2-container.swal2-top-start, body.swal2-toast-shown .swal2-container.swal2-top-left {
|
258 |
+
top: 0;
|
259 |
+
right: auto;
|
260 |
+
bottom: auto;
|
261 |
+
left: 0;
|
262 |
+
}
|
263 |
+
body.swal2-toast-shown .swal2-container.swal2-center-start, body.swal2-toast-shown .swal2-container.swal2-center-left {
|
264 |
+
top: 50%;
|
265 |
+
right: auto;
|
266 |
+
bottom: auto;
|
267 |
+
left: 0;
|
268 |
+
transform: translateY(-50%);
|
269 |
+
}
|
270 |
+
body.swal2-toast-shown .swal2-container.swal2-center {
|
271 |
+
top: 50%;
|
272 |
+
right: auto;
|
273 |
+
bottom: auto;
|
274 |
+
left: 50%;
|
275 |
+
transform: translate(-50%, -50%);
|
276 |
+
}
|
277 |
+
body.swal2-toast-shown .swal2-container.swal2-center-end, body.swal2-toast-shown .swal2-container.swal2-center-right {
|
278 |
+
top: 50%;
|
279 |
+
right: 0;
|
280 |
+
bottom: auto;
|
281 |
+
left: auto;
|
282 |
+
transform: translateY(-50%);
|
283 |
+
}
|
284 |
+
body.swal2-toast-shown .swal2-container.swal2-bottom-start, body.swal2-toast-shown .swal2-container.swal2-bottom-left {
|
285 |
+
top: auto;
|
286 |
+
right: auto;
|
287 |
+
bottom: 0;
|
288 |
+
left: 0;
|
289 |
+
}
|
290 |
+
body.swal2-toast-shown .swal2-container.swal2-bottom {
|
291 |
+
top: auto;
|
292 |
+
right: auto;
|
293 |
+
bottom: 0;
|
294 |
+
left: 50%;
|
295 |
+
transform: translateX(-50%);
|
296 |
+
}
|
297 |
+
body.swal2-toast-shown .swal2-container.swal2-bottom-end, body.swal2-toast-shown .swal2-container.swal2-bottom-right {
|
298 |
+
top: auto;
|
299 |
+
right: 0;
|
300 |
+
bottom: 0;
|
301 |
+
left: auto;
|
302 |
+
}
|
303 |
+
body.swal2-toast-column .swal2-toast {
|
304 |
+
flex-direction: column;
|
305 |
+
align-items: stretch;
|
306 |
+
}
|
307 |
+
body.swal2-toast-column .swal2-toast .swal2-actions {
|
308 |
+
flex: 1;
|
309 |
+
align-self: stretch;
|
310 |
+
height: 2.2em;
|
311 |
+
margin-top: 0.3125em;
|
312 |
+
}
|
313 |
+
body.swal2-toast-column .swal2-toast .swal2-loading {
|
314 |
+
justify-content: center;
|
315 |
+
}
|
316 |
+
body.swal2-toast-column .swal2-toast .swal2-input {
|
317 |
+
height: 2em;
|
318 |
+
margin: 0.3125em auto;
|
319 |
+
font-size: 1em;
|
320 |
+
}
|
321 |
+
body.swal2-toast-column .swal2-toast .swal2-validation-message {
|
322 |
+
font-size: 1em;
|
323 |
+
}
|
324 |
+
|
325 |
+
.swal2-popup.swal2-toast {
|
326 |
+
flex-direction: row;
|
327 |
+
align-items: center;
|
328 |
+
width: auto;
|
329 |
+
padding: 0.625em;
|
330 |
+
overflow-y: hidden;
|
331 |
+
box-shadow: 0 0 0.625em #d9d9d9;
|
332 |
+
}
|
333 |
+
.swal2-popup.swal2-toast .swal2-header {
|
334 |
+
flex-direction: row;
|
335 |
+
}
|
336 |
+
.swal2-popup.swal2-toast .swal2-title {
|
337 |
+
flex-grow: 1;
|
338 |
+
justify-content: flex-start;
|
339 |
+
margin: 0 0.6em;
|
340 |
+
font-size: 1em;
|
341 |
+
}
|
342 |
+
.swal2-popup.swal2-toast .swal2-footer {
|
343 |
+
margin: 0.5em 0 0;
|
344 |
+
padding: 0.5em 0 0;
|
345 |
+
font-size: 0.8em;
|
346 |
+
}
|
347 |
+
.swal2-popup.swal2-toast .swal2-close {
|
348 |
+
position: static;
|
349 |
+
width: 0.8em;
|
350 |
+
height: 0.8em;
|
351 |
+
line-height: 0.8;
|
352 |
+
}
|
353 |
+
.swal2-popup.swal2-toast .swal2-content {
|
354 |
+
justify-content: flex-start;
|
355 |
+
font-size: 1em;
|
356 |
+
}
|
357 |
+
.swal2-popup.swal2-toast .swal2-icon {
|
358 |
+
width: 2em;
|
359 |
+
min-width: 2em;
|
360 |
+
height: 2em;
|
361 |
+
margin: 0;
|
362 |
+
}
|
363 |
+
.swal2-popup.swal2-toast .swal2-icon::before {
|
364 |
+
display: flex;
|
365 |
+
align-items: center;
|
366 |
+
font-size: 2em;
|
367 |
+
font-weight: bold;
|
368 |
+
}
|
369 |
+
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
|
370 |
+
.swal2-popup.swal2-toast .swal2-icon::before {
|
371 |
+
font-size: 0.25em;
|
372 |
+
}
|
373 |
+
}
|
374 |
+
.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring {
|
375 |
+
width: 2em;
|
376 |
+
height: 2em;
|
377 |
+
}
|
378 |
+
.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line] {
|
379 |
+
top: 0.875em;
|
380 |
+
width: 1.375em;
|
381 |
+
}
|
382 |
+
.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left] {
|
383 |
+
left: 0.3125em;
|
384 |
+
}
|
385 |
+
.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right] {
|
386 |
+
right: 0.3125em;
|
387 |
+
}
|
388 |
+
.swal2-popup.swal2-toast .swal2-actions {
|
389 |
+
flex-basis: auto !important;
|
390 |
+
width: auto;
|
391 |
+
height: auto;
|
392 |
+
margin: 0 0.3125em;
|
393 |
+
}
|
394 |
+
.swal2-popup.swal2-toast .swal2-styled {
|
395 |
+
margin: 0 0.3125em;
|
396 |
+
padding: 0.3125em 0.625em;
|
397 |
+
font-size: 1em;
|
398 |
+
}
|
399 |
+
.swal2-popup.swal2-toast .swal2-styled:focus {
|
400 |
+
box-shadow: 0 0 0 0.0625em #fff, 0 0 0 0.125em rgba(50, 100, 150, 0.4);
|
401 |
+
}
|
402 |
+
.swal2-popup.swal2-toast .swal2-success {
|
403 |
+
border-color: #a5dc86;
|
404 |
+
}
|
405 |
+
.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line] {
|
406 |
+
position: absolute;
|
407 |
+
width: 1.6em;
|
408 |
+
height: 3em;
|
409 |
+
transform: rotate(45deg);
|
410 |
+
border-radius: 50%;
|
411 |
+
}
|
412 |
+
.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left] {
|
413 |
+
top: -0.8em;
|
414 |
+
left: -0.5em;
|
415 |
+
transform: rotate(-45deg);
|
416 |
+
transform-origin: 2em 2em;
|
417 |
+
border-radius: 4em 0 0 4em;
|
418 |
+
}
|
419 |
+
.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right] {
|
420 |
+
top: -0.25em;
|
421 |
+
left: 0.9375em;
|
422 |
+
transform-origin: 0 1.5em;
|
423 |
+
border-radius: 0 4em 4em 0;
|
424 |
+
}
|
425 |
+
.swal2-popup.swal2-toast .swal2-success .swal2-success-ring {
|
426 |
+
width: 2em;
|
427 |
+
height: 2em;
|
428 |
+
}
|
429 |
+
.swal2-popup.swal2-toast .swal2-success .swal2-success-fix {
|
430 |
+
top: 0;
|
431 |
+
left: 0.4375em;
|
432 |
+
width: 0.4375em;
|
433 |
+
height: 2.6875em;
|
434 |
+
}
|
435 |
+
.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line] {
|
436 |
+
height: 0.3125em;
|
437 |
+
}
|
438 |
+
.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip] {
|
439 |
+
top: 1.125em;
|
440 |
+
left: 0.1875em;
|
441 |
+
width: 0.75em;
|
442 |
+
}
|
443 |
+
.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long] {
|
444 |
+
top: 0.9375em;
|
445 |
+
right: 0.1875em;
|
446 |
+
width: 1.375em;
|
447 |
+
}
|
448 |
+
.swal2-popup.swal2-toast.swal2-show {
|
449 |
+
-webkit-animation: swal2-toast-show 0.5s;
|
450 |
+
animation: swal2-toast-show 0.5s;
|
451 |
+
}
|
452 |
+
.swal2-popup.swal2-toast.swal2-hide {
|
453 |
+
-webkit-animation: swal2-toast-hide 0.1s forwards;
|
454 |
+
animation: swal2-toast-hide 0.1s forwards;
|
455 |
+
}
|
456 |
+
.swal2-popup.swal2-toast .swal2-animate-success-icon .swal2-success-line-tip {
|
457 |
+
-webkit-animation: swal2-toast-animate-success-line-tip 0.75s;
|
458 |
+
animation: swal2-toast-animate-success-line-tip 0.75s;
|
459 |
+
}
|
460 |
+
.swal2-popup.swal2-toast .swal2-animate-success-icon .swal2-success-line-long {
|
461 |
+
-webkit-animation: swal2-toast-animate-success-line-long 0.75s;
|
462 |
+
animation: swal2-toast-animate-success-line-long 0.75s;
|
463 |
+
}
|
464 |
+
|
465 |
+
@-webkit-keyframes swal2-toast-show {
|
466 |
+
0% {
|
467 |
+
transform: translateY(-0.625em) rotateZ(2deg);
|
468 |
+
}
|
469 |
+
33% {
|
470 |
+
transform: translateY(0) rotateZ(-2deg);
|
471 |
+
}
|
472 |
+
66% {
|
473 |
+
transform: translateY(0.3125em) rotateZ(2deg);
|
474 |
+
}
|
475 |
+
100% {
|
476 |
+
transform: translateY(0) rotateZ(0deg);
|
477 |
+
}
|
478 |
+
}
|
479 |
+
|
480 |
+
@keyframes swal2-toast-show {
|
481 |
+
0% {
|
482 |
+
transform: translateY(-0.625em) rotateZ(2deg);
|
483 |
+
}
|
484 |
+
33% {
|
485 |
+
transform: translateY(0) rotateZ(-2deg);
|
486 |
+
}
|
487 |
+
66% {
|
488 |
+
transform: translateY(0.3125em) rotateZ(2deg);
|
489 |
+
}
|
490 |
+
100% {
|
491 |
+
transform: translateY(0) rotateZ(0deg);
|
492 |
+
}
|
493 |
+
}
|
494 |
+
@-webkit-keyframes swal2-toast-hide {
|
495 |
+
100% {
|
496 |
+
transform: rotateZ(1deg);
|
497 |
+
opacity: 0;
|
498 |
+
}
|
499 |
+
}
|
500 |
+
@keyframes swal2-toast-hide {
|
501 |
+
100% {
|
502 |
+
transform: rotateZ(1deg);
|
503 |
+
opacity: 0;
|
504 |
+
}
|
505 |
+
}
|
506 |
+
@-webkit-keyframes swal2-toast-animate-success-line-tip {
|
507 |
+
0% {
|
508 |
+
top: 0.5625em;
|
509 |
+
left: 0.0625em;
|
510 |
+
width: 0;
|
511 |
+
}
|
512 |
+
54% {
|
513 |
+
top: 0.125em;
|
514 |
+
left: 0.125em;
|
515 |
+
width: 0;
|
516 |
+
}
|
517 |
+
70% {
|
518 |
+
top: 0.625em;
|
519 |
+
left: -0.25em;
|
520 |
+
width: 1.625em;
|
521 |
+
}
|
522 |
+
84% {
|
523 |
+
top: 1.0625em;
|
524 |
+
left: 0.75em;
|
525 |
+
width: 0.5em;
|
526 |
+
}
|
527 |
+
100% {
|
528 |
+
top: 1.125em;
|
529 |
+
left: 0.1875em;
|
530 |
+
width: 0.75em;
|
531 |
+
}
|
532 |
+
}
|
533 |
+
@keyframes swal2-toast-animate-success-line-tip {
|
534 |
+
0% {
|
535 |
+
top: 0.5625em;
|
536 |
+
left: 0.0625em;
|
537 |
+
width: 0;
|
538 |
+
}
|
539 |
+
54% {
|
540 |
+
top: 0.125em;
|
541 |
+
left: 0.125em;
|
542 |
+
width: 0;
|
543 |
+
}
|
544 |
+
70% {
|
545 |
+
top: 0.625em;
|
546 |
+
left: -0.25em;
|
547 |
+
width: 1.625em;
|
548 |
+
}
|
549 |
+
84% {
|
550 |
+
top: 1.0625em;
|
551 |
+
left: 0.75em;
|
552 |
+
width: 0.5em;
|
553 |
+
}
|
554 |
+
100% {
|
555 |
+
top: 1.125em;
|
556 |
+
left: 0.1875em;
|
557 |
+
width: 0.75em;
|
558 |
+
}
|
559 |
+
}
|
560 |
+
@-webkit-keyframes swal2-toast-animate-success-line-long {
|
561 |
+
0% {
|
562 |
+
top: 1.625em;
|
563 |
+
right: 1.375em;
|
564 |
+
width: 0;
|
565 |
+
}
|
566 |
+
65% {
|
567 |
+
top: 1.25em;
|
568 |
+
right: 0.9375em;
|
569 |
+
width: 0;
|
570 |
+
}
|
571 |
+
84% {
|
572 |
+
top: 0.9375em;
|
573 |
+
right: 0;
|
574 |
+
width: 1.125em;
|
575 |
+
}
|
576 |
+
100% {
|
577 |
+
top: 0.9375em;
|
578 |
+
right: 0.1875em;
|
579 |
+
width: 1.375em;
|
580 |
+
}
|
581 |
+
}
|
582 |
+
@keyframes swal2-toast-animate-success-line-long {
|
583 |
+
0% {
|
584 |
+
top: 1.625em;
|
585 |
+
right: 1.375em;
|
586 |
+
width: 0;
|
587 |
+
}
|
588 |
+
65% {
|
589 |
+
top: 1.25em;
|
590 |
+
right: 0.9375em;
|
591 |
+
width: 0;
|
592 |
+
}
|
593 |
+
84% {
|
594 |
+
top: 0.9375em;
|
595 |
+
right: 0;
|
596 |
+
width: 1.125em;
|
597 |
+
}
|
598 |
+
100% {
|
599 |
+
top: 0.9375em;
|
600 |
+
right: 0.1875em;
|
601 |
+
width: 1.375em;
|
602 |
+
}
|
603 |
+
}
|
604 |
+
body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) {
|
605 |
+
overflow: hidden;
|
606 |
+
}
|
607 |
+
body.swal2-height-auto {
|
608 |
+
height: auto !important;
|
609 |
+
}
|
610 |
+
body.swal2-no-backdrop .swal2-shown {
|
611 |
+
top: auto;
|
612 |
+
right: auto;
|
613 |
+
bottom: auto;
|
614 |
+
left: auto;
|
615 |
+
max-width: calc(100% - 0.625em * 2);
|
616 |
+
background-color: transparent;
|
617 |
+
}
|
618 |
+
body.swal2-no-backdrop .swal2-shown > .swal2-modal {
|
619 |
+
box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
|
620 |
+
}
|
621 |
+
body.swal2-no-backdrop .swal2-shown.swal2-top {
|
622 |
+
top: 0;
|
623 |
+
left: 50%;
|
624 |
+
transform: translateX(-50%);
|
625 |
+
}
|
626 |
+
body.swal2-no-backdrop .swal2-shown.swal2-top-start, body.swal2-no-backdrop .swal2-shown.swal2-top-left {
|
627 |
+
top: 0;
|
628 |
+
left: 0;
|
629 |
+
}
|
630 |
+
body.swal2-no-backdrop .swal2-shown.swal2-top-end, body.swal2-no-backdrop .swal2-shown.swal2-top-right {
|
631 |
+
top: 0;
|
632 |
+
right: 0;
|
633 |
+
}
|
634 |
+
body.swal2-no-backdrop .swal2-shown.swal2-center {
|
635 |
+
top: 50%;
|
636 |
+
left: 50%;
|
637 |
+
transform: translate(-50%, -50%);
|
638 |
+
}
|
639 |
+
body.swal2-no-backdrop .swal2-shown.swal2-center-start, body.swal2-no-backdrop .swal2-shown.swal2-center-left {
|
640 |
+
top: 50%;
|
641 |
+
left: 0;
|
642 |
+
transform: translateY(-50%);
|
643 |
+
}
|
644 |
+
body.swal2-no-backdrop .swal2-shown.swal2-center-end, body.swal2-no-backdrop .swal2-shown.swal2-center-right {
|
645 |
+
top: 50%;
|
646 |
+
right: 0;
|
647 |
+
transform: translateY(-50%);
|
648 |
+
}
|
649 |
+
body.swal2-no-backdrop .swal2-shown.swal2-bottom {
|
650 |
+
bottom: 0;
|
651 |
+
left: 50%;
|
652 |
+
transform: translateX(-50%);
|
653 |
+
}
|
654 |
+
body.swal2-no-backdrop .swal2-shown.swal2-bottom-start, body.swal2-no-backdrop .swal2-shown.swal2-bottom-left {
|
655 |
+
bottom: 0;
|
656 |
+
left: 0;
|
657 |
+
}
|
658 |
+
body.swal2-no-backdrop .swal2-shown.swal2-bottom-end, body.swal2-no-backdrop .swal2-shown.swal2-bottom-right {
|
659 |
+
right: 0;
|
660 |
+
bottom: 0;
|
661 |
+
}
|
662 |
+
|
663 |
+
.swal2-container {
|
664 |
+
display: flex;
|
665 |
+
position: fixed;
|
666 |
+
z-index: 1060;
|
667 |
+
top: 0;
|
668 |
+
right: 0;
|
669 |
+
bottom: 0;
|
670 |
+
left: 0;
|
671 |
+
flex-direction: row;
|
672 |
+
align-items: center;
|
673 |
+
justify-content: center;
|
674 |
+
padding: 0.625em;
|
675 |
+
overflow-x: hidden;
|
676 |
+
background-color: transparent;
|
677 |
+
-webkit-overflow-scrolling: touch;
|
678 |
+
}
|
679 |
+
.swal2-container.swal2-top {
|
680 |
+
align-items: flex-start;
|
681 |
+
}
|
682 |
+
.swal2-container.swal2-top-start, .swal2-container.swal2-top-left {
|
683 |
+
align-items: flex-start;
|
684 |
+
justify-content: flex-start;
|
685 |
+
}
|
686 |
+
.swal2-container.swal2-top-end, .swal2-container.swal2-top-right {
|
687 |
+
align-items: flex-start;
|
688 |
+
justify-content: flex-end;
|
689 |
+
}
|
690 |
+
.swal2-container.swal2-center {
|
691 |
+
align-items: center;
|
692 |
+
}
|
693 |
+
.swal2-container.swal2-center-start, .swal2-container.swal2-center-left {
|
694 |
+
align-items: center;
|
695 |
+
justify-content: flex-start;
|
696 |
+
}
|
697 |
+
.swal2-container.swal2-center-end, .swal2-container.swal2-center-right {
|
698 |
+
align-items: center;
|
699 |
+
justify-content: flex-end;
|
700 |
+
}
|
701 |
+
.swal2-container.swal2-bottom {
|
702 |
+
align-items: flex-end;
|
703 |
+
}
|
704 |
+
.swal2-container.swal2-bottom-start, .swal2-container.swal2-bottom-left {
|
705 |
+
align-items: flex-end;
|
706 |
+
justify-content: flex-start;
|
707 |
+
}
|
708 |
+
.swal2-container.swal2-bottom-end, .swal2-container.swal2-bottom-right {
|
709 |
+
align-items: flex-end;
|
710 |
+
justify-content: flex-end;
|
711 |
+
}
|
712 |
+
.swal2-container.swal2-bottom > :first-child, .swal2-container.swal2-bottom-start > :first-child, .swal2-container.swal2-bottom-left > :first-child, .swal2-container.swal2-bottom-end > :first-child, .swal2-container.swal2-bottom-right > :first-child {
|
713 |
+
margin-top: auto;
|
714 |
+
}
|
715 |
+
.swal2-container.swal2-grow-fullscreen > .swal2-modal {
|
716 |
+
display: flex !important;
|
717 |
+
flex: 1;
|
718 |
+
align-self: stretch;
|
719 |
+
justify-content: center;
|
720 |
+
}
|
721 |
+
.swal2-container.swal2-grow-row > .swal2-modal {
|
722 |
+
display: flex !important;
|
723 |
+
flex: 1;
|
724 |
+
align-content: center;
|
725 |
+
justify-content: center;
|
726 |
+
}
|
727 |
+
.swal2-container.swal2-grow-column {
|
728 |
+
flex: 1;
|
729 |
+
flex-direction: column;
|
730 |
+
}
|
731 |
+
.swal2-container.swal2-grow-column.swal2-top, .swal2-container.swal2-grow-column.swal2-center, .swal2-container.swal2-grow-column.swal2-bottom {
|
732 |
+
align-items: center;
|
733 |
+
}
|
734 |
+
.swal2-container.swal2-grow-column.swal2-top-start, .swal2-container.swal2-grow-column.swal2-center-start, .swal2-container.swal2-grow-column.swal2-bottom-start, .swal2-container.swal2-grow-column.swal2-top-left, .swal2-container.swal2-grow-column.swal2-center-left, .swal2-container.swal2-grow-column.swal2-bottom-left {
|
735 |
+
align-items: flex-start;
|
736 |
+
}
|
737 |
+
.swal2-container.swal2-grow-column.swal2-top-end, .swal2-container.swal2-grow-column.swal2-center-end, .swal2-container.swal2-grow-column.swal2-bottom-end, .swal2-container.swal2-grow-column.swal2-top-right, .swal2-container.swal2-grow-column.swal2-center-right, .swal2-container.swal2-grow-column.swal2-bottom-right {
|
738 |
+
align-items: flex-end;
|
739 |
+
}
|
740 |
+
.swal2-container.swal2-grow-column > .swal2-modal {
|
741 |
+
display: flex !important;
|
742 |
+
flex: 1;
|
743 |
+
align-content: center;
|
744 |
+
justify-content: center;
|
745 |
+
}
|
746 |
+
.swal2-container:not(.swal2-top):not(.swal2-top-start):not(.swal2-top-end):not(.swal2-top-left):not(.swal2-top-right):not(.swal2-center-start):not(.swal2-center-end):not(.swal2-center-left):not(.swal2-center-right):not(.swal2-bottom):not(.swal2-bottom-start):not(.swal2-bottom-end):not(.swal2-bottom-left):not(.swal2-bottom-right):not(.swal2-grow-fullscreen) > .swal2-modal {
|
747 |
+
margin: auto;
|
748 |
+
}
|
749 |
+
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
|
750 |
+
.swal2-container .swal2-modal {
|
751 |
+
margin: 0 !important;
|
752 |
+
}
|
753 |
+
}
|
754 |
+
.swal2-container.swal2-fade {
|
755 |
+
transition: background-color 0.1s;
|
756 |
+
}
|
757 |
+
.swal2-container.swal2-shown {
|
758 |
+
background-color: rgba(0, 0, 0, 0.4);
|
759 |
+
}
|
760 |
+
|
761 |
+
.swal2-popup {
|
762 |
+
display: none;
|
763 |
+
position: relative;
|
764 |
+
box-sizing: border-box;
|
765 |
+
flex-direction: column;
|
766 |
+
justify-content: center;
|
767 |
+
width: 32em;
|
768 |
+
max-width: 100%;
|
769 |
+
padding: 1.25em;
|
770 |
+
border: none;
|
771 |
+
border-radius: 0.3125em;
|
772 |
+
background: #fff;
|
773 |
+
font-family: inherit;
|
774 |
+
font-size: 1rem;
|
775 |
+
}
|
776 |
+
.swal2-popup:focus {
|
777 |
+
outline: none;
|
778 |
+
}
|
779 |
+
.swal2-popup.swal2-loading {
|
780 |
+
overflow-y: hidden;
|
781 |
+
}
|
782 |
+
|
783 |
+
.swal2-header {
|
784 |
+
display: flex;
|
785 |
+
flex-direction: column;
|
786 |
+
align-items: center;
|
787 |
+
}
|
788 |
+
|
789 |
+
.swal2-title {
|
790 |
+
position: relative;
|
791 |
+
max-width: 100%;
|
792 |
+
margin: 0 0 0.4em;
|
793 |
+
padding: 0;
|
794 |
+
color: #595959;
|
795 |
+
font-size: 1.875em;
|
796 |
+
font-weight: 600;
|
797 |
+
text-align: center;
|
798 |
+
text-transform: none;
|
799 |
+
word-wrap: break-word;
|
800 |
+
}
|
801 |
+
|
802 |
+
.swal2-actions {
|
803 |
+
display: flex;
|
804 |
+
z-index: 1;
|
805 |
+
flex-wrap: wrap;
|
806 |
+
align-items: center;
|
807 |
+
justify-content: center;
|
808 |
+
width: 100%;
|
809 |
+
margin: 1.25em auto 0;
|
810 |
+
}
|
811 |
+
.swal2-actions:not(.swal2-loading) .swal2-styled[disabled] {
|
812 |
+
opacity: 0.4;
|
813 |
+
}
|
814 |
+
.swal2-actions:not(.swal2-loading) .swal2-styled:hover {
|
815 |
+
background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1));
|
816 |
+
}
|
817 |
+
.swal2-actions:not(.swal2-loading) .swal2-styled:active {
|
818 |
+
background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2));
|
819 |
+
}
|
820 |
+
.swal2-actions.swal2-loading .swal2-styled.swal2-confirm {
|
821 |
+
box-sizing: border-box;
|
822 |
+
width: 2.5em;
|
823 |
+
height: 2.5em;
|
824 |
+
margin: 0.46875em;
|
825 |
+
padding: 0;
|
826 |
+
-webkit-animation: swal2-rotate-loading 1.5s linear 0s infinite normal;
|
827 |
+
animation: swal2-rotate-loading 1.5s linear 0s infinite normal;
|
828 |
+
border: 0.25em solid transparent;
|
829 |
+
border-radius: 100%;
|
830 |
+
border-color: transparent;
|
831 |
+
background-color: transparent !important;
|
832 |
+
color: transparent;
|
833 |
+
cursor: default;
|
834 |
+
-webkit-user-select: none;
|
835 |
+
-moz-user-select: none;
|
836 |
+
-ms-user-select: none;
|
837 |
+
user-select: none;
|
838 |
+
}
|
839 |
+
.swal2-actions.swal2-loading .swal2-styled.swal2-cancel {
|
840 |
+
margin-right: 30px;
|
841 |
+
margin-left: 30px;
|
842 |
+
}
|
843 |
+
.swal2-actions.swal2-loading :not(.swal2-styled).swal2-confirm::after {
|
844 |
+
content: "";
|
845 |
+
display: inline-block;
|
846 |
+
width: 15px;
|
847 |
+
height: 15px;
|
848 |
+
margin-left: 5px;
|
849 |
+
-webkit-animation: swal2-rotate-loading 1.5s linear 0s infinite normal;
|
850 |
+
animation: swal2-rotate-loading 1.5s linear 0s infinite normal;
|
851 |
+
border: 3px solid #999999;
|
852 |
+
border-radius: 50%;
|
853 |
+
border-right-color: transparent;
|
854 |
+
box-shadow: 1px 1px 1px #fff;
|
855 |
+
}
|
856 |
+
|
857 |
+
.swal2-styled {
|
858 |
+
margin: 0.3125em;
|
859 |
+
padding: 0.625em 2em;
|
860 |
+
box-shadow: none;
|
861 |
+
font-weight: 500;
|
862 |
+
}
|
863 |
+
.swal2-styled:not([disabled]) {
|
864 |
+
cursor: pointer;
|
865 |
+
}
|
866 |
+
.swal2-styled.swal2-confirm {
|
867 |
+
border: 0;
|
868 |
+
border-radius: 0.25em;
|
869 |
+
background: initial;
|
870 |
+
background-color: #3085d6;
|
871 |
+
color: #fff;
|
872 |
+
font-size: 1.0625em;
|
873 |
+
}
|
874 |
+
.swal2-styled.swal2-cancel {
|
875 |
+
border: 0;
|
876 |
+
border-radius: 0.25em;
|
877 |
+
background: initial;
|
878 |
+
background-color: #aaa;
|
879 |
+
color: #fff;
|
880 |
+
font-size: 1.0625em;
|
881 |
+
}
|
882 |
+
.swal2-styled:focus {
|
883 |
+
outline: none;
|
884 |
+
box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(50, 100, 150, 0.4);
|
885 |
+
}
|
886 |
+
.swal2-styled::-moz-focus-inner {
|
887 |
+
border: 0;
|
888 |
+
}
|
889 |
+
|
890 |
+
.swal2-footer {
|
891 |
+
justify-content: center;
|
892 |
+
margin: 1.25em 0 0;
|
893 |
+
padding: 1em 0 0;
|
894 |
+
border-top: 1px solid #eee;
|
895 |
+
color: #545454;
|
896 |
+
font-size: 1em;
|
897 |
+
}
|
898 |
+
|
899 |
+
.swal2-image {
|
900 |
+
max-width: 100%;
|
901 |
+
margin: 1.25em auto;
|
902 |
+
}
|
903 |
+
|
904 |
+
.swal2-close {
|
905 |
+
position: absolute;
|
906 |
+
z-index: 2;
|
907 |
+
/* 1617 */
|
908 |
+
top: 0;
|
909 |
+
right: 0;
|
910 |
+
justify-content: center;
|
911 |
+
width: 1.2em;
|
912 |
+
height: 1.2em;
|
913 |
+
padding: 0;
|
914 |
+
overflow: hidden;
|
915 |
+
transition: color 0.1s ease-out;
|
916 |
+
border: none;
|
917 |
+
border-radius: 0;
|
918 |
+
outline: initial;
|
919 |
+
background: transparent;
|
920 |
+
color: #cccccc;
|
921 |
+
font-family: serif;
|
922 |
+
font-size: 2.5em;
|
923 |
+
line-height: 1.2;
|
924 |
+
cursor: pointer;
|
925 |
+
}
|
926 |
+
.swal2-close:hover {
|
927 |
+
transform: none;
|
928 |
+
background: transparent;
|
929 |
+
color: #f27474;
|
930 |
+
}
|
931 |
+
|
932 |
+
.swal2-content {
|
933 |
+
z-index: 1;
|
934 |
+
justify-content: center;
|
935 |
+
margin: 0;
|
936 |
+
padding: 0;
|
937 |
+
color: #545454;
|
938 |
+
font-size: 1.125em;
|
939 |
+
font-weight: normal;
|
940 |
+
line-height: normal;
|
941 |
+
text-align: center;
|
942 |
+
word-wrap: break-word;
|
943 |
+
}
|
944 |
+
|
945 |
+
.swal2-input,
|
946 |
+
.swal2-file,
|
947 |
+
.swal2-textarea,
|
948 |
+
.swal2-select,
|
949 |
+
.swal2-radio,
|
950 |
+
.swal2-checkbox {
|
951 |
+
margin: 1em auto;
|
952 |
+
}
|
953 |
+
|
954 |
+
.swal2-input,
|
955 |
+
.swal2-file,
|
956 |
+
.swal2-textarea {
|
957 |
+
box-sizing: border-box;
|
958 |
+
width: 100%;
|
959 |
+
transition: border-color 0.3s, box-shadow 0.3s;
|
960 |
+
border: 1px solid #d9d9d9;
|
961 |
+
border-radius: 0.1875em;
|
962 |
+
background: inherit;
|
963 |
+
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06);
|
964 |
+
color: inherit;
|
965 |
+
font-size: 1.125em;
|
966 |
+
}
|
967 |
+
.swal2-input.swal2-inputerror,
|
968 |
+
.swal2-file.swal2-inputerror,
|
969 |
+
.swal2-textarea.swal2-inputerror {
|
970 |
+
border-color: #f27474 !important;
|
971 |
+
box-shadow: 0 0 2px #f27474 !important;
|
972 |
+
}
|
973 |
+
.swal2-input:focus,
|
974 |
+
.swal2-file:focus,
|
975 |
+
.swal2-textarea:focus {
|
976 |
+
border: 1px solid #b4dbed;
|
977 |
+
outline: none;
|
978 |
+
box-shadow: 0 0 3px #c4e6f5;
|
979 |
+
}
|
980 |
+
.swal2-input::-webkit-input-placeholder,
|
981 |
+
.swal2-file::-webkit-input-placeholder,
|
982 |
+
.swal2-textarea::-webkit-input-placeholder {
|
983 |
+
color: #cccccc;
|
984 |
+
}
|
985 |
+
.swal2-input::-moz-placeholder,
|
986 |
+
.swal2-file::-moz-placeholder,
|
987 |
+
.swal2-textarea::-moz-placeholder {
|
988 |
+
color: #cccccc;
|
989 |
+
}
|
990 |
+
.swal2-input:-ms-input-placeholder,
|
991 |
+
.swal2-file:-ms-input-placeholder,
|
992 |
+
.swal2-textarea:-ms-input-placeholder {
|
993 |
+
color: #cccccc;
|
994 |
+
}
|
995 |
+
.swal2-input::-ms-input-placeholder,
|
996 |
+
.swal2-file::-ms-input-placeholder,
|
997 |
+
.swal2-textarea::-ms-input-placeholder {
|
998 |
+
color: #cccccc;
|
999 |
+
}
|
1000 |
+
.swal2-input::placeholder,
|
1001 |
+
.swal2-file::placeholder,
|
1002 |
+
.swal2-textarea::placeholder {
|
1003 |
+
color: #cccccc;
|
1004 |
+
}
|
1005 |
+
|
1006 |
+
.swal2-range {
|
1007 |
+
margin: 1em auto;
|
1008 |
+
background: inherit;
|
1009 |
+
}
|
1010 |
+
.swal2-range input {
|
1011 |
+
width: 80%;
|
1012 |
+
}
|
1013 |
+
.swal2-range output {
|
1014 |
+
width: 20%;
|
1015 |
+
color: inherit;
|
1016 |
+
font-weight: 600;
|
1017 |
+
text-align: center;
|
1018 |
+
}
|
1019 |
+
.swal2-range input,
|
1020 |
+
.swal2-range output {
|
1021 |
+
height: 2.625em;
|
1022 |
+
padding: 0;
|
1023 |
+
font-size: 1.125em;
|
1024 |
+
line-height: 2.625em;
|
1025 |
+
}
|
1026 |
+
|
1027 |
+
.swal2-input {
|
1028 |
+
height: 2.625em;
|
1029 |
+
padding: 0 0.75em;
|
1030 |
+
}
|
1031 |
+
.swal2-input[type=number] {
|
1032 |
+
max-width: 10em;
|
1033 |
+
}
|
1034 |
+
|
1035 |
+
.swal2-file {
|
1036 |
+
background: inherit;
|
1037 |
+
font-size: 1.125em;
|
1038 |
+
}
|
1039 |
+
|
1040 |
+
.swal2-textarea {
|
1041 |
+
height: 6.75em;
|
1042 |
+
padding: 0.75em;
|
1043 |
+
}
|
1044 |
+
|
1045 |
+
.swal2-select {
|
1046 |
+
min-width: 50%;
|
1047 |
+
max-width: 100%;
|
1048 |
+
padding: 0.375em 0.625em;
|
1049 |
+
background: inherit;
|
1050 |
+
color: inherit;
|
1051 |
+
font-size: 1.125em;
|
1052 |
+
}
|
1053 |
+
|
1054 |
+
.swal2-radio,
|
1055 |
+
.swal2-checkbox {
|
1056 |
+
align-items: center;
|
1057 |
+
justify-content: center;
|
1058 |
+
background: inherit;
|
1059 |
+
color: inherit;
|
1060 |
+
}
|
1061 |
+
.swal2-radio label,
|
1062 |
+
.swal2-checkbox label {
|
1063 |
+
margin: 0 0.6em;
|
1064 |
+
font-size: 1.125em;
|
1065 |
+
}
|
1066 |
+
.swal2-radio input,
|
1067 |
+
.swal2-checkbox input {
|
1068 |
+
margin: 0 0.4em;
|
1069 |
+
}
|
1070 |
+
|
1071 |
+
.swal2-validation-message {
|
1072 |
+
display: none;
|
1073 |
+
align-items: center;
|
1074 |
+
justify-content: center;
|
1075 |
+
padding: 0.625em;
|
1076 |
+
overflow: hidden;
|
1077 |
+
background: #f0f0f0;
|
1078 |
+
color: #666666;
|
1079 |
+
font-size: 1em;
|
1080 |
+
font-weight: 300;
|
1081 |
+
}
|
1082 |
+
.swal2-validation-message::before {
|
1083 |
+
content: "!";
|
1084 |
+
display: inline-block;
|
1085 |
+
width: 1.5em;
|
1086 |
+
min-width: 1.5em;
|
1087 |
+
height: 1.5em;
|
1088 |
+
margin: 0 0.625em;
|
1089 |
+
zoom: normal;
|
1090 |
+
border-radius: 50%;
|
1091 |
+
background-color: #f27474;
|
1092 |
+
color: #fff;
|
1093 |
+
font-weight: 600;
|
1094 |
+
line-height: 1.5em;
|
1095 |
+
text-align: center;
|
1096 |
+
}
|
1097 |
+
|
1098 |
+
@supports (-ms-accelerator: true) {
|
1099 |
+
.swal2-range input {
|
1100 |
+
width: 100% !important;
|
1101 |
+
}
|
1102 |
+
.swal2-range output {
|
1103 |
+
display: none;
|
1104 |
+
}
|
1105 |
+
}
|
1106 |
+
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
|
1107 |
+
.swal2-range input {
|
1108 |
+
width: 100% !important;
|
1109 |
+
}
|
1110 |
+
.swal2-range output {
|
1111 |
+
display: none;
|
1112 |
+
}
|
1113 |
+
}
|
1114 |
+
@-moz-document url-prefix() {
|
1115 |
+
.swal2-close:focus {
|
1116 |
+
outline: 2px solid rgba(50, 100, 150, 0.4);
|
1117 |
+
}
|
1118 |
+
}
|
1119 |
+
.swal2-icon {
|
1120 |
+
position: relative;
|
1121 |
+
box-sizing: content-box;
|
1122 |
+
justify-content: center;
|
1123 |
+
width: 5em;
|
1124 |
+
height: 5em;
|
1125 |
+
margin: 1.25em auto 1.875em;
|
1126 |
+
zoom: normal;
|
1127 |
+
border: 0.25em solid transparent;
|
1128 |
+
border-radius: 50%;
|
1129 |
+
font-family: inherit;
|
1130 |
+
line-height: 5em;
|
1131 |
+
cursor: default;
|
1132 |
+
-webkit-user-select: none;
|
1133 |
+
-moz-user-select: none;
|
1134 |
+
-ms-user-select: none;
|
1135 |
+
user-select: none;
|
1136 |
+
}
|
1137 |
+
.swal2-icon::before {
|
1138 |
+
display: flex;
|
1139 |
+
align-items: center;
|
1140 |
+
height: 92%;
|
1141 |
+
font-size: 3.75em;
|
1142 |
+
}
|
1143 |
+
.swal2-icon.swal2-error {
|
1144 |
+
border-color: #f27474;
|
1145 |
+
}
|
1146 |
+
.swal2-icon.swal2-error .swal2-x-mark {
|
1147 |
+
position: relative;
|
1148 |
+
flex-grow: 1;
|
1149 |
+
}
|
1150 |
+
.swal2-icon.swal2-error [class^=swal2-x-mark-line] {
|
1151 |
+
display: block;
|
1152 |
+
position: absolute;
|
1153 |
+
top: 2.3125em;
|
1154 |
+
width: 2.9375em;
|
1155 |
+
height: 0.3125em;
|
1156 |
+
border-radius: 0.125em;
|
1157 |
+
background-color: #f27474;
|
1158 |
+
}
|
1159 |
+
.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left] {
|
1160 |
+
left: 1.0625em;
|
1161 |
+
transform: rotate(45deg);
|
1162 |
+
}
|
1163 |
+
.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right] {
|
1164 |
+
right: 1em;
|
1165 |
+
transform: rotate(-45deg);
|
1166 |
+
}
|
1167 |
+
.swal2-icon.swal2-warning {
|
1168 |
+
border-color: #facea8;
|
1169 |
+
color: #f8bb86;
|
1170 |
+
}
|
1171 |
+
.swal2-icon.swal2-warning::before {
|
1172 |
+
content: "!";
|
1173 |
+
}
|
1174 |
+
.swal2-icon.swal2-info {
|
1175 |
+
border-color: #9de0f6;
|
1176 |
+
color: #3fc3ee;
|
1177 |
+
}
|
1178 |
+
.swal2-icon.swal2-info::before {
|
1179 |
+
content: "i";
|
1180 |
+
}
|
1181 |
+
.swal2-icon.swal2-question {
|
1182 |
+
border-color: #c9dae1;
|
1183 |
+
color: #87adbd;
|
1184 |
+
}
|
1185 |
+
.swal2-icon.swal2-question::before {
|
1186 |
+
content: "?";
|
1187 |
+
}
|
1188 |
+
.swal2-icon.swal2-question.swal2-arabic-question-mark::before {
|
1189 |
+
content: "؟";
|
1190 |
+
}
|
1191 |
+
.swal2-icon.swal2-success {
|
1192 |
+
border-color: #a5dc86;
|
1193 |
+
}
|
1194 |
+
.swal2-icon.swal2-success [class^=swal2-success-circular-line] {
|
1195 |
+
position: absolute;
|
1196 |
+
width: 3.75em;
|
1197 |
+
height: 7.5em;
|
1198 |
+
transform: rotate(45deg);
|
1199 |
+
border-radius: 50%;
|
1200 |
+
}
|
1201 |
+
.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=left] {
|
1202 |
+
top: -0.4375em;
|
1203 |
+
left: -2.0635em;
|
1204 |
+
transform: rotate(-45deg);
|
1205 |
+
transform-origin: 3.75em 3.75em;
|
1206 |
+
border-radius: 7.5em 0 0 7.5em;
|
1207 |
+
}
|
1208 |
+
.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=right] {
|
1209 |
+
top: -0.6875em;
|
1210 |
+
left: 1.875em;
|
1211 |
+
transform: rotate(-45deg);
|
1212 |
+
transform-origin: 0 3.75em;
|
1213 |
+
border-radius: 0 7.5em 7.5em 0;
|
1214 |
+
}
|
1215 |
+
.swal2-icon.swal2-success .swal2-success-ring {
|
1216 |
+
position: absolute;
|
1217 |
+
z-index: 2;
|
1218 |
+
top: -0.25em;
|
1219 |
+
left: -0.25em;
|
1220 |
+
box-sizing: content-box;
|
1221 |
+
width: 100%;
|
1222 |
+
height: 100%;
|
1223 |
+
border: 0.25em solid rgba(165, 220, 134, 0.3);
|
1224 |
+
border-radius: 50%;
|
1225 |
+
}
|
1226 |
+
.swal2-icon.swal2-success .swal2-success-fix {
|
1227 |
+
position: absolute;
|
1228 |
+
z-index: 1;
|
1229 |
+
top: 0.5em;
|
1230 |
+
left: 1.625em;
|
1231 |
+
width: 0.4375em;
|
1232 |
+
height: 5.625em;
|
1233 |
+
transform: rotate(-45deg);
|
1234 |
+
}
|
1235 |
+
.swal2-icon.swal2-success [class^=swal2-success-line] {
|
1236 |
+
display: block;
|
1237 |
+
position: absolute;
|
1238 |
+
z-index: 2;
|
1239 |
+
height: 0.3125em;
|
1240 |
+
border-radius: 0.125em;
|
1241 |
+
background-color: #a5dc86;
|
1242 |
+
}
|
1243 |
+
.swal2-icon.swal2-success [class^=swal2-success-line][class$=tip] {
|
1244 |
+
top: 2.875em;
|
1245 |
+
left: 0.875em;
|
1246 |
+
width: 1.5625em;
|
1247 |
+
transform: rotate(45deg);
|
1248 |
+
}
|
1249 |
+
.swal2-icon.swal2-success [class^=swal2-success-line][class$=long] {
|
1250 |
+
top: 2.375em;
|
1251 |
+
right: 0.5em;
|
1252 |
+
width: 2.9375em;
|
1253 |
+
transform: rotate(-45deg);
|
1254 |
+
}
|
1255 |
+
|
1256 |
+
.swal2-progress-steps {
|
1257 |
+
align-items: center;
|
1258 |
+
margin: 0 0 1.25em;
|
1259 |
+
padding: 0;
|
1260 |
+
background: inherit;
|
1261 |
+
font-weight: 600;
|
1262 |
+
}
|
1263 |
+
.swal2-progress-steps li {
|
1264 |
+
display: inline-block;
|
1265 |
+
position: relative;
|
1266 |
+
}
|
1267 |
+
.swal2-progress-steps .swal2-progress-step {
|
1268 |
+
z-index: 20;
|
1269 |
+
width: 2em;
|
1270 |
+
height: 2em;
|
1271 |
+
border-radius: 2em;
|
1272 |
+
background: #3085d6;
|
1273 |
+
color: #fff;
|
1274 |
+
line-height: 2em;
|
1275 |
+
text-align: center;
|
1276 |
+
}
|
1277 |
+
.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step {
|
1278 |
+
background: #3085d6;
|
1279 |
+
}
|
1280 |
+
.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step ~ .swal2-progress-step {
|
1281 |
+
background: #add8e6;
|
1282 |
+
color: #fff;
|
1283 |
+
}
|
1284 |
+
.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step ~ .swal2-progress-step-line {
|
1285 |
+
background: #add8e6;
|
1286 |
+
}
|
1287 |
+
.swal2-progress-steps .swal2-progress-step-line {
|
1288 |
+
z-index: 10;
|
1289 |
+
width: 2.5em;
|
1290 |
+
height: 0.4em;
|
1291 |
+
margin: 0 -1px;
|
1292 |
+
background: #3085d6;
|
1293 |
+
}
|
1294 |
+
|
1295 |
+
[class^=swal2] {
|
1296 |
+
-webkit-tap-highlight-color: transparent;
|
1297 |
+
}
|
1298 |
+
|
1299 |
+
.swal2-show {
|
1300 |
+
-webkit-animation: swal2-show 0.3s;
|
1301 |
+
animation: swal2-show 0.3s;
|
1302 |
+
}
|
1303 |
+
.swal2-show.swal2-noanimation {
|
1304 |
+
-webkit-animation: none;
|
1305 |
+
animation: none;
|
1306 |
+
}
|
1307 |
+
|
1308 |
+
.swal2-hide {
|
1309 |
+
-webkit-animation: swal2-hide 0.15s forwards;
|
1310 |
+
animation: swal2-hide 0.15s forwards;
|
1311 |
+
}
|
1312 |
+
.swal2-hide.swal2-noanimation {
|
1313 |
+
-webkit-animation: none;
|
1314 |
+
animation: none;
|
1315 |
+
}
|
1316 |
+
|
1317 |
+
.swal2-rtl .swal2-close {
|
1318 |
+
right: auto;
|
1319 |
+
left: 0;
|
1320 |
+
}
|
1321 |
+
|
1322 |
+
.swal2-animate-success-icon .swal2-success-line-tip {
|
1323 |
+
-webkit-animation: swal2-animate-success-line-tip 0.75s;
|
1324 |
+
animation: swal2-animate-success-line-tip 0.75s;
|
1325 |
+
}
|
1326 |
+
.swal2-animate-success-icon .swal2-success-line-long {
|
1327 |
+
-webkit-animation: swal2-animate-success-line-long 0.75s;
|
1328 |
+
animation: swal2-animate-success-line-long 0.75s;
|
1329 |
+
}
|
1330 |
+
.swal2-animate-success-icon .swal2-success-circular-line-right {
|
1331 |
+
-webkit-animation: swal2-rotate-success-circular-line 4.25s ease-in;
|
1332 |
+
animation: swal2-rotate-success-circular-line 4.25s ease-in;
|
1333 |
+
}
|
1334 |
+
|
1335 |
+
.swal2-animate-error-icon {
|
1336 |
+
-webkit-animation: swal2-animate-error-icon 0.5s;
|
1337 |
+
animation: swal2-animate-error-icon 0.5s;
|
1338 |
+
}
|
1339 |
+
.swal2-animate-error-icon .swal2-x-mark {
|
1340 |
+
-webkit-animation: swal2-animate-error-x-mark 0.5s;
|
1341 |
+
animation: swal2-animate-error-x-mark 0.5s;
|
1342 |
+
}
|
1343 |
+
|
1344 |
+
@-webkit-keyframes swal2-rotate-loading {
|
1345 |
+
0% {
|
1346 |
+
transform: rotate(0deg);
|
1347 |
+
}
|
1348 |
+
100% {
|
1349 |
+
transform: rotate(360deg);
|
1350 |
+
}
|
1351 |
+
}
|
1352 |
+
|
1353 |
+
@keyframes swal2-rotate-loading {
|
1354 |
+
0% {
|
1355 |
+
transform: rotate(0deg);
|
1356 |
+
}
|
1357 |
+
100% {
|
1358 |
+
transform: rotate(360deg);
|
1359 |
+
}
|
1360 |
+
}
|
1361 |
+
@media print {
|
1362 |
+
body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) {
|
1363 |
+
overflow-y: scroll !important;
|
1364 |
+
}
|
1365 |
+
body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) > [aria-hidden=true] {
|
1366 |
+
display: none;
|
1367 |
+
}
|
1368 |
+
body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container {
|
1369 |
+
position: static !important;
|
1370 |
+
}
|
1371 |
+
}
|
assets/css/sweetalert2/sweetalert2.min.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
@charset "UTF-8";@-webkit-keyframes swal2-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}100%{transform:scale(1)}}@keyframes swal2-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}100%{transform:scale(1)}}@-webkit-keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(.5);opacity:0}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(.5);opacity:0}}@-webkit-keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.875em;width:1.5625em}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.875em;width:1.5625em}}@-webkit-keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@-webkit-keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@-webkit-keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(.4);opacity:0}50%{margin-top:1.625em;transform:scale(.4);opacity:0}80%{margin-top:-.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(.4);opacity:0}50%{margin-top:1.625em;transform:scale(.4);opacity:0}80%{margin-top:-.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@-webkit-keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0);opacity:1}}body.swal2-toast-shown .swal2-container{background-color:transparent}body.swal2-toast-shown .swal2-container.swal2-shown{background-color:transparent}body.swal2-toast-shown .swal2-container.swal2-top{top:0;right:auto;bottom:auto;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{top:0;right:0;bottom:auto;left:auto}body.swal2-toast-shown .swal2-container.swal2-top-left,body.swal2-toast-shown .swal2-container.swal2-top-start{top:0;right:auto;bottom:auto;left:0}body.swal2-toast-shown .swal2-container.swal2-center-left,body.swal2-toast-shown .swal2-container.swal2-center-start{top:50%;right:auto;bottom:auto;left:0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{top:50%;right:auto;bottom:auto;left:50%;transform:translate(-50%,-50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{top:50%;right:0;bottom:auto;left:auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-left,body.swal2-toast-shown .swal2-container.swal2-bottom-start{top:auto;right:auto;bottom:0;left:0}body.swal2-toast-shown .swal2-container.swal2-bottom{top:auto;right:auto;bottom:0;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{top:auto;right:0;bottom:0;left:auto}body.swal2-toast-column .swal2-toast{flex-direction:column;align-items:stretch}body.swal2-toast-column .swal2-toast .swal2-actions{flex:1;align-self:stretch;height:2.2em;margin-top:.3125em}body.swal2-toast-column .swal2-toast .swal2-loading{justify-content:center}body.swal2-toast-column .swal2-toast .swal2-input{height:2em;margin:.3125em auto;font-size:1em}body.swal2-toast-column .swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast{flex-direction:row;align-items:center;width:auto;padding:.625em;overflow-y:hidden;box-shadow:0 0 .625em #d9d9d9}.swal2-popup.swal2-toast .swal2-header{flex-direction:row}.swal2-popup.swal2-toast .swal2-title{flex-grow:1;justify-content:flex-start;margin:0 .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{position:static;width:.8em;height:.8em;line-height:.8}.swal2-popup.swal2-toast .swal2-content{justify-content:flex-start;font-size:1em}.swal2-popup.swal2-toast .swal2-icon{width:2em;min-width:2em;height:2em;margin:0}.swal2-popup.swal2-toast .swal2-icon::before{display:flex;align-items:center;font-size:2em;font-weight:700}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-popup.swal2-toast .swal2-icon::before{font-size:.25em}}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{flex-basis:auto!important;width:auto;height:auto;margin:0 .3125em}.swal2-popup.swal2-toast .swal2-styled{margin:0 .3125em;padding:.3125em .625em;font-size:1em}.swal2-popup.swal2-toast .swal2-styled:focus{box-shadow:0 0 0 .0625em #fff,0 0 0 .125em rgba(50,100,150,.4)}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.8em;left:-.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast.swal2-show{-webkit-animation:swal2-toast-show .5s;animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{-webkit-animation:swal2-toast-hide .1s forwards;animation:swal2-toast-hide .1s forwards}.swal2-popup.swal2-toast .swal2-animate-success-icon .swal2-success-line-tip{-webkit-animation:swal2-toast-animate-success-line-tip .75s;animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-animate-success-icon .swal2-success-line-long{-webkit-animation:swal2-toast-animate-success-line-long .75s;animation:swal2-toast-animate-success-line-long .75s}@-webkit-keyframes swal2-toast-show{0%{transform:translateY(-.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0)}}@keyframes swal2-toast-show{0%{transform:translateY(-.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0)}}@-webkit-keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@-webkit-keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@-webkit-keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto!important}body.swal2-no-backdrop .swal2-shown{top:auto;right:auto;bottom:auto;left:auto;max-width:calc(100% - .625em * 2);background-color:transparent}body.swal2-no-backdrop .swal2-shown>.swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}body.swal2-no-backdrop .swal2-shown.swal2-top{top:0;left:50%;transform:translateX(-50%)}body.swal2-no-backdrop .swal2-shown.swal2-top-left,body.swal2-no-backdrop .swal2-shown.swal2-top-start{top:0;left:0}body.swal2-no-backdrop .swal2-shown.swal2-top-end,body.swal2-no-backdrop .swal2-shown.swal2-top-right{top:0;right:0}body.swal2-no-backdrop .swal2-shown.swal2-center{top:50%;left:50%;transform:translate(-50%,-50%)}body.swal2-no-backdrop .swal2-shown.swal2-center-left,body.swal2-no-backdrop .swal2-shown.swal2-center-start{top:50%;left:0;transform:translateY(-50%)}body.swal2-no-backdrop .swal2-shown.swal2-center-end,body.swal2-no-backdrop .swal2-shown.swal2-center-right{top:50%;right:0;transform:translateY(-50%)}body.swal2-no-backdrop .swal2-shown.swal2-bottom{bottom:0;left:50%;transform:translateX(-50%)}body.swal2-no-backdrop .swal2-shown.swal2-bottom-left,body.swal2-no-backdrop .swal2-shown.swal2-bottom-start{bottom:0;left:0}body.swal2-no-backdrop .swal2-shown.swal2-bottom-end,body.swal2-no-backdrop .swal2-shown.swal2-bottom-right{right:0;bottom:0}.swal2-container{display:flex;position:fixed;z-index:1060;top:0;right:0;bottom:0;left:0;flex-direction:row;align-items:center;justify-content:center;padding:.625em;overflow-x:hidden;background-color:transparent;-webkit-overflow-scrolling:touch}.swal2-container.swal2-top{align-items:flex-start}.swal2-container.swal2-top-left,.swal2-container.swal2-top-start{align-items:flex-start;justify-content:flex-start}.swal2-container.swal2-top-end,.swal2-container.swal2-top-right{align-items:flex-start;justify-content:flex-end}.swal2-container.swal2-center{align-items:center}.swal2-container.swal2-center-left,.swal2-container.swal2-center-start{align-items:center;justify-content:flex-start}.swal2-container.swal2-center-end,.swal2-container.swal2-center-right{align-items:center;justify-content:flex-end}.swal2-container.swal2-bottom{align-items:flex-end}.swal2-container.swal2-bottom-left,.swal2-container.swal2-bottom-start{align-items:flex-end;justify-content:flex-start}.swal2-container.swal2-bottom-end,.swal2-container.swal2-bottom-right{align-items:flex-end;justify-content:flex-end}.swal2-container.swal2-bottom-end>:first-child,.swal2-container.swal2-bottom-left>:first-child,.swal2-container.swal2-bottom-right>:first-child,.swal2-container.swal2-bottom-start>:first-child,.swal2-container.swal2-bottom>:first-child{margin-top:auto}.swal2-container.swal2-grow-fullscreen>.swal2-modal{display:flex!important;flex:1;align-self:stretch;justify-content:center}.swal2-container.swal2-grow-row>.swal2-modal{display:flex!important;flex:1;align-content:center;justify-content:center}.swal2-container.swal2-grow-column{flex:1;flex-direction:column}.swal2-container.swal2-grow-column.swal2-bottom,.swal2-container.swal2-grow-column.swal2-center,.swal2-container.swal2-grow-column.swal2-top{align-items:center}.swal2-container.swal2-grow-column.swal2-bottom-left,.swal2-container.swal2-grow-column.swal2-bottom-start,.swal2-container.swal2-grow-column.swal2-center-left,.swal2-container.swal2-grow-column.swal2-center-start,.swal2-container.swal2-grow-column.swal2-top-left,.swal2-container.swal2-grow-column.swal2-top-start{align-items:flex-start}.swal2-container.swal2-grow-column.swal2-bottom-end,.swal2-container.swal2-grow-column.swal2-bottom-right,.swal2-container.swal2-grow-column.swal2-center-end,.swal2-container.swal2-grow-column.swal2-center-right,.swal2-container.swal2-grow-column.swal2-top-end,.swal2-container.swal2-grow-column.swal2-top-right{align-items:flex-end}.swal2-container.swal2-grow-column>.swal2-modal{display:flex!important;flex:1;align-content:center;justify-content:center}.swal2-container:not(.swal2-top):not(.swal2-top-start):not(.swal2-top-end):not(.swal2-top-left):not(.swal2-top-right):not(.swal2-center-start):not(.swal2-center-end):not(.swal2-center-left):not(.swal2-center-right):not(.swal2-bottom):not(.swal2-bottom-start):not(.swal2-bottom-end):not(.swal2-bottom-left):not(.swal2-bottom-right):not(.swal2-grow-fullscreen)>.swal2-modal{margin:auto}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-container .swal2-modal{margin:0!important}}.swal2-container.swal2-fade{transition:background-color .1s}.swal2-container.swal2-shown{background-color:rgba(0,0,0,.4)}.swal2-popup{display:none;position:relative;box-sizing:border-box;flex-direction:column;justify-content:center;width:32em;max-width:100%;padding:1.25em;border:none;border-radius:.3125em;background:#fff;font-family:inherit;font-size:1rem}.swal2-popup:focus{outline:0}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-header{display:flex;flex-direction:column;align-items:center}.swal2-title{position:relative;max-width:100%;margin:0 0 .4em;padding:0;color:#595959;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}.swal2-actions{display:flex;z-index:1;flex-wrap:wrap;align-items:center;justify-content:center;width:100%;margin:1.25em auto 0}.swal2-actions:not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}.swal2-actions:not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.1))}.swal2-actions:not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0,0,0,.2),rgba(0,0,0,.2))}.swal2-actions.swal2-loading .swal2-styled.swal2-confirm{box-sizing:border-box;width:2.5em;height:2.5em;margin:.46875em;padding:0;-webkit-animation:swal2-rotate-loading 1.5s linear 0s infinite normal;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border:.25em solid transparent;border-radius:100%;border-color:transparent;background-color:transparent!important;color:transparent;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.swal2-actions.swal2-loading .swal2-styled.swal2-cancel{margin-right:30px;margin-left:30px}.swal2-actions.swal2-loading :not(.swal2-styled).swal2-confirm::after{content:"";display:inline-block;width:15px;height:15px;margin-left:5px;-webkit-animation:swal2-rotate-loading 1.5s linear 0s infinite normal;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border:3px solid #999;border-radius:50%;border-right-color:transparent;box-shadow:1px 1px 1px #fff}.swal2-styled{margin:.3125em;padding:.625em 2em;box-shadow:none;font-weight:500}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#3085d6;color:#fff;font-size:1.0625em}.swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#aaa;color:#fff;font-size:1.0625em}.swal2-styled:focus{outline:0;box-shadow:0 0 0 2px #fff,0 0 0 4px rgba(50,100,150,.4)}.swal2-styled::-moz-focus-inner{border:0}.swal2-footer{justify-content:center;margin:1.25em 0 0;padding:1em 0 0;border-top:1px solid #eee;color:#545454;font-size:1em}.swal2-image{max-width:100%;margin:1.25em auto}.swal2-close{position:absolute;z-index:2;top:0;right:0;justify-content:center;width:1.2em;height:1.2em;padding:0;overflow:hidden;transition:color .1s ease-out;border:none;border-radius:0;outline:initial;background:0 0;color:#ccc;font-family:serif;font-size:2.5em;line-height:1.2;cursor:pointer}.swal2-close:hover{transform:none;background:0 0;color:#f27474}.swal2-content{z-index:1;justify-content:center;margin:0;padding:0;color:#545454;font-size:1.125em;font-weight:400;line-height:normal;text-align:center;word-wrap:break-word}.swal2-checkbox,.swal2-file,.swal2-input,.swal2-radio,.swal2-select,.swal2-textarea{margin:1em auto}.swal2-file,.swal2-input,.swal2-textarea{box-sizing:border-box;width:100%;transition:border-color .3s,box-shadow .3s;border:1px solid #d9d9d9;border-radius:.1875em;background:inherit;box-shadow:inset 0 1px 1px rgba(0,0,0,.06);color:inherit;font-size:1.125em}.swal2-file.swal2-inputerror,.swal2-input.swal2-inputerror,.swal2-textarea.swal2-inputerror{border-color:#f27474!important;box-shadow:0 0 2px #f27474!important}.swal2-file:focus,.swal2-input:focus,.swal2-textarea:focus{border:1px solid #b4dbed;outline:0;box-shadow:0 0 3px #c4e6f5}.swal2-file::-webkit-input-placeholder,.swal2-input::-webkit-input-placeholder,.swal2-textarea::-webkit-input-placeholder{color:#ccc}.swal2-file::-moz-placeholder,.swal2-input::-moz-placeholder,.swal2-textarea::-moz-placeholder{color:#ccc}.swal2-file:-ms-input-placeholder,.swal2-input:-ms-input-placeholder,.swal2-textarea:-ms-input-placeholder{color:#ccc}.swal2-file::-ms-input-placeholder,.swal2-input::-ms-input-placeholder,.swal2-textarea::-ms-input-placeholder{color:#ccc}.swal2-file::placeholder,.swal2-input::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{margin:1em auto;background:inherit}.swal2-range input{width:80%}.swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}.swal2-range input,.swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}.swal2-input{height:2.625em;padding:0 .75em}.swal2-input[type=number]{max-width:10em}.swal2-file{background:inherit;font-size:1.125em}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:inherit;color:inherit;font-size:1.125em}.swal2-checkbox,.swal2-radio{align-items:center;justify-content:center;background:inherit;color:inherit}.swal2-checkbox label,.swal2-radio label{margin:0 .6em;font-size:1.125em}.swal2-checkbox input,.swal2-radio input{margin:0 .4em}.swal2-validation-message{display:none;align-items:center;justify-content:center;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}.swal2-validation-message::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;zoom:normal;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}@supports (-ms-accelerator:true){.swal2-range input{width:100%!important}.swal2-range output{display:none}}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-range input{width:100%!important}.swal2-range output{display:none}}@-moz-document url-prefix(){.swal2-close:focus{outline:2px solid rgba(50,100,150,.4)}}.swal2-icon{position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:1.25em auto 1.875em;zoom:normal;border:.25em solid transparent;border-radius:50%;font-family:inherit;line-height:5em;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.swal2-icon::before{display:flex;align-items:center;height:92%;font-size:3.75em}.swal2-icon.swal2-error{border-color:#f27474}.swal2-icon.swal2-error .swal2-x-mark{position:relative;flex-grow:1}.swal2-icon.swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}.swal2-icon.swal2-warning{border-color:#facea8;color:#f8bb86}.swal2-icon.swal2-warning::before{content:"!"}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-info::before{content:"i"}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-question::before{content:"?"}.swal2-icon.swal2-question.swal2-arabic-question-mark::before{content:"؟"}.swal2-icon.swal2-success{border-color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;transform:rotate(45deg);border-radius:50%}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}.swal2-icon.swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-.25em;left:-.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}.swal2-icon.swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}.swal2-icon.swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.875em;width:1.5625em;transform:rotate(45deg)}.swal2-icon.swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}.swal2-progress-steps{align-items:center;margin:0 0 1.25em;padding:0;background:inherit;font-weight:600}.swal2-progress-steps li{display:inline-block;position:relative}.swal2-progress-steps .swal2-progress-step{z-index:20;width:2em;height:2em;border-radius:2em;background:#3085d6;color:#fff;line-height:2em;text-align:center}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#3085d6}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}.swal2-progress-steps .swal2-progress-step-line{z-index:10;width:2.5em;height:.4em;margin:0 -1px;background:#3085d6}[class^=swal2]{-webkit-tap-highlight-color:transparent}.swal2-show{-webkit-animation:swal2-show .3s;animation:swal2-show .3s}.swal2-show.swal2-noanimation{-webkit-animation:none;animation:none}.swal2-hide{-webkit-animation:swal2-hide .15s forwards;animation:swal2-hide .15s forwards}.swal2-hide.swal2-noanimation{-webkit-animation:none;animation:none}.swal2-rtl .swal2-close{right:auto;left:0}.swal2-animate-success-icon .swal2-success-line-tip{-webkit-animation:swal2-animate-success-line-tip .75s;animation:swal2-animate-success-line-tip .75s}.swal2-animate-success-icon .swal2-success-line-long{-webkit-animation:swal2-animate-success-line-long .75s;animation:swal2-animate-success-line-long .75s}.swal2-animate-success-icon .swal2-success-circular-line-right{-webkit-animation:swal2-rotate-success-circular-line 4.25s ease-in;animation:swal2-rotate-success-circular-line 4.25s ease-in}.swal2-animate-error-icon{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-animate-error-icon .swal2-x-mark{-webkit-animation:swal2-animate-error-x-mark .5s;animation:swal2-animate-error-x-mark .5s}@-webkit-keyframes swal2-rotate-loading{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes swal2-rotate-loading{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll!important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static!important}}
|
assets/css/user-registration-rtl.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.ur-form-container .button-primary,.user-registration .button-primary{background:#475bb2;border-color:#475bb2;box-shadow:0 1px 0 #475bb2}.ur-form-container .button-primary:active,.ur-form-container .button-primary:focus,.ur-form-container .button-primary:hover,.user-registration .button-primary:active,.user-registration .button-primary:focus,.user-registration .button-primary:hover{background:#38488e;border-color:#38488e;box-shadow:0 1px 0 #38488e}.ur-form-container .button-secondary,.user-registration .button-secondary{background:#d6d7dc;border-color:#d6d7dc;box-shadow:0 1px 0 #d6d7dc}.ur-form-container .button-secondary:active,.ur-form-container .button-secondary:focus,.ur-form-container .button-secondary:hover,.user-registration .button-secondary:active,.user-registration .button-secondary:focus,.user-registration .button-secondary:hover{background:#bcbdc3;border-color:#bcbdc3;box-shadow:0 1px 0 #bcbdc3}.ur-form-container .publishing-action .button,.ur-form-container .publishing-action button,.ur-form-container .publishing-action input[type=button],.ur-form-container .publishing-action input[type=submit],.user-registration .publishing-action .button,.user-registration .publishing-action button,.user-registration .publishing-action input[type=button],.user-registration .publishing-action input[type=submit]{margin-left:5px}.ur-registered-item.ui-draggable-dragging{padding:10px 10px;line-height:20px;background:#475bb2;color:#fff;text-align:center;margin-bottom:7px;word-break:break-word;white-space:normal;width:200px!important;z-index:9}.ur-registered-item.ui-draggable-dragging span{font-size:14px;line-height:20px;width:auto;height:auto;margin-left:3px}.clear{clear:both}.user-registration-error,.user-registration-info,.user-registration-message{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-webkit-align-items:center;align-items:center;margin:0 0 2em;padding:1.25em 2em;background-color:#f7f6f7;color:#515151;border-top:3px solid #a46497;list-style:none outside;width:auto;word-wrap:break-word;line-height:1.5;text-transform:none;font-size:14px}.user-registration-error::after,.user-registration-error::before,.user-registration-info::after,.user-registration-info::before,.user-registration-message::after,.user-registration-message::before{content:' ';display:table}.user-registration-error::after,.user-registration-info::after,.user-registration-message::after{clear:both}.user-registration-error::before,.user-registration-info::before,.user-registration-message::before{content:'\f348';font-family:Dashicons;font-size:24px;margin-left:.875rem}.user-registration-error ul,.user-registration-info ul,.user-registration-message ul{margin:0!important;padding:0!important;background-color:transparent!important}.user-registration-error .button,.user-registration-info .button,.user-registration-message .button{float:left}.user-registration-error li,.user-registration-info li,.user-registration-message li{list-style:none outside!important;padding-right:0!important;margin-right:0!important}.user-registration-error .message,.user-registration-info .message,.user-registration-message .message{margin:0;padding:0}.user-registration-message{border-top-color:#8fae1b;background:rgba(143,174,27,.1);color:#596c11}.user-registration-message::before{color:#8fae1b}.user-registration-info{border-top-color:#1e85be}.user-registration-info::before{color:#1e85be}.user-registration-error{border-top-color:#d82223;background:rgba(216,34,35,.1);color:#961818}.user-registration-error::before{content:'\f534';color:#d82223}.ur-frontend-form{margin-bottom:30px;border:1px solid #ddd;padding:20px;box-sizing:border-box}.ur-frontend-form:last-child{margin-bottom:0}.ur-frontend-form.login{margin:0;padding:10px;box-shadow:none;background:0 0}.ur-frontend-form.login input[name=rememberme]#rememberme{vertical-align:middle}.ur-frontend-form.login-registration{margin:0;border:none;padding:0}.ur-frontend-form *{box-sizing:border-box}.ur-frontend-form .ur-form-row{display:-webkit-box;display:-webkit-flex;display:flex}.ur-frontend-form .ur-form-row:last-child{margin-bottom:0}.ur-frontend-form .ur-form-row .ur-form-grid{-webkit-box-flex:1;-webkit-flex:1;flex:1;padding:0 10px}.ur-frontend-form .ur-form-row .ur-form-grid:nth-child(1n+2){border-right:0 none}.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item{margin-bottom:20px;font-size:13px}.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item:last-child{margin-bottom:0}.ur-frontend-form .ur-form-row .ur-form-grid input[type=date],.ur-frontend-form .ur-form-row .ur-form-grid input[type=email],.ur-frontend-form .ur-form-row .ur-form-grid input[type=number],.ur-frontend-form .ur-form-row .ur-form-grid input[type=password],.ur-frontend-form .ur-form-row .ur-form-grid input[type=phone],.ur-frontend-form .ur-form-row .ur-form-grid input[type=text],.ur-frontend-form .ur-form-row .ur-form-grid input[type=timepicker],.ur-frontend-form .ur-form-row .ur-form-grid input[type=url],.ur-frontend-form .ur-form-row .ur-form-grid select,.ur-frontend-form .ur-form-row .ur-form-grid textarea{display:block;width:100%;border-radius:0;height:40px;margin-bottom:10px;line-height:1.5}.ur-frontend-form .ur-form-row .ur-form-grid input[type=date]::-webkit-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=email]::-webkit-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=number]::-webkit-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=password]::-webkit-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=phone]::-webkit-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=text]::-webkit-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=timepicker]::-webkit-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=url]::-webkit-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid select::-webkit-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid textarea::-webkit-input-placeholder{color:#ddd;font-size:13px}.ur-frontend-form .ur-form-row .ur-form-grid input[type=date]::-moz-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=email]::-moz-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=number]::-moz-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=password]::-moz-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=phone]::-moz-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=text]::-moz-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=timepicker]::-moz-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=url]::-moz-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid select::-moz-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid textarea::-moz-placeholder{color:#ddd;font-size:13px}.ur-frontend-form .ur-form-row .ur-form-grid input[type=date]:-ms-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=email]:-ms-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=number]:-ms-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=password]:-ms-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=phone]:-ms-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=text]:-ms-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=timepicker]:-ms-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=url]:-ms-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid select:-ms-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid textarea:-ms-input-placeholder{color:#ddd;font-size:13px}.ur-frontend-form .ur-form-row .ur-form-grid input[type=date]:-moz-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=email]:-moz-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=number]:-moz-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=password]:-moz-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=phone]:-moz-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=text]:-moz-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=timepicker]:-moz-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=url]:-moz-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid select:-moz-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid textarea:-moz-placeholder{color:#ddd;font-size:13px}.ur-frontend-form .ur-form-row .ur-form-grid input[type=checkbox],.ur-frontend-form .ur-form-row .ur-form-grid input[type=radio]{font-size:12px;display:inline-block;vertical-align:middle;margin-left:5px;margin-right:20px}.ur-frontend-form .ur-form-row .ur-form-grid input[type=checkbox]:first-child,.ur-frontend-form .ur-form-row .ur-form-grid input[type=radio]:first-child{margin-right:0}.ur-frontend-form .ur-form-row .ur-form-grid button:focus,.ur-frontend-form .ur-form-row .ur-form-grid input[type=email]:focus,.ur-frontend-form .ur-form-row .ur-form-grid input[type=password]:focus,.ur-frontend-form .ur-form-row .ur-form-grid input[type=radio]:focus,.ur-frontend-form .ur-form-row .ur-form-grid input[type=text]:focus,.ur-frontend-form .ur-form-row .ur-form-grid input[type=url]:focus,.ur-frontend-form .ur-form-row .ur-form-grid select:focus,.ur-frontend-form .ur-form-row .ur-form-grid textarea:focus{outline:0}.ur-frontend-form .ur-form-row .ur-form-grid input[readonly],.ur-frontend-form .ur-form-row .ur-form-grid select[readonly],.ur-frontend-form .ur-form-row .ur-form-grid textarea[readonly]{cursor:auto}.ur-frontend-form .ur-form-row .ur-form-grid label,.ur-frontend-form .ur-form-row .ur-form-grid legend{display:block;width:100%;margin-bottom:10px}.ur-frontend-form .ur-form-row .ur-form-grid label .required,.ur-frontend-form .ur-form-row .ur-form-grid legend .required{text-decoration:none;border:none;color:red}.ur-frontend-form .ur-form-row .ur-form-grid textarea{padding:10px;height:100px;resize:none;padding:5px 20px}.ur-frontend-form .ur-form-row .ur-form-grid .hide_show_password input[type=password]{padding-left:50px}.ur-frontend-form .ur-form-row .ur-form-grid .hide_show_password .password-input-group{display:block;position:relative}.ur-frontend-form .ur-form-row .ur-form-grid .hide_show_password .password-input-group .password_preview{color:#7c8095;position:absolute;top:50%;left:15px;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.ur-frontend-form .ur-form-row .ur-form-grid .hide_show_password .password-input-group .password_preview.dashicons.dashicons-hidden{opacity:.6}.ur-frontend-form .ur-form-row .ur-form-grid .hide_show_password .password-input-group .password_preview.dashicons.dashicons-hidden:hover{opacity:1}.ur-frontend-form .ur-form-row .select2-container .select2-selection--multiple{border:1px solid #cfd1d8}.ur-frontend-form .ur-form-row .select2-container .select2-selection--multiple .select2-selection__rendered{display:block}.ur-frontend-form .ur-form-row .select2-container .select2-selection--multiple .select2-selection__rendered li:last-child{margin-right:0}.ur-frontend-form .ur-form-row .select2-container .select2-selection--multiple .select2-selection__choice{margin:5px}.ur-frontend-form .ur-form-row .select2-container .select2-selection--multiple .select2-search--inline input[type=text]{margin:5px;height:inherit}.ur-frontend-form button[type=submit],.ur-frontend-form input[type=submit]{float:left;padding:10px 20px;line-height:1.5;text-align:center;word-break:break-word;white-space:normal;border:none;cursor:pointer;-webkit-transition:.9s all ease-out;transition:.9s all ease-out}.ur-frontend-form .ur-submit-button{margin-left:10px;margin-bottom:0}.ur-frontend-form label abbr.required{text-decoration:none;border:none;color:red}.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid input[type=date],.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid input[type=email],.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid input[type=number],.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid input[type=password],.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid input[type=text],.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid input[type=url],.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid select,.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid textarea{border:none;border-bottom:1px solid #69717a;outline:0;-webkit-transition:all .35s;transition:all .35s;padding:10px 15px;background:#f8f9fa;color:#69717a;height:45px}.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid label,.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid legend{font-weight:600;line-height:2.5;margin-right:5px;color:#69717a}.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid textarea{height:100px}.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid .hide_show_password input[type=password]{padding-left:50px}.ur-frontend-form.ur-frontend-form--bordered form button[type=submit],.ur-frontend-form.ur-frontend-form--bordered form input[type=submit]{background:#f8f9fa;border:1px solid #69717a;color:#69717a;border-radius:0}.ur-frontend-form.ur-frontend-form--bordered form button[type=submit]:hover,.ur-frontend-form.ur-frontend-form--bordered form input[type=submit]:hover{background:#475bb2;color:#fff;border-color:#475bb2}.ur-frontend-form.ur-frontend-form--flat{background:#f7f7f7;border:none transparent}.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid .form-row,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid .ur-field-item{margin-bottom:0}.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=date],.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=email],.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=number],.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=password],.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=text],.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=url],.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid select,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid textarea{border:none;outline:0;padding:10px 15px;background:#fff;color:#69717a;margin-bottom:10px;height:45px}.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=date]:focus,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=email]:focus,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=number]:focus,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=password]:focus,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=text]:focus,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=url]:focus,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid select:focus,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid textarea:focus{box-shadow:0 0 10px 5px rgba(0,0,0,.05)}.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid select{margin-bottom:10px}.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid label,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid legend{font-weight:600;line-height:2.5;color:#69717a}.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid textarea{height:100px}.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid .hide_show_password input[type=password]{padding-left:50px}.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid input[type=date],.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid input[type=email],.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid input[type=number],.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid input[type=password],.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid input[type=text],.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid input[type=url],.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid select,.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid textarea{border:1px solid #ced4da;border-radius:25px;outline:0;-webkit-transition:all .35s;transition:all .35s;padding:10px 15px;background:#fff;color:#69717a;height:45px}.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid button[type=button]{border-radius:25px}.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid label,.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid legend{font-weight:600;line-height:2.5;margin-right:5px;color:#69717a}.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid textarea{height:100px}.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid .hide_show_password input[type=password]{padding-left:50px}.ur-frontend-form.ur-frontend-form--rounded form button[type=submit],.ur-frontend-form.ur-frontend-form--rounded form input[type=submit]{background:#006aff;border:0 none;color:#fff;border-radius:25px;float:none;width:calc(100% - 20px);display:block;margin:0 auto;padding:15px 20px}.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-form-row .ur-form-grid input[type=date],.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-form-row .ur-form-grid input[type=email],.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-form-row .ur-form-grid input[type=number],.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-form-row .ur-form-grid input[type=password],.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-form-row .ur-form-grid input[type=text],.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-form-row .ur-form-grid input[type=url],.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-form-row .ur-form-grid select,.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-form-row .ur-form-grid textarea{border-radius:2px}.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-form-row .ur-form-grid .hide_show_password input[type=password]{padding-left:50px}.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-form-row .ur-form-grid button[type=button]{border-radius:2px}.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form button[type=submit],.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form input[type=submit]{border-radius:2px}.ur-frontend-form #ur-submit-message-node{margin:20px 0 0 0!important}.ur-frontend-form #ur-submit-message-node.ur-error{background:rgba(206,0,0,.1)}.ur-frontend-form #ur-submit-message-node.ur-message.message{background:rgba(143,174,27,.2)}#user-registration{background-color:#fff;margin:30px 0}#user-registration *,#user-registration.user-registration{box-sizing:border-box}#user-registration p{color:#333}#user-registration .user-registration-tips{font-size:12px;color:#acaeba;margin-bottom:0}#user-registration .user-registration-MyAccount-navigation{overflow:visible;margin:0}#user-registration .user-registration-MyAccount-navigation ul{margin:0;padding:0;display:-webkit-flex;display:-webkit-box;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link{list-style:none;padding:0;margin:0;display:inline-block;position:relative;box-shadow:0 0 0 transparent}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link a{padding:10px 15px;display:block;font-weight:400;font-size:14px;font-family:sans-serif;text-decoration:none;box-shadow:0 0 0 transparent}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link.is-active a{font-weight:600}#user-registration .user-registration-MyAccount-content{padding:30px}#user-registration .user-registration-MyAccount-content h2{margin-bottom:30px}#user-registration .user-registration-MyAccount-content .user-registration-profile-fields__field-wrapper{margin:0 -10px}#user-registration .user-registration-MyAccount-content .ur-form-grid{border:0 none;background:0 0}#user-registration .user-registration-MyAccount-content .ur-frontend-form{border:none}#user-registration .user-registration-MyAccount-content .edit-password legend,#user-registration .user-registration-MyAccount-content h2{font-size:28px;font-weight:400}#user-registration .user-registration-MyAccount-content .user-registration-profile-header{margin-bottom:25px}#user-registration .user-registration-MyAccount-content .user-registration-profile-header .user-registration-img-container{width:100px}#user-registration .user-registration-MyAccount-content .user-registration-profile-header h3{font-size:22px;font-weight:400;margin-bottom:5px}#user-registration .user-registration-MyAccount-content .user-registration-profile-header header .button-group,#user-registration .user-registration-MyAccount-content .user-registration-profile-header header p{margin-bottom:10px}#user-registration .user-registration-MyAccount-content .user-registration-profile-header header .profile-pic-remove{margin-left:10px}#user-registration .user-registration-MyAccount-content .user-registration-profile-header .user-registration-nick-name{color:#acaeba}#user-registration .user-registration-MyAccount-content .user-registration-EditProfileForm .user-registration-profile-header .user-registration-img-container{width:auto}.user-registration-password-strength{text-align:center;font-weight:600;padding:3px .5em;font-size:1em}.user-registration-password-strength.strong{background-color:#c1e1b9;border-color:#83c373}.user-registration-password-strength.short{background-color:#f1adad;border-color:#e35b5b}.user-registration-password-strength.bad{background-color:#fbc5a9;border-color:#f78b53}.user-registration-password-strength.good{background-color:#ffe399;border-color:#ffc733}.user-registration-password-hint{margin:.5em 0 0;display:block}.ur-front-spinner{background:url(../images/wpspin_light-2x.gif) no-repeat;background-size:16px 16px;display:block;opacity:.7;width:16px;height:16px;margin-right:-40px;float:right}span.description{font-size:12px}.edit-post-visual-editor .ur-gutenberg-form-selector-wrap h2,.edit-post-visual-editor .user-registration-gutenberg-form-selector-wrap h2{width:100%;margin-bottom:.5em}.edit-post-visual-editor .ur-gutenberg-form-selector-wrap .components-base-control,.edit-post-visual-editor .user-registration-gutenberg-form-selector-wrap .components-base-control{width:100%}.ur-frontend-form.ur-gutenberg-editor form button[type=submit]{cursor:not-allowed}.ur-frontend-form.ur-gutenberg-editor form .ur-form-row .ur-form-grid input{cursor:not-allowed}#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,.ur_error_tip{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,.ur_error_tip 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 |
+
.ur-form-container .button,.ur-form-container button,.user-registration .button,.user-registration button{-webkit-transition:all .25s ease 0s;transition:all .25s ease 0s}.ur-form-container .button.button-icon,.ur-form-container button.button-icon,.user-registration .button.button-icon,.user-registration button.button-icon{height:32px;width:32px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.ur-form-container .button.button-icon .dashicons,.ur-form-container button.button-icon .dashicons,.user-registration .button.button-icon .dashicons,.user-registration button.button-icon .dashicons{line-height:1}.ur-form-container .button.button-icon-round,.ur-form-container button.button-icon-round,.user-registration .button.button-icon-round,.user-registration button.button-icon-round{border-radius:50%}.ur-form-container .button-primary,.user-registration .button-primary{background:#475bb2;border-color:#475bb2;box-shadow:0 1px 0 #475bb2;text-shadow:none}.ur-form-container .button-primary:active,.ur-form-container .button-primary:focus,.ur-form-container .button-primary:hover,.user-registration .button-primary:active,.user-registration .button-primary:focus,.user-registration .button-primary:hover{background:#38488e;border-color:#38488e;box-shadow:0 1px 0 #38488e}.ur-form-container .button-primary:disabled,.user-registration .button-primary:disabled{color:#b2bae0!important;background:#697ac3!important;border-color:#697ac3!important}.ur-form-container .button-secondary,.user-registration .button-secondary{background:#dee0e9;border-color:#dee0e9;box-shadow:0 1px 0 #dee0e9}.ur-form-container .button-secondary:active,.ur-form-container .button-secondary:focus,.ur-form-container .button-secondary:hover,.user-registration .button-secondary:active,.user-registration .button-secondary:focus,.user-registration .button-secondary:hover{background:#b6bbcf;border-color:#b6bbcf;box-shadow:0 1px 0 #b6bbcf}.ur-form-container .button-danger,.user-registration .button-danger{color:#fff;background:#ff4149;border-color:#ff4149;box-shadow:0 1px 0 #ff4149}.ur-form-container .button-danger:active,.ur-form-container .button-danger:focus,.ur-form-container .button-danger:hover,.user-registration .button-danger:active,.user-registration .button-danger:focus,.user-registration .button-danger:hover{color:#fff;background:#ee2a32;border-color:#ee2a32;box-shadow:0 1px 0 #ee2a32}.ur-form-container .publishing-action .button,.ur-form-container .publishing-action button,.ur-form-container .publishing-action input[type=button],.ur-form-container .publishing-action input[type=submit],.user-registration .publishing-action .button,.user-registration .publishing-action button,.user-registration .publishing-action input[type=button],.user-registration .publishing-action input[type=submit]{margin-left:5px}.ur-registered-item.ui-draggable-dragging{padding:10px 10px;line-height:20px;background:#475bb2;color:#fff;text-align:center;margin-bottom:7px;word-break:break-word;white-space:normal;width:200px!important;z-index:9}.ur-registered-item.ui-draggable-dragging span{font-size:14px;line-height:20px;width:auto;height:auto;margin-left:3px}.clear{clear:both}.user-registration-error,.user-registration-info,.user-registration-message{display:block;margin:0 0 10px;padding:10px 15px;background-color:#f7f6f7;color:#515151;border-top:3px solid #a46497;list-style:none outside;width:auto;word-wrap:break-word;line-height:1.25;text-transform:none;font-size:14px}.user-registration-error::after,.user-registration-error::before,.user-registration-info::after,.user-registration-info::before,.user-registration-message::after,.user-registration-message::before{content:' ';display:table}.user-registration-error::after,.user-registration-info::after,.user-registration-message::after{clear:both}.user-registration-error::before,.user-registration-info::before,.user-registration-message::before{content:'\f348';display:inline-block;vertical-align:middle;font-family:Dashicons;font-size:calc(100% + 10px);margin-left:.875rem}.user-registration-error ul,.user-registration-info ul,.user-registration-message ul{margin:0!important;padding:0!important;background-color:transparent!important}.user-registration-error .button,.user-registration-info .button,.user-registration-message .button{float:left}.user-registration-error li,.user-registration-info li,.user-registration-message li{list-style:none outside!important;padding-right:0!important;margin-right:0!important}.user-registration-error .message,.user-registration-info .message,.user-registration-message .message{margin:0;padding:0}.user-registration-message{border-top-color:#8fae1b;background:rgba(143,174,27,.1);color:#596c11}.user-registration-info{color:#1e85be;border-top-color:#1e85be}.user-registration-error{border-top-color:#ff4149;background:rgba(255,65,73,.1);color:#f4000a}.user-registration-error::before{content:'\f534'}.ur-frontend-form{margin-bottom:30px;border:1px solid #ddd;padding:20px;box-sizing:border-box}.ur-frontend-form.login{margin:0;padding:10px;box-shadow:none;background:0 0}.ur-frontend-form.login input[name=rememberme]#rememberme{vertical-align:middle}.ur-frontend-form.login-registration{margin:0;border:none;padding:0}.ur-frontend-form *{box-sizing:border-box}.ur-frontend-form .description{display:block;font-size:12px;line-height:1.25}.ur-frontend-form .ur-form-row{display:-webkit-box;display:-webkit-flex;display:flex}.ur-frontend-form .ur-form-row:last-child{margin-bottom:0}.ur-frontend-form .ur-form-row .ur-form-grid{-webkit-box-flex:1;-webkit-flex:1;flex:1;padding:0 10px}.ur-frontend-form .ur-form-row .ur-form-grid:nth-child(1n+2){border-right:0 none}.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item{margin-bottom:20px;font-size:13px}.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item.field-checkbox ul,.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item.field-radio ul{margin:0;list-style:none}.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item.field-checkbox ul li,.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item.field-radio ul li{margin-right:0;line-height:1.3;vertical-align:middle;margin-bottom:10px}.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item.field-checkbox ul li input,.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item.field-checkbox ul li label,.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item.field-radio ul li input,.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item.field-radio ul li label{display:inline-block;vertical-align:inherit}.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item.field-checkbox ul li input[type=checkbox],.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item.field-checkbox ul li input[type=radio],.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item.field-radio ul li input[type=checkbox],.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item.field-radio ul li input[type=radio]{margin-top:2px}.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item.field-checkbox ul li label,.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item.field-radio ul li label{display:inline}.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item:last-child{margin-bottom:0}.ur-frontend-form .ur-form-row .ur-form-grid input[type=date],.ur-frontend-form .ur-form-row .ur-form-grid input[type=email],.ur-frontend-form .ur-form-row .ur-form-grid input[type=number],.ur-frontend-form .ur-form-row .ur-form-grid input[type=password],.ur-frontend-form .ur-form-row .ur-form-grid input[type=phone],.ur-frontend-form .ur-form-row .ur-form-grid input[type=text],.ur-frontend-form .ur-form-row .ur-form-grid input[type=timepicker],.ur-frontend-form .ur-form-row .ur-form-grid input[type=url],.ur-frontend-form .ur-form-row .ur-form-grid select,.ur-frontend-form .ur-form-row .ur-form-grid textarea{display:block;width:100%;border-radius:0;min-height:36px;margin-bottom:10px;line-height:1.5}.ur-frontend-form .ur-form-row .ur-form-grid input[type=date]::-webkit-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=email]::-webkit-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=number]::-webkit-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=password]::-webkit-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=phone]::-webkit-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=text]::-webkit-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=timepicker]::-webkit-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=url]::-webkit-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid select::-webkit-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid textarea::-webkit-input-placeholder{color:#ddd}.ur-frontend-form .ur-form-row .ur-form-grid input[type=date]::-ms-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=email]::-ms-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=number]::-ms-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=password]::-ms-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=phone]::-ms-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=text]::-ms-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=timepicker]::-ms-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=url]::-ms-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid select::-ms-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid textarea::-ms-input-placeholder{color:#ddd}.ur-frontend-form .ur-form-row .ur-form-grid input[type=date]::placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=email]::placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=number]::placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=password]::placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=phone]::placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=text]::placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=timepicker]::placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=url]::placeholder,.ur-frontend-form .ur-form-row .ur-form-grid select::placeholder,.ur-frontend-form .ur-form-row .ur-form-grid textarea::placeholder{color:#ddd}.ur-frontend-form .ur-form-row .ur-form-grid input[type=checkbox],.ur-frontend-form .ur-form-row .ur-form-grid input[type=radio]{font-size:12px;display:inline-block;vertical-align:middle;margin-left:5px;margin-right:20px}.ur-frontend-form .ur-form-row .ur-form-grid input[type=checkbox]:first-child,.ur-frontend-form .ur-form-row .ur-form-grid input[type=radio]:first-child{margin-right:0}.ur-frontend-form .ur-form-row .ur-form-grid button:focus,.ur-frontend-form .ur-form-row .ur-form-grid input[type=email]:focus,.ur-frontend-form .ur-form-row .ur-form-grid input[type=password]:focus,.ur-frontend-form .ur-form-row .ur-form-grid input[type=radio]:focus,.ur-frontend-form .ur-form-row .ur-form-grid input[type=text]:focus,.ur-frontend-form .ur-form-row .ur-form-grid input[type=url]:focus,.ur-frontend-form .ur-form-row .ur-form-grid select:focus,.ur-frontend-form .ur-form-row .ur-form-grid textarea:focus{outline:0}.ur-frontend-form .ur-form-row .ur-form-grid input[readonly],.ur-frontend-form .ur-form-row .ur-form-grid select[readonly],.ur-frontend-form .ur-form-row .ur-form-grid textarea[readonly]{cursor:auto}.ur-frontend-form .ur-form-row .ur-form-grid label,.ur-frontend-form .ur-form-row .ur-form-grid legend{display:block;margin-bottom:10px}.ur-frontend-form .ur-form-row .ur-form-grid label .required,.ur-frontend-form .ur-form-row .ur-form-grid legend .required{text-decoration:none;border:none;color:#ff4149}.ur-frontend-form .ur-form-row .ur-form-grid textarea{padding:10px;height:100px;resize:none;padding:5px 20px}.ur-frontend-form .ur-form-row .ur-form-grid .hide_show_password input[type=password]{padding-left:50px}.ur-frontend-form .ur-form-row .ur-form-grid .hide_show_password .password-input-group{display:block;position:relative}.ur-frontend-form .ur-form-row .ur-form-grid .hide_show_password .password-input-group .password_preview{color:#676d8a;position:absolute;top:50%;left:15px;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.ur-frontend-form .ur-form-row .ur-form-grid .hide_show_password .password-input-group .password_preview.dashicons.dashicons-hidden{opacity:.6}.ur-frontend-form .ur-form-row .ur-form-grid .hide_show_password .password-input-group .password_preview.dashicons.dashicons-hidden:hover{opacity:1}.ur-frontend-form .ur-form-row .select2-container .select2-selection--multiple{border:1px solid #f0f1f5}.ur-frontend-form .ur-form-row .select2-container .select2-selection--multiple .select2-selection__rendered{display:block}.ur-frontend-form .ur-form-row .select2-container .select2-selection--multiple .select2-selection__rendered li:last-child{margin-right:0}.ur-frontend-form .ur-form-row .select2-container .select2-selection--multiple .select2-selection__choice{margin:5px}.ur-frontend-form .ur-form-row .select2-container .select2-selection--multiple .select2-search--inline input[type=text]{margin:5px;height:inherit}.ur-frontend-form button,.ur-frontend-form button[type=submit],.ur-frontend-form input[type=submit]{padding:10px 20px;line-height:1.5;text-align:center;word-break:break-word;white-space:normal;border:none;cursor:pointer;-webkit-transition:.9s all ease-out;transition:.9s all ease-out}.ur-frontend-form input[type=submit]{float:left}.ur-frontend-form .ur-button-container{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:end;-webkit-justify-content:flex-end;justify-content:flex-end;margin-top:10px;padding:0 10px}.ur-frontend-form .ur-button-container .ur-submit-button{margin-right:auto}.ur-frontend-form .ur-submit-button{margin-left:10px;margin-bottom:0}.ur-frontend-form label abbr.required{text-decoration:none;border:none;color:red}.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid input[type=date],.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid input[type=email],.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid input[type=number],.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid input[type=password],.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid input[type=text],.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid input[type=url],.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid select,.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid textarea{border:none;border-bottom:1px solid #69717a;outline:0;-webkit-transition:all .35s;transition:all .35s;padding:10px 15px;background:#f8f9fa;color:#69717a;height:45px}.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid label,.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid legend{font-weight:600;line-height:2.5;margin-right:5px;color:#69717a}.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid textarea{height:100px}.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid .hide_show_password input[type=password]{padding-left:50px}.ur-frontend-form.ur-frontend-form--bordered form button[type=submit],.ur-frontend-form.ur-frontend-form--bordered form input[type=submit]{background:#f8f9fa;border:1px solid #69717a;color:#69717a;border-radius:0}.ur-frontend-form.ur-frontend-form--bordered form button[type=submit]:hover,.ur-frontend-form.ur-frontend-form--bordered form input[type=submit]:hover{background:#475bb2;color:#fff;border-color:#475bb2}.ur-frontend-form.ur-frontend-form--flat{background:#f7f7f7;border:none transparent}.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid .form-row,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid .ur-field-item{margin-bottom:0}.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=date],.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=email],.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=number],.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=password],.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=text],.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=url],.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid select,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid textarea{border:none;outline:0;padding:10px 15px;background:#fff;color:#69717a;margin-bottom:10px;height:45px}.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=date]:focus,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=email]:focus,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=number]:focus,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=password]:focus,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=text]:focus,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=url]:focus,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid select:focus,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid textarea:focus{box-shadow:0 0 10px 5px rgba(0,0,0,.05)}.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid select{margin-bottom:10px}.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid label,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid legend{font-weight:600;line-height:2.5;color:#69717a}.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid textarea{height:100px}.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid .hide_show_password input[type=password]{padding-left:50px}.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid input[type=date],.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid input[type=email],.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid input[type=number],.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid input[type=password],.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid input[type=text],.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid input[type=url],.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid select,.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid textarea{border:1px solid #ced4da;border-radius:25px;outline:0;-webkit-transition:all .35s;transition:all .35s;padding:10px 15px;background:#fff;color:#69717a;height:45px}.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid button[type=button]{border-radius:25px}.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid label,.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid legend{font-weight:600;line-height:2.5;margin-right:5px;color:#69717a}.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid textarea{height:100px}.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid .hide_show_password input[type=password]{padding-left:50px}.ur-frontend-form.ur-frontend-form--rounded form button[type=submit],.ur-frontend-form.ur-frontend-form--rounded form input[type=submit]{background:#006aff;border:0 none;color:#fff;border-radius:25px;float:none;width:calc(100% - 20px);display:block;margin:0 auto;padding:15px 20px}.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-form-row .ur-form-grid input[type=date],.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-form-row .ur-form-grid input[type=email],.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-form-row .ur-form-grid input[type=number],.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-form-row .ur-form-grid input[type=password],.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-form-row .ur-form-grid input[type=text],.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-form-row .ur-form-grid input[type=url],.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-form-row .ur-form-grid select,.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-form-row .ur-form-grid textarea{border-radius:2px}.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-form-row .ur-form-grid .hide_show_password input[type=password]{padding-left:50px}.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-form-row .ur-form-grid button[type=button]{border-radius:2px}.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form button[type=submit],.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form input[type=submit]{border-radius:2px}.ur-frontend-form #ur-submit-message-node{margin:20px 0 0 0}.ur-frontend-form #ur-submit-message-node.ur-error{background:rgba(206,0,0,.1)}.ur-frontend-form #ur-submit-message-node.ur-message.message{background:rgba(143,174,27,.2)}#user-registration{background-color:#fff;margin:30px 0}#user-registration *,#user-registration.user-registration{box-sizing:border-box}#user-registration p{color:#333}#user-registration .user-registration-tips{font-size:12px;color:#acaeba;margin-bottom:0}#user-registration .user-registration-MyAccount-navigation{overflow:visible;margin:0}#user-registration .user-registration-MyAccount-navigation ul{margin:0;padding:0;display:-webkit-flex;display:-webkit-box;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link{list-style:none;padding:0;margin:0;display:inline-block;position:relative;box-shadow:0 0 0 transparent}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link a{padding:10px 15px;display:block;font-weight:400;font-size:14px;font-family:sans-serif;text-decoration:none;box-shadow:0 0 0 transparent}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link.is-active a{font-weight:600}#user-registration .user-registration-MyAccount-content{padding:30px}#user-registration .user-registration-MyAccount-content h2{margin-bottom:30px}#user-registration .user-registration-MyAccount-content .user-registration-profile-fields__field-wrapper{margin:0 -10px}#user-registration .user-registration-MyAccount-content .ur-form-grid{border:0 none;background:0 0}#user-registration .user-registration-MyAccount-content .ur-frontend-form{border:none}#user-registration .user-registration-MyAccount-content .edit-password legend,#user-registration .user-registration-MyAccount-content h2{font-size:28px;font-weight:400}#user-registration .user-registration-MyAccount-content .user-registration-profile-header{margin-bottom:25px}#user-registration .user-registration-MyAccount-content .user-registration-profile-header .user-registration-img-container{width:100px}#user-registration .user-registration-MyAccount-content .user-registration-profile-header h3{font-size:22px;font-weight:400;margin-bottom:5px}#user-registration .user-registration-MyAccount-content .user-registration-profile-header header .button-group,#user-registration .user-registration-MyAccount-content .user-registration-profile-header header p{margin-bottom:10px}#user-registration .user-registration-MyAccount-content .user-registration-profile-header header .profile-pic-remove{margin-left:10px}#user-registration .user-registration-MyAccount-content .user-registration-profile-header .user-registration-nick-name{color:#acaeba}#user-registration .user-registration-MyAccount-content .user-registration-EditProfileForm .user-registration-profile-header .user-registration-img-container{width:auto}.user-registration-password-strength{text-align:center;font-weight:600;padding:3px .5em;font-size:1em}.user-registration-password-strength.strong{background-color:#c1e1b9;border-color:#83c373}.user-registration-password-strength.short{background-color:#f1adad;border-color:#e35b5b}.user-registration-password-strength.bad{background-color:#fbc5a9;border-color:#f78b53}.user-registration-password-strength.good{background-color:#ffe399;border-color:#ffc733}.user-registration-password-hint{margin:.5em 0 0;display:block}.ur-front-spinner{background:url(../images/wpspin_light-2x.gif) no-repeat;background-size:16px 16px;display:block;opacity:.7;width:16px;height:16px;margin-right:-40px;float:right}.edit-post-visual-editor .ur-gutenberg-form-selector-wrap h2,.edit-post-visual-editor .user-registration-gutenberg-form-selector-wrap h2{width:100%;margin-bottom:.5em}.edit-post-visual-editor .ur-gutenberg-form-selector-wrap .components-base-control,.edit-post-visual-editor .user-registration-gutenberg-form-selector-wrap .components-base-control{width:100%}.ur-frontend-form.ur-gutenberg-editor form button[type=submit]{cursor:not-allowed}.ur-frontend-form.ur-gutenberg-editor form .ur-form-row .ur-form-grid input{cursor:not-allowed}#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:#dee0e9}#tiptip_holder.tip_bottom{padding-top:5px}#tiptip_holder.tip_bottom #tiptip_arrow_inner{margin-top:-5px;margin-right:-6px;border-bottom-color:#dee0e9}#tiptip_holder.tip_right{padding-right:5px}#tiptip_holder.tip_right #tiptip_arrow_inner{margin-top:-6px;margin-right:-5px;border-left-color:#dee0e9}#tiptip_holder.tip_left{padding-left:5px}#tiptip_holder.tip_left #tiptip_arrow_inner{margin-top:-6px;margin-right:-7px;border-right-color:#dee0e9}#tiptip_content,.ur_error_tip{color:#fff;font-size:.8em;max-width:150px;background:#dee0e9;text-align:center;border-radius:3px;padding:.618em 1em;box-shadow:0 1px 3px rgba(0,0,0,.2)}#tiptip_content code,.ur_error_tip 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}.ur-hidden{display:none}
|
assets/css/user-registration.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.ur-form-container .button-primary,.user-registration .button-primary{background:#475bb2;border-color:#475bb2;box-shadow:0 1px 0 #475bb2}.ur-form-container .button-primary:active,.ur-form-container .button-primary:focus,.ur-form-container .button-primary:hover,.user-registration .button-primary:active,.user-registration .button-primary:focus,.user-registration .button-primary:hover{background:#38488e;border-color:#38488e;box-shadow:0 1px 0 #38488e}.ur-form-container .button-secondary,.user-registration .button-secondary{background:#d6d7dc;border-color:#d6d7dc;box-shadow:0 1px 0 #d6d7dc}.ur-form-container .button-secondary:active,.ur-form-container .button-secondary:focus,.ur-form-container .button-secondary:hover,.user-registration .button-secondary:active,.user-registration .button-secondary:focus,.user-registration .button-secondary:hover{background:#bcbdc3;border-color:#bcbdc3;box-shadow:0 1px 0 #bcbdc3}.ur-form-container .publishing-action .button,.ur-form-container .publishing-action button,.ur-form-container .publishing-action input[type=button],.ur-form-container .publishing-action input[type=submit],.user-registration .publishing-action .button,.user-registration .publishing-action button,.user-registration .publishing-action input[type=button],.user-registration .publishing-action input[type=submit]{margin-right:5px}.ur-registered-item.ui-draggable-dragging{padding:10px 10px;line-height:20px;background:#475bb2;color:#fff;text-align:center;margin-bottom:7px;word-break:break-word;white-space:normal;width:200px!important;z-index:9}.ur-registered-item.ui-draggable-dragging span{font-size:14px;line-height:20px;width:auto;height:auto;margin-right:3px}.clear{clear:both}.user-registration-error,.user-registration-info,.user-registration-message{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-webkit-align-items:center;align-items:center;margin:0 0 2em;padding:1.25em 2em;background-color:#f7f6f7;color:#515151;border-top:3px solid #a46497;list-style:none outside;width:auto;word-wrap:break-word;line-height:1.5;text-transform:none;font-size:14px}.user-registration-error::after,.user-registration-error::before,.user-registration-info::after,.user-registration-info::before,.user-registration-message::after,.user-registration-message::before{content:' ';display:table}.user-registration-error::after,.user-registration-info::after,.user-registration-message::after{clear:both}.user-registration-error::before,.user-registration-info::before,.user-registration-message::before{content:'\f348';font-family:Dashicons;font-size:24px;margin-right:.875rem}.user-registration-error ul,.user-registration-info ul,.user-registration-message ul{margin:0!important;padding:0!important;background-color:transparent!important}.user-registration-error .button,.user-registration-info .button,.user-registration-message .button{float:right}.user-registration-error li,.user-registration-info li,.user-registration-message li{list-style:none outside!important;padding-left:0!important;margin-left:0!important}.user-registration-error .message,.user-registration-info .message,.user-registration-message .message{margin:0;padding:0}.user-registration-message{border-top-color:#8fae1b;background:rgba(143,174,27,.1);color:#596c11}.user-registration-message::before{color:#8fae1b}.user-registration-info{border-top-color:#1e85be}.user-registration-info::before{color:#1e85be}.user-registration-error{border-top-color:#d82223;background:rgba(216,34,35,.1);color:#961818}.user-registration-error::before{content:'\f534';color:#d82223}.ur-frontend-form{margin-bottom:30px;border:1px solid #ddd;padding:20px;box-sizing:border-box}.ur-frontend-form:last-child{margin-bottom:0}.ur-frontend-form.login{margin:0;padding:10px;box-shadow:none;background:0 0}.ur-frontend-form.login input[name=rememberme]#rememberme{vertical-align:middle}.ur-frontend-form.login-registration{margin:0;border:none;padding:0}.ur-frontend-form *{box-sizing:border-box}.ur-frontend-form .ur-form-row{display:-webkit-box;display:-webkit-flex;display:flex}.ur-frontend-form .ur-form-row:last-child{margin-bottom:0}.ur-frontend-form .ur-form-row .ur-form-grid{-webkit-box-flex:1;-webkit-flex:1;flex:1;padding:0 10px}.ur-frontend-form .ur-form-row .ur-form-grid:nth-child(1n+2){border-left:0 none}.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item{margin-bottom:20px;font-size:13px}.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item:last-child{margin-bottom:0}.ur-frontend-form .ur-form-row .ur-form-grid input[type=date],.ur-frontend-form .ur-form-row .ur-form-grid input[type=email],.ur-frontend-form .ur-form-row .ur-form-grid input[type=number],.ur-frontend-form .ur-form-row .ur-form-grid input[type=password],.ur-frontend-form .ur-form-row .ur-form-grid input[type=phone],.ur-frontend-form .ur-form-row .ur-form-grid input[type=text],.ur-frontend-form .ur-form-row .ur-form-grid input[type=timepicker],.ur-frontend-form .ur-form-row .ur-form-grid input[type=url],.ur-frontend-form .ur-form-row .ur-form-grid select,.ur-frontend-form .ur-form-row .ur-form-grid textarea{display:block;width:100%;border-radius:0;height:40px;margin-bottom:10px;line-height:1.5}.ur-frontend-form .ur-form-row .ur-form-grid input[type=date]::-webkit-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=email]::-webkit-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=number]::-webkit-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=password]::-webkit-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=phone]::-webkit-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=text]::-webkit-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=timepicker]::-webkit-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=url]::-webkit-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid select::-webkit-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid textarea::-webkit-input-placeholder{color:#ddd;font-size:13px}.ur-frontend-form .ur-form-row .ur-form-grid input[type=date]::-moz-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=email]::-moz-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=number]::-moz-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=password]::-moz-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=phone]::-moz-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=text]::-moz-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=timepicker]::-moz-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=url]::-moz-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid select::-moz-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid textarea::-moz-placeholder{color:#ddd;font-size:13px}.ur-frontend-form .ur-form-row .ur-form-grid input[type=date]:-ms-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=email]:-ms-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=number]:-ms-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=password]:-ms-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=phone]:-ms-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=text]:-ms-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=timepicker]:-ms-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=url]:-ms-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid select:-ms-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid textarea:-ms-input-placeholder{color:#ddd;font-size:13px}.ur-frontend-form .ur-form-row .ur-form-grid input[type=date]:-moz-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=email]:-moz-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=number]:-moz-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=password]:-moz-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=phone]:-moz-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=text]:-moz-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=timepicker]:-moz-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=url]:-moz-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid select:-moz-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid textarea:-moz-placeholder{color:#ddd;font-size:13px}.ur-frontend-form .ur-form-row .ur-form-grid input[type=checkbox],.ur-frontend-form .ur-form-row .ur-form-grid input[type=radio]{font-size:12px;display:inline-block;vertical-align:middle;margin-right:5px;margin-left:20px}.ur-frontend-form .ur-form-row .ur-form-grid input[type=checkbox]:first-child,.ur-frontend-form .ur-form-row .ur-form-grid input[type=radio]:first-child{margin-left:0}.ur-frontend-form .ur-form-row .ur-form-grid button:focus,.ur-frontend-form .ur-form-row .ur-form-grid input[type=email]:focus,.ur-frontend-form .ur-form-row .ur-form-grid input[type=password]:focus,.ur-frontend-form .ur-form-row .ur-form-grid input[type=radio]:focus,.ur-frontend-form .ur-form-row .ur-form-grid input[type=text]:focus,.ur-frontend-form .ur-form-row .ur-form-grid input[type=url]:focus,.ur-frontend-form .ur-form-row .ur-form-grid select:focus,.ur-frontend-form .ur-form-row .ur-form-grid textarea:focus{outline:0}.ur-frontend-form .ur-form-row .ur-form-grid input[readonly],.ur-frontend-form .ur-form-row .ur-form-grid select[readonly],.ur-frontend-form .ur-form-row .ur-form-grid textarea[readonly]{cursor:auto}.ur-frontend-form .ur-form-row .ur-form-grid label,.ur-frontend-form .ur-form-row .ur-form-grid legend{display:block;width:100%;margin-bottom:10px}.ur-frontend-form .ur-form-row .ur-form-grid label .required,.ur-frontend-form .ur-form-row .ur-form-grid legend .required{text-decoration:none;border:none;color:red}.ur-frontend-form .ur-form-row .ur-form-grid textarea{padding:10px;height:100px;resize:none;padding:5px 20px}.ur-frontend-form .ur-form-row .ur-form-grid .hide_show_password input[type=password]{padding-right:50px}.ur-frontend-form .ur-form-row .ur-form-grid .hide_show_password .password-input-group{display:block;position:relative}.ur-frontend-form .ur-form-row .ur-form-grid .hide_show_password .password-input-group .password_preview{color:#7c8095;position:absolute;top:50%;right:15px;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.ur-frontend-form .ur-form-row .ur-form-grid .hide_show_password .password-input-group .password_preview.dashicons.dashicons-hidden{opacity:.6}.ur-frontend-form .ur-form-row .ur-form-grid .hide_show_password .password-input-group .password_preview.dashicons.dashicons-hidden:hover{opacity:1}.ur-frontend-form .ur-form-row .select2-container .select2-selection--multiple{border:1px solid #cfd1d8}.ur-frontend-form .ur-form-row .select2-container .select2-selection--multiple .select2-selection__rendered{display:block}.ur-frontend-form .ur-form-row .select2-container .select2-selection--multiple .select2-selection__rendered li:last-child{margin-left:0}.ur-frontend-form .ur-form-row .select2-container .select2-selection--multiple .select2-selection__choice{margin:5px}.ur-frontend-form .ur-form-row .select2-container .select2-selection--multiple .select2-search--inline input[type=text]{margin:5px;height:inherit}.ur-frontend-form button[type=submit],.ur-frontend-form input[type=submit]{float:right;padding:10px 20px;line-height:1.5;text-align:center;word-break:break-word;white-space:normal;border:none;cursor:pointer;-webkit-transition:.9s all ease-out;transition:.9s all ease-out}.ur-frontend-form .ur-submit-button{margin-right:10px;margin-bottom:0}.ur-frontend-form label abbr.required{text-decoration:none;border:none;color:red}.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid input[type=date],.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid input[type=email],.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid input[type=number],.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid input[type=password],.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid input[type=text],.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid input[type=url],.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid select,.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid textarea{border:none;border-bottom:1px solid #69717a;outline:0;-webkit-transition:all .35s;transition:all .35s;padding:10px 15px;background:#f8f9fa;color:#69717a;height:45px}.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid label,.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid legend{font-weight:600;line-height:2.5;margin-left:5px;color:#69717a}.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid textarea{height:100px}.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid .hide_show_password input[type=password]{padding-right:50px}.ur-frontend-form.ur-frontend-form--bordered form button[type=submit],.ur-frontend-form.ur-frontend-form--bordered form input[type=submit]{background:#f8f9fa;border:1px solid #69717a;color:#69717a;border-radius:0}.ur-frontend-form.ur-frontend-form--bordered form button[type=submit]:hover,.ur-frontend-form.ur-frontend-form--bordered form input[type=submit]:hover{background:#475bb2;color:#fff;border-color:#475bb2}.ur-frontend-form.ur-frontend-form--flat{background:#f7f7f7;border:none transparent}.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid .form-row,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid .ur-field-item{margin-bottom:0}.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=date],.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=email],.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=number],.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=password],.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=text],.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=url],.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid select,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid textarea{border:none;outline:0;padding:10px 15px;background:#fff;color:#69717a;margin-bottom:10px;height:45px}.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=date]:focus,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=email]:focus,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=number]:focus,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=password]:focus,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=text]:focus,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=url]:focus,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid select:focus,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid textarea:focus{box-shadow:0 0 10px 5px rgba(0,0,0,.05)}.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid select{margin-bottom:10px}.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid label,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid legend{font-weight:600;line-height:2.5;color:#69717a}.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid textarea{height:100px}.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid .hide_show_password input[type=password]{padding-right:50px}.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid input[type=date],.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid input[type=email],.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid input[type=number],.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid input[type=password],.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid input[type=text],.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid input[type=url],.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid select,.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid textarea{border:1px solid #ced4da;border-radius:25px;outline:0;-webkit-transition:all .35s;transition:all .35s;padding:10px 15px;background:#fff;color:#69717a;height:45px}.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid button[type=button]{border-radius:25px}.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid label,.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid legend{font-weight:600;line-height:2.5;margin-left:5px;color:#69717a}.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid textarea{height:100px}.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid .hide_show_password input[type=password]{padding-right:50px}.ur-frontend-form.ur-frontend-form--rounded form button[type=submit],.ur-frontend-form.ur-frontend-form--rounded form input[type=submit]{background:#006aff;border:0 none;color:#fff;border-radius:25px;float:none;width:calc(100% - 20px);display:block;margin:0 auto;padding:15px 20px}.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-form-row .ur-form-grid input[type=date],.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-form-row .ur-form-grid input[type=email],.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-form-row .ur-form-grid input[type=number],.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-form-row .ur-form-grid input[type=password],.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-form-row .ur-form-grid input[type=text],.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-form-row .ur-form-grid input[type=url],.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-form-row .ur-form-grid select,.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-form-row .ur-form-grid textarea{border-radius:2px}.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-form-row .ur-form-grid .hide_show_password input[type=password]{padding-right:50px}.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-form-row .ur-form-grid button[type=button]{border-radius:2px}.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form button[type=submit],.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form input[type=submit]{border-radius:2px}.ur-frontend-form #ur-submit-message-node{margin:20px 0 0 0!important}.ur-frontend-form #ur-submit-message-node.ur-error{background:rgba(206,0,0,.1)}.ur-frontend-form #ur-submit-message-node.ur-message.message{background:rgba(143,174,27,.2)}#user-registration{background-color:#fff;margin:30px 0}#user-registration *,#user-registration.user-registration{box-sizing:border-box}#user-registration p{color:#333}#user-registration .user-registration-tips{font-size:12px;color:#acaeba;margin-bottom:0}#user-registration .user-registration-MyAccount-navigation{overflow:visible;margin:0}#user-registration .user-registration-MyAccount-navigation ul{margin:0;padding:0;display:-webkit-flex;display:-webkit-box;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link{list-style:none;padding:0;margin:0;display:inline-block;position:relative;box-shadow:0 0 0 transparent}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link a{padding:10px 15px;display:block;font-weight:400;font-size:14px;font-family:sans-serif;text-decoration:none;box-shadow:0 0 0 transparent}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link.is-active a{font-weight:600}#user-registration .user-registration-MyAccount-content{padding:30px}#user-registration .user-registration-MyAccount-content h2{margin-bottom:30px}#user-registration .user-registration-MyAccount-content .user-registration-profile-fields__field-wrapper{margin:0 -10px}#user-registration .user-registration-MyAccount-content .ur-form-grid{border:0 none;background:0 0}#user-registration .user-registration-MyAccount-content .ur-frontend-form{border:none}#user-registration .user-registration-MyAccount-content .edit-password legend,#user-registration .user-registration-MyAccount-content h2{font-size:28px;font-weight:400}#user-registration .user-registration-MyAccount-content .user-registration-profile-header{margin-bottom:25px}#user-registration .user-registration-MyAccount-content .user-registration-profile-header .user-registration-img-container{width:100px}#user-registration .user-registration-MyAccount-content .user-registration-profile-header h3{font-size:22px;font-weight:400;margin-bottom:5px}#user-registration .user-registration-MyAccount-content .user-registration-profile-header header .button-group,#user-registration .user-registration-MyAccount-content .user-registration-profile-header header p{margin-bottom:10px}#user-registration .user-registration-MyAccount-content .user-registration-profile-header header .profile-pic-remove{margin-right:10px}#user-registration .user-registration-MyAccount-content .user-registration-profile-header .user-registration-nick-name{color:#acaeba}#user-registration .user-registration-MyAccount-content .user-registration-EditProfileForm .user-registration-profile-header .user-registration-img-container{width:auto}.user-registration-password-strength{text-align:center;font-weight:600;padding:3px .5em;font-size:1em}.user-registration-password-strength.strong{background-color:#c1e1b9;border-color:#83c373}.user-registration-password-strength.short{background-color:#f1adad;border-color:#e35b5b}.user-registration-password-strength.bad{background-color:#fbc5a9;border-color:#f78b53}.user-registration-password-strength.good{background-color:#ffe399;border-color:#ffc733}.user-registration-password-hint{margin:.5em 0 0;display:block}.ur-front-spinner{background:url(../images/wpspin_light-2x.gif) no-repeat;background-size:16px 16px;display:block;opacity:.7;width:16px;height:16px;margin-left:-40px;float:left}span.description{font-size:12px}.edit-post-visual-editor .ur-gutenberg-form-selector-wrap h2,.edit-post-visual-editor .user-registration-gutenberg-form-selector-wrap h2{width:100%;margin-bottom:.5em}.edit-post-visual-editor .ur-gutenberg-form-selector-wrap .components-base-control,.edit-post-visual-editor .user-registration-gutenberg-form-selector-wrap .components-base-control{width:100%}.ur-frontend-form.ur-gutenberg-editor form button[type=submit]{cursor:not-allowed}.ur-frontend-form.ur-gutenberg-editor form .ur-form-row .ur-form-grid input{cursor:not-allowed}#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,.ur_error_tip{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,.ur_error_tip 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 |
+
.ur-form-container .button,.ur-form-container button,.user-registration .button,.user-registration button{-webkit-transition:all .25s ease 0s;transition:all .25s ease 0s}.ur-form-container .button.button-icon,.ur-form-container button.button-icon,.user-registration .button.button-icon,.user-registration button.button-icon{height:32px;width:32px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.ur-form-container .button.button-icon .dashicons,.ur-form-container button.button-icon .dashicons,.user-registration .button.button-icon .dashicons,.user-registration button.button-icon .dashicons{line-height:1}.ur-form-container .button.button-icon-round,.ur-form-container button.button-icon-round,.user-registration .button.button-icon-round,.user-registration button.button-icon-round{border-radius:50%}.ur-form-container .button-primary,.user-registration .button-primary{background:#475bb2;border-color:#475bb2;box-shadow:0 1px 0 #475bb2;text-shadow:none}.ur-form-container .button-primary:active,.ur-form-container .button-primary:focus,.ur-form-container .button-primary:hover,.user-registration .button-primary:active,.user-registration .button-primary:focus,.user-registration .button-primary:hover{background:#38488e;border-color:#38488e;box-shadow:0 1px 0 #38488e}.ur-form-container .button-primary:disabled,.user-registration .button-primary:disabled{color:#b2bae0!important;background:#697ac3!important;border-color:#697ac3!important}.ur-form-container .button-secondary,.user-registration .button-secondary{background:#dee0e9;border-color:#dee0e9;box-shadow:0 1px 0 #dee0e9}.ur-form-container .button-secondary:active,.ur-form-container .button-secondary:focus,.ur-form-container .button-secondary:hover,.user-registration .button-secondary:active,.user-registration .button-secondary:focus,.user-registration .button-secondary:hover{background:#b6bbcf;border-color:#b6bbcf;box-shadow:0 1px 0 #b6bbcf}.ur-form-container .button-danger,.user-registration .button-danger{color:#fff;background:#ff4149;border-color:#ff4149;box-shadow:0 1px 0 #ff4149}.ur-form-container .button-danger:active,.ur-form-container .button-danger:focus,.ur-form-container .button-danger:hover,.user-registration .button-danger:active,.user-registration .button-danger:focus,.user-registration .button-danger:hover{color:#fff;background:#ee2a32;border-color:#ee2a32;box-shadow:0 1px 0 #ee2a32}.ur-form-container .publishing-action .button,.ur-form-container .publishing-action button,.ur-form-container .publishing-action input[type=button],.ur-form-container .publishing-action input[type=submit],.user-registration .publishing-action .button,.user-registration .publishing-action button,.user-registration .publishing-action input[type=button],.user-registration .publishing-action input[type=submit]{margin-right:5px}.ur-registered-item.ui-draggable-dragging{padding:10px 10px;line-height:20px;background:#475bb2;color:#fff;text-align:center;margin-bottom:7px;word-break:break-word;white-space:normal;width:200px!important;z-index:9}.ur-registered-item.ui-draggable-dragging span{font-size:14px;line-height:20px;width:auto;height:auto;margin-right:3px}.clear{clear:both}.user-registration-error,.user-registration-info,.user-registration-message{display:block;margin:0 0 10px;padding:10px 15px;background-color:#f7f6f7;color:#515151;border-top:3px solid #a46497;list-style:none outside;width:auto;word-wrap:break-word;line-height:1.25;text-transform:none;font-size:14px}.user-registration-error::after,.user-registration-error::before,.user-registration-info::after,.user-registration-info::before,.user-registration-message::after,.user-registration-message::before{content:' ';display:table}.user-registration-error::after,.user-registration-info::after,.user-registration-message::after{clear:both}.user-registration-error::before,.user-registration-info::before,.user-registration-message::before{content:'\f348';display:inline-block;vertical-align:middle;font-family:Dashicons;font-size:calc(100% + 10px);margin-right:.875rem}.user-registration-error ul,.user-registration-info ul,.user-registration-message ul{margin:0!important;padding:0!important;background-color:transparent!important}.user-registration-error .button,.user-registration-info .button,.user-registration-message .button{float:right}.user-registration-error li,.user-registration-info li,.user-registration-message li{list-style:none outside!important;padding-left:0!important;margin-left:0!important}.user-registration-error .message,.user-registration-info .message,.user-registration-message .message{margin:0;padding:0}.user-registration-message{border-top-color:#8fae1b;background:rgba(143,174,27,.1);color:#596c11}.user-registration-info{color:#1e85be;border-top-color:#1e85be}.user-registration-error{border-top-color:#ff4149;background:rgba(255,65,73,.1);color:#f4000a}.user-registration-error::before{content:'\f534'}.ur-frontend-form{margin-bottom:30px;border:1px solid #ddd;padding:20px;box-sizing:border-box}.ur-frontend-form.login{margin:0;padding:10px;box-shadow:none;background:0 0}.ur-frontend-form.login input[name=rememberme]#rememberme{vertical-align:middle}.ur-frontend-form.login-registration{margin:0;border:none;padding:0}.ur-frontend-form *{box-sizing:border-box}.ur-frontend-form .description{display:block;font-size:12px;line-height:1.25}.ur-frontend-form .ur-form-row{display:-webkit-box;display:-webkit-flex;display:flex}.ur-frontend-form .ur-form-row:last-child{margin-bottom:0}.ur-frontend-form .ur-form-row .ur-form-grid{-webkit-box-flex:1;-webkit-flex:1;flex:1;padding:0 10px}.ur-frontend-form .ur-form-row .ur-form-grid:nth-child(1n+2){border-left:0 none}.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item{margin-bottom:20px;font-size:13px}.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item.field-checkbox ul,.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item.field-radio ul{margin:0;list-style:none}.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item.field-checkbox ul li,.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item.field-radio ul li{margin-left:0;line-height:1.3;vertical-align:middle;margin-bottom:10px}.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item.field-checkbox ul li input,.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item.field-checkbox ul li label,.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item.field-radio ul li input,.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item.field-radio ul li label{display:inline-block;vertical-align:inherit}.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item.field-checkbox ul li input[type=checkbox],.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item.field-checkbox ul li input[type=radio],.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item.field-radio ul li input[type=checkbox],.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item.field-radio ul li input[type=radio]{margin-top:2px}.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item.field-checkbox ul li label,.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item.field-radio ul li label{display:inline}.ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item:last-child{margin-bottom:0}.ur-frontend-form .ur-form-row .ur-form-grid input[type=date],.ur-frontend-form .ur-form-row .ur-form-grid input[type=email],.ur-frontend-form .ur-form-row .ur-form-grid input[type=number],.ur-frontend-form .ur-form-row .ur-form-grid input[type=password],.ur-frontend-form .ur-form-row .ur-form-grid input[type=phone],.ur-frontend-form .ur-form-row .ur-form-grid input[type=text],.ur-frontend-form .ur-form-row .ur-form-grid input[type=timepicker],.ur-frontend-form .ur-form-row .ur-form-grid input[type=url],.ur-frontend-form .ur-form-row .ur-form-grid select,.ur-frontend-form .ur-form-row .ur-form-grid textarea{display:block;width:100%;border-radius:0;min-height:36px;margin-bottom:10px;line-height:1.5}.ur-frontend-form .ur-form-row .ur-form-grid input[type=date]::-webkit-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=email]::-webkit-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=number]::-webkit-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=password]::-webkit-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=phone]::-webkit-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=text]::-webkit-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=timepicker]::-webkit-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=url]::-webkit-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid select::-webkit-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid textarea::-webkit-input-placeholder{color:#ddd}.ur-frontend-form .ur-form-row .ur-form-grid input[type=date]::-ms-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=email]::-ms-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=number]::-ms-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=password]::-ms-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=phone]::-ms-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=text]::-ms-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=timepicker]::-ms-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=url]::-ms-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid select::-ms-input-placeholder,.ur-frontend-form .ur-form-row .ur-form-grid textarea::-ms-input-placeholder{color:#ddd}.ur-frontend-form .ur-form-row .ur-form-grid input[type=date]::placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=email]::placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=number]::placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=password]::placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=phone]::placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=text]::placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=timepicker]::placeholder,.ur-frontend-form .ur-form-row .ur-form-grid input[type=url]::placeholder,.ur-frontend-form .ur-form-row .ur-form-grid select::placeholder,.ur-frontend-form .ur-form-row .ur-form-grid textarea::placeholder{color:#ddd}.ur-frontend-form .ur-form-row .ur-form-grid input[type=checkbox],.ur-frontend-form .ur-form-row .ur-form-grid input[type=radio]{font-size:12px;display:inline-block;vertical-align:middle;margin-right:5px;margin-left:20px}.ur-frontend-form .ur-form-row .ur-form-grid input[type=checkbox]:first-child,.ur-frontend-form .ur-form-row .ur-form-grid input[type=radio]:first-child{margin-left:0}.ur-frontend-form .ur-form-row .ur-form-grid button:focus,.ur-frontend-form .ur-form-row .ur-form-grid input[type=email]:focus,.ur-frontend-form .ur-form-row .ur-form-grid input[type=password]:focus,.ur-frontend-form .ur-form-row .ur-form-grid input[type=radio]:focus,.ur-frontend-form .ur-form-row .ur-form-grid input[type=text]:focus,.ur-frontend-form .ur-form-row .ur-form-grid input[type=url]:focus,.ur-frontend-form .ur-form-row .ur-form-grid select:focus,.ur-frontend-form .ur-form-row .ur-form-grid textarea:focus{outline:0}.ur-frontend-form .ur-form-row .ur-form-grid input[readonly],.ur-frontend-form .ur-form-row .ur-form-grid select[readonly],.ur-frontend-form .ur-form-row .ur-form-grid textarea[readonly]{cursor:auto}.ur-frontend-form .ur-form-row .ur-form-grid label,.ur-frontend-form .ur-form-row .ur-form-grid legend{display:block;margin-bottom:10px}.ur-frontend-form .ur-form-row .ur-form-grid label .required,.ur-frontend-form .ur-form-row .ur-form-grid legend .required{text-decoration:none;border:none;color:#ff4149}.ur-frontend-form .ur-form-row .ur-form-grid textarea{padding:10px;height:100px;resize:none;padding:5px 20px}.ur-frontend-form .ur-form-row .ur-form-grid .hide_show_password input[type=password]{padding-right:50px}.ur-frontend-form .ur-form-row .ur-form-grid .hide_show_password .password-input-group{display:block;position:relative}.ur-frontend-form .ur-form-row .ur-form-grid .hide_show_password .password-input-group .password_preview{color:#676d8a;position:absolute;top:50%;right:15px;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.ur-frontend-form .ur-form-row .ur-form-grid .hide_show_password .password-input-group .password_preview.dashicons.dashicons-hidden{opacity:.6}.ur-frontend-form .ur-form-row .ur-form-grid .hide_show_password .password-input-group .password_preview.dashicons.dashicons-hidden:hover{opacity:1}.ur-frontend-form .ur-form-row .select2-container .select2-selection--multiple{border:1px solid #f0f1f5}.ur-frontend-form .ur-form-row .select2-container .select2-selection--multiple .select2-selection__rendered{display:block}.ur-frontend-form .ur-form-row .select2-container .select2-selection--multiple .select2-selection__rendered li:last-child{margin-left:0}.ur-frontend-form .ur-form-row .select2-container .select2-selection--multiple .select2-selection__choice{margin:5px}.ur-frontend-form .ur-form-row .select2-container .select2-selection--multiple .select2-search--inline input[type=text]{margin:5px;height:inherit}.ur-frontend-form button,.ur-frontend-form button[type=submit],.ur-frontend-form input[type=submit]{padding:10px 20px;line-height:1.5;text-align:center;word-break:break-word;white-space:normal;border:none;cursor:pointer;-webkit-transition:.9s all ease-out;transition:.9s all ease-out}.ur-frontend-form input[type=submit]{float:right}.ur-frontend-form .ur-button-container{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:end;-webkit-justify-content:flex-end;justify-content:flex-end;margin-top:10px;padding:0 10px}.ur-frontend-form .ur-button-container .ur-submit-button{margin-left:auto}.ur-frontend-form .ur-submit-button{margin-right:10px;margin-bottom:0}.ur-frontend-form label abbr.required{text-decoration:none;border:none;color:red}.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid input[type=date],.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid input[type=email],.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid input[type=number],.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid input[type=password],.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid input[type=text],.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid input[type=url],.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid select,.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid textarea{border:none;border-bottom:1px solid #69717a;outline:0;-webkit-transition:all .35s;transition:all .35s;padding:10px 15px;background:#f8f9fa;color:#69717a;height:45px}.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid label,.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid legend{font-weight:600;line-height:2.5;margin-left:5px;color:#69717a}.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid textarea{height:100px}.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid .hide_show_password input[type=password]{padding-right:50px}.ur-frontend-form.ur-frontend-form--bordered form button[type=submit],.ur-frontend-form.ur-frontend-form--bordered form input[type=submit]{background:#f8f9fa;border:1px solid #69717a;color:#69717a;border-radius:0}.ur-frontend-form.ur-frontend-form--bordered form button[type=submit]:hover,.ur-frontend-form.ur-frontend-form--bordered form input[type=submit]:hover{background:#475bb2;color:#fff;border-color:#475bb2}.ur-frontend-form.ur-frontend-form--flat{background:#f7f7f7;border:none transparent}.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid .form-row,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid .ur-field-item{margin-bottom:0}.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=date],.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=email],.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=number],.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=password],.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=text],.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=url],.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid select,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid textarea{border:none;outline:0;padding:10px 15px;background:#fff;color:#69717a;margin-bottom:10px;height:45px}.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=date]:focus,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=email]:focus,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=number]:focus,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=password]:focus,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=text]:focus,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=url]:focus,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid select:focus,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid textarea:focus{box-shadow:0 0 10px 5px rgba(0,0,0,.05)}.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid select{margin-bottom:10px}.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid label,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid legend{font-weight:600;line-height:2.5;color:#69717a}.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid textarea{height:100px}.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid .hide_show_password input[type=password]{padding-right:50px}.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid input[type=date],.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid input[type=email],.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid input[type=number],.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid input[type=password],.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid input[type=text],.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid input[type=url],.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid select,.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid textarea{border:1px solid #ced4da;border-radius:25px;outline:0;-webkit-transition:all .35s;transition:all .35s;padding:10px 15px;background:#fff;color:#69717a;height:45px}.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid button[type=button]{border-radius:25px}.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid label,.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid legend{font-weight:600;line-height:2.5;margin-left:5px;color:#69717a}.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid textarea{height:100px}.ur-frontend-form.ur-frontend-form--rounded form .ur-form-row .ur-form-grid .hide_show_password input[type=password]{padding-right:50px}.ur-frontend-form.ur-frontend-form--rounded form button[type=submit],.ur-frontend-form.ur-frontend-form--rounded form input[type=submit]{background:#006aff;border:0 none;color:#fff;border-radius:25px;float:none;width:calc(100% - 20px);display:block;margin:0 auto;padding:15px 20px}.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-form-row .ur-form-grid input[type=date],.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-form-row .ur-form-grid input[type=email],.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-form-row .ur-form-grid input[type=number],.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-form-row .ur-form-grid input[type=password],.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-form-row .ur-form-grid input[type=text],.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-form-row .ur-form-grid input[type=url],.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-form-row .ur-form-grid select,.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-form-row .ur-form-grid textarea{border-radius:2px}.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-form-row .ur-form-grid .hide_show_password input[type=password]{padding-right:50px}.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form .ur-form-row .ur-form-grid button[type=button]{border-radius:2px}.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form button[type=submit],.ur-frontend-form.ur-frontend-form--rounded.ur-frontend-form--rounded-edge form input[type=submit]{border-radius:2px}.ur-frontend-form #ur-submit-message-node{margin:20px 0 0 0}.ur-frontend-form #ur-submit-message-node.ur-error{background:rgba(206,0,0,.1)}.ur-frontend-form #ur-submit-message-node.ur-message.message{background:rgba(143,174,27,.2)}#user-registration{background-color:#fff;margin:30px 0}#user-registration *,#user-registration.user-registration{box-sizing:border-box}#user-registration p{color:#333}#user-registration .user-registration-tips{font-size:12px;color:#acaeba;margin-bottom:0}#user-registration .user-registration-MyAccount-navigation{overflow:visible;margin:0}#user-registration .user-registration-MyAccount-navigation ul{margin:0;padding:0;display:-webkit-flex;display:-webkit-box;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link{list-style:none;padding:0;margin:0;display:inline-block;position:relative;box-shadow:0 0 0 transparent}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link a{padding:10px 15px;display:block;font-weight:400;font-size:14px;font-family:sans-serif;text-decoration:none;box-shadow:0 0 0 transparent}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link.is-active a{font-weight:600}#user-registration .user-registration-MyAccount-content{padding:30px}#user-registration .user-registration-MyAccount-content h2{margin-bottom:30px}#user-registration .user-registration-MyAccount-content .user-registration-profile-fields__field-wrapper{margin:0 -10px}#user-registration .user-registration-MyAccount-content .ur-form-grid{border:0 none;background:0 0}#user-registration .user-registration-MyAccount-content .ur-frontend-form{border:none}#user-registration .user-registration-MyAccount-content .edit-password legend,#user-registration .user-registration-MyAccount-content h2{font-size:28px;font-weight:400}#user-registration .user-registration-MyAccount-content .user-registration-profile-header{margin-bottom:25px}#user-registration .user-registration-MyAccount-content .user-registration-profile-header .user-registration-img-container{width:100px}#user-registration .user-registration-MyAccount-content .user-registration-profile-header h3{font-size:22px;font-weight:400;margin-bottom:5px}#user-registration .user-registration-MyAccount-content .user-registration-profile-header header .button-group,#user-registration .user-registration-MyAccount-content .user-registration-profile-header header p{margin-bottom:10px}#user-registration .user-registration-MyAccount-content .user-registration-profile-header header .profile-pic-remove{margin-right:10px}#user-registration .user-registration-MyAccount-content .user-registration-profile-header .user-registration-nick-name{color:#acaeba}#user-registration .user-registration-MyAccount-content .user-registration-EditProfileForm .user-registration-profile-header .user-registration-img-container{width:auto}.user-registration-password-strength{text-align:center;font-weight:600;padding:3px .5em;font-size:1em}.user-registration-password-strength.strong{background-color:#c1e1b9;border-color:#83c373}.user-registration-password-strength.short{background-color:#f1adad;border-color:#e35b5b}.user-registration-password-strength.bad{background-color:#fbc5a9;border-color:#f78b53}.user-registration-password-strength.good{background-color:#ffe399;border-color:#ffc733}.user-registration-password-hint{margin:.5em 0 0;display:block}.ur-front-spinner{background:url(../images/wpspin_light-2x.gif) no-repeat;background-size:16px 16px;display:block;opacity:.7;width:16px;height:16px;margin-left:-40px;float:left}.edit-post-visual-editor .ur-gutenberg-form-selector-wrap h2,.edit-post-visual-editor .user-registration-gutenberg-form-selector-wrap h2{width:100%;margin-bottom:.5em}.edit-post-visual-editor .ur-gutenberg-form-selector-wrap .components-base-control,.edit-post-visual-editor .user-registration-gutenberg-form-selector-wrap .components-base-control{width:100%}.ur-frontend-form.ur-gutenberg-editor form button[type=submit]{cursor:not-allowed}.ur-frontend-form.ur-gutenberg-editor form .ur-form-row .ur-form-grid input{cursor:not-allowed}#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:#dee0e9}#tiptip_holder.tip_bottom{padding-top:5px}#tiptip_holder.tip_bottom #tiptip_arrow_inner{margin-top:-5px;margin-left:-6px;border-bottom-color:#dee0e9}#tiptip_holder.tip_right{padding-left:5px}#tiptip_holder.tip_right #tiptip_arrow_inner{margin-top:-6px;margin-left:-5px;border-right-color:#dee0e9}#tiptip_holder.tip_left{padding-right:5px}#tiptip_holder.tip_left #tiptip_arrow_inner{margin-top:-6px;margin-left:-7px;border-left-color:#dee0e9}#tiptip_content,.ur_error_tip{color:#fff;font-size:.8em;max-width:150px;background:#dee0e9;text-align:center;border-radius:3px;padding:.618em 1em;box-shadow:0 1px 3px rgba(0,0,0,.2)}#tiptip_content code,.ur_error_tip 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}.ur-hidden{display:none}
|
assets/css/user-registration.scss
CHANGED
@@ -25,11 +25,9 @@
|
|
25 |
.user-registration-message,
|
26 |
.user-registration-error,
|
27 |
.user-registration-info {
|
28 |
-
display:
|
29 |
-
|
30 |
-
|
31 |
-
margin: 0 0 2em;
|
32 |
-
padding: 1.25em 2em;
|
33 |
background-color: lighten($secondary, 5%);
|
34 |
color: $secondarytext;
|
35 |
border-top: 3px solid $primary;
|
@@ -37,14 +35,16 @@
|
|
37 |
@include clearfix();
|
38 |
width: auto;
|
39 |
word-wrap: break-word;
|
40 |
-
line-height: 1.
|
41 |
text-transform: none;
|
42 |
font-size: 14px;
|
43 |
|
44 |
&::before {
|
45 |
content: '\f348';
|
|
|
|
|
46 |
font-family: 'Dashicons';
|
47 |
-
font-size:
|
48 |
margin-right: 0.875rem;
|
49 |
}
|
50 |
|
@@ -63,8 +63,10 @@
|
|
63 |
padding-left: 0 !important; // Required for default theme compatibility
|
64 |
margin-left: 0 !important; // Required for default theme compatibility
|
65 |
}
|
|
|
66 |
.message{
|
67 |
-
margin:0;
|
|
|
68 |
}
|
69 |
}
|
70 |
|
@@ -72,18 +74,11 @@
|
|
72 |
border-top-color: #8fae1b;
|
73 |
background: rgba( #8fae1b, 0.1 );
|
74 |
color: darken( #8fae1b, 15%);
|
75 |
-
|
76 |
-
&::before {
|
77 |
-
color: #8fae1b;
|
78 |
-
}
|
79 |
}
|
80 |
|
81 |
.user-registration-info {
|
|
|
82 |
border-top-color: #1e85be;
|
83 |
-
|
84 |
-
&::before {
|
85 |
-
color: #1e85be;
|
86 |
-
}
|
87 |
}
|
88 |
|
89 |
.user-registration-error {
|
@@ -93,7 +88,6 @@
|
|
93 |
|
94 |
&::before {
|
95 |
content: '\f534';
|
96 |
-
color: $color_danger;
|
97 |
}
|
98 |
}
|
99 |
|
@@ -103,10 +97,6 @@
|
|
103 |
padding: 20px;
|
104 |
box-sizing: border-box;
|
105 |
|
106 |
-
&:last-child {
|
107 |
-
margin-bottom: 0;
|
108 |
-
}
|
109 |
-
|
110 |
&.login {
|
111 |
margin: 0;
|
112 |
padding: 10px;
|
@@ -128,6 +118,12 @@
|
|
128 |
box-sizing: border-box;
|
129 |
}
|
130 |
|
|
|
|
|
|
|
|
|
|
|
|
|
131 |
.ur-form-row {
|
132 |
display: flex;
|
133 |
|
@@ -146,6 +142,39 @@
|
|
146 |
.ur-field-item {
|
147 |
margin-bottom: 20px;
|
148 |
font-size: 13px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
149 |
&:last-child {
|
150 |
margin-bottom: 0;
|
151 |
}
|
@@ -164,28 +193,12 @@
|
|
164 |
display: block;
|
165 |
width: 100%;
|
166 |
border-radius: 0;
|
167 |
-
height:
|
168 |
margin-bottom: 10px;
|
169 |
line-height: 1.5;
|
170 |
|
171 |
-
|
172 |
-
color: #ddd;
|
173 |
-
font-size:13px;
|
174 |
-
}
|
175 |
-
&::-moz-placeholder { /* Firefox 19+ */
|
176 |
color: #ddd;
|
177 |
-
font-size:13px;
|
178 |
-
|
179 |
-
}
|
180 |
-
&:-ms-input-placeholder { /* IE 10+ */
|
181 |
-
color: #ddd;
|
182 |
-
font-size:13px;
|
183 |
-
|
184 |
-
}
|
185 |
-
&:-moz-placeholder { /* Firefox 18- */
|
186 |
-
color: #ddd;
|
187 |
-
font-size:13px;
|
188 |
-
|
189 |
}
|
190 |
}
|
191 |
|
@@ -222,14 +235,13 @@
|
|
222 |
legend,
|
223 |
label {
|
224 |
display: block;
|
225 |
-
width: 100%;
|
226 |
margin-bottom: 10px;
|
227 |
|
228 |
.required {
|
229 |
|
230 |
text-decoration: none;
|
231 |
border: none;
|
232 |
-
color:
|
233 |
}
|
234 |
}
|
235 |
|
@@ -300,9 +312,9 @@
|
|
300 |
}
|
301 |
}
|
302 |
|
|
|
303 |
input[type="submit"],
|
304 |
button[type="submit"] {
|
305 |
-
float: right;
|
306 |
padding: 10px 20px;
|
307 |
line-height: 1.5;
|
308 |
text-align: center;
|
@@ -313,6 +325,21 @@
|
|
313 |
transition: 0.9s all ease-out;
|
314 |
}
|
315 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
316 |
.ur-submit-button {
|
317 |
margin-right: 10px;
|
318 |
margin-bottom: 0;
|
@@ -536,14 +563,15 @@
|
|
536 |
}
|
537 |
}
|
538 |
}
|
539 |
-
#ur-submit-message-node{
|
540 |
|
541 |
-
|
542 |
-
|
|
|
|
|
543 |
background: rgba(206, 0, 0, 0.1);
|
544 |
}
|
545 |
|
546 |
-
&.ur-message.message{
|
547 |
background: rgba(143, 174, 27,0.2);
|
548 |
}
|
549 |
}
|
@@ -722,10 +750,6 @@
|
|
722 |
float: left;
|
723 |
}
|
724 |
|
725 |
-
span.description {
|
726 |
-
font-size: 12px;
|
727 |
-
}
|
728 |
-
|
729 |
.edit-post-visual-editor {
|
730 |
.ur-gutenberg-form-selector-wrap,
|
731 |
.user-registration-gutenberg-form-selector-wrap {
|
@@ -823,3 +847,7 @@ span.description {
|
|
823 |
height: 0;
|
824 |
width: 0;
|
825 |
}
|
|
|
|
|
|
|
|
25 |
.user-registration-message,
|
26 |
.user-registration-error,
|
27 |
.user-registration-info {
|
28 |
+
display: block;
|
29 |
+
margin: 0 0 10px;
|
30 |
+
padding: 10px 15px;
|
|
|
|
|
31 |
background-color: lighten($secondary, 5%);
|
32 |
color: $secondarytext;
|
33 |
border-top: 3px solid $primary;
|
35 |
@include clearfix();
|
36 |
width: auto;
|
37 |
word-wrap: break-word;
|
38 |
+
line-height: 1.25;
|
39 |
text-transform: none;
|
40 |
font-size: 14px;
|
41 |
|
42 |
&::before {
|
43 |
content: '\f348';
|
44 |
+
display: inline-block;
|
45 |
+
vertical-align: middle;
|
46 |
font-family: 'Dashicons';
|
47 |
+
font-size: calc(100% + 10px);
|
48 |
margin-right: 0.875rem;
|
49 |
}
|
50 |
|
63 |
padding-left: 0 !important; // Required for default theme compatibility
|
64 |
margin-left: 0 !important; // Required for default theme compatibility
|
65 |
}
|
66 |
+
|
67 |
.message{
|
68 |
+
margin:0;
|
69 |
+
padding:0;
|
70 |
}
|
71 |
}
|
72 |
|
74 |
border-top-color: #8fae1b;
|
75 |
background: rgba( #8fae1b, 0.1 );
|
76 |
color: darken( #8fae1b, 15%);
|
|
|
|
|
|
|
|
|
77 |
}
|
78 |
|
79 |
.user-registration-info {
|
80 |
+
color: #1e85be;
|
81 |
border-top-color: #1e85be;
|
|
|
|
|
|
|
|
|
82 |
}
|
83 |
|
84 |
.user-registration-error {
|
88 |
|
89 |
&::before {
|
90 |
content: '\f534';
|
|
|
91 |
}
|
92 |
}
|
93 |
|
97 |
padding: 20px;
|
98 |
box-sizing: border-box;
|
99 |
|
|
|
|
|
|
|
|
|
100 |
&.login {
|
101 |
margin: 0;
|
102 |
padding: 10px;
|
118 |
box-sizing: border-box;
|
119 |
}
|
120 |
|
121 |
+
.description {
|
122 |
+
display: block;
|
123 |
+
font-size: 12px;
|
124 |
+
line-height: 1.25;
|
125 |
+
}
|
126 |
+
|
127 |
.ur-form-row {
|
128 |
display: flex;
|
129 |
|
142 |
.ur-field-item {
|
143 |
margin-bottom: 20px;
|
144 |
font-size: 13px;
|
145 |
+
|
146 |
+
&.field-checkbox,
|
147 |
+
&.field-radio {
|
148 |
+
ul {
|
149 |
+
margin: 0;
|
150 |
+
list-style: none;
|
151 |
+
|
152 |
+
li {
|
153 |
+
margin-left: 0;
|
154 |
+
line-height: 1.3;
|
155 |
+
vertical-align: middle;
|
156 |
+
margin-bottom: 10px;
|
157 |
+
|
158 |
+
input,
|
159 |
+
label {
|
160 |
+
display: inline-block;
|
161 |
+
vertical-align: inherit;
|
162 |
+
}
|
163 |
+
|
164 |
+
input {
|
165 |
+
&[type='checkbox'],
|
166 |
+
&[type='radio'] {
|
167 |
+
margin-top: 2px;
|
168 |
+
}
|
169 |
+
}
|
170 |
+
|
171 |
+
label {
|
172 |
+
display: inline;
|
173 |
+
}
|
174 |
+
}
|
175 |
+
}
|
176 |
+
}
|
177 |
+
|
178 |
&:last-child {
|
179 |
margin-bottom: 0;
|
180 |
}
|
193 |
display: block;
|
194 |
width: 100%;
|
195 |
border-radius: 0;
|
196 |
+
min-height: 36px;
|
197 |
margin-bottom: 10px;
|
198 |
line-height: 1.5;
|
199 |
|
200 |
+
&::placeholder {
|
|
|
|
|
|
|
|
|
201 |
color: #ddd;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
202 |
}
|
203 |
}
|
204 |
|
235 |
legend,
|
236 |
label {
|
237 |
display: block;
|
|
|
238 |
margin-bottom: 10px;
|
239 |
|
240 |
.required {
|
241 |
|
242 |
text-decoration: none;
|
243 |
border: none;
|
244 |
+
color: $color_danger;
|
245 |
}
|
246 |
}
|
247 |
|
312 |
}
|
313 |
}
|
314 |
|
315 |
+
button,
|
316 |
input[type="submit"],
|
317 |
button[type="submit"] {
|
|
|
318 |
padding: 10px 20px;
|
319 |
line-height: 1.5;
|
320 |
text-align: center;
|
325 |
transition: 0.9s all ease-out;
|
326 |
}
|
327 |
|
328 |
+
input[type="submit"] {
|
329 |
+
float: right;
|
330 |
+
}
|
331 |
+
|
332 |
+
.ur-button-container {
|
333 |
+
display: flex;
|
334 |
+
justify-content: flex-end;
|
335 |
+
margin-top: 10px;
|
336 |
+
padding: 0 10px;
|
337 |
+
|
338 |
+
.ur-submit-button {
|
339 |
+
margin-left: auto;
|
340 |
+
}
|
341 |
+
}
|
342 |
+
|
343 |
.ur-submit-button {
|
344 |
margin-right: 10px;
|
345 |
margin-bottom: 0;
|
563 |
}
|
564 |
}
|
565 |
}
|
|
|
566 |
|
567 |
+
#ur-submit-message-node {
|
568 |
+
margin : 20px 0 0 0;
|
569 |
+
|
570 |
+
&.ur-error {
|
571 |
background: rgba(206, 0, 0, 0.1);
|
572 |
}
|
573 |
|
574 |
+
&.ur-message.message {
|
575 |
background: rgba(143, 174, 27,0.2);
|
576 |
}
|
577 |
}
|
750 |
float: left;
|
751 |
}
|
752 |
|
|
|
|
|
|
|
|
|
753 |
.edit-post-visual-editor {
|
754 |
.ur-gutenberg-form-selector-wrap,
|
755 |
.user-registration-gutenberg-form-selector-wrap {
|
847 |
height: 0;
|
848 |
width: 0;
|
849 |
}
|
850 |
+
|
851 |
+
.ur-hidden {
|
852 |
+
display:none;
|
853 |
+
}
|
assets/fonts/UserRegistration.eot
ADDED
Binary file
|
assets/fonts/UserRegistration.svg
ADDED
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" standalone="no"?>
|
2 |
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
|
3 |
+
<svg xmlns="http://www.w3.org/2000/svg">
|
4 |
+
<metadata>
|
5 |
+
<json>
|
6 |
+
<![CDATA[
|
7 |
+
{
|
8 |
+
"fontFamily": "UserRegistration",
|
9 |
+
"majorVersion": 1,
|
10 |
+
"minorVersion": 0,
|
11 |
+
"fontURL": "https://wpeverest.com/wordpress-plugins/user-registration/",
|
12 |
+
"description": "Iconfont for Everest FormFont generated with IcoMoon.\nFont generated by IcoMoon.",
|
13 |
+
"copyright": "2019",
|
14 |
+
"designer": "Nilan Bhasima",
|
15 |
+
"designerURL": "https://dribbble.com/nilanzva",
|
16 |
+
"license": "SIL OFL",
|
17 |
+
"licenseURL": "http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL",
|
18 |
+
"version": "Version 1.0",
|
19 |
+
"fontId": "UserRegistration",
|
20 |
+
"psName": "UserRegistration",
|
21 |
+
"subFamily": "Regular",
|
22 |
+
"fullName": "UserRegistration"
|
23 |
+
}
|
24 |
+
]]>
|
25 |
+
</json>
|
26 |
+
</metadata>
|
27 |
+
<defs>
|
28 |
+
<font id="UserRegistration" horiz-adv-x="1024">
|
29 |
+
<font-face units-per-em="1024" ascent="960" descent="-64" />
|
30 |
+
<missing-glyph horiz-adv-x="1024" />
|
31 |
+
<glyph unicode=" " horiz-adv-x="512" d="" />
|
32 |
+
<glyph unicode="" glyph-name="input-first-name" data-tags="first-name" d="M384 512c53.019 0 96-42.981 96-96s-42.981-96-96-96c-53.019 0-96 42.981-96 96v0c0 53.019 42.981 96 96 96v0zM192 201.28c47.137 53.263 115.667 86.672 192 86.672s144.863-33.409 191.765-86.401l0.235-0.271v-73.28h-384zM896 64h-768v512h576v-192h-64v-64h192v64h-64v192h128zM960 640h-192v192h64v64h-192v-64h64v-192h-640v-640h896z" />
|
33 |
+
<glyph unicode="" glyph-name="input-last-name" data-tags="last-name" d="M736 416c0-53.019-42.981-96-96-96s-96 42.981-96 96c0 53.019 42.981 96 96 96v0c53.019 0 96-42.981 96-96v0zM832 128h-384v73.28c47.137 53.263 115.667 86.672 192 86.672s144.863-33.409 191.765-86.401l0.235-0.271zM128 576h128v-192h-64v-64h192v64h-64v192h576v-512h-768zM64 0h896v640h-640v192h64v64h-192v-64h64v-192h-192z" />
|
34 |
+
<glyph unicode="" glyph-name="input-field" data-tags="input-field" d="M768 704v64h64v64h-192v-64h64v-64h-640v-640h896v640zM896 128h-768v512h576v-384h-64v-64h192v64h-64v384h128z" />
|
35 |
+
<glyph unicode="" glyph-name="input-password" data-tags="input-field-password" d="M448 448c35.346 0 64-28.654 64-64s-28.654-64-64-64c-35.346 0-64 28.654-64 64v0c0 35.346 28.654 64 64 64v0zM256 448c35.346 0 64-28.654 64-64s-28.654-64-64-64c-35.346 0-64 28.654-64 64v0c0 35.346 28.654 64 64 64v0zM896 640h-128v-384h64v-64h-192v64h64v384h-576v-512h768zM960 64h-896v640h640v64h-64v64h192v-64h-64v-64h192z" />
|
36 |
+
<glyph unicode="" glyph-name="input-checkbox" data-tags="checkbox" d="M285.76 459.2l135.68-135.68 316.8 316.8 45.44-45.12-362.24-362.24-181.12 181.12zM896 832h-768v-768h768zM960 0h-896v896h896z" />
|
37 |
+
<glyph unicode="" glyph-name="radio" data-tags="radio" d="M512 256c-106.039 0-192 85.961-192 192s85.961 192 192 192c106.039 0 192-85.961 192-192v0c0-106.039-85.961-192-192-192v0zM512 832c-212.077 0-384-171.923-384-384s171.923-384 384-384c212.077 0 384 171.923 384 384v0c0 212.077-171.923 384-384 384v0zM512 0c-247.424 0-448 200.576-448 448s200.576 448 448 448c247.424 0 448-200.576 448-448v0c0-247.424-200.576-448-448-448v0z" />
|
38 |
+
<glyph unicode="" glyph-name="number" data-tags="number" d="M128 64h768v768h-768zM576 512h-128v-128h128zM640 192h-64v128h-128v-128h-64v128h-128v64h128v128h-128v64h128v128h64v-128h128v128h64v-128h128v-64h-128v-128h128v-64h-128zM960 0h-896v896h896z" />
|
39 |
+
<glyph unicode="" glyph-name="phone" data-tags="phone" d="M256 832v-768h512v768zM448 704h-64v64h64zM512 128c-17.673 0-32 14.327-32 32s14.327 32 32 32c17.673 0 32-14.327 32-32v0c0-17.673-14.327-32-32-32v0zM640 704h-128v64h128zM832 0h-640v896h640z" />
|
40 |
+
<glyph unicode="" glyph-name="calendar" data-tags="calendar" d="M896 768h-128v128h-64v-128h-384v128h-64v-128h-192v-768h896v768zM896 64h-768v448h768z" />
|
41 |
+
<glyph unicode="" glyph-name="drop-down" data-tags="drop-down" d="M240.32 649.6l271.68-271.36 271.68 271.36 45.12-45.12-316.8-316.48-316.8 316.8zM896 832h-768v-768h768zM960 0h-896v896h896z" />
|
42 |
+
<glyph unicode="" glyph-name="textarea" data-tags="textarea" d="M192 704h192v-64h-64v-192h-64v192h-64zM896 293.44l-165.44-165.44h165.44zM896 768h-768v-640h512l256 256zM960 448v-384h-896v768h896z" />
|
43 |
+
<glyph unicode="" glyph-name="email" data-tags="email" d="M64 768v-640h896v640zM512 365.12l-338.88 338.88h677.76zM512 274.88l128 128 210.88-210.88h-677.76l210.88 210.88zM896 658.88v-421.76l-210.88 210.88zM338.88 448l-210.88-210.88v421.76z" />
|
44 |
+
<glyph unicode="" glyph-name="email-secondary" data-tags="email-secondary" d="M640 704h64v64h64v-64h64v-64h-64v-64h-64v64h-64zM736 512c88.366 0 160 71.634 160 160s-71.634 160-160 160c-88.366 0-160-71.634-160-160v0c0-88.366 71.634-160 160-160v0zM128 530.88v-421.76l210.88 210.88zM512 237.12l211.52 210.88c-83.72 5.063-154.589 55.397-188.858 126.657l-0.582 1.343h-360.96zM850.88 64l-210.88 210.88-128-128-128 128-210.88-210.88zM896 515.52c-16.445-16.931-35.565-31.147-56.701-41.992l-1.219-0.568-152.96-152.96 210.88-210.88zM960 0h-896v640h450.56c-1.583 9.588-2.512 20.666-2.56 31.953v0.047c0 123.712 100.288 224 224 224s224-100.288 224-224v0z" />
|
45 |
+
<glyph unicode="" glyph-name="email-confirm" data-tags="confirm-email" d="M685.12 320l210.88-210.88v361.92c-36.188-41.007-84.893-70.21-140.103-81.633l-1.657-0.287zM624.96 660.8l45.12-45.44 112.96 113.28 45.44-45.44-158.4-158.4-90.56 90.56zM512 640c0-106.039 85.961-192 192-192s192 85.961 192 192c0 106.039-85.961 192-192 192v0c-106.039 0-192-85.961-192-192v0zM850.88 64l-210.88 210.88-128-128-128 128-210.88-210.88zM173.12 576l338.88-338.88 150.4 150.4c-100.564 17.079-180.226 90.846-205.677 186.693l-0.403 1.787zM128 109.12l210.88 210.88-210.88 210.88zM960 0h-896v640h384c-0.072 2.226-0.112 4.845-0.112 7.472 0 137.32 111.32 248.64 248.64 248.64 2.628 0 5.246-0.041 7.853-0.122l-0.381 0.009c2.226 0.072 4.845 0.112 7.472 0.112 137.32 0 248.64-111.32 248.64-248.64 0-2.628-0.041-5.246-0.122-7.853l0.009 0.381z" />
|
46 |
+
<glyph unicode="" glyph-name="invite-codes" data-tags="invite-code" d="M704 640c35.346 0 64-28.654 64-64s-28.654-64-64-64c-35.346 0-64 28.654-64 64v0c0 35.346 28.654 64 64 64v0zM512 640c35.346 0 64-28.654 64-64s-28.654-64-64-64c-35.346 0-64 28.654-64 64v0c0 35.346 28.654 64 64 64v0zM320 640c35.346 0 64-28.654 64-64s-28.654-64-64-64c-35.346 0-64 28.654-64 64v0c0 35.346 28.654 64 64 64v0zM128 530.88v-421.76l210.88 210.88zM512 237.12l320 320v274.88h-640v-274.88zM850.88 64l-210.88 210.88-128-128-128 128-210.88-210.88zM896 530.88l-210.88-210.88 210.88-210.88zM960 0h-896v640h64v256h768v-256h64z" />
|
47 |
+
<glyph unicode="" glyph-name="password" data-tags="password" d="M384 640h256v64c0 70.692-57.308 128-128 128s-128-57.308-128-128v0zM192 64h640v512h-640zM320 256c-35.346 0-64 28.654-64 64s28.654 64 64 64c35.346 0 64-28.654 64-64v0c0-35.346-28.654-64-64-64v0zM512 256c-35.346 0-64 28.654-64 64s28.654 64 64 64c35.346 0 64-28.654 64-64v0c0-35.346-28.654-64-64-64v0zM704 256c-35.346 0-64 28.654-64 64s28.654 64 64 64c35.346 0 64-28.654 64-64v0c0-35.346-28.654-64-64-64v0zM896 0h-768v640h192v64c0 106.039 85.961 192 192 192s192-85.961 192-192v0-64h192z" />
|
48 |
+
<glyph unicode="" glyph-name="password-confirm" data-tags="password-confirm" d="M828.48 299.2l-158.4-160-90.56 90.56 45.44 45.44 45.12-45.44 112.96 113.28zM704 448c-106.039 0-192-85.961-192-192s85.961-192 192-192c106.039 0 192 85.961 192 192v0c0 106.039-85.961 192-192 192v0zM320 640h256v64c0 70.692-57.308 128-128 128s-128-57.308-128-128v0zM128 64h407.040c-53.401 47.082-86.94 115.614-87.040 191.982v0.018c-0.094 0-0.205-0.001-0.317-0.001-35.346 0-64 28.654-64 64s28.654 64 64 64c11.136 0 21.609-2.844 30.729-7.846l-0.333 0.167c43.957 81.335 128.592 135.663 225.918 135.68h0.002c22.806-0.155 44.836-3.181 65.839-8.733l-1.839 0.413v72.32h-640zM320 320c0-35.346-28.654-64-64-64s-64 28.654-64 64c0 35.346 28.654 64 64 64v0c35.346 0 64-28.654 64-64v0zM704 0h-640v640h192v64c0 106.039 85.961 192 192 192s192-85.961 192-192v0-64h192v-162.56c76.806-45.146 127.547-127.368 127.547-221.44 0-141.226-114.357-255.742-255.522-256h-0.025z" />
|
49 |
+
<glyph unicode="" glyph-name="user" data-tags="username" d="M954.24 36.8c-28.299 182.261-163.846 326.419-339.077 367.093l-3.003 0.587c92.382 40.009 155.84 130.39 155.84 235.593 0 141.385-114.615 256-256 256s-256-114.615-256-256c0-105.202 63.458-195.583 154.185-234.953l1.655-0.64c-178.234-41.261-313.781-185.42-341.76-365.179l-0.32-2.501-5.76-36.8h896zM320 640c0 106.039 85.961 192 192 192s192-85.961 192-192c0-106.039-85.961-192-192-192v0c-106.039 0-192 85.961-192 192v0zM140.48 64c44.544 166.382 193.958 286.898 371.52 286.898s326.976-120.516 370.907-284.213l0.613-2.685z" />
|
50 |
+
<glyph unicode="" glyph-name="user-nickname" data-tags="user-nickname" d="M736 288c88.366 0 160 71.634 160 160s-71.634 160-160 160c-88.366 0-160-71.634-160-160v0c0-88.366 71.634-160 160-160v0zM288 288c88.366 0 160 71.634 160 160s-71.634 160-160 160c-88.366 0-160-71.634-160-160v0c0-88.366 71.634-160 160-160v0zM512 800c-111.85-0.067-211.488-52.292-275.919-133.666l-0.561-0.734c15.752 4.066 33.836 6.4 52.464 6.4 0.005 0 0.011 0 0.016 0h-0.001c123.712 0 224-100.288 224-224s-100.288-224-224-224v0c-18.812 0.171-36.996 2.495-54.431 6.735l1.631-0.335c65.034-82.128 164.739-134.344 276.64-134.344s211.606 52.216 276.080 133.611l0.56 0.732c-15.681-4.066-33.683-6.4-52.23-6.4-0.088 0-0.175 0-0.263 0h0.013c-123.712 0-224 100.288-224 224s100.288 224 224 224v0c18.415-0.055 36.285-2.269 53.408-6.399l-1.568 0.319c-64.674 81.953-163.999 134.080-275.5 134.080-0.12 0-0.239 0-0.359 0h0.019zM224 448c0 35.346 28.654 64 64 64s64-28.654 64-64c0-35.346-28.654-64-64-64v0c-35.346 0-64 28.654-64 64v0zM736 384c-35.346 0-64 28.654-64 64s28.654 64 64 64c35.346 0 64-28.654 64-64v0c0-35.346-28.654-64-64-64v0zM898.24 293.76q-6.4-15.68-13.44-32c-69.665-137.905-210.237-230.818-372.51-230.818-169.966 0-316.125 101.931-380.681 247.999l-1.049 2.659-4.8 12.48c-38.389 40.138-62.019 94.669-62.019 154.72s23.63 114.582 62.099 154.804l-0.079-0.084h2.24c62.628 153.777 210.851 260.248 383.97 260.48h0.030c173.952-0.698 322.79-107.483 385.225-258.979l1.015-2.781c38.115-40.081 61.562-94.422 61.562-154.24s-23.447-114.159-61.652-154.335l0.089 0.095z" />
|
51 |
+
<glyph unicode="" glyph-name="user-display-name" data-tags="display-name" d="M704 192h-384v73.28c47.137 53.263 115.667 86.672 192 86.672s144.863-33.409 191.765-86.401l0.235-0.271zM384 704v64h256v-64zM608 480c0-53.019-42.981-96-96-96s-96 42.981-96 96c0 53.019 42.981 96 96 96v0c53.019 0 96-42.981 96-96v0zM896 0h-768v896h768zM832 832h-640v-768h640z" />
|
52 |
+
<glyph unicode="" glyph-name="user-bio" data-tags="user-bio" d="M512 768c53.019 0 96-42.981 96-96s-42.981-96-96-96c-53.019 0-96 42.981-96 96v0c0 53.019 42.981 96 96 96v0zM896 0h-768v896h768zM576 128h-256v64h256zM704 256h-384v64h384zM704 384h-384v73.28c47.137 53.263 115.667 86.672 192 86.672s144.863-33.409 191.765-86.401l0.235-0.271zM192 64h640v768h-640z" />
|
53 |
+
<glyph unicode="" glyph-name="website" data-tags="website" d="M896 576c0 0.073 0 0.16 0 0.247 0 36.962-7.893 72.081-22.085 103.763l0.644-1.61c-22.135-8.717-48.812-16.663-76.287-22.443l-3.393-0.597c3.312-24.028 5.203-51.793 5.203-80s-1.891-55.973-5.553-83.176l0.35 3.176c30.868-6.377 57.545-14.323 83.237-24.249l-3.557 1.209c13.55 30.075 21.445 65.197 21.445 102.164 0 0.533-0.002 1.066-0.005 1.599v-0.082zM840.64 416c-15.907 6.005-35.213 11.531-55.060 15.568l-2.54 0.432c-7.746-33.363-18.745-62.711-32.994-90.099l0.994 2.099c35.754 17.539 65.686 41.841 89.195 71.471l0.405 0.529zM783.040 716.8c22.592 4.536 42.005 10.060 60.78 16.913l-2.86-0.913c-24.056 30.741-54.2 55.564-88.743 72.918l-1.497 0.682c13.36-25.287 24.463-54.626 31.802-85.425l0.518-2.575zM640 320c23.040 0 59.2 45.12 79.68 123.52-24.009 2.876-51.813 4.517-80 4.517s-55.991-1.641-83.322-4.832l3.322 0.316c21.12-78.4 57.28-123.52 80.32-123.52zM548.16 506.56c27.569 3.464 59.474 5.44 91.84 5.44s64.27-1.977 95.598-5.816l-3.758 0.375c2.648 20.847 4.159 44.967 4.159 69.44s-1.511 48.593-4.445 72.273l0.286-2.833c-27.558-3.453-59.462-5.429-91.825-5.44h-0.015c-32.378 0.011-64.282 1.987-95.614 5.816l3.774-0.376c-2.648-20.847-4.159-44.967-4.159-69.44s1.511-48.593 4.445-72.273l-0.286 2.833zM719.68 708.48c-20.48 78.4-56.64 123.52-79.68 123.52s-59.2-45.12-79.68-123.52c23.909-2.85 51.603-4.477 79.677-4.48h0.003c28.077 0.003 55.771 1.63 82.996 4.793l-3.316-0.313zM529.28 345.6c-13.255 25.289-24.254 54.637-31.492 85.436l-0.508 2.564c-22.592-4.536-42.005-10.060-60.78-16.913l2.86 0.913c24.092-30.084 54.109-54.37 88.399-71.32l1.521-0.68zM529.28 806.4c-35.88-17.501-65.922-41.811-89.518-71.477l-0.402-0.523c15.907-6.005 35.213-11.531 55.060-15.568l2.54-0.432c7.857 33.374 18.96 62.713 33.314 90.080l-0.994-2.080zM405.44 473.6c22.135 8.717 48.812 16.663 76.287 22.443l3.393 0.597c-3.312 24.028-5.203 51.793-5.203 80s1.891 55.973 5.553 83.176l-0.35-3.176c-30.868 6.377-57.545 14.323-83.237 24.249l3.557-1.209c-13.506-30.157-21.372-65.36-21.372-102.4s7.866-72.243 22.020-104.029l-0.648 1.629zM832 320c-52.815-39.956-119.599-64-192-64-176.731 0-320 143.269-320 320v0c0 0.095 0 0.207 0 0.32 0 22.54 2.33 44.536 6.764 65.76l-0.363-2.080h-134.4v-448h640zM960 0h-896v64h896zM896 384v-256h-768v576h218.88c50.532 114.247 162.881 192.521 293.512 192.521 176.731 0 320-143.269 320-320 0-72.63-24.197-139.609-64.969-193.314l0.577 0.793z" />
|
54 |
+
<glyph unicode="" glyph-name="flag" data-tags="country" d="M866.56 448l-153.6 192 153.6 192h-546.56v64h-64v-832h-64v-64h192v64h-64v384zM733.44 768l-102.4-128 102.4-128h-413.44v256z" />
|
55 |
+
<glyph unicode="" glyph-name="map-one" data-tags="address-one" d="M576 384h-64v192h-64v64c35.346 0 64 28.654 64 64v0h64zM512 0c-43.045 36.614-82.080 73.622-119.048 112.608l-0.632 0.672c-74.243 75.404-137.49 161.935-186.949 256.798l-2.811 5.922c-26.793 48.484-42.56 106.292-42.56 167.782 0 194.404 157.596 352 352 352s352-157.596 352-352c0-61.49-15.767-119.298-43.478-169.601l0.918 1.819c-93.76-199.36-309.44-376-309.44-376zM512 256c159.058 0 288 128.942 288 288s-128.942 288-288 288c-159.058 0-288-128.942-288-288v0c0-159.058 128.942-288 288-288v0z" />
|
56 |
+
<glyph unicode="" glyph-name="map-two" data-tags="address-two" d="M512 256c159.058 0 288 128.942 288 288s-128.942 288-288 288c-159.058 0-288-128.942-288-288v0c0-159.058 128.942-288 288-288v0zM608 448v-64h-192v64c0.52 9.751 4.573 18.466 10.889 24.969l111.991 111.991c6.041 5.829 9.793 13.996 9.793 23.040s-3.752 17.211-9.783 23.031l-0.010 0.009c-2.359 2.318-5.109 4.249-8.139 5.683l-0.181 0.077c-5.52 1.927-11.886 3.090-18.508 3.199l-0.052 0.001c-0.003 0-0.006 0-0.009 0-8.3 0-16.216-1.646-23.439-4.629l0.408 0.149c-17.391-6.913-30.779-20.719-36.98-37.954l-0.14-0.446-52.16 39.040c19.42 35.564 54.287 60.596 95.338 66.167l0.662 0.073c5.926 1.301 12.733 2.046 19.713 2.046 14.803 0 28.824-3.351 41.345-9.335l-0.579 0.249c10.736-4.939 19.936-11.272 27.872-18.91l-0.032 0.030c18.074-17.48 29.295-41.949 29.295-69.039 0-11.262-1.939-22.072-5.502-32.112l0.208 0.671c-4.902-14.255-12.564-26.453-22.415-36.495l0.015 0.015-92.48-91.52zM821.44 376c-93.76-199.36-309.44-376-309.44-376s-215.68 176.64-309.44 376v0c-26.793 48.484-42.56 106.292-42.56 167.782 0 194.404 157.596 352 352 352s352-157.596 352-352c0-61.49-15.767-119.298-43.478-169.601l0.918 1.819z" />
|
57 |
+
<glyph unicode="" glyph-name="zip-code" data-tags="zip-code" d="M704 704c35.346 0 64-28.654 64-64s-28.654-64-64-64c-35.346 0-64 28.654-64 64v0c0 35.346 28.654 64 64 64v0zM704 768c-70.692 0-128-57.308-128-128s57.308-128 128-128c70.692 0 128 57.308 128 128v0c0 70.692-57.308 128-128 128v0zM960 0h-896v640h384c0 141.385 114.615 256 256 256s256-114.615 256-256v0zM896 459.2c-54.586-78.114-118.011-145.099-189.998-201.683l-2.002-1.517s-201.6 151.68-246.72 320h-105.28v-64h64v-64h-64v-64h64v-64h-64v-64h64v-64h-128v64h-64v64h64v64h-64v64h64v64h-64v64h-96v-512h768zM896 640c0 106.039-85.961 192-192 192s-192-85.961-192-192v0c0-109.44 116.48-234.88 192-301.12 75.52 66.24 192 191.68 192 301.12z" />
|
58 |
+
<glyph unicode="" glyph-name="select2" data-tags="select" d="M320 640v-384h384v384zM576 896h128v-64h-128zM576 64h128v-64h-128zM320 896h128v-64h-128zM320 64h128v-64h-128zM64 640h64v-128h-64zM64 384h64v-128h-64zM192 0h-128v128h64v-64h64zM192 832h-64v-64h-64v128h128zM768 192h-512v512h512zM960 64v-64h-128v64h64v64h64zM960 256h-64v128h64zM960 512h-64v128h64zM960 832v-64h-64v64h-64v64h128z" />
|
59 |
+
<glyph unicode="" glyph-name="multi-select" data-tags="multi-select" d="M832 896h128v-128h-64v64h-64zM896 512v128h64v-128zM960 384v-128h-64v128zM576 896h128v-64h-128zM576 64h128v-64h-128zM320 896h128v-64h-128zM320 64h128v-64h-128zM64 896h128v-64h-64v-64h-64zM64 640h64v-128h-64zM64 384h64v-128h-64zM64 0v128h64v-64h64v-64h-128zM832 256h-128v-128h-512v512h128v128h512zM832 64h64v64h64v-128h-128zM640 576h-384v-384h384zM768 704h-384v-64h320v-320h64z" />
|
60 |
+
<glyph unicode="" glyph-name="section-title" data-tags="checkbox copy 2" d="M960 0h-64v64h-768v-64h-64v128h896zM320 576v64h384v-64h-160v-320h-64v320zM960 768h-896v128h64v-64h768v64h64z" />
|
61 |
+
<glyph unicode="" glyph-name="time-picker" data-tags="time-picker" d="M544 768h64v-224h224v-64h-288zM448 256c0 70.692-57.308 128-128 128s-128-57.308-128-128c0-70.692 57.308-128 128-128v0c70.692 0 128 57.308 128 128v0zM896 512c0 0.052 0 0.113 0 0.175 0 176.731-143.269 320-320 320s-320-143.269-320-320c0-25.712 3.032-50.716 8.759-74.673l-0.439 2.178c6.391 2.001 14.373 3.892 22.526 5.278l1.154 0.162v66.88h64v-66.88c80.488-14.047 143.073-76.632 156.953-155.97l0.167-1.15h66.88v-64h-66.88c-1.548-9.307-3.439-17.289-5.802-25.065l0.362 1.385c21.727-5.262 46.671-8.279 72.32-8.279 176.717 0 319.977 143.246 320 319.957v0.002zM576 128c-36.236 0.013-71.267 5.154-104.413 14.737l2.653-0.657c-29.053-39.021-71.843-66.41-121.089-75.033l-1.151-0.167v-66.88h-64v66.88c-80.488 14.047-143.073 76.632-156.953 155.97l-0.167 1.15h-66.88v64h66.88c8.787 50.231 36.047 92.89 74.378 121.561l0.502 0.359c-8.674 30.593-13.693 65.736-13.76 102.042v0.038c0 212.077 171.923 384 384 384s384-171.923 384-384c0-212.077-171.923-384-384-384v0z" />
|
62 |
+
<glyph unicode="" glyph-name="state" data-tags="state" d="M896 448v128h64v32l-448 224-448-224v-32h64v-128h64v-320h-128v-64h896v64h-128v320zM512 760.32l240.96-120.32h-481.92zM832 576v-64h-640v64zM256 128v320h128v-320zM448 128v320h128v-320zM768 128h-128v320h128z" />
|
63 |
+
<glyph unicode="" glyph-name="buildings" data-tags="company" d="M512 832h-384v-768h64v192h256v-192h64v768zM448 640v-64h-256v64zM192 704v64h256v-64zM448 512v-64h-256v64zM448 384v-64h-256v64zM896 512h-320v-448h320zM832 320v-64h-192v64zM640 384v64h192v-64zM832 192v-64h-192v64zM960 0h-896v896h512v-320h384z" />
|
64 |
+
<glyph unicode="" glyph-name="text-editor" data-tags="text-editor" d="M192 832v-768h640v576h-192v192zM256 576h256v-64h-96v-256h-64v256h-96zM896 0h-768v896h558.4l209.6-206.72zM768 128h-512v64h512zM768 256h-192v64h192zM768 384h-192v64h192zM768 512h-192v64h192z" />
|
65 |
+
<glyph unicode="" glyph-name="bill" data-tags="privacy-policy copy 4" d="M256 133.12l96 76.8 160-128 160 128 96-76.8v629.76l-96-76.8-160 128-160-128-96 76.8zM704 288h-384v64h384zM704 416h-384v64h384zM704 544h-384v64h384zM832 0l-160 128-160-128-160 128-160-128v896l160-128 160 128 160-128 160 128z" />
|
66 |
+
<glyph unicode="" glyph-name="doc" data-tags="privacy-policy" d="M320 640h384v-64h-384zM320 512h384v-64h-384zM320 384h384v-64h-384zM192 800c0 17.673-14.327 32-32 32s-32-14.327-32-32v0-96h64v96zM448 192h320v544c0 53.019-42.981 96-96 96v0h-421.76c3.562-9.508 5.666-20.494 5.76-31.959v-640.041c0-53.019 42.981-96 96-96s96 42.981 96 96v0zM890.56 128h-381.76c-5.109-24.456-15.153-45.983-29.091-64.401l0.291 0.401h320c0.015 0 0.033 0 0.050 0 41.549 0 76.933 26.395 90.298 63.332l0.211 0.668zM960 160c0-88.366-71.634-160-160-160v0h-448c-88.366 0-160 71.634-160 160v0 480h-128v160c0 53.019 42.981 96 96 96v0h512c88.366 0 160-71.634 160-160v0-544h128z" />
|
67 |
+
<glyph unicode="" glyph-name="file-upload" data-tags="file-upload" d="M832 640h-192v192h-448v-768h640zM579.84 417.92l-35.84 35.84v-261.76h-64v261.76l-35.84-35.84-45.12 45.12 112.96 112.96 112.96-112.96zM896 0h-768v896h558.4l209.6-206.72z" />
|
68 |
+
<glyph unicode="" glyph-name="file-dollar" data-tags="address-two copy" d="M466.88 498.56c14.449-12.152 33.26-19.535 53.796-19.535 0.55 0 1.099 0.005 1.646 0.016l-0.082-0.001c65.958-5.452 117.464-60.184 117.76-127.010v-0.030c-0.198-59.151-40.488-108.837-95.107-123.319l-0.893-0.201v-36.48h-64v36.48c-55.512 14.683-95.802 64.369-96 123.497v0.023h64c0-35.346 28.654-64 64-64s64 28.654 64 64v0c0 0.056 0 0.122 0 0.188 0 16.433-6.193 31.419-16.373 42.752l0.052-0.059c-11.34 11.92-26.883 19.75-44.244 21.105l-0.236 0.015c-36.11 1.29-68.696 15.394-93.568 37.874l0.128-0.114c-22.874 23.114-37.005 54.918-37.005 90.022 0 59.046 39.981 108.755 94.348 123.53l0.897 0.208v36.48h64v-36.48c55.512-14.683 95.802-64.369 96-123.497v-0.023h-64c0 35.346-28.654 64-64 64s-64-28.654-64-64v0c0-0.015 0-0.033 0-0.051 0-17.74 7.218-33.794 18.877-45.386l0.003-0.003zM896 0h-768v896h558.4l209.6-206.72zM832 640h-192v192h-448v-768h640z" />
|
69 |
+
<glyph unicode="" glyph-name="code" data-tags="code" d="M128 832v-768h768v768zM428.8 300.8l-44.8-44.8-192 192 192 192 44.8-44.8-147.2-147.2zM640 256l-44.8 44.8 147.2 147.2-147.2 147.2 44.8 44.8 192-192zM960 0h-896v896h896z" />
|
70 |
+
<glyph unicode="" glyph-name="mailchimp" data-tags="mailchimp" d="M724.16 472.64c2.784 0.306 6.011 0.48 9.28 0.48s6.497-0.174 9.675-0.514l-0.395 0.034c1.537 5.226 2.422 11.23 2.422 17.44s-0.885 12.214-2.535 17.892l0.113-0.452c-4.48 21.44-10.56 34.24-23.040 32s-12.8-17.28-8.32-38.4c2.296-10.878 6.757-20.453 12.933-28.665l-0.133 0.185zM617.6 455.68c8.96-3.84 14.4-6.4 16.32-4.16s0 4.16 0 7.36c-5.631 8.297-13.484 14.706-22.705 18.44l-0.335 0.12c-7.081 3.086-15.33 4.881-23.999 4.881-13.873 0-26.673-4.598-36.957-12.354l0.156 0.113c-6.080-4.16-11.52-10.24-10.88-14.080 0.578-1.25 1.775-2.127 3.187-2.239l0.013-0.001c10.913 3.214 25.052 6.44 39.444 8.926l2.476 0.354c0.435 0.009 0.949 0.015 1.463 0.015 11.583 0 22.53-2.723 32.236-7.564l-0.419 0.189zM599.68 445.44c-8.492-0.885-16.067-4.244-22.144-9.332l0.064 0.052c-2.817-2.025-4.801-5.057-5.428-8.559l-0.012-0.081c-0.128-0.333-0.202-0.718-0.202-1.12s0.074-0.787 0.21-1.142l-0.007 0.022h1.92c3.237 0.468 6.149 1.25 8.91 2.333l-0.27-0.093c7.967 3.075 17.185 4.857 26.82 4.857 3.633 0 7.206-0.253 10.703-0.743l-0.403 0.046c5.76 0 8.64 0 9.92 0s0 1.6 0 3.52c-6.151 6.587-14.886 10.693-24.581 10.693-1.942 0-3.846-0.165-5.698-0.481l0.199 0.028zM688.32 408c2.186-1.465 4.876-2.338 7.77-2.338 4.689 0 8.843 2.292 11.402 5.817l0.028 0.041c2.88 5.76 0 13.44-9.28 17.28-2.186 1.465-4.876 2.338-7.77 2.338-4.689 0-8.843-2.292-11.402-5.817l-0.028-0.041c-2.88-5.44 1.28-13.44 9.28-17.28zM738.56 452.16c-6.080 0-11.52-6.72-11.52-15.68s4.8-16 11.2-16 11.52 7.040 11.84 15.68-5.12 16-11.52 16zM310.080 294.4c0 1.92-4.16 0-6.72 0h-6.080c-3.885 0.289-7.232 2.362-9.252 5.395l-0.028 0.045c-1.668 2.899-2.652 6.375-2.652 10.080s0.984 7.181 2.705 10.18l-0.053-0.1c0.027 0.478 0.043 1.037 0.043 1.6s-0.016 1.122-0.046 1.677l0.003-0.077c5.029 8.176 8.008 18.080 8.008 28.68 0 7.3-1.413 14.271-3.981 20.652l0.132-0.372c-6.079 12.67-17.757 21.813-31.738 24.282l-0.262 0.038c-1.222 0.125-2.641 0.196-4.077 0.196-12.778 0-24.24-5.631-32.041-14.546l-0.042-0.049c-8.921-9.434-14.406-22.199-14.406-36.246 0-2.907 0.235-5.759 0.687-8.539l-0.041 0.304c0.553-1.779 2.002-3.122 3.806-3.514l0.034-0.006c2.24 0 5.76 0 8 7.36 0 0 0 0 0 1.92 1.424 5.227 3.505 9.805 6.196 13.95l-0.116-0.19c3.527 5.568 9.033 9.612 15.508 11.165l0.172 0.035c1.54 0.309 3.31 0.486 5.121 0.486 5.468 0 10.559-1.614 14.824-4.391l-0.105 0.064c6.689-4.616 11.017-12.239 11.017-20.872 0-3.314-0.638-6.479-1.797-9.379l0.060 0.17c-3.065-7.22-4.847-15.618-4.847-24.432 0-0.861 0.017-1.718 0.051-2.571l-0.004 0.123c-0.014-0.323-0.022-0.702-0.022-1.083 0-13.598 10.344-24.781 23.593-26.108l0.11-0.009c0.823-0.121 1.772-0.19 2.738-0.19 6.439 0 12.162 3.068 15.787 7.821l0.035 0.048c0.557 0.84 0.889 1.871 0.889 2.98 0 1.3-0.456 2.494-1.217 3.43l0.008-0.010zM899.84 329.28s-2.88 10.56-6.4 21.76c-2.382 7.676-4.772 13.933-7.492 20.010l0.452-1.13c8.052 11.191 12.878 25.173 12.878 40.282 0 3.513-0.261 6.966-0.764 10.339l0.047-0.381c-2.208 14.137-8.764 26.455-18.235 35.835l-0.005 0.005c-17.749 15.035-39.288 26.171-62.963 31.792l-1.037 0.208-16.32 4.8s0 39.36-1.6 55.68c-0.399 17.584-3.060 34.383-7.704 50.339l0.344-1.379c-6.089 23.854-17.916 44.4-33.946 60.827l0.026-0.027c36.563 32.898 61.223 78.397 67.111 129.607l0.089 0.953c0 77.76-96 101.44-213.76 52.48l-26.56-9.28-46.080 43.84c-134.4 116.16-554.88-350.080-420.48-463.68l29.44-24.96c-5.743-14.8-9.070-31.929-9.070-49.835 0-6.121 0.389-12.151 1.143-18.068l-0.073 0.702c4.103-34.009 20.679-63.525 44.943-84.332l0.177-0.148c23.649-21.319 54.799-34.723 89.056-35.834l0.224-0.006c55.075-118.78 173.297-199.682 310.416-199.682 0.444 0 0.888 0.001 1.332 0.003h-0.068c150.4-4.48 276.8 66.24 329.6 192 10.125 24.788 16.682 53.493 18.214 83.526l0.026 0.634c0 38.4-20.16 53.12-32.96 53.12zM284.8 233.28c-2.106-0.152-4.563-0.239-7.040-0.239s-4.934 0.087-7.368 0.257l0.328-0.018c-50.332 3.755-90.868 41.342-99.11 89.92l-0.090 0.64c-1.044 5.123-1.641 11.012-1.641 17.040 0 43.209 30.695 79.248 71.468 87.503l0.573 0.097c4.951 1.081 10.638 1.7 16.47 1.7 1.411 0 2.813-0.036 4.205-0.108l-0.195 0.008c41.662-5.199 73.901-39.309 76.151-81.383l0.009-0.217c8-52.48-4.8-105.92-53.76-114.24zM233.92 460.48c-30.594-5.56-56.487-22.446-73.689-46.068l-0.231-0.332c-11.948 8.957-22.433 18.731-31.789 29.512l-0.211 0.248c-24 49.28 32 145.28 68.16 199.36 93.76 133.76 240.64 234.88 308.48 216.64 17.986-13.386 33.644-28.333 47.312-44.978l0.368-0.462c-49.698-28.766-92.473-58.592-132.552-91.575l1.672 1.335c-84.122-68.189-148.723-157.317-186.19-259.533l-1.33-4.147zM710.72 254.4c0.251 0.357 0.402 0.801 0.402 1.28s-0.15 0.923-0.406 1.287l0.005-0.007c-0.164 1.269-1.239 2.24-2.54 2.24-0.007 0-0.014 0-0.021 0h0.001c-11.338-1.437-24.457-2.257-37.768-2.257-35.945 0-70.493 5.98-102.704 17.001l2.232-0.663c7.040 23.68 26.56 15.040 56 12.8 7.395-0.481 16.032-0.755 24.734-0.755 39.512 0 77.704 5.652 113.812 16.192l-2.866-0.717c39.187 11.298 73.319 28.842 103.127 51.736l-0.727-0.536c6.274-13.971 11.181-30.215 13.928-47.183l0.152-1.137c0.936 0.126 2.017 0.198 3.115 0.198 4.376 0 8.486-1.141 12.049-3.142l-0.124 0.064c6.4-3.84 11.2-12.16 8-32-6.563-39.869-25.14-74.565-51.832-101.112l-0.008-0.008c-17.303-18.747-37.745-34.284-60.545-45.841l-1.215-0.559c-11.475-6.232-24.924-11.982-38.932-16.486l-1.708-0.474c-106.56-34.88-215.36 3.52-250.56 85.44-2.556 5.425-4.957 11.912-6.826 18.62l-0.214 0.9c-4.002 13.771-6.305 29.589-6.305 45.945 0 43.925 16.604 83.972 43.879 114.206l-0.134-0.151c2.733 2.24 4.538 5.527 4.798 9.239l0.002 0.041c-0.337 3.566-1.731 6.754-3.862 9.307l0.022-0.027c-13.76 20.16-62.080 54.4-52.16 120.96 5.657 44.232 42.53 78.234 87.567 79.358l0.113 0.002h9.92c16.64 0 32-2.88 45.44-3.52 2.446-0.236 5.288-0.37 8.162-0.37 23.379 0 44.682 8.891 60.711 23.475l-0.073-0.065c7.070 7.118 16.090 12.29 26.192 14.648l0.368 0.072c1.491 0.297 3.206 0.467 4.96 0.467s3.469-0.17 5.128-0.495l-0.168 0.027c6.348-0.186 12.192-2.192 17.071-5.511l-0.111 0.071c19.84-13.12 22.72-45.12 23.68-68.48 0-13.44 2.24-45.76 2.88-55.040 0-21.12 6.72-24.32 18.24-27.84 6.4-2.24 12.16-3.84 20.8-6.080 19.963-4.155 37.456-12.781 52.044-24.803l-0.204 0.163c4.913-4.833 8.271-11.235 9.261-18.393l0.019-0.167c3.2-22.4-17.6-50.56-72.32-75.84-43.136-19.518-93.529-30.891-146.577-30.891-12.616 0-25.081 0.643-37.365 1.899l1.542-0.128-17.6 1.92c-40 5.44-64-46.4-38.72-81.92 23.349-24.412 56.181-39.586 92.558-39.586 2.674 0 5.33 0.082 7.964 0.244l-0.361-0.018c96 0 171.52 41.28 199.040 77.12 0.834 0.936 1.577 1.985 2.196 3.112l0.044 0.088c1.6 1.92 0 3.2 0 1.92-22.72-15.36-123.2-76.8-230.72-58.56-9.517 1.765-17.89 4.202-25.896 7.366l0.936-0.326c-15.758 4.076-27.924 16.242-31.932 31.693l-0.068 0.307c21.033-7.817 45.332-12.339 70.688-12.339 25.021 0 49.013 4.404 71.244 12.48l-1.451-0.461zM407.040 643.84c31.002 36.348 67.876 66.589 109.346 89.538l2.014 1.022s2.56 0 1.92-1.92c-4.393-7.275-8.006-15.683-10.402-24.591l-0.158-0.689s0-2.24 2.56 0c27.269 18.026 59.886 30.252 95.014 34.151l0.986 0.089c1.6 0 2.24-1.92 0-2.56-5.854-4.543-10.914-9.705-15.21-15.47l-0.15-0.21cv-2.24c29.985-1.024 57.925-8.837 82.631-21.939l-1.031 0.499s0-3.84 0-3.2c-22.212 5.237-47.715 8.24-73.92 8.24s-51.708-3.003-76.185-8.683l2.265 0.443c-44.878-11.877-84.103-31.257-118.315-56.949l0.875 0.629s-3.2 2.24-2.24 3.84z" />
|
71 |
+
</font></defs></svg>
|
assets/fonts/UserRegistration.ttf
ADDED
Binary file
|
assets/fonts/UserRegistration.woff
ADDED
Binary file
|
assets/images/logo.svg
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><defs><style>.cls-1{fill:#475bb2;}</style></defs><title>Artboard 1 copy 3</title><path class="cls-1" d="M27.58,4a27.9,27.9,0,0,0-5.17,4,27,27,0,0,0-4.09,5.08,33.06,33.06,0,0,1,2,4.65A23.78,23.78,0,0,1,24,12.15V18a8,8,0,0,1-5.89,7.72l-.21.05A27,27,0,0,0,16,17.61,27.9,27.9,0,0,0,9.59,8,27.9,27.9,0,0,0,4.42,4L4,3.77V18a12,12,0,0,0,9.93,11.82l.14,0a11.72,11.72,0,0,0,3.86,0l.14,0A12,12,0,0,0,28,18V3.77ZM8,18V12.15a23.86,23.86,0,0,1,5.89,13.57A8,8,0,0,1,8,18ZM16,2a3,3,0,1,0,3,3A3,3,0,0,0,16,2Z"/></svg>
|
assets/js/admin/admin.js
CHANGED
@@ -4,74 +4,139 @@
|
|
4 |
*/
|
5 |
jQuery(function ($) {
|
6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
/**
|
8 |
* Append form settings to fileds section.
|
9 |
*/
|
10 |
-
|
11 |
|
12 |
-
|
13 |
-
var fields_panel = $('.ur-selected-inputs');
|
14 |
|
15 |
-
|
16 |
-
fields_panel.children().hide();
|
17 |
-
|
18 |
-
// Get form settings
|
19 |
var form_settings_section = $('.ur-registered-inputs nav').find('#ur-tab-field-settings');
|
20 |
var form_settings = form_settings_section.find('form');
|
21 |
|
22 |
-
// Append form settings to fields panel.
|
23 |
form_settings.appendTo(fields_panel);
|
24 |
|
25 |
-
|
26 |
-
fields_panel.find('form#ur-field-settings').show();
|
27 |
|
28 |
-
|
29 |
-
|
30 |
|
31 |
-
|
32 |
-
|
|
|
33 |
|
34 |
-
// Show general settings.
|
35 |
-
fields_panel.find('form #ur-field-all-settings #general-settings').show();
|
36 |
|
37 |
-
|
|
|
|
|
38 |
|
39 |
-
|
40 |
-
var appending_id = $(value).attr('id');
|
41 |
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
|
47 |
-
|
48 |
-
|
49 |
-
form_settings_section.find('#' + appending_id).addClass('form-settings-tab');
|
50 |
|
51 |
-
|
|
|
|
|
|
|
|
|
52 |
|
53 |
-
|
54 |
-
|
55 |
|
56 |
-
|
57 |
-
|
|
|
58 |
|
59 |
-
|
60 |
-
|
61 |
-
fields_panel.find('form #ur-field-all-settings').find('#' + appending_id).show();
|
62 |
-
});
|
63 |
-
});
|
64 |
});
|
65 |
|
66 |
/**
|
67 |
* Display fields panels on fields tab click.
|
68 |
*/
|
69 |
-
|
|
|
|
|
|
|
|
|
70 |
|
71 |
-
|
72 |
-
|
73 |
-
fields_panel.children().show();
|
74 |
-
fields_panel.find('form#ur-field-settings').hide();
|
75 |
});
|
76 |
|
77 |
/**
|
@@ -143,6 +208,8 @@ jQuery(function ($) {
|
|
143 |
$( '#ur-full-screen-mode.opened' ).trigger( 'click' );
|
144 |
}
|
145 |
} );
|
|
|
|
|
146 |
});
|
147 |
|
148 |
(function ($, user_registration_admin_data) {
|
@@ -186,13 +253,25 @@ jQuery(function ($) {
|
|
186 |
},
|
187 |
get_grid_button: function () {
|
188 |
var grid_button = $('<div class="ur-grid-containner"/>');
|
189 |
-
var
|
190 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
191 |
grid_button.html(grid_content);
|
192 |
return grid_button.html();
|
193 |
},
|
194 |
single_row: function () {
|
195 |
-
var single_row = $('<div class=\'ur-single-row\'
|
196 |
single_row.append($('<div class=\'ur-grids\'/>'));
|
197 |
var grid_button = this.get_grid_button();
|
198 |
single_row.find('.ur-grids').append(grid_button);
|
@@ -202,8 +281,11 @@ jQuery(function ($) {
|
|
202 |
single_row.append(grid_list);
|
203 |
single_row.append('<div style="clear:both"></div>');
|
204 |
$this.append(single_row);
|
205 |
-
$this.find('.ur-add-new-row').
|
206 |
-
|
|
|
|
|
|
|
207 |
events.render_draggable_sortable();
|
208 |
builder.manage_empty_grid();
|
209 |
if (user_registration_admin_data.is_edit_form === '1') {
|
@@ -218,11 +300,9 @@ jQuery(function ($) {
|
|
218 |
},
|
219 |
get_grid_lists: function (number_of_grid) {
|
220 |
var grid_lists = $('<div class="ur-grid-lists"/>');
|
221 |
-
var total_width = 0;
|
222 |
for (var i = 1; i <= number_of_grid; i++) {
|
223 |
var grid_list_item = $('<div ur-grid-id=\'' + i + '\' class=\'ur-grid-list-item\'></div>');
|
224 |
var width = Math.floor(100 / number_of_grid) - number_of_grid;
|
225 |
-
total_width += width;
|
226 |
grid_list_item.css({
|
227 |
'width': width + '%',
|
228 |
'min-height': loaded_params.min_grid_height + 'px'
|
@@ -271,9 +351,8 @@ jQuery(function ($) {
|
|
271 |
});
|
272 |
},
|
273 |
manage_empty_grid: function () {
|
274 |
-
var main_containner = $('.ur-
|
275 |
var drag_me = $('<div class="user-registration-dragged-me"/>');
|
276 |
-
drag_me.html('<div class="user-registration-dragged-me-text"><p>' + i18n_admin.i18n_drag_your_first_item_here + '</p></div>');
|
277 |
main_containner.find('.user-registration-dragged-me').remove();
|
278 |
$.each(main_containner.find('.ur-grid-list-item'), function () {
|
279 |
var $this = $(this);
|
@@ -294,93 +373,96 @@ jQuery(function ($) {
|
|
294 |
register_add_new_row: function () {
|
295 |
var $this_obj = this;
|
296 |
$('body').on('click', '.ur-add-new-row', function () {
|
297 |
-
var
|
|
|
|
|
|
|
|
|
298 |
single_row_clone.find('.ur-grid-lists').html('');
|
299 |
single_row_clone.find('.ur-grids').find('span').removeClass('ur-active-grid');
|
300 |
single_row_clone.find('.ur-grids').find('span[data-id="' + loaded_params.active_grid + '"]').addClass('ur-active-grid');
|
301 |
-
// $(this).closest('.ur-single-row').find('.ur-add-new-row').remove();
|
302 |
-
// $(this).closest('.ur-single-row').find('.ur-remove-row').html('-');
|
303 |
var grid_list = builder.get_grid_lists(loaded_params.active_grid);
|
304 |
single_row_clone.find('.ur-grid-lists').append(grid_list.html());
|
305 |
single_row_clone.insertBefore('.ur-add-new-row');
|
|
|
306 |
$this_obj.render_draggable_sortable();
|
307 |
builder.manage_empty_grid();
|
|
|
308 |
});
|
309 |
},
|
310 |
register_remove_row: function () {
|
311 |
var $this = this;
|
312 |
$('body').on('click', '.ur-remove-row', function () {
|
313 |
-
if ($('.ur-
|
314 |
-
var
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
329 |
} else {
|
330 |
-
|
331 |
}
|
332 |
});
|
333 |
},
|
334 |
change_ur_grids: function () {
|
335 |
var $this_obj = this;
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
var
|
347 |
-
|
348 |
-
$
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
$this_single_row.find('.ur-grid-lists').eq(0).hide();
|
353 |
-
grids.clone().insertAfter($this_single_row.find('.ur-grid-lists'));
|
354 |
-
$this_single_row.find('.ur-grid-lists').eq(0).remove();
|
355 |
-
$this_obj.render_draggable_sortable();
|
356 |
-
builder.manage_empty_grid();
|
357 |
-
});
|
358 |
-
$('body').on('click', '.ur-single-row .ur-nav-left', function () {
|
359 |
-
var $this_single_row = $(this).closest('.ur-single-row');
|
360 |
-
var grid_id = $(this).closest('.ur-grids').find('.ur-grid-size').attr('data-active-grid');
|
361 |
-
if (grid_id <= 1) {
|
362 |
return;
|
363 |
}
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
$(this).closest('.ur-grids').find('.ur-grid-size').text(grid_string);
|
368 |
-
var grids = builder.get_grid_lists(grid_id);
|
369 |
$.each($this_single_row.find('.ur-grid-lists .ur-grid-list-item'), function () {
|
370 |
$(this).children('*').each(function () {
|
371 |
-
grids.find('.ur-grid-list-item').eq(0).append($(this).clone()); // "this" is the current element in the loop
|
372 |
});
|
373 |
});
|
374 |
$this_single_row.find('.ur-grid-lists').eq(0).hide();
|
375 |
-
grids.clone().insertAfter($this_single_row.find('.ur-grid-lists'));
|
376 |
$this_single_row.find('.ur-grid-lists').eq(0).remove();
|
377 |
$this_obj.render_draggable_sortable();
|
378 |
builder.manage_empty_grid();
|
379 |
-
});
|
380 |
},
|
381 |
render_draggable_sortable: function () {
|
382 |
$('.ur-grid-list-item').sortable({
|
383 |
-
containment: '.ur-
|
384 |
over: function () {
|
385 |
$(this).addClass('ur-sortable-active');
|
386 |
builder.manage_empty_grid();
|
@@ -392,8 +474,8 @@ jQuery(function ($) {
|
|
392 |
revert: true,
|
393 |
connectWith: '.ur-grid-list-item'
|
394 |
}).disableSelection();
|
395 |
-
$('.ur-
|
396 |
-
containment: '.ur-
|
397 |
tolerance: 'pointer',
|
398 |
revert: 'invalid',
|
399 |
placeholder: 'ur-single-row',
|
@@ -408,7 +490,9 @@ jQuery(function ($) {
|
|
408 |
$('#ur-draggabled li').draggable({
|
409 |
connectToSortable: '.ur-grid-list-item',
|
410 |
containment: '.ur-registered-from',
|
411 |
-
helper:
|
|
|
|
|
412 |
revert: 'invalid',
|
413 |
// start: function (event, ui) {
|
414 |
// },
|
@@ -417,7 +501,7 @@ jQuery(function ($) {
|
|
417 |
return;
|
418 |
}
|
419 |
var data_field_id = $.trim($(ui.helper).attr('data-field-id').replace('user_registration_', ''));
|
420 |
-
var length_of_required = $('.ur-
|
421 |
var only_one_field_index = $.makeArray(user_registration_admin_data.form_one_time_draggable_fields);
|
422 |
if (length_of_required > 0 && $.inArray(data_field_id, only_one_field_index) >= 0) {
|
423 |
show_message(i18n_admin.i18n_user_required_field_already_there);
|
@@ -451,7 +535,7 @@ jQuery(function ($) {
|
|
451 |
clone_selected_item: function () {
|
452 |
$('body').on('click', '.ur-selected-item .ur-action-buttons .ur-clone', function () {
|
453 |
var data_field_key = $(this).closest('.ur-selected-item ').find('.ur-field').attr('data-field-key');
|
454 |
-
var selected_node = $('.ur-
|
455 |
var length_of_required = selected_node.length;
|
456 |
if (length_of_required > 0 && $.inArray(data_field_key, user_registration_admin_data.form_one_time_draggable_fields) > -1) {
|
457 |
show_message(i18n_admin.i18n_user_required_field_already_there_could_not_clone);
|
@@ -469,7 +553,7 @@ jQuery(function ($) {
|
|
469 |
},
|
470 |
check_grid: function () {
|
471 |
$('.ur-tabs').tabs({ disabled: [1] });
|
472 |
-
$('.ur-tabs').find('a').eq(0).trigger('click');
|
473 |
$('.ur-tabs').find( '[aria-controls="ur-tab-field-options"]' ).addClass( "ur-no-pointer" );
|
474 |
$('.ur-selected-item').removeClass('ur-item-active');
|
475 |
}
|
@@ -478,20 +562,21 @@ jQuery(function ($) {
|
|
478 |
events.register();
|
479 |
});
|
480 |
};
|
481 |
-
$('.ur-
|
482 |
-
$('.ur-tabs').find('a').click(function () {
|
483 |
-
$('.ur-tabs').find('a').removeClass('active');
|
484 |
$(this).addClass('active');
|
485 |
});
|
486 |
$('.ur-tabs').tabs();
|
487 |
-
$('.ur-tabs').find('a').eq(0).trigger('click');
|
488 |
$('.ur-tabs').tabs({ disabled: [1] });
|
489 |
-
$(
|
490 |
$('.ur-registered-inputs').find('ul li.ur-no-pointer').removeClass('ur-no-pointer');
|
491 |
$('.ur-selected-item').removeClass('ur-item-active');
|
492 |
$(this).addClass('ur-item-active');
|
493 |
render_advance_setting($(this));
|
494 |
init_events();
|
|
|
495 |
});
|
496 |
function render_advance_setting(selected_obj) {
|
497 |
var advance_setting = selected_obj.find('.ur-advance-setting-block').clone();
|
@@ -506,77 +591,163 @@ jQuery(function ($) {
|
|
506 |
$('#ur-tab-field-options').find('.ur-general-setting-block').show();
|
507 |
if ($('.ur-item-active').length === 1) {
|
508 |
$('.ur-tabs').tabs('enable', 1);
|
509 |
-
$('.ur-tabs').find('a').eq(1).trigger('click');
|
510 |
}
|
511 |
$('.ur-options-list').sortable({
|
512 |
containment: '.ur-general-setting-options',
|
513 |
});
|
514 |
}
|
515 |
|
516 |
-
$('.
|
517 |
-
var
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
|
523 |
-
var form_data = get_form_data();
|
524 |
-
var ur_form_id = $('#ur_form_id').val();
|
525 |
-
var ur_form_id_localization = user_registration_admin_data.post_id;
|
526 |
-
if (ur_parse_int(ur_form_id_localization, 0) !== ur_parse_int(ur_form_id, 0)) {
|
527 |
-
ur_form_id = 0;
|
528 |
-
}
|
529 |
-
|
530 |
-
var form_setting_data = $('#ur-field-settings').serializeArray();
|
531 |
-
|
532 |
-
var data = {
|
533 |
-
action: 'user_registration_form_save_action',
|
534 |
-
security: user_registration_admin_data.ur_form_save,
|
535 |
-
data: {
|
536 |
-
form_data: JSON.stringify(form_data),
|
537 |
-
form_name: $('#ur-form-name').val(),
|
538 |
-
form_id: ur_form_id,
|
539 |
-
form_setting_data: form_setting_data
|
540 |
-
}
|
541 |
-
};
|
542 |
$.ajax({
|
543 |
url: user_registration_admin_data.ajax_url,
|
544 |
-
|
545 |
-
|
|
|
|
|
|
|
|
|
546 |
beforeSend: function () {
|
547 |
var spinner = '<span class="spinner is-active" style="float: left;margin-top: 6px;"></span>';
|
548 |
-
$('.
|
549 |
-
$('.ur-
|
550 |
},
|
551 |
complete: function (response) {
|
552 |
-
|
|
|
|
|
|
|
|
|
553 |
if (response.responseJSON.success === true) {
|
554 |
-
|
555 |
-
show_message(success_message, 'success');
|
556 |
-
var location = user_registration_admin_data.admin_url + response.responseJSON.data.post_id;
|
557 |
-
window.location = location;
|
558 |
} else {
|
559 |
-
|
560 |
-
show_message(error);
|
561 |
}
|
|
|
|
|
|
|
562 |
}
|
563 |
});
|
564 |
});
|
565 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
566 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
567 |
function show_message(message, type) {
|
568 |
-
var
|
569 |
-
|
570 |
-
message_string = '
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
571 |
} else {
|
572 |
-
message_string = '<div class="
|
573 |
}
|
574 |
|
575 |
-
$(
|
576 |
-
|
577 |
-
|
578 |
-
|
579 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
580 |
}
|
581 |
|
582 |
function get_validation_status() {
|
@@ -601,13 +772,13 @@ jQuery(function ($) {
|
|
601 |
response.message = i18n_admin.i18n_previous_save_action_ongoing;
|
602 |
return response;
|
603 |
}
|
604 |
-
$.each($('.ur-
|
605 |
var $field = $(this);
|
606 |
var need_to_break = false;
|
607 |
var field_attribute;
|
608 |
try {
|
609 |
var field_value = $field.val();
|
610 |
-
var length = $('.ur-
|
611 |
if (length > 1) {
|
612 |
throw i18n_admin.i18n_duplicate_field_name;
|
613 |
}
|
@@ -637,7 +808,7 @@ jQuery(function ($) {
|
|
637 |
}
|
638 |
});
|
639 |
for (var single_field = 0; single_field < only_one_field_index.length; single_field++) {
|
640 |
-
if ($('.ur-
|
641 |
response.validation_status = false;
|
642 |
response.message = i18n_admin.i18n_multiple_field_key + only_one_field_index[single_field];
|
643 |
break;
|
@@ -645,7 +816,7 @@ jQuery(function ($) {
|
|
645 |
}
|
646 |
for (var required_index = 0; required_index < required_fields.length; required_index++) {
|
647 |
|
648 |
-
if ($('.ur-
|
649 |
response.validation_status = false;
|
650 |
|
651 |
if (required_index === 0) {
|
@@ -663,7 +834,7 @@ jQuery(function ($) {
|
|
663 |
|
664 |
function get_form_data() {
|
665 |
var form_data = [];
|
666 |
-
var single_row = $('.ur-
|
667 |
$.each(single_row, function () {
|
668 |
var grid_list_item = $(this).find('.ur-grid-list-item');
|
669 |
var single_row_data = [];
|
@@ -678,6 +849,15 @@ jQuery(function ($) {
|
|
678 |
return form_data;
|
679 |
}
|
680 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
681 |
function get_grid_wise_data($grid_item) {
|
682 |
var all_field_item = $grid_item.find('.ur-selected-item');
|
683 |
var all_field_data = [];
|
@@ -1018,7 +1198,7 @@ jQuery(function ($) {
|
|
1018 |
function manage_required_fields() {
|
1019 |
var required_fields = user_registration_admin_data.form_required_fields;
|
1020 |
|
1021 |
-
var selected_inputs = $('.ur-
|
1022 |
|
1023 |
if ($.isArray(required_fields)) {
|
1024 |
|
@@ -1051,7 +1231,7 @@ jQuery(function ($) {
|
|
1051 |
|
1052 |
if ($.inArray(data_field_id, single_draggable_fields) >= 0) {
|
1053 |
|
1054 |
-
if ($('.ur-
|
1055 |
$this.draggable('disable');
|
1056 |
} else {
|
1057 |
$this.draggable('enable');
|
@@ -1179,5 +1359,35 @@ jQuery(function ($) {
|
|
1179 |
cloning_element.html('');
|
1180 |
cloning_element.replaceWith(cloning_options);
|
1181 |
}
|
1182 |
-
|
1183 |
}(jQuery, window.user_registration_admin_data));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
*/
|
5 |
jQuery(function ($) {
|
6 |
|
7 |
+
// Adjust builder width
|
8 |
+
$( window ).on( 'resize orientationchange', function() {
|
9 |
+
var resizeTimer;
|
10 |
+
|
11 |
+
clearTimeout( resizeTimer );
|
12 |
+
resizeTimer = setTimeout( function() {
|
13 |
+
$( document.body ).trigger( 'adjust_builder_width' );
|
14 |
+
}, 250 );
|
15 |
+
} );
|
16 |
+
|
17 |
+
$( document.body ).on( 'click', '#collapse-button', function() {
|
18 |
+
$( document.body ).trigger( 'ur_adjust_builder_width' );
|
19 |
+
} );
|
20 |
+
|
21 |
+
$( document.body ).on( 'ur_adjust_builder_width', function() {
|
22 |
+
var adminMenuWidth = $( '#adminmenuwrap' ).width(),
|
23 |
+
$builder = $( '.user-registration_page_add-new-registration .ur-form-subcontainer .menu-edit' ),
|
24 |
+
$loading = $( '.user-registration_page_add-new-registration .ur-form-subcontainer .ur-loading-container' );
|
25 |
+
|
26 |
+
$builder.css({ 'left': adminMenuWidth + 'px'});
|
27 |
+
$loading.fadeOut(1000);
|
28 |
+
}).trigger( 'ur_adjust_builder_width' );
|
29 |
+
|
30 |
+
// Form name edit.
|
31 |
+
$( document.body ).on( 'click', '.ur-form-container .ur-registered-from .ur-form-name-wrapper .ur-edit-form-name', function() {
|
32 |
+
var $input = $(this).siblings( '#ur-form-name' );
|
33 |
+
if( ! $input.hasClass( 'ur-editing' ) ) {
|
34 |
+
$input.focus();
|
35 |
+
}
|
36 |
+
$input.toggleClass( 'ur-editing' );
|
37 |
+
} );
|
38 |
+
|
39 |
+
$( document ).on( 'init_perfect_scrollbar update_perfect_scrollbar', function() {
|
40 |
+
|
41 |
+
// Init perfect Scrollbar.
|
42 |
+
if ( 'undefined' !== typeof PerfectScrollbar ) {
|
43 |
+
var builder_wrapper = $( '.ur-builder-wrapper' ),
|
44 |
+
tab_content = $( '.ur-tab-contents' );
|
45 |
+
|
46 |
+
if( builder_wrapper.length >= 1 && 'undefined' === typeof window.ur_builder_scrollbar ) {
|
47 |
+
window.ur_builder_scrollbar = new PerfectScrollbar( builder_wrapper.selector, {
|
48 |
+
suppressScrollX: true
|
49 |
+
} );
|
50 |
+
} else if( 'undefined' !== typeof window.ur_builder_scrollbar ) {
|
51 |
+
window.ur_builder_scrollbar.update();
|
52 |
+
}
|
53 |
+
|
54 |
+
if( tab_content.length >= 1 && 'undefined' === typeof window.ur_tab_scrollbar ) {
|
55 |
+
window.ur_tab_scrollbar = new PerfectScrollbar( tab_content.selector, {
|
56 |
+
suppressScrollX: true
|
57 |
+
} );
|
58 |
+
} else if ( 'undefined' !== typeof window.ur_tab_scrollbar ) {
|
59 |
+
window.ur_tab_scrollbar.update();
|
60 |
+
tab_content.scrollTop( 0 );
|
61 |
+
}
|
62 |
+
}
|
63 |
+
} );
|
64 |
+
|
65 |
/**
|
66 |
* Append form settings to fileds section.
|
67 |
*/
|
68 |
+
$( document ).ready( function() {
|
69 |
|
70 |
+
$( document ).trigger( 'init_perfect_scrollbar' );
|
|
|
71 |
|
72 |
+
var fields_panel = $('.ur-selected-inputs');
|
|
|
|
|
|
|
73 |
var form_settings_section = $('.ur-registered-inputs nav').find('#ur-tab-field-settings');
|
74 |
var form_settings = form_settings_section.find('form');
|
75 |
|
|
|
76 |
form_settings.appendTo(fields_panel);
|
77 |
|
78 |
+
fields_panel.find('form #ur-field-all-settings > div').each(function (index, el) {
|
|
|
79 |
|
80 |
+
var appending_text = $(el).find('h3').text();
|
81 |
+
var appending_id = $(el).attr('id');
|
82 |
|
83 |
+
form_settings_section.append('<div id="' + appending_id + '" class="form-settings-tab">' + appending_text + '</div>');
|
84 |
+
$( el ).hide();
|
85 |
+
});
|
86 |
|
|
|
|
|
87 |
|
88 |
+
// Add active class to general settings and form-settings-tab for all settings.
|
89 |
+
form_settings_section.find('#general-settings').addClass('active');
|
90 |
+
fields_panel.find( '#ur-field-all-settings div#general-settings' ).show();
|
91 |
|
92 |
+
form_settings_section.find('.form-settings-tab').on('click', function () {
|
|
|
93 |
|
94 |
+
this_id = $( this ).attr( 'id' );
|
95 |
+
// Remove all active classes initially.
|
96 |
+
$(this).siblings().removeClass('active');
|
97 |
+
|
98 |
+
// Add active class on clicked tab.
|
99 |
+
$(this).addClass('active');
|
100 |
+
|
101 |
+
// Hide other settings and show respective id's settings.
|
102 |
+
fields_panel.find('form #ur-field-all-settings > div').hide();
|
103 |
+
fields_panel.find('form #ur-field-all-settings > div#' + this_id ).show();
|
104 |
+
$( document ).trigger( 'update_perfect_scrollbar' );
|
105 |
+
$( '.ur-builder-wrapper' ).scrollTop( 0 );
|
106 |
+
});
|
107 |
+
} );
|
108 |
|
109 |
+
$( document ).on( 'click', '.ur-tab-lists li[role="tab"] a.nav-tab', function( e, $type ) {
|
110 |
+
$( document ).trigger( 'update_perfect_scrollbar' );
|
|
|
111 |
|
112 |
+
if( 'triggered_click' != $type ) {
|
113 |
+
$( '.ur-builder-wrapper' ).scrollTop( 0 );
|
114 |
+
$( '.ur-builder-wrapper-content' ).scrollTop( 0 );
|
115 |
+
}
|
116 |
+
} );
|
117 |
|
118 |
+
// Setting Tab.
|
119 |
+
$(document).on('click', '.ur-tab-lists li[aria-controls="ur-tab-field-settings"]', function () {
|
120 |
|
121 |
+
// Empty fields panels.
|
122 |
+
$( '.ur-builder-wrapper-content' ).hide();
|
123 |
+
$( '.ur-builder-wrapper-footer' ).hide();
|
124 |
|
125 |
+
// Show only the form settings in fields panel.
|
126 |
+
$('.ur-selected-inputs').find('form#ur-field-settings').show();
|
|
|
|
|
|
|
127 |
});
|
128 |
|
129 |
/**
|
130 |
* Display fields panels on fields tab click.
|
131 |
*/
|
132 |
+
$(document).on('click', 'ul.ur-tab-lists li[aria-controls="ur-tab-registered-fields"]', function () {
|
133 |
+
|
134 |
+
// Show field panels.
|
135 |
+
$( '.ur-builder-wrapper-content' ).show();
|
136 |
+
$( '.ur-builder-wrapper-footer' ).show();
|
137 |
|
138 |
+
// Hide the form settings in fields panel.
|
139 |
+
$( '.ur-selected-inputs' ).find( 'form#ur-field-settings' ).hide();
|
|
|
|
|
140 |
});
|
141 |
|
142 |
/**
|
208 |
$( '#ur-full-screen-mode.opened' ).trigger( 'click' );
|
209 |
}
|
210 |
} );
|
211 |
+
|
212 |
+
$( 'input.input-color' ).wpColorPicker();
|
213 |
});
|
214 |
|
215 |
(function ($, user_registration_admin_data) {
|
253 |
},
|
254 |
get_grid_button: function () {
|
255 |
var grid_button = $('<div class="ur-grid-containner"/>');
|
256 |
+
var grid_content = '<button type="button" class="ur-edit-grid"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M28,6V26H4V6H28m2-2H2V28H30V4Z"/></svg></button>';
|
257 |
+
grid_content += '<button type="button" class="dashicons dashicons-no-alt ur-remove-row"></button>';
|
258 |
+
grid_content += '<div class="ur-toggle-grid-content" style="display:none">';
|
259 |
+
grid_content += '<strong>Select the grid size.</strong>';
|
260 |
+
grid_content += '<div class="ur-grid-selector" data-grid = "1">';
|
261 |
+
grid_content += '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M28,6V26H4V6H28m2-2H2V28H30V4Z"/></svg>';
|
262 |
+
grid_content += '</div>';
|
263 |
+
grid_content += '<div class="ur-grid-selector" data-grid = "2">';
|
264 |
+
grid_content += '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M17,4H2V28H30V4ZM4,26V6H15V26Zm24,0H17V6H28Z"/></svg>';
|
265 |
+
grid_content += '</div>';
|
266 |
+
grid_content += '<div class="ur-grid-selector" data-grid = "3">';
|
267 |
+
grid_content += '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M22,4H2V28H30V4ZM4,26V6h6V26Zm8,0V6h8V26Zm16,0H22V6h6Z"/></svg>';
|
268 |
+
grid_content += '</div>';
|
269 |
+
grid_content += '</div>';
|
270 |
grid_button.html(grid_content);
|
271 |
return grid_button.html();
|
272 |
},
|
273 |
single_row: function () {
|
274 |
+
var single_row = $('<div class=\'ur-single-row\'/ data-row-id="0">');
|
275 |
single_row.append($('<div class=\'ur-grids\'/>'));
|
276 |
var grid_button = this.get_grid_button();
|
277 |
single_row.find('.ur-grids').append(grid_button);
|
281 |
single_row.append(grid_list);
|
282 |
single_row.append('<div style="clear:both"></div>');
|
283 |
$this.append(single_row);
|
284 |
+
if ( $this.find('.ur-add-new-row').length == 0 ) {
|
285 |
+
$this.append('<button type="button" class="button button-primary dashicons dashicons-plus-alt ur-add-new-row ui-sortable-handle" data-total-rows="0">' + user_registration_admin_data.add_new + '</button>');
|
286 |
+
var total_rows = $this.find('.ur-add-new-row').siblings('.ur-single-row').last().prev().data('row-id');
|
287 |
+
$this.find('.ur-add-new-row').attr('data-total-rows', total_rows );
|
288 |
+
}
|
289 |
events.render_draggable_sortable();
|
290 |
builder.manage_empty_grid();
|
291 |
if (user_registration_admin_data.is_edit_form === '1') {
|
300 |
},
|
301 |
get_grid_lists: function (number_of_grid) {
|
302 |
var grid_lists = $('<div class="ur-grid-lists"/>');
|
|
|
303 |
for (var i = 1; i <= number_of_grid; i++) {
|
304 |
var grid_list_item = $('<div ur-grid-id=\'' + i + '\' class=\'ur-grid-list-item\'></div>');
|
305 |
var width = Math.floor(100 / number_of_grid) - number_of_grid;
|
|
|
306 |
grid_list_item.css({
|
307 |
'width': width + '%',
|
308 |
'min-height': loaded_params.min_grid_height + 'px'
|
351 |
});
|
352 |
},
|
353 |
manage_empty_grid: function () {
|
354 |
+
var main_containner = $('.ur-input-grids');
|
355 |
var drag_me = $('<div class="user-registration-dragged-me"/>');
|
|
|
356 |
main_containner.find('.user-registration-dragged-me').remove();
|
357 |
$.each(main_containner.find('.ur-grid-list-item'), function () {
|
358 |
var $this = $(this);
|
373 |
register_add_new_row: function () {
|
374 |
var $this_obj = this;
|
375 |
$('body').on('click', '.ur-add-new-row', function () {
|
376 |
+
var total_rows = $( this ).attr( 'data-total-rows' );
|
377 |
+
$( this ).attr( 'data-total-rows', parseInt( total_rows ) + 1 );
|
378 |
+
|
379 |
+
var single_row_clone = $(this).closest('.ur-input-grids').find('.ur-single-row').eq(0).clone();
|
380 |
+
single_row_clone.attr( 'data-row-id', parseInt( total_rows ) + 1 );
|
381 |
single_row_clone.find('.ur-grid-lists').html('');
|
382 |
single_row_clone.find('.ur-grids').find('span').removeClass('ur-active-grid');
|
383 |
single_row_clone.find('.ur-grids').find('span[data-id="' + loaded_params.active_grid + '"]').addClass('ur-active-grid');
|
|
|
|
|
384 |
var grid_list = builder.get_grid_lists(loaded_params.active_grid);
|
385 |
single_row_clone.find('.ur-grid-lists').append(grid_list.html());
|
386 |
single_row_clone.insertBefore('.ur-add-new-row');
|
387 |
+
single_row_clone.show();
|
388 |
$this_obj.render_draggable_sortable();
|
389 |
builder.manage_empty_grid();
|
390 |
+
$( document ).trigger( 'user_registration_row_added', [single_row_clone] );
|
391 |
});
|
392 |
},
|
393 |
register_remove_row: function () {
|
394 |
var $this = this;
|
395 |
$('body').on('click', '.ur-remove-row', function () {
|
396 |
+
if ($('.ur-input-grids').find('.ur-single-row:visible').length > 1) {
|
397 |
+
var $this_row = $( this );
|
398 |
+
ur_confirmation( i18n_admin.i18n_are_you_sure_want_to_delete, {
|
399 |
+
confirm: function() {
|
400 |
+
var btn = $this_row.prev();
|
401 |
+
var new_btn;
|
402 |
+
if (btn.hasClass('ur-add-new-row')) {
|
403 |
+
new_btn = btn.clone();
|
404 |
+
} else {
|
405 |
+
new_btn = $this_row.clone().attr('class', 'dashicons-minus ur-remove-row');
|
406 |
+
}
|
407 |
+
if (new_btn.hasClass('ur-add-new-row')) {
|
408 |
+
$this_row.closest('.ur-single-row').prev().find('.ur-remove-row').before(new_btn);
|
409 |
+
}
|
410 |
+
var single_row = $this_row.closest('.ur-single-row');
|
411 |
+
$( document ).trigger( 'user_registration_row_deleted', [ single_row ] );
|
412 |
+
single_row.remove();
|
413 |
+
$this.check_grid();
|
414 |
+
manage_draggable_users_fields();
|
415 |
+
Swal.fire({
|
416 |
+
type: 'success',
|
417 |
+
title: 'Successfully deleted!',
|
418 |
+
showConfirmButton: false,
|
419 |
+
timer: 1000
|
420 |
+
});
|
421 |
+
},
|
422 |
+
} );
|
423 |
} else {
|
424 |
+
ur_alert( i18n_admin.i18n_at_least_one_row_need_to_select )
|
425 |
}
|
426 |
});
|
427 |
},
|
428 |
change_ur_grids: function () {
|
429 |
var $this_obj = this;
|
430 |
+
|
431 |
+
$( document ).on( 'click', '.ur-grids .ur-edit-grid', function(e) {
|
432 |
+
e.stopPropagation();
|
433 |
+
$( this ).siblings( '.ur-toggle-grid-content' ).stop(true).slideToggle( 200 );
|
434 |
+
} );
|
435 |
+
$( document ).on( 'click', function() {
|
436 |
+
$( '.ur-toggle-grid-content' ).stop(true).slideUp( 200 );
|
437 |
+
} );
|
438 |
+
|
439 |
+
$( document ).on( 'click', '.ur-grids .ur-toggle-grid-content .ur-grid-selector', function() {
|
440 |
+
var $this_single_row = $( this ).closest( '.ur-single-row' ),
|
441 |
+
grid_num = $( this ).attr( 'data-grid' ),
|
442 |
+
$grids = builder.get_grid_lists(grid_num);
|
443 |
+
|
444 |
+
// Prevent from selecting same grid.
|
445 |
+
if( $this_single_row.find( '.ur-grid-lists .ur-grid-list-item' ).length === parseInt( grid_num ) ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
446 |
return;
|
447 |
}
|
448 |
+
|
449 |
+
$this_single_row.find( 'button.ur-edit-grid' ).html( $( this ).html() );
|
450 |
+
|
|
|
|
|
451 |
$.each($this_single_row.find('.ur-grid-lists .ur-grid-list-item'), function () {
|
452 |
$(this).children('*').each(function () {
|
453 |
+
$grids.find('.ur-grid-list-item').eq(0).append($(this).clone()); // "this" is the current element in the loop
|
454 |
});
|
455 |
});
|
456 |
$this_single_row.find('.ur-grid-lists').eq(0).hide();
|
457 |
+
$grids.clone().insertAfter($this_single_row.find('.ur-grid-lists'));
|
458 |
$this_single_row.find('.ur-grid-lists').eq(0).remove();
|
459 |
$this_obj.render_draggable_sortable();
|
460 |
builder.manage_empty_grid();
|
461 |
+
} );
|
462 |
},
|
463 |
render_draggable_sortable: function () {
|
464 |
$('.ur-grid-list-item').sortable({
|
465 |
+
containment: '.ur-input-grids',
|
466 |
over: function () {
|
467 |
$(this).addClass('ur-sortable-active');
|
468 |
builder.manage_empty_grid();
|
474 |
revert: true,
|
475 |
connectWith: '.ur-grid-list-item'
|
476 |
}).disableSelection();
|
477 |
+
$('.ur-input-grids').sortable({
|
478 |
+
containment: '.ur-builder-wrapper',
|
479 |
tolerance: 'pointer',
|
480 |
revert: 'invalid',
|
481 |
placeholder: 'ur-single-row',
|
490 |
$('#ur-draggabled li').draggable({
|
491 |
connectToSortable: '.ur-grid-list-item',
|
492 |
containment: '.ur-registered-from',
|
493 |
+
helper: function() {
|
494 |
+
return $( this ).clone().insertAfter( $( this ).closest( '.ur-tab-contents' ).siblings( '.ur-tab-lists' ) );
|
495 |
+
},
|
496 |
revert: 'invalid',
|
497 |
// start: function (event, ui) {
|
498 |
// },
|
501 |
return;
|
502 |
}
|
503 |
var data_field_id = $.trim($(ui.helper).attr('data-field-id').replace('user_registration_', ''));
|
504 |
+
var length_of_required = $('.ur-input-grids').find('.ur-field[data-field-key="' + data_field_id + '"]').length;
|
505 |
var only_one_field_index = $.makeArray(user_registration_admin_data.form_one_time_draggable_fields);
|
506 |
if (length_of_required > 0 && $.inArray(data_field_id, only_one_field_index) >= 0) {
|
507 |
show_message(i18n_admin.i18n_user_required_field_already_there);
|
535 |
clone_selected_item: function () {
|
536 |
$('body').on('click', '.ur-selected-item .ur-action-buttons .ur-clone', function () {
|
537 |
var data_field_key = $(this).closest('.ur-selected-item ').find('.ur-field').attr('data-field-key');
|
538 |
+
var selected_node = $('.ur-input-grids').find('.ur-field[data-field-key="' + data_field_key + '"]');
|
539 |
var length_of_required = selected_node.length;
|
540 |
if (length_of_required > 0 && $.inArray(data_field_key, user_registration_admin_data.form_one_time_draggable_fields) > -1) {
|
541 |
show_message(i18n_admin.i18n_user_required_field_already_there_could_not_clone);
|
553 |
},
|
554 |
check_grid: function () {
|
555 |
$('.ur-tabs').tabs({ disabled: [1] });
|
556 |
+
$('.ur-tabs').find('a').eq(0).trigger('click', ['triggered_click']);
|
557 |
$('.ur-tabs').find( '[aria-controls="ur-tab-field-options"]' ).addClass( "ur-no-pointer" );
|
558 |
$('.ur-selected-item').removeClass('ur-item-active');
|
559 |
}
|
562 |
events.register();
|
563 |
});
|
564 |
};
|
565 |
+
$('.ur-input-grids').ur_form_builder();
|
566 |
+
$('.ur-tabs .ur-tab-lists').find('a.nav-tab').click(function () {
|
567 |
+
$('.ur-tabs .ur-tab-lists').find('a.nav-tab').removeClass('active');
|
568 |
$(this).addClass('active');
|
569 |
});
|
570 |
$('.ur-tabs').tabs();
|
571 |
+
$('.ur-tabs').find('a').eq(0).trigger('click', ['triggered_click']);
|
572 |
$('.ur-tabs').tabs({ disabled: [1] });
|
573 |
+
$(document).on('click', '.ur-selected-item', function () {
|
574 |
$('.ur-registered-inputs').find('ul li.ur-no-pointer').removeClass('ur-no-pointer');
|
575 |
$('.ur-selected-item').removeClass('ur-item-active');
|
576 |
$(this).addClass('ur-item-active');
|
577 |
render_advance_setting($(this));
|
578 |
init_events();
|
579 |
+
$( document ).trigger( 'update_perfect_scrollbar' );
|
580 |
});
|
581 |
function render_advance_setting(selected_obj) {
|
582 |
var advance_setting = selected_obj.find('.ur-advance-setting-block').clone();
|
591 |
$('#ur-tab-field-options').find('.ur-general-setting-block').show();
|
592 |
if ($('.ur-item-active').length === 1) {
|
593 |
$('.ur-tabs').tabs('enable', 1);
|
594 |
+
$('.ur-tabs').find('a').eq(1).trigger('click', ['triggered_click']);
|
595 |
}
|
596 |
$('.ur-options-list').sortable({
|
597 |
containment: '.ur-general-setting-options',
|
598 |
});
|
599 |
}
|
600 |
|
601 |
+
$('.ur_import_form_action_button').on('click', function () {
|
602 |
+
var file_data = $('#jsonfile').prop('files')[0];
|
603 |
+
var form_data = new FormData();
|
604 |
+
form_data.append('jsonfile', file_data);
|
605 |
+
form_data.append('action', 'user_registration_import_form_action');
|
606 |
+
form_data.append('security', user_registration_admin_data.ur_import_form_save);
|
607 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
608 |
$.ajax({
|
609 |
url: user_registration_admin_data.ajax_url,
|
610 |
+
dataType: 'json', // what to expect back from the PHP script, if anything
|
611 |
+
cache: false,
|
612 |
+
contentType: false,
|
613 |
+
processData: false,
|
614 |
+
data:form_data,
|
615 |
+
type: 'post',
|
616 |
beforeSend: function () {
|
617 |
var spinner = '<span class="spinner is-active" style="float: left;margin-top: 6px;"></span>';
|
618 |
+
$('.ur_import_form_action_button').closest('.publishing-action').append(spinner);
|
619 |
+
$('.ur-import_notice').remove();
|
620 |
},
|
621 |
complete: function (response) {
|
622 |
+
var message_string = '';
|
623 |
+
|
624 |
+
$('.ur_import_form_action_button').closest('.publishing-action').find('.spinner').remove();
|
625 |
+
$('.ur-import_notice').remove();
|
626 |
+
|
627 |
if (response.responseJSON.success === true) {
|
628 |
+
message_string = '<div id="message" class="updated inline ur-import_notice"><p><strong>' + response.responseJSON.data.message + '</strong></p></div>';
|
|
|
|
|
|
|
629 |
} else {
|
630 |
+
message_string = '<div id="message" class="error inline ur-import_notice"><p><strong>' + response.responseJSON.data.message + '</strong></p></div>';
|
|
|
631 |
}
|
632 |
+
|
633 |
+
$('.ur-export-users-page').prepend(message_string);
|
634 |
+
$('#jsonfile').val("");
|
635 |
}
|
636 |
});
|
637 |
});
|
638 |
|
639 |
+
$('.ur_save_form_action_button').on('click', function () {
|
640 |
+
ur_save_form();
|
641 |
+
});
|
642 |
+
|
643 |
+
$(window).on( 'keydown', function(event) {
|
644 |
+
if (event.ctrlKey || event.metaKey) {
|
645 |
+
if( 's' === String.fromCharCode(event.which).toLowerCase() ) {
|
646 |
+
event.preventDefault();
|
647 |
+
ur_save_form();
|
648 |
+
return false;
|
649 |
+
}
|
650 |
+
}
|
651 |
+
});
|
652 |
});
|
653 |
+
|
654 |
+
function ur_save_form() {
|
655 |
+
var validation_response = get_validation_status();
|
656 |
+
if (validation_response.validation_status === false) {
|
657 |
+
show_message(validation_response.message);
|
658 |
+
return;
|
659 |
+
}
|
660 |
+
|
661 |
+
var form_data = get_form_data();
|
662 |
+
var form_row_ids = get_form_row_ids();
|
663 |
+
var ur_form_id = $('#ur_form_id').val();
|
664 |
+
var ur_form_id_localization = user_registration_admin_data.post_id;
|
665 |
+
if (ur_parse_int(ur_form_id_localization, 0) !== ur_parse_int(ur_form_id, 0)) {
|
666 |
+
ur_form_id = 0;
|
667 |
+
}
|
668 |
+
|
669 |
+
var form_setting_data = $('#ur-field-settings').serializeArray();
|
670 |
+
|
671 |
+
/** TODO:: Hanlde from multistep forms add-on if possible. */
|
672 |
+
var multipart_page_setting = $('#ur-multi-part-page-settings').serializeArray();
|
673 |
+
/** End Multistep form code. */
|
674 |
+
|
675 |
+
var data = {
|
676 |
+
action: 'user_registration_form_save_action',
|
677 |
+
security: user_registration_admin_data.ur_form_save,
|
678 |
+
data: {
|
679 |
+
form_data: JSON.stringify(form_data),
|
680 |
+
form_row_ids: JSON.stringify(form_row_ids),
|
681 |
+
form_name: $('#ur-form-name').val(),
|
682 |
+
form_id: ur_form_id,
|
683 |
+
form_setting_data: form_setting_data,
|
684 |
+
multipart_page_setting: multipart_page_setting,
|
685 |
+
}
|
686 |
+
};
|
687 |
+
|
688 |
+
$.ajax({
|
689 |
+
url: user_registration_admin_data.ajax_url,
|
690 |
+
data: data,
|
691 |
+
type: 'POST',
|
692 |
+
beforeSend: function () {
|
693 |
+
var spinner = '<span class="spinner is-active" style="float: left;margin-top: 6px;"></span>';
|
694 |
+
$('.ur_save_form_action_button').closest('.publishing-action').append(spinner);
|
695 |
+
$('.ur-notices').remove();
|
696 |
+
},
|
697 |
+
complete: function (response) {
|
698 |
+
$('.ur_save_form_action_button').closest('.publishing-action').find('.spinner').remove();
|
699 |
+
if (response.responseJSON.success === true) {
|
700 |
+
var success_message = i18n_admin.i18n_form_successfully_saved;
|
701 |
+
show_message(success_message, 'success');
|
702 |
+
|
703 |
+
if( 0 === parseInt( ur_form_id ) ) {
|
704 |
+
window.location = user_registration_admin_data.admin_url + response.responseJSON.data.post_id;
|
705 |
+
}
|
706 |
+
} else {
|
707 |
+
var error = response.responseJSON.data.message;
|
708 |
+
show_message(error);
|
709 |
+
}
|
710 |
+
}
|
711 |
+
});
|
712 |
+
}
|
713 |
+
|
714 |
+
$( document ).on( 'click', '.ur-message .ur-message-close', function() {
|
715 |
+
$message = $( this ).closest( '.ur-message' );
|
716 |
+
removeMessage( $message );
|
717 |
+
} );
|
718 |
+
|
719 |
function show_message(message, type) {
|
720 |
+
var $message_container = $( '.ur-form-container' ).find( '.ur-builder-message-container' ),
|
721 |
+
$admin_bar = $( '#wpadminbar' ),
|
722 |
+
message_string = '';
|
723 |
+
|
724 |
+
if( 0 === $message_container.length ) {
|
725 |
+
$( '.ur-form-container' ).append( '<div class="ur-builder-message-container"></div>' );
|
726 |
+
$message_container = $( '.ur-form-container' ).find( '.ur-builder-message-container' );
|
727 |
+
$message_container.css( { 'top' : $admin_bar.height() + 'px' } );
|
728 |
+
}
|
729 |
+
|
730 |
+
if( 'success' === type ) {
|
731 |
+
message_string = '<div class="ur-message"><div class="ur-success"><p><strong>' + i18n_admin.i18n_success + '! </strong>' + message + '</p><span class="dashicons dashicons-no-alt ur-message-close"></span></div></div>';
|
732 |
} else {
|
733 |
+
message_string = '<div class="ur-message"><div class="ur-error"><p><strong>' + i18n_admin.i18n_error + '! </strong>' + message + '</p><span class="dashicons dashicons-no-alt ur-message-close"></span></div></div>';
|
734 |
}
|
735 |
|
736 |
+
var $message = $( message_string ).prependTo( $message_container );
|
737 |
+
setTimeout( function( ) {
|
738 |
+
$message.addClass( 'entered' );
|
739 |
+
}, 50 );
|
740 |
+
|
741 |
+
setTimeout( function( ) {
|
742 |
+
removeMessage( $message );
|
743 |
+
}, 2000 );
|
744 |
+
}
|
745 |
+
|
746 |
+
function removeMessage( $message ) {
|
747 |
+
$message.removeClass( 'entered' ).addClass( 'exiting' );
|
748 |
+
setTimeout( function() {
|
749 |
+
$message.remove();
|
750 |
+
}, 120 );
|
751 |
}
|
752 |
|
753 |
function get_validation_status() {
|
772 |
response.message = i18n_admin.i18n_previous_save_action_ongoing;
|
773 |
return response;
|
774 |
}
|
775 |
+
$.each($('.ur-input-grids .ur-general-setting-block input[data-field="field_name"]'), function () {
|
776 |
var $field = $(this);
|
777 |
var need_to_break = false;
|
778 |
var field_attribute;
|
779 |
try {
|
780 |
var field_value = $field.val();
|
781 |
+
var length = $('.ur-input-grids .ur-general-setting-block').find('input[data-field="field_name"][value="' + field_value + '"]').length;
|
782 |
if (length > 1) {
|
783 |
throw i18n_admin.i18n_duplicate_field_name;
|
784 |
}
|
808 |
}
|
809 |
});
|
810 |
for (var single_field = 0; single_field < only_one_field_index.length; single_field++) {
|
811 |
+
if ($('.ur-input-grids').find('.ur-field[data-field-key="' + only_one_field_index[single_field] + '"]').length > 1) {
|
812 |
response.validation_status = false;
|
813 |
response.message = i18n_admin.i18n_multiple_field_key + only_one_field_index[single_field];
|
814 |
break;
|
816 |
}
|
817 |
for (var required_index = 0; required_index < required_fields.length; required_index++) {
|
818 |
|
819 |
+
if ($('.ur-input-grids').find('.ur-field[data-field-key="' + required_fields[required_index] + '"]').length === 0) {
|
820 |
response.validation_status = false;
|
821 |
|
822 |
if (required_index === 0) {
|
834 |
|
835 |
function get_form_data() {
|
836 |
var form_data = [];
|
837 |
+
var single_row = $('.ur-input-grids .ur-single-row');
|
838 |
$.each(single_row, function () {
|
839 |
var grid_list_item = $(this).find('.ur-grid-list-item');
|
840 |
var single_row_data = [];
|
849 |
return form_data;
|
850 |
}
|
851 |
|
852 |
+
function get_form_row_ids() {
|
853 |
+
var row_ids = [];
|
854 |
+
var single_row = $('.ur-input-grids .ur-single-row');
|
855 |
+
$.each(single_row, function () {
|
856 |
+
row_ids.push($(this).attr( 'data-row-id' ));
|
857 |
+
});
|
858 |
+
return row_ids;
|
859 |
+
}
|
860 |
+
|
861 |
function get_grid_wise_data($grid_item) {
|
862 |
var all_field_item = $grid_item.find('.ur-selected-item');
|
863 |
var all_field_data = [];
|
1198 |
function manage_required_fields() {
|
1199 |
var required_fields = user_registration_admin_data.form_required_fields;
|
1200 |
|
1201 |
+
var selected_inputs = $('.ur-input-grids');
|
1202 |
|
1203 |
if ($.isArray(required_fields)) {
|
1204 |
|
1231 |
|
1232 |
if ($.inArray(data_field_id, single_draggable_fields) >= 0) {
|
1233 |
|
1234 |
+
if ($('.ur-input-grids').find('.ur-field[data-field-key="' + data_field_id + '"]').length > 0) {
|
1235 |
$this.draggable('disable');
|
1236 |
} else {
|
1237 |
$this.draggable('enable');
|
1359 |
cloning_element.html('');
|
1360 |
cloning_element.replaceWith(cloning_options);
|
1361 |
}
|
|
|
1362 |
}(jQuery, window.user_registration_admin_data));
|
1363 |
+
|
1364 |
+
function ur_alert( message, options ) {
|
1365 |
+
if( 'undefined' === typeof options ) {
|
1366 |
+
options = {};
|
1367 |
+
}
|
1368 |
+
Swal.fire({
|
1369 |
+
type: 'error',
|
1370 |
+
title: options.title,
|
1371 |
+
text: message,
|
1372 |
+
});
|
1373 |
+
}
|
1374 |
+
|
1375 |
+
function ur_confirmation( message, options ) {
|
1376 |
+
if( 'undefined' === typeof options ) {
|
1377 |
+
options = {};
|
1378 |
+
}
|
1379 |
+
Swal.fire({
|
1380 |
+
title: options.title,
|
1381 |
+
text: message,
|
1382 |
+
type: ( 'undefined' !== typeof options.type ) ? options.type : 'warning',
|
1383 |
+
showCancelButton: ( 'undefined' !== typeof options.showCancelButton ) ? options.showCancelButton : true,
|
1384 |
+
confirmButtonText: ( 'undefined' !== typeof options.confirmButtonText ) ? options.confirmButtonText : 'OK',
|
1385 |
+
cancelButtonText: ( 'undefined' !== typeof options.cancelButtonText ) ? options.cancelButtonText :'Cancel',
|
1386 |
+
}).then( function(result) {
|
1387 |
+
if (result.value) {
|
1388 |
+
options.confirm();
|
1389 |
+
} else {
|
1390 |
+
options.reject();
|
1391 |
+
}
|
1392 |
+
});
|
1393 |
+
}
|
assets/js/admin/admin.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
jQuery(function(e){var t=e(".ur-tab-lists").find("li").last();e(t).on("click",function(){var t=e(".ur-selected-inputs");t.children().hide();var i=e(".ur-registered-inputs nav").find("#ur-tab-field-settings");i.find("form").appendTo(t),t.find("form#ur-field-settings").show();var r=t.find("form #ur-field-all-settings").children();r.hide(),t.find("form #ur-field-all-settings #general-settings").show(),r.each(function(r,a){var n=e(a).find("h3").text(),s=e(a).attr("id");0===i.find("#"+s).length&&i.append('<div id="'+s+'">'+n+"</div>"),i.find("#general-settings").addClass("active"),i.find("#"+s).addClass("form-settings-tab"),e(i.find("#"+s)).on("click",function(){e(this).parent().find(".active").removeClass("active"),e(this).addClass("active"),t.find("form #ur-field-all-settings").children().hide(),t.find("form #ur-field-all-settings").find("#"+s).show()})})});var i=e(".ur-tab-lists").find("li").first();e(i).on("click",function(){fields_panel=e(".ur-selected-inputs"),fields_panel.children().show(),fields_panel.find("form#ur-field-settings").hide()});var r=e("#general-settings").find("#user_registration_form_setting_minimum_password_strength_field"),a=e("#general-settings").find("#user_registration_form_setting_enable_strong_password_field select#user_registration_form_setting_enable_strong_password");"yes"===a.val()?r.show():r.hide(),e(a).change(function(){"yes"===e(this).val()?r.show("slow"):r.hide("slow")}),e(document.body).on("init_tooltips",function(){var t={attribute:"data-tip",fadeIn:50,fadeOut:50,delay:200,keepAlive:!0};e(".tips, .help_tip, .user-registration-help-tip").tipTip(t),t.keepAlive=!1,e(".ur-copy-shortcode").tipTip(t),e(".parent-tips").each(function(){e(this).closest("a, th").attr("data-tip",e(this).data("tip")).tipTip(t).css("cursor","help")})}).trigger("init_tooltips"),e("body").on("keypress","#ur-form-name",function(t){13===t.which&&e("#save_form_footer").eq(0).trigger("click")}),e("#ur-full-screen-mode").on("click",function(t){t.preventDefault();var i=e(this);i.hasClass("closed")?(i.removeClass("closed"),i.addClass("opened"),e("body").addClass("ur-full-screen-mode")):(i.removeClass("opened"),i.addClass("closed"),e("body").removeClass("ur-full-screen-mode"))}),e(document).on("keyup",function(t){"Escape"===t.key&&e("#ur-full-screen-mode.opened").trigger("click")})}),function(e,t){function i(t,i){var r;r="success"===i?'<div class="updated ur-notices" style="border-color: green;"><p><strong>'+g.i18n_success+"! </strong>"+t+"</p></div>":'<div class="updated ur-notices" style="border-color: red;"><p><strong>'+g.i18n_error+"!!! </strong>"+t+"</p></div>",e(".ur-form-subcontainer").find(".ur-notices").remove(),e(".ur-form-subcontainer").prepend(r),e("html, body").animate({scrollTop:e(".ur-notices").offset().top-50},600)}function r(){var t=[],i=e(".ur-selected-inputs .ur-single-row");return e.each(i,function(){var i=e(this).find(".ur-grid-list-item"),r=[];e.each(i,function(){var t=function(t){var i=t.find(".ur-selected-item"),r=[];return e.each(i,function(){var t=e(this),i={field_key:t.find(".ur-field").attr("data-field-key"),general_setting:function(t){var i=t.find(".ur-general-setting-block").find(".ur-general-setting-field"),r={},n=[],s=[];return e.each(i,function(){var t=e(this).closest(".ur-general-setting").hasClass("ur-setting-checkbox");"options"===e(this).attr("data-field")?(r.options=n.push(a(e(this))),r.options=n):"default_value"===e(this).attr("data-field")?!0===t?e(this).is(":checked")&&(r.default_value=s.push(a(e(this))),r.default_value=s):e(this).is(":checked")&&(r.default_value=a(e(this))):r[e(this).attr("data-field")]=a(e(this))}),r}(t),advance_setting:function(t){var i=t.find(".ur-advance-setting-block").find(".ur_advance_setting"),r={};return e.each(i,function(){r[e(this).attr("data-advance-field")]=a(e(this))}),r}(t)};r.push(i)}),r}(e(this));r.push(t)}),t.push(r)}),t}function a(e){var t="";switch(e.get(0).tagName.toLowerCase()){case"input":case"select":case"textarea":t=e.val()}return t}function n(){var t=e(".ur-general-setting-field");e.each(t,function(){var t=e(this);switch(t.attr("data-field")){case"label":t.on("keyup",function(){!function(t){e(".ur-selected-item.ur-item-active").find(".ur-label").find("label").text(t.val());e(".ur-selected-item.ur-item-active").find(".ur-general-setting-block").find('input[data-field="'+t.attr("data-field")+'"]').attr("value",t.val())}(e(this))});break;case"field_name":case"input_mask":t.on("change",function(){!function(t){e(".ur-selected-item.ur-item-active").find(".ur-general-setting-block").find('input[data-field="'+t.attr("data-field")+'"]').attr("value",t.val())}(e(this))});case"default_value":t.on("change",function(){"default_value"===t.attr("data-field")&&(t.closest(".ur-general-setting-block").hasClass("ur-general-setting-select")?o(e(this)):t.closest(".ur-general-setting-block").hasClass("ur-general-setting-radio")?d(e(this)):t.closest(".ur-general-setting-block").hasClass("ur-general-setting-checkbox")&&l(e(this)))});break;case"options":t.on("keyup",function(){t.closest(".ur-general-setting-block").hasClass("ur-general-setting-select")&&t.siblings('input[data-field="default_value"]').is(":checked")?o(e(this)):t.closest(".ur-general-setting-block").hasClass("ur-general-setting-radio")?d(e(this)):t.closest(".ur-general-setting-block").hasClass("ur-general-setting-checkbox")&&l(e(this)),function(t){var i=e(".ur-selected-item.ur-item-active"),r=t.closest("li").index();i.find(".ur-general-setting-block li:nth("+r+') input[data-field="'+t.attr("data-field")+'"]').attr("value",t.val()),i.find(".ur-general-setting-block li:nth("+r+') input[data-field="default_value"]').val(t.val()),t.closest("li").find('[data-field="default_value"]').val(t.val())}(e(this))});break;case"placeholder":t.on("keyup",function(){!function(t){var i=e(".ur-selected-item.ur-item-active");i.find(".ur-field").find("input").attr("placeholder",t.val()),i.find(".ur-general-setting-block").find('input[data-field="'+t.attr("data-field")+'"]').val(t.val())}(e(this))});break;case"required":t.on("change",function(){!function(t){var i=e(".ur-selected-item.ur-item-active");i.find(".ur-label").find("label").find("span").remove(),"yes"===t.val()&&i.find(".ur-label").find("label").append('<span style="color:red">*</span>');i.find(".ur-general-setting-block").find('select[data-field="'+t.attr("data-field")+'"]').find('option[value="'+t.val()+'"]').attr("selected","selected")}(e(this))});break;case"hide_label":t.on("change",function(){!function(t){var i=e(".ur-selected-item.ur-item-active");i.find(".ur-label").find("label").find("span").remove(),i.find(".ur-general-setting-block").find('select[data-field="'+t.attr("data-field")+'"]').find('option[value="'+t.val()+'"]').attr("selected","selected")}(e(this))});break;case"description":case"html":t.on("keyup",function(){!function(t){var i=e(".ur-selected-item.ur-item-active");i.find(".ur-field").find("textarea").attr("description",t.val()),i.find(".ur-general-setting-block").find('textarea[data-field="'+t.attr("data-field")+'"]').val(t.val())}(e(this))})}});var i=e(".ur_advance_setting");e.each(i,function(){var t=e(this),i=t.get(0).tagName.toLowerCase(),r="change";switch(i){case"input":r="keyup";break;case"select":r="change";break;case"textarea":r="keyup";break;default:r="change"}e(this).on(r,function(){s(t,i)}),e(this).on("paste",function(){s(t,i)})})}function s(t,i){var r=e(".ur-selected-item.ur-item-active"),a=t.attr("data-id"),n=r.find(".ur-advance-setting-block").find('[data-id="'+a+'"]');switch(i){case"input":n.val(t.val());break;case"select":n.find('option[value="'+t.val()+'"]').attr("selected","selected");break;case"textarea":n.val(t.val()),function(t){switch(e(".ur-selected-item.ur-item-active").find(".ur-field").attr("data-field-key")){case"select":o(t);break;case"checkbox":l(t);break;case"radio":d(t)}}(t.val())}}function l(t){var i=[],r=t.closest("ul").find("li"),a=t.closest("li").index();r.each(function(t,r){var a=e(r).find("input.ur-type-checkbox-label").val();a=e.trim(a),s=e(r).find("input.ur-type-checkbox-value").is(":checked"),i.push({value:a,checkbox:s})});var n=e(".ur-selected-item.ur-item-active"),s=n.find(".ur-field");s.html("");for(var l=0;l<i.length;l++)""!==i[l]&&s.append('<label><input value="'+i[l].value.trim()+'" type="checkbox" '+(i[l].checkbox?"checked":"")+" disabled>"+i[l].value.trim()+"</label>");t.is(":checked")?n.find(".ur-general-setting-options li:nth("+a+') input[data-field="default_value"]').attr("checked","checked"):n.find(".ur-general-setting-options li:nth("+a+') input[data-field="default_value"]').removeAttr("checked")}function d(t){var i=t.closest("ul").find("li"),r=undefined,a=[];i.each(function(t,i){var n=e(i).find("input.ur-type-radio-label").val();n=e.trim(n),!0===(s=e(i).find("input.ur-type-radio-value").is(":checked"))&&(r=t),a.push({value:n,radio:s})});var n=e(".ur-selected-item.ur-item-active"),s=n.find(".ur-field");s.html("");for(var l=0;l<a.length;l++)""!==a[l]&&s.append('<label><input value="'+a[l].value.trim()+'" type="radio" '+(a[l].radio?"checked":"")+" disabled>"+a[l].value.trim()+"</label>");n.find(".ur-general-setting-options > ul.ur-options-list > li").each(function(t,i){var a=e(i).find('[data-field="default_value"]');t===r?a.attr("checked","checked"):a.removeAttr("checked")})}function o(t){value=e.trim(t.val());var i=e(".ur-selected-item.ur-item-active"),r=t.closest("li").index(),a=i.find(".ur-field").find("select");a.html(""),a.append("<option value='"+value+"'>"+value+"</option>"),i.find('.ur-general-setting-options li input[data-field="default_value"]').removeAttr("checked"),i.find(".ur-general-setting-options li:nth("+r+') input[data-field="default_value"]').attr("checked","checked")}function u(){var i=t.form_one_time_draggable_fields,r=e("#ur-tab-registered-fields").find("ul.ur-registered-list");e.each(r.find("li"),function(){var t=e(this),r=e(this).attr("data-field-id").replace("user_registration_","");e.inArray(r,i)>=0&&(e(".ur-selected-inputs").find('.ur-field[data-field-key="'+r+'"]').length>0?t.draggable("disable"):t.draggable("enable"))})}function c(e){return Math.ceil(e,0)}function f(e){return parseInt(e,0)}var g=t.i18n_admin;e(function(){({init:function(){e(document.body).on("click",".column-data_link a",this.add_item).on("ur_backbone_modal_loaded",this.backbone.init).on("ur_backbone_modal_response",this.backbone.response)},add_item:function(t){return t.preventDefault(),e(this).URBackboneModal({template:"test-demo"}),!1},backbone:{init:function(e,t){},response:function(e,t){}}}).init(),e.fn.ur_form_builder=function(){var r={active_grid:t.active_grid,number_of_grid_list:t.number_of_grid,min_grid_height:70};return this.each(function(){var a=e(this),n={init:function(){this.single_row(),function(){var i=t.form_required_fields,r=e(".ur-selected-inputs");if(e.isArray(i))for(var a=0;a<i.length;a++){var n=r.find('.ur-field[data-field-key="'+i[a]+'"]');n.closest(".ur-selected-item").find('select[data-field="required"]').val("yes").trigger("change"),n.closest(".ur-selected-item").find('select[data-field="required"]').find('option[value="yes"]').attr("selected","selected"),n.closest(".ur-selected-item").find('select[data-field="required"]').attr("disabled","disabled")}var s=r.find('select[data-field="required"]').find('option[selected="selected"][value="yes"]').closest(".ur-selected-item").find(".ur-label").find("label");s.find("span").remove(),s.append('<span style="color:red">*</span>')}()},get_grid_button:function(){var t=e('<div class="ur-grid-containner"/>'),i=c(f(r.number_of_grid_list)/f(r.active_grid))+"/"+r.number_of_grid_list,a='<div class="ur-grid-navigation ur-nav-right dashicons dashicons-arrow-left-alt2"></div><div class="ur-grid-size" data-active-grid="'+r.active_grid+'">'+i+'</div><div class="ur-grid-navigation ur-nav-left dashicons dashicons-arrow-right-alt2"></div><button type="button" class="dashicons dashicons-no-alt ur-remove-row"></button>';return t.html(a),t.html()},single_row:function(){var i=e("<div class='ur-single-row'/>");i.append(e("<div class='ur-grids'/>"));var l=this.get_grid_button();i.find(".ur-grids").append(l),i.find(".ur-grids").find('span[data-id="'+r.active_grid+'"]').addClass("ur-active-grid");var d=this.get_grid_lists(r.active_grid);i.append('<div style="clear:both"></div>'),i.append(d),i.append('<div style="clear:both"></div>'),a.append(i),a.find(".ur-add-new-row").remove(),a.append('<button type="button" class="dashicons dashicons-plus-alt ur-add-new-row ui-sortable-handle"></button>'),s.render_draggable_sortable(),n.manage_empty_grid(),"1"===t.is_edit_form&&e(".ur-single-row").eq(e(".ur-single-row").length-1).remove(),"1"!==t.is_edit_form&&(e(".ur-single-row").eq(0).find(".ur-grid-lists").eq(0).find(".ur-grid-list-item").eq(0).find(".user-registration-dragged-me").remove(),e(".ur-single-row").eq(0).find(".ur-grid-lists").eq(0).find(".ur-grid-list-item").eq(0).append(t.required_form_html)),u()},get_grid_lists:function(t){for(var i=e('<div class="ur-grid-lists"/>'),a=1;a<=t;a++){var n=e("<div ur-grid-id='"+a+"' class='ur-grid-list-item'></div>"),s=Math.floor(100/t)-t;s,n.css({width:s+"%","min-height":r.min_grid_height+"px"}),i.append(n)}return i.append('<div style="clear:both"></div>'),i.find(".ur-grid-list-item").eq("0").css({}),i},populate_dropped_node:function(i,r){var a={action:"user_registration_user_input_dropped",security:t.user_input_dropped,form_field_id:r},s='<div class="ur-selected-item ajax_added"><div class="ur-action-buttons"><span title="Clone" class="dashicons dashicons-admin-page ur-clone"></span><span title="Trash" class="dashicons dashicons-trash ur-trash"></span></div>(content)</div>';i.closest(".ur-single-row").find(".user-registration-dragged-me").fadeOut(),e.ajax({url:t.ajax_url,data:a,type:"POST",beforeSend:function(){i.removeAttr("class").removeAttr("id").removeAttr("data-field-id").addClass("ur-selected-item").css({width:"auto"}),i.html('<small class="spinner is-active"></small>'),i.addClass("ur-item-dragged")},complete:function(t){if(n.manage_empty_grid(),!0===t.responseJSON.success){var r=e(s.replace("(content)",t.responseJSON.data.template));r.removeClass("ajax_added"),r.removeClass("ur-item-dragged"),i.find(".ajax_added").find(".spinner").remove(),i.find(".ajax_added").remove(),e(r).insertBefore(i),i.remove()}u();!function(e){jQuery(".ur-grid-lists .ur-selected-item .ur-admin-template").each(function(){var t=jQuery(this).find(".ur-label label").text(),i=jQuery(this).find(".ur-field").attr("data-field-key");"section_title"!=i&&"html"!=i&&"wysiwyg"!=i&&"billing_address_title"!=i&&"shipping_address_title"!=i&&jQuery(this).find(".ur-general-setting-block .ur-general-setting").each(function(){var r=jQuery(this).find("[data-field='field_name']").val();void 0!==r&&(1==!(jQuery(".urcl-rules select.ur_advance_setting.urcl-settings-rules_field_1 option[value='"+r+"']").length>0)?(jQuery('[class*="urcl-settings-rules_field_"]').append('<option value ="'+r+'" data-type="'+i+'">'+t+" </option>"),r==e&&jQuery('.urcl-rules select.ur_advance_setting.urcl-settings-rules_field_1.empty-fields option[value="'+e+'"]').remove()):jQuery(".urcl-rules select.ur_advance_setting.urcl-settings-rules_field_1.empty-fields").append('<option value ="'+r+'" data-type="'+i+'">'+t+" </option>"))})}),jQuery(".urcl-rules select.ur_advance_setting.urcl-settings-rules_field_1.empty-fields").removeClass("empty-fields")}(r.closest(".ur-selected-item ").find("[data-field='field_name']").val()),e('.ur-input-type-select2 .ur-field[data-field-key="select2"] select, .ur-input-type-multi-select2 .ur-field[data-field-key="multi_select2"] select').selectWoo()}})},manage_empty_grid:function(){var t=e(".ur-selected-inputs"),i=e('<div class="user-registration-dragged-me"/>');i.html('<div class="user-registration-dragged-me-text"><p>'+g.i18n_drag_your_first_item_here+"</p></div>"),t.find(".user-registration-dragged-me").remove(),e.each(t.find(".ur-grid-list-item"),function(){var t=e(this);0===e(this).find(".ur-selected-item").length&&t.append(i.clone())})}},s={register:function(){this.register_add_new_row(),this.register_remove_row(),this.change_ur_grids(),this.remove_selected_item(),this.clone_selected_item()},register_add_new_row:function(){var t=this;e("body").on("click",".ur-add-new-row",function(){var i=e(this).closest(".ur-selected-inputs").find(".ur-single-row").eq(0).clone();i.find(".ur-grid-lists").html(""),i.find(".ur-grids").find("span").removeClass("ur-active-grid"),i.find(".ur-grids").find('span[data-id="'+r.active_grid+'"]').addClass("ur-active-grid");var a=n.get_grid_lists(r.active_grid);i.find(".ur-grid-lists").append(a.html()),i.insertBefore(".ur-add-new-row"),t.render_draggable_sortable(),n.manage_empty_grid()})},register_remove_row:function(){var t=this;e("body").on("click",".ur-remove-row",function(){if(e(".ur-selected-inputs").find(".ur-single-row").length>1){if(window.confirm(g.i18n_are_you_sure_want_to_delete)){var i,r=e(this).prev();(i=r.hasClass("ur-add-new-row")?r.clone():e(this).clone().attr("class","dashicons-minus ur-remove-row")).hasClass("ur-add-new-row")&&e(this).closest(".ur-single-row").prev().find(".ur-remove-row").before(i),e(this).closest(".ur-single-row").remove(),t.check_grid()}}else window.alert(g.i18n_at_least_one_row_need_to_select)})},change_ur_grids:function(){var t=this;e("body").on("click",".ur-single-row .ur-nav-right",function(){var i=e(this).closest(".ur-single-row"),a=e(this).closest(".ur-grids").find(".ur-grid-size").attr("data-active-grid");if(!(a>=r.number_of_grid_list)){a=f(a)+1;var s=c(f(r.number_of_grid_list)/f(a))+"/"+r.number_of_grid_list;e(this).closest(".ur-grids").find(".ur-grid-size").attr("data-active-grid",a),e(this).closest(".ur-grids").find(".ur-grid-size").text(s);var l=n.get_grid_lists(a);e.each(i.find(".ur-grid-lists .ur-grid-list-item"),function(){e(this).children("*").each(function(){l.find(".ur-grid-list-item").eq(0).append(e(this).clone())})}),i.find(".ur-grid-lists").eq(0).hide(),l.clone().insertAfter(i.find(".ur-grid-lists")),i.find(".ur-grid-lists").eq(0).remove(),t.render_draggable_sortable(),n.manage_empty_grid()}}),e("body").on("click",".ur-single-row .ur-nav-left",function(){var i=e(this).closest(".ur-single-row"),a=e(this).closest(".ur-grids").find(".ur-grid-size").attr("data-active-grid");if(!(a<=1)){a=f(a)-1;var s=c(f(r.number_of_grid_list)/f(a))+"/"+r.number_of_grid_list;e(this).closest(".ur-grids").find(".ur-grid-size").attr("data-active-grid",a),e(this).closest(".ur-grids").find(".ur-grid-size").text(s);var l=n.get_grid_lists(a);e.each(i.find(".ur-grid-lists .ur-grid-list-item"),function(){e(this).children("*").each(function(){l.find(".ur-grid-list-item").eq(0).append(e(this).clone())})}),i.find(".ur-grid-lists").eq(0).hide(),l.clone().insertAfter(i.find(".ur-grid-lists")),i.find(".ur-grid-lists").eq(0).remove(),t.render_draggable_sortable(),n.manage_empty_grid()}})},render_draggable_sortable:function(){e(".ur-grid-list-item").sortable({containment:".ur-selected-inputs",over:function(){e(this).addClass("ur-sortable-active"),n.manage_empty_grid()},out:function(){e(this).removeClass("ur-sortable-active"),n.manage_empty_grid()},revert:!0,connectWith:".ur-grid-list-item"}).disableSelection(),e(".ur-selected-inputs").sortable({containment:".ur-selected-inputs",tolerance:"pointer",revert:"invalid",placeholder:"ur-single-row",forceHelperSize:!0,over:function(){e(this).addClass("ur-sortable-active")},out:function(){e(this).removeClass("ur-sortable-active")}}),e("#ur-draggabled li").draggable({connectToSortable:".ur-grid-list-item",containment:".ur-registered-from",helper:"clone",revert:"invalid",stop:function(r,a){if(0!==e(a.helper).closest(".ur-grid-list-item").length){var s=e.trim(e(a.helper).attr("data-field-id").replace("user_registration_","")),l=e(".ur-selected-inputs").find('.ur-field[data-field-key="'+s+'"]').length,d=e.makeArray(t.form_one_time_draggable_fields);if(l>0&&e.inArray(s,d)>=0)return i(g.i18n_user_required_field_already_there),void e(a.helper).remove();var o=e(a.helper),u=e(o).attr("data-field-id");if(void 0!==u){var c=e(a.helper).closest(".ur-grid-list-item").find('li[data-field-id="'+e(this).attr("data-field-id")+'"]');n.populate_dropped_node(c,u)}}}}).disableSelection()},remove_selected_item:function(){var t=this;e("body").on("click",".ur-selected-item .ur-action-buttons .ur-trash",function(i){var r=e(this).closest(".ur-selected-item ").find("[data-field='field_name']").val();return e(this).closest(".ur-selected-item ").remove(),t.check_grid(),n.manage_empty_grid(),u(),jQuery('[class*="urcl-settings-rules_field_"] option[value="'+r+'"]').remove(),!1})},clone_selected_item:function(){e("body").on("click",".ur-selected-item .ur-action-buttons .ur-clone",function(){var r=e(this).closest(".ur-selected-item ").find(".ur-field").attr("data-field-key");if(e(".ur-selected-inputs").find('.ur-field[data-field-key="'+r+'"]').length>0&&e.inArray(r,t.form_one_time_draggable_fields)>-1)i(g.i18n_user_required_field_already_there_could_not_clone);else{var a=e(this).closest(".ur-selected-item ").clone(),n=a.find('input[data-field="field_name"]'),s=n.val().match(/\d+/g),l=s.length>0?s[s.length-1]:"",d=n.val().replace(l,"");a.find('input[data-field="field_name"]').attr("value",d+(new Date).getTime()),e(this).closest(".ur-grid-list-item").append(a)}})},check_grid:function(){e(".ur-tabs").tabs({disabled:[1]}),e(".ur-tabs").find("a").eq(0).trigger("click"),e(".ur-tabs").find('[aria-controls="ur-tab-field-options"]').addClass("ur-no-pointer"),e(".ur-selected-item").removeClass("ur-item-active")}};n.init(),s.register()})},e(".ur-selected-inputs").ur_form_builder(),e(".ur-tabs").find("a").click(function(){e(".ur-tabs").find("a").removeClass("active"),e(this).addClass("active")}),e(".ur-tabs").tabs(),e(".ur-tabs").find("a").eq(0).trigger("click"),e(".ur-tabs").tabs({disabled:[1]}),e("body").on("click",".ur-selected-item",function(){e(".ur-registered-inputs").find("ul li.ur-no-pointer").removeClass("ur-no-pointer"),e(".ur-selected-item").removeClass("ur-item-active"),e(this).addClass("ur-item-active"),function(t){var i=t.find(".ur-advance-setting-block").clone(),r=t.find(".ur-general-setting-block").clone(),a=e("<form id='ur-setting-form'/>");e("#ur-tab-field-options").html(""),a.append(r),a.append(i),e("#ur-tab-field-options").append(a),e("#ur-tab-field-options").find(".ur-advance-setting-block").show(),e("#ur-tab-field-options").find(".ur-general-setting-block").show(),1===e(".ur-item-active").length&&(e(".ur-tabs").tabs("enable",1),e(".ur-tabs").find("a").eq(1).trigger("click")),e(".ur-options-list").sortable({containment:".ur-general-setting-options"})}(e(this)),n()}),e(".ur_save_form_action_button").on("click",function(){var a=function(){var i=e.makeArray(t.form_one_time_draggable_fields),r=e.makeArray(t.form_required_fields),a={validation_status:!0,message:""};if(0===e(".ur-selected-item").length)return a.validation_status=!1,a.message=g.i18n_at_least_one_field_need_to_select,a;if(""===e("#ur-form-name").val())return a.validation_status=!1,a.message=g.i18n_empty_form_name,a;if(e(".ur_save_form_action_button").closest(".publishing-action").find(".spinner").length>0)return a.validation_status=!1,a.message=g.i18n_previous_save_action_ongoing,a;e.each(e('.ur-selected-inputs .ur-general-setting-block input[data-field="field_name"]'),function(){var t,i=e(this),r=!1;try{var n=i.val();if(e(".ur-selected-inputs .ur-general-setting-block").find('input[data-field="field_name"][value="'+n+'"]').length>1)throw g.i18n_duplicate_field_name;if(""===i.closest(".ur-general-setting-block").find('input[data-field="label"]').val())throw i=i.closest(".ur-general-setting-block").find('input[data-field="label"]'),g.i18n_empty_field_label;var s=n.match(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/gm);if(null===s||1!==s.length||s[0]!==n)throw g.i18n_invald_field_name}catch(l){a.validation_status=!1,a.message=l.message===undefined?l:l.message,i.closest(".ur-selected-item").trigger("click"),t=i.attr("data-field"),e("#ur-setting-form").find('input[data-field="'+t+'"]').css({border:"1px solid red"}),setTimeout(function(){e("#ur-setting-form").find('input[data-field="'+t+'"]').removeAttr("style")},2e3),r=!0}if(r)return!1});for(var n=0;n<i.length;n++)if(e(".ur-selected-inputs").find('.ur-field[data-field-key="'+i[n]+'"]').length>1){a.validation_status=!1,a.message=g.i18n_multiple_field_key+i[n];break}for(var s=0;s<r.length;s++)if(0===e(".ur-selected-inputs").find('.ur-field[data-field-key="'+r[s]+'"]').length){if(a.validation_status=!1,0===s)var l=g.i18n_user_email;else 1===s&&(l=g.i18n_user_password);a.message=l+" "+g.i18n_field_is_required;break}return a}();if(!1!==a.validation_status){var n=r(),s=e("#ur_form_id").val();f(t.post_id)!==f(s)&&(s=0);var l=e("#ur-field-settings").serializeArray(),d={action:"user_registration_form_save_action",security:t.ur_form_save,data:{form_data:JSON.stringify(n),form_name:e("#ur-form-name").val(),form_id:s,form_setting_data:l}};e.ajax({url:t.ajax_url,data:d,type:"POST",beforeSend:function(){e(".ur_save_form_action_button").closest(".publishing-action").append('<span class="spinner is-active" style="float: left;margin-top: 6px;"></span>'),e(".ur-notices").remove()},complete:function(r){if(e(".ur_save_form_action_button").closest(".publishing-action").find(".spinner").remove(),!0===r.responseJSON.success){i(g.i18n_form_successfully_saved,"success");var a=t.admin_url+r.responseJSON.data.post_id;window.location=a}else{i(r.responseJSON.data.message)}}})}else i(a.message)})}),setTimeout(function(){var t=e('#profile-page form#your-profile input[type="date"]');t.length>0&&t.addClass("flatpickr-field").attr("type","text").flatpickr({disableMobile:!0})},2),e(document).on("click","#ur-tab-registered-fields h2",function(){e(this).hasClass("closed")?e(this).removeClass("closed"):e(this).addClass("closed");var t=e(this).find(" ~ .ur-registered-list")[0];e(t).slideToggle()}),e(document).on("click",".ur-options-list .add",function(t){t.preventDefault();var i=e(this),r=e(".ur-selected-item.ur-item-active"),a=i.parent("li").index(),n=i.parent("li").clone(!0,!0);n.find('input[data-field="options"]').val(""),n.find('input[data-field="default_value"]').removeAttr("checked"),i.parent("li").after(n),r.find(".ur-general-setting-options .ur-options-list > li:nth( "+a+" )").after(n.clone(!0,!0)),i.closest(".ur-general-setting-block").hasClass("ur-general-setting-radio")?d(i):i.closest(".ur-general-setting-block").hasClass("ur-general-setting-checkbox")&&l(i)}),e(document).on("click",".ur-options-list .remove",function(t){t.preventDefault();var i=e(this),r=e(this).closest("ul");$any_siblings=r.find("li"),$wrapper=e(".ur-selected-item.ur-item-active"),this_index=i.parent("li").index(),r.find("li").length>1&&(i.parent("li").remove(),$wrapper.find(".ur-general-setting-options .ur-options-list > li:nth( "+this_index+" )").remove(),$any_siblings.closest(".ur-general-setting-block").hasClass("ur-general-setting-radio")?d($any_siblings):$any_siblings.closest(".ur-general-setting-block").hasClass("ur-general-setting-checkbox")&&l($any_siblings))}),e(document).on("sortstop",".ur-options-list",function(t,i){var r=e(this);!function(t){var i=t.clone(!0,!0),r=e(".ur-selected-item.ur-item-active").find(".ur-general-setting-options .ur-options-list");r.html(""),r.replaceWith(i)}(r),r.closest(".ur-general-setting-block").hasClass("ur-general-setting-radio")?d(r):r.closest(".ur-general-setting-block").hasClass("ur-general-setting-checkbox")&&l(r)})}(jQuery,window.user_registration_admin_data);
|
1 |
+
function ur_alert(e,t){void 0===t&&(t={}),Swal.fire({type:"error",title:t.title,text:e})}function ur_confirmation(e,t){void 0===t&&(t={}),Swal.fire({title:t.title,text:e,type:"undefined"!=typeof t.type?t.type:"warning",showCancelButton:"undefined"==typeof t.showCancelButton||t.showCancelButton,confirmButtonText:"undefined"!=typeof t.confirmButtonText?t.confirmButtonText:"OK",cancelButtonText:"undefined"!=typeof t.cancelButtonText?t.cancelButtonText:"Cancel"}).then(function(e){e.value?t.confirm():t.reject()})}jQuery(function(e){e(window).on("resize orientationchange",function(){var t;clearTimeout(t),t=setTimeout(function(){e(document.body).trigger("adjust_builder_width")},250)}),e(document.body).on("click","#collapse-button",function(){e(document.body).trigger("ur_adjust_builder_width")}),e(document.body).on("ur_adjust_builder_width",function(){var t=e("#adminmenuwrap").width(),i=e(".user-registration_page_add-new-registration .ur-form-subcontainer .menu-edit"),r=e(".user-registration_page_add-new-registration .ur-form-subcontainer .ur-loading-container");i.css({left:t+"px"}),r.fadeOut(1e3)}).trigger("ur_adjust_builder_width"),e(document.body).on("click",".ur-form-container .ur-registered-from .ur-form-name-wrapper .ur-edit-form-name",function(){var t=e(this).siblings("#ur-form-name");t.hasClass("ur-editing")||t.focus(),t.toggleClass("ur-editing")}),e(document).on("init_perfect_scrollbar update_perfect_scrollbar",function(){if("undefined"!=typeof PerfectScrollbar){var t=e(".ur-builder-wrapper"),i=e(".ur-tab-contents");t.length>=1&&"undefined"==typeof window.ur_builder_scrollbar?window.ur_builder_scrollbar=new PerfectScrollbar(t.selector,{suppressScrollX:!0}):"undefined"!=typeof window.ur_builder_scrollbar&&window.ur_builder_scrollbar.update(),i.length>=1&&"undefined"==typeof window.ur_tab_scrollbar?window.ur_tab_scrollbar=new PerfectScrollbar(i.selector,{suppressScrollX:!0}):"undefined"!=typeof window.ur_tab_scrollbar&&(window.ur_tab_scrollbar.update(),i.scrollTop(0))}}),e(document).ready(function(){e(document).trigger("init_perfect_scrollbar");var t=e(".ur-selected-inputs"),i=e(".ur-registered-inputs nav").find("#ur-tab-field-settings");i.find("form").appendTo(t),t.find("form #ur-field-all-settings > div").each(function(t,r){var n=e(r).find("h3").text(),a=e(r).attr("id");i.append('<div id="'+a+'" class="form-settings-tab">'+n+"</div>"),e(r).hide()}),i.find("#general-settings").addClass("active"),t.find("#ur-field-all-settings div#general-settings").show(),i.find(".form-settings-tab").on("click",function(){this_id=e(this).attr("id"),e(this).siblings().removeClass("active"),e(this).addClass("active"),t.find("form #ur-field-all-settings > div").hide(),t.find("form #ur-field-all-settings > div#"+this_id).show(),e(document).trigger("update_perfect_scrollbar"),e(".ur-builder-wrapper").scrollTop(0)})}),e(document).on("click",'.ur-tab-lists li[role="tab"] a.nav-tab',function(t,i){e(document).trigger("update_perfect_scrollbar"),"triggered_click"!=i&&(e(".ur-builder-wrapper").scrollTop(0),e(".ur-builder-wrapper-content").scrollTop(0))}),e(document).on("click",'.ur-tab-lists li[aria-controls="ur-tab-field-settings"]',function(){e(".ur-builder-wrapper-content").hide(),e(".ur-builder-wrapper-footer").hide(),e(".ur-selected-inputs").find("form#ur-field-settings").show()}),e(document).on("click",'ul.ur-tab-lists li[aria-controls="ur-tab-registered-fields"]',function(){e(".ur-builder-wrapper-content").show(),e(".ur-builder-wrapper-footer").show(),e(".ur-selected-inputs").find("form#ur-field-settings").hide()});var t=e("#general-settings").find("#user_registration_form_setting_minimum_password_strength_field"),i=e("#general-settings").find("#user_registration_form_setting_enable_strong_password_field select#user_registration_form_setting_enable_strong_password");"yes"===i.val()?t.show():t.hide(),e(i).change(function(){"yes"===e(this).val()?t.show("slow"):t.hide("slow")}),e(document.body).on("init_tooltips",function(){var t={attribute:"data-tip",fadeIn:50,fadeOut:50,delay:200,keepAlive:!0};e(".tips, .help_tip, .user-registration-help-tip").tipTip(t),t.keepAlive=!1,e(".ur-copy-shortcode").tipTip(t),e(".parent-tips").each(function(){e(this).closest("a, th").attr("data-tip",e(this).data("tip")).tipTip(t).css("cursor","help")})}).trigger("init_tooltips"),e("body").on("keypress","#ur-form-name",function(t){13===t.which&&e("#save_form_footer").eq(0).trigger("click")}),e("#ur-full-screen-mode").on("click",function(t){t.preventDefault();var i=e(this);i.hasClass("closed")?(i.removeClass("closed"),i.addClass("opened"),e("body").addClass("ur-full-screen-mode")):(i.removeClass("opened"),i.addClass("closed"),e("body").removeClass("ur-full-screen-mode"))}),e(document).on("keyup",function(t){"Escape"===t.key&&e("#ur-full-screen-mode.opened").trigger("click")}),e("input.input-color").wpColorPicker()}),function(e,t){function i(){var i=function(){var i=e.makeArray(t.form_one_time_draggable_fields),r=e.makeArray(t.form_required_fields),n={validation_status:!0,message:""};if(0===e(".ur-selected-item").length)return n.validation_status=!1,n.message=g.i18n_at_least_one_field_need_to_select,n;if(""===e("#ur-form-name").val())return n.validation_status=!1,n.message=g.i18n_empty_form_name,n;if(e(".ur_save_form_action_button").closest(".publishing-action").find(".spinner").length>0)return n.validation_status=!1,n.message=g.i18n_previous_save_action_ongoing,n;e.each(e('.ur-input-grids .ur-general-setting-block input[data-field="field_name"]'),function(){var t,i=e(this),r=!1;try{var a=i.val(),s=e(".ur-input-grids .ur-general-setting-block").find('input[data-field="field_name"][value="'+a+'"]').length;if(s>1)throw g.i18n_duplicate_field_name;if(""===i.closest(".ur-general-setting-block").find('input[data-field="label"]').val())throw i=i.closest(".ur-general-setting-block").find('input[data-field="label"]'),g.i18n_empty_field_label;var l=a.match(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/gm);if(null===l||1!==l.length||l[0]!==a)throw g.i18n_invald_field_name}catch(d){n.validation_status=!1,n.message=d.message===undefined?d:d.message,i.closest(".ur-selected-item").trigger("click"),t=i.attr("data-field"),e("#ur-setting-form").find('input[data-field="'+t+'"]').css({border:"1px solid red"}),setTimeout(function(){e("#ur-setting-form").find('input[data-field="'+t+'"]').removeAttr("style")},2e3),r=!0}if(r)return!1});for(var a=0;a<i.length;a++)if(e(".ur-input-grids").find('.ur-field[data-field-key="'+i[a]+'"]').length>1){n.validation_status=!1,n.message=g.i18n_multiple_field_key+i[a];break}for(var s=0;s<r.length;s++)if(0===e(".ur-input-grids").find('.ur-field[data-field-key="'+r[s]+'"]').length){if(n.validation_status=!1,0===s)var l=g.i18n_user_email;else if(1===s)var l=g.i18n_user_password;n.message=l+" "+g.i18n_field_is_required;break}return n}();if(!1!==i.validation_status){var n=function(){var t=[],i=e(".ur-input-grids .ur-single-row");return e.each(i,function(){var i=e(this).find(".ur-grid-list-item"),r=[];e.each(i,function(){var t=function(t){var i=t.find(".ur-selected-item"),r=[];return e.each(i,function(){var t=e(this),i={field_key:t.find(".ur-field").attr("data-field-key"),general_setting:function(t){var i=t.find(".ur-general-setting-block").find(".ur-general-setting-field"),r={},n=[],s=[];return e.each(i,function(){var t=e(this).closest(".ur-general-setting").hasClass("ur-setting-checkbox");"options"===e(this).attr("data-field")?(r.options=n.push(a(e(this))),r.options=n):"default_value"===e(this).attr("data-field")?!0===t?e(this).is(":checked")&&(r.default_value=s.push(a(e(this))),r.default_value=s):e(this).is(":checked")&&(r.default_value=a(e(this))):r[e(this).attr("data-field")]=a(e(this))}),r}(t),advance_setting:function(t){var i=t.find(".ur-advance-setting-block").find(".ur_advance_setting"),r={};return e.each(i,function(){r[e(this).attr("data-advance-field")]=a(e(this))}),r}(t)};r.push(i)}),r}(e(this));r.push(t)}),t.push(r)}),t}(),s=function(){var t=[],i=e(".ur-input-grids .ur-single-row");return e.each(i,function(){t.push(e(this).attr("data-row-id"))}),t}(),l=e("#ur_form_id").val();f(t.post_id)!==f(l)&&(l=0);var d=e("#ur-field-settings").serializeArray(),o=e("#ur-multi-part-page-settings").serializeArray(),u={action:"user_registration_form_save_action",security:t.ur_form_save,data:{form_data:JSON.stringify(n),form_row_ids:JSON.stringify(s),form_name:e("#ur-form-name").val(),form_id:l,form_setting_data:d,multipart_page_setting:o}};e.ajax({url:t.ajax_url,data:u,type:"POST",beforeSend:function(){e(".ur_save_form_action_button").closest(".publishing-action").append('<span class="spinner is-active" style="float: left;margin-top: 6px;"></span>'),e(".ur-notices").remove()},complete:function(i){if(e(".ur_save_form_action_button").closest(".publishing-action").find(".spinner").remove(),!0===i.responseJSON.success){r(g.i18n_form_successfully_saved,"success"),0===parseInt(l)&&(window.location=t.admin_url+i.responseJSON.data.post_id)}else{r(i.responseJSON.data.message)}}})}else r(i.message)}function r(t,i){var r=e(".ur-form-container").find(".ur-builder-message-container"),a=e("#wpadminbar"),s="";0===r.length&&(e(".ur-form-container").append('<div class="ur-builder-message-container"></div>'),(r=e(".ur-form-container").find(".ur-builder-message-container")).css({top:a.height()+"px"})),s="success"===i?'<div class="ur-message"><div class="ur-success"><p><strong>'+g.i18n_success+"! </strong>"+t+'</p><span class="dashicons dashicons-no-alt ur-message-close"></span></div></div>':'<div class="ur-message"><div class="ur-error"><p><strong>'+g.i18n_error+"! </strong>"+t+'</p><span class="dashicons dashicons-no-alt ur-message-close"></span></div></div>';var l=e(s).prependTo(r);setTimeout(function(){l.addClass("entered")},50),setTimeout(function(){n(l)},2e3)}function n(e){e.removeClass("entered").addClass("exiting"),setTimeout(function(){e.remove()},120)}function a(e){var t="";switch(e.get(0).tagName.toLowerCase()){case"input":case"select":case"textarea":t=e.val()}return t}function s(){var t=e(".ur-general-setting-field");e.each(t,function(){var t=e(this);switch(t.attr("data-field")){case"label":t.on("keyup",function(){!function(t){e(".ur-selected-item.ur-item-active").find(".ur-label").find("label").text(t.val());e(".ur-selected-item.ur-item-active").find(".ur-general-setting-block").find('input[data-field="'+t.attr("data-field")+'"]').attr("value",t.val())}(e(this))});break;case"field_name":case"input_mask":t.on("change",function(){!function(t){e(".ur-selected-item.ur-item-active").find(".ur-general-setting-block").find('input[data-field="'+t.attr("data-field")+'"]').attr("value",t.val())}(e(this))});case"default_value":t.on("change",function(){"default_value"===t.attr("data-field")&&(t.closest(".ur-general-setting-block").hasClass("ur-general-setting-select")?u(e(this)):t.closest(".ur-general-setting-block").hasClass("ur-general-setting-radio")?o(e(this)):t.closest(".ur-general-setting-block").hasClass("ur-general-setting-checkbox")&&d(e(this)))});break;case"options":t.on("keyup",function(){t.closest(".ur-general-setting-block").hasClass("ur-general-setting-select")&&t.siblings('input[data-field="default_value"]').is(":checked")?u(e(this)):t.closest(".ur-general-setting-block").hasClass("ur-general-setting-radio")?o(e(this)):t.closest(".ur-general-setting-block").hasClass("ur-general-setting-checkbox")&&d(e(this)),function(t){var i=e(".ur-selected-item.ur-item-active"),r=t.closest("li").index();i.find(".ur-general-setting-block li:nth("+r+') input[data-field="'+t.attr("data-field")+'"]').attr("value",t.val()),i.find(".ur-general-setting-block li:nth("+r+') input[data-field="default_value"]').val(t.val()),t.closest("li").find('[data-field="default_value"]').val(t.val())}(e(this))});break;case"placeholder":t.on("keyup",function(){!function(t){var i=e(".ur-selected-item.ur-item-active");i.find(".ur-field").find("input").attr("placeholder",t.val()),i.find(".ur-general-setting-block").find('input[data-field="'+t.attr("data-field")+'"]').val(t.val())}(e(this))});break;case"required":t.on("change",function(){!function(t){var i=e(".ur-selected-item.ur-item-active");i.find(".ur-label").find("label").find("span").remove(),"yes"===t.val()&&i.find(".ur-label").find("label").append('<span style="color:red">*</span>');i.find(".ur-general-setting-block").find('select[data-field="'+t.attr("data-field")+'"]').find('option[value="'+t.val()+'"]').attr("selected","selected")}(e(this))});break;case"hide_label":t.on("change",function(){!function(t){var i=e(".ur-selected-item.ur-item-active");i.find(".ur-label").find("label").find("span").remove(),i.find(".ur-general-setting-block").find('select[data-field="'+t.attr("data-field")+'"]').find('option[value="'+t.val()+'"]').attr("selected","selected")}(e(this))});break;case"description":case"html":t.on("keyup",function(){!function(t){var i=e(".ur-selected-item.ur-item-active");i.find(".ur-field").find("textarea").attr("description",t.val()),i.find(".ur-general-setting-block").find('textarea[data-field="'+t.attr("data-field")+'"]').val(t.val())}(e(this))})}});var i=e(".ur_advance_setting");e.each(i,function(){var t=e(this),i=t.get(0).tagName.toLowerCase(),r="change";switch(i){case"input":r="keyup";break;case"select":r="change";break;case"textarea":r="keyup";break;default:r="change"}e(this).on(r,function(){l(t,i)}),e(this).on("paste",function(){l(t,i)})})}function l(t,i){var r=e(".ur-selected-item.ur-item-active"),n=t.attr("data-id"),a=r.find(".ur-advance-setting-block").find('[data-id="'+n+'"]');switch(i){case"input":a.val(t.val());break;case"select":a.find('option[value="'+t.val()+'"]').attr("selected","selected");break;case"textarea":a.val(t.val()),function(t){switch(e(".ur-selected-item.ur-item-active").find(".ur-field").attr("data-field-key")){case"select":u(t);break;case"checkbox":d(t);break;case"radio":o(t)}}(t.val())}}function d(t){var i=[],r=t.closest("ul").find("li"),n=t.closest("li").index();r.each(function(t,r){var n=e(r).find("input.ur-type-checkbox-label").val();n=e.trim(n),s=e(r).find("input.ur-type-checkbox-value").is(":checked"),i.push({value:n,checkbox:s})});var a=e(".ur-selected-item.ur-item-active"),s=a.find(".ur-field");s.html("");for(var l=0;l<i.length;l++)""!==i[l]&&s.append('<label><input value="'+i[l].value.trim()+'" type="checkbox" '+(i[l].checkbox?"checked":"")+" disabled>"+i[l].value.trim()+"</label>");t.is(":checked")?a.find(".ur-general-setting-options li:nth("+n+') input[data-field="default_value"]').attr("checked","checked"):a.find(".ur-general-setting-options li:nth("+n+') input[data-field="default_value"]').removeAttr("checked")}function o(t){var i=t.closest("ul").find("li"),r=undefined,n=[];i.each(function(t,i){var a=e(i).find("input.ur-type-radio-label").val();a=e.trim(a),!0===(s=e(i).find("input.ur-type-radio-value").is(":checked"))&&(r=t),n.push({value:a,radio:s})});var a=e(".ur-selected-item.ur-item-active"),s=a.find(".ur-field");s.html("");for(var l=0;l<n.length;l++)""!==n[l]&&s.append('<label><input value="'+n[l].value.trim()+'" type="radio" '+(n[l].radio?"checked":"")+" disabled>"+n[l].value.trim()+"</label>");a.find(".ur-general-setting-options > ul.ur-options-list > li").each(function(t,i){var n=e(i).find('[data-field="default_value"]');t===r?n.attr("checked","checked"):n.removeAttr("checked")})}function u(t){value=e.trim(t.val());var i=e(".ur-selected-item.ur-item-active"),r=t.closest("li").index(),n=i.find(".ur-field").find("select");n.html(""),n.append("<option value='"+value+"'>"+value+"</option>"),i.find('.ur-general-setting-options li input[data-field="default_value"]').removeAttr("checked"),i.find(".ur-general-setting-options li:nth("+r+') input[data-field="default_value"]').attr("checked","checked")}function c(){var i=t.form_one_time_draggable_fields,r=e("#ur-tab-registered-fields").find("ul.ur-registered-list");e.each(r.find("li"),function(){var t=e(this),r=e(this).attr("data-field-id").replace("user_registration_","");e.inArray(r,i)>=0&&(e(".ur-input-grids").find('.ur-field[data-field-key="'+r+'"]').length>0?t.draggable("disable"):t.draggable("enable"))})}function f(e){return parseInt(e,0)}var g=t.i18n_admin;e(function(){({init:function(){e(document.body).on("click",".column-data_link a",this.add_item).on("ur_backbone_modal_loaded",this.backbone.init).on("ur_backbone_modal_response",this.backbone.response)},add_item:function(t){return t.preventDefault(),e(this).URBackboneModal({template:"test-demo"}),!1},backbone:{init:function(e,t){},response:function(e,t){}}}).init(),e.fn.ur_form_builder=function(){var i={active_grid:t.active_grid,number_of_grid_list:t.number_of_grid,min_grid_height:70};return this.each(function(){var n=e(this),a={init:function(){this.single_row(),function(){var i=t.form_required_fields,r=e(".ur-input-grids");if(e.isArray(i))for(var n=0;n<i.length;n++){var a=r.find('.ur-field[data-field-key="'+i[n]+'"]');a.closest(".ur-selected-item").find('select[data-field="required"]').val("yes").trigger("change"),a.closest(".ur-selected-item").find('select[data-field="required"]').find('option[value="yes"]').attr("selected","selected"),a.closest(".ur-selected-item").find('select[data-field="required"]').attr("disabled","disabled")}var s=r.find('select[data-field="required"]').find('option[selected="selected"][value="yes"]').closest(".ur-selected-item").find(".ur-label").find("label");s.find("span").remove(),s.append('<span style="color:red">*</span>')}()},get_grid_button:function(){var t=e('<div class="ur-grid-containner"/>'),i='<button type="button" class="ur-edit-grid"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M28,6V26H4V6H28m2-2H2V28H30V4Z"/></svg></button>';return i+='<button type="button" class="dashicons dashicons-no-alt ur-remove-row"></button>',i+='<div class="ur-toggle-grid-content" style="display:none">',i+="<strong>Select the grid size.</strong>",i+='<div class="ur-grid-selector" data-grid = "1">',i+='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M28,6V26H4V6H28m2-2H2V28H30V4Z"/></svg>',i+="</div>",i+='<div class="ur-grid-selector" data-grid = "2">',i+='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M17,4H2V28H30V4ZM4,26V6H15V26Zm24,0H17V6H28Z"/></svg>',i+="</div>",i+='<div class="ur-grid-selector" data-grid = "3">',i+='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M22,4H2V28H30V4ZM4,26V6h6V26Zm8,0V6h8V26Zm16,0H22V6h6Z"/></svg>',i+="</div>",i+="</div>",t.html(i),t.html()},single_row:function(){var r=e("<div class='ur-single-row'/ data-row-id=\"0\">");r.append(e("<div class='ur-grids'/>"));var l=this.get_grid_button();r.find(".ur-grids").append(l),r.find(".ur-grids").find('span[data-id="'+i.active_grid+'"]').addClass("ur-active-grid");var d=this.get_grid_lists(i.active_grid);if(r.append('<div style="clear:both"></div>'),r.append(d),r.append('<div style="clear:both"></div>'),n.append(r),0==n.find(".ur-add-new-row").length){n.append('<button type="button" class="button button-primary dashicons dashicons-plus-alt ur-add-new-row ui-sortable-handle" data-total-rows="0">'+t.add_new+"</button>");var o=n.find(".ur-add-new-row").siblings(".ur-single-row").last().prev().data("row-id");n.find(".ur-add-new-row").attr("data-total-rows",o)}s.render_draggable_sortable(),a.manage_empty_grid(),"1"===t.is_edit_form&&e(".ur-single-row").eq(e(".ur-single-row").length-1).remove(),"1"!==t.is_edit_form&&(e(".ur-single-row").eq(0).find(".ur-grid-lists").eq(0).find(".ur-grid-list-item").eq(0).find(".user-registration-dragged-me").remove(),e(".ur-single-row").eq(0).find(".ur-grid-lists").eq(0).find(".ur-grid-list-item").eq(0).append(t.required_form_html)),c()},get_grid_lists:function(t){for(var r=e('<div class="ur-grid-lists"/>'),n=1;n<=t;n++){var a=e("<div ur-grid-id='"+n+"' class='ur-grid-list-item'></div>"),s=Math.floor(100/t)-t;a.css({width:s+"%","min-height":i.min_grid_height+"px"}),r.append(a)}return r.append('<div style="clear:both"></div>'),r.find(".ur-grid-list-item").eq("0").css({}),r},populate_dropped_node:function(i,r){var n={action:"user_registration_user_input_dropped",security:t.user_input_dropped,form_field_id:r},s='<div class="ur-selected-item ajax_added"><div class="ur-action-buttons"><span title="Clone" class="dashicons dashicons-admin-page ur-clone"></span><span title="Trash" class="dashicons dashicons-trash ur-trash"></span></div>(content)</div>';i.closest(".ur-single-row").find(".user-registration-dragged-me").fadeOut(),e.ajax({url:t.ajax_url,data:n,type:"POST",beforeSend:function(){i.removeAttr("class").removeAttr("id").removeAttr("data-field-id").addClass("ur-selected-item").css({width:"auto"}),i.html('<small class="spinner is-active"></small>'),i.addClass("ur-item-dragged")},complete:function(t){if(a.manage_empty_grid(),!0===t.responseJSON.success){var r=e(s.replace("(content)",t.responseJSON.data.template));r.removeClass("ajax_added"),r.removeClass("ur-item-dragged"),i.find(".ajax_added").find(".spinner").remove(),i.find(".ajax_added").remove(),e(r).insertBefore(i),i.remove()}c();!function(e){jQuery(".ur-grid-lists .ur-selected-item .ur-admin-template").each(function(){var t=jQuery(this).find(".ur-label label").text(),i=jQuery(this).find(".ur-field").attr("data-field-key");"section_title"!=i&&"html"!=i&&"wysiwyg"!=i&&"billing_address_title"!=i&&"shipping_address_title"!=i&&jQuery(this).find(".ur-general-setting-block .ur-general-setting").each(function(){var r=jQuery(this).find("[data-field='field_name']").val();void 0!==r&&(1==!(jQuery(".urcl-rules select.ur_advance_setting.urcl-settings-rules_field_1 option[value='"+r+"']").length>0)?(jQuery('[class*="urcl-settings-rules_field_"]').append('<option value ="'+r+'" data-type="'+i+'">'+t+" </option>"),r==e&&jQuery('.urcl-rules select.ur_advance_setting.urcl-settings-rules_field_1.empty-fields option[value="'+e+'"]').remove()):jQuery(".urcl-rules select.ur_advance_setting.urcl-settings-rules_field_1.empty-fields").append('<option value ="'+r+'" data-type="'+i+'">'+t+" </option>"))})}),jQuery(".urcl-rules select.ur_advance_setting.urcl-settings-rules_field_1.empty-fields").removeClass("empty-fields")}(r.closest(".ur-selected-item ").find("[data-field='field_name']").val()),e('.ur-input-type-select2 .ur-field[data-field-key="select2"] select, .ur-input-type-multi-select2 .ur-field[data-field-key="multi_select2"] select').selectWoo()}})},manage_empty_grid:function(){var t=e(".ur-input-grids"),i=e('<div class="user-registration-dragged-me"/>');t.find(".user-registration-dragged-me").remove(),e.each(t.find(".ur-grid-list-item"),function(){var t=e(this);0===e(this).find(".ur-selected-item").length&&t.append(i.clone())})}},s={register:function(){this.register_add_new_row(),this.register_remove_row(),this.change_ur_grids(),this.remove_selected_item(),this.clone_selected_item()},register_add_new_row:function(){var t=this;e("body").on("click",".ur-add-new-row",function(){var r=e(this).attr("data-total-rows");e(this).attr("data-total-rows",parseInt(r)+1);var n=e(this).closest(".ur-input-grids").find(".ur-single-row").eq(0).clone();n.attr("data-row-id",parseInt(r)+1),n.find(".ur-grid-lists").html(""),n.find(".ur-grids").find("span").removeClass("ur-active-grid"),n.find(".ur-grids").find('span[data-id="'+i.active_grid+'"]').addClass("ur-active-grid");var s=a.get_grid_lists(i.active_grid);n.find(".ur-grid-lists").append(s.html()),n.insertBefore(".ur-add-new-row"),n.show(),t.render_draggable_sortable(),a.manage_empty_grid(),e(document).trigger("user_registration_row_added",[n])})},register_remove_row:function(){var t=this;e("body").on("click",".ur-remove-row",function(){if(e(".ur-input-grids").find(".ur-single-row:visible").length>1){var i=e(this);ur_confirmation(g.i18n_are_you_sure_want_to_delete,{confirm:function(){var r,n=i.prev();(r=n.hasClass("ur-add-new-row")?n.clone():i.clone().attr("class","dashicons-minus ur-remove-row")).hasClass("ur-add-new-row")&&i.closest(".ur-single-row").prev().find(".ur-remove-row").before(r);var a=i.closest(".ur-single-row");e(document).trigger("user_registration_row_deleted",[a]),a.remove(),t.check_grid(),c(),Swal.fire({type:"success",title:"Successfully deleted!",showConfirmButton:!1,timer:1e3})}})}else ur_alert(g.i18n_at_least_one_row_need_to_select)})},change_ur_grids:function(){var t=this;e(document).on("click",".ur-grids .ur-edit-grid",function(t){t.stopPropagation(),e(this).siblings(".ur-toggle-grid-content").stop(!0).slideToggle(200)}),e(document).on("click",function(){e(".ur-toggle-grid-content").stop(!0).slideUp(200)}),e(document).on("click",".ur-grids .ur-toggle-grid-content .ur-grid-selector",function(){var i=e(this).closest(".ur-single-row"),r=e(this).attr("data-grid"),n=a.get_grid_lists(r);i.find(".ur-grid-lists .ur-grid-list-item").length!==parseInt(r)&&(i.find("button.ur-edit-grid").html(e(this).html()),e.each(i.find(".ur-grid-lists .ur-grid-list-item"),function(){e(this).children("*").each(function(){n.find(".ur-grid-list-item").eq(0).append(e(this).clone())})}),i.find(".ur-grid-lists").eq(0).hide(),n.clone().insertAfter(i.find(".ur-grid-lists")),i.find(".ur-grid-lists").eq(0).remove(),t.render_draggable_sortable(),a.manage_empty_grid())})},render_draggable_sortable:function(){e(".ur-grid-list-item").sortable({containment:".ur-input-grids",over:function(){e(this).addClass("ur-sortable-active"),a.manage_empty_grid()},out:function(){e(this).removeClass("ur-sortable-active"),a.manage_empty_grid()},revert:!0,connectWith:".ur-grid-list-item"}).disableSelection(),e(".ur-input-grids").sortable({containment:".ur-builder-wrapper",tolerance:"pointer",revert:"invalid",placeholder:"ur-single-row",forceHelperSize:!0,over:function(){e(this).addClass("ur-sortable-active")},out:function(){e(this).removeClass("ur-sortable-active")}}),e("#ur-draggabled li").draggable({connectToSortable:".ur-grid-list-item",containment:".ur-registered-from",helper:function(){return e(this).clone().insertAfter(e(this).closest(".ur-tab-contents").siblings(".ur-tab-lists"))},revert:"invalid",stop:function(i,n){if(0!==e(n.helper).closest(".ur-grid-list-item").length){var s=e.trim(e(n.helper).attr("data-field-id").replace("user_registration_","")),l=e(".ur-input-grids").find('.ur-field[data-field-key="'+s+'"]').length,d=e.makeArray(t.form_one_time_draggable_fields);if(l>0&&e.inArray(s,d)>=0)return r(g.i18n_user_required_field_already_there),void e(n.helper).remove();var o=e(n.helper),u=e(o).attr("data-field-id");if(void 0!==u){var c=e(n.helper).closest(".ur-grid-list-item").find('li[data-field-id="'+e(this).attr("data-field-id")+'"]');a.populate_dropped_node(c,u)}}}}).disableSelection()},remove_selected_item:function(){var t=this;e("body").on("click",".ur-selected-item .ur-action-buttons .ur-trash",function(i){var r=e(this).closest(".ur-selected-item ").find("[data-field='field_name']").val();return e(this).closest(".ur-selected-item ").remove(),t.check_grid(),a.manage_empty_grid(),c(),jQuery('[class*="urcl-settings-rules_field_"] option[value="'+r+'"]').remove(),!1})},clone_selected_item:function(){e("body").on("click",".ur-selected-item .ur-action-buttons .ur-clone",function(){var i=e(this).closest(".ur-selected-item ").find(".ur-field").attr("data-field-key");if(e(".ur-input-grids").find('.ur-field[data-field-key="'+i+'"]').length>0&&e.inArray(i,t.form_one_time_draggable_fields)>-1)r(g.i18n_user_required_field_already_there_could_not_clone);else{var n=e(this).closest(".ur-selected-item ").clone(),a=n.find('input[data-field="field_name"]'),s=a.val().match(/\d+/g),l=s.length>0?s[s.length-1]:"",d=a.val().replace(l,"");n.find('input[data-field="field_name"]').attr("value",d+(new Date).getTime()),e(this).closest(".ur-grid-list-item").append(n)}})},check_grid:function(){e(".ur-tabs").tabs({disabled:[1]}),e(".ur-tabs").find("a").eq(0).trigger("click",["triggered_click"]),e(".ur-tabs").find('[aria-controls="ur-tab-field-options"]').addClass("ur-no-pointer"),e(".ur-selected-item").removeClass("ur-item-active")}};a.init(),s.register()})},e(".ur-input-grids").ur_form_builder(),e(".ur-tabs .ur-tab-lists").find("a.nav-tab").click(function(){e(".ur-tabs .ur-tab-lists").find("a.nav-tab").removeClass("active"),e(this).addClass("active")}),e(".ur-tabs").tabs(),e(".ur-tabs").find("a").eq(0).trigger("click",["triggered_click"]),e(".ur-tabs").tabs({disabled:[1]}),e(document).on("click",".ur-selected-item",function(){e(".ur-registered-inputs").find("ul li.ur-no-pointer").removeClass("ur-no-pointer"),e(".ur-selected-item").removeClass("ur-item-active"),e(this).addClass("ur-item-active"),function(t){var i=t.find(".ur-advance-setting-block").clone(),r=t.find(".ur-general-setting-block").clone(),n=e("<form id='ur-setting-form'/>");e("#ur-tab-field-options").html(""),n.append(r),n.append(i),e("#ur-tab-field-options").append(n),e("#ur-tab-field-options").find(".ur-advance-setting-block").show(),e("#ur-tab-field-options").find(".ur-general-setting-block").show(),1===e(".ur-item-active").length&&(e(".ur-tabs").tabs("enable",1),e(".ur-tabs").find("a").eq(1).trigger("click",["triggered_click"])),e(".ur-options-list").sortable({containment:".ur-general-setting-options"})}(e(this)),s(),e(document).trigger("update_perfect_scrollbar")}),e(".ur_import_form_action_button").on("click",function(){var i=e("#jsonfile").prop("files")[0],r=new FormData;r.append("jsonfile",i),r.append("action","user_registration_import_form_action"),r.append("security",t.ur_import_form_save),e.ajax({url:t.ajax_url,dataType:"json",cache:!1,contentType:!1,processData:!1,data:r,type:"post",beforeSend:function(){e(".ur_import_form_action_button").closest(".publishing-action").append('<span class="spinner is-active" style="float: left;margin-top: 6px;"></span>'),e(".ur-import_notice").remove()},complete:function(t){var i="";e(".ur_import_form_action_button").closest(".publishing-action").find(".spinner").remove(),e(".ur-import_notice").remove(),i=!0===t.responseJSON.success?'<div id="message" class="updated inline ur-import_notice"><p><strong>'+t.responseJSON.data.message+"</strong></p></div>":'<div id="message" class="error inline ur-import_notice"><p><strong>'+t.responseJSON.data.message+"</strong></p></div>",e(".ur-export-users-page").prepend(i),e("#jsonfile").val("")}})}),e(".ur_save_form_action_button").on("click",function(){i()}),e(window).on("keydown",function(e){if((e.ctrlKey||e.metaKey)&&"s"===String.fromCharCode(e.which).toLowerCase())return e.preventDefault(),i(),!1})}),e(document).on("click",".ur-message .ur-message-close",function(){$message=e(this).closest(".ur-message"),n($message)}),setTimeout(function(){var t=e('#profile-page form#your-profile input[type="date"]');t.length>0&&t.addClass("flatpickr-field").attr("type","text").flatpickr({disableMobile:!0})},2),e(document).on("click","#ur-tab-registered-fields h2",function(){e(this).hasClass("closed")?e(this).removeClass("closed"):e(this).addClass("closed");var t=e(this).find(" ~ .ur-registered-list")[0];e(t).slideToggle()}),e(document).on("click",".ur-options-list .add",function(t){t.preventDefault();var i=e(this),r=e(".ur-selected-item.ur-item-active"),n=i.parent("li").index(),a=i.parent("li").clone(!0,!0);a.find('input[data-field="options"]').val(""),a.find('input[data-field="default_value"]').removeAttr("checked"),i.parent("li").after(a),r.find(".ur-general-setting-options .ur-options-list > li:nth( "+n+" )").after(a.clone(!0,!0)),i.closest(".ur-general-setting-block").hasClass("ur-general-setting-radio")?o(i):i.closest(".ur-general-setting-block").hasClass("ur-general-setting-checkbox")&&d(i)}),e(document).on("click",".ur-options-list .remove",function(t){t.preventDefault();var i=e(this),r=e(this).closest("ul");$any_siblings=r.find("li"),$wrapper=e(".ur-selected-item.ur-item-active"),this_index=i.parent("li").index(),r.find("li").length>1&&(i.parent("li").remove(),$wrapper.find(".ur-general-setting-options .ur-options-list > li:nth( "+this_index+" )").remove(),$any_siblings.closest(".ur-general-setting-block").hasClass("ur-general-setting-radio")?o($any_siblings):$any_siblings.closest(".ur-general-setting-block").hasClass("ur-general-setting-checkbox")&&d($any_siblings))}),e(document).on("sortstop",".ur-options-list",function(t,i){var r=e(this);!function(t){var i=t.clone(!0,!0),r=e(".ur-selected-item.ur-item-active").find(".ur-general-setting-options .ur-options-list");r.html(""),r.replaceWith(i)}(r),r.closest(".ur-general-setting-block").hasClass("ur-general-setting-radio")?o(r):r.closest(".ur-general-setting-block").hasClass("ur-general-setting-checkbox")&&d(r)})}(jQuery,window.user_registration_admin_data);
|
assets/js/admin/live-user-notice.js
ADDED
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
jQuery(function ($) {
|
2 |
+
'use strict';
|
3 |
+
|
4 |
+
var URLiveUser = {
|
5 |
+
init: function() {
|
6 |
+
wp.heartbeat.interval( 'fast' );
|
7 |
+
|
8 |
+
this.sendDataToHeartbeat();
|
9 |
+
this.handleHeartbeatResponse();
|
10 |
+
},
|
11 |
+
|
12 |
+
sendDataToHeartbeat: function() {
|
13 |
+
$( document ).on( 'heartbeat-send', function( event, data ) {
|
14 |
+
data.user_registration_new_user_notice = true;
|
15 |
+
} );
|
16 |
+
},
|
17 |
+
|
18 |
+
handleHeartbeatResponse: function() {
|
19 |
+
$( document ).on( 'heartbeat-tick', function ( event, data ) {
|
20 |
+
|
21 |
+
var $user_menu = $( '#menu-users .wp-menu-name' ),
|
22 |
+
$user_list = $( 'body.users-php .wp-list-table.users' ),
|
23 |
+
columnsCount = $user_list.find( 'thead tr:first-child td, thead tr:first-child th' ).length;
|
24 |
+
|
25 |
+
if ( typeof data.user_registration_new_user_count === 'undefined' || ! $user_list ) {
|
26 |
+
return;
|
27 |
+
}
|
28 |
+
|
29 |
+
if( data.user_registration_new_user_count > 0 ) {
|
30 |
+
|
31 |
+
if( ! $user_menu.find( '.user-registration' ).length ) {
|
32 |
+
$user_menu.append( '<span class="user-registration awaiting-mod"><span class="user-count">' + data.user_registration_new_user_count + '</span></span>' );
|
33 |
+
}
|
34 |
+
|
35 |
+
if( ! $user_list.find( 'tr.ur-user-notification' ).length ) {
|
36 |
+
$user_list.find( 'thead' ).append( '<tr class="ur-user-notification"><td colspan="' + columnsCount + '"><a href="javascript:void()" onClick="window.location.reload(true);"></a></td></tr>' );
|
37 |
+
}
|
38 |
+
|
39 |
+
$user_menu.find( '.user-registration .user-count' ).text( data.user_registration_new_user_count );
|
40 |
+
|
41 |
+
$user_list
|
42 |
+
.find( '.ur-user-notification a' )
|
43 |
+
.html( data.user_registration_new_user_message )
|
44 |
+
.slideDown( {
|
45 |
+
duration: 500,
|
46 |
+
start: function () {
|
47 |
+
$( this ).css( 'display', 'block' );
|
48 |
+
}
|
49 |
+
} );
|
50 |
+
} else {
|
51 |
+
$user_menu.find( '.user-registration' ).remove();
|
52 |
+
$user_list.find( 'tr.ur-user-notification' ).remove();
|
53 |
+
}
|
54 |
+
|
55 |
+
wp.heartbeat.interval( 'standard' );
|
56 |
+
});
|
57 |
+
}
|
58 |
+
};
|
59 |
+
URLiveUser.init();
|
60 |
+
}(jQuery));
|
assets/js/admin/live-user-notice.min.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
jQuery(function(t){"use strict";({init:function(){wp.heartbeat.interval("fast"),this.sendDataToHeartbeat(),this.handleHeartbeatResponse()},sendDataToHeartbeat:function(){t(document).on("heartbeat-send",function(t,e){e.user_registration_new_user_notice=!0})},handleHeartbeatResponse:function(){t(document).on("heartbeat-tick",function(e,n){var r=t("#menu-users .wp-menu-name"),i=t("body.users-php .wp-list-table.users"),s=i.find("thead tr:first-child td, thead tr:first-child th").length;"undefined"!=typeof n.user_registration_new_user_count&&i&&(n.user_registration_new_user_count>0?(r.find(".user-registration").length||r.append('<span class="user-registration awaiting-mod"><span class="user-count">'+n.user_registration_new_user_count+"</span></span>"),i.find("tr.ur-user-notification").length||i.find("thead").append('<tr class="ur-user-notification"><td colspan="'+s+'"><a href="javascript:void()" onClick="window.location.reload(true);"></a></td></tr>'),r.find(".user-registration .user-count").text(n.user_registration_new_user_count),i.find(".ur-user-notification a").html(n.user_registration_new_user_message).slideDown({duration:500,start:function(){t(this).css("display","block")}})):(r.find(".user-registration").remove(),i.find("tr.ur-user-notification").remove()),wp.heartbeat.interval("standard"))})}}).init()}(jQuery));
|
assets/js/frontend/jquery.min.js
CHANGED
@@ -6,4 +6,4 @@
|
|
6 |
* Copyright (c) 2017 Jörn Zaefferer
|
7 |
* Released under the MIT license
|
8 |
*/
|
9 |
-
!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof module&&module.exports?module.exports=t(require("jquery")):t(jQuery)}(function(t){t.extend(t.fn,{validate:function(e){if(this.length){var i=t.data(this[0],"validator");return i||(this.attr("novalidate","novalidate"),i=new t.validator(e,this[0]),t.data(this[0],"validator",i),i.settings.onsubmit&&(this.on("click.validate",":submit",function(e){i.submitButton=e.currentTarget,t(this).hasClass("cancel")&&(i.cancelSubmit=!0),t(this).attr("formnovalidate")!==undefined&&(i.cancelSubmit=!0)}),this.on("submit.validate",function(e){function s(){var s,n;return i.submitButton&&(i.settings.submitHandler||i.formSubmitted)&&(s=t("<input type='hidden'/>").attr("name",i.submitButton.name).val(t(i.submitButton).val()).appendTo(i.currentForm)),!i.settings.submitHandler||(n=i.settings.submitHandler.call(i,i.currentForm,e),s&&s.remove(),n!==undefined&&n)}return i.settings.debug&&e.preventDefault(),i.cancelSubmit?(i.cancelSubmit=!1,s()):i.form()?i.pendingRequest?(i.formSubmitted=!0,!1):s():(i.focusInvalid(),!1)})),i)}e&&e.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing.")},valid:function(){var e,i,s;return t(this[0]).is("form")?e=this.validate().form():(s=[],e=!0,i=t(this[0].form).validate(),this.each(function(){(e=i.element(this)&&e)||(s=s.concat(i.errorList))}),i.errorList=s),e},rules:function(e,i){var s,n,r,a,o,l,h=this[0];if(null!=h&&(!h.form&&h.hasAttribute("contenteditable")&&(h.form=this.closest("form")[0],h.name=this.attr("name")),null!=h.form)){if(e)switch(s=t.data(h.form,"validator").settings,n=s.rules,r=t.validator.staticRules(h),e){case"add":t.extend(r,t.validator.normalizeRule(i)),delete r.messages,n[h.name]=r,i.messages&&(s.messages[h.name]=t.extend(s.messages[h.name],i.messages));break;case"remove":return i?(l={},t.each(i.split(/\s/),function(t,e){l[e]=r[e],delete r[e]}),l):(delete n[h.name],r)}return(a=t.validator.normalizeRules(t.extend({},t.validator.classRules(h),t.validator.attributeRules(h),t.validator.dataRules(h),t.validator.staticRules(h)),h)).required&&(o=a.required,delete a.required,a=t.extend({required:o},a)),a.remote&&(o=a.remote,delete a.remote,a=t.extend(a,{remote:o})),a}}}),t.extend(t.expr.pseudos||t.expr[":"],{blank:function(e){return!t.trim(""+t(e).val())},filled:function(e){var i=t(e).val();return null!==i&&!!t.trim(""+i)},unchecked:function(e){return!t(e).prop("checked")}}),t.validator=function(e,i){this.settings=t.extend(!0,{},t.validator.defaults,e),this.currentForm=i,this.init()},t.validator.format=function(e,i){return 1===arguments.length?function(){var i=t.makeArray(arguments);return i.unshift(e),t.validator.format.apply(this,i)}:i===undefined?e:(arguments.length>2&&i.constructor!==Array&&(i=t.makeArray(arguments).slice(1)),i.constructor!==Array&&(i=[i]),t.each(i,function(t,i){e=e.replace(new RegExp("\\{"+t+"\\}","g"),function(){return i})}),e)},t.extend(t.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",pendingClass:"pending",validClass:"valid",errorElement:"label",focusCleanup:!1,focusInvalid:!0,errorContainer:t([]),errorLabelContainer:t([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(t){this.lastActive=t,this.settings.focusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,t,this.settings.errorClass,this.settings.validClass),this.hideThese(this.errorsFor(t)))},onfocusout:function(e){if(!this.checkable(e)&&(e.name in this.submitted||!this.optional(e))&&(this.element(e),"user_pass"==e.name)){var i=t(e);if("yes"===i.closest("form").attr("data-enable-strength-password")){var s=i.closest("form"),n=s.attr("data-minimum-password-strength"),r=wp.passwordStrength.userInputBlacklist();r.push(s.find('input[data-id="user_email"]').val()),r.push(s.find('input[data-id="user_login"]').val());if(wp.passwordStrength.meter(e.value,r)<n&&""!==s.find('input[data-id="user_pass"]').val()){s.find("#user_pass-error").remove();i.closest("p.form-row").append('<label id="user_pass-error" class="user-registration-error" for="user_pass">Password strength is not strong enough.</label>')}}}},onkeyup:function(e,i){9===i.which&&""===this.elementValue(e)||-1!==t.inArray(i.keyCode,[16,17,18,20,35,36,37,38,39,40,45,144,225])||(e.name in this.submitted||e.name in this.invalid)&&this.element(e)},onclick:function(t){t.name in this.submitted?this.element(t):t.parentNode.name in this.submitted&&this.element(t.parentNode)},highlight:function(e,i,s){"radio"===e.type?this.findByName(e.name).addClass(i).removeClass(s):t(e).addClass(i).removeClass(s)},unhighlight:function(e,i,s){"radio"===e.type?this.findByName(e.name).removeClass(i).addClass(s):t(e).removeClass(i).addClass(s)}},setDefaults:function(e){t.extend(t.validator.defaults,e)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",equalTo:"Please enter the same value again.",maxlength:t.validator.format("Please enter no more than {0} characters."),minlength:t.validator.format("Please enter at least {0} characters."),rangelength:t.validator.format("Please enter a value between {0} and {1} characters long."),range:t.validator.format("Please enter a value between {0} and {1}."),max:t.validator.format("Please enter a value less than or equal to {0}."),min:t.validator.format("Please enter a value greater than or equal to {0}."),step:t.validator.format("Please enter a multiple of {0}.")},autoCreateRanges:!1,prototype:{init:function(){function e(e){!this.form&&this.hasAttribute("contenteditable")&&(this.form=t(this).closest("form")[0],this.name=t(this).attr("name"));var i=t.data(this.form,"validator"),s="on"+e.type.replace(/^validate/,""),n=i.settings;n[s]&&!t(this).is(n.ignore)&&n[s].call(i,this,e)}this.labelContainer=t(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||t(this.currentForm),this.containers=t(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var i,s=this.groups={};t.each(this.settings.groups,function(e,i){"string"==typeof i&&(i=i.split(/\s/)),t.each(i,function(t,i){s[i]=e})}),i=this.settings.rules,t.each(i,function(e,s){i[e]=t.validator.normalizeRule(s)}),t(this.currentForm).on("focusin.validate focusout.validate keyup.validate",":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'], [type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'], [type='radio'], [type='checkbox'], [contenteditable], [type='button']",e).on("click.validate","select, option, [type='radio'], [type='checkbox']",e),this.settings.invalidHandler&&t(this.currentForm).on("invalid-form.validate",this.settings.invalidHandler)},form:function(){return this.checkForm(),t.extend(this.submitted,this.errorMap),this.invalid=t.extend({},this.errorMap),this.valid()||t(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var t=0,e=this.currentElements=this.elements();e[t];t++)this.check(e[t]);return this.valid()},element:function(e){var i,s,n=this.clean(e),r=this.validationTargetFor(n),a=this,o=!0;return r===undefined?delete this.invalid[n.name]:(this.prepareElement(r),this.currentElements=t(r),(s=this.groups[r.name])&&t.each(this.groups,function(t,e){e===s&&t!==r.name&&(n=a.validationTargetFor(a.clean(a.findByName(t))))&&n.name in a.invalid&&(a.currentElements.push(n),o=a.check(n)&&o)}),i=!1!==this.check(r),o=o&&i,this.invalid[r.name]=!i,this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),t(e).attr("aria-invalid",!i)),o},showErrors:function(e){if(e){var i=this;t.extend(this.errorMap,e),this.errorList=t.map(this.errorMap,function(t,e){return{message:t,element:i.findByName(e)[0]}}),this.successList=t.grep(this.successList,function(t){return!(t.name in e)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){t.fn.resetForm&&t(this.currentForm).resetForm(),this.invalid={},this.submitted={},this.prepareForm(),this.hideErrors();var e=this.elements().removeData("previousValue").removeAttr("aria-invalid");this.resetElements(e)},resetElements:function(t){var e;if(this.settings.unhighlight)for(e=0;t[e];e++)this.settings.unhighlight.call(this,t[e],this.settings.errorClass,""),this.findByName(t[e].name).removeClass(this.settings.validClass);else t.removeClass(this.settings.errorClass).removeClass(this.settings.validClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(t){var e,i=0;for(e in t)t[e]!==undefined&&null!==t[e]&&!1!==t[e]&&i++;return i},hideErrors:function(){this.hideThese(this.toHide)},hideThese:function(t){t.not(this.containers).text(""),this.addWrapper(t).hide()},valid:function(){return 0===this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{t(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(e){}},findLastActive:function(){var e=this.lastActive;return e&&1===t.grep(this.errorList,function(t){return t.element.name===e.name}).length&&e},elements:function(){var e=this,i={};return t(this.currentForm).find("input, select, textarea, [contenteditable]").not(":submit, :reset, :image, :disabled").not(this.settings.ignore).filter(function(){var s=this.name||t(this).attr("name");return!s&&e.settings.debug&&window.console&&console.error("%o has no name assigned",this),this.hasAttribute("contenteditable")&&(this.form=t(this).closest("form")[0],this.name=s),!(s in i||!e.objectLength(t(this).rules()))&&(i[s]=!0,!0)})},clean:function(e){return t(e)[0]},errors:function(){var e=this.settings.errorClass.split(" ").join(".");return t(this.settings.errorElement+"."+e,this.errorContext)},resetInternals:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=t([]),this.toHide=t([])},reset:function(){this.resetInternals(),this.currentElements=t([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(t){this.reset(),this.toHide=this.errorsFor(t)},elementValue:function(e){var i,s,n=t(e),r=e.type;return"radio"===r||"checkbox"===r?this.findByName(e.name).filter(":checked").val():"number"===r&&"undefined"!=typeof e.validity?e.validity.badInput?"NaN":n.val():(i=e.hasAttribute("contenteditable")?n.text():n.val(),"file"===r?"C:\\fakepath\\"===i.substr(0,12)?i.substr(12):(s=i.lastIndexOf("/"))>=0?i.substr(s+1):(s=i.lastIndexOf("\\"))>=0?i.substr(s+1):i:"string"==typeof i?i.replace(/\r/g,""):i)},check:function(e){e=this.validationTargetFor(this.clean(e));var i,s,n,r,a=t(e).rules(),o=t.map(a,function(t,e){return e}).length,l=!1,h=this.elementValue(e);if("function"==typeof a.normalizer?r=a.normalizer:"function"==typeof this.settings.normalizer&&(r=this.settings.normalizer),r){if("string"!=typeof(h=r.call(e,h)))throw new TypeError("The normalizer should return a string value.");delete a.normalizer}for(s in a){n={method:s,parameters:a[s]};try{if("dependency-mismatch"===(i=t.validator.methods[s].call(this,h,e,n.parameters))&&1===o){l=!0;continue}if(l=!1,"pending"===i)return void(this.toHide=this.toHide.not(this.errorsFor(e)));if(!i)return this.formatAndAdd(e,n),!1}catch(u){throw this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+e.id+", check the '"+n.method+"' method.",u),u instanceof TypeError&&(u.message+=". Exception occurred when checking element "+e.id+", check the '"+n.method+"' method."),u}}if(!l)return this.objectLength(a)&&this.successList.push(e),!0},customDataMessage:function(e,i){return t(e).data("msg"+i.charAt(0).toUpperCase()+i.substring(1).toLowerCase())||t(e).data("msg")},customMessage:function(t,e){var i=this.settings.messages[t];return i&&(i.constructor===String?i:i[e])},findDefined:function(){for(var t=0;t<arguments.length;t++)if(arguments[t]!==undefined)return arguments[t];return undefined},defaultMessage:function(e,i){"string"==typeof i&&(i={method:i});var s=this.findDefined(this.customMessage(e.name,i.method),this.customDataMessage(e,i.method),!this.settings.ignoreTitle&&e.title||undefined,t.validator.messages[i.method],"<strong>Warning: No message defined for "+e.name+"</strong>"),n=/\$?\{(\d+)\}/g;return"function"==typeof s?s=s.call(this,i.parameters,e):n.test(s)&&(s=t.validator.format(s.replace(n,"{$1}"),i.parameters)),s},formatAndAdd:function(t,e){var i=this.defaultMessage(t,e);this.errorList.push({message:i,element:t,method:e.method}),this.errorMap[t.name]=i,this.submitted[t.name]=i},addWrapper:function(t){return this.settings.wrapper&&(t=t.add(t.parent(this.settings.wrapper))),t},defaultShowErrors:function(){var t,e,i;for(t=0;this.errorList[t];t++)i=this.errorList[t],this.settings.highlight&&this.settings.highlight.call(this,i.element,this.settings.errorClass,this.settings.validClass),this.showLabel(i.element,i.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(t=0;this.successList[t];t++)this.showLabel(this.successList[t]);if(this.settings.unhighlight)for(t=0,e=this.validElements();e[t];t++)this.settings.unhighlight.call(this,e[t],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return t(this.errorList).map(function(){return this.element})},showLabel:function(e,i){var s,n,r,a,o=this.errorsFor(e),l=this.idOrName(e),h=t(e).attr("aria-describedby");o.length?(o.removeClass(this.settings.validClass).addClass(this.settings.errorClass),o.html(i)):(s=o=t("<"+this.settings.errorElement+">").attr("id",l+"-error").addClass(this.settings.errorClass).html(i||""),this.settings.wrapper&&(s=o.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.length?this.labelContainer.append(s):this.settings.errorPlacement?this.settings.errorPlacement.call(this,s,t(e)):s.insertAfter(e),o.is("label")?o.attr("for",l):0===o.parents("label[for='"+this.escapeCssMeta(l)+"']").length&&(r=o.attr("id"),h?h.match(new RegExp("\\b"+this.escapeCssMeta(r)+"\\b"))||(h+=" "+r):h=r,t(e).attr("aria-describedby",h),(n=this.groups[e.name])&&(a=this,t.each(a.groups,function(e,i){i===n&&t("[name='"+a.escapeCssMeta(e)+"']",a.currentForm).attr("aria-describedby",o.attr("id"))})))),!i&&this.settings.success&&(o.text(""),"string"==typeof this.settings.success?o.addClass(this.settings.success):this.settings.success(o,e)),this.toShow=this.toShow.add(o)},errorsFor:function(e){var i=this.escapeCssMeta(this.idOrName(e)),s=t(e).attr("aria-describedby"),n="label[for='"+i+"'], label[for='"+i+"'] *";return s&&(n=n+", #"+this.escapeCssMeta(s).replace(/\s+/g,", #")),this.errors().filter(n)},escapeCssMeta:function(t){return t.replace(/([\\!"#$%&'()*+,./:;<=>?@\[\]^`{|}~])/g,"\\$1")},idOrName:function(t){return this.groups[t.name]||(this.checkable(t)?t.name:t.id||t.name)},validationTargetFor:function(e){return this.checkable(e)&&(e=this.findByName(e.name)),t(e).not(this.settings.ignore)[0]},checkable:function(t){return/radio|checkbox/i.test(t.type)},findByName:function(e){return t(this.currentForm).find("[name='"+this.escapeCssMeta(e)+"']")},getLength:function(e,i){switch(i.nodeName.toLowerCase()){case"select":return t("option:selected",i).length;case"input":if(this.checkable(i))return this.findByName(i.name).filter(":checked").length}return e.length},depend:function(t,e){return!this.dependTypes[typeof t]||this.dependTypes[typeof t](t,e)},dependTypes:{"boolean":function(t){return t},string:function(e,i){return!!t(e,i.form).length},"function":function(t,e){return t(e)}},optional:function(e){var i=this.elementValue(e);return!t.validator.methods.required.call(this,i,e)&&"dependency-mismatch"},startRequest:function(e){this.pending[e.name]||(this.pendingRequest++,t(e).addClass(this.settings.pendingClass),this.pending[e.name]=!0)},stopRequest:function(e,i){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[e.name],t(e).removeClass(this.settings.pendingClass),i&&0===this.pendingRequest&&this.formSubmitted&&this.form()?(t(this.currentForm).submit(),this.submitButton&&t("input:hidden[name='"+this.submitButton.name+"']",this.currentForm).remove(),this.formSubmitted=!1):!i&&0===this.pendingRequest&&this.formSubmitted&&(t(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(e,i){return i="string"==typeof i&&i||"remote",t.data(e,"previousValue")||t.data(e,"previousValue",{old:null,valid:!0,message:this.defaultMessage(e,{method:i})})},destroy:function(){this.resetForm(),t(this.currentForm).off(".validate").removeData("validator").find(".validate-equalTo-blur").off(".validate-equalTo").removeClass("validate-equalTo-blur")}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(e,i){e.constructor===String?this.classRuleSettings[e]=i:t.extend(this.classRuleSettings,e)},classRules:function(e){var i={},s=t(e).attr("class");return s&&t.each(s.split(" "),function(){this in t.validator.classRuleSettings&&t.extend(i,t.validator.classRuleSettings[this])}),i},normalizeAttributeRule:function(t,e,i,s){/min|max|step/.test(i)&&(null===e||/number|range|text/.test(e))&&(s=Number(s),isNaN(s)&&(s=undefined)),s||0===s?t[i]=s:e===i&&"range"!==e&&(t[i]=!0)},attributeRules:function(e){var i,s,n={},r=t(e),a=e.getAttribute("type");for(i in t.validator.methods)"required"===i?(""===(s=e.getAttribute(i))&&(s=!0),s=!!s):s=r.attr(i),this.normalizeAttributeRule(n,a,i,s);return n.maxlength&&/-1|2147483647|524288/.test(n.maxlength)&&delete n.maxlength,n},dataRules:function(e){var i,s,n={},r=t(e),a=e.getAttribute("type");for(i in t.validator.methods)s=r.data("rule"+i.charAt(0).toUpperCase()+i.substring(1).toLowerCase()),this.normalizeAttributeRule(n,a,i,s);return n},staticRules:function(e){var i={},s=t.data(e.form,"validator");return s.settings.rules&&(i=t.validator.normalizeRule(s.settings.rules[e.name])||{}),i},normalizeRules:function(e,i){return t.each(e,function(s,n){if(!1!==n){if(n.param||n.depends){var r=!0;switch(typeof n.depends){case"string":r=!!t(n.depends,i.form).length;break;case"function":r=n.depends.call(i,i)}r?e[s]=n.param===undefined||n.param:(t.data(i.form,"validator").resetElements(t(i)),delete e[s])}}else delete e[s]}),t.each(e,function(s,n){e[s]=t.isFunction(n)&&"normalizer"!==s?n(i):n}),t.each(["minlength","maxlength"],function(){e[this]&&(e[this]=Number(e[this]))}),t.each(["rangelength","range"],function(){var i;e[this]&&(t.isArray(e[this])?e[this]=[Number(e[this][0]),Number(e[this][1])]:"string"==typeof e[this]&&(i=e[this].replace(/[\[\]]/g,"").split(/[\s,]+/),e[this]=[Number(i[0]),Number(i[1])]))}),t.validator.autoCreateRanges&&(null!=e.min&&null!=e.max&&(e.range=[e.min,e.max],delete e.min,delete e.max),null!=e.minlength&&null!=e.maxlength&&(e.rangelength=[e.minlength,e.maxlength],delete e.minlength,delete e.maxlength)),e},normalizeRule:function(e){if("string"==typeof e){var i={};t.each(e.split(/\s/),function(){i[this]=!0}),e=i}return e},addMethod:function(e,i,s){t.validator.methods[e]=i,t.validator.messages[e]=s!==undefined?s:t.validator.messages[e],i.length<3&&t.validator.addClassRules(e,t.validator.normalizeRule(e))},methods:{required:function(e,i,s){if(!this.depend(s,i))return"dependency-mismatch";if("select"===i.nodeName.toLowerCase()){var n=t(i).val();return n&&n.length>0}return this.checkable(i)?this.getLength(e,i)>0:e.length>0},email:function(t,e){return this.optional(e)||/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(t)},url:function(t,e){return this.optional(e)||/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(t)},date:function(t,e){return this.optional(e)||!/Invalid|NaN/.test(new Date(t).toString())},dateISO:function(t,e){return this.optional(e)||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(t)},number:function(t,e){return this.optional(e)||/^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(t)},digits:function(t,e){return this.optional(e)||/^\d+$/.test(t)},minlength:function(e,i,s){var n=t.isArray(e)?e.length:this.getLength(e,i);return this.optional(i)||n>=s},maxlength:function(e,i,s){var n=t.isArray(e)?e.length:this.getLength(e,i);return this.optional(i)||n<=s},rangelength:function(e,i,s){var n=t.isArray(e)?e.length:this.getLength(e,i);return this.optional(i)||n>=s[0]&&n<=s[1]},min:function(t,e,i){return this.optional(e)||t>=i},max:function(t,e,i){return this.optional(e)||t<=i},range:function(t,e,i){return this.optional(e)||t>=i[0]&&t<=i[1]},step:function(e,i,s){var n,r=t(i).attr("type"),a="Step attribute on input type "+r+" is not supported.",o=new RegExp("\\b"+r+"\\b"),l=function(t){var e=(""+t).match(/(?:\.(\d+))?$/);return e&&e[1]?e[1].length:0},h=function(t){return Math.round(t*Math.pow(10,n))},u=!0;if(r&&!o.test(["text","number","range"].join()))throw new Error(a);return n=l(s),(l(e)>n||h(e)%h(s)!=0)&&(u=!1),this.optional(i)||u},equalTo:function(e,i,s){var n=t(s);return this.settings.onfocusout&&n.not(".validate-equalTo-blur").length&&n.addClass("validate-equalTo-blur").on("blur.validate-equalTo",function(){t(i).valid()}),e===n.val()},remote:function(e,i,s,n){if(this.optional(i))return"dependency-mismatch";n="string"==typeof n&&n||"remote";var r,a,o,l=this.previousValue(i,n);return this.settings.messages[i.name]||(this.settings.messages[i.name]={}),l.originalMessage=l.originalMessage||this.settings.messages[i.name][n],this.settings.messages[i.name][n]=l.message,s="string"==typeof s&&{url:s}||s,o=t.param(t.extend({data:e},s.data)),l.old===o?l.valid:(l.old=o,r=this,this.startRequest(i),a={},a[i.name]=e,t.ajax(t.extend(!0,{mode:"abort",port:"validate"+i.name,dataType:"json",data:a,context:r.currentForm,success:function(t){var s,a,o,h=!0===t||"true"===t;r.settings.messages[i.name][n]=l.originalMessage,h?(o=r.formSubmitted,r.resetInternals(),r.toHide=r.errorsFor(i),r.formSubmitted=o,r.successList.push(i),r.invalid[i.name]=!1,r.showErrors()):(s={},a=t||r.defaultMessage(i,{method:n,parameters:e}),s[i.name]=l.message=a,r.invalid[i.name]=!0,r.showErrors(s)),l.valid=h,r.stopRequest(i,h)}},s)),"pending")}}});var e,i={};return t.ajaxPrefilter?t.ajaxPrefilter(function(t,e,s){var n=t.port;"abort"===t.mode&&(i[n]&&i[n].abort(),i[n]=s)}):(e=t.ajax,t.ajax=function(s){var n=("mode"in s?s:t.ajaxSettings).mode,r=("port"in s?s:t.ajaxSettings).port;return"abort"===n?(i[r]&&i[r].abort(),i[r]=e.apply(this,arguments),i[r]):e.apply(this,arguments)}),t});
|
6 |
* Copyright (c) 2017 Jörn Zaefferer
|
7 |
* Released under the MIT license
|
8 |
*/
|
9 |
+
!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof module&&module.exports?module.exports=t(require("jquery")):t(jQuery)}(function(t){t.extend(t.fn,{validate:function(e){if(this.length){var i=t.data(this[0],"validator");return i||(this.attr("novalidate","novalidate"),i=new t.validator(e,this[0]),t.data(this[0],"validator",i),i.settings.onsubmit&&(this.on("click.validate",":submit",function(e){i.submitButton=e.currentTarget,t(this).hasClass("cancel")&&(i.cancelSubmit=!0),t(this).attr("formnovalidate")!==undefined&&(i.cancelSubmit=!0)}),this.on("submit.validate",function(e){function s(){var s,n;return i.submitButton&&(i.settings.submitHandler||i.formSubmitted)&&(s=t("<input type='hidden'/>").attr("name",i.submitButton.name).val(t(i.submitButton).val()).appendTo(i.currentForm)),!i.settings.submitHandler||(n=i.settings.submitHandler.call(i,i.currentForm,e),s&&s.remove(),n!==undefined&&n)}return i.settings.debug&&e.preventDefault(),i.cancelSubmit?(i.cancelSubmit=!1,s()):i.form()?i.pendingRequest?(i.formSubmitted=!0,!1):s():(i.focusInvalid(),!1)})),i)}e&&e.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing.")},valid:function(){var e,i,s;return t(this[0]).is("form")?e=this.validate().form():(s=[],e=!0,i=t(this[0].form).validate(),this.each(function(){(e=i.element(this)&&e)||(s=s.concat(i.errorList))}),i.errorList=s),e},rules:function(e,i){var s,n,r,a,o,l,h=this[0];if(null!=h&&(!h.form&&h.hasAttribute("contenteditable")&&(h.form=this.closest("form")[0],h.name=this.attr("name")),null!=h.form)){if(e)switch(s=t.data(h.form,"validator").settings,n=s.rules,r=t.validator.staticRules(h),e){case"add":t.extend(r,t.validator.normalizeRule(i)),delete r.messages,n[h.name]=r,i.messages&&(s.messages[h.name]=t.extend(s.messages[h.name],i.messages));break;case"remove":return i?(l={},t.each(i.split(/\s/),function(t,e){l[e]=r[e],delete r[e]}),l):(delete n[h.name],r)}return(a=t.validator.normalizeRules(t.extend({},t.validator.classRules(h),t.validator.attributeRules(h),t.validator.dataRules(h),t.validator.staticRules(h)),h)).required&&(o=a.required,delete a.required,a=t.extend({required:o},a)),a.remote&&(o=a.remote,delete a.remote,a=t.extend(a,{remote:o})),a}}}),t.extend(t.expr.pseudos||t.expr[":"],{blank:function(e){return!t.trim(""+t(e).val())},filled:function(e){var i=t(e).val();return null!==i&&!!t.trim(""+i)},unchecked:function(e){return!t(e).prop("checked")}}),t.validator=function(e,i){this.settings=t.extend(!0,{},t.validator.defaults,e),this.currentForm=i,this.init()},t.validator.format=function(e,i){return 1===arguments.length?function(){var i=t.makeArray(arguments);return i.unshift(e),t.validator.format.apply(this,i)}:i===undefined?e:(arguments.length>2&&i.constructor!==Array&&(i=t.makeArray(arguments).slice(1)),i.constructor!==Array&&(i=[i]),t.each(i,function(t,i){e=e.replace(new RegExp("\\{"+t+"\\}","g"),function(){return i})}),e)},t.extend(t.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",pendingClass:"pending",validClass:"valid",errorElement:"label",focusCleanup:!1,focusInvalid:!0,errorContainer:t([]),errorLabelContainer:t([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(t){this.lastActive=t,this.settings.focusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,t,this.settings.errorClass,this.settings.validClass),this.hideThese(this.errorsFor(t)))},onfocusout:function(e){if(!this.checkable(e)&&(e.name in this.submitted||!this.optional(e))&&(this.element(e),"user_pass"==e.name)){var i=t(e);if("yes"===i.closest("form").attr("data-enable-strength-password")){var s=i.closest("form"),n=s.attr("data-minimum-password-strength"),r=wp.passwordStrength.userInputBlacklist();r.push(s.find('input[data-id="user_email"]').val()),r.push(s.find('input[data-id="user_login"]').val());if(wp.passwordStrength.meter(e.value,r)<n&&""!==s.find('input[data-id="user_pass"]').val()){s.find("#user_pass-error").remove();i.closest(".form-row").append('<label id="user_pass-error" class="user-registration-error" for="user_pass">Password strength is not strong enough.</label>')}}}},onkeyup:function(e,i){9===i.which&&""===this.elementValue(e)||-1!==t.inArray(i.keyCode,[16,17,18,20,35,36,37,38,39,40,45,144,225])||(e.name in this.submitted||e.name in this.invalid)&&this.element(e)},onclick:function(t){t.name in this.submitted?this.element(t):t.parentNode.name in this.submitted&&this.element(t.parentNode)},highlight:function(e,i,s){"radio"===e.type?this.findByName(e.name).addClass(i).removeClass(s):t(e).addClass(i).removeClass(s)},unhighlight:function(e,i,s){"radio"===e.type?this.findByName(e.name).removeClass(i).addClass(s):t(e).removeClass(i).addClass(s)}},setDefaults:function(e){t.extend(t.validator.defaults,e)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",equalTo:"Please enter the same value again.",maxlength:t.validator.format("Please enter no more than {0} characters."),minlength:t.validator.format("Please enter at least {0} characters."),rangelength:t.validator.format("Please enter a value between {0} and {1} characters long."),range:t.validator.format("Please enter a value between {0} and {1}."),max:t.validator.format("Please enter a value less than or equal to {0}."),min:t.validator.format("Please enter a value greater than or equal to {0}."),step:t.validator.format("Please enter a multiple of {0}.")},autoCreateRanges:!1,prototype:{init:function(){function e(e){!this.form&&this.hasAttribute("contenteditable")&&(this.form=t(this).closest("form")[0],this.name=t(this).attr("name"));var i=t.data(this.form,"validator"),s="on"+e.type.replace(/^validate/,""),n=i.settings;n[s]&&!t(this).is(n.ignore)&&n[s].call(i,this,e)}this.labelContainer=t(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||t(this.currentForm),this.containers=t(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var i,s=this.groups={};t.each(this.settings.groups,function(e,i){"string"==typeof i&&(i=i.split(/\s/)),t.each(i,function(t,i){s[i]=e})}),i=this.settings.rules,t.each(i,function(e,s){i[e]=t.validator.normalizeRule(s)}),t(this.currentForm).on("focusin.validate focusout.validate keyup.validate",":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'], [type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'], [type='radio'], [type='checkbox'], [contenteditable], [type='button']",e).on("click.validate","select, option, [type='radio'], [type='checkbox']",e),this.settings.invalidHandler&&t(this.currentForm).on("invalid-form.validate",this.settings.invalidHandler)},form:function(){return this.checkForm(),t.extend(this.submitted,this.errorMap),this.invalid=t.extend({},this.errorMap),this.valid()||t(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var t=0,e=this.currentElements=this.elements();e[t];t++)this.check(e[t]);return this.valid()},element:function(e){var i,s,n=this.clean(e),r=this.validationTargetFor(n),a=this,o=!0;return r===undefined?delete this.invalid[n.name]:(this.prepareElement(r),this.currentElements=t(r),(s=this.groups[r.name])&&t.each(this.groups,function(t,e){e===s&&t!==r.name&&(n=a.validationTargetFor(a.clean(a.findByName(t))))&&n.name in a.invalid&&(a.currentElements.push(n),o=a.check(n)&&o)}),i=!1!==this.check(r),o=o&&i,this.invalid[r.name]=!i,this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),t(e).attr("aria-invalid",!i)),o},showErrors:function(e){if(e){var i=this;t.extend(this.errorMap,e),this.errorList=t.map(this.errorMap,function(t,e){return{message:t,element:i.findByName(e)[0]}}),this.successList=t.grep(this.successList,function(t){return!(t.name in e)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){t.fn.resetForm&&t(this.currentForm).resetForm(),this.invalid={},this.submitted={},this.prepareForm(),this.hideErrors();var e=this.elements().removeData("previousValue").removeAttr("aria-invalid");this.resetElements(e)},resetElements:function(t){var e;if(this.settings.unhighlight)for(e=0;t[e];e++)this.settings.unhighlight.call(this,t[e],this.settings.errorClass,""),this.findByName(t[e].name).removeClass(this.settings.validClass);else t.removeClass(this.settings.errorClass).removeClass(this.settings.validClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(t){var e,i=0;for(e in t)t[e]!==undefined&&null!==t[e]&&!1!==t[e]&&i++;return i},hideErrors:function(){this.hideThese(this.toHide)},hideThese:function(t){t.not(this.containers).text(""),this.addWrapper(t).hide()},valid:function(){return 0===this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{t(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(e){}},findLastActive:function(){var e=this.lastActive;return e&&1===t.grep(this.errorList,function(t){return t.element.name===e.name}).length&&e},elements:function(){var e=this,i={};return t(this.currentForm).find("input, select, textarea, [contenteditable]").not(":submit, :reset, :image, :disabled").not(this.settings.ignore).filter(function(){var s=this.name||t(this).attr("name");return!s&&e.settings.debug&&window.console&&console.error("%o has no name assigned",this),this.hasAttribute("contenteditable")&&(this.form=t(this).closest("form")[0],this.name=s),!(s in i||!e.objectLength(t(this).rules()))&&(i[s]=!0,!0)})},clean:function(e){return t(e)[0]},errors:function(){var e=this.settings.errorClass.split(" ").join(".");return t(this.settings.errorElement+"."+e,this.errorContext)},resetInternals:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=t([]),this.toHide=t([])},reset:function(){this.resetInternals(),this.currentElements=t([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(t){this.reset(),this.toHide=this.errorsFor(t)},elementValue:function(e){var i,s,n=t(e),r=e.type;return"radio"===r||"checkbox"===r?this.findByName(e.name).filter(":checked").val():"number"===r&&"undefined"!=typeof e.validity?e.validity.badInput?"NaN":n.val():(i=e.hasAttribute("contenteditable")?n.text():n.val(),"file"===r?"C:\\fakepath\\"===i.substr(0,12)?i.substr(12):(s=i.lastIndexOf("/"))>=0?i.substr(s+1):(s=i.lastIndexOf("\\"))>=0?i.substr(s+1):i:"string"==typeof i?i.replace(/\r/g,""):i)},check:function(e){e=this.validationTargetFor(this.clean(e));var i,s,n,r,a=t(e).rules(),o=t.map(a,function(t,e){return e}).length,l=!1,h=this.elementValue(e);if("function"==typeof a.normalizer?r=a.normalizer:"function"==typeof this.settings.normalizer&&(r=this.settings.normalizer),r){if("string"!=typeof(h=r.call(e,h)))throw new TypeError("The normalizer should return a string value.");delete a.normalizer}for(s in a){n={method:s,parameters:a[s]};try{if("dependency-mismatch"===(i=t.validator.methods[s].call(this,h,e,n.parameters))&&1===o){l=!0;continue}if(l=!1,"pending"===i)return void(this.toHide=this.toHide.not(this.errorsFor(e)));if(!i)return this.formatAndAdd(e,n),!1}catch(u){throw this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+e.id+", check the '"+n.method+"' method.",u),u instanceof TypeError&&(u.message+=". Exception occurred when checking element "+e.id+", check the '"+n.method+"' method."),u}}if(!l)return this.objectLength(a)&&this.successList.push(e),!0},customDataMessage:function(e,i){return t(e).data("msg"+i.charAt(0).toUpperCase()+i.substring(1).toLowerCase())||t(e).data("msg")},customMessage:function(t,e){var i=this.settings.messages[t];return i&&(i.constructor===String?i:i[e])},findDefined:function(){for(var t=0;t<arguments.length;t++)if(arguments[t]!==undefined)return arguments[t];return undefined},defaultMessage:function(e,i){"string"==typeof i&&(i={method:i});var s=this.findDefined(this.customMessage(e.name,i.method),this.customDataMessage(e,i.method),!this.settings.ignoreTitle&&e.title||undefined,t.validator.messages[i.method],"<strong>Warning: No message defined for "+e.name+"</strong>"),n=/\$?\{(\d+)\}/g;return"function"==typeof s?s=s.call(this,i.parameters,e):n.test(s)&&(s=t.validator.format(s.replace(n,"{$1}"),i.parameters)),s},formatAndAdd:function(t,e){var i=this.defaultMessage(t,e);this.errorList.push({message:i,element:t,method:e.method}),this.errorMap[t.name]=i,this.submitted[t.name]=i},addWrapper:function(t){return this.settings.wrapper&&(t=t.add(t.parent(this.settings.wrapper))),t},defaultShowErrors:function(){var t,e,i;for(t=0;this.errorList[t];t++)i=this.errorList[t],this.settings.highlight&&this.settings.highlight.call(this,i.element,this.settings.errorClass,this.settings.validClass),this.showLabel(i.element,i.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(t=0;this.successList[t];t++)this.showLabel(this.successList[t]);if(this.settings.unhighlight)for(t=0,e=this.validElements();e[t];t++)this.settings.unhighlight.call(this,e[t],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return t(this.errorList).map(function(){return this.element})},showLabel:function(e,i){var s,n,r,a,o=this.errorsFor(e),l=this.idOrName(e),h=t(e).attr("aria-describedby");o.length?(o.removeClass(this.settings.validClass).addClass(this.settings.errorClass),o.html(i)):(s=o=t("<"+this.settings.errorElement+">").attr("id",l+"-error").addClass(this.settings.errorClass).html(i||""),this.settings.wrapper&&(s=o.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.length?this.labelContainer.append(s):this.settings.errorPlacement?this.settings.errorPlacement.call(this,s,t(e)):s.insertAfter(e),o.is("label")?o.attr("for",l):0===o.parents("label[for='"+this.escapeCssMeta(l)+"']").length&&(r=o.attr("id"),h?h.match(new RegExp("\\b"+this.escapeCssMeta(r)+"\\b"))||(h+=" "+r):h=r,t(e).attr("aria-describedby",h),(n=this.groups[e.name])&&(a=this,t.each(a.groups,function(e,i){i===n&&t("[name='"+a.escapeCssMeta(e)+"']",a.currentForm).attr("aria-describedby",o.attr("id"))})))),!i&&this.settings.success&&(o.text(""),"string"==typeof this.settings.success?o.addClass(this.settings.success):this.settings.success(o,e)),this.toShow=this.toShow.add(o)},errorsFor:function(e){var i=this.escapeCssMeta(this.idOrName(e)),s=t(e).attr("aria-describedby"),n="label[for='"+i+"'], label[for='"+i+"'] *";return s&&(n=n+", #"+this.escapeCssMeta(s).replace(/\s+/g,", #")),this.errors().filter(n)},escapeCssMeta:function(t){return t.replace(/([\\!"#$%&'()*+,./:;<=>?@\[\]^`{|}~])/g,"\\$1")},idOrName:function(t){return this.groups[t.name]||(this.checkable(t)?t.name:t.id||t.name)},validationTargetFor:function(e){return this.checkable(e)&&(e=this.findByName(e.name)),t(e).not(this.settings.ignore)[0]},checkable:function(t){return/radio|checkbox/i.test(t.type)},findByName:function(e){return t(this.currentForm).find("[name='"+this.escapeCssMeta(e)+"']")},getLength:function(e,i){switch(i.nodeName.toLowerCase()){case"select":return t("option:selected",i).length;case"input":if(this.checkable(i))return this.findByName(i.name).filter(":checked").length}return e.length},depend:function(t,e){return!this.dependTypes[typeof t]||this.dependTypes[typeof t](t,e)},dependTypes:{"boolean":function(t){return t},string:function(e,i){return!!t(e,i.form).length},"function":function(t,e){return t(e)}},optional:function(e){var i=this.elementValue(e);return!t.validator.methods.required.call(this,i,e)&&"dependency-mismatch"},startRequest:function(e){this.pending[e.name]||(this.pendingRequest++,t(e).addClass(this.settings.pendingClass),this.pending[e.name]=!0)},stopRequest:function(e,i){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[e.name],t(e).removeClass(this.settings.pendingClass),i&&0===this.pendingRequest&&this.formSubmitted&&this.form()?(t(this.currentForm).submit(),this.submitButton&&t("input:hidden[name='"+this.submitButton.name+"']",this.currentForm).remove(),this.formSubmitted=!1):!i&&0===this.pendingRequest&&this.formSubmitted&&(t(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(e,i){return i="string"==typeof i&&i||"remote",t.data(e,"previousValue")||t.data(e,"previousValue",{old:null,valid:!0,message:this.defaultMessage(e,{method:i})})},destroy:function(){this.resetForm(),t(this.currentForm).off(".validate").removeData("validator").find(".validate-equalTo-blur").off(".validate-equalTo").removeClass("validate-equalTo-blur")}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(e,i){e.constructor===String?this.classRuleSettings[e]=i:t.extend(this.classRuleSettings,e)},classRules:function(e){var i={},s=t(e).attr("class");return s&&t.each(s.split(" "),function(){this in t.validator.classRuleSettings&&t.extend(i,t.validator.classRuleSettings[this])}),i},normalizeAttributeRule:function(t,e,i,s){/min|max|step/.test(i)&&(null===e||/number|range|text/.test(e))&&(s=Number(s),isNaN(s)&&(s=undefined)),s||0===s?t[i]=s:e===i&&"range"!==e&&(t[i]=!0)},attributeRules:function(e){var i,s,n={},r=t(e),a=e.getAttribute("type");for(i in t.validator.methods)"required"===i?(""===(s=e.getAttribute(i))&&(s=!0),s=!!s):s=r.attr(i),this.normalizeAttributeRule(n,a,i,s);return n.maxlength&&/-1|2147483647|524288/.test(n.maxlength)&&delete n.maxlength,n},dataRules:function(e){var i,s,n={},r=t(e),a=e.getAttribute("type");for(i in t.validator.methods)s=r.data("rule"+i.charAt(0).toUpperCase()+i.substring(1).toLowerCase()),this.normalizeAttributeRule(n,a,i,s);return n},staticRules:function(e){var i={},s=t.data(e.form,"validator");return s.settings.rules&&(i=t.validator.normalizeRule(s.settings.rules[e.name])||{}),i},normalizeRules:function(e,i){return t.each(e,function(s,n){if(!1!==n){if(n.param||n.depends){var r=!0;switch(typeof n.depends){case"string":r=!!t(n.depends,i.form).length;break;case"function":r=n.depends.call(i,i)}r?e[s]=n.param===undefined||n.param:(t.data(i.form,"validator").resetElements(t(i)),delete e[s])}}else delete e[s]}),t.each(e,function(s,n){e[s]=t.isFunction(n)&&"normalizer"!==s?n(i):n}),t.each(["minlength","maxlength"],function(){e[this]&&(e[this]=Number(e[this]))}),t.each(["rangelength","range"],function(){var i;e[this]&&(t.isArray(e[this])?e[this]=[Number(e[this][0]),Number(e[this][1])]:"string"==typeof e[this]&&(i=e[this].replace(/[\[\]]/g,"").split(/[\s,]+/),e[this]=[Number(i[0]),Number(i[1])]))}),t.validator.autoCreateRanges&&(null!=e.min&&null!=e.max&&(e.range=[e.min,e.max],delete e.min,delete e.max),null!=e.minlength&&null!=e.maxlength&&(e.rangelength=[e.minlength,e.maxlength],delete e.minlength,delete e.maxlength)),e},normalizeRule:function(e){if("string"==typeof e){var i={};t.each(e.split(/\s/),function(){i[this]=!0}),e=i}return e},addMethod:function(e,i,s){t.validator.methods[e]=i,t.validator.messages[e]=s!==undefined?s:t.validator.messages[e],i.length<3&&t.validator.addClassRules(e,t.validator.normalizeRule(e))},methods:{required:function(e,i,s){if(!this.depend(s,i))return"dependency-mismatch";if("select"===i.nodeName.toLowerCase()){var n=t(i).val();return n&&n.length>0}return this.checkable(i)?this.getLength(e,i)>0:e.length>0},email:function(t,e){return this.optional(e)||/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(t)},url:function(t,e){return this.optional(e)||/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(t)},date:function(t,e){return this.optional(e)||!/Invalid|NaN/.test(new Date(t).toString())},dateISO:function(t,e){return this.optional(e)||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(t)},number:function(t,e){return this.optional(e)||/^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(t)},digits:function(t,e){return this.optional(e)||/^\d+$/.test(t)},minlength:function(e,i,s){var n=t.isArray(e)?e.length:this.getLength(e,i);return this.optional(i)||n>=s},maxlength:function(e,i,s){var n=t.isArray(e)?e.length:this.getLength(e,i);return this.optional(i)||n<=s},rangelength:function(e,i,s){var n=t.isArray(e)?e.length:this.getLength(e,i);return this.optional(i)||n>=s[0]&&n<=s[1]},min:function(t,e,i){return this.optional(e)||t>=i},max:function(t,e,i){return this.optional(e)||t<=i},range:function(t,e,i){return this.optional(e)||t>=i[0]&&t<=i[1]},step:function(e,i,s){var n,r=t(i).attr("type"),a="Step attribute on input type "+r+" is not supported.",o=new RegExp("\\b"+r+"\\b"),l=function(t){var e=(""+t).match(/(?:\.(\d+))?$/);return e&&e[1]?e[1].length:0},h=function(t){return Math.round(t*Math.pow(10,n))},u=!0;if(r&&!o.test(["text","number","range"].join()))throw new Error(a);return n=l(s),(l(e)>n||h(e)%h(s)!=0)&&(u=!1),this.optional(i)||u},equalTo:function(e,i,s){var n=t(s);return this.settings.onfocusout&&n.not(".validate-equalTo-blur").length&&n.addClass("validate-equalTo-blur").on("blur.validate-equalTo",function(){t(i).valid()}),e===n.val()},remote:function(e,i,s,n){if(this.optional(i))return"dependency-mismatch";n="string"==typeof n&&n||"remote";var r,a,o,l=this.previousValue(i,n);return this.settings.messages[i.name]||(this.settings.messages[i.name]={}),l.originalMessage=l.originalMessage||this.settings.messages[i.name][n],this.settings.messages[i.name][n]=l.message,s="string"==typeof s&&{url:s}||s,o=t.param(t.extend({data:e},s.data)),l.old===o?l.valid:(l.old=o,r=this,this.startRequest(i),a={},a[i.name]=e,t.ajax(t.extend(!0,{mode:"abort",port:"validate"+i.name,dataType:"json",data:a,context:r.currentForm,success:function(t){var s,a,o,h=!0===t||"true"===t;r.settings.messages[i.name][n]=l.originalMessage,h?(o=r.formSubmitted,r.resetInternals(),r.toHide=r.errorsFor(i),r.formSubmitted=o,r.successList.push(i),r.invalid[i.name]=!1,r.showErrors()):(s={},a=t||r.defaultMessage(i,{method:n,parameters:e}),s[i.name]=l.message=a,r.invalid[i.name]=!0,r.showErrors(s)),l.valid=h,r.stopRequest(i,h)}},s)),"pending")}}});var e,i={};return t.ajaxPrefilter?t.ajaxPrefilter(function(t,e,s){var n=t.port;"abort"===t.mode&&(i[n]&&i[n].abort(),i[n]=s)}):(e=t.ajax,t.ajax=function(s){var n=("mode"in s?s:t.ajaxSettings).mode,r=("port"in s?s:t.ajaxSettings).port;return"abort"===n?(i[r]&&i[r].abort(),i[r]=e.apply(this,arguments),i[r]):e.apply(this,arguments)}),t});
|
assets/js/frontend/jquery.validate.js
CHANGED
@@ -318,7 +318,7 @@ $.extend( $.validator, {
|
|
318 |
if( wrapper.find('input[data-id="user_pass"]').val() !== "" ){
|
319 |
wrapper.find( '#user_pass-error' ).remove();
|
320 |
var error_msg_dom = '<label id="user_pass-error" class="user-registration-error" for="user_pass">Password strength is not strong enough.</label>';
|
321 |
-
$this.closest( '
|
322 |
}
|
323 |
}
|
324 |
}
|
318 |
if( wrapper.find('input[data-id="user_pass"]').val() !== "" ){
|
319 |
wrapper.find( '#user_pass-error' ).remove();
|
320 |
var error_msg_dom = '<label id="user_pass-error" class="user-registration-error" for="user_pass">Password strength is not strong enough.</label>';
|
321 |
+
$this.closest( '.form-row' ).append( error_msg_dom );
|
322 |
}
|
323 |
}
|
324 |
}
|
assets/js/frontend/user-registration.js
CHANGED
@@ -326,7 +326,7 @@
|
|
326 |
$this.find( '#user_pass-error' ).remove();
|
327 |
|
328 |
var error_msg_dom = '<label id="user_pass-error" class="user-registration-error" for="user_pass">Password strength is not strong enough.</label>';
|
329 |
-
$this.find('.user-registration-password-strength').closest( '
|
330 |
$this.find('#user_pass').attr('aria-invalid',true);
|
331 |
$this.find('#user_pass').focus();
|
332 |
}
|
326 |
$this.find( '#user_pass-error' ).remove();
|
327 |
|
328 |
var error_msg_dom = '<label id="user_pass-error" class="user-registration-error" for="user_pass">Password strength is not strong enough.</label>';
|
329 |
+
$this.find('.user-registration-password-strength').closest( '.form-row' ).append( error_msg_dom );
|
330 |
$this.find('#user_pass').attr('aria-invalid',true);
|
331 |
$this.find('#user_pass').focus();
|
332 |
}
|
assets/js/frontend/user-registration.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
function request_recaptcha_token(){0!==jQuery(".ur-frontend-form").find("form.register #ur-recaptcha-node #node_recaptcha_register.g-recaptcha-v3").length&&grecaptcha.ready(function(){grecaptcha.execute(ur_google_recaptcha_code.site_key,{action:"register"}).then(function(e){jQuery("form.register").find("#g-recaptcha-response").text(e)})});0!==jQuery(".ur-frontend-form").find("form.login .ur-form-row .ur-form-grid #ur-recaptcha-node #node_recaptcha_login.g-recaptcha-v3").length&&grecaptcha.ready(function(){grecaptcha.execute(ur_google_recaptcha_code.site_key,{action:"login"}).then(function(e){jQuery("form.login").find("#g-recaptcha-response").text(e)})})}!function(e){({$user_registration:e(".ur-frontend-form form.register"),init:function(){this.load_validation(),this.init_inputMask(),this.init_tiptip(),this.$user_registration.on("input validate change",".input-text, select, input:checkbox input:radio",this.validate_field)},init_inputMask:function(){"undefined"!=typeof e.fn.inputmask&&e(".ur-masked-input").inputmask()},init_tiptip:function(){if("undefined"!=typeof tipTip){e(".user-registration-help-tip").tipTip({attribute:"title",fadeIn:50,fadeOut:50,delay:200})}},load_validation:function(){if("undefined"==typeof e.fn.validate)return!1;e.validator.methods.email=function(e,r){var a=new RegExp(/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i);return this.optional(r)||a.test(e)},this.$user_registration.each(function(){e(this).validate({errorClass:"user-registration-error",validClass:"user-registration-valid",errorPlacement:function(e,r){"radio"===r.attr("type")||"checkbox"===r.attr("type")?r.parent().parent().parent().append(e):r.is("select")&&r.attr("class").match(/date-month|date-day|date-year/)?0===r.parent().find("label.user-registration-error:visible").length&&r.parent().find("select:last").after(e):r.hasClass("urfu-file-input")?e.insertAfter(r.parent().parent()):e.insertAfter(r)},highlight:function(r,a,t){var i=e(r);i.closest(".form-row"),i.attr("name")},unhighlight:function(r,a,t){var i=e(r),s=i.closest(".form-row"),n=i.attr("name");"radio"===i.attr("type")||"checkbox"===i.attr("type")?s.find("input[name='"+n+"']").addClass(t).removeClass(a):i.addClass(t).removeClass(a),s.removeClass("user-registration-has-error")},submitHandler:function(e){return!1}})})},validate_field:function(r){e.extend(e.validator.messages,{required:user_registration_params.message_required_fields,url:user_registration_params.message_url_fields,email:user_registration_params.message_email_fields,number:user_registration_params.message_number_fields,confirmpassword:user_registration_params.message_confirm_password_fields});var a=e(this),t=a.closest(".form-row"),i=!0,s=t.is(".validate-required"),n=t.is(".validate-email"),u=r.type;if("input"===u&&t.removeClass("user-registration-invalid user-registration-invalid-required-field user-registration-invalid-email user-registration-validated"),"validate"===u||"change"===u){if(s&&("checkbox"!==a.attr("type")||a.is(":checked")?""===a.val()&&(t.removeClass("user-registration-validated").addClass("user-registration-invalid user-registration-invalid-required-field"),i=!1):(t.removeClass("user-registration-validated").addClass("user-registration-invalid user-registration-invalid-required-field"),i=!1)),n&&a.val()){new RegExp(/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i).test(a.val())||(t.removeClass("user-registration-validated").addClass("user-registration-invalid user-registration-invalid-email"),i=!1)}i&&t.removeClass("user-registration-invalid user-registration-invalid-required-field user-registration-invalid-email").addClass("user-registration-validated")}}}).init();var r=user_registration_params.ursL10n;e.fn.ur_form_submission=function(){return this.each(function(){var a=e(this),t=[],i=user_registration_params.form_required_fields,s={init:function(){},get_form_data:function(){var r=this,t=[],i=a.closest(".ur-frontend-form").find(".ur-form-grid").find(".ur-frontend-field"),s=new Array;e.each(i,function(){var i=e(this).attr("name");if(a.closest(".ur-frontend-form").find(".ur-form-grid").find('.ur-frontend-field[name="'+i+'"]').length<2){var n=r.get_fieldwise_data(e(this));t.push(n)}else e.inArray(i,s)<0&&s.push(i)});for(var n=0;n<s.length;n++){var u=a.closest(".ur-frontend-form").find(".ur-form-grid").find('.ur-frontend-field[name="'+s[n]+'"]'),o=(u.get(0).tagName.toLowerCase(),"undefined"!==u.eq(0).attr("type")?u.eq(0).attr("type"):"null"),d=new Array;if(e.each(u,function(){var r=e(this),a="";switch(r.get(0).tagName.toLowerCase()){case"input":switch(o){case"checkbox":case"radio":a=r.prop("checked")?r.val():"";break;default:a=r.val()}break;case"select":case"textarea":a=r.val()}""!==a&&d.push(a)}),"checkbox"==o)var l=JSON.stringify(d);else if("radio"==o)l=d[0];else l=u.val();var f=s[n];f=f.replace("[]","");var c={value:l,field_type:o,label:u.eq(0).attr("data-label"),field_name:f};t.push(c)}return e(document).trigger("user_registration_frontend_form_data_filter",[t]),t},get_fieldwise_data:function(r){var a={},s=r.get(0).tagName.toLowerCase(),n="undefined"!==r.attr("type")?r.attr("type"):"null",u=r.get(0).className.split(" ")[0];switch(a.value="",s){case"input":switch(n){case"checkbox":case"radio":a.value=r.prop("checked")?r.val():"";break;default:a.value=r.val()}break;case"select":a.value=r.val();break;case"textarea":switch(u){case"wysiwyg":tinyMCE.triggerSave(),a.value=r.val();break;default:a.value=r.val()}}return e(document).trigger("user_registration_frontend_form_data_render",[r,a]),a.field_type="undefined"!==r.eq(0).attr("type")?r.eq(0).attr("type"):"null",r.attr("data-label")!==undefined?a.label=r.attr("data-label"):"label"===r.prev().get(0).tagName.toLowerCase()?a.label=r.prev().text():a.label=a.field_type,r.attr("name")!==undefined&&""!==r.attr("name")?(a.field_name=r.attr("name"),a.field_name=a.field_name.replace("[]","")):a.field_name="",e.inArray(a.field_name,e.trim(i))>=0&&t.push(a.field_name),a},show_message:function(r,a,t){t.find(".ur-message").remove();var i=e('<div class="ur-message user-registration-'+a+'" id="ur-submit-message-node"/>');i.append(r),t.append(i)}},n={init:function(){this.form_submit_event()},form_submit_event:function(){e("form.register").on("submit",function(a){var t=e(this);if(e.extend(e.validator.messages,{required:user_registration_params.message_required_fields,url:user_registration_params.message_url_fields,email:user_registration_params.message_email_fields,number:user_registration_params.message_number_fields,confirmpassword:user_registration_params.message_confirm_password_fields}),t.find(".user-registration-password-strength").length>0){var i=t.find(".user-registration-password-strength").attr("data-current-strength"),n=t.find(".user-registration-password-strength").attr("data-min-strength");if(parseInt(i,0)<parseInt(n,0)){if(""!=t.find("#user_pass").val()){t.find("#user_pass-error").remove();t.find(".user-registration-password-strength").closest("p.form-row").append('<label id="user_pass-error" class="user-registration-error" for="user_pass">Password strength is not strong enough.</label>'),t.find("#user_pass").attr("aria-invalid",!0),t.find("#user_pass").focus()}return!1}}if(t.valid()){a.preventDefault();var u,o=0,d="0",l=t.find("#g-recaptcha-response").val();try{u=JSON.stringify(s.get_form_data())}catch(c){u=""}1===e(this).closest("form").find('input[name="ur-user-form-id"]').length&&(o=e(this).closest("form").find('input[name="ur-user-form-id"]').val()),1===e(this).closest("form").find('input[name="ur_frontend_form_nonce"]').length&&(d=e(this).closest("form").find('input[name="ur_frontend_form_nonce"]').val());var f={action:"user_registration_user_form_submit",security:user_registration_params.user_registration_form_data_save,form_data:u,captchaResponse:l,form_id:o,ur_frontend_form_nonce:d};if(e(document).trigger("user_registration_frontend_before_form_submit",[f,t]),"undefined"!=typeof ur_google_recaptcha_code&&"1"===ur_google_recaptcha_code.is_captcha_enable){if(0===(l=t.find("#g-recaptcha-response").val()).length)return void s.show_message("<p>"+r.captcha_error+"</p>","error",t);"v3"==ur_google_recaptcha_code.version?request_recaptcha_token():grecaptcha.reset()}t.find(".ur-submit-button").find("span").addClass("ur-front-spinner"),e.ajax({url:user_registration_params.ajax_url,data:f,type:"POST",async:!0,complete:function(a){t.find(".ur-submit-button").find("span").removeClass("ur-front-spinner");var i=t.find('input[name="ur-redirect-url"]').val(),n=e('<ul class=""/>'),u="error";try{var o=e.parseJSON(a.responseText);"undefined"!=typeof o.success&&!0===o.success&&"undefined"!=typeof o.data.paypal_redirect&&(window.location=o.data.paypal_redirect),"undefined"!=typeof o.success&&!0===o.success&&(u="message"),"message"===u?(e(".user-registration-password-hint").remove(),e(".user-registration-password-strength").remove(),"admin_approval"==user_registration_params.login_option?n.append("<li>"+r.user_under_approval+"</li>"):"email_confirmation"==user_registration_params.login_option?n.append("<li>"+r.user_email_pending+"</li>"):"payment"==user_registration_params.login_option?n.append("<li>"+o.data.message+"</li>"):n.append("<li>"+r.user_successfully_saved+"</li>"),t[0].reset(),jQuery("#billing_country").trigger("change"),jQuery("#shipping_country").trigger("change"),void 0!==i&&""!==i?window.setTimeout(function(){window.location=i},1e3):"undefined"!=typeof o.data.auto_login&&o.data.auto_login&&location.reload()):"error"===u&&("object"==typeof o.data.message?e.each(o.data.message,function(e,r){n.append("<li>"+r+"</li>")}):n.append("<li>"+o.data.message+"</li>"))}catch(d){n.append("<li>"+d.message+"</li>")}s.show_message(n,u,t),e(document).trigger("user_registration_frontend_after_ajax_complete",[a.responseText,u,t])}})}})}};s.init(),n.init()})},e(function(){e("form.register").ur_form_submission();var r=e('.ur-frontend-form input[type="date"]');r.length>0&&r.addClass("flatpickr-field").attr("type","text").flatpickr({disableMobile:!0})}),e(function(){request_recaptcha_token()}),e(document).on("click",".password_preview",function(a){a.preventDefault();var t=e(this).hasClass("dashicons-hidden")?"show":"hide",i=e(this).closest(".user-registration-form-row").find('input[name="password"]');if(i.length>0)switch(t){case"show":i.attr("type","text"),e(this).removeClass("dashicons-hidden").addClass("dashicons-visibility"),e(this).attr("title",r.hide_password_title);break;case"hide":i.attr("type","password"),e(this).removeClass("dashicons-visibility").addClass("dashicons-hidden"),e(this).attr("title",r.show_password_title)}})}(jQuery);var google_recaptcha_user_registration,onloadURCallback=function(){0!==jQuery(".ur-frontend-form").find("form.register #ur-recaptcha-node #node_recaptcha_register").length&&(google_recaptcha_user_registration=grecaptcha.render("node_recaptcha_register",{sitekey:ur_google_recaptcha_code.site_key,theme:"light",style:"transform:scale(0.77);-webkit-transform:scale(0.77);transform-origin:0 0;-webkit-transform-origin:0 0;"}));0!==jQuery(".ur-frontend-form").find("form.login .ur-form-row .ur-form-grid #ur-recaptcha-node #node_recaptcha_login").length&&grecaptcha.render("node_recaptcha_login",{sitekey:ur_google_recaptcha_code.site_key,theme:"light",style:"transform:scale(0.77);-webkit-transform:scale(0.77);transform-origin:0 0;-webkit-transform-origin:0 0;"})};
|
1 |
+
function request_recaptcha_token(){0!==jQuery(".ur-frontend-form").find("form.register #ur-recaptcha-node #node_recaptcha_register.g-recaptcha-v3").length&&grecaptcha.ready(function(){grecaptcha.execute(ur_google_recaptcha_code.site_key,{action:"register"}).then(function(e){jQuery("form.register").find("#g-recaptcha-response").text(e)})});0!==jQuery(".ur-frontend-form").find("form.login .ur-form-row .ur-form-grid #ur-recaptcha-node #node_recaptcha_login.g-recaptcha-v3").length&&grecaptcha.ready(function(){grecaptcha.execute(ur_google_recaptcha_code.site_key,{action:"login"}).then(function(e){jQuery("form.login").find("#g-recaptcha-response").text(e)})})}!function(e){({$user_registration:e(".ur-frontend-form form.register"),init:function(){this.load_validation(),this.init_inputMask(),this.init_tiptip(),this.$user_registration.on("input validate change",".input-text, select, input:checkbox input:radio",this.validate_field)},init_inputMask:function(){"undefined"!=typeof e.fn.inputmask&&e(".ur-masked-input").inputmask()},init_tiptip:function(){if("undefined"!=typeof tipTip){e(".user-registration-help-tip").tipTip({attribute:"title",fadeIn:50,fadeOut:50,delay:200})}},load_validation:function(){if("undefined"==typeof e.fn.validate)return!1;e.validator.methods.email=function(e,r){var a=new RegExp(/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i);return this.optional(r)||a.test(e)},this.$user_registration.each(function(){e(this).validate({errorClass:"user-registration-error",validClass:"user-registration-valid",errorPlacement:function(e,r){"radio"===r.attr("type")||"checkbox"===r.attr("type")?r.parent().parent().parent().append(e):r.is("select")&&r.attr("class").match(/date-month|date-day|date-year/)?0===r.parent().find("label.user-registration-error:visible").length&&r.parent().find("select:last").after(e):r.hasClass("urfu-file-input")?e.insertAfter(r.parent().parent()):e.insertAfter(r)},highlight:function(r,a,t){var i=e(r);i.closest(".form-row"),i.attr("name")},unhighlight:function(r,a,t){var i=e(r),s=i.closest(".form-row"),n=i.attr("name");"radio"===i.attr("type")||"checkbox"===i.attr("type")?s.find("input[name='"+n+"']").addClass(t).removeClass(a):i.addClass(t).removeClass(a),s.removeClass("user-registration-has-error")},submitHandler:function(e){return!1}})})},validate_field:function(r){e.extend(e.validator.messages,{required:user_registration_params.message_required_fields,url:user_registration_params.message_url_fields,email:user_registration_params.message_email_fields,number:user_registration_params.message_number_fields,confirmpassword:user_registration_params.message_confirm_password_fields});var a=e(this),t=a.closest(".form-row"),i=!0,s=t.is(".validate-required"),n=t.is(".validate-email"),u=r.type;if("input"===u&&t.removeClass("user-registration-invalid user-registration-invalid-required-field user-registration-invalid-email user-registration-validated"),"validate"===u||"change"===u){if(s&&("checkbox"!==a.attr("type")||a.is(":checked")?""===a.val()&&(t.removeClass("user-registration-validated").addClass("user-registration-invalid user-registration-invalid-required-field"),i=!1):(t.removeClass("user-registration-validated").addClass("user-registration-invalid user-registration-invalid-required-field"),i=!1)),n&&a.val()){new RegExp(/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i).test(a.val())||(t.removeClass("user-registration-validated").addClass("user-registration-invalid user-registration-invalid-email"),i=!1)}i&&t.removeClass("user-registration-invalid user-registration-invalid-required-field user-registration-invalid-email").addClass("user-registration-validated")}}}).init();var r=user_registration_params.ursL10n;e.fn.ur_form_submission=function(){return this.each(function(){var a=e(this),t=[],i=user_registration_params.form_required_fields,s={init:function(){},get_form_data:function(){var r=this,t=[],i=a.closest(".ur-frontend-form").find(".ur-form-grid").find(".ur-frontend-field"),s=new Array;e.each(i,function(){var i=e(this).attr("name");if(a.closest(".ur-frontend-form").find(".ur-form-grid").find('.ur-frontend-field[name="'+i+'"]').length<2){var n=r.get_fieldwise_data(e(this));t.push(n)}else e.inArray(i,s)<0&&s.push(i)});for(var n=0;n<s.length;n++){var u=a.closest(".ur-frontend-form").find(".ur-form-grid").find('.ur-frontend-field[name="'+s[n]+'"]'),o=(u.get(0).tagName.toLowerCase(),"undefined"!==u.eq(0).attr("type")?u.eq(0).attr("type"):"null"),d=new Array;if(e.each(u,function(){var r=e(this),a="";switch(r.get(0).tagName.toLowerCase()){case"input":switch(o){case"checkbox":case"radio":a=r.prop("checked")?r.val():"";break;default:a=r.val()}break;case"select":case"textarea":a=r.val()}""!==a&&d.push(a)}),"checkbox"==o)var l=JSON.stringify(d);else if("radio"==o)l=d[0];else l=u.val();var f=s[n];f=f.replace("[]","");var c={value:l,field_type:o,label:u.eq(0).attr("data-label"),field_name:f};t.push(c)}return e(document).trigger("user_registration_frontend_form_data_filter",[t]),t},get_fieldwise_data:function(r){var a={},s=r.get(0).tagName.toLowerCase(),n="undefined"!==r.attr("type")?r.attr("type"):"null",u=r.get(0).className.split(" ")[0];switch(a.value="",s){case"input":switch(n){case"checkbox":case"radio":a.value=r.prop("checked")?r.val():"";break;default:a.value=r.val()}break;case"select":a.value=r.val();break;case"textarea":switch(u){case"wysiwyg":tinyMCE.triggerSave(),a.value=r.val();break;default:a.value=r.val()}}return e(document).trigger("user_registration_frontend_form_data_render",[r,a]),a.field_type="undefined"!==r.eq(0).attr("type")?r.eq(0).attr("type"):"null",r.attr("data-label")!==undefined?a.label=r.attr("data-label"):"label"===r.prev().get(0).tagName.toLowerCase()?a.label=r.prev().text():a.label=a.field_type,r.attr("name")!==undefined&&""!==r.attr("name")?(a.field_name=r.attr("name"),a.field_name=a.field_name.replace("[]","")):a.field_name="",e.inArray(a.field_name,e.trim(i))>=0&&t.push(a.field_name),a},show_message:function(r,a,t){t.find(".ur-message").remove();var i=e('<div class="ur-message user-registration-'+a+'" id="ur-submit-message-node"/>');i.append(r),t.append(i)}},n={init:function(){this.form_submit_event()},form_submit_event:function(){e("form.register").on("submit",function(a){var t=e(this);if(e.extend(e.validator.messages,{required:user_registration_params.message_required_fields,url:user_registration_params.message_url_fields,email:user_registration_params.message_email_fields,number:user_registration_params.message_number_fields,confirmpassword:user_registration_params.message_confirm_password_fields}),t.find(".user-registration-password-strength").length>0){var i=t.find(".user-registration-password-strength").attr("data-current-strength"),n=t.find(".user-registration-password-strength").attr("data-min-strength");if(parseInt(i,0)<parseInt(n,0)){if(""!=t.find("#user_pass").val()){t.find("#user_pass-error").remove();t.find(".user-registration-password-strength").closest(".form-row").append('<label id="user_pass-error" class="user-registration-error" for="user_pass">Password strength is not strong enough.</label>'),t.find("#user_pass").attr("aria-invalid",!0),t.find("#user_pass").focus()}return!1}}if(t.valid()){a.preventDefault();var u,o=0,d="0",l=t.find("#g-recaptcha-response").val();try{u=JSON.stringify(s.get_form_data())}catch(c){u=""}1===e(this).closest("form").find('input[name="ur-user-form-id"]').length&&(o=e(this).closest("form").find('input[name="ur-user-form-id"]').val()),1===e(this).closest("form").find('input[name="ur_frontend_form_nonce"]').length&&(d=e(this).closest("form").find('input[name="ur_frontend_form_nonce"]').val());var f={action:"user_registration_user_form_submit",security:user_registration_params.user_registration_form_data_save,form_data:u,captchaResponse:l,form_id:o,ur_frontend_form_nonce:d};if(e(document).trigger("user_registration_frontend_before_form_submit",[f,t]),"undefined"!=typeof ur_google_recaptcha_code&&"1"===ur_google_recaptcha_code.is_captcha_enable){if(0===(l=t.find("#g-recaptcha-response").val()).length)return void s.show_message("<p>"+r.captcha_error+"</p>","error",t);"v3"==ur_google_recaptcha_code.version?request_recaptcha_token():grecaptcha.reset()}t.find(".ur-submit-button").find("span").addClass("ur-front-spinner"),e.ajax({url:user_registration_params.ajax_url,data:f,type:"POST",async:!0,complete:function(a){t.find(".ur-submit-button").find("span").removeClass("ur-front-spinner");var i=t.find('input[name="ur-redirect-url"]').val(),n=e('<ul class=""/>'),u="error";try{var o=e.parseJSON(a.responseText);"undefined"!=typeof o.success&&!0===o.success&&"undefined"!=typeof o.data.paypal_redirect&&(window.location=o.data.paypal_redirect),"undefined"!=typeof o.success&&!0===o.success&&(u="message"),"message"===u?(e(".user-registration-password-hint").remove(),e(".user-registration-password-strength").remove(),"admin_approval"==user_registration_params.login_option?n.append("<li>"+r.user_under_approval+"</li>"):"email_confirmation"==user_registration_params.login_option?n.append("<li>"+r.user_email_pending+"</li>"):"payment"==user_registration_params.login_option?n.append("<li>"+o.data.message+"</li>"):n.append("<li>"+r.user_successfully_saved+"</li>"),t[0].reset(),jQuery("#billing_country").trigger("change"),jQuery("#shipping_country").trigger("change"),void 0!==i&&""!==i?window.setTimeout(function(){window.location=i},1e3):"undefined"!=typeof o.data.auto_login&&o.data.auto_login&&location.reload()):"error"===u&&("object"==typeof o.data.message?e.each(o.data.message,function(e,r){n.append("<li>"+r+"</li>")}):n.append("<li>"+o.data.message+"</li>"))}catch(d){n.append("<li>"+d.message+"</li>")}s.show_message(n,u,t),e(document).trigger("user_registration_frontend_after_ajax_complete",[a.responseText,u,t])}})}})}};s.init(),n.init()})},e(function(){e("form.register").ur_form_submission();var r=e('.ur-frontend-form input[type="date"]');r.length>0&&r.addClass("flatpickr-field").attr("type","text").flatpickr({disableMobile:!0})}),e(function(){request_recaptcha_token()}),e(document).on("click",".password_preview",function(a){a.preventDefault();var t=e(this).hasClass("dashicons-hidden")?"show":"hide",i=e(this).closest(".user-registration-form-row").find('input[name="password"]');if(i.length>0)switch(t){case"show":i.attr("type","text"),e(this).removeClass("dashicons-hidden").addClass("dashicons-visibility"),e(this).attr("title",r.hide_password_title);break;case"hide":i.attr("type","password"),e(this).removeClass("dashicons-visibility").addClass("dashicons-hidden"),e(this).attr("title",r.show_password_title)}})}(jQuery);var google_recaptcha_user_registration,onloadURCallback=function(){0!==jQuery(".ur-frontend-form").find("form.register #ur-recaptcha-node #node_recaptcha_register").length&&(google_recaptcha_user_registration=grecaptcha.render("node_recaptcha_register",{sitekey:ur_google_recaptcha_code.site_key,theme:"light",style:"transform:scale(0.77);-webkit-transform:scale(0.77);transform-origin:0 0;-webkit-transform-origin:0 0;"}));0!==jQuery(".ur-frontend-form").find("form.login .ur-form-row .ur-form-grid #ur-recaptcha-node #node_recaptcha_login").length&&grecaptcha.render("node_recaptcha_login",{sitekey:ur_google_recaptcha_code.site_key,theme:"light",style:"transform:scale(0.77);-webkit-transform:scale(0.77);transform-origin:0 0;-webkit-transform-origin:0 0;"})};
|
assets/js/perfect-scrollbar/perfect-scrollbar.js
ADDED
@@ -0,0 +1,1324 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
* perfect-scrollbar v1.4.0
|
3 |
+
* (c) 2018 Hyunje Jun
|
4 |
+
* @license MIT
|
5 |
+
*/
|
6 |
+
(function (global, factory) {
|
7 |
+
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
8 |
+
typeof define === 'function' && define.amd ? define(factory) :
|
9 |
+
(global.PerfectScrollbar = factory());
|
10 |
+
}(this, (function () { 'use strict';
|
11 |
+
|
12 |
+
function get(element) {
|
13 |
+
return getComputedStyle(element);
|
14 |
+
}
|
15 |
+
|
16 |
+
function set(element, obj) {
|
17 |
+
for (var key in obj) {
|
18 |
+
var val = obj[key];
|
19 |
+
if (typeof val === 'number') {
|
20 |
+
val = val + "px";
|
21 |
+
}
|
22 |
+
element.style[key] = val;
|
23 |
+
}
|
24 |
+
return element;
|
25 |
+
}
|
26 |
+
|
27 |
+
function div(className) {
|
28 |
+
var div = document.createElement('div');
|
29 |
+
div.className = className;
|
30 |
+
return div;
|
31 |
+
}
|
32 |
+
|
33 |
+
var elMatches =
|
34 |
+
typeof Element !== 'undefined' &&
|
35 |
+
(Element.prototype.matches ||
|
36 |
+
Element.prototype.webkitMatchesSelector ||
|
37 |
+
Element.prototype.mozMatchesSelector ||
|
38 |
+
Element.prototype.msMatchesSelector);
|
39 |
+
|
40 |
+
function matches(element, query) {
|
41 |
+
if (!elMatches) {
|
42 |
+
throw new Error('No element matching method supported');
|
43 |
+
}
|
44 |
+
|
45 |
+
return elMatches.call(element, query);
|
46 |
+
}
|
47 |
+
|
48 |
+
function remove(element) {
|
49 |
+
if (element.remove) {
|
50 |
+
element.remove();
|
51 |
+
} else {
|
52 |
+
if (element.parentNode) {
|
53 |
+
element.parentNode.removeChild(element);
|
54 |
+
}
|
55 |
+
}
|
56 |
+
}
|
57 |
+
|
58 |
+
function queryChildren(element, selector) {
|
59 |
+
return Array.prototype.filter.call(element.children, function (child) { return matches(child, selector); }
|
60 |
+
);
|
61 |
+
}
|
62 |
+
|
63 |
+
var cls = {
|
64 |
+
main: 'ps',
|
65 |
+
element: {
|
66 |
+
thumb: function (x) { return ("ps__thumb-" + x); },
|
67 |
+
rail: function (x) { return ("ps__rail-" + x); },
|
68 |
+
consuming: 'ps__child--consume',
|
69 |
+
},
|
70 |
+
state: {
|
71 |
+
focus: 'ps--focus',
|
72 |
+
clicking: 'ps--clicking',
|
73 |
+
active: function (x) { return ("ps--active-" + x); },
|
74 |
+
scrolling: function (x) { return ("ps--scrolling-" + x); },
|
75 |
+
},
|
76 |
+
};
|
77 |
+
|
78 |
+
/*
|
79 |
+
* Helper methods
|
80 |
+
*/
|
81 |
+
var scrollingClassTimeout = { x: null, y: null };
|
82 |
+
|
83 |
+
function addScrollingClass(i, x) {
|
84 |
+
var classList = i.element.classList;
|
85 |
+
var className = cls.state.scrolling(x);
|
86 |
+
|
87 |
+
if (classList.contains(className)) {
|
88 |
+
clearTimeout(scrollingClassTimeout[x]);
|
89 |
+
} else {
|
90 |
+
classList.add(className);
|
91 |
+
}
|
92 |
+
}
|
93 |
+
|
94 |
+
function removeScrollingClass(i, x) {
|
95 |
+
scrollingClassTimeout[x] = setTimeout(
|
96 |
+
function () { return i.isAlive && i.element.classList.remove(cls.state.scrolling(x)); },
|
97 |
+
i.settings.scrollingThreshold
|
98 |
+
);
|
99 |
+
}
|
100 |
+
|
101 |
+
function setScrollingClassInstantly(i, x) {
|
102 |
+
addScrollingClass(i, x);
|
103 |
+
removeScrollingClass(i, x);
|
104 |
+
}
|
105 |
+
|
106 |
+
var EventElement = function EventElement(element) {
|
107 |
+
this.element = element;
|
108 |
+
this.handlers = {};
|
109 |
+
};
|
110 |
+
|
111 |
+
var prototypeAccessors = { isEmpty: { configurable: true } };
|
112 |
+
|
113 |
+
EventElement.prototype.bind = function bind (eventName, handler) {
|
114 |
+
if (typeof this.handlers[eventName] === 'undefined') {
|
115 |
+
this.handlers[eventName] = [];
|
116 |
+
}
|
117 |
+
this.handlers[eventName].push(handler);
|
118 |
+
this.element.addEventListener(eventName, handler, false);
|
119 |
+
};
|
120 |
+
|
121 |
+
EventElement.prototype.unbind = function unbind (eventName, target) {
|
122 |
+
var this$1 = this;
|
123 |
+
|
124 |
+
this.handlers[eventName] = this.handlers[eventName].filter(function (handler) {
|
125 |
+
if (target && handler !== target) {
|
126 |
+
return true;
|
127 |
+
}
|
128 |
+
this$1.element.removeEventListener(eventName, handler, false);
|
129 |
+
return false;
|
130 |
+
});
|
131 |
+
};
|
132 |
+
|
133 |
+
EventElement.prototype.unbindAll = function unbindAll () {
|
134 |
+
var this$1 = this;
|
135 |
+
|
136 |
+
for (var name in this$1.handlers) {
|
137 |
+
this$1.unbind(name);
|
138 |
+
}
|
139 |
+
};
|
140 |
+
|
141 |
+
prototypeAccessors.isEmpty.get = function () {
|
142 |
+
var this$1 = this;
|
143 |
+
|
144 |
+
return Object.keys(this.handlers).every(
|
145 |
+
function (key) { return this$1.handlers[key].length === 0; }
|
146 |
+
);
|
147 |
+
};
|
148 |
+
|
149 |
+
Object.defineProperties( EventElement.prototype, prototypeAccessors );
|
150 |
+
|
151 |
+
var EventManager = function EventManager() {
|
152 |
+
this.eventElements = [];
|
153 |
+
};
|
154 |
+
|
155 |
+
EventManager.prototype.eventElement = function eventElement (element) {
|
156 |
+
var ee = this.eventElements.filter(function (ee) { return ee.element === element; })[0];
|
157 |
+
if (!ee) {
|
158 |
+
ee = new EventElement(element);
|
159 |
+
this.eventElements.push(ee);
|
160 |
+
}
|
161 |
+
return ee;
|
162 |
+
};
|
163 |
+
|
164 |
+
EventManager.prototype.bind = function bind (element, eventName, handler) {
|
165 |
+
this.eventElement(element).bind(eventName, handler);
|
166 |
+
};
|
167 |
+
|
168 |
+
EventManager.prototype.unbind = function unbind (element, eventName, handler) {
|
169 |
+
var ee = this.eventElement(element);
|
170 |
+
ee.unbind(eventName, handler);
|
171 |
+
|
172 |
+
if (ee.isEmpty) {
|
173 |
+
// remove
|
174 |
+
this.eventElements.splice(this.eventElements.indexOf(ee), 1);
|
175 |
+
}
|
176 |
+
};
|
177 |
+
|
178 |
+
EventManager.prototype.unbindAll = function unbindAll () {
|
179 |
+
this.eventElements.forEach(function (e) { return e.unbindAll(); });
|
180 |
+
this.eventElements = [];
|
181 |
+
};
|
182 |
+
|
183 |
+
EventManager.prototype.once = function once (element, eventName, handler) {
|
184 |
+
var ee = this.eventElement(element);
|
185 |
+
var onceHandler = function (evt) {
|
186 |
+
ee.unbind(eventName, onceHandler);
|
187 |
+
handler(evt);
|
188 |
+
};
|
189 |
+
ee.bind(eventName, onceHandler);
|
190 |
+
};
|
191 |
+
|
192 |
+
function createEvent(name) {
|
193 |
+
if (typeof window.CustomEvent === 'function') {
|
194 |
+
return new CustomEvent(name);
|
195 |
+
} else {
|
196 |
+
var evt = document.createEvent('CustomEvent');
|
197 |
+
evt.initCustomEvent(name, false, false, undefined);
|
198 |
+
return evt;
|
199 |
+
}
|
200 |
+
}
|
201 |
+
|
202 |
+
var processScrollDiff = function(
|
203 |
+
i,
|
204 |
+
axis,
|
205 |
+
diff,
|
206 |
+
useScrollingClass,
|
207 |
+
forceFireReachEvent
|
208 |
+
) {
|
209 |
+
if ( useScrollingClass === void 0 ) useScrollingClass = true;
|
210 |
+
if ( forceFireReachEvent === void 0 ) forceFireReachEvent = false;
|
211 |
+
|
212 |
+
var fields;
|
213 |
+
if (axis === 'top') {
|
214 |
+
fields = [
|
215 |
+
'contentHeight',
|
216 |
+
'containerHeight',
|
217 |
+
'scrollTop',
|
218 |
+
'y',
|
219 |
+
'up',
|
220 |
+
'down' ];
|
221 |
+
} else if (axis === 'left') {
|
222 |
+
fields = [
|
223 |
+
'contentWidth',
|
224 |
+
'containerWidth',
|
225 |
+
'scrollLeft',
|
226 |
+
'x',
|
227 |
+
'left',
|
228 |
+
'right' ];
|
229 |
+
} else {
|
230 |
+
throw new Error('A proper axis should be provided');
|
231 |
+
}
|
232 |
+
|
233 |
+
processScrollDiff$1(i, diff, fields, useScrollingClass, forceFireReachEvent);
|
234 |
+
};
|
235 |
+
|
236 |
+
function processScrollDiff$1(
|
237 |
+
i,
|
238 |
+
diff,
|
239 |
+
ref,
|
240 |
+
useScrollingClass,
|
241 |
+
forceFireReachEvent
|
242 |
+
) {
|
243 |
+
var contentHeight = ref[0];
|
244 |
+
var containerHeight = ref[1];
|
245 |
+
var scrollTop = ref[2];
|
246 |
+
var y = ref[3];
|
247 |
+
var up = ref[4];
|
248 |
+
var down = ref[5];
|
249 |
+
if ( useScrollingClass === void 0 ) useScrollingClass = true;
|
250 |
+
if ( forceFireReachEvent === void 0 ) forceFireReachEvent = false;
|
251 |
+
|
252 |
+
var element = i.element;
|
253 |
+
|
254 |
+
// reset reach
|
255 |
+
i.reach[y] = null;
|
256 |
+
|
257 |
+
// 1 for subpixel rounding
|
258 |
+
if (element[scrollTop] < 1) {
|
259 |
+
i.reach[y] = 'start';
|
260 |
+
}
|
261 |
+
|
262 |
+
// 1 for subpixel rounding
|
263 |
+
if (element[scrollTop] > i[contentHeight] - i[containerHeight] - 1) {
|
264 |
+
i.reach[y] = 'end';
|
265 |
+
}
|
266 |
+
|
267 |
+
if (diff) {
|
268 |
+
element.dispatchEvent(createEvent(("ps-scroll-" + y)));
|
269 |
+
|
270 |
+
if (diff < 0) {
|
271 |
+
element.dispatchEvent(createEvent(("ps-scroll-" + up)));
|
272 |
+
} else if (diff > 0) {
|
273 |
+
element.dispatchEvent(createEvent(("ps-scroll-" + down)));
|
274 |
+
}
|
275 |
+
|
276 |
+
if (useScrollingClass) {
|
277 |
+
setScrollingClassInstantly(i, y);
|
278 |
+
}
|
279 |
+
}
|
280 |
+
|
281 |
+
if (i.reach[y] && (diff || forceFireReachEvent)) {
|
282 |
+
element.dispatchEvent(createEvent(("ps-" + y + "-reach-" + (i.reach[y]))));
|
283 |
+
}
|
284 |
+
}
|
285 |
+
|
286 |
+
function toInt(x) {
|
287 |
+
return parseInt(x, 10) || 0;
|
288 |
+
}
|
289 |
+
|
290 |
+
function isEditable(el) {
|
291 |
+
return (
|
292 |
+
matches(el, 'input,[contenteditable]') ||
|
293 |
+
matches(el, 'select,[contenteditable]') ||
|
294 |
+
matches(el, 'textarea,[contenteditable]') ||
|
295 |
+
matches(el, 'button,[contenteditable]')
|
296 |
+
);
|
297 |
+
}
|
298 |
+
|
299 |
+
function outerWidth(element) {
|
300 |
+
var styles = get(element);
|
301 |
+
return (
|
302 |
+
toInt(styles.width) +
|
303 |
+
toInt(styles.paddingLeft) +
|
304 |
+
toInt(styles.paddingRight) +
|
305 |
+
toInt(styles.borderLeftWidth) +
|
306 |
+
toInt(styles.borderRightWidth)
|
307 |
+
);
|
308 |
+
}
|
309 |
+
|
310 |
+
var env = {
|
311 |
+
isWebKit:
|
312 |
+
typeof document !== 'undefined' &&
|
313 |
+
'WebkitAppearance' in document.documentElement.style,
|
314 |
+
supportsTouch:
|
315 |
+
typeof window !== 'undefined' &&
|
316 |
+
('ontouchstart' in window ||
|
317 |
+
(window.DocumentTouch && document instanceof window.DocumentTouch)),
|
318 |
+
supportsIePointer:
|
319 |
+
typeof navigator !== 'undefined' && navigator.msMaxTouchPoints,
|
320 |
+
isChrome:
|
321 |
+
typeof navigator !== 'undefined' &&
|
322 |
+
/Chrome/i.test(navigator && navigator.userAgent),
|
323 |
+
};
|
324 |
+
|
325 |
+
var updateGeometry = function(i) {
|
326 |
+
var element = i.element;
|
327 |
+
var roundedScrollTop = Math.floor(element.scrollTop);
|
328 |
+
|
329 |
+
i.containerWidth = element.clientWidth;
|
330 |
+
i.containerHeight = element.clientHeight;
|
331 |
+
i.contentWidth = element.scrollWidth;
|
332 |
+
i.contentHeight = element.scrollHeight;
|
333 |
+
|
334 |
+
if (!element.contains(i.scrollbarXRail)) {
|
335 |
+
// clean up and append
|
336 |
+
queryChildren(element, cls.element.rail('x')).forEach(function (el) { return remove(el); }
|
337 |
+
);
|
338 |
+
element.appendChild(i.scrollbarXRail);
|
339 |
+
}
|
340 |
+
if (!element.contains(i.scrollbarYRail)) {
|
341 |
+
// clean up and append
|
342 |
+
queryChildren(element, cls.element.rail('y')).forEach(function (el) { return remove(el); }
|
343 |
+
);
|
344 |
+
element.appendChild(i.scrollbarYRail);
|
345 |
+
}
|
346 |
+
|
347 |
+
if (
|
348 |
+
!i.settings.suppressScrollX &&
|
349 |
+
i.containerWidth + i.settings.scrollXMarginOffset < i.contentWidth
|
350 |
+
) {
|
351 |
+
i.scrollbarXActive = true;
|
352 |
+
i.railXWidth = i.containerWidth - i.railXMarginWidth;
|
353 |
+
i.railXRatio = i.containerWidth / i.railXWidth;
|
354 |
+
i.scrollbarXWidth = getThumbSize(
|
355 |
+
i,
|
356 |
+
toInt(i.railXWidth * i.containerWidth / i.contentWidth)
|
357 |
+
);
|
358 |
+
i.scrollbarXLeft = toInt(
|
359 |
+
(i.negativeScrollAdjustment + element.scrollLeft) *
|
360 |
+
(i.railXWidth - i.scrollbarXWidth) /
|
361 |
+
(i.contentWidth - i.containerWidth)
|
362 |
+
);
|
363 |
+
} else {
|
364 |
+
i.scrollbarXActive = false;
|
365 |
+
}
|
366 |
+
|
367 |
+
if (
|
368 |
+
!i.settings.suppressScrollY &&
|
369 |
+
i.containerHeight + i.settings.scrollYMarginOffset < i.contentHeight
|
370 |
+
) {
|
371 |
+
i.scrollbarYActive = true;
|
372 |
+
i.railYHeight = i.containerHeight - i.railYMarginHeight;
|
373 |
+
i.railYRatio = i.containerHeight / i.railYHeight;
|
374 |
+
i.scrollbarYHeight = getThumbSize(
|
375 |
+
i,
|
376 |
+
toInt(i.railYHeight * i.containerHeight / i.contentHeight)
|
377 |
+
);
|
378 |
+
i.scrollbarYTop = toInt(
|
379 |
+
roundedScrollTop *
|
380 |
+
(i.railYHeight - i.scrollbarYHeight) /
|
381 |
+
(i.contentHeight - i.containerHeight)
|
382 |
+
);
|
383 |
+
} else {
|
384 |
+
i.scrollbarYActive = false;
|
385 |
+
}
|
386 |
+
|
387 |
+
if (i.scrollbarXLeft >= i.railXWidth - i.scrollbarXWidth) {
|
388 |
+
i.scrollbarXLeft = i.railXWidth - i.scrollbarXWidth;
|
389 |
+
}
|
390 |
+
if (i.scrollbarYTop >= i.railYHeight - i.scrollbarYHeight) {
|
391 |
+
i.scrollbarYTop = i.railYHeight - i.scrollbarYHeight;
|
392 |
+
}
|
393 |
+
|
394 |
+
updateCss(element, i);
|
395 |
+
|
396 |
+
if (i.scrollbarXActive) {
|
397 |
+
element.classList.add(cls.state.active('x'));
|
398 |
+
} else {
|
399 |
+
element.classList.remove(cls.state.active('x'));
|
400 |
+
i.scrollbarXWidth = 0;
|
401 |
+
i.scrollbarXLeft = 0;
|
402 |
+
element.scrollLeft = 0;
|
403 |
+
}
|
404 |
+
if (i.scrollbarYActive) {
|
405 |
+
element.classList.add(cls.state.active('y'));
|
406 |
+
} else {
|
407 |
+
element.classList.remove(cls.state.active('y'));
|
408 |
+
i.scrollbarYHeight = 0;
|
409 |
+
i.scrollbarYTop = 0;
|
410 |
+
element.scrollTop = 0;
|
411 |
+
}
|
412 |
+
};
|
413 |
+
|
414 |
+
function getThumbSize(i, thumbSize) {
|
415 |
+
if (i.settings.minScrollbarLength) {
|
416 |
+
thumbSize = Math.max(thumbSize, i.settings.minScrollbarLength);
|
417 |
+
}
|
418 |
+
if (i.settings.maxScrollbarLength) {
|
419 |
+
thumbSize = Math.min(thumbSize, i.settings.maxScrollbarLength);
|
420 |
+
}
|
421 |
+
return thumbSize;
|
422 |
+
}
|
423 |
+
|
424 |
+
function updateCss(element, i) {
|
425 |
+
var xRailOffset = { width: i.railXWidth };
|
426 |
+
var roundedScrollTop = Math.floor(element.scrollTop);
|
427 |
+
|
428 |
+
if (i.isRtl) {
|
429 |
+
xRailOffset.left =
|
430 |
+
i.negativeScrollAdjustment +
|
431 |
+
element.scrollLeft +
|
432 |
+
i.containerWidth -
|
433 |
+
i.contentWidth;
|
434 |
+
} else {
|
435 |
+
xRailOffset.left = element.scrollLeft;
|
436 |
+
}
|
437 |
+
if (i.isScrollbarXUsingBottom) {
|
438 |
+
xRailOffset.bottom = i.scrollbarXBottom - roundedScrollTop;
|
439 |
+
} else {
|
440 |
+
xRailOffset.top = i.scrollbarXTop + roundedScrollTop;
|
441 |
+
}
|
442 |
+
set(i.scrollbarXRail, xRailOffset);
|
443 |
+
|
444 |
+
var yRailOffset = { top: roundedScrollTop, height: i.railYHeight };
|
445 |
+
if (i.isScrollbarYUsingRight) {
|
446 |
+
if (i.isRtl) {
|
447 |
+
yRailOffset.right =
|
448 |
+
i.contentWidth -
|
449 |
+
(i.negativeScrollAdjustment + element.scrollLeft) -
|
450 |
+
i.scrollbarYRight -
|
451 |
+
i.scrollbarYOuterWidth;
|
452 |
+
} else {
|
453 |
+
yRailOffset.right = i.scrollbarYRight - element.scrollLeft;
|
454 |
+
}
|
455 |
+
} else {
|
456 |
+
if (i.isRtl) {
|
457 |
+
yRailOffset.left =
|
458 |
+
i.negativeScrollAdjustment +
|
459 |
+
element.scrollLeft +
|
460 |
+
i.containerWidth * 2 -
|
461 |
+
i.contentWidth -
|
462 |
+
i.scrollbarYLeft -
|
463 |
+
i.scrollbarYOuterWidth;
|
464 |
+
} else {
|
465 |
+
yRailOffset.left = i.scrollbarYLeft + element.scrollLeft;
|
466 |
+
}
|
467 |
+
}
|
468 |
+
set(i.scrollbarYRail, yRailOffset);
|
469 |
+
|
470 |
+
set(i.scrollbarX, {
|
471 |
+
left: i.scrollbarXLeft,
|
472 |
+
width: i.scrollbarXWidth - i.railBorderXWidth,
|
473 |
+
});
|
474 |
+
set(i.scrollbarY, {
|
475 |
+
top: i.scrollbarYTop,
|
476 |
+
height: i.scrollbarYHeight - i.railBorderYWidth,
|
477 |
+
});
|
478 |
+
}
|
479 |
+
|
480 |
+
var clickRail = function(i) {
|
481 |
+
i.event.bind(i.scrollbarY, 'mousedown', function (e) { return e.stopPropagation(); });
|
482 |
+
i.event.bind(i.scrollbarYRail, 'mousedown', function (e) {
|
483 |
+
var positionTop =
|
484 |
+
e.pageY -
|
485 |
+
window.pageYOffset -
|
486 |
+
i.scrollbarYRail.getBoundingClientRect().top;
|
487 |
+
var direction = positionTop > i.scrollbarYTop ? 1 : -1;
|
488 |
+
|
489 |
+
i.element.scrollTop += direction * i.containerHeight;
|
490 |
+
updateGeometry(i);
|
491 |
+
|
492 |
+
e.stopPropagation();
|
493 |
+
});
|
494 |
+
|
495 |
+
i.event.bind(i.scrollbarX, 'mousedown', function (e) { return e.stopPropagation(); });
|
496 |
+
i.event.bind(i.scrollbarXRail, 'mousedown', function (e) {
|
497 |
+
var positionLeft =
|
498 |
+
e.pageX -
|
499 |
+
window.pageXOffset -
|
500 |
+
i.scrollbarXRail.getBoundingClientRect().left;
|
501 |
+
var direction = positionLeft > i.scrollbarXLeft ? 1 : -1;
|
502 |
+
|
503 |
+
i.element.scrollLeft += direction * i.containerWidth;
|
504 |
+
updateGeometry(i);
|
505 |
+
|
506 |
+
e.stopPropagation();
|
507 |
+
});
|
508 |
+
};
|
509 |
+
|
510 |
+
var dragThumb = function(i) {
|
511 |
+
bindMouseScrollHandler(i, [
|
512 |
+
'containerWidth',
|
513 |
+
'contentWidth',
|
514 |
+
'pageX',
|
515 |
+
'railXWidth',
|
516 |
+
'scrollbarX',
|
517 |
+
'scrollbarXWidth',
|
518 |
+
'scrollLeft',
|
519 |
+
'x',
|
520 |
+
'scrollbarXRail' ]);
|
521 |
+
bindMouseScrollHandler(i, [
|
522 |
+
'containerHeight',
|
523 |
+
'contentHeight',
|
524 |
+
'pageY',
|
525 |
+
'railYHeight',
|
526 |
+
'scrollbarY',
|
527 |
+
'scrollbarYHeight',
|
528 |
+
'scrollTop',
|
529 |
+
'y',
|
530 |
+
'scrollbarYRail' ]);
|
531 |
+
};
|
532 |
+
|
533 |
+
function bindMouseScrollHandler(
|
534 |
+
i,
|
535 |
+
ref
|
536 |
+
) {
|
537 |
+
var containerHeight = ref[0];
|
538 |
+
var contentHeight = ref[1];
|
539 |
+
var pageY = ref[2];
|
540 |
+
var railYHeight = ref[3];
|
541 |
+
var scrollbarY = ref[4];
|
542 |
+
var scrollbarYHeight = ref[5];
|
543 |
+
var scrollTop = ref[6];
|
544 |
+
var y = ref[7];
|
545 |
+
var scrollbarYRail = ref[8];
|
546 |
+
|
547 |
+
var element = i.element;
|
548 |
+
|
549 |
+
var startingScrollTop = null;
|
550 |
+
var startingMousePageY = null;
|
551 |
+
var scrollBy = null;
|
552 |
+
|
553 |
+
function mouseMoveHandler(e) {
|
554 |
+
element[scrollTop] =
|
555 |
+
startingScrollTop + scrollBy * (e[pageY] - startingMousePageY);
|
556 |
+
addScrollingClass(i, y);
|
557 |
+
updateGeometry(i);
|
558 |
+
|
559 |
+
e.stopPropagation();
|
560 |
+
e.preventDefault();
|
561 |
+
}
|
562 |
+
|
563 |
+
function mouseUpHandler() {
|
564 |
+
removeScrollingClass(i, y);
|
565 |
+
i[scrollbarYRail].classList.remove(cls.state.clicking);
|
566 |
+
i.event.unbind(i.ownerDocument, 'mousemove', mouseMoveHandler);
|
567 |
+
}
|
568 |
+
|
569 |
+
i.event.bind(i[scrollbarY], 'mousedown', function (e) {
|
570 |
+
startingScrollTop = element[scrollTop];
|
571 |
+
startingMousePageY = e[pageY];
|
572 |
+
scrollBy =
|
573 |
+
(i[contentHeight] - i[containerHeight]) /
|
574 |
+
(i[railYHeight] - i[scrollbarYHeight]);
|
575 |
+
|
576 |
+
i.event.bind(i.ownerDocument, 'mousemove', mouseMoveHandler);
|
577 |
+
i.event.once(i.ownerDocument, 'mouseup', mouseUpHandler);
|
578 |
+
|
579 |
+
i[scrollbarYRail].classList.add(cls.state.clicking);
|
580 |
+
|
581 |
+
e.stopPropagation();
|
582 |
+
e.preventDefault();
|
583 |
+
});
|
584 |
+
}
|
585 |
+
|
586 |
+
var keyboard = function(i) {
|
587 |
+
var element = i.element;
|
588 |
+
|
589 |
+
var elementHovered = function () { return matches(element, ':hover'); };
|
590 |
+
var scrollbarFocused = function () { return matches(i.scrollbarX, ':focus') || matches(i.scrollbarY, ':focus'); };
|
591 |
+
|
592 |
+
function shouldPreventDefault(deltaX, deltaY) {
|
593 |
+
var scrollTop = Math.floor(element.scrollTop);
|
594 |
+
if (deltaX === 0) {
|
595 |
+
if (!i.scrollbarYActive) {
|
596 |
+
return false;
|
597 |
+
}
|
598 |
+
if (
|
599 |
+
(scrollTop === 0 && deltaY > 0) ||
|
600 |
+
(scrollTop >= i.contentHeight - i.containerHeight && deltaY < 0)
|
601 |
+
) {
|
602 |
+
return !i.settings.wheelPropagation;
|
603 |
+
}
|
604 |
+
}
|
605 |
+
|
606 |
+
var scrollLeft = element.scrollLeft;
|
607 |
+
if (deltaY === 0) {
|
608 |
+
if (!i.scrollbarXActive) {
|
609 |
+
return false;
|
610 |
+
}
|
611 |
+
if (
|
612 |
+
(scrollLeft === 0 && deltaX < 0) ||
|
613 |
+
(scrollLeft >= i.contentWidth - i.containerWidth && deltaX > 0)
|
614 |
+
) {
|
615 |
+
return !i.settings.wheelPropagation;
|
616 |
+
}
|
617 |
+
}
|
618 |
+
return true;
|
619 |
+
}
|
620 |
+
|
621 |
+
i.event.bind(i.ownerDocument, 'keydown', function (e) {
|
622 |
+
if (
|
623 |
+
(e.isDefaultPrevented && e.isDefaultPrevented()) ||
|
624 |
+
e.defaultPrevented
|
625 |
+
) {
|
626 |
+
return;
|
627 |
+
}
|
628 |
+
|
629 |
+
if (!elementHovered() && !scrollbarFocused()) {
|
630 |
+
return;
|
631 |
+
}
|
632 |
+
|
633 |
+
var activeElement = document.activeElement
|
634 |
+
? document.activeElement
|
635 |
+
: i.ownerDocument.activeElement;
|
636 |
+
if (activeElement) {
|
637 |
+
if (activeElement.tagName === 'IFRAME') {
|
638 |
+
activeElement = activeElement.contentDocument.activeElement;
|
639 |
+
} else {
|
640 |
+
// go deeper if element is a webcomponent
|
641 |
+
while (activeElement.shadowRoot) {
|
642 |
+
activeElement = activeElement.shadowRoot.activeElement;
|
643 |
+
}
|
644 |
+
}
|
645 |
+
if (isEditable(activeElement)) {
|
646 |
+
return;
|
647 |
+
}
|
648 |
+
}
|
649 |
+
|
650 |
+
var deltaX = 0;
|
651 |
+
var deltaY = 0;
|
652 |
+
|
653 |
+
switch (e.which) {
|
654 |
+
case 37: // left
|
655 |
+
if (e.metaKey) {
|
656 |
+
deltaX = -i.contentWidth;
|
657 |
+
} else if (e.altKey) {
|
658 |
+
deltaX = -i.containerWidth;
|
659 |
+
} else {
|
660 |
+
deltaX = -30;
|
661 |
+
}
|
662 |
+
break;
|
663 |
+
case 38: // up
|
664 |
+
if (e.metaKey) {
|
665 |
+
deltaY = i.contentHeight;
|
666 |
+
} else if (e.altKey) {
|
667 |
+
deltaY = i.containerHeight;
|
668 |
+
} else {
|
669 |
+
deltaY = 30;
|
670 |
+
}
|
671 |
+
break;
|
672 |
+
case 39: // right
|
673 |
+
if (e.metaKey) {
|
674 |
+
deltaX = i.contentWidth;
|
675 |
+
} else if (e.altKey) {
|
676 |
+
deltaX = i.containerWidth;
|
677 |
+
} else {
|
678 |
+
deltaX = 30;
|
679 |
+
}
|
680 |
+
break;
|
681 |
+
case 40: // down
|
682 |
+
if (e.metaKey) {
|
683 |
+
deltaY = -i.contentHeight;
|
684 |
+
} else if (e.altKey) {
|
685 |
+
deltaY = -i.containerHeight;
|
686 |
+
} else {
|
687 |
+
deltaY = -30;
|
688 |
+
}
|
689 |
+
break;
|
690 |
+
case 32: // space bar
|
691 |
+
if (e.shiftKey) {
|
692 |
+
deltaY = i.containerHeight;
|
693 |
+
} else {
|
694 |
+
deltaY = -i.containerHeight;
|
695 |
+
}
|
696 |
+
break;
|
697 |
+
case 33: // page up
|
698 |
+
deltaY = i.containerHeight;
|
699 |
+
break;
|
700 |
+
case 34: // page down
|
701 |
+
deltaY = -i.containerHeight;
|
702 |
+
break;
|
703 |
+
case 36: // home
|
704 |
+
deltaY = i.contentHeight;
|
705 |
+
break;
|
706 |
+
case 35: // end
|
707 |
+
deltaY = -i.contentHeight;
|
708 |
+
break;
|
709 |
+
default:
|
710 |
+
return;
|
711 |
+
}
|
712 |
+
|
713 |
+
if (i.settings.suppressScrollX && deltaX !== 0) {
|
714 |
+
return;
|
715 |
+
}
|
716 |
+
if (i.settings.suppressScrollY && deltaY !== 0) {
|
717 |
+
return;
|
718 |
+
}
|
719 |
+
|
720 |
+
element.scrollTop -= deltaY;
|
721 |
+
element.scrollLeft += deltaX;
|
722 |
+
updateGeometry(i);
|
723 |
+
|
724 |
+
if (shouldPreventDefault(deltaX, deltaY)) {
|
725 |
+
e.preventDefault();
|
726 |
+
}
|
727 |
+
});
|
728 |
+
};
|
729 |
+
|
730 |
+
var wheel = function(i) {
|
731 |
+
var element = i.element;
|
732 |
+
|
733 |
+
function shouldPreventDefault(deltaX, deltaY) {
|
734 |
+
var roundedScrollTop = Math.floor(element.scrollTop);
|
735 |
+
var isTop = element.scrollTop === 0;
|
736 |
+
var isBottom =
|
737 |
+
roundedScrollTop + element.offsetHeight === element.scrollHeight;
|
738 |
+
var isLeft = element.scrollLeft === 0;
|
739 |
+
var isRight =
|
740 |
+
element.scrollLeft + element.offsetWidth === element.scrollWidth;
|
741 |
+
|
742 |
+
var hitsBound;
|
743 |
+
|
744 |
+
// pick axis with primary direction
|
745 |
+
if (Math.abs(deltaY) > Math.abs(deltaX)) {
|
746 |
+
hitsBound = isTop || isBottom;
|
747 |
+
} else {
|
748 |
+
hitsBound = isLeft || isRight;
|
749 |
+
}
|
750 |
+
|
751 |
+
return hitsBound ? !i.settings.wheelPropagation : true;
|
752 |
+
}
|
753 |
+
|
754 |
+
function getDeltaFromEvent(e) {
|
755 |
+
var deltaX = e.deltaX;
|
756 |
+
var deltaY = -1 * e.deltaY;
|
757 |
+
|
758 |
+
if (typeof deltaX === 'undefined' || typeof deltaY === 'undefined') {
|
759 |
+
// OS X Safari
|
760 |
+
deltaX = -1 * e.wheelDeltaX / 6;
|
761 |
+
deltaY = e.wheelDeltaY / 6;
|
762 |
+
}
|
763 |
+
|
764 |
+
if (e.deltaMode && e.deltaMode === 1) {
|
765 |
+
// Firefox in deltaMode 1: Line scrolling
|
766 |
+
deltaX *= 10;
|
767 |
+
deltaY *= 10;
|
768 |
+
}
|
769 |
+
|
770 |
+
if (deltaX !== deltaX && deltaY !== deltaY /* NaN checks */) {
|
771 |
+
// IE in some mouse drivers
|
772 |
+
deltaX = 0;
|
773 |
+
deltaY = e.wheelDelta;
|
774 |
+
}
|
775 |
+
|
776 |
+
if (e.shiftKey) {
|
777 |
+
// reverse axis with shift key
|
778 |
+
return [-deltaY, -deltaX];
|
779 |
+
}
|
780 |
+
return [deltaX, deltaY];
|
781 |
+
}
|
782 |
+
|
783 |
+
function shouldBeConsumedByChild(target, deltaX, deltaY) {
|
784 |
+
// FIXME: this is a workaround for <select> issue in FF and IE #571
|
785 |
+
if (!env.isWebKit && element.querySelector('select:focus')) {
|
786 |
+
return true;
|
787 |
+
}
|
788 |
+
|
789 |
+
if (!element.contains(target)) {
|
790 |
+
return false;
|
791 |
+
}
|
792 |
+
|
793 |
+
var cursor = target;
|
794 |
+
|
795 |
+
while (cursor && cursor !== element) {
|
796 |
+
if (cursor.classList.contains(cls.element.consuming)) {
|
797 |
+
return true;
|
798 |
+
}
|
799 |
+
|
800 |
+
var style = get(cursor);
|
801 |
+
var overflow = [style.overflow, style.overflowX, style.overflowY].join(
|
802 |
+
''
|
803 |
+
);
|
804 |
+
|
805 |
+
// if scrollable
|
806 |
+
if (overflow.match(/(scroll|auto)/)) {
|
807 |
+
var maxScrollTop = cursor.scrollHeight - cursor.clientHeight;
|
808 |
+
if (maxScrollTop > 0) {
|
809 |
+
if (
|
810 |
+
!(cursor.scrollTop === 0 && deltaY > 0) &&
|
811 |
+
!(cursor.scrollTop === maxScrollTop && deltaY < 0)
|
812 |
+
) {
|
813 |
+
return true;
|
814 |
+
}
|
815 |
+
}
|
816 |
+
var maxScrollLeft = cursor.scrollWidth - cursor.clientWidth;
|
817 |
+
if (maxScrollLeft > 0) {
|
818 |
+
if (
|
819 |
+
!(cursor.scrollLeft === 0 && deltaX < 0) &&
|
820 |
+
!(cursor.scrollLeft === maxScrollLeft && deltaX > 0)
|
821 |
+
) {
|
822 |
+
return true;
|
823 |
+
}
|
824 |
+
}
|
825 |
+
}
|
826 |
+
|
827 |
+
cursor = cursor.parentNode;
|
828 |
+
}
|
829 |
+
|
830 |
+
return false;
|
831 |
+
}
|
832 |
+
|
833 |
+
function mousewheelHandler(e) {
|
834 |
+
var ref = getDeltaFromEvent(e);
|
835 |
+
var deltaX = ref[0];
|
836 |
+
var deltaY = ref[1];
|
837 |
+
|
838 |
+
if (shouldBeConsumedByChild(e.target, deltaX, deltaY)) {
|
839 |
+
return;
|
840 |
+
}
|
841 |
+
|
842 |
+
var shouldPrevent = false;
|
843 |
+
if (!i.settings.useBothWheelAxes) {
|
844 |
+
// deltaX will only be used for horizontal scrolling and deltaY will
|
845 |
+
// only be used for vertical scrolling - this is the default
|
846 |
+
element.scrollTop -= deltaY * i.settings.wheelSpeed;
|
847 |
+
element.scrollLeft += deltaX * i.settings.wheelSpeed;
|
848 |
+
} else if (i.scrollbarYActive && !i.scrollbarXActive) {
|
849 |
+
// only vertical scrollbar is active and useBothWheelAxes option is
|
850 |
+
// active, so let's scroll vertical bar using both mouse wheel axes
|
851 |
+
if (deltaY) {
|
852 |
+
element.scrollTop -= deltaY * i.settings.wheelSpeed;
|
853 |
+
} else {
|
854 |
+
element.scrollTop += deltaX * i.settings.wheelSpeed;
|
855 |
+
}
|
856 |
+
shouldPrevent = true;
|
857 |
+
} else if (i.scrollbarXActive && !i.scrollbarYActive) {
|
858 |
+
// useBothWheelAxes and only horizontal bar is active, so use both
|
859 |
+
// wheel axes for horizontal bar
|
860 |
+
if (deltaX) {
|
861 |
+
element.scrollLeft += deltaX * i.settings.wheelSpeed;
|
862 |
+
} else {
|
863 |
+
element.scrollLeft -= deltaY * i.settings.wheelSpeed;
|
864 |
+
}
|
865 |
+
shouldPrevent = true;
|
866 |
+
}
|
867 |
+
|
868 |
+
updateGeometry(i);
|
869 |
+
|
870 |
+
shouldPrevent = shouldPrevent || shouldPreventDefault(deltaX, deltaY);
|
871 |
+
if (shouldPrevent && !e.ctrlKey) {
|
872 |
+
e.stopPropagation();
|
873 |
+
e.preventDefault();
|
874 |
+
}
|
875 |
+
}
|
876 |
+
|
877 |
+
if (typeof window.onwheel !== 'undefined') {
|
878 |
+
i.event.bind(element, 'wheel', mousewheelHandler);
|
879 |
+
} else if (typeof window.onmousewheel !== 'undefined') {
|
880 |
+
i.event.bind(element, 'mousewheel', mousewheelHandler);
|
881 |
+
}
|
882 |
+
};
|
883 |
+
|
884 |
+
var touch = function(i) {
|
885 |
+
if (!env.supportsTouch && !env.supportsIePointer) {
|
886 |
+
return;
|
887 |
+
}
|
888 |
+
|
889 |
+
var element = i.element;
|
890 |
+
|
891 |
+
function shouldPrevent(deltaX, deltaY) {
|
892 |
+
var scrollTop = Math.floor(element.scrollTop);
|
893 |
+
var scrollLeft = element.scrollLeft;
|
894 |
+
var magnitudeX = Math.abs(deltaX);
|
895 |
+
var magnitudeY = Math.abs(deltaY);
|
896 |
+
|
897 |
+
if (magnitudeY > magnitudeX) {
|
898 |
+
// user is perhaps trying to swipe up/down the page
|
899 |
+
|
900 |
+
if (
|
901 |
+
(deltaY < 0 && scrollTop === i.contentHeight - i.containerHeight) ||
|
902 |
+
(deltaY > 0 && scrollTop === 0)
|
903 |
+
) {
|
904 |
+
// set prevent for mobile Chrome refresh
|
905 |
+
return window.scrollY === 0 && deltaY > 0 && env.isChrome;
|
906 |
+
}
|
907 |
+
} else if (magnitudeX > magnitudeY) {
|
908 |
+
// user is perhaps trying to swipe left/right across the page
|
909 |
+
|
910 |
+
if (
|
911 |
+
(deltaX < 0 && scrollLeft === i.contentWidth - i.containerWidth) ||
|
912 |
+
(deltaX > 0 && scrollLeft === 0)
|
913 |
+
) {
|
914 |
+
return true;
|
915 |
+
}
|
916 |
+
}
|
917 |
+
|
918 |
+
return true;
|
919 |
+
}
|
920 |
+
|
921 |
+
function applyTouchMove(differenceX, differenceY) {
|
922 |
+
element.scrollTop -= differenceY;
|
923 |
+
element.scrollLeft -= differenceX;
|
924 |
+
|
925 |
+
updateGeometry(i);
|
926 |
+
}
|
927 |
+
|
928 |
+
var startOffset = {};
|
929 |
+
var startTime = 0;
|
930 |
+
var speed = {};
|
931 |
+
var easingLoop = null;
|
932 |
+
|
933 |
+
function getTouch(e) {
|
934 |
+
if (e.targetTouches) {
|
935 |
+
return e.targetTouches[0];
|
936 |
+
} else {
|
937 |
+
// Maybe IE pointer
|
938 |
+
return e;
|
939 |
+
}
|
940 |
+
}
|
941 |
+
|
942 |
+
function shouldHandle(e) {
|
943 |
+
if (e.pointerType && e.pointerType === 'pen' && e.buttons === 0) {
|
944 |
+
return false;
|
945 |
+
}
|
946 |
+
if (e.targetTouches && e.targetTouches.length === 1) {
|
947 |
+
return true;
|
948 |
+
}
|
949 |
+
if (
|
950 |
+
e.pointerType &&
|
951 |
+
e.pointerType !== 'mouse' &&
|
952 |
+
e.pointerType !== e.MSPOINTER_TYPE_MOUSE
|
953 |
+
) {
|
954 |
+
return true;
|
955 |
+
}
|
956 |
+
return false;
|
957 |
+
}
|
958 |
+
|
959 |
+
function touchStart(e) {
|
960 |
+
if (!shouldHandle(e)) {
|
961 |
+
return;
|
962 |
+
}
|
963 |
+
|
964 |
+
var touch = getTouch(e);
|
965 |
+
|
966 |
+
startOffset.pageX = touch.pageX;
|
967 |
+
startOffset.pageY = touch.pageY;
|
968 |
+
|
969 |
+
startTime = new Date().getTime();
|
970 |
+
|
971 |
+
if (easingLoop !== null) {
|
972 |
+
clearInterval(easingLoop);
|
973 |
+
}
|
974 |
+
}
|
975 |
+
|
976 |
+
function shouldBeConsumedByChild(target, deltaX, deltaY) {
|
977 |
+
if (!element.contains(target)) {
|
978 |
+
return false;
|
979 |
+
}
|
980 |
+
|
981 |
+
var cursor = target;
|
982 |
+
|
983 |
+
while (cursor && cursor !== element) {
|
984 |
+
if (cursor.classList.contains(cls.element.consuming)) {
|
985 |
+
return true;
|
986 |
+
}
|
987 |
+
|
988 |
+
var style = get(cursor);
|
989 |
+
var overflow = [style.overflow, style.overflowX, style.overflowY].join(
|
990 |
+
''
|
991 |
+
);
|
992 |
+
|
993 |
+
// if scrollable
|
994 |
+
if (overflow.match(/(scroll|auto)/)) {
|
995 |
+
var maxScrollTop = cursor.scrollHeight - cursor.clientHeight;
|
996 |
+
if (maxScrollTop > 0) {
|
997 |
+
if (
|
998 |
+
!(cursor.scrollTop === 0 && deltaY > 0) &&
|
999 |
+
!(cursor.scrollTop === maxScrollTop && deltaY < 0)
|
1000 |
+
) {
|
1001 |
+
return true;
|
1002 |
+
}
|
1003 |
+
}
|
1004 |
+
var maxScrollLeft = cursor.scrollLeft - cursor.clientWidth;
|
1005 |
+
if (maxScrollLeft > 0) {
|
1006 |
+
if (
|
1007 |
+
!(cursor.scrollLeft === 0 && deltaX < 0) &&
|
1008 |
+
!(cursor.scrollLeft === maxScrollLeft && deltaX > 0)
|
1009 |
+
) {
|
1010 |
+
return true;
|
1011 |
+
}
|
1012 |
+
}
|
1013 |
+
}
|
1014 |
+
|
1015 |
+
cursor = cursor.parentNode;
|
1016 |
+
}
|
1017 |
+
|
1018 |
+
return false;
|
1019 |
+
}
|
1020 |
+
|
1021 |
+
function touchMove(e) {
|
1022 |
+
if (shouldHandle(e)) {
|
1023 |
+
var touch = getTouch(e);
|
1024 |
+
|
1025 |
+
var currentOffset = { pageX: touch.pageX, pageY: touch.pageY };
|
1026 |
+
|
1027 |
+
var differenceX = currentOffset.pageX - startOffset.pageX;
|
1028 |
+
var differenceY = currentOffset.pageY - startOffset.pageY;
|
1029 |
+
|
1030 |
+
if (shouldBeConsumedByChild(e.target, differenceX, differenceY)) {
|
1031 |
+
return;
|
1032 |
+
}
|
1033 |
+
|
1034 |
+
applyTouchMove(differenceX, differenceY);
|
1035 |
+
startOffset = currentOffset;
|
1036 |
+
|
1037 |
+
var currentTime = new Date().getTime();
|
1038 |
+
|
1039 |
+
var timeGap = currentTime - startTime;
|
1040 |
+
if (timeGap > 0) {
|
1041 |
+
speed.x = differenceX / timeGap;
|
1042 |
+
speed.y = differenceY / timeGap;
|
1043 |
+
startTime = currentTime;
|
1044 |
+
}
|
1045 |
+
|
1046 |
+
if (shouldPrevent(differenceX, differenceY)) {
|
1047 |
+
e.preventDefault();
|
1048 |
+
}
|
1049 |
+
}
|
1050 |
+
}
|
1051 |
+
function touchEnd() {
|
1052 |
+
if (i.settings.swipeEasing) {
|
1053 |
+
clearInterval(easingLoop);
|
1054 |
+
easingLoop = setInterval(function() {
|
1055 |
+
if (i.isInitialized) {
|
1056 |
+
clearInterval(easingLoop);
|
1057 |
+
return;
|
1058 |
+
}
|
1059 |
+
|
1060 |
+
if (!speed.x && !speed.y) {
|
1061 |
+
clearInterval(easingLoop);
|
1062 |
+
return;
|
1063 |
+
}
|
1064 |
+
|
1065 |
+
if (Math.abs(speed.x) < 0.01 && Math.abs(speed.y) < 0.01) {
|
1066 |
+
clearInterval(easingLoop);
|
1067 |
+
return;
|
1068 |
+
}
|
1069 |
+
|
1070 |
+
applyTouchMove(speed.x * 30, speed.y * 30);
|
1071 |
+
|
1072 |
+
speed.x *= 0.8;
|
1073 |
+
speed.y *= 0.8;
|
1074 |
+
}, 10);
|
1075 |
+
}
|
1076 |
+
}
|
1077 |
+
|
1078 |
+
if (env.supportsTouch) {
|
1079 |
+
i.event.bind(element, 'touchstart', touchStart);
|
1080 |
+
i.event.bind(element, 'touchmove', touchMove);
|
1081 |
+
i.event.bind(element, 'touchend', touchEnd);
|
1082 |
+
} else if (env.supportsIePointer) {
|
1083 |
+
if (window.PointerEvent) {
|
1084 |
+
i.event.bind(element, 'pointerdown', touchStart);
|
1085 |
+
i.event.bind(element, 'pointermove', touchMove);
|
1086 |
+
i.event.bind(element, 'pointerup', touchEnd);
|
1087 |
+
} else if (window.MSPointerEvent) {
|
1088 |
+
i.event.bind(element, 'MSPointerDown', touchStart);
|
1089 |
+
i.event.bind(element, 'MSPointerMove', touchMove);
|
1090 |
+
i.event.bind(element, 'MSPointerUp', touchEnd);
|
1091 |
+
}
|
1092 |
+
}
|
1093 |
+
};
|
1094 |
+
|
1095 |
+
var defaultSettings = function () { return ({
|
1096 |
+
handlers: ['click-rail', 'drag-thumb', 'keyboard', 'wheel', 'touch'],
|
1097 |
+
maxScrollbarLength: null,
|
1098 |
+
minScrollbarLength: null,
|
1099 |
+
scrollingThreshold: 1000,
|
1100 |
+
scrollXMarginOffset: 0,
|
1101 |
+
scrollYMarginOffset: 0,
|
1102 |
+
suppressScrollX: false,
|
1103 |
+
suppressScrollY: false,
|
1104 |
+
swipeEasing: true,
|
1105 |
+
useBothWheelAxes: false,
|
1106 |
+
wheelPropagation: true,
|
1107 |
+
wheelSpeed: 1,
|
1108 |
+
}); };
|
1109 |
+
|
1110 |
+
var handlers = {
|
1111 |
+
'click-rail': clickRail,
|
1112 |
+
'drag-thumb': dragThumb,
|
1113 |
+
keyboard: keyboard,
|
1114 |
+
wheel: wheel,
|
1115 |
+
touch: touch,
|
1116 |
+
};
|
1117 |
+
|
1118 |
+
var PerfectScrollbar = function PerfectScrollbar(element, userSettings) {
|
1119 |
+
var this$1 = this;
|
1120 |
+
if ( userSettings === void 0 ) userSettings = {};
|
1121 |
+
|
1122 |
+
if (typeof element === 'string') {
|
1123 |
+
element = document.querySelector(element);
|
1124 |
+
}
|
1125 |
+
|
1126 |
+
if (!element || !element.nodeName) {
|
1127 |
+
throw new Error('no element is specified to initialize PerfectScrollbar');
|
1128 |
+
}
|
1129 |
+
|
1130 |
+
this.element = element;
|
1131 |
+
|
1132 |
+
element.classList.add(cls.main);
|
1133 |
+
|
1134 |
+
this.settings = defaultSettings();
|
1135 |
+
for (var key in userSettings) {
|
1136 |
+
this$1.settings[key] = userSettings[key];
|
1137 |
+
}
|
1138 |
+
|
1139 |
+
this.containerWidth = null;
|
1140 |
+
this.containerHeight = null;
|
1141 |
+
this.contentWidth = null;
|
1142 |
+
this.contentHeight = null;
|
1143 |
+
|
1144 |
+
var focus = function () { return element.classList.add(cls.state.focus); };
|
1145 |
+
var blur = function () { return element.classList.remove(cls.state.focus); };
|
1146 |
+
|
1147 |
+
this.isRtl = get(element).direction === 'rtl';
|
1148 |
+
this.isNegativeScroll = (function () {
|
1149 |
+
var originalScrollLeft = element.scrollLeft;
|
1150 |
+
var result = null;
|
1151 |
+
element.scrollLeft = -1;
|
1152 |
+
result = element.scrollLeft < 0;
|
1153 |
+
element.scrollLeft = originalScrollLeft;
|
1154 |
+
return result;
|
1155 |
+
})();
|
1156 |
+
this.negativeScrollAdjustment = this.isNegativeScroll
|
1157 |
+
? element.scrollWidth - element.clientWidth
|
1158 |
+
: 0;
|
1159 |
+
this.event = new EventManager();
|
1160 |
+
this.ownerDocument = element.ownerDocument || document;
|
1161 |
+
|
1162 |
+
this.scrollbarXRail = div(cls.element.rail('x'));
|
1163 |
+
element.appendChild(this.scrollbarXRail);
|
1164 |
+
this.scrollbarX = div(cls.element.thumb('x'));
|
1165 |
+
this.scrollbarXRail.appendChild(this.scrollbarX);
|
1166 |
+
this.scrollbarX.setAttribute('tabindex', 0);
|
1167 |
+
this.event.bind(this.scrollbarX, 'focus', focus);
|
1168 |
+
this.event.bind(this.scrollbarX, 'blur', blur);
|
1169 |
+
this.scrollbarXActive = null;
|
1170 |
+
this.scrollbarXWidth = null;
|
1171 |
+
this.scrollbarXLeft = null;
|
1172 |
+
var railXStyle = get(this.scrollbarXRail);
|
1173 |
+
this.scrollbarXBottom = parseInt(railXStyle.bottom, 10);
|
1174 |
+
if (isNaN(this.scrollbarXBottom)) {
|
1175 |
+
this.isScrollbarXUsingBottom = false;
|
1176 |
+
this.scrollbarXTop = toInt(railXStyle.top);
|
1177 |
+
} else {
|
1178 |
+
this.isScrollbarXUsingBottom = true;
|
1179 |
+
}
|
1180 |
+
this.railBorderXWidth =
|
1181 |
+
toInt(railXStyle.borderLeftWidth) + toInt(railXStyle.borderRightWidth);
|
1182 |
+
// Set rail to display:block to calculate margins
|
1183 |
+
set(this.scrollbarXRail, { display: 'block' });
|
1184 |
+
this.railXMarginWidth =
|
1185 |
+
toInt(railXStyle.marginLeft) + toInt(railXStyle.marginRight);
|
1186 |
+
set(this.scrollbarXRail, { display: '' });
|
1187 |
+
this.railXWidth = null;
|
1188 |
+
this.railXRatio = null;
|
1189 |
+
|
1190 |
+
this.scrollbarYRail = div(cls.element.rail('y'));
|
1191 |
+
element.appendChild(this.scrollbarYRail);
|
1192 |
+
this.scrollbarY = div(cls.element.thumb('y'));
|
1193 |
+
this.scrollbarYRail.appendChild(this.scrollbarY);
|
1194 |
+
this.scrollbarY.setAttribute('tabindex', 0);
|
1195 |
+
this.event.bind(this.scrollbarY, 'focus', focus);
|
1196 |
+
this.event.bind(this.scrollbarY, 'blur', blur);
|
1197 |
+
this.scrollbarYActive = null;
|
1198 |
+
this.scrollbarYHeight = null;
|
1199 |
+
this.scrollbarYTop = null;
|
1200 |
+
var railYStyle = get(this.scrollbarYRail);
|
1201 |
+
this.scrollbarYRight = parseInt(railYStyle.right, 10);
|
1202 |
+
if (isNaN(this.scrollbarYRight)) {
|
1203 |
+
this.isScrollbarYUsingRight = false;
|
1204 |
+
this.scrollbarYLeft = toInt(railYStyle.left);
|
1205 |
+
} else {
|
1206 |
+
this.isScrollbarYUsingRight = true;
|
1207 |
+
}
|
1208 |
+
this.scrollbarYOuterWidth = this.isRtl ? outerWidth(this.scrollbarY) : null;
|
1209 |
+
this.railBorderYWidth =
|
1210 |
+
toInt(railYStyle.borderTopWidth) + toInt(railYStyle.borderBottomWidth);
|
1211 |
+
set(this.scrollbarYRail, { display: 'block' });
|
1212 |
+
this.railYMarginHeight =
|
1213 |
+
toInt(railYStyle.marginTop) + toInt(railYStyle.marginBottom);
|
1214 |
+
set(this.scrollbarYRail, { display: '' });
|
1215 |
+
this.railYHeight = null;
|
1216 |
+
this.railYRatio = null;
|
1217 |
+
|
1218 |
+
this.reach = {
|
1219 |
+
x:
|
1220 |
+
element.scrollLeft <= 0
|
1221 |
+
? 'start'
|
1222 |
+
: element.scrollLeft >= this.contentWidth - this.containerWidth
|
1223 |
+
? 'end'
|
1224 |
+
: null,
|
1225 |
+
y:
|
1226 |
+
element.scrollTop <= 0
|
1227 |
+
? 'start'
|
1228 |
+
: element.scrollTop >= this.contentHeight - this.containerHeight
|
1229 |
+
? 'end'
|
1230 |
+
: null,
|
1231 |
+
};
|
1232 |
+
|
1233 |
+
this.isAlive = true;
|
1234 |
+
|
1235 |
+
this.settings.handlers.forEach(function (handlerName) { return handlers[handlerName](this$1); });
|
1236 |
+
|
1237 |
+
this.lastScrollTop = Math.floor(element.scrollTop); // for onScroll only
|
1238 |
+
this.lastScrollLeft = element.scrollLeft; // for onScroll only
|
1239 |
+
this.event.bind(this.element, 'scroll', function (e) { return this$1.onScroll(e); });
|
1240 |
+
updateGeometry(this);
|
1241 |
+
};
|
1242 |
+
|
1243 |
+
PerfectScrollbar.prototype.update = function update () {
|
1244 |
+
if (!this.isAlive) {
|
1245 |
+
return;
|
1246 |
+
}
|
1247 |
+
|
1248 |
+
// Recalcuate negative scrollLeft adjustment
|
1249 |
+
this.negativeScrollAdjustment = this.isNegativeScroll
|
1250 |
+
? this.element.scrollWidth - this.element.clientWidth
|
1251 |
+
: 0;
|
1252 |
+
|
1253 |
+
// Recalculate rail margins
|
1254 |
+
set(this.scrollbarXRail, { display: 'block' });
|
1255 |
+
set(this.scrollbarYRail, { display: 'block' });
|
1256 |
+
this.railXMarginWidth =
|
1257 |
+
toInt(get(this.scrollbarXRail).marginLeft) +
|
1258 |
+
toInt(get(this.scrollbarXRail).marginRight);
|
1259 |
+
this.railYMarginHeight =
|
1260 |
+
toInt(get(this.scrollbarYRail).marginTop) +
|
1261 |
+
toInt(get(this.scrollbarYRail).marginBottom);
|
1262 |
+
|
1263 |
+
// Hide scrollbars not to affect scrollWidth and scrollHeight
|
1264 |
+
set(this.scrollbarXRail, { display: 'none' });
|
1265 |
+
set(this.scrollbarYRail, { display: 'none' });
|
1266 |
+
|
1267 |
+
updateGeometry(this);
|
1268 |
+
|
1269 |
+
processScrollDiff(this, 'top', 0, false, true);
|
1270 |
+
processScrollDiff(this, 'left', 0, false, true);
|
1271 |
+
|
1272 |
+
set(this.scrollbarXRail, { display: '' });
|
1273 |
+
set(this.scrollbarYRail, { display: '' });
|
1274 |
+
};
|
1275 |
+
|
1276 |
+
PerfectScrollbar.prototype.onScroll = function onScroll (e) {
|
1277 |
+
if (!this.isAlive) {
|
1278 |
+
return;
|
1279 |
+
}
|
1280 |
+
|
1281 |
+
updateGeometry(this);
|
1282 |
+
processScrollDiff(this, 'top', this.element.scrollTop - this.lastScrollTop);
|
1283 |
+
processScrollDiff(
|
1284 |
+
this,
|
1285 |
+
'left',
|
1286 |
+
this.element.scrollLeft - this.lastScrollLeft
|
1287 |
+
);
|
1288 |
+
|
1289 |
+
this.lastScrollTop = Math.floor(this.element.scrollTop);
|
1290 |
+
this.lastScrollLeft = this.element.scrollLeft;
|
1291 |
+
};
|
1292 |
+
|
1293 |
+
PerfectScrollbar.prototype.destroy = function destroy () {
|
1294 |
+
if (!this.isAlive) {
|
1295 |
+
return;
|
1296 |
+
}
|
1297 |
+
|
1298 |
+
this.event.unbindAll();
|
1299 |
+
remove(this.scrollbarX);
|
1300 |
+
remove(this.scrollbarY);
|
1301 |
+
remove(this.scrollbarXRail);
|
1302 |
+
remove(this.scrollbarYRail);
|
1303 |
+
this.removePsClasses();
|
1304 |
+
|
1305 |
+
// unset elements
|
1306 |
+
this.element = null;
|
1307 |
+
this.scrollbarX = null;
|
1308 |
+
this.scrollbarY = null;
|
1309 |
+
this.scrollbarXRail = null;
|
1310 |
+
this.scrollbarYRail = null;
|
1311 |
+
|
1312 |
+
this.isAlive = false;
|
1313 |
+
};
|
1314 |
+
|
1315 |
+
PerfectScrollbar.prototype.removePsClasses = function removePsClasses () {
|
1316 |
+
this.element.className = this.element.className
|
1317 |
+
.split(' ')
|
1318 |
+
.filter(function (name) { return !name.match(/^ps([-_].+|)$/); })
|
1319 |
+
.join(' ');
|
1320 |
+
};
|
1321 |
+
|
1322 |
+
return PerfectScrollbar;
|
1323 |
+
|
1324 |
+
})));
|
assets/js/perfect-scrollbar/perfect-scrollbar.min.js
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
* perfect-scrollbar v1.4.0
|
3 |
+
* (c) 2018 Hyunje Jun
|
4 |
+
* @license MIT
|
5 |
+
*/
|
6 |
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.PerfectScrollbar=e()}(this,function(){"use strict";function t(t){return getComputedStyle(t)}function e(t,e){for(var i in e){var r=e[i];"number"==typeof r&&(r+="px"),t.style[i]=r}return t}function i(t){var e=document.createElement("div");return e.className=t,e}function r(t,e){if(!v)throw new Error("No element matching method supported");return v.call(t,e)}function l(t){t.remove?t.remove():t.parentNode&&t.parentNode.removeChild(t)}function n(t,e){return Array.prototype.filter.call(t.children,function(t){return r(t,e)})}function o(t,e){var i=t.element.classList,r=m.state.scrolling(e);i.contains(r)?clearTimeout(Y[e]):i.add(r)}function s(t,e){Y[e]=setTimeout(function(){return t.isAlive&&t.element.classList.remove(m.state.scrolling(e))},t.settings.scrollingThreshold)}function a(t,e){o(t,e),s(t,e)}function c(t){if("function"==typeof window.CustomEvent)return new CustomEvent(t);var e=document.createEvent("CustomEvent");return e.initCustomEvent(t,!1,!1,void 0),e}function h(t,e,i,r,l){var n=i[0],o=i[1],s=i[2],h=i[3],u=i[4],d=i[5];void 0===r&&(r=!0),void 0===l&&(l=!1);var f=t.element;t.reach[h]=null,f[s]<1&&(t.reach[h]="start"),f[s]>t[n]-t[o]-1&&(t.reach[h]="end"),e&&(f.dispatchEvent(c("ps-scroll-"+h)),e<0?f.dispatchEvent(c("ps-scroll-"+u)):e>0&&f.dispatchEvent(c("ps-scroll-"+d)),r&&a(t,h)),t.reach[h]&&(e||l)&&f.dispatchEvent(c("ps-"+h+"-reach-"+t.reach[h]))}function u(t){return parseInt(t,10)||0}function d(t){return r(t,"input,[contenteditable]")||r(t,"select,[contenteditable]")||r(t,"textarea,[contenteditable]")||r(t,"button,[contenteditable]")}function f(e){var i=t(e);return u(i.width)+u(i.paddingLeft)+u(i.paddingRight)+u(i.borderLeftWidth)+u(i.borderRightWidth)}function p(t,e){return t.settings.minScrollbarLength&&(e=Math.max(e,t.settings.minScrollbarLength)),t.settings.maxScrollbarLength&&(e=Math.min(e,t.settings.maxScrollbarLength)),e}function b(t,i){var r={width:i.railXWidth},l=Math.floor(t.scrollTop);i.isRtl?r.left=i.negativeScrollAdjustment+t.scrollLeft+i.containerWidth-i.contentWidth:r.left=t.scrollLeft,i.isScrollbarXUsingBottom?r.bottom=i.scrollbarXBottom-l:r.top=i.scrollbarXTop+l,e(i.scrollbarXRail,r);var n={top:l,height:i.railYHeight};i.isScrollbarYUsingRight?i.isRtl?n.right=i.contentWidth-(i.negativeScrollAdjustment+t.scrollLeft)-i.scrollbarYRight-i.scrollbarYOuterWidth:n.right=i.scrollbarYRight-t.scrollLeft:i.isRtl?n.left=i.negativeScrollAdjustment+t.scrollLeft+2*i.containerWidth-i.contentWidth-i.scrollbarYLeft-i.scrollbarYOuterWidth:n.left=i.scrollbarYLeft+t.scrollLeft,e(i.scrollbarYRail,n),e(i.scrollbarX,{left:i.scrollbarXLeft,width:i.scrollbarXWidth-i.railBorderXWidth}),e(i.scrollbarY,{top:i.scrollbarYTop,height:i.scrollbarYHeight-i.railBorderYWidth})}function g(t,e){function i(e){b[d]=g+Y*(e[a]-v),o(t,f),R(t),e.stopPropagation(),e.preventDefault()}function r(){s(t,f),t[p].classList.remove(m.state.clicking),t.event.unbind(t.ownerDocument,"mousemove",i)}var l=e[0],n=e[1],a=e[2],c=e[3],h=e[4],u=e[5],d=e[6],f=e[7],p=e[8],b=t.element,g=null,v=null,Y=null;t.event.bind(t[h],"mousedown",function(e){g=b[d],v=e[a],Y=(t[n]-t[l])/(t[c]-t[u]),t.event.bind(t.ownerDocument,"mousemove",i),t.event.once(t.ownerDocument,"mouseup",r),t[p].classList.add(m.state.clicking),e.stopPropagation(),e.preventDefault()})}var v="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector),m={main:"ps",element:{thumb:function(t){return"ps__thumb-"+t},rail:function(t){return"ps__rail-"+t},consuming:"ps__child--consume"},state:{focus:"ps--focus",clicking:"ps--clicking",active:function(t){return"ps--active-"+t},scrolling:function(t){return"ps--scrolling-"+t}}},Y={x:null,y:null},X=function(t){this.element=t,this.handlers={}},w={isEmpty:{configurable:!0}};X.prototype.bind=function(t,e){void 0===this.handlers[t]&&(this.handlers[t]=[]),this.handlers[t].push(e),this.element.addEventListener(t,e,!1)},X.prototype.unbind=function(t,e){var i=this;this.handlers[t]=this.handlers[t].filter(function(r){return!(!e||r===e)||(i.element.removeEventListener(t,r,!1),!1)})},X.prototype.unbindAll=function(){var t=this;for(var e in t.handlers)t.unbind(e)},w.isEmpty.get=function(){var t=this;return Object.keys(this.handlers).every(function(e){return 0===t.handlers[e].length})},Object.defineProperties(X.prototype,w);var y=function(){this.eventElements=[]};y.prototype.eventElement=function(t){var e=this.eventElements.filter(function(e){return e.element===t})[0];return e||(e=new X(t),this.eventElements.push(e)),e},y.prototype.bind=function(t,e,i){this.eventElement(t).bind(e,i)},y.prototype.unbind=function(t,e,i){var r=this.eventElement(t);r.unbind(e,i),r.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(r),1)},y.prototype.unbindAll=function(){this.eventElements.forEach(function(t){return t.unbindAll()}),this.eventElements=[]},y.prototype.once=function(t,e,i){var r=this.eventElement(t),l=function(t){r.unbind(e,l),i(t)};r.bind(e,l)};var W=function(t,e,i,r,l){void 0===r&&(r=!0),void 0===l&&(l=!1);var n;if("top"===e)n=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==e)throw new Error("A proper axis should be provided");n=["contentWidth","containerWidth","scrollLeft","x","left","right"]}h(t,i,n,r,l)},L={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)},R=function(t){var e=t.element,i=Math.floor(e.scrollTop);t.containerWidth=e.clientWidth,t.containerHeight=e.clientHeight,t.contentWidth=e.scrollWidth,t.contentHeight=e.scrollHeight,e.contains(t.scrollbarXRail)||(n(e,m.element.rail("x")).forEach(function(t){return l(t)}),e.appendChild(t.scrollbarXRail)),e.contains(t.scrollbarYRail)||(n(e,m.element.rail("y")).forEach(function(t){return l(t)}),e.appendChild(t.scrollbarYRail)),!t.settings.suppressScrollX&&t.containerWidth+t.settings.scrollXMarginOffset<t.contentWidth?(t.scrollbarXActive=!0,t.railXWidth=t.containerWidth-t.railXMarginWidth,t.railXRatio=t.containerWidth/t.railXWidth,t.scrollbarXWidth=p(t,u(t.railXWidth*t.containerWidth/t.contentWidth)),t.scrollbarXLeft=u((t.negativeScrollAdjustment+e.scrollLeft)*(t.railXWidth-t.scrollbarXWidth)/(t.contentWidth-t.containerWidth))):t.scrollbarXActive=!1,!t.settings.suppressScrollY&&t.containerHeight+t.settings.scrollYMarginOffset<t.contentHeight?(t.scrollbarYActive=!0,t.railYHeight=t.containerHeight-t.railYMarginHeight,t.railYRatio=t.containerHeight/t.railYHeight,t.scrollbarYHeight=p(t,u(t.railYHeight*t.containerHeight/t.contentHeight)),t.scrollbarYTop=u(i*(t.railYHeight-t.scrollbarYHeight)/(t.contentHeight-t.containerHeight))):t.scrollbarYActive=!1,t.scrollbarXLeft>=t.railXWidth-t.scrollbarXWidth&&(t.scrollbarXLeft=t.railXWidth-t.scrollbarXWidth),t.scrollbarYTop>=t.railYHeight-t.scrollbarYHeight&&(t.scrollbarYTop=t.railYHeight-t.scrollbarYHeight),b(e,t),t.scrollbarXActive?e.classList.add(m.state.active("x")):(e.classList.remove(m.state.active("x")),t.scrollbarXWidth=0,t.scrollbarXLeft=0,e.scrollLeft=0),t.scrollbarYActive?e.classList.add(m.state.active("y")):(e.classList.remove(m.state.active("y")),t.scrollbarYHeight=0,t.scrollbarYTop=0,e.scrollTop=0)},T={"click-rail":function(t){t.event.bind(t.scrollbarY,"mousedown",function(t){return t.stopPropagation()}),t.event.bind(t.scrollbarYRail,"mousedown",function(e){var i=e.pageY-window.pageYOffset-t.scrollbarYRail.getBoundingClientRect().top>t.scrollbarYTop?1:-1;t.element.scrollTop+=i*t.containerHeight,R(t),e.stopPropagation()}),t.event.bind(t.scrollbarX,"mousedown",function(t){return t.stopPropagation()}),t.event.bind(t.scrollbarXRail,"mousedown",function(e){var i=e.pageX-window.pageXOffset-t.scrollbarXRail.getBoundingClientRect().left>t.scrollbarXLeft?1:-1;t.element.scrollLeft+=i*t.containerWidth,R(t),e.stopPropagation()})},"drag-thumb":function(t){g(t,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),g(t,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function(t){function e(e,r){var l=Math.floor(i.scrollTop);if(0===e){if(!t.scrollbarYActive)return!1;if(0===l&&r>0||l>=t.contentHeight-t.containerHeight&&r<0)return!t.settings.wheelPropagation}var n=i.scrollLeft;if(0===r){if(!t.scrollbarXActive)return!1;if(0===n&&e<0||n>=t.contentWidth-t.containerWidth&&e>0)return!t.settings.wheelPropagation}return!0}var i=t.element,l=function(){return r(i,":hover")},n=function(){return r(t.scrollbarX,":focus")||r(t.scrollbarY,":focus")};t.event.bind(t.ownerDocument,"keydown",function(r){if(!(r.isDefaultPrevented&&r.isDefaultPrevented()||r.defaultPrevented)&&(l()||n())){var o=document.activeElement?document.activeElement:t.ownerDocument.activeElement;if(o){if("IFRAME"===o.tagName)o=o.contentDocument.activeElement;else for(;o.shadowRoot;)o=o.shadowRoot.activeElement;if(d(o))return}var s=0,a=0;switch(r.which){case 37:s=r.metaKey?-t.contentWidth:r.altKey?-t.containerWidth:-30;break;case 38:a=r.metaKey?t.contentHeight:r.altKey?t.containerHeight:30;break;case 39:s=r.metaKey?t.contentWidth:r.altKey?t.containerWidth:30;break;case 40:a=r.metaKey?-t.contentHeight:r.altKey?-t.containerHeight:-30;break;case 32:a=r.shiftKey?t.containerHeight:-t.containerHeight;break;case 33:a=t.containerHeight;break;case 34:a=-t.containerHeight;break;case 36:a=t.contentHeight;break;case 35:a=-t.contentHeight;break;default:return}t.settings.suppressScrollX&&0!==s||t.settings.suppressScrollY&&0!==a||(i.scrollTop-=a,i.scrollLeft+=s,R(t),e(s,a)&&r.preventDefault())}})},wheel:function(e){function i(t,i){var r=Math.floor(o.scrollTop),l=0===o.scrollTop,n=r+o.offsetHeight===o.scrollHeight,s=0===o.scrollLeft,a=o.scrollLeft+o.offsetWidth===o.scrollWidth;return!(Math.abs(i)>Math.abs(t)?l||n:s||a)||!e.settings.wheelPropagation}function r(t){var e=t.deltaX,i=-1*t.deltaY;return void 0!==e&&void 0!==i||(e=-1*t.wheelDeltaX/6,i=t.wheelDeltaY/6),t.deltaMode&&1===t.deltaMode&&(e*=10,i*=10),e!==e&&i!==i&&(e=0,i=t.wheelDelta),t.shiftKey?[-i,-e]:[e,i]}function l(e,i,r){if(!L.isWebKit&&o.querySelector("select:focus"))return!0;if(!o.contains(e))return!1;for(var l=e;l&&l!==o;){if(l.classList.contains(m.element.consuming))return!0;var n=t(l);if([n.overflow,n.overflowX,n.overflowY].join("").match(/(scroll|auto)/)){var s=l.scrollHeight-l.clientHeight;if(s>0&&!(0===l.scrollTop&&r>0||l.scrollTop===s&&r<0))return!0;var a=l.scrollWidth-l.clientWidth;if(a>0&&!(0===l.scrollLeft&&i<0||l.scrollLeft===a&&i>0))return!0}l=l.parentNode}return!1}function n(t){var n=r(t),s=n[0],a=n[1];if(!l(t.target,s,a)){var c=!1;e.settings.useBothWheelAxes?e.scrollbarYActive&&!e.scrollbarXActive?(a?o.scrollTop-=a*e.settings.wheelSpeed:o.scrollTop+=s*e.settings.wheelSpeed,c=!0):e.scrollbarXActive&&!e.scrollbarYActive&&(s?o.scrollLeft+=s*e.settings.wheelSpeed:o.scrollLeft-=a*e.settings.wheelSpeed,c=!0):(o.scrollTop-=a*e.settings.wheelSpeed,o.scrollLeft+=s*e.settings.wheelSpeed),R(e),(c=c||i(s,a))&&!t.ctrlKey&&(t.stopPropagation(),t.preventDefault())}}var o=e.element;void 0!==window.onwheel?e.event.bind(o,"wheel",n):void 0!==window.onmousewheel&&e.event.bind(o,"mousewheel",n)},touch:function(e){function i(t,i){var r=Math.floor(h.scrollTop),l=h.scrollLeft,n=Math.abs(t),o=Math.abs(i);if(o>n){if(i<0&&r===e.contentHeight-e.containerHeight||i>0&&0===r)return 0===window.scrollY&&i>0&&L.isChrome}else if(n>o&&(t<0&&l===e.contentWidth-e.containerWidth||t>0&&0===l))return!0;return!0}function r(t,i){h.scrollTop-=i,h.scrollLeft-=t,R(e)}function l(t){return t.targetTouches?t.targetTouches[0]:t}function n(t){return!(t.pointerType&&"pen"===t.pointerType&&0===t.buttons||(!t.targetTouches||1!==t.targetTouches.length)&&(!t.pointerType||"mouse"===t.pointerType||t.pointerType===t.MSPOINTER_TYPE_MOUSE))}function o(t){if(n(t)){var e=l(t);u.pageX=e.pageX,u.pageY=e.pageY,d=(new Date).getTime(),null!==p&&clearInterval(p)}}function s(e,i,r){if(!h.contains(e))return!1;for(var l=e;l&&l!==h;){if(l.classList.contains(m.element.consuming))return!0;var n=t(l);if([n.overflow,n.overflowX,n.overflowY].join("").match(/(scroll|auto)/)){var o=l.scrollHeight-l.clientHeight;if(o>0&&!(0===l.scrollTop&&r>0||l.scrollTop===o&&r<0))return!0;var s=l.scrollLeft-l.clientWidth;if(s>0&&!(0===l.scrollLeft&&i<0||l.scrollLeft===s&&i>0))return!0}l=l.parentNode}return!1}function a(t){if(n(t)){var e=l(t),o={pageX:e.pageX,pageY:e.pageY},a=o.pageX-u.pageX,c=o.pageY-u.pageY;if(s(t.target,a,c))return;r(a,c),u=o;var h=(new Date).getTime(),p=h-d;p>0&&(f.x=a/p,f.y=c/p,d=h),i(a,c)&&t.preventDefault()}}function c(){e.settings.swipeEasing&&(clearInterval(p),p=setInterval(function(){e.isInitialized?clearInterval(p):f.x||f.y?Math.abs(f.x)<.01&&Math.abs(f.y)<.01?clearInterval(p):(r(30*f.x,30*f.y),f.x*=.8,f.y*=.8):clearInterval(p)},10))}if(L.supportsTouch||L.supportsIePointer){var h=e.element,u={},d=0,f={},p=null;L.supportsTouch?(e.event.bind(h,"touchstart",o),e.event.bind(h,"touchmove",a),e.event.bind(h,"touchend",c)):L.supportsIePointer&&(window.PointerEvent?(e.event.bind(h,"pointerdown",o),e.event.bind(h,"pointermove",a),e.event.bind(h,"pointerup",c)):window.MSPointerEvent&&(e.event.bind(h,"MSPointerDown",o),e.event.bind(h,"MSPointerMove",a),e.event.bind(h,"MSPointerUp",c)))}}},H=function(r,l){var n=this;if(void 0===l&&(l={}),"string"==typeof r&&(r=document.querySelector(r)),!r||!r.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");this.element=r,r.classList.add(m.main),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1};for(var o in l)n.settings[o]=l[o];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var s=function(){return r.classList.add(m.state.focus)},a=function(){return r.classList.remove(m.state.focus)};this.isRtl="rtl"===t(r).direction,this.isNegativeScroll=function(){var t=r.scrollLeft,e=null;return r.scrollLeft=-1,e=r.scrollLeft<0,r.scrollLeft=t,e}(),this.negativeScrollAdjustment=this.isNegativeScroll?r.scrollWidth-r.clientWidth:0,this.event=new y,this.ownerDocument=r.ownerDocument||document,this.scrollbarXRail=i(m.element.rail("x")),r.appendChild(this.scrollbarXRail),this.scrollbarX=i(m.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",s),this.event.bind(this.scrollbarX,"blur",a),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var c=t(this.scrollbarXRail);this.scrollbarXBottom=parseInt(c.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=u(c.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=u(c.borderLeftWidth)+u(c.borderRightWidth),e(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=u(c.marginLeft)+u(c.marginRight),e(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=i(m.element.rail("y")),r.appendChild(this.scrollbarYRail),this.scrollbarY=i(m.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",s),this.event.bind(this.scrollbarY,"blur",a),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var h=t(this.scrollbarYRail);this.scrollbarYRight=parseInt(h.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=u(h.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?f(this.scrollbarY):null,this.railBorderYWidth=u(h.borderTopWidth)+u(h.borderBottomWidth),e(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=u(h.marginTop)+u(h.marginBottom),e(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:r.scrollLeft<=0?"start":r.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:r.scrollTop<=0?"start":r.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(t){return T[t](n)}),this.lastScrollTop=Math.floor(r.scrollTop),this.lastScrollLeft=r.scrollLeft,this.event.bind(this.element,"scroll",function(t){return n.onScroll(t)}),R(this)};return H.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,e(this.scrollbarXRail,{display:"block"}),e(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=u(t(this.scrollbarXRail).marginLeft)+u(t(this.scrollbarXRail).marginRight),this.railYMarginHeight=u(t(this.scrollbarYRail).marginTop)+u(t(this.scrollbarYRail).marginBottom),e(this.scrollbarXRail,{display:"none"}),e(this.scrollbarYRail,{display:"none"}),R(this),W(this,"top",0,!1,!0),W(this,"left",0,!1,!0),e(this.scrollbarXRail,{display:""}),e(this.scrollbarYRail,{display:""}))},H.prototype.onScroll=function(t){this.isAlive&&(R(this),W(this,"top",this.element.scrollTop-this.lastScrollTop),W(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},H.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),l(this.scrollbarX),l(this.scrollbarY),l(this.scrollbarXRail),l(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},H.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(t){return!t.match(/^ps([-_].+|)$/)}).join(" ")},H});
|
assets/js/sweetalert2/sweetalert2.js
ADDED
@@ -0,0 +1,2902 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
* sweetalert2 v8.17.1
|
3 |
+
* Released under the MIT License.
|
4 |
+
*/
|
5 |
+
(function (global, factory) {
|
6 |
+
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
7 |
+
typeof define === 'function' && define.amd ? define(factory) :
|
8 |
+
(global.Sweetalert2 = factory());
|
9 |
+
}(this, (function () { 'use strict';
|
10 |
+
|
11 |
+
function _typeof(obj) {
|
12 |
+
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
13 |
+
_typeof = function (obj) {
|
14 |
+
return typeof obj;
|
15 |
+
};
|
16 |
+
} else {
|
17 |
+
_typeof = function (obj) {
|
18 |
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
19 |
+
};
|
20 |
+
}
|
21 |
+
|
22 |
+
return _typeof(obj);
|
23 |
+
}
|
24 |
+
|
25 |
+
function _classCallCheck(instance, Constructor) {
|
26 |
+
if (!(instance instanceof Constructor)) {
|
27 |
+
throw new TypeError("Cannot call a class as a function");
|
28 |
+
}
|
29 |
+
}
|
30 |
+
|
31 |
+
function _defineProperties(target, props) {
|
32 |
+
for (var i = 0; i < props.length; i++) {
|
33 |
+
var descriptor = props[i];
|
34 |
+
descriptor.enumerable = descriptor.enumerable || false;
|
35 |
+
descriptor.configurable = true;
|
36 |
+
if ("value" in descriptor) descriptor.writable = true;
|
37 |
+
Object.defineProperty(target, descriptor.key, descriptor);
|
38 |
+
}
|
39 |
+
}
|
40 |
+
|
41 |
+
function _createClass(Constructor, protoProps, staticProps) {
|
42 |
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
43 |
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
44 |
+
return Constructor;
|
45 |
+
}
|
46 |
+
|
47 |
+
function _extends() {
|
48 |
+
_extends = Object.assign || function (target) {
|
49 |
+
for (var i = 1; i < arguments.length; i++) {
|
50 |
+
var source = arguments[i];
|
51 |
+
|
52 |
+
for (var key in source) {
|
53 |
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
54 |
+
target[key] = source[key];
|
55 |
+
}
|
56 |
+
}
|
57 |
+
}
|
58 |
+
|
59 |
+
return target;
|
60 |
+
};
|
61 |
+
|
62 |
+
return _extends.apply(this, arguments);
|
63 |
+
}
|
64 |
+
|
65 |
+
function _inherits(subClass, superClass) {
|
66 |
+
if (typeof superClass !== "function" && superClass !== null) {
|
67 |
+
throw new TypeError("Super expression must either be null or a function");
|
68 |
+
}
|
69 |
+
|
70 |
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
71 |
+
constructor: {
|
72 |
+
value: subClass,
|
73 |
+
writable: true,
|
74 |
+
configurable: true
|
75 |
+
}
|
76 |
+
});
|
77 |
+
if (superClass) _setPrototypeOf(subClass, superClass);
|
78 |
+
}
|
79 |
+
|
80 |
+
function _getPrototypeOf(o) {
|
81 |
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
82 |
+
return o.__proto__ || Object.getPrototypeOf(o);
|
83 |
+
};
|
84 |
+
return _getPrototypeOf(o);
|
85 |
+
}
|
86 |
+
|
87 |
+
function _setPrototypeOf(o, p) {
|
88 |
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
89 |
+
o.__proto__ = p;
|
90 |
+
return o;
|
91 |
+
};
|
92 |
+
|
93 |
+
return _setPrototypeOf(o, p);
|
94 |
+
}
|
95 |
+
|
96 |
+
function isNativeReflectConstruct() {
|
97 |
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
98 |
+
if (Reflect.construct.sham) return false;
|
99 |
+
if (typeof Proxy === "function") return true;
|
100 |
+
|
101 |
+
try {
|
102 |
+
Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));
|
103 |
+
return true;
|
104 |
+
} catch (e) {
|
105 |
+
return false;
|
106 |
+
}
|
107 |
+
}
|
108 |
+
|
109 |
+
function _construct(Parent, args, Class) {
|
110 |
+
if (isNativeReflectConstruct()) {
|
111 |
+
_construct = Reflect.construct;
|
112 |
+
} else {
|
113 |
+
_construct = function _construct(Parent, args, Class) {
|
114 |
+
var a = [null];
|
115 |
+
a.push.apply(a, args);
|
116 |
+
var Constructor = Function.bind.apply(Parent, a);
|
117 |
+
var instance = new Constructor();
|
118 |
+
if (Class) _setPrototypeOf(instance, Class.prototype);
|
119 |
+
return instance;
|
120 |
+
};
|
121 |
+
}
|
122 |
+
|
123 |
+
return _construct.apply(null, arguments);
|
124 |
+
}
|
125 |
+
|
126 |
+
function _assertThisInitialized(self) {
|
127 |
+
if (self === void 0) {
|
128 |
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
129 |
+
}
|
130 |
+
|
131 |
+
return self;
|
132 |
+
}
|
133 |
+
|
134 |
+
function _possibleConstructorReturn(self, call) {
|
135 |
+
if (call && (typeof call === "object" || typeof call === "function")) {
|
136 |
+
return call;
|
137 |
+
}
|
138 |
+
|
139 |
+
return _assertThisInitialized(self);
|
140 |
+
}
|
141 |
+
|
142 |
+
function _superPropBase(object, property) {
|
143 |
+
while (!Object.prototype.hasOwnProperty.call(object, property)) {
|
144 |
+
object = _getPrototypeOf(object);
|
145 |
+
if (object === null) break;
|
146 |
+
}
|
147 |
+
|
148 |
+
return object;
|
149 |
+
}
|
150 |
+
|
151 |
+
function _get(target, property, receiver) {
|
152 |
+
if (typeof Reflect !== "undefined" && Reflect.get) {
|
153 |
+
_get = Reflect.get;
|
154 |
+
} else {
|
155 |
+
_get = function _get(target, property, receiver) {
|
156 |
+
var base = _superPropBase(target, property);
|
157 |
+
|
158 |
+
if (!base) return;
|
159 |
+
var desc = Object.getOwnPropertyDescriptor(base, property);
|
160 |
+
|
161 |
+
if (desc.get) {
|
162 |
+
return desc.get.call(receiver);
|
163 |
+
}
|
164 |
+
|
165 |
+
return desc.value;
|
166 |
+
};
|
167 |
+
}
|
168 |
+
|
169 |
+
return _get(target, property, receiver || target);
|
170 |
+
}
|
171 |
+
|
172 |
+
var consolePrefix = 'SweetAlert2:';
|
173 |
+
/**
|
174 |
+
* Filter the unique values into a new array
|
175 |
+
* @param arr
|
176 |
+
*/
|
177 |
+
|
178 |
+
var uniqueArray = function uniqueArray(arr) {
|
179 |
+
var result = [];
|
180 |
+
|
181 |
+
for (var i = 0; i < arr.length; i++) {
|
182 |
+
if (result.indexOf(arr[i]) === -1) {
|
183 |
+
result.push(arr[i]);
|
184 |
+
}
|
185 |
+
}
|
186 |
+
|
187 |
+
return result;
|
188 |
+
};
|
189 |
+
/**
|
190 |
+
* Returns the array ob object values (Object.values isn't supported in IE11)
|
191 |
+
* @param obj
|
192 |
+
*/
|
193 |
+
|
194 |
+
var objectValues = function objectValues(obj) {
|
195 |
+
return Object.keys(obj).map(function (key) {
|
196 |
+
return obj[key];
|
197 |
+
});
|
198 |
+
};
|
199 |
+
/**
|
200 |
+
* Convert NodeList to Array
|
201 |
+
* @param nodeList
|
202 |
+
*/
|
203 |
+
|
204 |
+
var toArray = function toArray(nodeList) {
|
205 |
+
return Array.prototype.slice.call(nodeList);
|
206 |
+
};
|
207 |
+
/**
|
208 |
+
* Standardise console warnings
|
209 |
+
* @param message
|
210 |
+
*/
|
211 |
+
|
212 |
+
var warn = function warn(message) {
|
213 |
+
console.warn("".concat(consolePrefix, " ").concat(message));
|
214 |
+
};
|
215 |
+
/**
|
216 |
+
* Standardise console errors
|
217 |
+
* @param message
|
218 |
+
*/
|
219 |
+
|
220 |
+
var error = function error(message) {
|
221 |
+
console.error("".concat(consolePrefix, " ").concat(message));
|
222 |
+
};
|
223 |
+
/**
|
224 |
+
* Private global state for `warnOnce`
|
225 |
+
* @type {Array}
|
226 |
+
* @private
|
227 |
+
*/
|
228 |
+
|
229 |
+
var previousWarnOnceMessages = [];
|
230 |
+
/**
|
231 |
+
* Show a console warning, but only if it hasn't already been shown
|
232 |
+
* @param message
|
233 |
+
*/
|
234 |
+
|
235 |
+
var warnOnce = function warnOnce(message) {
|
236 |
+
if (!(previousWarnOnceMessages.indexOf(message) !== -1)) {
|
237 |
+
previousWarnOnceMessages.push(message);
|
238 |
+
warn(message);
|
239 |
+
}
|
240 |
+
};
|
241 |
+
/**
|
242 |
+
* Show a one-time console warning about deprecated params/methods
|
243 |
+
*/
|
244 |
+
|
245 |
+
var warnAboutDepreation = function warnAboutDepreation(deprecatedParam, useInstead) {
|
246 |
+
warnOnce("\"".concat(deprecatedParam, "\" is deprecated and will be removed in the next major release. Please use \"").concat(useInstead, "\" instead."));
|
247 |
+
};
|
248 |
+
/**
|
249 |
+
* If `arg` is a function, call it (with no arguments or context) and return the result.
|
250 |
+
* Otherwise, just pass the value through
|
251 |
+
* @param arg
|
252 |
+
*/
|
253 |
+
|
254 |
+
var callIfFunction = function callIfFunction(arg) {
|
255 |
+
return typeof arg === 'function' ? arg() : arg;
|
256 |
+
};
|
257 |
+
var isPromise = function isPromise(arg) {
|
258 |
+
return arg && Promise.resolve(arg) === arg;
|
259 |
+
};
|
260 |
+
|
261 |
+
var DismissReason = Object.freeze({
|
262 |
+
cancel: 'cancel',
|
263 |
+
backdrop: 'backdrop',
|
264 |
+
close: 'close',
|
265 |
+
esc: 'esc',
|
266 |
+
timer: 'timer'
|
267 |
+
});
|
268 |
+
|
269 |
+
var argsToParams = function argsToParams(args) {
|
270 |
+
var params = {};
|
271 |
+
|
272 |
+
switch (_typeof(args[0])) {
|
273 |
+
case 'object':
|
274 |
+
_extends(params, args[0]);
|
275 |
+
|
276 |
+
break;
|
277 |
+
|
278 |
+
default:
|
279 |
+
['title', 'html', 'type'].forEach(function (name, index) {
|
280 |
+
switch (_typeof(args[index])) {
|
281 |
+
case 'string':
|
282 |
+
params[name] = args[index];
|
283 |
+
break;
|
284 |
+
|
285 |
+
case 'undefined':
|
286 |
+
break;
|
287 |
+
|
288 |
+
default:
|
289 |
+
error("Unexpected type of ".concat(name, "! Expected \"string\", got ").concat(_typeof(args[index])));
|
290 |
+
}
|
291 |
+
});
|
292 |
+
}
|
293 |
+
|
294 |
+
return params;
|
295 |
+
};
|
296 |
+
|
297 |
+
var swalPrefix = 'swal2-';
|
298 |
+
var prefix = function prefix(items) {
|
299 |
+
var result = {};
|
300 |
+
|
301 |
+
for (var i in items) {
|
302 |
+
result[items[i]] = swalPrefix + items[i];
|
303 |
+
}
|
304 |
+
|
305 |
+
return result;
|
306 |
+
};
|
307 |
+
var swalClasses = prefix(['container', 'shown', 'height-auto', 'iosfix', 'popup', 'modal', 'no-backdrop', 'toast', 'toast-shown', 'toast-column', 'fade', 'show', 'hide', 'noanimation', 'close', 'title', 'header', 'content', 'actions', 'confirm', 'cancel', 'footer', 'icon', 'image', 'input', 'file', 'range', 'select', 'radio', 'checkbox', 'label', 'textarea', 'inputerror', 'validation-message', 'progress-steps', 'active-progress-step', 'progress-step', 'progress-step-line', 'loading', 'styled', 'top', 'top-start', 'top-end', 'top-left', 'top-right', 'center', 'center-start', 'center-end', 'center-left', 'center-right', 'bottom', 'bottom-start', 'bottom-end', 'bottom-left', 'bottom-right', 'grow-row', 'grow-column', 'grow-fullscreen', 'rtl']);
|
308 |
+
var iconTypes = prefix(['success', 'warning', 'info', 'question', 'error']);
|
309 |
+
|
310 |
+
var states = {
|
311 |
+
previousBodyPadding: null
|
312 |
+
};
|
313 |
+
var hasClass = function hasClass(elem, className) {
|
314 |
+
return elem.classList.contains(className);
|
315 |
+
};
|
316 |
+
var applyCustomClass = function applyCustomClass(elem, customClass, className) {
|
317 |
+
// Clean up previous custom classes
|
318 |
+
toArray(elem.classList).forEach(function (className) {
|
319 |
+
if (!(objectValues(swalClasses).indexOf(className) !== -1) && !(objectValues(iconTypes).indexOf(className) !== -1)) {
|
320 |
+
elem.classList.remove(className);
|
321 |
+
}
|
322 |
+
});
|
323 |
+
|
324 |
+
if (customClass && customClass[className]) {
|
325 |
+
addClass(elem, customClass[className]);
|
326 |
+
}
|
327 |
+
};
|
328 |
+
function getInput(content, inputType) {
|
329 |
+
if (!inputType) {
|
330 |
+
return null;
|
331 |
+
}
|
332 |
+
|
333 |
+
switch (inputType) {
|
334 |
+
case 'select':
|
335 |
+
case 'textarea':
|
336 |
+
case 'file':
|
337 |
+
return getChildByClass(content, swalClasses[inputType]);
|
338 |
+
|
339 |
+
case 'checkbox':
|
340 |
+
return content.querySelector(".".concat(swalClasses.checkbox, " input"));
|
341 |
+
|
342 |
+
case 'radio':
|
343 |
+
return content.querySelector(".".concat(swalClasses.radio, " input:checked")) || content.querySelector(".".concat(swalClasses.radio, " input:first-child"));
|
344 |
+
|
345 |
+
case 'range':
|
346 |
+
return content.querySelector(".".concat(swalClasses.range, " input"));
|
347 |
+
|
348 |
+
default:
|
349 |
+
return getChildByClass(content, swalClasses.input);
|
350 |
+
}
|
351 |
+
}
|
352 |
+
var focusInput = function focusInput(input) {
|
353 |
+
input.focus(); // place cursor at end of text in text input
|
354 |
+
|
355 |
+
if (input.type !== 'file') {
|
356 |
+
// http://stackoverflow.com/a/2345915
|
357 |
+
var val = input.value;
|
358 |
+
input.value = '';
|
359 |
+
input.value = val;
|
360 |
+
}
|
361 |
+
};
|
362 |
+
var toggleClass = function toggleClass(target, classList, condition) {
|
363 |
+
if (!target || !classList) {
|
364 |
+
return;
|
365 |
+
}
|
366 |
+
|
367 |
+
if (typeof classList === 'string') {
|
368 |
+
classList = classList.split(/\s+/).filter(Boolean);
|
369 |
+
}
|
370 |
+
|
371 |
+
classList.forEach(function (className) {
|
372 |
+
if (target.forEach) {
|
373 |
+
target.forEach(function (elem) {
|
374 |
+
condition ? elem.classList.add(className) : elem.classList.remove(className);
|
375 |
+
});
|
376 |
+
} else {
|
377 |
+
condition ? target.classList.add(className) : target.classList.remove(className);
|
378 |
+
}
|
379 |
+
});
|
380 |
+
};
|
381 |
+
var addClass = function addClass(target, classList) {
|
382 |
+
toggleClass(target, classList, true);
|
383 |
+
};
|
384 |
+
var removeClass = function removeClass(target, classList) {
|
385 |
+
toggleClass(target, classList, false);
|
386 |
+
};
|
387 |
+
var getChildByClass = function getChildByClass(elem, className) {
|
388 |
+
for (var i = 0; i < elem.childNodes.length; i++) {
|
389 |
+
if (hasClass(elem.childNodes[i], className)) {
|
390 |
+
return elem.childNodes[i];
|
391 |
+
}
|
392 |
+
}
|
393 |
+
};
|
394 |
+
var applyNumericalStyle = function applyNumericalStyle(elem, property, value) {
|
395 |
+
if (value || parseInt(value) === 0) {
|
396 |
+
elem.style[property] = typeof value === 'number' ? value + 'px' : value;
|
397 |
+
} else {
|
398 |
+
elem.style.removeProperty(property);
|
399 |
+
}
|
400 |
+
};
|
401 |
+
var show = function show(elem) {
|
402 |
+
var display = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'flex';
|
403 |
+
elem.style.opacity = '';
|
404 |
+
elem.style.display = display;
|
405 |
+
};
|
406 |
+
var hide = function hide(elem) {
|
407 |
+
elem.style.opacity = '';
|
408 |
+
elem.style.display = 'none';
|
409 |
+
};
|
410 |
+
var toggle = function toggle(elem, condition, display) {
|
411 |
+
condition ? show(elem, display) : hide(elem);
|
412 |
+
}; // borrowed from jquery $(elem).is(':visible') implementation
|
413 |
+
|
414 |
+
var isVisible = function isVisible(elem) {
|
415 |
+
return !!(elem && (elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length));
|
416 |
+
};
|
417 |
+
var isScrollable = function isScrollable(elem) {
|
418 |
+
return !!(elem.scrollHeight > elem.clientHeight);
|
419 |
+
}; // borrowed from https://stackoverflow.com/a/46352119
|
420 |
+
|
421 |
+
var hasCssAnimation = function hasCssAnimation(elem) {
|
422 |
+
var style = window.getComputedStyle(elem);
|
423 |
+
var animDuration = parseFloat(style.getPropertyValue('animation-duration') || '0');
|
424 |
+
var transDuration = parseFloat(style.getPropertyValue('transition-duration') || '0');
|
425 |
+
return animDuration > 0 || transDuration > 0;
|
426 |
+
};
|
427 |
+
var contains = function contains(haystack, needle) {
|
428 |
+
if (typeof haystack.contains === 'function') {
|
429 |
+
return haystack.contains(needle);
|
430 |
+
}
|
431 |
+
};
|
432 |
+
|
433 |
+
var getContainer = function getContainer() {
|
434 |
+
return document.body.querySelector('.' + swalClasses.container);
|
435 |
+
};
|
436 |
+
var elementBySelector = function elementBySelector(selectorString) {
|
437 |
+
var container = getContainer();
|
438 |
+
return container ? container.querySelector(selectorString) : null;
|
439 |
+
};
|
440 |
+
|
441 |
+
var elementByClass = function elementByClass(className) {
|
442 |
+
return elementBySelector('.' + className);
|
443 |
+
};
|
444 |
+
|
445 |
+
var getPopup = function getPopup() {
|
446 |
+
return elementByClass(swalClasses.popup);
|
447 |
+
};
|
448 |
+
var getIcons = function getIcons() {
|
449 |
+
var popup = getPopup();
|
450 |
+
return toArray(popup.querySelectorAll('.' + swalClasses.icon));
|
451 |
+
};
|
452 |
+
var getIcon = function getIcon() {
|
453 |
+
var visibleIcon = getIcons().filter(function (icon) {
|
454 |
+
return isVisible(icon);
|
455 |
+
});
|
456 |
+
return visibleIcon.length ? visibleIcon[0] : null;
|
457 |
+
};
|
458 |
+
var getTitle = function getTitle() {
|
459 |
+
return elementByClass(swalClasses.title);
|
460 |
+
};
|
461 |
+
var getContent = function getContent() {
|
462 |
+
return elementByClass(swalClasses.content);
|
463 |
+
};
|
464 |
+
var getImage = function getImage() {
|
465 |
+
return elementByClass(swalClasses.image);
|
466 |
+
};
|
467 |
+
var getProgressSteps = function getProgressSteps() {
|
468 |
+
return elementByClass(swalClasses['progress-steps']);
|
469 |
+
};
|
470 |
+
var getValidationMessage = function getValidationMessage() {
|
471 |
+
return elementByClass(swalClasses['validation-message']);
|
472 |
+
};
|
473 |
+
var getConfirmButton = function getConfirmButton() {
|
474 |
+
return elementBySelector('.' + swalClasses.actions + ' .' + swalClasses.confirm);
|
475 |
+
};
|
476 |
+
var getCancelButton = function getCancelButton() {
|
477 |
+
return elementBySelector('.' + swalClasses.actions + ' .' + swalClasses.cancel);
|
478 |
+
};
|
479 |
+
var getActions = function getActions() {
|
480 |
+
return elementByClass(swalClasses.actions);
|
481 |
+
};
|
482 |
+
var getHeader = function getHeader() {
|
483 |
+
return elementByClass(swalClasses.header);
|
484 |
+
};
|
485 |
+
var getFooter = function getFooter() {
|
486 |
+
return elementByClass(swalClasses.footer);
|
487 |
+
};
|
488 |
+
var getCloseButton = function getCloseButton() {
|
489 |
+
return elementByClass(swalClasses.close);
|
490 |
+
}; // https://github.com/jkup/focusable/blob/master/index.js
|
491 |
+
|
492 |
+
var focusable = "\n a[href],\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n [tabindex=\"0\"],\n [contenteditable],\n audio[controls],\n video[controls],\n summary\n";
|
493 |
+
var getFocusableElements = function getFocusableElements() {
|
494 |
+
var focusableElementsWithTabindex = toArray(getPopup().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')) // sort according to tabindex
|
495 |
+
.sort(function (a, b) {
|
496 |
+
a = parseInt(a.getAttribute('tabindex'));
|
497 |
+
b = parseInt(b.getAttribute('tabindex'));
|
498 |
+
|
499 |
+
if (a > b) {
|
500 |
+
return 1;
|
501 |
+
} else if (a < b) {
|
502 |
+
return -1;
|
503 |
+
}
|
504 |
+
|
505 |
+
return 0;
|
506 |
+
});
|
507 |
+
var otherFocusableElements = toArray(getPopup().querySelectorAll(focusable)).filter(function (el) {
|
508 |
+
return el.getAttribute('tabindex') !== '-1';
|
509 |
+
});
|
510 |
+
return uniqueArray(focusableElementsWithTabindex.concat(otherFocusableElements)).filter(function (el) {
|
511 |
+
return isVisible(el);
|
512 |
+
});
|
513 |
+
};
|
514 |
+
var isModal = function isModal() {
|
515 |
+
return !isToast() && !document.body.classList.contains(swalClasses['no-backdrop']);
|
516 |
+
};
|
517 |
+
var isToast = function isToast() {
|
518 |
+
return document.body.classList.contains(swalClasses['toast-shown']);
|
519 |
+
};
|
520 |
+
var isLoading = function isLoading() {
|
521 |
+
return getPopup().hasAttribute('data-loading');
|
522 |
+
};
|
523 |
+
|
524 |
+
// Detect Node env
|
525 |
+
var isNodeEnv = function isNodeEnv() {
|
526 |
+
return typeof window === 'undefined' || typeof document === 'undefined';
|
527 |
+
};
|
528 |
+
|
529 |
+
var sweetHTML = "\n <div aria-labelledby=\"".concat(swalClasses.title, "\" aria-describedby=\"").concat(swalClasses.content, "\" class=\"").concat(swalClasses.popup, "\" tabindex=\"-1\">\n <div class=\"").concat(swalClasses.header, "\">\n <ul class=\"").concat(swalClasses['progress-steps'], "\"></ul>\n <div class=\"").concat(swalClasses.icon, " ").concat(iconTypes.error, "\">\n <span class=\"swal2-x-mark\"><span class=\"swal2-x-mark-line-left\"></span><span class=\"swal2-x-mark-line-right\"></span></span>\n </div>\n <div class=\"").concat(swalClasses.icon, " ").concat(iconTypes.question, "\"></div>\n <div class=\"").concat(swalClasses.icon, " ").concat(iconTypes.warning, "\"></div>\n <div class=\"").concat(swalClasses.icon, " ").concat(iconTypes.info, "\"></div>\n <div class=\"").concat(swalClasses.icon, " ").concat(iconTypes.success, "\">\n <div class=\"swal2-success-circular-line-left\"></div>\n <span class=\"swal2-success-line-tip\"></span> <span class=\"swal2-success-line-long\"></span>\n <div class=\"swal2-success-ring\"></div> <div class=\"swal2-success-fix\"></div>\n <div class=\"swal2-success-circular-line-right\"></div>\n </div>\n <img class=\"").concat(swalClasses.image, "\" />\n <h2 class=\"").concat(swalClasses.title, "\" id=\"").concat(swalClasses.title, "\"></h2>\n <button type=\"button\" class=\"").concat(swalClasses.close, "\"></button>\n </div>\n <div class=\"").concat(swalClasses.content, "\">\n <div id=\"").concat(swalClasses.content, "\"></div>\n <input class=\"").concat(swalClasses.input, "\" />\n <input type=\"file\" class=\"").concat(swalClasses.file, "\" />\n <div class=\"").concat(swalClasses.range, "\">\n <input type=\"range\" />\n <output></output>\n </div>\n <select class=\"").concat(swalClasses.select, "\"></select>\n <div class=\"").concat(swalClasses.radio, "\"></div>\n <label for=\"").concat(swalClasses.checkbox, "\" class=\"").concat(swalClasses.checkbox, "\">\n <input type=\"checkbox\" />\n <span class=\"").concat(swalClasses.label, "\"></span>\n </label>\n <textarea class=\"").concat(swalClasses.textarea, "\"></textarea>\n <div class=\"").concat(swalClasses['validation-message'], "\" id=\"").concat(swalClasses['validation-message'], "\"></div>\n </div>\n <div class=\"").concat(swalClasses.actions, "\">\n <button type=\"button\" class=\"").concat(swalClasses.confirm, "\">OK</button>\n <button type=\"button\" class=\"").concat(swalClasses.cancel, "\">Cancel</button>\n </div>\n <div class=\"").concat(swalClasses.footer, "\">\n </div>\n </div>\n").replace(/(^|\n)\s*/g, '');
|
530 |
+
|
531 |
+
var resetOldContainer = function resetOldContainer() {
|
532 |
+
var oldContainer = getContainer();
|
533 |
+
|
534 |
+
if (!oldContainer) {
|
535 |
+
return;
|
536 |
+
}
|
537 |
+
|
538 |
+
oldContainer.parentNode.removeChild(oldContainer);
|
539 |
+
removeClass([document.documentElement, document.body], [swalClasses['no-backdrop'], swalClasses['toast-shown'], swalClasses['has-column']]);
|
540 |
+
};
|
541 |
+
|
542 |
+
var oldInputVal; // IE11 workaround, see #1109 for details
|
543 |
+
|
544 |
+
var resetValidationMessage = function resetValidationMessage(e) {
|
545 |
+
if (Swal.isVisible() && oldInputVal !== e.target.value) {
|
546 |
+
Swal.resetValidationMessage();
|
547 |
+
}
|
548 |
+
|
549 |
+
oldInputVal = e.target.value;
|
550 |
+
};
|
551 |
+
|
552 |
+
var addInputChangeListeners = function addInputChangeListeners() {
|
553 |
+
var content = getContent();
|
554 |
+
var input = getChildByClass(content, swalClasses.input);
|
555 |
+
var file = getChildByClass(content, swalClasses.file);
|
556 |
+
var range = content.querySelector(".".concat(swalClasses.range, " input"));
|
557 |
+
var rangeOutput = content.querySelector(".".concat(swalClasses.range, " output"));
|
558 |
+
var select = getChildByClass(content, swalClasses.select);
|
559 |
+
var checkbox = content.querySelector(".".concat(swalClasses.checkbox, " input"));
|
560 |
+
var textarea = getChildByClass(content, swalClasses.textarea);
|
561 |
+
input.oninput = resetValidationMessage;
|
562 |
+
file.onchange = resetValidationMessage;
|
563 |
+
select.onchange = resetValidationMessage;
|
564 |
+
checkbox.onchange = resetValidationMessage;
|
565 |
+
textarea.oninput = resetValidationMessage;
|
566 |
+
|
567 |
+
range.oninput = function (e) {
|
568 |
+
resetValidationMessage(e);
|
569 |
+
rangeOutput.value = range.value;
|
570 |
+
};
|
571 |
+
|
572 |
+
range.onchange = function (e) {
|
573 |
+
resetValidationMessage(e);
|
574 |
+
range.nextSibling.value = range.value;
|
575 |
+
};
|
576 |
+
};
|
577 |
+
|
578 |
+
var getTarget = function getTarget(target) {
|
579 |
+
return typeof target === 'string' ? document.querySelector(target) : target;
|
580 |
+
};
|
581 |
+
|
582 |
+
var setupAccessibility = function setupAccessibility(params) {
|
583 |
+
var popup = getPopup();
|
584 |
+
popup.setAttribute('role', params.toast ? 'alert' : 'dialog');
|
585 |
+
popup.setAttribute('aria-live', params.toast ? 'polite' : 'assertive');
|
586 |
+
|
587 |
+
if (!params.toast) {
|
588 |
+
popup.setAttribute('aria-modal', 'true');
|
589 |
+
}
|
590 |
+
};
|
591 |
+
|
592 |
+
var setupRTL = function setupRTL(targetElement) {
|
593 |
+
if (window.getComputedStyle(targetElement).direction === 'rtl') {
|
594 |
+
addClass(getContainer(), swalClasses.rtl);
|
595 |
+
}
|
596 |
+
};
|
597 |
+
/*
|
598 |
+
* Add modal + backdrop to DOM
|
599 |
+
*/
|
600 |
+
|
601 |
+
|
602 |
+
var init = function init(params) {
|
603 |
+
// Clean up the old popup container if it exists
|
604 |
+
resetOldContainer();
|
605 |
+
/* istanbul ignore if */
|
606 |
+
|
607 |
+
if (isNodeEnv()) {
|
608 |
+
error('SweetAlert2 requires document to initialize');
|
609 |
+
return;
|
610 |
+
}
|
611 |
+
|
612 |
+
var container = document.createElement('div');
|
613 |
+
container.className = swalClasses.container;
|
614 |
+
container.innerHTML = sweetHTML;
|
615 |
+
var targetElement = getTarget(params.target);
|
616 |
+
targetElement.appendChild(container);
|
617 |
+
setupAccessibility(params);
|
618 |
+
setupRTL(targetElement);
|
619 |
+
addInputChangeListeners();
|
620 |
+
};
|
621 |
+
|
622 |
+
var parseHtmlToContainer = function parseHtmlToContainer(param, target) {
|
623 |
+
// DOM element
|
624 |
+
if (param instanceof HTMLElement) {
|
625 |
+
target.appendChild(param); // JQuery element(s)
|
626 |
+
} else if (_typeof(param) === 'object') {
|
627 |
+
handleJqueryElem(target, param); // Plain string
|
628 |
+
} else if (param) {
|
629 |
+
target.innerHTML = param;
|
630 |
+
}
|
631 |
+
};
|
632 |
+
|
633 |
+
var handleJqueryElem = function handleJqueryElem(target, elem) {
|
634 |
+
target.innerHTML = '';
|
635 |
+
|
636 |
+
if (0 in elem) {
|
637 |
+
for (var i = 0; i in elem; i++) {
|
638 |
+
target.appendChild(elem[i].cloneNode(true));
|
639 |
+
}
|
640 |
+
} else {
|
641 |
+
target.appendChild(elem.cloneNode(true));
|
642 |
+
}
|
643 |
+
};
|
644 |
+
|
645 |
+
var animationEndEvent = function () {
|
646 |
+
// Prevent run in Node env
|
647 |
+
|
648 |
+
/* istanbul ignore if */
|
649 |
+
if (isNodeEnv()) {
|
650 |
+
return false;
|
651 |
+
}
|
652 |
+
|
653 |
+
var testEl = document.createElement('div');
|
654 |
+
var transEndEventNames = {
|
655 |
+
WebkitAnimation: 'webkitAnimationEnd',
|
656 |
+
OAnimation: 'oAnimationEnd oanimationend',
|
657 |
+
animation: 'animationend'
|
658 |
+
};
|
659 |
+
|
660 |
+
for (var i in transEndEventNames) {
|
661 |
+
if (Object.prototype.hasOwnProperty.call(transEndEventNames, i) && typeof testEl.style[i] !== 'undefined') {
|
662 |
+
return transEndEventNames[i];
|
663 |
+
}
|
664 |
+
}
|
665 |
+
|
666 |
+
return false;
|
667 |
+
}();
|
668 |
+
|
669 |
+
// Measure width of scrollbar
|
670 |
+
// https://github.com/twbs/bootstrap/blob/master/js/modal.js#L279-L286
|
671 |
+
var measureScrollbar = function measureScrollbar() {
|
672 |
+
var supportsTouch = 'ontouchstart' in window || navigator.msMaxTouchPoints;
|
673 |
+
|
674 |
+
if (supportsTouch) {
|
675 |
+
return 0;
|
676 |
+
}
|
677 |
+
|
678 |
+
var scrollDiv = document.createElement('div');
|
679 |
+
scrollDiv.style.width = '50px';
|
680 |
+
scrollDiv.style.height = '50px';
|
681 |
+
scrollDiv.style.overflow = 'scroll';
|
682 |
+
document.body.appendChild(scrollDiv);
|
683 |
+
var scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth;
|
684 |
+
document.body.removeChild(scrollDiv);
|
685 |
+
return scrollbarWidth;
|
686 |
+
};
|
687 |
+
|
688 |
+
var renderActions = function renderActions(instance, params) {
|
689 |
+
var actions = getActions();
|
690 |
+
var confirmButton = getConfirmButton();
|
691 |
+
var cancelButton = getCancelButton(); // Actions (buttons) wrapper
|
692 |
+
|
693 |
+
if (!params.showConfirmButton && !params.showCancelButton) {
|
694 |
+
hide(actions);
|
695 |
+
} // Custom class
|
696 |
+
|
697 |
+
|
698 |
+
applyCustomClass(actions, params.customClass, 'actions'); // Render confirm button
|
699 |
+
|
700 |
+
renderButton(confirmButton, 'confirm', params); // render Cancel Button
|
701 |
+
|
702 |
+
renderButton(cancelButton, 'cancel', params);
|
703 |
+
|
704 |
+
if (params.buttonsStyling) {
|
705 |
+
handleButtonsStyling(confirmButton, cancelButton, params);
|
706 |
+
} else {
|
707 |
+
removeClass([confirmButton, cancelButton], swalClasses.styled);
|
708 |
+
confirmButton.style.backgroundColor = confirmButton.style.borderLeftColor = confirmButton.style.borderRightColor = '';
|
709 |
+
cancelButton.style.backgroundColor = cancelButton.style.borderLeftColor = cancelButton.style.borderRightColor = '';
|
710 |
+
}
|
711 |
+
|
712 |
+
if (params.reverseButtons) {
|
713 |
+
confirmButton.parentNode.insertBefore(cancelButton, confirmButton);
|
714 |
+
}
|
715 |
+
};
|
716 |
+
|
717 |
+
function handleButtonsStyling(confirmButton, cancelButton, params) {
|
718 |
+
addClass([confirmButton, cancelButton], swalClasses.styled); // Buttons background colors
|
719 |
+
|
720 |
+
if (params.confirmButtonColor) {
|
721 |
+
confirmButton.style.backgroundColor = params.confirmButtonColor;
|
722 |
+
}
|
723 |
+
|
724 |
+
if (params.cancelButtonColor) {
|
725 |
+
cancelButton.style.backgroundColor = params.cancelButtonColor;
|
726 |
+
} // Loading state
|
727 |
+
|
728 |
+
|
729 |
+
var confirmButtonBackgroundColor = window.getComputedStyle(confirmButton).getPropertyValue('background-color');
|
730 |
+
confirmButton.style.borderLeftColor = confirmButtonBackgroundColor;
|
731 |
+
confirmButton.style.borderRightColor = confirmButtonBackgroundColor;
|
732 |
+
}
|
733 |
+
|
734 |
+
function renderButton(button, buttonType, params) {
|
735 |
+
toggle(button, params['showC' + buttonType.substring(1) + 'Button'], 'inline-block');
|
736 |
+
button.innerHTML = params[buttonType + 'ButtonText']; // Set caption text
|
737 |
+
|
738 |
+
button.setAttribute('aria-label', params[buttonType + 'ButtonAriaLabel']); // ARIA label
|
739 |
+
// Add buttons custom classes
|
740 |
+
|
741 |
+
button.className = swalClasses[buttonType];
|
742 |
+
applyCustomClass(button, params.customClass, buttonType + 'Button');
|
743 |
+
addClass(button, params[buttonType + 'ButtonClass']);
|
744 |
+
}
|
745 |
+
|
746 |
+
function handleBackdropParam(container, backdrop) {
|
747 |
+
if (typeof backdrop === 'string') {
|
748 |
+
container.style.background = backdrop;
|
749 |
+
} else if (!backdrop) {
|
750 |
+
addClass([document.documentElement, document.body], swalClasses['no-backdrop']);
|
751 |
+
}
|
752 |
+
}
|
753 |
+
|
754 |
+
function handlePositionParam(container, position) {
|
755 |
+
if (position in swalClasses) {
|
756 |
+
addClass(container, swalClasses[position]);
|
757 |
+
} else {
|
758 |
+
warn('The "position" parameter is not valid, defaulting to "center"');
|
759 |
+
addClass(container, swalClasses.center);
|
760 |
+
}
|
761 |
+
}
|
762 |
+
|
763 |
+
function handleGrowParam(container, grow) {
|
764 |
+
if (grow && typeof grow === 'string') {
|
765 |
+
var growClass = 'grow-' + grow;
|
766 |
+
|
767 |
+
if (growClass in swalClasses) {
|
768 |
+
addClass(container, swalClasses[growClass]);
|
769 |
+
}
|
770 |
+
}
|
771 |
+
}
|
772 |
+
|
773 |
+
var renderContainer = function renderContainer(instance, params) {
|
774 |
+
var container = getContainer();
|
775 |
+
|
776 |
+
if (!container) {
|
777 |
+
return;
|
778 |
+
}
|
779 |
+
|
780 |
+
handleBackdropParam(container, params.backdrop);
|
781 |
+
|
782 |
+
if (!params.backdrop && params.allowOutsideClick) {
|
783 |
+
warn('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');
|
784 |
+
}
|
785 |
+
|
786 |
+
handlePositionParam(container, params.position);
|
787 |
+
handleGrowParam(container, params.grow); // Custom class
|
788 |
+
|
789 |
+
applyCustomClass(container, params.customClass, 'container');
|
790 |
+
|
791 |
+
if (params.customContainerClass) {
|
792 |
+
// @deprecated
|
793 |
+
addClass(container, params.customContainerClass);
|
794 |
+
}
|
795 |
+
};
|
796 |
+
|
797 |
+
/**
|
798 |
+
* This module containts `WeakMap`s for each effectively-"private property" that a `Swal` has.
|
799 |
+
* For example, to set the private property "foo" of `this` to "bar", you can `privateProps.foo.set(this, 'bar')`
|
800 |
+
* This is the approach that Babel will probably take to implement private methods/fields
|
801 |
+
* https://github.com/tc39/proposal-private-methods
|
802 |
+
* https://github.com/babel/babel/pull/7555
|
803 |
+
* Once we have the changes from that PR in Babel, and our core class fits reasonable in *one module*
|
804 |
+
* then we can use that language feature.
|
805 |
+
*/
|
806 |
+
var privateProps = {
|
807 |
+
promise: new WeakMap(),
|
808 |
+
innerParams: new WeakMap(),
|
809 |
+
domCache: new WeakMap()
|
810 |
+
};
|
811 |
+
|
812 |
+
var inputTypes = ['input', 'file', 'range', 'select', 'radio', 'checkbox', 'textarea'];
|
813 |
+
var renderInput = function renderInput(instance, params) {
|
814 |
+
var content = getContent();
|
815 |
+
var innerParams = privateProps.innerParams.get(instance);
|
816 |
+
var rerender = !innerParams || params.input !== innerParams.input;
|
817 |
+
inputTypes.forEach(function (inputType) {
|
818 |
+
var inputClass = swalClasses[inputType];
|
819 |
+
var inputContainer = getChildByClass(content, inputClass); // set attributes
|
820 |
+
|
821 |
+
setAttributes(inputType, params.inputAttributes); // set class
|
822 |
+
|
823 |
+
setClass(inputContainer, inputClass, params);
|
824 |
+
|
825 |
+
if (rerender) {
|
826 |
+
hide(inputContainer);
|
827 |
+
}
|
828 |
+
});
|
829 |
+
|
830 |
+
if (params.input && rerender) {
|
831 |
+
showInput(params);
|
832 |
+
}
|
833 |
+
};
|
834 |
+
|
835 |
+
var showInput = function showInput(params) {
|
836 |
+
if (!renderInputType[params.input]) {
|
837 |
+
return error("Unexpected type of input! Expected \"text\", \"email\", \"password\", \"number\", \"tel\", \"select\", \"radio\", \"checkbox\", \"textarea\", \"file\" or \"url\", got \"".concat(params.input, "\""));
|
838 |
+
}
|
839 |
+
|
840 |
+
var input = renderInputType[params.input](params);
|
841 |
+
show(input); // input autofocus
|
842 |
+
|
843 |
+
setTimeout(function () {
|
844 |
+
focusInput(input);
|
845 |
+
});
|
846 |
+
};
|
847 |
+
|
848 |
+
var removeAttributes = function removeAttributes(input) {
|
849 |
+
for (var i = 0; i < input.attributes.length; i++) {
|
850 |
+
var attrName = input.attributes[i].name;
|
851 |
+
|
852 |
+
if (!(['type', 'value', 'style'].indexOf(attrName) !== -1)) {
|
853 |
+
input.removeAttribute(attrName);
|
854 |
+
}
|
855 |
+
}
|
856 |
+
};
|
857 |
+
|
858 |
+
var setAttributes = function setAttributes(inputType, inputAttributes) {
|
859 |
+
var input = getInput(getContent(), inputType);
|
860 |
+
|
861 |
+
if (!input) {
|
862 |
+
return;
|
863 |
+
}
|
864 |
+
|
865 |
+
removeAttributes(input);
|
866 |
+
|
867 |
+
for (var attr in inputAttributes) {
|
868 |
+
// Do not set a placeholder for <input type="range">
|
869 |
+
// it'll crash Edge, #1298
|
870 |
+
if (inputType === 'range' && attr === 'placeholder') {
|
871 |
+
continue;
|
872 |
+
}
|
873 |
+
|
874 |
+
input.setAttribute(attr, inputAttributes[attr]);
|
875 |
+
}
|
876 |
+
};
|
877 |
+
|
878 |
+
var setClass = function setClass(inputContainer, inputClass, params) {
|
879 |
+
inputContainer.className = inputClass;
|
880 |
+
|
881 |
+
if (params.inputClass) {
|
882 |
+
addClass(inputContainer, params.inputClass);
|
883 |
+
}
|
884 |
+
|
885 |
+
if (params.customClass) {
|
886 |
+
addClass(inputContainer, params.customClass.input);
|
887 |
+
}
|
888 |
+
};
|
889 |
+
|
890 |
+
var setInputPlaceholder = function setInputPlaceholder(input, params) {
|
891 |
+
if (!input.placeholder || params.inputPlaceholder) {
|
892 |
+
input.placeholder = params.inputPlaceholder;
|
893 |
+
}
|
894 |
+
};
|
895 |
+
|
896 |
+
var renderInputType = {};
|
897 |
+
|
898 |
+
renderInputType.text = renderInputType.email = renderInputType.password = renderInputType.number = renderInputType.tel = renderInputType.url = function (params) {
|
899 |
+
var input = getChildByClass(getContent(), swalClasses.input);
|
900 |
+
|
901 |
+
if (typeof params.inputValue === 'string' || typeof params.inputValue === 'number') {
|
902 |
+
input.value = params.inputValue;
|
903 |
+
} else if (!isPromise(params.inputValue)) {
|
904 |
+
warn("Unexpected type of inputValue! Expected \"string\", \"number\" or \"Promise\", got \"".concat(_typeof(params.inputValue), "\""));
|
905 |
+
}
|
906 |
+
|
907 |
+
setInputPlaceholder(input, params);
|
908 |
+
input.type = params.input;
|
909 |
+
return input;
|
910 |
+
};
|
911 |
+
|
912 |
+
renderInputType.file = function (params) {
|
913 |
+
var input = getChildByClass(getContent(), swalClasses.file);
|
914 |
+
setInputPlaceholder(input, params);
|
915 |
+
input.type = params.input;
|
916 |
+
return input;
|
917 |
+
};
|
918 |
+
|
919 |
+
renderInputType.range = function (params) {
|
920 |
+
var range = getChildByClass(getContent(), swalClasses.range);
|
921 |
+
var rangeInput = range.querySelector('input');
|
922 |
+
var rangeOutput = range.querySelector('output');
|
923 |
+
rangeInput.value = params.inputValue;
|
924 |
+
rangeInput.type = params.input;
|
925 |
+
rangeOutput.value = params.inputValue;
|
926 |
+
return range;
|
927 |
+
};
|
928 |
+
|
929 |
+
renderInputType.select = function (params) {
|
930 |
+
var select = getChildByClass(getContent(), swalClasses.select);
|
931 |
+
select.innerHTML = '';
|
932 |
+
|
933 |
+
if (params.inputPlaceholder) {
|
934 |
+
var placeholder = document.createElement('option');
|
935 |
+
placeholder.innerHTML = params.inputPlaceholder;
|
936 |
+
placeholder.value = '';
|
937 |
+
placeholder.disabled = true;
|
938 |
+
placeholder.selected = true;
|
939 |
+
select.appendChild(placeholder);
|
940 |
+
}
|
941 |
+
|
942 |
+
return select;
|
943 |
+
};
|
944 |
+
|
945 |
+
renderInputType.radio = function () {
|
946 |
+
var radio = getChildByClass(getContent(), swalClasses.radio);
|
947 |
+
radio.innerHTML = '';
|
948 |
+
return radio;
|
949 |
+
};
|
950 |
+
|
951 |
+
renderInputType.checkbox = function (params) {
|
952 |
+
var checkbox = getChildByClass(getContent(), swalClasses.checkbox);
|
953 |
+
var checkboxInput = getInput(getContent(), 'checkbox');
|
954 |
+
checkboxInput.type = 'checkbox';
|
955 |
+
checkboxInput.value = 1;
|
956 |
+
checkboxInput.id = swalClasses.checkbox;
|
957 |
+
checkboxInput.checked = Boolean(params.inputValue);
|
958 |
+
var label = checkbox.querySelector('span');
|
959 |
+
label.innerHTML = params.inputPlaceholder;
|
960 |
+
return checkbox;
|
961 |
+
};
|
962 |
+
|
963 |
+
renderInputType.textarea = function (params) {
|
964 |
+
var textarea = getChildByClass(getContent(), swalClasses.textarea);
|
965 |
+
textarea.value = params.inputValue;
|
966 |
+
setInputPlaceholder(textarea, params);
|
967 |
+
|
968 |
+
if ('MutationObserver' in window) {
|
969 |
+
// #1699
|
970 |
+
var initialPopupWidth = parseInt(window.getComputedStyle(getPopup()).width);
|
971 |
+
var popupPadding = parseInt(window.getComputedStyle(getPopup()).paddingLeft) + parseInt(window.getComputedStyle(getPopup()).paddingRight);
|
972 |
+
|
973 |
+
var outputsize = function outputsize() {
|
974 |
+
var contentWidth = textarea.offsetWidth + popupPadding;
|
975 |
+
|
976 |
+
if (contentWidth > initialPopupWidth) {
|
977 |
+
getPopup().style.width = contentWidth + 'px';
|
978 |
+
} else {
|
979 |
+
getPopup().style.width = null;
|
980 |
+
}
|
981 |
+
};
|
982 |
+
|
983 |
+
new MutationObserver(outputsize).observe(textarea, {
|
984 |
+
attributes: true,
|
985 |
+
attributeFilter: ['style']
|
986 |
+
});
|
987 |
+
}
|
988 |
+
|
989 |
+
return textarea;
|
990 |
+
};
|
991 |
+
|
992 |
+
var renderContent = function renderContent(instance, params) {
|
993 |
+
var content = getContent().querySelector('#' + swalClasses.content); // Content as HTML
|
994 |
+
|
995 |
+
if (params.html) {
|
996 |
+
parseHtmlToContainer(params.html, content);
|
997 |
+
show(content, 'block'); // Content as plain text
|
998 |
+
} else if (params.text) {
|
999 |
+
content.textContent = params.text;
|
1000 |
+
show(content, 'block'); // No content
|
1001 |
+
} else {
|
1002 |
+
hide(content);
|
1003 |
+
}
|
1004 |
+
|
1005 |
+
renderInput(instance, params); // Custom class
|
1006 |
+
|
1007 |
+
applyCustomClass(getContent(), params.customClass, 'content');
|
1008 |
+
};
|
1009 |
+
|
1010 |
+
var renderFooter = function renderFooter(instance, params) {
|
1011 |
+
var footer = getFooter();
|
1012 |
+
toggle(footer, params.footer);
|
1013 |
+
|
1014 |
+
if (params.footer) {
|
1015 |
+
parseHtmlToContainer(params.footer, footer);
|
1016 |
+
} // Custom class
|
1017 |
+
|
1018 |
+
|
1019 |
+
applyCustomClass(footer, params.customClass, 'footer');
|
1020 |
+
};
|
1021 |
+
|
1022 |
+
var renderCloseButton = function renderCloseButton(instance, params) {
|
1023 |
+
var closeButton = getCloseButton();
|
1024 |
+
closeButton.innerHTML = params.closeButtonHtml; // Custom class
|
1025 |
+
|
1026 |
+
applyCustomClass(closeButton, params.customClass, 'closeButton');
|
1027 |
+
toggle(closeButton, params.showCloseButton);
|
1028 |
+
closeButton.setAttribute('aria-label', params.closeButtonAriaLabel);
|
1029 |
+
};
|
1030 |
+
|
1031 |
+
var renderIcon = function renderIcon(instance, params) {
|
1032 |
+
var innerParams = privateProps.innerParams.get(instance); // if the icon with the given type already rendered,
|
1033 |
+
// apply the custom class without re-rendering the icon
|
1034 |
+
|
1035 |
+
if (innerParams && params.type === innerParams.type && getIcon()) {
|
1036 |
+
applyCustomClass(getIcon(), params.customClass, 'icon');
|
1037 |
+
return;
|
1038 |
+
}
|
1039 |
+
|
1040 |
+
hideAllIcons();
|
1041 |
+
|
1042 |
+
if (!params.type) {
|
1043 |
+
return;
|
1044 |
+
}
|
1045 |
+
|
1046 |
+
adjustSuccessIconBackgoundColor();
|
1047 |
+
|
1048 |
+
if (Object.keys(iconTypes).indexOf(params.type) !== -1) {
|
1049 |
+
var icon = elementBySelector(".".concat(swalClasses.icon, ".").concat(iconTypes[params.type]));
|
1050 |
+
show(icon); // Custom class
|
1051 |
+
|
1052 |
+
applyCustomClass(icon, params.customClass, 'icon'); // Animate icon
|
1053 |
+
|
1054 |
+
toggleClass(icon, "swal2-animate-".concat(params.type, "-icon"), params.animation);
|
1055 |
+
} else {
|
1056 |
+
error("Unknown type! Expected \"success\", \"error\", \"warning\", \"info\" or \"question\", got \"".concat(params.type, "\""));
|
1057 |
+
}
|
1058 |
+
};
|
1059 |
+
|
1060 |
+
var hideAllIcons = function hideAllIcons() {
|
1061 |
+
var icons = getIcons();
|
1062 |
+
|
1063 |
+
for (var i = 0; i < icons.length; i++) {
|
1064 |
+
hide(icons[i]);
|
1065 |
+
}
|
1066 |
+
}; // Adjust success icon background color to match the popup background color
|
1067 |
+
|
1068 |
+
|
1069 |
+
var adjustSuccessIconBackgoundColor = function adjustSuccessIconBackgoundColor() {
|
1070 |
+
var popup = getPopup();
|
1071 |
+
var popupBackgroundColor = window.getComputedStyle(popup).getPropertyValue('background-color');
|
1072 |
+
var successIconParts = popup.querySelectorAll('[class^=swal2-success-circular-line], .swal2-success-fix');
|
1073 |
+
|
1074 |
+
for (var i = 0; i < successIconParts.length; i++) {
|
1075 |
+
successIconParts[i].style.backgroundColor = popupBackgroundColor;
|
1076 |
+
}
|
1077 |
+
};
|
1078 |
+
|
1079 |
+
var renderImage = function renderImage(instance, params) {
|
1080 |
+
var image = getImage();
|
1081 |
+
|
1082 |
+
if (!params.imageUrl) {
|
1083 |
+
return hide(image);
|
1084 |
+
}
|
1085 |
+
|
1086 |
+
show(image); // Src, alt
|
1087 |
+
|
1088 |
+
image.setAttribute('src', params.imageUrl);
|
1089 |
+
image.setAttribute('alt', params.imageAlt); // Width, height
|
1090 |
+
|
1091 |
+
applyNumericalStyle(image, 'width', params.imageWidth);
|
1092 |
+
applyNumericalStyle(image, 'height', params.imageHeight); // Class
|
1093 |
+
|
1094 |
+
image.className = swalClasses.image;
|
1095 |
+
applyCustomClass(image, params.customClass, 'image');
|
1096 |
+
|
1097 |
+
if (params.imageClass) {
|
1098 |
+
addClass(image, params.imageClass);
|
1099 |
+
}
|
1100 |
+
};
|
1101 |
+
|
1102 |
+
var createStepElement = function createStepElement(step) {
|
1103 |
+
var stepEl = document.createElement('li');
|
1104 |
+
addClass(stepEl, swalClasses['progress-step']);
|
1105 |
+
stepEl.innerHTML = step;
|
1106 |
+
return stepEl;
|
1107 |
+
};
|
1108 |
+
|
1109 |
+
var createLineElement = function createLineElement(params) {
|
1110 |
+
var lineEl = document.createElement('li');
|
1111 |
+
addClass(lineEl, swalClasses['progress-step-line']);
|
1112 |
+
|
1113 |
+
if (params.progressStepsDistance) {
|
1114 |
+
lineEl.style.width = params.progressStepsDistance;
|
1115 |
+
}
|
1116 |
+
|
1117 |
+
return lineEl;
|
1118 |
+
};
|
1119 |
+
|
1120 |
+
var renderProgressSteps = function renderProgressSteps(instance, params) {
|
1121 |
+
var progressStepsContainer = getProgressSteps();
|
1122 |
+
|
1123 |
+
if (!params.progressSteps || params.progressSteps.length === 0) {
|
1124 |
+
return hide(progressStepsContainer);
|
1125 |
+
}
|
1126 |
+
|
1127 |
+
show(progressStepsContainer);
|
1128 |
+
progressStepsContainer.innerHTML = '';
|
1129 |
+
var currentProgressStep = parseInt(params.currentProgressStep === null ? Swal.getQueueStep() : params.currentProgressStep);
|
1130 |
+
|
1131 |
+
if (currentProgressStep >= params.progressSteps.length) {
|
1132 |
+
warn('Invalid currentProgressStep parameter, it should be less than progressSteps.length ' + '(currentProgressStep like JS arrays starts from 0)');
|
1133 |
+
}
|
1134 |
+
|
1135 |
+
params.progressSteps.forEach(function (step, index) {
|
1136 |
+
var stepEl = createStepElement(step);
|
1137 |
+
progressStepsContainer.appendChild(stepEl);
|
1138 |
+
|
1139 |
+
if (index === currentProgressStep) {
|
1140 |
+
addClass(stepEl, swalClasses['active-progress-step']);
|
1141 |
+
}
|
1142 |
+
|
1143 |
+
if (index !== params.progressSteps.length - 1) {
|
1144 |
+
var lineEl = createLineElement(step);
|
1145 |
+
progressStepsContainer.appendChild(lineEl);
|
1146 |
+
}
|
1147 |
+
});
|
1148 |
+
};
|
1149 |
+
|
1150 |
+
var renderTitle = function renderTitle(instance, params) {
|
1151 |
+
var title = getTitle();
|
1152 |
+
toggle(title, params.title || params.titleText);
|
1153 |
+
|
1154 |
+
if (params.title) {
|
1155 |
+
parseHtmlToContainer(params.title, title);
|
1156 |
+
}
|
1157 |
+
|
1158 |
+
if (params.titleText) {
|
1159 |
+
title.innerText = params.titleText;
|
1160 |
+
} // Custom class
|
1161 |
+
|
1162 |
+
|
1163 |
+
applyCustomClass(title, params.customClass, 'title');
|
1164 |
+
};
|
1165 |
+
|
1166 |
+
var renderHeader = function renderHeader(instance, params) {
|
1167 |
+
var header = getHeader(); // Custom class
|
1168 |
+
|
1169 |
+
applyCustomClass(header, params.customClass, 'header'); // Progress steps
|
1170 |
+
|
1171 |
+
renderProgressSteps(instance, params); // Icon
|
1172 |
+
|
1173 |
+
renderIcon(instance, params); // Image
|
1174 |
+
|
1175 |
+
renderImage(instance, params); // Title
|
1176 |
+
|
1177 |
+
renderTitle(instance, params); // Close button
|
1178 |
+
|
1179 |
+
renderCloseButton(instance, params);
|
1180 |
+
};
|
1181 |
+
|
1182 |
+
var renderPopup = function renderPopup(instance, params) {
|
1183 |
+
var popup = getPopup(); // Width
|
1184 |
+
|
1185 |
+
applyNumericalStyle(popup, 'width', params.width); // Padding
|
1186 |
+
|
1187 |
+
applyNumericalStyle(popup, 'padding', params.padding); // Background
|
1188 |
+
|
1189 |
+
if (params.background) {
|
1190 |
+
popup.style.background = params.background;
|
1191 |
+
} // Default Class
|
1192 |
+
|
1193 |
+
|
1194 |
+
popup.className = swalClasses.popup;
|
1195 |
+
|
1196 |
+
if (params.toast) {
|
1197 |
+
addClass([document.documentElement, document.body], swalClasses['toast-shown']);
|
1198 |
+
addClass(popup, swalClasses.toast);
|
1199 |
+
} else {
|
1200 |
+
addClass(popup, swalClasses.modal);
|
1201 |
+
} // Custom class
|
1202 |
+
|
1203 |
+
|
1204 |
+
applyCustomClass(popup, params.customClass, 'popup');
|
1205 |
+
|
1206 |
+
if (typeof params.customClass === 'string') {
|
1207 |
+
addClass(popup, params.customClass);
|
1208 |
+
} // CSS animation
|
1209 |
+
|
1210 |
+
|
1211 |
+
toggleClass(popup, swalClasses.noanimation, !params.animation);
|
1212 |
+
};
|
1213 |
+
|
1214 |
+
var render = function render(instance, params) {
|
1215 |
+
renderPopup(instance, params);
|
1216 |
+
renderContainer(instance, params);
|
1217 |
+
renderHeader(instance, params);
|
1218 |
+
renderContent(instance, params);
|
1219 |
+
renderActions(instance, params);
|
1220 |
+
renderFooter(instance, params);
|
1221 |
+
|
1222 |
+
if (typeof params.onRender === 'function') {
|
1223 |
+
params.onRender(getPopup());
|
1224 |
+
}
|
1225 |
+
};
|
1226 |
+
|
1227 |
+
/*
|
1228 |
+
* Global function to determine if SweetAlert2 popup is shown
|
1229 |
+
*/
|
1230 |
+
|
1231 |
+
var isVisible$1 = function isVisible$$1() {
|
1232 |
+
return isVisible(getPopup());
|
1233 |
+
};
|
1234 |
+
/*
|
1235 |
+
* Global function to click 'Confirm' button
|
1236 |
+
*/
|
1237 |
+
|
1238 |
+
var clickConfirm = function clickConfirm() {
|
1239 |
+
return getConfirmButton() && getConfirmButton().click();
|
1240 |
+
};
|
1241 |
+
/*
|
1242 |
+
* Global function to click 'Cancel' button
|
1243 |
+
*/
|
1244 |
+
|
1245 |
+
var clickCancel = function clickCancel() {
|
1246 |
+
return getCancelButton() && getCancelButton().click();
|
1247 |
+
};
|
1248 |
+
|
1249 |
+
function fire() {
|
1250 |
+
var Swal = this;
|
1251 |
+
|
1252 |
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
1253 |
+
args[_key] = arguments[_key];
|
1254 |
+
}
|
1255 |
+
|
1256 |
+
return _construct(Swal, args);
|
1257 |
+
}
|
1258 |
+
|
1259 |
+
/**
|
1260 |
+
* Returns an extended version of `Swal` containing `params` as defaults.
|
1261 |
+
* Useful for reusing Swal configuration.
|
1262 |
+
*
|
1263 |
+
* For example:
|
1264 |
+
*
|
1265 |
+
* Before:
|
1266 |
+
* const textPromptOptions = { input: 'text', showCancelButton: true }
|
1267 |
+
* const {value: firstName} = await Swal.fire({ ...textPromptOptions, title: 'What is your first name?' })
|
1268 |
+
* const {value: lastName} = await Swal.fire({ ...textPromptOptions, title: 'What is your last name?' })
|
1269 |
+
*
|
1270 |
+
* After:
|
1271 |
+
* const TextPrompt = Swal.mixin({ input: 'text', showCancelButton: true })
|
1272 |
+
* const {value: firstName} = await TextPrompt('What is your first name?')
|
1273 |
+
* const {value: lastName} = await TextPrompt('What is your last name?')
|
1274 |
+
*
|
1275 |
+
* @param mixinParams
|
1276 |
+
*/
|
1277 |
+
function mixin(mixinParams) {
|
1278 |
+
var MixinSwal =
|
1279 |
+
/*#__PURE__*/
|
1280 |
+
function (_this) {
|
1281 |
+
_inherits(MixinSwal, _this);
|
1282 |
+
|
1283 |
+
function MixinSwal() {
|
1284 |
+
_classCallCheck(this, MixinSwal);
|
1285 |
+
|
1286 |
+
return _possibleConstructorReturn(this, _getPrototypeOf(MixinSwal).apply(this, arguments));
|
1287 |
+
}
|
1288 |
+
|
1289 |
+
_createClass(MixinSwal, [{
|
1290 |
+
key: "_main",
|
1291 |
+
value: function _main(params) {
|
1292 |
+
return _get(_getPrototypeOf(MixinSwal.prototype), "_main", this).call(this, _extends({}, mixinParams, params));
|
1293 |
+
}
|
1294 |
+
}]);
|
1295 |
+
|
1296 |
+
return MixinSwal;
|
1297 |
+
}(this);
|
1298 |
+
|
1299 |
+
return MixinSwal;
|
1300 |
+
}
|
1301 |
+
|
1302 |
+
// private global state for the queue feature
|
1303 |
+
var currentSteps = [];
|
1304 |
+
/*
|
1305 |
+
* Global function for chaining sweetAlert popups
|
1306 |
+
*/
|
1307 |
+
|
1308 |
+
var queue = function queue(steps) {
|
1309 |
+
var Swal = this;
|
1310 |
+
currentSteps = steps;
|
1311 |
+
|
1312 |
+
var resetAndResolve = function resetAndResolve(resolve, value) {
|
1313 |
+
currentSteps = [];
|
1314 |
+
document.body.removeAttribute('data-swal2-queue-step');
|
1315 |
+
resolve(value);
|
1316 |
+
};
|
1317 |
+
|
1318 |
+
var queueResult = [];
|
1319 |
+
return new Promise(function (resolve) {
|
1320 |
+
(function step(i, callback) {
|
1321 |
+
if (i < currentSteps.length) {
|
1322 |
+
document.body.setAttribute('data-swal2-queue-step', i);
|
1323 |
+
Swal.fire(currentSteps[i]).then(function (result) {
|
1324 |
+
if (typeof result.value !== 'undefined') {
|
1325 |
+
queueResult.push(result.value);
|
1326 |
+
step(i + 1, callback);
|
1327 |
+
} else {
|
1328 |
+
resetAndResolve(resolve, {
|
1329 |
+
dismiss: result.dismiss
|
1330 |
+
});
|
1331 |
+
}
|
1332 |
+
});
|
1333 |
+
} else {
|
1334 |
+
resetAndResolve(resolve, {
|
1335 |
+
value: queueResult
|
1336 |
+
});
|
1337 |
+
}
|
1338 |
+
})(0);
|
1339 |
+
});
|
1340 |
+
};
|
1341 |
+
/*
|
1342 |
+
* Global function for getting the index of current popup in queue
|
1343 |
+
*/
|
1344 |
+
|
1345 |
+
var getQueueStep = function getQueueStep() {
|
1346 |
+
return document.body.getAttribute('data-swal2-queue-step');
|
1347 |
+
};
|
1348 |
+
/*
|
1349 |
+
* Global function for inserting a popup to the queue
|
1350 |
+
*/
|
1351 |
+
|
1352 |
+
var insertQueueStep = function insertQueueStep(step, index) {
|
1353 |
+
if (index && index < currentSteps.length) {
|
1354 |
+
return currentSteps.splice(index, 0, step);
|
1355 |
+
}
|
1356 |
+
|
1357 |
+
return currentSteps.push(step);
|
1358 |
+
};
|
1359 |
+
/*
|
1360 |
+
* Global function for deleting a popup from the queue
|
1361 |
+
*/
|
1362 |
+
|
1363 |
+
var deleteQueueStep = function deleteQueueStep(index) {
|
1364 |
+
if (typeof currentSteps[index] !== 'undefined') {
|
1365 |
+
currentSteps.splice(index, 1);
|
1366 |
+
}
|
1367 |
+
};
|
1368 |
+
|
1369 |
+
/**
|
1370 |
+
* Show spinner instead of Confirm button and disable Cancel button
|
1371 |
+
*/
|
1372 |
+
|
1373 |
+
var showLoading = function showLoading() {
|
1374 |
+
var popup = getPopup();
|
1375 |
+
|
1376 |
+
if (!popup) {
|
1377 |
+
Swal.fire('');
|
1378 |
+
}
|
1379 |
+
|
1380 |
+
popup = getPopup();
|
1381 |
+
var actions = getActions();
|
1382 |
+
var confirmButton = getConfirmButton();
|
1383 |
+
var cancelButton = getCancelButton();
|
1384 |
+
show(actions);
|
1385 |
+
show(confirmButton);
|
1386 |
+
addClass([popup, actions], swalClasses.loading);
|
1387 |
+
confirmButton.disabled = true;
|
1388 |
+
cancelButton.disabled = true;
|
1389 |
+
popup.setAttribute('data-loading', true);
|
1390 |
+
popup.setAttribute('aria-busy', true);
|
1391 |
+
popup.focus();
|
1392 |
+
};
|
1393 |
+
|
1394 |
+
var RESTORE_FOCUS_TIMEOUT = 100;
|
1395 |
+
|
1396 |
+
var globalState = {};
|
1397 |
+
var focusPreviousActiveElement = function focusPreviousActiveElement() {
|
1398 |
+
if (globalState.previousActiveElement && globalState.previousActiveElement.focus) {
|
1399 |
+
globalState.previousActiveElement.focus();
|
1400 |
+
globalState.previousActiveElement = null;
|
1401 |
+
} else if (document.body) {
|
1402 |
+
document.body.focus();
|
1403 |
+
}
|
1404 |
+
}; // Restore previous active (focused) element
|
1405 |
+
|
1406 |
+
|
1407 |
+
var restoreActiveElement = function restoreActiveElement() {
|
1408 |
+
return new Promise(function (resolve) {
|
1409 |
+
var x = window.scrollX;
|
1410 |
+
var y = window.scrollY;
|
1411 |
+
globalState.restoreFocusTimeout = setTimeout(function () {
|
1412 |
+
focusPreviousActiveElement();
|
1413 |
+
resolve();
|
1414 |
+
}, RESTORE_FOCUS_TIMEOUT); // issues/900
|
1415 |
+
|
1416 |
+
if (typeof x !== 'undefined' && typeof y !== 'undefined') {
|
1417 |
+
// IE doesn't have scrollX/scrollY support
|
1418 |
+
window.scrollTo(x, y);
|
1419 |
+
}
|
1420 |
+
});
|
1421 |
+
};
|
1422 |
+
|
1423 |
+
/**
|
1424 |
+
* If `timer` parameter is set, returns number of milliseconds of timer remained.
|
1425 |
+
* Otherwise, returns undefined.
|
1426 |
+
*/
|
1427 |
+
|
1428 |
+
var getTimerLeft = function getTimerLeft() {
|
1429 |
+
return globalState.timeout && globalState.timeout.getTimerLeft();
|
1430 |
+
};
|
1431 |
+
/**
|
1432 |
+
* Stop timer. Returns number of milliseconds of timer remained.
|
1433 |
+
* If `timer` parameter isn't set, returns undefined.
|
1434 |
+
*/
|
1435 |
+
|
1436 |
+
var stopTimer = function stopTimer() {
|
1437 |
+
return globalState.timeout && globalState.timeout.stop();
|
1438 |
+
};
|
1439 |
+
/**
|
1440 |
+
* Resume timer. Returns number of milliseconds of timer remained.
|
1441 |
+
* If `timer` parameter isn't set, returns undefined.
|
1442 |
+
*/
|
1443 |
+
|
1444 |
+
var resumeTimer = function resumeTimer() {
|
1445 |
+
return globalState.timeout && globalState.timeout.start();
|
1446 |
+
};
|
1447 |
+
/**
|
1448 |
+
* Resume timer. Returns number of milliseconds of timer remained.
|
1449 |
+
* If `timer` parameter isn't set, returns undefined.
|
1450 |
+
*/
|
1451 |
+
|
1452 |
+
var toggleTimer = function toggleTimer() {
|
1453 |
+
var timer = globalState.timeout;
|
1454 |
+
return timer && (timer.running ? timer.stop() : timer.start());
|
1455 |
+
};
|
1456 |
+
/**
|
1457 |
+
* Increase timer. Returns number of milliseconds of an updated timer.
|
1458 |
+
* If `timer` parameter isn't set, returns undefined.
|
1459 |
+
*/
|
1460 |
+
|
1461 |
+
var increaseTimer = function increaseTimer(n) {
|
1462 |
+
return globalState.timeout && globalState.timeout.increase(n);
|
1463 |
+
};
|
1464 |
+
/**
|
1465 |
+
* Check if timer is running. Returns true if timer is running
|
1466 |
+
* or false if timer is paused or stopped.
|
1467 |
+
* If `timer` parameter isn't set, returns undefined
|
1468 |
+
*/
|
1469 |
+
|
1470 |
+
var isTimerRunning = function isTimerRunning() {
|
1471 |
+
return globalState.timeout && globalState.timeout.isRunning();
|
1472 |
+
};
|
1473 |
+
|
1474 |
+
var defaultParams = {
|
1475 |
+
title: '',
|
1476 |
+
titleText: '',
|
1477 |
+
text: '',
|
1478 |
+
html: '',
|
1479 |
+
footer: '',
|
1480 |
+
type: null,
|
1481 |
+
toast: false,
|
1482 |
+
customClass: '',
|
1483 |
+
customContainerClass: '',
|
1484 |
+
target: 'body',
|
1485 |
+
backdrop: true,
|
1486 |
+
animation: true,
|
1487 |
+
heightAuto: true,
|
1488 |
+
allowOutsideClick: true,
|
1489 |
+
allowEscapeKey: true,
|
1490 |
+
allowEnterKey: true,
|
1491 |
+
stopKeydownPropagation: true,
|
1492 |
+
keydownListenerCapture: false,
|
1493 |
+
showConfirmButton: true,
|
1494 |
+
showCancelButton: false,
|
1495 |
+
preConfirm: null,
|
1496 |
+
confirmButtonText: 'OK',
|
1497 |
+
confirmButtonAriaLabel: '',
|
1498 |
+
confirmButtonColor: null,
|
1499 |
+
confirmButtonClass: '',
|
1500 |
+
cancelButtonText: 'Cancel',
|
1501 |
+
cancelButtonAriaLabel: '',
|
1502 |
+
cancelButtonColor: null,
|
1503 |
+
cancelButtonClass: '',
|
1504 |
+
buttonsStyling: true,
|
1505 |
+
reverseButtons: false,
|
1506 |
+
focusConfirm: true,
|
1507 |
+
focusCancel: false,
|
1508 |
+
showCloseButton: false,
|
1509 |
+
closeButtonHtml: '×',
|
1510 |
+
closeButtonAriaLabel: 'Close this dialog',
|
1511 |
+
showLoaderOnConfirm: false,
|
1512 |
+
imageUrl: null,
|
1513 |
+
imageWidth: null,
|
1514 |
+
imageHeight: null,
|
1515 |
+
imageAlt: '',
|
1516 |
+
imageClass: '',
|
1517 |
+
timer: null,
|
1518 |
+
width: null,
|
1519 |
+
padding: null,
|
1520 |
+
background: null,
|
1521 |
+
input: null,
|
1522 |
+
inputPlaceholder: '',
|
1523 |
+
inputValue: '',
|
1524 |
+
inputOptions: {},
|
1525 |
+
inputAutoTrim: true,
|
1526 |
+
inputClass: '',
|
1527 |
+
inputAttributes: {},
|
1528 |
+
inputValidator: null,
|
1529 |
+
validationMessage: null,
|
1530 |
+
grow: false,
|
1531 |
+
position: 'center',
|
1532 |
+
progressSteps: [],
|
1533 |
+
currentProgressStep: null,
|
1534 |
+
progressStepsDistance: null,
|
1535 |
+
onBeforeOpen: null,
|
1536 |
+
onOpen: null,
|
1537 |
+
onRender: null,
|
1538 |
+
onClose: null,
|
1539 |
+
onAfterClose: null,
|
1540 |
+
scrollbarPadding: true
|
1541 |
+
};
|
1542 |
+
var updatableParams = ['title', 'titleText', 'text', 'html', 'type', 'customClass', 'showConfirmButton', 'showCancelButton', 'confirmButtonText', 'confirmButtonAriaLabel', 'confirmButtonColor', 'confirmButtonClass', 'cancelButtonText', 'cancelButtonAriaLabel', 'cancelButtonColor', 'cancelButtonClass', 'buttonsStyling', 'reverseButtons', 'imageUrl', 'imageWidth', 'imageHeigth', 'imageAlt', 'imageClass', 'progressSteps', 'currentProgressStep'];
|
1543 |
+
var deprecatedParams = {
|
1544 |
+
customContainerClass: 'customClass',
|
1545 |
+
confirmButtonClass: 'customClass',
|
1546 |
+
cancelButtonClass: 'customClass',
|
1547 |
+
imageClass: 'customClass',
|
1548 |
+
inputClass: 'customClass'
|
1549 |
+
};
|
1550 |
+
var toastIncompatibleParams = ['allowOutsideClick', 'allowEnterKey', 'backdrop', 'focusConfirm', 'focusCancel', 'heightAuto', 'keydownListenerCapture'];
|
1551 |
+
/**
|
1552 |
+
* Is valid parameter
|
1553 |
+
* @param {String} paramName
|
1554 |
+
*/
|
1555 |
+
|
1556 |
+
var isValidParameter = function isValidParameter(paramName) {
|
1557 |
+
return Object.prototype.hasOwnProperty.call(defaultParams, paramName);
|
1558 |
+
};
|
1559 |
+
/**
|
1560 |
+
* Is valid parameter for Swal.update() method
|
1561 |
+
* @param {String} paramName
|
1562 |
+
*/
|
1563 |
+
|
1564 |
+
var isUpdatableParameter = function isUpdatableParameter(paramName) {
|
1565 |
+
return updatableParams.indexOf(paramName) !== -1;
|
1566 |
+
};
|
1567 |
+
/**
|
1568 |
+
* Is deprecated parameter
|
1569 |
+
* @param {String} paramName
|
1570 |
+
*/
|
1571 |
+
|
1572 |
+
var isDeprecatedParameter = function isDeprecatedParameter(paramName) {
|
1573 |
+
return deprecatedParams[paramName];
|
1574 |
+
};
|
1575 |
+
|
1576 |
+
var checkIfParamIsValid = function checkIfParamIsValid(param) {
|
1577 |
+
if (!isValidParameter(param)) {
|
1578 |
+
warn("Unknown parameter \"".concat(param, "\""));
|
1579 |
+
}
|
1580 |
+
};
|
1581 |
+
|
1582 |
+
var checkIfToastParamIsValid = function checkIfToastParamIsValid(param) {
|
1583 |
+
if (toastIncompatibleParams.indexOf(param) !== -1) {
|
1584 |
+
warn("The parameter \"".concat(param, "\" is incompatible with toasts"));
|
1585 |
+
}
|
1586 |
+
};
|
1587 |
+
|
1588 |
+
var checkIfParamIsDeprecated = function checkIfParamIsDeprecated(param) {
|
1589 |
+
if (isDeprecatedParameter(param)) {
|
1590 |
+
warnAboutDepreation(param, isDeprecatedParameter(param));
|
1591 |
+
}
|
1592 |
+
};
|
1593 |
+
/**
|
1594 |
+
* Show relevant warnings for given params
|
1595 |
+
*
|
1596 |
+
* @param params
|
1597 |
+
*/
|
1598 |
+
|
1599 |
+
|
1600 |
+
var showWarningsForParams = function showWarningsForParams(params) {
|
1601 |
+
for (var param in params) {
|
1602 |
+
checkIfParamIsValid(param);
|
1603 |
+
|
1604 |
+
if (params.toast) {
|
1605 |
+
checkIfToastParamIsValid(param);
|
1606 |
+
}
|
1607 |
+
|
1608 |
+
checkIfParamIsDeprecated();
|
1609 |
+
}
|
1610 |
+
};
|
1611 |
+
|
1612 |
+
|
1613 |
+
|
1614 |
+
var staticMethods = Object.freeze({
|
1615 |
+
isValidParameter: isValidParameter,
|
1616 |
+
isUpdatableParameter: isUpdatableParameter,
|
1617 |
+
isDeprecatedParameter: isDeprecatedParameter,
|
1618 |
+
argsToParams: argsToParams,
|
1619 |
+
isVisible: isVisible$1,
|
1620 |
+
clickConfirm: clickConfirm,
|
1621 |
+
clickCancel: clickCancel,
|
1622 |
+
getContainer: getContainer,
|
1623 |
+
getPopup: getPopup,
|
1624 |
+
getTitle: getTitle,
|
1625 |
+
getContent: getContent,
|
1626 |
+
getImage: getImage,
|
1627 |
+
getIcon: getIcon,
|
1628 |
+
getIcons: getIcons,
|
1629 |
+
getCloseButton: getCloseButton,
|
1630 |
+
getActions: getActions,
|
1631 |
+
getConfirmButton: getConfirmButton,
|
1632 |
+
getCancelButton: getCancelButton,
|
1633 |
+
getHeader: getHeader,
|
1634 |
+
getFooter: getFooter,
|
1635 |
+
getFocusableElements: getFocusableElements,
|
1636 |
+
getValidationMessage: getValidationMessage,
|
1637 |
+
isLoading: isLoading,
|
1638 |
+
fire: fire,
|
1639 |
+
mixin: mixin,
|
1640 |
+
queue: queue,
|
1641 |
+
getQueueStep: getQueueStep,
|
1642 |
+
insertQueueStep: insertQueueStep,
|
1643 |
+
deleteQueueStep: deleteQueueStep,
|
1644 |
+
showLoading: showLoading,
|
1645 |
+
enableLoading: showLoading,
|
1646 |
+
getTimerLeft: getTimerLeft,
|
1647 |
+
stopTimer: stopTimer,
|
1648 |
+
resumeTimer: resumeTimer,
|
1649 |
+
toggleTimer: toggleTimer,
|
1650 |
+
increaseTimer: increaseTimer,
|
1651 |
+
isTimerRunning: isTimerRunning
|
1652 |
+
});
|
1653 |
+
|
1654 |
+
/**
|
1655 |
+
* Enables buttons and hide loader.
|
1656 |
+
*/
|
1657 |
+
|
1658 |
+
function hideLoading() {
|
1659 |
+
var innerParams = privateProps.innerParams.get(this);
|
1660 |
+
var domCache = privateProps.domCache.get(this);
|
1661 |
+
|
1662 |
+
if (!innerParams.showConfirmButton) {
|
1663 |
+
hide(domCache.confirmButton);
|
1664 |
+
|
1665 |
+
if (!innerParams.showCancelButton) {
|
1666 |
+
hide(domCache.actions);
|
1667 |
+
}
|
1668 |
+
}
|
1669 |
+
|
1670 |
+
removeClass([domCache.popup, domCache.actions], swalClasses.loading);
|
1671 |
+
domCache.popup.removeAttribute('aria-busy');
|
1672 |
+
domCache.popup.removeAttribute('data-loading');
|
1673 |
+
domCache.confirmButton.disabled = false;
|
1674 |
+
domCache.cancelButton.disabled = false;
|
1675 |
+
}
|
1676 |
+
|
1677 |
+
function getInput$1(instance) {
|
1678 |
+
var innerParams = privateProps.innerParams.get(instance || this);
|
1679 |
+
var domCache = privateProps.domCache.get(instance || this);
|
1680 |
+
|
1681 |
+
if (!domCache) {
|
1682 |
+
return null;
|
1683 |
+
}
|
1684 |
+
|
1685 |
+
return getInput(domCache.content, innerParams.input);
|
1686 |
+
}
|
1687 |
+
|
1688 |
+
var fixScrollbar = function fixScrollbar() {
|
1689 |
+
// for queues, do not do this more than once
|
1690 |
+
if (states.previousBodyPadding !== null) {
|
1691 |
+
return;
|
1692 |
+
} // if the body has overflow
|
1693 |
+
|
1694 |
+
|
1695 |
+
if (document.body.scrollHeight > window.innerHeight) {
|
1696 |
+
// add padding so the content doesn't shift after removal of scrollbar
|
1697 |
+
states.previousBodyPadding = parseInt(window.getComputedStyle(document.body).getPropertyValue('padding-right'));
|
1698 |
+
document.body.style.paddingRight = states.previousBodyPadding + measureScrollbar() + 'px';
|
1699 |
+
}
|
1700 |
+
};
|
1701 |
+
var undoScrollbar = function undoScrollbar() {
|
1702 |
+
if (states.previousBodyPadding !== null) {
|
1703 |
+
document.body.style.paddingRight = states.previousBodyPadding + 'px';
|
1704 |
+
states.previousBodyPadding = null;
|
1705 |
+
}
|
1706 |
+
};
|
1707 |
+
|
1708 |
+
/* istanbul ignore next */
|
1709 |
+
|
1710 |
+
var iOSfix = function iOSfix() {
|
1711 |
+
var iOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
1712 |
+
|
1713 |
+
if (iOS && !hasClass(document.body, swalClasses.iosfix)) {
|
1714 |
+
var offset = document.body.scrollTop;
|
1715 |
+
document.body.style.top = offset * -1 + 'px';
|
1716 |
+
addClass(document.body, swalClasses.iosfix);
|
1717 |
+
lockBodyScroll();
|
1718 |
+
}
|
1719 |
+
};
|
1720 |
+
|
1721 |
+
var lockBodyScroll = function lockBodyScroll() {
|
1722 |
+
// #1246
|
1723 |
+
var container = getContainer();
|
1724 |
+
var preventTouchMove;
|
1725 |
+
|
1726 |
+
container.ontouchstart = function (e) {
|
1727 |
+
preventTouchMove = e.target === container || !isScrollable(container) && e.target.tagName !== 'INPUT' // #1603
|
1728 |
+
;
|
1729 |
+
};
|
1730 |
+
|
1731 |
+
container.ontouchmove = function (e) {
|
1732 |
+
if (preventTouchMove) {
|
1733 |
+
e.preventDefault();
|
1734 |
+
e.stopPropagation();
|
1735 |
+
}
|
1736 |
+
};
|
1737 |
+
};
|
1738 |
+
/* istanbul ignore next */
|
1739 |
+
|
1740 |
+
|
1741 |
+
var undoIOSfix = function undoIOSfix() {
|
1742 |
+
if (hasClass(document.body, swalClasses.iosfix)) {
|
1743 |
+
var offset = parseInt(document.body.style.top, 10);
|
1744 |
+
removeClass(document.body, swalClasses.iosfix);
|
1745 |
+
document.body.style.top = '';
|
1746 |
+
document.body.scrollTop = offset * -1;
|
1747 |
+
}
|
1748 |
+
};
|
1749 |
+
|
1750 |
+
var isIE11 = function isIE11() {
|
1751 |
+
return !!window.MSInputMethodContext && !!document.documentMode;
|
1752 |
+
}; // Fix IE11 centering sweetalert2/issues/933
|
1753 |
+
|
1754 |
+
/* istanbul ignore next */
|
1755 |
+
|
1756 |
+
|
1757 |
+
var fixVerticalPositionIE = function fixVerticalPositionIE() {
|
1758 |
+
var container = getContainer();
|
1759 |
+
var popup = getPopup();
|
1760 |
+
container.style.removeProperty('align-items');
|
1761 |
+
|
1762 |
+
if (popup.offsetTop < 0) {
|
1763 |
+
container.style.alignItems = 'flex-start';
|
1764 |
+
}
|
1765 |
+
};
|
1766 |
+
/* istanbul ignore next */
|
1767 |
+
|
1768 |
+
|
1769 |
+
var IEfix = function IEfix() {
|
1770 |
+
if (typeof window !== 'undefined' && isIE11()) {
|
1771 |
+
fixVerticalPositionIE();
|
1772 |
+
window.addEventListener('resize', fixVerticalPositionIE);
|
1773 |
+
}
|
1774 |
+
};
|
1775 |
+
/* istanbul ignore next */
|
1776 |
+
|
1777 |
+
var undoIEfix = function undoIEfix() {
|
1778 |
+
if (typeof window !== 'undefined' && isIE11()) {
|
1779 |
+
window.removeEventListener('resize', fixVerticalPositionIE);
|
1780 |
+
}
|
1781 |
+
};
|
1782 |
+
|
1783 |
+
// Adding aria-hidden="true" to elements outside of the active modal dialog ensures that
|
1784 |
+
// elements not within the active modal dialog will not be surfaced if a user opens a screen
|
1785 |
+
// reader’s list of elements (headings, form controls, landmarks, etc.) in the document.
|
1786 |
+
|
1787 |
+
var setAriaHidden = function setAriaHidden() {
|
1788 |
+
var bodyChildren = toArray(document.body.children);
|
1789 |
+
bodyChildren.forEach(function (el) {
|
1790 |
+
if (el === getContainer() || contains(el, getContainer())) {
|
1791 |
+
return;
|
1792 |
+
}
|
1793 |
+
|
1794 |
+
if (el.hasAttribute('aria-hidden')) {
|
1795 |
+
el.setAttribute('data-previous-aria-hidden', el.getAttribute('aria-hidden'));
|
1796 |
+
}
|
1797 |
+
|
1798 |
+
el.setAttribute('aria-hidden', 'true');
|
1799 |
+
});
|
1800 |
+
};
|
1801 |
+
var unsetAriaHidden = function unsetAriaHidden() {
|
1802 |
+
var bodyChildren = toArray(document.body.children);
|
1803 |
+
bodyChildren.forEach(function (el) {
|
1804 |
+
if (el.hasAttribute('data-previous-aria-hidden')) {
|
1805 |
+
el.setAttribute('aria-hidden', el.getAttribute('data-previous-aria-hidden'));
|
1806 |
+
el.removeAttribute('data-previous-aria-hidden');
|
1807 |
+
} else {
|
1808 |
+
el.removeAttribute('aria-hidden');
|
1809 |
+
}
|
1810 |
+
});
|
1811 |
+
};
|
1812 |
+
|
1813 |
+
/**
|
1814 |
+
* This module containts `WeakMap`s for each effectively-"private property" that a `Swal` has.
|
1815 |
+
* For example, to set the private property "foo" of `this` to "bar", you can `privateProps.foo.set(this, 'bar')`
|
1816 |
+
* This is the approach that Babel will probably take to implement private methods/fields
|
1817 |
+
* https://github.com/tc39/proposal-private-methods
|
1818 |
+
* https://github.com/babel/babel/pull/7555
|
1819 |
+
* Once we have the changes from that PR in Babel, and our core class fits reasonable in *one module*
|
1820 |
+
* then we can use that language feature.
|
1821 |
+
*/
|
1822 |
+
var privateMethods = {
|
1823 |
+
swalPromiseResolve: new WeakMap()
|
1824 |
+
};
|
1825 |
+
|
1826 |
+
/*
|
1827 |
+
* Instance method to close sweetAlert
|
1828 |
+
*/
|
1829 |
+
|
1830 |
+
function removePopupAndResetState(instance, container, isToast, onAfterClose) {
|
1831 |
+
if (isToast) {
|
1832 |
+
triggerOnAfterCloseAndDispose(instance, onAfterClose);
|
1833 |
+
} else {
|
1834 |
+
restoreActiveElement().then(function () {
|
1835 |
+
return triggerOnAfterCloseAndDispose(instance, onAfterClose);
|
1836 |
+
});
|
1837 |
+
globalState.keydownTarget.removeEventListener('keydown', globalState.keydownHandler, {
|
1838 |
+
capture: globalState.keydownListenerCapture
|
1839 |
+
});
|
1840 |
+
globalState.keydownHandlerAdded = false;
|
1841 |
+
}
|
1842 |
+
|
1843 |
+
if (container.parentNode) {
|
1844 |
+
container.parentNode.removeChild(container);
|
1845 |
+
}
|
1846 |
+
|
1847 |
+
if (isModal()) {
|
1848 |
+
undoScrollbar();
|
1849 |
+
undoIOSfix();
|
1850 |
+
undoIEfix();
|
1851 |
+
unsetAriaHidden();
|
1852 |
+
}
|
1853 |
+
|
1854 |
+
removeBodyClasses();
|
1855 |
+
}
|
1856 |
+
|
1857 |
+
function removeBodyClasses() {
|
1858 |
+
removeClass([document.documentElement, document.body], [swalClasses.shown, swalClasses['height-auto'], swalClasses['no-backdrop'], swalClasses['toast-shown'], swalClasses['toast-column']]);
|
1859 |
+
}
|
1860 |
+
|
1861 |
+
function disposeSwal(instance) {
|
1862 |
+
// Unset this.params so GC will dispose it (#1569)
|
1863 |
+
delete instance.params; // Unset globalState props so GC will dispose globalState (#1569)
|
1864 |
+
|
1865 |
+
delete globalState.keydownHandler;
|
1866 |
+
delete globalState.keydownTarget; // Unset WeakMaps so GC will be able to dispose them (#1569)
|
1867 |
+
|
1868 |
+
unsetWeakMaps(privateProps);
|
1869 |
+
unsetWeakMaps(privateMethods);
|
1870 |
+
}
|
1871 |
+
|
1872 |
+
function close(resolveValue) {
|
1873 |
+
var popup = getPopup();
|
1874 |
+
|
1875 |
+
if (!popup || hasClass(popup, swalClasses.hide)) {
|
1876 |
+
return;
|
1877 |
+
}
|
1878 |
+
|
1879 |
+
var innerParams = privateProps.innerParams.get(this);
|
1880 |
+
|
1881 |
+
if (!innerParams) {
|
1882 |
+
return;
|
1883 |
+
}
|
1884 |
+
|
1885 |
+
var swalPromiseResolve = privateMethods.swalPromiseResolve.get(this);
|
1886 |
+
removeClass(popup, swalClasses.show);
|
1887 |
+
addClass(popup, swalClasses.hide);
|
1888 |
+
handlePopupAnimation(this, popup, innerParams); // Resolve Swal promise
|
1889 |
+
|
1890 |
+
swalPromiseResolve(resolveValue || {});
|
1891 |
+
}
|
1892 |
+
|
1893 |
+
var handlePopupAnimation = function handlePopupAnimation(instance, popup, innerParams) {
|
1894 |
+
var container = getContainer(); // If animation is supported, animate
|
1895 |
+
|
1896 |
+
var animationIsSupported = animationEndEvent && hasCssAnimation(popup);
|
1897 |
+
var onClose = innerParams.onClose,
|
1898 |
+
onAfterClose = innerParams.onAfterClose;
|
1899 |
+
|
1900 |
+
if (onClose !== null && typeof onClose === 'function') {
|
1901 |
+
onClose(popup);
|
1902 |
+
}
|
1903 |
+
|
1904 |
+
if (animationIsSupported) {
|
1905 |
+
animatePopup(instance, popup, container, onAfterClose);
|
1906 |
+
} else {
|
1907 |
+
// Otherwise, remove immediately
|
1908 |
+
removePopupAndResetState(instance, container, isToast(), onAfterClose);
|
1909 |
+
}
|
1910 |
+
};
|
1911 |
+
|
1912 |
+
var animatePopup = function animatePopup(instance, popup, container, onAfterClose) {
|
1913 |
+
globalState.swalCloseEventFinishedCallback = removePopupAndResetState.bind(null, instance, container, isToast(), onAfterClose);
|
1914 |
+
popup.addEventListener(animationEndEvent, function (e) {
|
1915 |
+
if (e.target === popup) {
|
1916 |
+
globalState.swalCloseEventFinishedCallback();
|
1917 |
+
delete globalState.swalCloseEventFinishedCallback;
|
1918 |
+
}
|
1919 |
+
});
|
1920 |
+
};
|
1921 |
+
|
1922 |
+
var unsetWeakMaps = function unsetWeakMaps(obj) {
|
1923 |
+
for (var i in obj) {
|
1924 |
+
obj[i] = new WeakMap();
|
1925 |
+
}
|
1926 |
+
};
|
1927 |
+
|
1928 |
+
var triggerOnAfterCloseAndDispose = function triggerOnAfterCloseAndDispose(instance, onAfterClose) {
|
1929 |
+
setTimeout(function () {
|
1930 |
+
if (onAfterClose !== null && typeof onAfterClose === 'function') {
|
1931 |
+
onAfterClose();
|
1932 |
+
}
|
1933 |
+
|
1934 |
+
if (!getPopup()) {
|
1935 |
+
disposeSwal(instance);
|
1936 |
+
}
|
1937 |
+
});
|
1938 |
+
};
|
1939 |
+
|
1940 |
+
function setButtonsDisabled(instance, buttons, disabled) {
|
1941 |
+
var domCache = privateProps.domCache.get(instance);
|
1942 |
+
buttons.forEach(function (button) {
|
1943 |
+
domCache[button].disabled = disabled;
|
1944 |
+
});
|
1945 |
+
}
|
1946 |
+
|
1947 |
+
function setInputDisabled(input, disabled) {
|
1948 |
+
if (!input) {
|
1949 |
+
return false;
|
1950 |
+
}
|
1951 |
+
|
1952 |
+
if (input.type === 'radio') {
|
1953 |
+
var radiosContainer = input.parentNode.parentNode;
|
1954 |
+
var radios = radiosContainer.querySelectorAll('input');
|
1955 |
+
|
1956 |
+
for (var i = 0; i < radios.length; i++) {
|
1957 |
+
radios[i].disabled = disabled;
|
1958 |
+
}
|
1959 |
+
} else {
|
1960 |
+
input.disabled = disabled;
|
1961 |
+
}
|
1962 |
+
}
|
1963 |
+
|
1964 |
+
function enableButtons() {
|
1965 |
+
setButtonsDisabled(this, ['confirmButton', 'cancelButton'], false);
|
1966 |
+
}
|
1967 |
+
function disableButtons() {
|
1968 |
+
setButtonsDisabled(this, ['confirmButton', 'cancelButton'], true);
|
1969 |
+
} // @deprecated
|
1970 |
+
|
1971 |
+
function enableConfirmButton() {
|
1972 |
+
warnAboutDepreation('Swal.enableConfirmButton()', "Swal.getConfirmButton().removeAttribute('disabled')");
|
1973 |
+
setButtonsDisabled(this, ['confirmButton'], false);
|
1974 |
+
} // @deprecated
|
1975 |
+
|
1976 |
+
function disableConfirmButton() {
|
1977 |
+
warnAboutDepreation('Swal.disableConfirmButton()', "Swal.getConfirmButton().setAttribute('disabled', '')");
|
1978 |
+
setButtonsDisabled(this, ['confirmButton'], true);
|
1979 |
+
}
|
1980 |
+
function enableInput() {
|
1981 |
+
return setInputDisabled(this.getInput(), false);
|
1982 |
+
}
|
1983 |
+
function disableInput() {
|
1984 |
+
return setInputDisabled(this.getInput(), true);
|
1985 |
+
}
|
1986 |
+
|
1987 |
+
function showValidationMessage(error) {
|
1988 |
+
var domCache = privateProps.domCache.get(this);
|
1989 |
+
domCache.validationMessage.innerHTML = error;
|
1990 |
+
var popupComputedStyle = window.getComputedStyle(domCache.popup);
|
1991 |
+
domCache.validationMessage.style.marginLeft = "-".concat(popupComputedStyle.getPropertyValue('padding-left'));
|
1992 |
+
domCache.validationMessage.style.marginRight = "-".concat(popupComputedStyle.getPropertyValue('padding-right'));
|
1993 |
+
show(domCache.validationMessage);
|
1994 |
+
var input = this.getInput();
|
1995 |
+
|
1996 |
+
if (input) {
|
1997 |
+
input.setAttribute('aria-invalid', true);
|
1998 |
+
input.setAttribute('aria-describedBy', swalClasses['validation-message']);
|
1999 |
+
focusInput(input);
|
2000 |
+
addClass(input, swalClasses.inputerror);
|
2001 |
+
}
|
2002 |
+
} // Hide block with validation message
|
2003 |
+
|
2004 |
+
function resetValidationMessage$1() {
|
2005 |
+
var domCache = privateProps.domCache.get(this);
|
2006 |
+
|
2007 |
+
if (domCache.validationMessage) {
|
2008 |
+
hide(domCache.validationMessage);
|
2009 |
+
}
|
2010 |
+
|
2011 |
+
var input = this.getInput();
|
2012 |
+
|
2013 |
+
if (input) {
|
2014 |
+
input.removeAttribute('aria-invalid');
|
2015 |
+
input.removeAttribute('aria-describedBy');
|
2016 |
+
removeClass(input, swalClasses.inputerror);
|
2017 |
+
}
|
2018 |
+
}
|
2019 |
+
|
2020 |
+
function getProgressSteps$1() {
|
2021 |
+
warnAboutDepreation('Swal.getProgressSteps()', "const swalInstance = Swal.fire({progressSteps: ['1', '2', '3']}); const progressSteps = swalInstance.params.progressSteps");
|
2022 |
+
var innerParams = privateProps.innerParams.get(this);
|
2023 |
+
return innerParams.progressSteps;
|
2024 |
+
}
|
2025 |
+
function setProgressSteps(progressSteps) {
|
2026 |
+
warnAboutDepreation('Swal.setProgressSteps()', 'Swal.update()');
|
2027 |
+
var innerParams = privateProps.innerParams.get(this);
|
2028 |
+
|
2029 |
+
var updatedParams = _extends({}, innerParams, {
|
2030 |
+
progressSteps: progressSteps
|
2031 |
+
});
|
2032 |
+
|
2033 |
+
renderProgressSteps(this, updatedParams);
|
2034 |
+
privateProps.innerParams.set(this, updatedParams);
|
2035 |
+
}
|
2036 |
+
function showProgressSteps() {
|
2037 |
+
var domCache = privateProps.domCache.get(this);
|
2038 |
+
show(domCache.progressSteps);
|
2039 |
+
}
|
2040 |
+
function hideProgressSteps() {
|
2041 |
+
var domCache = privateProps.domCache.get(this);
|
2042 |
+
hide(domCache.progressSteps);
|
2043 |
+
}
|
2044 |
+
|
2045 |
+
var Timer =
|
2046 |
+
/*#__PURE__*/
|
2047 |
+
function () {
|
2048 |
+
function Timer(callback, delay) {
|
2049 |
+
_classCallCheck(this, Timer);
|
2050 |
+
|
2051 |
+
this.callback = callback;
|
2052 |
+
this.remaining = delay;
|
2053 |
+
this.running = false;
|
2054 |
+
this.start();
|
2055 |
+
}
|
2056 |
+
|
2057 |
+
_createClass(Timer, [{
|
2058 |
+
key: "start",
|
2059 |
+
value: function start() {
|
2060 |
+
if (!this.running) {
|
2061 |
+
this.running = true;
|
2062 |
+
this.started = new Date();
|
2063 |
+
this.id = setTimeout(this.callback, this.remaining);
|
2064 |
+
}
|
2065 |
+
|
2066 |
+
return this.remaining;
|
2067 |
+
}
|
2068 |
+
}, {
|
2069 |
+
key: "stop",
|
2070 |
+
value: function stop() {
|
2071 |
+
if (this.running) {
|
2072 |
+
this.running = false;
|
2073 |
+
clearTimeout(this.id);
|
2074 |
+
this.remaining -= new Date() - this.started;
|
2075 |
+
}
|
2076 |
+
|
2077 |
+
return this.remaining;
|
2078 |
+
}
|
2079 |
+
}, {
|
2080 |
+
key: "increase",
|
2081 |
+
value: function increase(n) {
|
2082 |
+
var running = this.running;
|
2083 |
+
|
2084 |
+
if (running) {
|
2085 |
+
this.stop();
|
2086 |
+
}
|
2087 |
+
|
2088 |
+
this.remaining += n;
|
2089 |
+
|
2090 |
+
if (running) {
|
2091 |
+
this.start();
|
2092 |
+
}
|
2093 |
+
|
2094 |
+
return this.remaining;
|
2095 |
+
}
|
2096 |
+
}, {
|
2097 |
+
key: "getTimerLeft",
|
2098 |
+
value: function getTimerLeft() {
|
2099 |
+
if (this.running) {
|
2100 |
+
this.stop();
|
2101 |
+
this.start();
|
2102 |
+
}
|
2103 |
+
|
2104 |
+
return this.remaining;
|
2105 |
+
}
|
2106 |
+
}, {
|
2107 |
+
key: "isRunning",
|
2108 |
+
value: function isRunning() {
|
2109 |
+
return this.running;
|
2110 |
+
}
|
2111 |
+
}]);
|
2112 |
+
|
2113 |
+
return Timer;
|
2114 |
+
}();
|
2115 |
+
|
2116 |
+
var defaultInputValidators = {
|
2117 |
+
email: function email(string, validationMessage) {
|
2118 |
+
return /^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(string) ? Promise.resolve() : Promise.resolve(validationMessage || 'Invalid email address');
|
2119 |
+
},
|
2120 |
+
url: function url(string, validationMessage) {
|
2121 |
+
// taken from https://stackoverflow.com/a/3809435 with a small change from #1306
|
2122 |
+
return /^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(string) ? Promise.resolve() : Promise.resolve(validationMessage || 'Invalid URL');
|
2123 |
+
}
|
2124 |
+
};
|
2125 |
+
|
2126 |
+
function setDefaultInputValidators(params) {
|
2127 |
+
// Use default `inputValidator` for supported input types if not provided
|
2128 |
+
if (!params.inputValidator) {
|
2129 |
+
Object.keys(defaultInputValidators).forEach(function (key) {
|
2130 |
+
if (params.input === key) {
|
2131 |
+
params.inputValidator = defaultInputValidators[key];
|
2132 |
+
}
|
2133 |
+
});
|
2134 |
+
}
|
2135 |
+
}
|
2136 |
+
|
2137 |
+
function validateCustomTargetElement(params) {
|
2138 |
+
// Determine if the custom target element is valid
|
2139 |
+
if (!params.target || typeof params.target === 'string' && !document.querySelector(params.target) || typeof params.target !== 'string' && !params.target.appendChild) {
|
2140 |
+
warn('Target parameter is not valid, defaulting to "body"');
|
2141 |
+
params.target = 'body';
|
2142 |
+
}
|
2143 |
+
}
|
2144 |
+
/**
|
2145 |
+
* Set type, text and actions on popup
|
2146 |
+
*
|
2147 |
+
* @param params
|
2148 |
+
* @returns {boolean}
|
2149 |
+
*/
|
2150 |
+
|
2151 |
+
|
2152 |
+
function setParameters(params) {
|
2153 |
+
setDefaultInputValidators(params); // showLoaderOnConfirm && preConfirm
|
2154 |
+
|
2155 |
+
if (params.showLoaderOnConfirm && !params.preConfirm) {
|
2156 |
+
warn('showLoaderOnConfirm is set to true, but preConfirm is not defined.\n' + 'showLoaderOnConfirm should be used together with preConfirm, see usage example:\n' + 'https://sweetalert2.github.io/#ajax-request');
|
2157 |
+
} // params.animation will be actually used in renderPopup.js
|
2158 |
+
// but in case when params.animation is a function, we need to call that function
|
2159 |
+
// before popup (re)initialization, so it'll be possible to check Swal.isVisible()
|
2160 |
+
// inside the params.animation function
|
2161 |
+
|
2162 |
+
|
2163 |
+
params.animation = callIfFunction(params.animation);
|
2164 |
+
validateCustomTargetElement(params); // Replace newlines with <br> in title
|
2165 |
+
|
2166 |
+
if (typeof params.title === 'string') {
|
2167 |
+
params.title = params.title.split('\n').join('<br />');
|
2168 |
+
}
|
2169 |
+
|
2170 |
+
init(params);
|
2171 |
+
}
|
2172 |
+
|
2173 |
+
function swalOpenAnimationFinished(popup, container) {
|
2174 |
+
popup.removeEventListener(animationEndEvent, swalOpenAnimationFinished);
|
2175 |
+
container.style.overflowY = 'auto';
|
2176 |
+
}
|
2177 |
+
/**
|
2178 |
+
* Open popup, add necessary classes and styles, fix scrollbar
|
2179 |
+
*
|
2180 |
+
* @param {Array} params
|
2181 |
+
*/
|
2182 |
+
|
2183 |
+
|
2184 |
+
var openPopup = function openPopup(params) {
|
2185 |
+
var container = getContainer();
|
2186 |
+
var popup = getPopup();
|
2187 |
+
|
2188 |
+
if (typeof params.onBeforeOpen === 'function') {
|
2189 |
+
params.onBeforeOpen(popup);
|
2190 |
+
}
|
2191 |
+
|
2192 |
+
addClasses(container, popup, params); // scrolling is 'hidden' until animation is done, after that 'auto'
|
2193 |
+
|
2194 |
+
setScrollingVisibility(container, popup);
|
2195 |
+
|
2196 |
+
if (isModal()) {
|
2197 |
+
fixScrollContainer(container, params.scrollbarPadding);
|
2198 |
+
}
|
2199 |
+
|
2200 |
+
if (!isToast() && !globalState.previousActiveElement) {
|
2201 |
+
globalState.previousActiveElement = document.activeElement;
|
2202 |
+
}
|
2203 |
+
|
2204 |
+
if (typeof params.onOpen === 'function') {
|
2205 |
+
setTimeout(function () {
|
2206 |
+
return params.onOpen(popup);
|
2207 |
+
});
|
2208 |
+
}
|
2209 |
+
};
|
2210 |
+
|
2211 |
+
var setScrollingVisibility = function setScrollingVisibility(container, popup) {
|
2212 |
+
if (animationEndEvent && hasCssAnimation(popup)) {
|
2213 |
+
container.style.overflowY = 'hidden';
|
2214 |
+
popup.addEventListener(animationEndEvent, swalOpenAnimationFinished.bind(null, popup, container));
|
2215 |
+
} else {
|
2216 |
+
container.style.overflowY = 'auto';
|
2217 |
+
}
|
2218 |
+
};
|
2219 |
+
|
2220 |
+
var fixScrollContainer = function fixScrollContainer(container, scrollbarPadding) {
|
2221 |
+
iOSfix();
|
2222 |
+
IEfix();
|
2223 |
+
setAriaHidden();
|
2224 |
+
|
2225 |
+
if (scrollbarPadding) {
|
2226 |
+
fixScrollbar();
|
2227 |
+
} // sweetalert2/issues/1247
|
2228 |
+
|
2229 |
+
|
2230 |
+
setTimeout(function () {
|
2231 |
+
container.scrollTop = 0;
|
2232 |
+
});
|
2233 |
+
};
|
2234 |
+
|
2235 |
+
var addClasses = function addClasses(container, popup, params) {
|
2236 |
+
if (params.animation) {
|
2237 |
+
addClass(popup, swalClasses.show);
|
2238 |
+
addClass(container, swalClasses.fade);
|
2239 |
+
}
|
2240 |
+
|
2241 |
+
show(popup);
|
2242 |
+
addClass([document.documentElement, document.body, container], swalClasses.shown);
|
2243 |
+
|
2244 |
+
if (params.heightAuto && params.backdrop && !params.toast) {
|
2245 |
+
addClass([document.documentElement, document.body], swalClasses['height-auto']);
|
2246 |
+
}
|
2247 |
+
};
|
2248 |
+
|
2249 |
+
var handleInputOptionsAndValue = function handleInputOptionsAndValue(instance, params) {
|
2250 |
+
if (params.input === 'select' || params.input === 'radio') {
|
2251 |
+
handleInputOptions(instance, params);
|
2252 |
+
} else if (['text', 'email', 'number', 'tel', 'textarea'].indexOf(params.input) !== -1 && isPromise(params.inputValue)) {
|
2253 |
+
handleInputValue(instance, params);
|
2254 |
+
}
|
2255 |
+
};
|
2256 |
+
|
2257 |
+
var handleInputOptions = function handleInputOptions(instance, params) {
|
2258 |
+
var content = getContent();
|
2259 |
+
|
2260 |
+
var processInputOptions = function processInputOptions(inputOptions) {
|
2261 |
+
return populateInputOptions[params.input](content, formatInputOptions(inputOptions), params);
|
2262 |
+
};
|
2263 |
+
|
2264 |
+
if (isPromise(params.inputOptions)) {
|
2265 |
+
showLoading();
|
2266 |
+
params.inputOptions.then(function (inputOptions) {
|
2267 |
+
instance.hideLoading();
|
2268 |
+
processInputOptions(inputOptions);
|
2269 |
+
});
|
2270 |
+
} else if (_typeof(params.inputOptions) === 'object') {
|
2271 |
+
processInputOptions(params.inputOptions);
|
2272 |
+
} else {
|
2273 |
+
error("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(_typeof(params.inputOptions)));
|
2274 |
+
}
|
2275 |
+
};
|
2276 |
+
|
2277 |
+
var handleInputValue = function handleInputValue(instance, params) {
|
2278 |
+
var input = instance.getInput();
|
2279 |
+
hide(input);
|
2280 |
+
params.inputValue.then(function (inputValue) {
|
2281 |
+
input.value = params.input === 'number' ? parseFloat(inputValue) || 0 : inputValue + '';
|
2282 |
+
show(input);
|
2283 |
+
input.focus();
|
2284 |
+
instance.hideLoading();
|
2285 |
+
})["catch"](function (err) {
|
2286 |
+
error('Error in inputValue promise: ' + err);
|
2287 |
+
input.value = '';
|
2288 |
+
show(input);
|
2289 |
+
input.focus();
|
2290 |
+
instance.hideLoading();
|
2291 |
+
});
|
2292 |
+
};
|
2293 |
+
|
2294 |
+
var populateInputOptions = {
|
2295 |
+
select: function select(content, inputOptions, params) {
|
2296 |
+
var select = getChildByClass(content, swalClasses.select);
|
2297 |
+
inputOptions.forEach(function (inputOption) {
|
2298 |
+
var optionValue = inputOption[0];
|
2299 |
+
var optionLabel = inputOption[1];
|
2300 |
+
var option = document.createElement('option');
|
2301 |
+
option.value = optionValue;
|
2302 |
+
option.innerHTML = optionLabel;
|
2303 |
+
|
2304 |
+
if (params.inputValue.toString() === optionValue.toString()) {
|
2305 |
+
option.selected = true;
|
2306 |
+
}
|
2307 |
+
|
2308 |
+
select.appendChild(option);
|
2309 |
+
});
|
2310 |
+
select.focus();
|
2311 |
+
},
|
2312 |
+
radio: function radio(content, inputOptions, params) {
|
2313 |
+
var radio = getChildByClass(content, swalClasses.radio);
|
2314 |
+
inputOptions.forEach(function (inputOption) {
|
2315 |
+
var radioValue = inputOption[0];
|
2316 |
+
var radioLabel = inputOption[1];
|
2317 |
+
var radioInput = document.createElement('input');
|
2318 |
+
var radioLabelElement = document.createElement('label');
|
2319 |
+
radioInput.type = 'radio';
|
2320 |
+
radioInput.name = swalClasses.radio;
|
2321 |
+
radioInput.value = radioValue;
|
2322 |
+
|
2323 |
+
if (params.inputValue.toString() === radioValue.toString()) {
|
2324 |
+
radioInput.checked = true;
|
2325 |
+
}
|
2326 |
+
|
2327 |
+
var label = document.createElement('span');
|
2328 |
+
label.innerHTML = radioLabel;
|
2329 |
+
label.className = swalClasses.label;
|
2330 |
+
radioLabelElement.appendChild(radioInput);
|
2331 |
+
radioLabelElement.appendChild(label);
|
2332 |
+
radio.appendChild(radioLabelElement);
|
2333 |
+
});
|
2334 |
+
var radios = radio.querySelectorAll('input');
|
2335 |
+
|
2336 |
+
if (radios.length) {
|
2337 |
+
radios[0].focus();
|
2338 |
+
}
|
2339 |
+
}
|
2340 |
+
/**
|
2341 |
+
* Converts `inputOptions` into an array of `[value, label]`s
|
2342 |
+
* @param inputOptions
|
2343 |
+
*/
|
2344 |
+
|
2345 |
+
};
|
2346 |
+
|
2347 |
+
var formatInputOptions = function formatInputOptions(inputOptions) {
|
2348 |
+
var result = [];
|
2349 |
+
|
2350 |
+
if (typeof Map !== 'undefined' && inputOptions instanceof Map) {
|
2351 |
+
inputOptions.forEach(function (value, key) {
|
2352 |
+
result.push([key, value]);
|
2353 |
+
});
|
2354 |
+
} else {
|
2355 |
+
Object.keys(inputOptions).forEach(function (key) {
|
2356 |
+
result.push([key, inputOptions[key]]);
|
2357 |
+
});
|
2358 |
+
}
|
2359 |
+
|
2360 |
+
return result;
|
2361 |
+
};
|
2362 |
+
|
2363 |
+
var handleConfirmButtonClick = function handleConfirmButtonClick(instance, innerParams) {
|
2364 |
+
instance.disableButtons();
|
2365 |
+
|
2366 |
+
if (innerParams.input) {
|
2367 |
+
handleConfirmWithInput(instance, innerParams);
|
2368 |
+
} else {
|
2369 |
+
confirm(instance, innerParams, true);
|
2370 |
+
}
|
2371 |
+
};
|
2372 |
+
var handleCancelButtonClick = function handleCancelButtonClick(instance, dismissWith) {
|
2373 |
+
instance.disableButtons();
|
2374 |
+
dismissWith(DismissReason.cancel);
|
2375 |
+
};
|
2376 |
+
|
2377 |
+
var handleConfirmWithInput = function handleConfirmWithInput(instance, innerParams) {
|
2378 |
+
var inputValue = getInputValue(instance, innerParams);
|
2379 |
+
|
2380 |
+
if (innerParams.inputValidator) {
|
2381 |
+
instance.disableInput();
|
2382 |
+
var validationPromise = Promise.resolve().then(function () {
|
2383 |
+
return innerParams.inputValidator(inputValue, innerParams.validationMessage);
|
2384 |
+
});
|
2385 |
+
validationPromise.then(function (validationMessage) {
|
2386 |
+
instance.enableButtons();
|
2387 |
+
instance.enableInput();
|
2388 |
+
|
2389 |
+
if (validationMessage) {
|
2390 |
+
instance.showValidationMessage(validationMessage);
|
2391 |
+
} else {
|
2392 |
+
confirm(instance, innerParams, inputValue);
|
2393 |
+
}
|
2394 |
+
});
|
2395 |
+
} else if (!instance.getInput().checkValidity()) {
|
2396 |
+
instance.enableButtons();
|
2397 |
+
instance.showValidationMessage(innerParams.validationMessage);
|
2398 |
+
} else {
|
2399 |
+
confirm(instance, innerParams, inputValue);
|
2400 |
+
}
|
2401 |
+
};
|
2402 |
+
|
2403 |
+
var succeedWith = function succeedWith(instance, value) {
|
2404 |
+
instance.closePopup({
|
2405 |
+
value: value
|
2406 |
+
});
|
2407 |
+
};
|
2408 |
+
|
2409 |
+
var confirm = function confirm(instance, innerParams, value) {
|
2410 |
+
if (innerParams.showLoaderOnConfirm) {
|
2411 |
+
showLoading(); // TODO: make showLoading an *instance* method
|
2412 |
+
}
|
2413 |
+
|
2414 |
+
if (innerParams.preConfirm) {
|
2415 |
+
instance.resetValidationMessage();
|
2416 |
+
var preConfirmPromise = Promise.resolve().then(function () {
|
2417 |
+
return innerParams.preConfirm(value, innerParams.validationMessage);
|
2418 |
+
});
|
2419 |
+
preConfirmPromise.then(function (preConfirmValue) {
|
2420 |
+
if (isVisible(getValidationMessage()) || preConfirmValue === false) {
|
2421 |
+
instance.hideLoading();
|
2422 |
+
} else {
|
2423 |
+
succeedWith(instance, typeof preConfirmValue === 'undefined' ? value : preConfirmValue);
|
2424 |
+
}
|
2425 |
+
});
|
2426 |
+
} else {
|
2427 |
+
succeedWith(instance, value);
|
2428 |
+
}
|
2429 |
+
};
|
2430 |
+
|
2431 |
+
var getInputValue = function getInputValue(instance, innerParams) {
|
2432 |
+
var input = instance.getInput();
|
2433 |
+
|
2434 |
+
if (!input) {
|
2435 |
+
return null;
|
2436 |
+
}
|
2437 |
+
|
2438 |
+
switch (innerParams.input) {
|
2439 |
+
case 'checkbox':
|
2440 |
+
return getCheckboxValue(input);
|
2441 |
+
|
2442 |
+
case 'radio':
|
2443 |
+
return getRadioValue(input);
|
2444 |
+
|
2445 |
+
case 'file':
|
2446 |
+
return getFileValue(input);
|
2447 |
+
|
2448 |
+
default:
|
2449 |
+
return innerParams.inputAutoTrim ? input.value.trim() : input.value;
|
2450 |
+
}
|
2451 |
+
};
|
2452 |
+
|
2453 |
+
var getCheckboxValue = function getCheckboxValue(input) {
|
2454 |
+
return input.checked ? 1 : 0;
|
2455 |
+
};
|
2456 |
+
|
2457 |
+
var getRadioValue = function getRadioValue(input) {
|
2458 |
+
return input.checked ? input.value : null;
|
2459 |
+
};
|
2460 |
+
|
2461 |
+
var getFileValue = function getFileValue(input) {
|
2462 |
+
return input.files.length ? input.files[0] : null;
|
2463 |
+
};
|
2464 |
+
|
2465 |
+
var addKeydownHandler = function addKeydownHandler(instance, globalState, innerParams, dismissWith) {
|
2466 |
+
if (globalState.keydownTarget && globalState.keydownHandlerAdded) {
|
2467 |
+
globalState.keydownTarget.removeEventListener('keydown', globalState.keydownHandler, {
|
2468 |
+
capture: globalState.keydownListenerCapture
|
2469 |
+
});
|
2470 |
+
globalState.keydownHandlerAdded = false;
|
2471 |
+
}
|
2472 |
+
|
2473 |
+
if (!innerParams.toast) {
|
2474 |
+
globalState.keydownHandler = function (e) {
|
2475 |
+
return keydownHandler(instance, e, innerParams, dismissWith);
|
2476 |
+
};
|
2477 |
+
|
2478 |
+
globalState.keydownTarget = innerParams.keydownListenerCapture ? window : getPopup();
|
2479 |
+
globalState.keydownListenerCapture = innerParams.keydownListenerCapture;
|
2480 |
+
globalState.keydownTarget.addEventListener('keydown', globalState.keydownHandler, {
|
2481 |
+
capture: globalState.keydownListenerCapture
|
2482 |
+
});
|
2483 |
+
globalState.keydownHandlerAdded = true;
|
2484 |
+
}
|
2485 |
+
}; // Focus handling
|
2486 |
+
|
2487 |
+
var setFocus = function setFocus(innerParams, index, increment) {
|
2488 |
+
var focusableElements = getFocusableElements(innerParams.focusCancel); // search for visible elements and select the next possible match
|
2489 |
+
|
2490 |
+
for (var i = 0; i < focusableElements.length; i++) {
|
2491 |
+
index = index + increment; // rollover to first item
|
2492 |
+
|
2493 |
+
if (index === focusableElements.length) {
|
2494 |
+
index = 0; // go to last item
|
2495 |
+
} else if (index === -1) {
|
2496 |
+
index = focusableElements.length - 1;
|
2497 |
+
}
|
2498 |
+
|
2499 |
+
return focusableElements[index].focus();
|
2500 |
+
} // no visible focusable elements, focus the popup
|
2501 |
+
|
2502 |
+
|
2503 |
+
getPopup().focus();
|
2504 |
+
};
|
2505 |
+
var arrowKeys = ['ArrowLeft', 'ArrowRight', 'ArrowUp', 'ArrowDown', 'Left', 'Right', 'Up', 'Down' // IE11
|
2506 |
+
];
|
2507 |
+
var escKeys = ['Escape', 'Esc' // IE11
|
2508 |
+
];
|
2509 |
+
|
2510 |
+
var keydownHandler = function keydownHandler(instance, e, innerParams, dismissWith) {
|
2511 |
+
if (innerParams.stopKeydownPropagation) {
|
2512 |
+
e.stopPropagation();
|
2513 |
+
} // ENTER
|
2514 |
+
|
2515 |
+
|
2516 |
+
if (e.key === 'Enter') {
|
2517 |
+
handleEnter(instance, e, innerParams); // TAB
|
2518 |
+
} else if (e.key === 'Tab') {
|
2519 |
+
handleTab(e, innerParams); // ARROWS - switch focus between buttons
|
2520 |
+
} else if (arrowKeys.indexOf(e.key) !== -1) {
|
2521 |
+
handleArrows(); // ESC
|
2522 |
+
} else if (escKeys.indexOf(e.key) !== -1) {
|
2523 |
+
handleEsc(e, innerParams, dismissWith);
|
2524 |
+
}
|
2525 |
+
};
|
2526 |
+
|
2527 |
+
var handleEnter = function handleEnter(instance, e, innerParams) {
|
2528 |
+
// #720 #721
|
2529 |
+
if (e.isComposing) {
|
2530 |
+
return;
|
2531 |
+
}
|
2532 |
+
|
2533 |
+
if (e.target && instance.getInput() && e.target.outerHTML === instance.getInput().outerHTML) {
|
2534 |
+
if (['textarea', 'file'].indexOf(innerParams.input) !== -1) {
|
2535 |
+
return; // do not submit
|
2536 |
+
}
|
2537 |
+
|
2538 |
+
clickConfirm();
|
2539 |
+
e.preventDefault();
|
2540 |
+
}
|
2541 |
+
};
|
2542 |
+
|
2543 |
+
var handleTab = function handleTab(e, innerParams) {
|
2544 |
+
var targetElement = e.target;
|
2545 |
+
var focusableElements = getFocusableElements(innerParams.focusCancel);
|
2546 |
+
var btnIndex = -1;
|
2547 |
+
|
2548 |
+
for (var i = 0; i < focusableElements.length; i++) {
|
2549 |
+
if (targetElement === focusableElements[i]) {
|
2550 |
+
btnIndex = i;
|
2551 |
+
break;
|
2552 |
+
}
|
2553 |
+
}
|
2554 |
+
|
2555 |
+
if (!e.shiftKey) {
|
2556 |
+
// Cycle to the next button
|
2557 |
+
setFocus(innerParams, btnIndex, 1);
|
2558 |
+
} else {
|
2559 |
+
// Cycle to the prev button
|
2560 |
+
setFocus(innerParams, btnIndex, -1);
|
2561 |
+
}
|
2562 |
+
|
2563 |
+
e.stopPropagation();
|
2564 |
+
e.preventDefault();
|
2565 |
+
};
|
2566 |
+
|
2567 |
+
var handleArrows = function handleArrows() {
|
2568 |
+
var confirmButton = getConfirmButton();
|
2569 |
+
var cancelButton = getCancelButton(); // focus Cancel button if Confirm button is currently focused
|
2570 |
+
|
2571 |
+
if (document.activeElement === confirmButton && isVisible(cancelButton)) {
|
2572 |
+
cancelButton.focus(); // and vice versa
|
2573 |
+
} else if (document.activeElement === cancelButton && isVisible(confirmButton)) {
|
2574 |
+
confirmButton.focus();
|
2575 |
+
}
|
2576 |
+
};
|
2577 |
+
|
2578 |
+
var handleEsc = function handleEsc(e, innerParams, dismissWith) {
|
2579 |
+
if (callIfFunction(innerParams.allowEscapeKey)) {
|
2580 |
+
e.preventDefault();
|
2581 |
+
dismissWith(DismissReason.esc);
|
2582 |
+
}
|
2583 |
+
};
|
2584 |
+
|
2585 |
+
var handlePopupClick = function handlePopupClick(domCache, innerParams, dismissWith) {
|
2586 |
+
if (innerParams.toast) {
|
2587 |
+
handleToastClick(domCache, innerParams, dismissWith);
|
2588 |
+
} else {
|
2589 |
+
// Ignore click events that had mousedown on the popup but mouseup on the container
|
2590 |
+
// This can happen when the user drags a slider
|
2591 |
+
handleModalMousedown(domCache); // Ignore click events that had mousedown on the container but mouseup on the popup
|
2592 |
+
|
2593 |
+
handleContainerMousedown(domCache);
|
2594 |
+
handleModalClick(domCache, innerParams, dismissWith);
|
2595 |
+
}
|
2596 |
+
};
|
2597 |
+
|
2598 |
+
var handleToastClick = function handleToastClick(domCache, innerParams, dismissWith) {
|
2599 |
+
// Closing toast by internal click
|
2600 |
+
domCache.popup.onclick = function () {
|
2601 |
+
if (innerParams.showConfirmButton || innerParams.showCancelButton || innerParams.showCloseButton || innerParams.input) {
|
2602 |
+
return;
|
2603 |
+
}
|
2604 |
+
|
2605 |
+
dismissWith(DismissReason.close);
|
2606 |
+
};
|
2607 |
+
};
|
2608 |
+
|
2609 |
+
var ignoreOutsideClick = false;
|
2610 |
+
|
2611 |
+
var handleModalMousedown = function handleModalMousedown(domCache) {
|
2612 |
+
domCache.popup.onmousedown = function () {
|
2613 |
+
domCache.container.onmouseup = function (e) {
|
2614 |
+
domCache.container.onmouseup = undefined; // We only check if the mouseup target is the container because usually it doesn't
|
2615 |
+
// have any other direct children aside of the popup
|
2616 |
+
|
2617 |
+
if (e.target === domCache.container) {
|
2618 |
+
ignoreOutsideClick = true;
|
2619 |
+
}
|
2620 |
+
};
|
2621 |
+
};
|
2622 |
+
};
|
2623 |
+
|
2624 |
+
var handleContainerMousedown = function handleContainerMousedown(domCache) {
|
2625 |
+
domCache.container.onmousedown = function () {
|
2626 |
+
domCache.popup.onmouseup = function (e) {
|
2627 |
+
domCache.popup.onmouseup = undefined; // We also need to check if the mouseup target is a child of the popup
|
2628 |
+
|
2629 |
+
if (e.target === domCache.popup || domCache.popup.contains(e.target)) {
|
2630 |
+
ignoreOutsideClick = true;
|
2631 |
+
}
|
2632 |
+
};
|
2633 |
+
};
|
2634 |
+
};
|
2635 |
+
|
2636 |
+
var handleModalClick = function handleModalClick(domCache, innerParams, dismissWith) {
|
2637 |
+
domCache.container.onclick = function (e) {
|
2638 |
+
if (ignoreOutsideClick) {
|
2639 |
+
ignoreOutsideClick = false;
|
2640 |
+
return;
|
2641 |
+
}
|
2642 |
+
|
2643 |
+
if (e.target === domCache.container && callIfFunction(innerParams.allowOutsideClick)) {
|
2644 |
+
dismissWith(DismissReason.backdrop);
|
2645 |
+
}
|
2646 |
+
};
|
2647 |
+
};
|
2648 |
+
|
2649 |
+
function _main(userParams) {
|
2650 |
+
showWarningsForParams(userParams); // Check if there is another Swal closing
|
2651 |
+
|
2652 |
+
if (getPopup() && globalState.swalCloseEventFinishedCallback) {
|
2653 |
+
globalState.swalCloseEventFinishedCallback();
|
2654 |
+
delete globalState.swalCloseEventFinishedCallback;
|
2655 |
+
} // Check if there is a swal disposal defer timer
|
2656 |
+
|
2657 |
+
|
2658 |
+
if (globalState.deferDisposalTimer) {
|
2659 |
+
clearTimeout(globalState.deferDisposalTimer);
|
2660 |
+
delete globalState.deferDisposalTimer;
|
2661 |
+
}
|
2662 |
+
|
2663 |
+
var innerParams = _extends({}, defaultParams, userParams);
|
2664 |
+
|
2665 |
+
setParameters(innerParams);
|
2666 |
+
Object.freeze(innerParams); // clear the previous timer
|
2667 |
+
|
2668 |
+
if (globalState.timeout) {
|
2669 |
+
globalState.timeout.stop();
|
2670 |
+
delete globalState.timeout;
|
2671 |
+
} // clear the restore focus timeout
|
2672 |
+
|
2673 |
+
|
2674 |
+
clearTimeout(globalState.restoreFocusTimeout);
|
2675 |
+
var domCache = populateDomCache(this);
|
2676 |
+
render(this, innerParams);
|
2677 |
+
privateProps.innerParams.set(this, innerParams);
|
2678 |
+
return swalPromise(this, domCache, innerParams);
|
2679 |
+
}
|
2680 |
+
|
2681 |
+
var swalPromise = function swalPromise(instance, domCache, innerParams) {
|
2682 |
+
return new Promise(function (resolve) {
|
2683 |
+
// functions to handle all closings/dismissals
|
2684 |
+
var dismissWith = function dismissWith(dismiss) {
|
2685 |
+
instance.closePopup({
|
2686 |
+
dismiss: dismiss
|
2687 |
+
});
|
2688 |
+
};
|
2689 |
+
|
2690 |
+
privateMethods.swalPromiseResolve.set(instance, resolve);
|
2691 |
+
setupTimer(globalState, innerParams, dismissWith);
|
2692 |
+
|
2693 |
+
domCache.confirmButton.onclick = function () {
|
2694 |
+
return handleConfirmButtonClick(instance, innerParams);
|
2695 |
+
};
|
2696 |
+
|
2697 |
+
domCache.cancelButton.onclick = function () {
|
2698 |
+
return handleCancelButtonClick(instance, dismissWith);
|
2699 |
+
};
|
2700 |
+
|
2701 |
+
domCache.closeButton.onclick = function () {
|
2702 |
+
return dismissWith(DismissReason.close);
|
2703 |
+
};
|
2704 |
+
|
2705 |
+
handlePopupClick(domCache, innerParams, dismissWith);
|
2706 |
+
addKeydownHandler(instance, globalState, innerParams, dismissWith);
|
2707 |
+
|
2708 |
+
if (innerParams.toast && (innerParams.input || innerParams.footer || innerParams.showCloseButton)) {
|
2709 |
+
addClass(document.body, swalClasses['toast-column']);
|
2710 |
+
} else {
|
2711 |
+
removeClass(document.body, swalClasses['toast-column']);
|
2712 |
+
}
|
2713 |
+
|
2714 |
+
handleInputOptionsAndValue(instance, innerParams);
|
2715 |
+
openPopup(innerParams);
|
2716 |
+
initFocus(domCache, innerParams); // Scroll container to top on open (#1247)
|
2717 |
+
|
2718 |
+
domCache.container.scrollTop = 0;
|
2719 |
+
});
|
2720 |
+
};
|
2721 |
+
|
2722 |
+
var populateDomCache = function populateDomCache(instance) {
|
2723 |
+
var domCache = {
|
2724 |
+
popup: getPopup(),
|
2725 |
+
container: getContainer(),
|
2726 |
+
content: getContent(),
|
2727 |
+
actions: getActions(),
|
2728 |
+
confirmButton: getConfirmButton(),
|
2729 |
+
cancelButton: getCancelButton(),
|
2730 |
+
closeButton: getCloseButton(),
|
2731 |
+
validationMessage: getValidationMessage(),
|
2732 |
+
progressSteps: getProgressSteps()
|
2733 |
+
};
|
2734 |
+
privateProps.domCache.set(instance, domCache);
|
2735 |
+
return domCache;
|
2736 |
+
};
|
2737 |
+
|
2738 |
+
var setupTimer = function setupTimer(globalState$$1, innerParams, dismissWith) {
|
2739 |
+
if (innerParams.timer) {
|
2740 |
+
globalState$$1.timeout = new Timer(function () {
|
2741 |
+
dismissWith('timer');
|
2742 |
+
delete globalState$$1.timeout;
|
2743 |
+
}, innerParams.timer);
|
2744 |
+
}
|
2745 |
+
};
|
2746 |
+
|
2747 |
+
var initFocus = function initFocus(domCache, innerParams) {
|
2748 |
+
if (innerParams.toast) {
|
2749 |
+
return;
|
2750 |
+
}
|
2751 |
+
|
2752 |
+
if (!callIfFunction(innerParams.allowEnterKey)) {
|
2753 |
+
return blurActiveElement();
|
2754 |
+
}
|
2755 |
+
|
2756 |
+
if (innerParams.focusCancel && isVisible(domCache.cancelButton)) {
|
2757 |
+
return domCache.cancelButton.focus();
|
2758 |
+
}
|
2759 |
+
|
2760 |
+
if (innerParams.focusConfirm && isVisible(domCache.confirmButton)) {
|
2761 |
+
return domCache.confirmButton.focus();
|
2762 |
+
}
|
2763 |
+
|
2764 |
+
setFocus(innerParams, -1, 1);
|
2765 |
+
};
|
2766 |
+
|
2767 |
+
var blurActiveElement = function blurActiveElement() {
|
2768 |
+
if (document.activeElement && typeof document.activeElement.blur === 'function') {
|
2769 |
+
document.activeElement.blur();
|
2770 |
+
}
|
2771 |
+
};
|
2772 |
+
|
2773 |
+
/**
|
2774 |
+
* Updates popup parameters.
|
2775 |
+
*/
|
2776 |
+
|
2777 |
+
function update(params) {
|
2778 |
+
var validUpdatableParams = {}; // assign valid params from `params` to `defaults`
|
2779 |
+
|
2780 |
+
Object.keys(params).forEach(function (param) {
|
2781 |
+
if (Swal.isUpdatableParameter(param)) {
|
2782 |
+
validUpdatableParams[param] = params[param];
|
2783 |
+
} else {
|
2784 |
+
warn("Invalid parameter to update: \"".concat(param, "\". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js"));
|
2785 |
+
}
|
2786 |
+
});
|
2787 |
+
var innerParams = privateProps.innerParams.get(this);
|
2788 |
+
|
2789 |
+
var updatedParams = _extends({}, innerParams, validUpdatableParams);
|
2790 |
+
|
2791 |
+
render(this, updatedParams);
|
2792 |
+
privateProps.innerParams.set(this, updatedParams);
|
2793 |
+
Object.defineProperties(this, {
|
2794 |
+
params: {
|
2795 |
+
value: _extends({}, this.params, params),
|
2796 |
+
writable: false,
|
2797 |
+
enumerable: true
|
2798 |
+
}
|
2799 |
+
});
|
2800 |
+
}
|
2801 |
+
|
2802 |
+
|
2803 |
+
|
2804 |
+
var instanceMethods = Object.freeze({
|
2805 |
+
hideLoading: hideLoading,
|
2806 |
+
disableLoading: hideLoading,
|
2807 |
+
getInput: getInput$1,
|
2808 |
+
close: close,
|
2809 |
+
closePopup: close,
|
2810 |
+
closeModal: close,
|
2811 |
+
closeToast: close,
|
2812 |
+
enableButtons: enableButtons,
|
2813 |
+
disableButtons: disableButtons,
|
2814 |
+
enableConfirmButton: enableConfirmButton,
|
2815 |
+
disableConfirmButton: disableConfirmButton,
|
2816 |
+
enableInput: enableInput,
|
2817 |
+
disableInput: disableInput,
|
2818 |
+
showValidationMessage: showValidationMessage,
|
2819 |
+
resetValidationMessage: resetValidationMessage$1,
|
2820 |
+
getProgressSteps: getProgressSteps$1,
|
2821 |
+
setProgressSteps: setProgressSteps,
|
2822 |
+
showProgressSteps: showProgressSteps,
|
2823 |
+
hideProgressSteps: hideProgressSteps,
|
2824 |
+
_main: _main,
|
2825 |
+
update: update
|
2826 |
+
});
|
2827 |
+
|
2828 |
+
var currentInstance; // SweetAlert constructor
|
2829 |
+
|
2830 |
+
function SweetAlert() {
|
2831 |
+
// Prevent run in Node env
|
2832 |
+
|
2833 |
+
/* istanbul ignore if */
|
2834 |
+
if (typeof window === 'undefined') {
|
2835 |
+
return;
|
2836 |
+
} // Check for the existence of Promise
|
2837 |
+
|
2838 |
+
/* istanbul ignore if */
|
2839 |
+
|
2840 |
+
|
2841 |
+
if (typeof Promise === 'undefined') {
|
2842 |
+
error('This package requires a Promise library, please include a shim to enable it in this browser (See: https://github.com/sweetalert2/sweetalert2/wiki/Migration-from-SweetAlert-to-SweetAlert2#1-ie-support)');
|
2843 |
+
}
|
2844 |
+
|
2845 |
+
currentInstance = this;
|
2846 |
+
|
2847 |
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
2848 |
+
args[_key] = arguments[_key];
|
2849 |
+
}
|
2850 |
+
|
2851 |
+
var outerParams = Object.freeze(this.constructor.argsToParams(args));
|
2852 |
+
Object.defineProperties(this, {
|
2853 |
+
params: {
|
2854 |
+
value: outerParams,
|
2855 |
+
writable: false,
|
2856 |
+
enumerable: true,
|
2857 |
+
configurable: true
|
2858 |
+
}
|
2859 |
+
});
|
2860 |
+
|
2861 |
+
var promise = this._main(this.params);
|
2862 |
+
|
2863 |
+
privateProps.promise.set(this, promise);
|
2864 |
+
} // `catch` cannot be the name of a module export, so we define our thenable methods here instead
|
2865 |
+
|
2866 |
+
|
2867 |
+
SweetAlert.prototype.then = function (onFulfilled) {
|
2868 |
+
var promise = privateProps.promise.get(this);
|
2869 |
+
return promise.then(onFulfilled);
|
2870 |
+
};
|
2871 |
+
|
2872 |
+
SweetAlert.prototype["finally"] = function (onFinally) {
|
2873 |
+
var promise = privateProps.promise.get(this);
|
2874 |
+
return promise["finally"](onFinally);
|
2875 |
+
}; // Assign instance methods from src/instanceMethods/*.js to prototype
|
2876 |
+
|
2877 |
+
|
2878 |
+
_extends(SweetAlert.prototype, instanceMethods); // Assign static methods from src/staticMethods/*.js to constructor
|
2879 |
+
|
2880 |
+
|
2881 |
+
_extends(SweetAlert, staticMethods); // Proxy to instance methods to constructor, for now, for backwards compatibility
|
2882 |
+
|
2883 |
+
|
2884 |
+
Object.keys(instanceMethods).forEach(function (key) {
|
2885 |
+
SweetAlert[key] = function () {
|
2886 |
+
if (currentInstance) {
|
2887 |
+
var _currentInstance;
|
2888 |
+
|
2889 |
+
return (_currentInstance = currentInstance)[key].apply(_currentInstance, arguments);
|
2890 |
+
}
|
2891 |
+
};
|
2892 |
+
});
|
2893 |
+
SweetAlert.DismissReason = DismissReason;
|
2894 |
+
SweetAlert.version = '8.17.1';
|
2895 |
+
|
2896 |
+
var Swal = SweetAlert;
|
2897 |
+
Swal["default"] = Swal;
|
2898 |
+
|
2899 |
+
return Swal;
|
2900 |
+
|
2901 |
+
})));
|
2902 |
+
if (typeof this !== 'undefined' && this.Sweetalert2){ this.swal = this.sweetAlert = this.Swal = this.SweetAlert = this.Sweetalert2}
|
assets/js/sweetalert2/sweetalert2.min.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Sweetalert2=e()}(this,function(){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function a(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}function s(){return(s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(this,arguments)}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function l(t,e,n){return(l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()?Reflect.construct:function(t,e,n){var o=[null];o.push.apply(o,e);var i=new(Function.bind.apply(t,o));return n&&c(i,n.prototype),i}).apply(null,arguments)}function d(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function p(t,e,n){return(p="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var o=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=u(t)););return t}(t,e);if(o){var i=Object.getOwnPropertyDescriptor(o,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function f(e){return Object.keys(e).map(function(t){return e[t]})}function m(t){return Array.prototype.slice.call(t)}function g(t){console.error("".concat(e," ").concat(t))}function h(t,e){!function(t){-1===n.indexOf(t)&&(n.push(t),w(t))}('"'.concat(t,'" is deprecated and will be removed in the next major release. Please use "').concat(e,'" instead.'))}function v(t){return t&&Promise.resolve(t)===t}function t(t){var e={};for(var n in t)e[t[n]]="swal2-"+t[n];return e}function b(t,e){return t.classList.contains(e)}function y(e,t,n){m(e.classList).forEach(function(t){-1===f(x).indexOf(t)&&-1===f(S).indexOf(t)&&e.classList.remove(t)}),t&&t[n]&&rt(e,t[n])}var e="SweetAlert2:",w=function(t){console.warn("".concat(e," ").concat(t))},n=[],C=function(t){return"function"==typeof t?t():t},k=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),x=t(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","toast","toast-shown","toast-column","fade","show","hide","noanimation","close","title","header","content","actions","confirm","cancel","footer","icon","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl"]),S=t(["success","warning","info","question","error"]),P={previousBodyPadding:null};function B(t,e){if(!e)return null;switch(e){case"select":case"textarea":case"file":return st(t,x[e]);case"checkbox":return t.querySelector(".".concat(x.checkbox," input"));case"radio":return t.querySelector(".".concat(x.radio," input:checked"))||t.querySelector(".".concat(x.radio," input:first-child"));case"range":return t.querySelector(".".concat(x.range," input"));default:return st(t,x.input)}}function A(t){if(t.focus(),"file"!==t.type){var e=t.value;t.value="",t.value=e}}function E(t,e,n){t&&e&&("string"==typeof e&&(e=e.split(/\s+/).filter(Boolean)),e.forEach(function(e){t.forEach?t.forEach(function(t){n?t.classList.add(e):t.classList.remove(e)}):n?t.classList.add(e):t.classList.remove(e)}))}function T(t,e,n){n||0===parseInt(n)?t.style[e]="number"==typeof n?n+"px":n:t.style.removeProperty(e)}function L(t,e){var n=1<arguments.length&&void 0!==e?e:"flex";t.style.opacity="",t.style.display=n}function O(t){t.style.opacity="",t.style.display="none"}function M(t,e,n){e?L(t,n):O(t)}function V(t){return!(!t||!(t.offsetWidth||t.offsetHeight||t.getClientRects().length))}function H(t){var e=window.getComputedStyle(t),n=parseFloat(e.getPropertyValue("animation-duration")||"0"),o=parseFloat(e.getPropertyValue("transition-duration")||"0");return 0<n||0<o}function j(){return document.body.querySelector("."+x.container)}function I(t){var e=j();return e?e.querySelector(t):null}function q(t){return I("."+t)}function R(){return q(x.popup)}function D(){var t=R();return m(t.querySelectorAll("."+x.icon))}function N(){var t=D().filter(function(t){return V(t)});return t.length?t[0]:null}function U(){return q(x.title)}function F(){return q(x.content)}function _(){return q(x.image)}function z(){return q(x["progress-steps"])}function W(){return q(x["validation-message"])}function K(){return I("."+x.actions+" ."+x.confirm)}function Z(){return I("."+x.actions+" ."+x.cancel)}function Q(){return q(x.actions)}function Y(){return q(x.header)}function $(){return q(x.footer)}function J(){return q(x.close)}function X(){var t=m(R().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort(function(t,e){return t=parseInt(t.getAttribute("tabindex")),(e=parseInt(e.getAttribute("tabindex")))<t?1:t<e?-1:0}),e=m(R().querySelectorAll('\n a[href],\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n [tabindex="0"],\n [contenteditable],\n audio[controls],\n video[controls],\n summary\n')).filter(function(t){return"-1"!==t.getAttribute("tabindex")});return function(t){for(var e=[],n=0;n<t.length;n++)-1===e.indexOf(t[n])&&e.push(t[n]);return e}(t.concat(e)).filter(function(t){return V(t)})}function G(){return!ut()&&!document.body.classList.contains(x["no-backdrop"])}function tt(){return"undefined"==typeof window||"undefined"==typeof document}function et(t){Fe.isVisible()&&it!==t.target.value&&Fe.resetValidationMessage(),it=t.target.value}function nt(t,e){t instanceof HTMLElement?e.appendChild(t):"object"===r(t)?dt(e,t):t&&(e.innerHTML=t)}function ot(t,e){var n=Q(),o=K(),i=Z();e.showConfirmButton||e.showCancelButton||O(n),y(n,e.customClass,"actions"),ft(o,"confirm",e),ft(i,"cancel",e),e.buttonsStyling?function(t,e,n){rt([t,e],x.styled),n.confirmButtonColor&&(t.style.backgroundColor=n.confirmButtonColor);n.cancelButtonColor&&(e.style.backgroundColor=n.cancelButtonColor);var o=window.getComputedStyle(t).getPropertyValue("background-color");t.style.borderLeftColor=o,t.style.borderRightColor=o}(o,i,e):(at([o,i],x.styled),o.style.backgroundColor=o.style.borderLeftColor=o.style.borderRightColor="",i.style.backgroundColor=i.style.borderLeftColor=i.style.borderRightColor=""),e.reverseButtons&&o.parentNode.insertBefore(i,o)}var it,rt=function(t,e){E(t,e,!0)},at=function(t,e){E(t,e,!1)},st=function(t,e){for(var n=0;n<t.childNodes.length;n++)if(b(t.childNodes[n],e))return t.childNodes[n]},ut=function(){return document.body.classList.contains(x["toast-shown"])},ct='\n <div aria-labelledby="'.concat(x.title,'" aria-describedby="').concat(x.content,'" class="').concat(x.popup,'" tabindex="-1">\n <div class="').concat(x.header,'">\n <ul class="').concat(x["progress-steps"],'"></ul>\n <div class="').concat(x.icon," ").concat(S.error,'">\n <span class="swal2-x-mark"><span class="swal2-x-mark-line-left"></span><span class="swal2-x-mark-line-right"></span></span>\n </div>\n <div class="').concat(x.icon," ").concat(S.question,'"></div>\n <div class="').concat(x.icon," ").concat(S.warning,'"></div>\n <div class="').concat(x.icon," ").concat(S.info,'"></div>\n <div class="').concat(x.icon," ").concat(S.success,'">\n <div class="swal2-success-circular-line-left"></div>\n <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>\n <div class="swal2-success-circular-line-right"></div>\n </div>\n <img class="').concat(x.image,'" />\n <h2 class="').concat(x.title,'" id="').concat(x.title,'"></h2>\n <button type="button" class="').concat(x.close,'"></button>\n </div>\n <div class="').concat(x.content,'">\n <div id="').concat(x.content,'"></div>\n <input class="').concat(x.input,'" />\n <input type="file" class="').concat(x.file,'" />\n <div class="').concat(x.range,'">\n <input type="range" />\n <output></output>\n </div>\n <select class="').concat(x.select,'"></select>\n <div class="').concat(x.radio,'"></div>\n <label for="').concat(x.checkbox,'" class="').concat(x.checkbox,'">\n <input type="checkbox" />\n <span class="').concat(x.label,'"></span>\n </label>\n <textarea class="').concat(x.textarea,'"></textarea>\n <div class="').concat(x["validation-message"],'" id="').concat(x["validation-message"],'"></div>\n </div>\n <div class="').concat(x.actions,'">\n <button type="button" class="').concat(x.confirm,'">OK</button>\n <button type="button" class="').concat(x.cancel,'">Cancel</button>\n </div>\n <div class="').concat(x.footer,'">\n </div>\n </div>\n').replace(/(^|\n)\s*/g,""),lt=function(t){if(function(){var t=j();t&&(t.parentNode.removeChild(t),at([document.documentElement,document.body],[x["no-backdrop"],x["toast-shown"],x["has-column"]]))}(),tt())g("SweetAlert2 requires document to initialize");else{var e=document.createElement("div");e.className=x.container,e.innerHTML=ct;var n=function(t){return"string"==typeof t?document.querySelector(t):t}(t.target);n.appendChild(e),function(t){var e=R();e.setAttribute("role",t.toast?"alert":"dialog"),e.setAttribute("aria-live",t.toast?"polite":"assertive"),t.toast||e.setAttribute("aria-modal","true")}(t),function(t){"rtl"===window.getComputedStyle(t).direction&&rt(j(),x.rtl)}(n),function(){var t=F(),e=st(t,x.input),n=st(t,x.file),o=t.querySelector(".".concat(x.range," input")),i=t.querySelector(".".concat(x.range," output")),r=st(t,x.select),a=t.querySelector(".".concat(x.checkbox," input")),s=st(t,x.textarea);e.oninput=et,n.onchange=et,r.onchange=et,a.onchange=et,s.oninput=et,o.oninput=function(t){et(t),i.value=o.value},o.onchange=function(t){et(t),o.nextSibling.value=o.value}}()}},dt=function(t,e){if(t.innerHTML="",0 in e)for(var n=0;n in e;n++)t.appendChild(e[n].cloneNode(!0));else t.appendChild(e.cloneNode(!0))},pt=function(){if(tt())return!1;var t=document.createElement("div"),e={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd oanimationend",animation:"animationend"};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&void 0!==t.style[n])return e[n];return!1}();function ft(t,e,n){M(t,n["showC"+e.substring(1)+"Button"],"inline-block"),t.innerHTML=n[e+"ButtonText"],t.setAttribute("aria-label",n[e+"ButtonAriaLabel"]),t.className=x[e],y(t,n.customClass,e+"Button"),rt(t,n[e+"ButtonClass"])}function mt(t,e){var n=j();n&&(function(t,e){"string"==typeof e?t.style.background=e:e||rt([document.documentElement,document.body],x["no-backdrop"])}(n,e.backdrop),!e.backdrop&&e.allowOutsideClick&&w('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),function(t,e){e in x?rt(t,x[e]):(w('The "position" parameter is not valid, defaulting to "center"'),rt(t,x.center))}(n,e.position),function(t,e){if(e&&"string"==typeof e){var n="grow-"+e;n in x&&rt(t,x[n])}}(n,e.grow),y(n,e.customClass,"container"),e.customContainerClass&&rt(n,e.customContainerClass))}function gt(t,e){t.placeholder&&!e.inputPlaceholder||(t.placeholder=e.inputPlaceholder)}var ht={promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap},vt=["input","file","range","select","radio","checkbox","textarea"],bt=function(t){if(!Ct[t.input])return g('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(t.input,'"'));var e=Ct[t.input](t);L(e),setTimeout(function(){A(e)})},yt=function(t,e){var n=B(F(),t);if(n)for(var o in function(t){for(var e=0;e<t.attributes.length;e++){var n=t.attributes[e].name;-1===["type","value","style"].indexOf(n)&&t.removeAttribute(n)}}(n),e)"range"===t&&"placeholder"===o||n.setAttribute(o,e[o])},wt=function(t,e,n){t.className=e,n.inputClass&&rt(t,n.inputClass),n.customClass&&rt(t,n.customClass.input)},Ct={};Ct.text=Ct.email=Ct.password=Ct.number=Ct.tel=Ct.url=function(t){var e=st(F(),x.input);return"string"==typeof t.inputValue||"number"==typeof t.inputValue?e.value=t.inputValue:v(t.inputValue)||w('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(r(t.inputValue),'"')),gt(e,t),e.type=t.input,e},Ct.file=function(t){var e=st(F(),x.file);return gt(e,t),e.type=t.input,e},Ct.range=function(t){var e=st(F(),x.range),n=e.querySelector("input"),o=e.querySelector("output");return n.value=t.inputValue,n.type=t.input,o.value=t.inputValue,e},Ct.select=function(t){var e=st(F(),x.select);if(e.innerHTML="",t.inputPlaceholder){var n=document.createElement("option");n.innerHTML=t.inputPlaceholder,n.value="",n.disabled=!0,n.selected=!0,e.appendChild(n)}return e},Ct.radio=function(){var t=st(F(),x.radio);return t.innerHTML="",t},Ct.checkbox=function(t){var e=st(F(),x.checkbox),n=B(F(),"checkbox");return n.type="checkbox",n.value=1,n.id=x.checkbox,n.checked=Boolean(t.inputValue),e.querySelector("span").innerHTML=t.inputPlaceholder,e},Ct.textarea=function(t){var e=st(F(),x.textarea);if(e.value=t.inputValue,gt(e,t),"MutationObserver"in window){var n=parseInt(window.getComputedStyle(R()).width),o=parseInt(window.getComputedStyle(R()).paddingLeft)+parseInt(window.getComputedStyle(R()).paddingRight);new MutationObserver(function(){var t=e.offsetWidth+o;R().style.width=n<t?t+"px":null}).observe(e,{attributes:!0,attributeFilter:["style"]})}return e};function kt(t,e){var n=F().querySelector("#"+x.content);e.html?(nt(e.html,n),L(n,"block")):e.text?(n.textContent=e.text,L(n,"block")):O(n),function(t,o){var i=F(),e=ht.innerParams.get(t),r=!e||o.input!==e.input;vt.forEach(function(t){var e=x[t],n=st(i,e);yt(t,o.inputAttributes),wt(n,e,o),r&&O(n)}),o.input&&r&&bt(o)}(t,e),y(F(),e.customClass,"content")}function xt(t,i){var r=z();if(!i.progressSteps||0===i.progressSteps.length)return O(r);L(r),r.innerHTML="";var a=parseInt(null===i.currentProgressStep?Fe.getQueueStep():i.currentProgressStep);a>=i.progressSteps.length&&w("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),i.progressSteps.forEach(function(t,e){var n=function(t){var e=document.createElement("li");return rt(e,x["progress-step"]),e.innerHTML=t,e}(t);if(r.appendChild(n),e===a&&rt(n,x["active-progress-step"]),e!==i.progressSteps.length-1){var o=function(t){var e=document.createElement("li");return rt(e,x["progress-step-line"]),t.progressStepsDistance&&(e.style.width=t.progressStepsDistance),e}(t);r.appendChild(o)}})}function St(t,e){var n=Y();y(n,e.customClass,"header"),xt(0,e),function(t,e){var n=ht.innerParams.get(t);if(n&&e.type===n.type&&N())y(N(),e.customClass,"icon");else if(At(),e.type)if(Et(),-1!==Object.keys(S).indexOf(e.type)){var o=I(".".concat(x.icon,".").concat(S[e.type]));L(o),y(o,e.customClass,"icon"),E(o,"swal2-animate-".concat(e.type,"-icon"),e.animation)}else g('Unknown type! Expected "success", "error", "warning", "info" or "question", got "'.concat(e.type,'"'))}(t,e),function(t,e){var n=_();if(!e.imageUrl)return O(n);L(n),n.setAttribute("src",e.imageUrl),n.setAttribute("alt",e.imageAlt),T(n,"width",e.imageWidth),T(n,"height",e.imageHeight),n.className=x.image,y(n,e.customClass,"image"),e.imageClass&&rt(n,e.imageClass)}(0,e),function(t,e){var n=U();M(n,e.title||e.titleText),e.title&&nt(e.title,n),e.titleText&&(n.innerText=e.titleText),y(n,e.customClass,"title")}(0,e),function(t,e){var n=J();n.innerHTML=e.closeButtonHtml,y(n,e.customClass,"closeButton"),M(n,e.showCloseButton),n.setAttribute("aria-label",e.closeButtonAriaLabel)}(0,e)}function Pt(t,e){!function(t,e){var n=R();T(n,"width",e.width),T(n,"padding",e.padding),e.background&&(n.style.background=e.background),n.className=x.popup,e.toast?(rt([document.documentElement,document.body],x["toast-shown"]),rt(n,x.toast)):rt(n,x.modal),y(n,e.customClass,"popup"),"string"==typeof e.customClass&&rt(n,e.customClass),E(n,x.noanimation,!e.animation)}(0,e),mt(0,e),St(t,e),kt(t,e),ot(0,e),function(t,e){var n=$();M(n,e.footer),e.footer&&nt(e.footer,n),y(n,e.customClass,"footer")}(0,e),"function"==typeof e.onRender&&e.onRender(R())}function Bt(){return K()&&K().click()}var At=function(){for(var t=D(),e=0;e<t.length;e++)O(t[e])},Et=function(){for(var t=R(),e=window.getComputedStyle(t).getPropertyValue("background-color"),n=t.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix"),o=0;o<n.length;o++)n[o].style.backgroundColor=e};function Tt(){var t=R();t||Fe.fire(""),t=R();var e=Q(),n=K(),o=Z();L(e),L(n),rt([t,e],x.loading),n.disabled=!0,o.disabled=!0,t.setAttribute("data-loading",!0),t.setAttribute("aria-busy",!0),t.focus()}function Lt(){return new Promise(function(t){var e=window.scrollX,n=window.scrollY;Ht.restoreFocusTimeout=setTimeout(function(){Ht.previousActiveElement&&Ht.previousActiveElement.focus?(Ht.previousActiveElement.focus(),Ht.previousActiveElement=null):document.body&&document.body.focus(),t()},100),void 0!==e&&void 0!==n&&window.scrollTo(e,n)})}function Ot(t){return Object.prototype.hasOwnProperty.call(jt,t)}function Mt(t){return qt[t]}var Vt=[],Ht={},jt={title:"",titleText:"",text:"",html:"",footer:"",type:null,toast:!1,customClass:"",customContainerClass:"",target:"body",backdrop:!0,animation:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showCancelButton:!1,preConfirm:null,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:null,confirmButtonClass:"",cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:null,cancelButtonClass:"",buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusCancel:!1,showCloseButton:!1,closeButtonHtml:"×",closeButtonAriaLabel:"Close this dialog",showLoaderOnConfirm:!1,imageUrl:null,imageWidth:null,imageHeight:null,imageAlt:"",imageClass:"",timer:null,width:null,padding:null,background:null,input:null,inputPlaceholder:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputClass:"",inputAttributes:{},inputValidator:null,validationMessage:null,grow:!1,position:"center",progressSteps:[],currentProgressStep:null,progressStepsDistance:null,onBeforeOpen:null,onOpen:null,onRender:null,onClose:null,onAfterClose:null,scrollbarPadding:!0},It=["title","titleText","text","html","type","customClass","showConfirmButton","showCancelButton","confirmButtonText","confirmButtonAriaLabel","confirmButtonColor","confirmButtonClass","cancelButtonText","cancelButtonAriaLabel","cancelButtonColor","cancelButtonClass","buttonsStyling","reverseButtons","imageUrl","imageWidth","imageHeigth","imageAlt","imageClass","progressSteps","currentProgressStep"],qt={customContainerClass:"customClass",confirmButtonClass:"customClass",cancelButtonClass:"customClass",imageClass:"customClass",inputClass:"customClass"},Rt=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusCancel","heightAuto","keydownListenerCapture"],Dt=Object.freeze({isValidParameter:Ot,isUpdatableParameter:function(t){return-1!==It.indexOf(t)},isDeprecatedParameter:Mt,argsToParams:function(n){var o={};switch(r(n[0])){case"object":s(o,n[0]);break;default:["title","html","type"].forEach(function(t,e){switch(r(n[e])){case"string":o[t]=n[e];break;case"undefined":break;default:g("Unexpected type of ".concat(t,'! Expected "string", got ').concat(r(n[e])))}})}return o},isVisible:function(){return V(R())},clickConfirm:Bt,clickCancel:function(){return Z()&&Z().click()},getContainer:j,getPopup:R,getTitle:U,getContent:F,getImage:_,getIcon:N,getIcons:D,getCloseButton:J,getActions:Q,getConfirmButton:K,getCancelButton:Z,getHeader:Y,getFooter:$,getFocusableElements:X,getValidationMessage:W,isLoading:function(){return R().hasAttribute("data-loading")},fire:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return l(this,e)},mixin:function(n){return function(t){function e(){return o(this,e),d(this,u(e).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(e,t),a(e,[{key:"_main",value:function(t){return p(u(e.prototype),"_main",this).call(this,s({},n,t))}}]),e}(this)},queue:function(t){var r=this;Vt=t;function a(t,e){Vt=[],document.body.removeAttribute("data-swal2-queue-step"),t(e)}var s=[];return new Promise(function(i){!function e(n,o){n<Vt.length?(document.body.setAttribute("data-swal2-queue-step",n),r.fire(Vt[n]).then(function(t){void 0!==t.value?(s.push(t.value),e(n+1,o)):a(i,{dismiss:t.dismiss})})):a(i,{value:s})}(0)})},getQueueStep:function(){return document.body.getAttribute("data-swal2-queue-step")},insertQueueStep:function(t,e){return e&&e<Vt.length?Vt.splice(e,0,t):Vt.push(t)},deleteQueueStep:function(t){void 0!==Vt[t]&&Vt.splice(t,1)},showLoading:Tt,enableLoading:Tt,getTimerLeft:function(){return Ht.timeout&&Ht.timeout.getTimerLeft()},stopTimer:function(){return Ht.timeout&&Ht.timeout.stop()},resumeTimer:function(){return Ht.timeout&&Ht.timeout.start()},toggleTimer:function(){var t=Ht.timeout;return t&&(t.running?t.stop():t.start())},increaseTimer:function(t){return Ht.timeout&&Ht.timeout.increase(t)},isTimerRunning:function(){return Ht.timeout&&Ht.timeout.isRunning()}});function Nt(){var t=ht.innerParams.get(this),e=ht.domCache.get(this);t.showConfirmButton||(O(e.confirmButton),t.showCancelButton||O(e.actions)),at([e.popup,e.actions],x.loading),e.popup.removeAttribute("aria-busy"),e.popup.removeAttribute("data-loading"),e.confirmButton.disabled=!1,e.cancelButton.disabled=!1}function Ut(){null===P.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(P.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=P.previousBodyPadding+function(){if("ontouchstart"in window||navigator.msMaxTouchPoints)return 0;var t=document.createElement("div");t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t);var e=t.offsetWidth-t.clientWidth;return document.body.removeChild(t),e}()+"px")}function Ft(){return!!window.MSInputMethodContext&&!!document.documentMode}function _t(){var t=j(),e=R();t.style.removeProperty("align-items"),e.offsetTop<0&&(t.style.alignItems="flex-start")}var zt=function(){var e,n=j();n.ontouchstart=function(t){e=t.target===n||!function(t){return!!(t.scrollHeight>t.clientHeight)}(n)&&"INPUT"!==t.target.tagName},n.ontouchmove=function(t){e&&(t.preventDefault(),t.stopPropagation())}},Wt={swalPromiseResolve:new WeakMap};function Kt(t,e,n,o){n?$t(t,o):(Lt().then(function(){return $t(t,o)}),Ht.keydownTarget.removeEventListener("keydown",Ht.keydownHandler,{capture:Ht.keydownListenerCapture}),Ht.keydownHandlerAdded=!1),e.parentNode&&e.parentNode.removeChild(e),G()&&(null!==P.previousBodyPadding&&(document.body.style.paddingRight=P.previousBodyPadding+"px",P.previousBodyPadding=null),function(){if(b(document.body,x.iosfix)){var t=parseInt(document.body.style.top,10);at(document.body,x.iosfix),document.body.style.top="",document.body.scrollTop=-1*t}}(),"undefined"!=typeof window&&Ft()&&window.removeEventListener("resize",_t),m(document.body.children).forEach(function(t){t.hasAttribute("data-previous-aria-hidden")?(t.setAttribute("aria-hidden",t.getAttribute("data-previous-aria-hidden")),t.removeAttribute("data-previous-aria-hidden")):t.removeAttribute("aria-hidden")})),at([document.documentElement,document.body],[x.shown,x["height-auto"],x["no-backdrop"],x["toast-shown"],x["toast-column"]])}function Zt(t){var e=R();if(e&&!b(e,x.hide)){var n=ht.innerParams.get(this);if(n){var o=Wt.swalPromiseResolve.get(this);at(e,x.show),rt(e,x.hide),function(t,e,n){var o=j(),i=pt&&H(e),r=n.onClose,a=n.onAfterClose;if(r!==null&&typeof r==="function"){r(e)}if(i){Yt(t,e,o,a)}else{Kt(t,o,ut(),a)}}(this,e,n),o(t||{})}}}function Qt(t){for(var e in t)t[e]=new WeakMap}var Yt=function(t,e,n,o){Ht.swalCloseEventFinishedCallback=Kt.bind(null,t,n,ut(),o),e.addEventListener(pt,function(t){t.target===e&&(Ht.swalCloseEventFinishedCallback(),delete Ht.swalCloseEventFinishedCallback)})},$t=function(t,e){setTimeout(function(){null!==e&&"function"==typeof e&&e(),R()||function(t){delete t.params,delete Ht.keydownHandler,delete Ht.keydownTarget,Qt(ht),Qt(Wt)}(t)})};function Jt(t,e,n){var o=ht.domCache.get(t);e.forEach(function(t){o[t].disabled=n})}function Xt(t,e){if(!t)return!1;if("radio"===t.type)for(var n=t.parentNode.parentNode.querySelectorAll("input"),o=0;o<n.length;o++)n[o].disabled=e;else t.disabled=e}var Gt=function(){function n(t,e){o(this,n),this.callback=t,this.remaining=e,this.running=!1,this.start()}return a(n,[{key:"start",value:function(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}},{key:"stop",value:function(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date-this.started),this.remaining}},{key:"increase",value:function(t){var e=this.running;return e&&this.stop(),this.remaining+=t,e&&this.start(),this.remaining}},{key:"getTimerLeft",value:function(){return this.running&&(this.stop(),this.start()),this.remaining}},{key:"isRunning",value:function(){return this.running}}]),n}(),te={email:function(t,e){return/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid email address")},url:function(t,e){return/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid URL")}};function ee(t){!function(e){e.inputValidator||Object.keys(te).forEach(function(t){e.input===t&&(e.inputValidator=te[t])})}(t),t.showLoaderOnConfirm&&!t.preConfirm&&w("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),t.animation=C(t.animation),function(t){t.target&&("string"!=typeof t.target||document.querySelector(t.target))&&("string"==typeof t.target||t.target.appendChild)||(w('Target parameter is not valid, defaulting to "body"'),t.target="body")}(t),"string"==typeof t.title&&(t.title=t.title.split("\n").join("<br />")),lt(t)}function ne(t,e){t.removeEventListener(pt,ne),e.style.overflowY="auto"}function oe(t){var e=j(),n=R();"function"==typeof t.onBeforeOpen&&t.onBeforeOpen(n),fe(e,n,t),de(e,n),G()&&pe(e,t.scrollbarPadding),ut()||Ht.previousActiveElement||(Ht.previousActiveElement=document.activeElement),"function"==typeof t.onOpen&&setTimeout(function(){return t.onOpen(n)})}function ie(t,e){"select"===e.input||"radio"===e.input?me(t,e):-1!==["text","email","number","tel","textarea"].indexOf(e.input)&&v(e.inputValue)&&ge(t,e)}function re(t,e){t.disableButtons(),e.input?be(t,e):ye(t,e,!0)}function ae(t,e){t.disableButtons(),e(k.cancel)}function se(t,e){t.closePopup({value:e})}function ue(e,t,n,o){t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1),n.toast||(t.keydownHandler=function(t){return Be(e,t,n,o)},t.keydownTarget=n.keydownListenerCapture?window:R(),t.keydownListenerCapture=n.keydownListenerCapture,t.keydownTarget.addEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!0)}function ce(t,e,n){for(var o=X(t.focusCancel),i=0;i<o.length;i++)return(e+=n)===o.length?e=0:-1===e&&(e=o.length-1),o[e].focus();R().focus()}function le(t,e,n){e.toast?Oe(t,e,n):(Ve(t),He(t),je(t,e,n))}var de=function(t,e){pt&&H(e)?(t.style.overflowY="hidden",e.addEventListener(pt,ne.bind(null,e,t))):t.style.overflowY="auto"},pe=function(t,e){!function(){if(/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream&&!b(document.body,x.iosfix)){var t=document.body.scrollTop;document.body.style.top=-1*t+"px",rt(document.body,x.iosfix),zt()}}(),"undefined"!=typeof window&&Ft()&&(_t(),window.addEventListener("resize",_t)),m(document.body.children).forEach(function(t){t===j()||function(t,e){if("function"==typeof t.contains)return t.contains(e)}(t,j())||(t.hasAttribute("aria-hidden")&&t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden")),t.setAttribute("aria-hidden","true"))}),e&&Ut(),setTimeout(function(){t.scrollTop=0})},fe=function(t,e,n){n.animation&&(rt(e,x.show),rt(t,x.fade)),L(e),rt([document.documentElement,document.body,t],x.shown),n.heightAuto&&n.backdrop&&!n.toast&&rt([document.documentElement,document.body],x["height-auto"])},me=function(e,n){function o(t){return he[n.input](i,ve(t),n)}var i=F();v(n.inputOptions)?(Tt(),n.inputOptions.then(function(t){e.hideLoading(),o(t)})):"object"===r(n.inputOptions)?o(n.inputOptions):g("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(r(n.inputOptions)))},ge=function(e,n){var o=e.getInput();O(o),n.inputValue.then(function(t){o.value="number"===n.input?parseFloat(t)||0:t+"",L(o),o.focus(),e.hideLoading()}).catch(function(t){g("Error in inputValue promise: "+t),o.value="",L(o),o.focus(),e.hideLoading()})},he={select:function(t,e,i){var r=st(t,x.select);e.forEach(function(t){var e=t[0],n=t[1],o=document.createElement("option");o.value=e,o.innerHTML=n,i.inputValue.toString()===e.toString()&&(o.selected=!0),r.appendChild(o)}),r.focus()},radio:function(t,e,a){var s=st(t,x.radio);e.forEach(function(t){var e=t[0],n=t[1],o=document.createElement("input"),i=document.createElement("label");o.type="radio",o.name=x.radio,o.value=e,a.inputValue.toString()===e.toString()&&(o.checked=!0);var r=document.createElement("span");r.innerHTML=n,r.className=x.label,i.appendChild(o),i.appendChild(r),s.appendChild(i)});var n=s.querySelectorAll("input");n.length&&n[0].focus()}},ve=function(e){var n=[];return"undefined"!=typeof Map&&e instanceof Map?e.forEach(function(t,e){n.push([e,t])}):Object.keys(e).forEach(function(t){n.push([t,e[t]])}),n},be=function(e,n){var o=we(e,n);n.inputValidator?(e.disableInput(),Promise.resolve().then(function(){return n.inputValidator(o,n.validationMessage)}).then(function(t){e.enableButtons(),e.enableInput(),t?e.showValidationMessage(t):ye(e,n,o)})):e.getInput().checkValidity()?ye(e,n,o):(e.enableButtons(),e.showValidationMessage(n.validationMessage))},ye=function(e,t,n){(t.showLoaderOnConfirm&&Tt(),t.preConfirm)?(e.resetValidationMessage(),Promise.resolve().then(function(){return t.preConfirm(n,t.validationMessage)}).then(function(t){V(W())||!1===t?e.hideLoading():se(e,void 0===t?n:t)})):se(e,n)},we=function(t,e){var n=t.getInput();if(!n)return null;switch(e.input){case"checkbox":return Ce(n);case"radio":return ke(n);case"file":return xe(n);default:return e.inputAutoTrim?n.value.trim():n.value}},Ce=function(t){return t.checked?1:0},ke=function(t){return t.checked?t.value:null},xe=function(t){return t.files.length?t.files[0]:null},Se=["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Left","Right","Up","Down"],Pe=["Escape","Esc"],Be=function(t,e,n,o){n.stopKeydownPropagation&&e.stopPropagation(),"Enter"===e.key?Ae(t,e,n):"Tab"===e.key?Ee(e,n):-1!==Se.indexOf(e.key)?Te():-1!==Pe.indexOf(e.key)&&Le(e,n,o)},Ae=function(t,e,n){if(!e.isComposing&&e.target&&t.getInput()&&e.target.outerHTML===t.getInput().outerHTML){if(-1!==["textarea","file"].indexOf(n.input))return;Bt(),e.preventDefault()}},Ee=function(t,e){for(var n=t.target,o=X(e.focusCancel),i=-1,r=0;r<o.length;r++)if(n===o[r]){i=r;break}t.shiftKey?ce(e,i,-1):ce(e,i,1),t.stopPropagation(),t.preventDefault()},Te=function(){var t=K(),e=Z();document.activeElement===t&&V(e)?e.focus():document.activeElement===e&&V(t)&&t.focus()},Le=function(t,e,n){C(e.allowEscapeKey)&&(t.preventDefault(),n(k.esc))},Oe=function(t,e,n){t.popup.onclick=function(){e.showConfirmButton||e.showCancelButton||e.showCloseButton||e.input||n(k.close)}},Me=!1,Ve=function(e){e.popup.onmousedown=function(){e.container.onmouseup=function(t){e.container.onmouseup=void 0,t.target===e.container&&(Me=!0)}}},He=function(e){e.container.onmousedown=function(){e.popup.onmouseup=function(t){e.popup.onmouseup=void 0,t.target!==e.popup&&!e.popup.contains(t.target)||(Me=!0)}}},je=function(e,n,o){e.container.onclick=function(t){Me?Me=!1:t.target===e.container&&C(n.allowOutsideClick)&&o(k.backdrop)}};var Ie=function(t,e,n){e.timer&&(t.timeout=new Gt(function(){n("timer"),delete t.timeout},e.timer))},qe=function(t,e){if(!e.toast)return C(e.allowEnterKey)?e.focusCancel&&V(t.cancelButton)?t.cancelButton.focus():e.focusConfirm&&V(t.confirmButton)?t.confirmButton.focus():void ce(e,-1,1):Re()},Re=function(){document.activeElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};var De,Ne=Object.freeze({hideLoading:Nt,disableLoading:Nt,getInput:function(t){var e=ht.innerParams.get(t||this),n=ht.domCache.get(t||this);return n?B(n.content,e.input):null},close:Zt,closePopup:Zt,closeModal:Zt,closeToast:Zt,enableButtons:function(){Jt(this,["confirmButton","cancelButton"],!1)},disableButtons:function(){Jt(this,["confirmButton","cancelButton"],!0)},enableConfirmButton:function(){h("Swal.enableConfirmButton()","Swal.getConfirmButton().removeAttribute('disabled')"),Jt(this,["confirmButton"],!1)},disableConfirmButton:function(){h("Swal.disableConfirmButton()","Swal.getConfirmButton().setAttribute('disabled', '')"),Jt(this,["confirmButton"],!0)},enableInput:function(){return Xt(this.getInput(),!1)},disableInput:function(){return Xt(this.getInput(),!0)},showValidationMessage:function(t){var e=ht.domCache.get(this);e.validationMessage.innerHTML=t;var n=window.getComputedStyle(e.popup);e.validationMessage.style.marginLeft="-".concat(n.getPropertyValue("padding-left")),e.validationMessage.style.marginRight="-".concat(n.getPropertyValue("padding-right")),L(e.validationMessage);var o=this.getInput();o&&(o.setAttribute("aria-invalid",!0),o.setAttribute("aria-describedBy",x["validation-message"]),A(o),rt(o,x.inputerror))},resetValidationMessage:function(){var t=ht.domCache.get(this);t.validationMessage&&O(t.validationMessage);var e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedBy"),at(e,x.inputerror))},getProgressSteps:function(){return h("Swal.getProgressSteps()","const swalInstance = Swal.fire({progressSteps: ['1', '2', '3']}); const progressSteps = swalInstance.params.progressSteps"),ht.innerParams.get(this).progressSteps},setProgressSteps:function(t){h("Swal.setProgressSteps()","Swal.update()");var e=s({},ht.innerParams.get(this),{progressSteps:t});xt(0,e),ht.innerParams.set(this,e)},showProgressSteps:function(){var t=ht.domCache.get(this);L(t.progressSteps)},hideProgressSteps:function(){var t=ht.domCache.get(this);O(t.progressSteps)},_main:function(t){!function(t){for(var e in t)Ot(i=e)||w('Unknown parameter "'.concat(i,'"')),t.toast&&(o=e,-1!==Rt.indexOf(o)&&w('The parameter "'.concat(o,'" is incompatible with toasts'))),Mt(n=void 0)&&h(n,Mt(n));var n,o,i}(t),R()&&Ht.swalCloseEventFinishedCallback&&(Ht.swalCloseEventFinishedCallback(),delete Ht.swalCloseEventFinishedCallback),Ht.deferDisposalTimer&&(clearTimeout(Ht.deferDisposalTimer),delete Ht.deferDisposalTimer);var e=s({},jt,t);ee(e),Object.freeze(e),Ht.timeout&&(Ht.timeout.stop(),delete Ht.timeout),clearTimeout(Ht.restoreFocusTimeout);var n=function(t){var e={popup:R(),container:j(),content:F(),actions:Q(),confirmButton:K(),cancelButton:Z(),closeButton:J(),validationMessage:W(),progressSteps:z()};return ht.domCache.set(t,e),e}(this);return Pt(this,e),ht.innerParams.set(this,e),function(n,o,i){return new Promise(function(t){var e=function t(e){n.closePopup({dismiss:e})};Wt.swalPromiseResolve.set(n,t);Ie(Ht,i,e);o.confirmButton.onclick=function(){return re(n,i)};o.cancelButton.onclick=function(){return ae(n,e)};o.closeButton.onclick=function(){return e(k.close)};le(o,i,e);ue(n,Ht,i,e);if(i.toast&&(i.input||i.footer||i.showCloseButton)){rt(document.body,x["toast-column"])}else{at(document.body,x["toast-column"])}ie(n,i);oe(i);qe(o,i);o.container.scrollTop=0})}(this,n,e)},update:function(e){var n={};Object.keys(e).forEach(function(t){Fe.isUpdatableParameter(t)?n[t]=e[t]:w('Invalid parameter to update: "'.concat(t,'". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js'))});var t=s({},ht.innerParams.get(this),n);Pt(this,t),ht.innerParams.set(this,t),Object.defineProperties(this,{params:{value:s({},this.params,e),writable:!1,enumerable:!0}})}});function Ue(){if("undefined"!=typeof window){"undefined"==typeof Promise&&g("This package requires a Promise library, please include a shim to enable it in this browser (See: https://github.com/sweetalert2/sweetalert2/wiki/Migration-from-SweetAlert-to-SweetAlert2#1-ie-support)"),De=this;for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var o=Object.freeze(this.constructor.argsToParams(e));Object.defineProperties(this,{params:{value:o,writable:!1,enumerable:!0,configurable:!0}});var i=this._main(this.params);ht.promise.set(this,i)}}Ue.prototype.then=function(t){return ht.promise.get(this).then(t)},Ue.prototype.finally=function(t){return ht.promise.get(this).finally(t)},s(Ue.prototype,Ne),s(Ue,Dt),Object.keys(Ne).forEach(function(e){Ue[e]=function(){var t;if(De)return(t=De)[e].apply(t,arguments)}}),Ue.DismissReason=k,Ue.version="8.17.1";var Fe=Ue;return Fe.default=Fe}),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2);
|
includes/abstracts/abstract-ur-form-field.php
CHANGED
@@ -380,7 +380,7 @@ abstract class UR_Form_Field {
|
|
380 |
$class = 'ur-general-setting-' . $strip_prefix;
|
381 |
|
382 |
echo "<div class='ur-general-setting-block " . esc_attr( $class ) . "'>";
|
383 |
-
echo '<h2>' . esc_html__( 'General Settings', 'user-registration' ) . '</h2>';
|
384 |
echo $this->get_field_general_settings();
|
385 |
echo '</div>';
|
386 |
|
@@ -388,7 +388,7 @@ abstract class UR_Form_Field {
|
|
388 |
|
389 |
if ( '' != $advance_settings ) {
|
390 |
echo "<div class='ur-advance-setting-block'>";
|
391 |
-
echo '<h2>' . __( 'Advance Settings', 'user-registration' ) . '</h2>';
|
392 |
echo $advance_settings;
|
393 |
echo '</div>';
|
394 |
}
|
380 |
$class = 'ur-general-setting-' . $strip_prefix;
|
381 |
|
382 |
echo "<div class='ur-general-setting-block " . esc_attr( $class ) . "'>";
|
383 |
+
echo '<h2>' . esc_html__( 'General Settings', 'user-registration' ) . '</h2><hr>';
|
384 |
echo $this->get_field_general_settings();
|
385 |
echo '</div>';
|
386 |
|
388 |
|
389 |
if ( '' != $advance_settings ) {
|
390 |
echo "<div class='ur-advance-setting-block'>";
|
391 |
+
echo '<h2>' . __( 'Advance Settings', 'user-registration' ) . '</h2><hr>';
|
392 |
echo $advance_settings;
|
393 |
echo '</div>';
|
394 |
}
|
includes/admin/class-ur-admin-assets.php
CHANGED
@@ -42,9 +42,11 @@ class UR_Admin_Assets {
|
|
42 |
wp_register_style( 'user-registration-menu', UR()->plugin_url() . '/assets/css/menu.css', array(), UR_VERSION );
|
43 |
wp_register_style( 'user-registration-form-modal-css', UR()->plugin_url() . '/assets/css/form-modal.css', array(), UR_VERSION );
|
44 |
|
45 |
-
wp_register_style( 'user-registration-admin', UR()->plugin_url() . '/assets/css/admin.css', array( 'nav-menus' ), UR_VERSION );
|
46 |
wp_register_style( 'jquery-ui-style', '//code.jquery.com/ui/' . $jquery_version . '/themes/smoothness/jquery-ui.css', array(), $jquery_version );
|
47 |
wp_register_style( 'flatpickr', UR()->plugin_url() . '/assets/css/flatpickr/flatpickr.min.css', '4.5.1' );
|
|
|
|
|
48 |
|
49 |
wp_register_style( 'user-registration-dashboard-widget', UR()->plugin_url() . '/assets/css/dashboard.css', UR_VERSION );
|
50 |
|
@@ -69,6 +71,8 @@ class UR_Admin_Assets {
|
|
69 |
wp_enqueue_style( 'user-registration-admin' );
|
70 |
wp_enqueue_style( 'jquery-ui-style' );
|
71 |
wp_enqueue_style( 'wp-color-picker' );
|
|
|
|
|
72 |
}
|
73 |
|
74 |
// Enqueue flatpickr on user profile screen.
|
@@ -98,6 +102,7 @@ class UR_Admin_Assets {
|
|
98 |
array(
|
99 |
'jquery',
|
100 |
'selectWoo',
|
|
|
101 |
'jquery-blockui',
|
102 |
'jquery-tiptip',
|
103 |
'jquery-ui-sortable',
|
@@ -106,10 +111,10 @@ class UR_Admin_Assets {
|
|
106 |
'jquery-ui-tabs',
|
107 |
'jquery-ui-draggable',
|
108 |
'jquery-ui-droppable',
|
109 |
-
'jquery-tiptip',
|
110 |
'ur-backbone-modal',
|
111 |
'ur-enhanced-select',
|
112 |
-
|
|
|
113 |
),
|
114 |
UR_VERSION
|
115 |
);
|
@@ -140,11 +145,16 @@ class UR_Admin_Assets {
|
|
140 |
);
|
141 |
|
142 |
wp_register_script( 'flatpickr', UR()->plugin_url() . '/assets/js/flatpickr/flatpickr.min.js', array( 'jquery' ), '1.17.0' );
|
|
|
|
|
143 |
wp_register_script( 'ur-my-account', UR()->plugin_url() . '/assets/js/frontend/my-account' . $suffix . '.js', array( 'jquery' ), UR_VERSION );
|
144 |
-
wp_localize_script(
|
145 |
-
|
146 |
-
|
147 |
-
|
|
|
|
|
|
|
148 |
)
|
149 |
);
|
150 |
|
@@ -210,6 +220,7 @@ class UR_Admin_Assets {
|
|
210 |
'ajax_url' => admin_url( 'admin-ajax.php' ),
|
211 |
'user_input_dropped' => wp_create_nonce( 'user_input_dropped_nonce' ),
|
212 |
'ur_form_save' => wp_create_nonce( 'ur_form_save_nonce' ),
|
|
|
213 |
'number_of_grid' => UR_Config::$ur_form_grid,
|
214 |
'active_grid' => UR_Config::$default_active_grid,
|
215 |
'is_edit_form' => isset( $_GET['edit-registration'] ) ? true : false,
|
@@ -218,6 +229,7 @@ class UR_Admin_Assets {
|
|
218 |
'form_required_fields' => ur_get_required_fields(),
|
219 |
'form_one_time_draggable_fields' => ur_get_one_time_draggable_fields(),
|
220 |
'i18n_admin' => self::get_i18n_admin_data(),
|
|
|
221 |
|
222 |
);
|
223 |
|
@@ -244,6 +256,9 @@ class UR_Admin_Assets {
|
|
244 |
)
|
245 |
);
|
246 |
}
|
|
|
|
|
|
|
247 |
}
|
248 |
|
249 |
/**
|
42 |
wp_register_style( 'user-registration-menu', UR()->plugin_url() . '/assets/css/menu.css', array(), UR_VERSION );
|
43 |
wp_register_style( 'user-registration-form-modal-css', UR()->plugin_url() . '/assets/css/form-modal.css', array(), UR_VERSION );
|
44 |
|
45 |
+
wp_register_style( 'user-registration-admin', UR()->plugin_url() . '/assets/css/admin.css', array( 'nav-menus', 'wp-color-picker' ), UR_VERSION );
|
46 |
wp_register_style( 'jquery-ui-style', '//code.jquery.com/ui/' . $jquery_version . '/themes/smoothness/jquery-ui.css', array(), $jquery_version );
|
47 |
wp_register_style( 'flatpickr', UR()->plugin_url() . '/assets/css/flatpickr/flatpickr.min.css', '4.5.1' );
|
48 |
+
wp_register_style( 'perfect-scrollbar', UR()->plugin_url() . '/assets/css/perfect-scrollbar/perfect-scrollbar.css', array(), '1.4.0' );
|
49 |
+
wp_register_style( 'sweetalert2', UR()->plugin_url() . '/assets/css/sweetalert2/sweetalert2.min.css', array(), '8.17.1' );
|
50 |
|
51 |
wp_register_style( 'user-registration-dashboard-widget', UR()->plugin_url() . '/assets/css/dashboard.css', UR_VERSION );
|
52 |
|
71 |
wp_enqueue_style( 'user-registration-admin' );
|
72 |
wp_enqueue_style( 'jquery-ui-style' );
|
73 |
wp_enqueue_style( 'wp-color-picker' );
|
74 |
+
wp_enqueue_style( 'perfect-scrollbar' );
|
75 |
+
wp_enqueue_style( 'sweetalert2' );
|
76 |
}
|
77 |
|
78 |
// Enqueue flatpickr on user profile screen.
|
102 |
array(
|
103 |
'jquery',
|
104 |
'selectWoo',
|
105 |
+
'wp-color-picker',
|
106 |
'jquery-blockui',
|
107 |
'jquery-tiptip',
|
108 |
'jquery-ui-sortable',
|
111 |
'jquery-ui-tabs',
|
112 |
'jquery-ui-draggable',
|
113 |
'jquery-ui-droppable',
|
|
|
114 |
'ur-backbone-modal',
|
115 |
'ur-enhanced-select',
|
116 |
+
'perfect-scrollbar',
|
117 |
+
'sweetalert2',
|
118 |
),
|
119 |
UR_VERSION
|
120 |
);
|
145 |
);
|
146 |
|
147 |
wp_register_script( 'flatpickr', UR()->plugin_url() . '/assets/js/flatpickr/flatpickr.min.js', array( 'jquery' ), '1.17.0' );
|
148 |
+
wp_register_script( 'perfect-scrollbar', UR()->plugin_url() . '/assets/js/perfect-scrollbar/perfect-scrollbar.min.js', array( 'jquery' ), '1.4.0' );
|
149 |
+
wp_register_script( 'sweetalert2', UR()->plugin_url() . '/assets/js/sweetalert2/sweetalert2.min.js', array( 'jquery' ), '8.17.1' );
|
150 |
wp_register_script( 'ur-my-account', UR()->plugin_url() . '/assets/js/frontend/my-account' . $suffix . '.js', array( 'jquery' ), UR_VERSION );
|
151 |
+
wp_localize_script(
|
152 |
+
'ur-my-account',
|
153 |
+
'ur_my_account_params',
|
154 |
+
array(
|
155 |
+
'upload_image' => __( 'Upload Profile Picture', 'user-registration' ),
|
156 |
+
'select_image' => __( 'Select Image', 'user-registration' ),
|
157 |
+
'current_user_can' => current_user_can( 'edit_others_posts' ),
|
158 |
)
|
159 |
);
|
160 |
|
220 |
'ajax_url' => admin_url( 'admin-ajax.php' ),
|
221 |
'user_input_dropped' => wp_create_nonce( 'user_input_dropped_nonce' ),
|
222 |
'ur_form_save' => wp_create_nonce( 'ur_form_save_nonce' ),
|
223 |
+
'ur_import_form_save' => wp_create_nonce( 'ur_import_form_save_nonce' ),
|
224 |
'number_of_grid' => UR_Config::$ur_form_grid,
|
225 |
'active_grid' => UR_Config::$default_active_grid,
|
226 |
'is_edit_form' => isset( $_GET['edit-registration'] ) ? true : false,
|
229 |
'form_required_fields' => ur_get_required_fields(),
|
230 |
'form_one_time_draggable_fields' => ur_get_one_time_draggable_fields(),
|
231 |
'i18n_admin' => self::get_i18n_admin_data(),
|
232 |
+
'add_new' => esc_html( 'Add New', 'user-registratoin' ),
|
233 |
|
234 |
);
|
235 |
|
256 |
)
|
257 |
);
|
258 |
}
|
259 |
+
|
260 |
+
wp_register_script( 'ur-live-user-notice', UR()->plugin_url() . '/assets/js/admin/live-user-notice' . $suffix . '.js', array( 'jquery', 'heartbeat' ), UR_VERSION );
|
261 |
+
wp_enqueue_script( 'ur-live-user-notice' );
|
262 |
}
|
263 |
|
264 |
/**
|
includes/admin/class-ur-admin-import-export-forms.php
ADDED
@@ -0,0 +1,216 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Import / Export Forms
|
4 |
+
*
|
5 |
+
* @package UserRegistration/Admin
|
6 |
+
* @since 1.5.0
|
7 |
+
*/
|
8 |
+
|
9 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
10 |
+
exit; // Exit if accessed directly.
|
11 |
+
}
|
12 |
+
|
13 |
+
/**
|
14 |
+
* UR_Admin_Import_Export_Forms Class.
|
15 |
+
*/
|
16 |
+
class UR_Admin_Import_Export_Forms {
|
17 |
+
|
18 |
+
/**
|
19 |
+
* Constructor
|
20 |
+
*/
|
21 |
+
public function __construct() {
|
22 |
+
add_action( 'admin_init', array( $this, 'export_json' ) );
|
23 |
+
}
|
24 |
+
|
25 |
+
/**
|
26 |
+
* Outputs Export Users Page
|
27 |
+
*
|
28 |
+
* @return void
|
29 |
+
*/
|
30 |
+
public static function output() {
|
31 |
+
$all_forms = ur_get_all_user_registration_form();
|
32 |
+
include_once dirname( __FILE__ ) . '/views/html-admin-page-import-export-forms.php';
|
33 |
+
}
|
34 |
+
|
35 |
+
/**
|
36 |
+
* Exports form data along with settings in JSON format.
|
37 |
+
*
|
38 |
+
* @return void
|
39 |
+
*/
|
40 |
+
public function export_json() {
|
41 |
+
|
42 |
+
global $wpdb;
|
43 |
+
|
44 |
+
// Check for non empty $_POST.
|
45 |
+
if ( ! isset( $_POST['user_registration_export_form'] ) ) {
|
46 |
+
return;
|
47 |
+
}
|
48 |
+
|
49 |
+
// Nonce check.
|
50 |
+
if ( empty( $_REQUEST['_wpnonce'] ) || ! wp_verify_nonce( $_REQUEST['_wpnonce'], 'user-registration-settings' ) ) {
|
51 |
+
die( __( 'Action failed. Please refresh the page and retry.', 'user-registration' ) );
|
52 |
+
}
|
53 |
+
|
54 |
+
$form_id = isset( $_POST['formid'] ) ? $_POST['formid'] : 0;
|
55 |
+
|
56 |
+
// Return if form id is not set and current user doesnot have export capability.
|
57 |
+
if ( ! isset( $form_id ) || ! current_user_can( 'export' ) ) {
|
58 |
+
return;
|
59 |
+
}
|
60 |
+
|
61 |
+
$form_post = get_post( $form_id );
|
62 |
+
$meta_key_prefix = 'user_registration';
|
63 |
+
$form_post_meta = $this->get_post_meta_by_prefix( $form_id, $meta_key_prefix );
|
64 |
+
|
65 |
+
$export_data = array(
|
66 |
+
'form_post' => array(
|
67 |
+
'post_content' => $form_post->post_content,
|
68 |
+
'post_title' => $form_post->post_title,
|
69 |
+
'post_name' => $form_post->post_name,
|
70 |
+
'post_type' => $form_post->post_type,
|
71 |
+
'post_status' => $form_post->post_status,
|
72 |
+
),
|
73 |
+
'form_post_meta' => (array) $form_post_meta,
|
74 |
+
);
|
75 |
+
|
76 |
+
$form_name = strtolower( str_replace( ' ', '-', get_the_title( $form_id ) ) );
|
77 |
+
$file_name = $form_name . '-' . current_time( 'Y-m-d_H:i:s' ) . '.json';
|
78 |
+
|
79 |
+
if ( ob_get_contents() ) {
|
80 |
+
ob_clean();
|
81 |
+
}
|
82 |
+
|
83 |
+
$export_json = wp_json_encode( $export_data );
|
84 |
+
// Force download.
|
85 |
+
header( 'Content-Type: application/force-download' );
|
86 |
+
|
87 |
+
// Disposition / Encoding on response body.
|
88 |
+
header( "Content-Disposition: attachment;filename={$file_name}" );
|
89 |
+
header( 'Content-type: application/json' );
|
90 |
+
|
91 |
+
echo $export_json; // phpcs:ignore WordPress.Security.EscapeOutput
|
92 |
+
exit();
|
93 |
+
}
|
94 |
+
|
95 |
+
|
96 |
+
/**
|
97 |
+
* Get post meta for a given key prefix.
|
98 |
+
*
|
99 |
+
* @param int $post_id User ID of the user being edited.
|
100 |
+
* @param string $key_prefix Prefix.
|
101 |
+
* @return array
|
102 |
+
*/
|
103 |
+
protected function get_post_meta_by_prefix( $post_id, $key_prefix ) {
|
104 |
+
|
105 |
+
$values = get_post_meta( $post_id );
|
106 |
+
$return_values = array();
|
107 |
+
|
108 |
+
if ( gettype( $values ) !== 'array' ) {
|
109 |
+
return $return_values;
|
110 |
+
}
|
111 |
+
|
112 |
+
foreach ( $values as $meta_key => $value ) {
|
113 |
+
if ( substr( $meta_key, 0, strlen( $key_prefix ) ) === $key_prefix ) {
|
114 |
+
if ( isset( $value[0] ) ) {
|
115 |
+
$return_values[ $meta_key ] = $value[0];
|
116 |
+
} elseif ( 'string' === gettype( $values ) ) {
|
117 |
+
$return_values[ $meta_key ] = $value;
|
118 |
+
}
|
119 |
+
}
|
120 |
+
}
|
121 |
+
|
122 |
+
return $return_values;
|
123 |
+
}
|
124 |
+
|
125 |
+
/**
|
126 |
+
* Import Form from backend.
|
127 |
+
*/
|
128 |
+
public static function import_form() {
|
129 |
+
|
130 |
+
// Check for $_FILES set or not.
|
131 |
+
if ( isset( $_FILES['jsonfile'] ) ) {
|
132 |
+
|
133 |
+
$filename = esc_html( sanitize_text_field( $_FILES['jsonfile']['name'] ) ); // Get file name.
|
134 |
+
$ext = pathinfo( $filename, PATHINFO_EXTENSION ); // Get file extention.
|
135 |
+
|
136 |
+
// Check for file format.
|
137 |
+
if ( 'json' === $ext ) {
|
138 |
+
|
139 |
+
// read json file.
|
140 |
+
$form_data = json_decode( file_get_contents( $_FILES['jsonfile']['tmp_name'] ) ); // @codingStandardsIgnoreLine
|
141 |
+
|
142 |
+
// check for non empty json file.
|
143 |
+
if ( ! empty( $form_data ) ) {
|
144 |
+
|
145 |
+
// check for non empty post data array.
|
146 |
+
if ( ! empty( $form_data->form_post ) ) {
|
147 |
+
|
148 |
+
// If Form Title already exist concat it with imported tag.
|
149 |
+
$args = array( 'post_type' => 'user_registration' );
|
150 |
+
$forms = get_posts( $args );
|
151 |
+
foreach ( $forms as $key => $form_obj ) {
|
152 |
+
if ( $form_data->form_post->post_title === $form_obj->post_title ) {
|
153 |
+
$form_data->form_post->post_title = $form_data->form_post->post_title . ' (Imported)';
|
154 |
+
break;
|
155 |
+
}
|
156 |
+
}
|
157 |
+
|
158 |
+
$post_id = wp_insert_post( $form_data->form_post );
|
159 |
+
|
160 |
+
// Check for any error while inserting.
|
161 |
+
if ( is_wp_error( $post_id ) ) {
|
162 |
+
return $post_id;
|
163 |
+
}
|
164 |
+
if ( $post_id ) {
|
165 |
+
|
166 |
+
// check for non empty post_meta array.
|
167 |
+
if ( ! empty( $form_data->form_post_meta ) ) {
|
168 |
+
$all_roles = ur_get_default_admin_roles();
|
169 |
+
|
170 |
+
foreach ( $form_data->form_post_meta as $meta_key => $meta_value ) {
|
171 |
+
|
172 |
+
// If user role does not exists in new site then set default as subscriber.
|
173 |
+
if ( 'user_registration_form_setting_default_user_role' === $meta_key ) {
|
174 |
+
$meta_value = array_key_exists( $meta_value, $all_roles ) ? $meta_value : 'subscriber';
|
175 |
+
}
|
176 |
+
add_post_meta( $post_id, $meta_key, $meta_value );
|
177 |
+
}
|
178 |
+
wp_send_json_success(
|
179 |
+
array(
|
180 |
+
'message' => __( 'Imported Successfully.', 'user-registration' ),
|
181 |
+
)
|
182 |
+
);
|
183 |
+
}
|
184 |
+
}
|
185 |
+
} else {
|
186 |
+
wp_send_json_error(
|
187 |
+
array(
|
188 |
+
'message' => __( 'Invalid file content. Please export file from user registration plugin.', 'user-registration' ),
|
189 |
+
)
|
190 |
+
);
|
191 |
+
}
|
192 |
+
} else {
|
193 |
+
wp_send_json_error(
|
194 |
+
array(
|
195 |
+
'message' => __( 'Invalid file content. Please export file from user registration plugin.', 'user-registration' ),
|
196 |
+
)
|
197 |
+
);
|
198 |
+
}
|
199 |
+
} else {
|
200 |
+
wp_send_json_error(
|
201 |
+
array(
|
202 |
+
'message' => __( 'Invalid file format. Only Json File Allowed.', 'user-registration' ),
|
203 |
+
)
|
204 |
+
);
|
205 |
+
}
|
206 |
+
} else {
|
207 |
+
wp_send_json_error(
|
208 |
+
array(
|
209 |
+
'message' => __( 'Please select json file to import form data.', 'user-registration' ),
|
210 |
+
)
|
211 |
+
);
|
212 |
+
}
|
213 |
+
}
|
214 |
+
}
|
215 |
+
|
216 |
+
new UR_Admin_Import_Export_Forms();
|
includes/admin/class-ur-admin-menus.php
CHANGED
@@ -554,9 +554,11 @@ if ( ! class_exists( 'UR_Admin_Menus', false ) ) :
|
|
554 |
private function get_edit_form_field( $post_data ) {
|
555 |
|
556 |
if ( isset( $post_data[0] ) ) {
|
557 |
-
$form_data
|
|
|
558 |
} else {
|
559 |
-
$form_data
|
|
|
560 |
}
|
561 |
|
562 |
try {
|
@@ -569,29 +571,78 @@ if ( ! class_exists( 'UR_Admin_Menus', false ) ) :
|
|
569 |
$form_data_array = array();
|
570 |
}
|
571 |
|
572 |
-
|
|
|
573 |
|
574 |
-
|
|
|
|
|
|
|
|
|
|
|
575 |
|
576 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
577 |
|
578 |
-
|
|
|
579 |
|
580 |
-
|
581 |
-
|
|
|
582 |
|
583 |
-
$
|
584 |
|
585 |
-
|
586 |
-
|
587 |
-
|
588 |
|
589 |
-
|
|
|
590 |
|
591 |
-
|
592 |
-
|
593 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
594 |
|
|
|
595 |
echo '<div class="ur-grid-lists">';
|
596 |
|
597 |
$grid_id = 0;
|
@@ -627,7 +678,9 @@ if ( ! class_exists( 'UR_Admin_Menus', false ) ) :
|
|
627 |
echo '</div>';
|
628 |
|
629 |
}// End foreach().
|
630 |
-
echo '<button type="button" class="dashicons dashicons-plus-alt ur-add-new-row"
|
|
|
|
|
631 |
echo '</div>';
|
632 |
}
|
633 |
|
554 |
private function get_edit_form_field( $post_data ) {
|
555 |
|
556 |
if ( isset( $post_data[0] ) ) {
|
557 |
+
$form_data = $post_data[0]->post_content;
|
558 |
+
$form_row_ids = get_post_meta( $post_data[0]->ID, 'user_registration_form_row_ids', true );
|
559 |
} else {
|
560 |
+
$form_data = '';
|
561 |
+
$form_row_ids = '';
|
562 |
}
|
563 |
|
564 |
try {
|
571 |
$form_data_array = array();
|
572 |
}
|
573 |
|
574 |
+
try {
|
575 |
+
$form_row_ids_array = json_decode( $form_row_ids );
|
576 |
|
577 |
+
if ( json_last_error() != JSON_ERROR_NONE ) {
|
578 |
+
throw new Exception( '' );
|
579 |
+
}
|
580 |
+
} catch ( Exception $e ) {
|
581 |
+
$form_row_ids_array = array();
|
582 |
+
}
|
583 |
|
584 |
+
echo '<div class="ur-selected-inputs">';
|
585 |
+
echo '<div class="ur-builder-wrapper-content">';
|
586 |
+
?>
|
587 |
+
<div class="ur-builder-header">
|
588 |
+
<div class="ur-form-name-wrapper">
|
589 |
+
<?php
|
590 |
+
$form_title = isset( $post_data[0]->post_title ) ? trim( $post_data[0]->post_title ) : __( 'Untitled', 'user-registration' );
|
591 |
+
?>
|
592 |
+
<input name="ur-form-name" id="ur-form-name" type="text" class="ur-form-name regular-text menu-item-textbox" value="<?php echo esc_html( $form_title ); ?>">
|
593 |
+
<span class="ur-edit-form-name dashicons dashicons-edit"></span>
|
594 |
+
</div>
|
595 |
+
<div class="ur-builder-header-right">
|
596 |
+
<?php do_action( 'user_registration_builder_header_extra', $post_data[0]->ID, $form_data_array ); ?>
|
597 |
+
</div>
|
598 |
+
</div>
|
599 |
+
<?php
|
600 |
+
echo '<div class="ur-input-grids">';
|
601 |
|
602 |
+
$row_id = 0;
|
603 |
+
$last_id = 0;
|
604 |
|
605 |
+
foreach ( $form_data_array as $index => $rows ) {
|
606 |
+
$row_id = ( ! empty( $form_row_ids ) ) ? $form_row_ids_array[ $index ] : $index;
|
607 |
+
$last_id = ( absint( $row_id ) > $last_id ) ? absint( $row_id ) : $last_id;
|
608 |
|
609 |
+
$grid_count = count( $rows );
|
610 |
|
611 |
+
$grid_one = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M28,6V26H4V6H28m2-2H2V28H30V4Z"/></svg>';
|
612 |
+
$grid_two = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M17,4H2V28H30V4ZM4,26V6H15V26Zm24,0H17V6H28Z"/></svg>';
|
613 |
+
$grid_three = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M22,4H2V28H30V4ZM4,26V6h6V26Zm8,0V6h8V26Zm16,0H22V6h6Z"/></svg>';
|
614 |
|
615 |
+
echo '<div class="ur-single-row" data-row-id="' . absint( $row_id ) . '">';
|
616 |
+
?>
|
617 |
|
618 |
+
<div class="ur-grids">
|
619 |
+
<button type="button" class="ur-edit-grid">
|
620 |
+
<?php
|
621 |
+
if ( 1 === $grid_count ) {
|
622 |
+
echo $grid_one; // phpcs:ignore WordPress.Security.EscapeOutput
|
623 |
+
} elseif ( 2 === $grid_count ) {
|
624 |
+
echo $grid_two; // phpcs:ignore WordPress.Security.EscapeOutput
|
625 |
+
} elseif ( 3 === $grid_count ) {
|
626 |
+
echo $grid_three; // phpcs:ignore WordPress.Security.EscapeOutput
|
627 |
+
}
|
628 |
+
?>
|
629 |
+
</button>
|
630 |
+
<button type="button" class="dashicons dashicons-no-alt ur-remove-row"></button>
|
631 |
+
<div class="ur-toggle-grid-content" style="display:none">
|
632 |
+
<small>Select the grid column.</small>
|
633 |
+
<div class="ur-grid-selector" data-grid = "1">
|
634 |
+
<?php echo $grid_one; // phpcs:ignore WordPress.Security.EscapeOutput ?>
|
635 |
+
</div>
|
636 |
+
<div class="ur-grid-selector" data-grid = "2">
|
637 |
+
<?php echo $grid_two; // phpcs:ignore WordPress.Security.EscapeOutput ?>
|
638 |
+
</div>
|
639 |
+
<div class="ur-grid-selector" data-grid = "3">
|
640 |
+
<?php echo $grid_three; // phpcs:ignore WordPress.Security.EscapeOutput ?>
|
641 |
+
</div>
|
642 |
+
</div>
|
643 |
+
</div>
|
644 |
|
645 |
+
<?php
|
646 |
echo '<div class="ur-grid-lists">';
|
647 |
|
648 |
$grid_id = 0;
|
678 |
echo '</div>';
|
679 |
|
680 |
}// End foreach().
|
681 |
+
echo '<button type="button" class="button button-primary dashicons dashicons-plus-alt ur-add-new-row" data-total-rows="' . $last_id . '">' . esc_html( 'Add New', 'user-registration' ) . '</button>';
|
682 |
+
echo '</div>';
|
683 |
+
echo '</div>';
|
684 |
echo '</div>';
|
685 |
}
|
686 |
|
includes/admin/class-ur-admin-settings.php
CHANGED
@@ -5,8 +5,6 @@
|
|
5 |
* @class UR_Admin_Settings
|
6 |
* @version 1.0.0
|
7 |
* @package UserRegistration/Admin
|
8 |
-
* @category Admin
|
9 |
-
* @author WPEverest
|
10 |
*/
|
11 |
|
12 |
if ( ! defined( 'ABSPATH' ) ) {
|
@@ -52,6 +50,7 @@ class UR_Admin_Settings {
|
|
52 |
$settings[] = include 'settings/class-ur-settings-general.php';
|
53 |
$settings[] = include 'settings/class-ur-settings-integration.php';
|
54 |
$settings[] = include 'settings/class-ur-settings-email.php';
|
|
|
55 |
|
56 |
self::$settings = apply_filters( 'user_registration_get_settings_pages', $settings );
|
57 |
}
|
@@ -69,7 +68,7 @@ class UR_Admin_Settings {
|
|
69 |
die( __( 'Action failed. Please refresh the page and retry.', 'user-registration' ) );
|
70 |
}
|
71 |
|
72 |
-
// Trigger actions
|
73 |
do_action( 'user_registration_settings_save_' . $current_tab );
|
74 |
do_action( 'user_registration_update_options_' . $current_tab );
|
75 |
do_action( 'user_registration_update_options' );
|
@@ -80,7 +79,7 @@ class UR_Admin_Settings {
|
|
80 |
self::add_message( __( 'Your settings have been saved.', 'user-registration' ) );
|
81 |
}
|
82 |
|
83 |
-
// Flush rules
|
84 |
wp_schedule_single_event( time(), 'user_registration_flush_rewrite_rules' );
|
85 |
|
86 |
do_action( 'user_registration_settings_saved' );
|
@@ -89,7 +88,7 @@ class UR_Admin_Settings {
|
|
89 |
/**
|
90 |
* Add a message.
|
91 |
*
|
92 |
-
* @param string $text
|
93 |
*/
|
94 |
public static function add_message( $text ) {
|
95 |
self::$messages[] = $text;
|
@@ -98,7 +97,7 @@ class UR_Admin_Settings {
|
|
98 |
/**
|
99 |
* Add an error.
|
100 |
*
|
101 |
-
* @param string $text
|
102 |
*/
|
103 |
public static function add_error( $text ) {
|
104 |
self::$errors[] = $text;
|
@@ -107,7 +106,7 @@ class UR_Admin_Settings {
|
|
107 |
/**
|
108 |
* Output messages + errors.
|
109 |
*
|
110 |
-
* @
|
111 |
*/
|
112 |
public static function show_messages() {
|
113 |
if ( sizeof( self::$errors ) > 0 ) {
|
@@ -143,7 +142,7 @@ class UR_Admin_Settings {
|
|
143 |
)
|
144 |
);
|
145 |
|
146 |
-
// Include settings pages
|
147 |
self::get_settings_pages();
|
148 |
|
149 |
// Get current tab/section
|
@@ -154,7 +153,7 @@ class UR_Admin_Settings {
|
|
154 |
|
155 |
if ( $flag ) {
|
156 |
|
157 |
-
// Save settings if data has been posted
|
158 |
if ( ! empty( $_POST ) ) {
|
159 |
self::save();
|
160 |
}
|
@@ -172,7 +171,7 @@ class UR_Admin_Settings {
|
|
172 |
// Get tabs for the settings page
|
173 |
$tabs = apply_filters( 'user_registration_settings_tabs_array', array() );
|
174 |
|
175 |
-
if (
|
176 |
$GLOBALS['hide_save_button'] = true;
|
177 |
}
|
178 |
|
@@ -182,12 +181,13 @@ class UR_Admin_Settings {
|
|
182 |
/**
|
183 |
* Get a setting from the settings API.
|
184 |
*
|
185 |
-
* @param mixed $option_name
|
|
|
186 |
*
|
187 |
* @return string
|
188 |
*/
|
189 |
public static function get_option( $option_name, $default = '' ) {
|
190 |
-
// Array value
|
191 |
if ( strstr( $option_name, '[' ) ) {
|
192 |
|
193 |
parse_str( $option_name, $option_array );
|
@@ -195,7 +195,7 @@ class UR_Admin_Settings {
|
|
195 |
// Option name is first key
|
196 |
$option_name = current( array_keys( $option_array ) );
|
197 |
|
198 |
-
// Get value
|
199 |
$option_values = get_option( $option_name, '' );
|
200 |
|
201 |
$key = key( $option_array[ $option_name ] );
|
@@ -215,7 +215,7 @@ class UR_Admin_Settings {
|
|
215 |
$option_value = stripslashes( $option_value );
|
216 |
}
|
217 |
|
218 |
-
return
|
219 |
}
|
220 |
|
221 |
/**
|
@@ -223,7 +223,7 @@ class UR_Admin_Settings {
|
|
223 |
*
|
224 |
* Loops though the user registration options array and outputs each field.
|
225 |
*
|
226 |
-
* @param array[] $options Opens array to output
|
227 |
*/
|
228 |
public static function output_fields( $options ) {
|
229 |
|
@@ -268,14 +268,14 @@ class UR_Admin_Settings {
|
|
268 |
}
|
269 |
}
|
270 |
|
271 |
-
// Description handling
|
272 |
$field_description = self::get_field_description( $value );
|
273 |
extract( $field_description );
|
274 |
|
275 |
-
// Switch based on type
|
276 |
switch ( $value['type'] ) {
|
277 |
|
278 |
-
// Section Titles
|
279 |
case 'title':
|
280 |
if ( ! empty( $value['title'] ) ) {
|
281 |
echo '<h2>' . esc_html( $value['title'] ) . '</h2>';
|
@@ -289,7 +289,7 @@ class UR_Admin_Settings {
|
|
289 |
}
|
290 |
break;
|
291 |
|
292 |
-
// Section Ends
|
293 |
case 'sectionend':
|
294 |
if ( ! empty( $value['id'] ) ) {
|
295 |
do_action( 'user_registration_settings_' . sanitize_title( $value['id'] ) . '_end' );
|
@@ -300,7 +300,7 @@ class UR_Admin_Settings {
|
|
300 |
}
|
301 |
break;
|
302 |
|
303 |
-
// Standard text inputs and subtypes like 'number'
|
304 |
case 'text':
|
305 |
case 'email':
|
306 |
case 'number':
|
@@ -358,7 +358,7 @@ class UR_Admin_Settings {
|
|
358 |
<?php
|
359 |
break;
|
360 |
|
361 |
-
// Textarea
|
362 |
case 'textarea':
|
363 |
$option_value = self::get_option( $value['id'], $value['default'] );
|
364 |
|
@@ -384,7 +384,7 @@ class UR_Admin_Settings {
|
|
384 |
<?php
|
385 |
break;
|
386 |
|
387 |
-
// Select boxes
|
388 |
case 'select':
|
389 |
case 'multiselect':
|
390 |
$option_value = self::get_option( $value['id'], $value['default'] );
|
@@ -395,7 +395,7 @@ class UR_Admin_Settings {
|
|
395 |
<label for="<?php echo esc_attr( $value['id'] ); ?>"><?php echo esc_html( $value['title'] ); ?></label>
|
396 |
<?php echo $tooltip_html; ?>
|
397 |
</th>
|
398 |
-
<td class="forminp forminp-<?php echo sanitize_title( $value['type'] ); ?>">
|
399 |
<select
|
400 |
name="<?php echo esc_attr( $value['id'] ); ?><?php echo ( 'multiselect' === $value['type'] ) ? '[]' : ''; ?>"
|
401 |
id="<?php echo esc_attr( $value['id'] ); ?>"
|
@@ -407,27 +407,25 @@ class UR_Admin_Settings {
|
|
407 |
<?php
|
408 |
foreach ( $value['options'] as $key => $val ) {
|
409 |
?>
|
410 |
-
<option value="<?php echo esc_attr( $key ); ?>"
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
><?php echo $val; ?></option>
|
421 |
-
<?php
|
422 |
}
|
423 |
?>
|
424 |
-
</select> <?php echo $description; ?>
|
425 |
</td>
|
426 |
</tr>
|
427 |
<?php
|
428 |
break;
|
429 |
|
430 |
-
// Radio inputs
|
431 |
case 'radio':
|
432 |
$option_value = self::get_option( $value['id'], $value['default'] );
|
433 |
|
@@ -465,7 +463,7 @@ class UR_Admin_Settings {
|
|
465 |
<?php
|
466 |
break;
|
467 |
|
468 |
-
// Checkbox input
|
469 |
case 'checkbox':
|
470 |
$option_value = self::get_option( $value['id'], $value['default'] );
|
471 |
$visbility_class = array();
|
@@ -476,17 +474,17 @@ class UR_Admin_Settings {
|
|
476 |
if ( ! isset( $value['show_if_checked'] ) ) {
|
477 |
$value['show_if_checked'] = false;
|
478 |
}
|
479 |
-
if ( 'yes'
|
480 |
$visbility_class[] = 'hidden_option';
|
481 |
}
|
482 |
-
if ( 'option'
|
483 |
$visbility_class[] = 'hide_options_if_checked';
|
484 |
}
|
485 |
-
if ( 'option'
|
486 |
$visbility_class[] = 'show_options_if_checked';
|
487 |
}
|
488 |
|
489 |
-
if ( ! isset( $value['checkboxgroup'] ) || 'start'
|
490 |
?>
|
491 |
<tr valign="top" class="
|
492 |
<?php
|
@@ -521,7 +519,7 @@ class UR_Admin_Settings {
|
|
521 |
</label>
|
522 |
<?php
|
523 |
|
524 |
-
if ( ! isset( $value['checkboxgroup'] ) || 'end'
|
525 |
?>
|
526 |
</fieldset>
|
527 |
</td>
|
@@ -534,7 +532,7 @@ class UR_Admin_Settings {
|
|
534 |
}
|
535 |
break;
|
536 |
|
537 |
-
// Single page selects
|
538 |
case 'single_select_page':
|
539 |
$args = array(
|
540 |
'name' => $value['id'],
|
@@ -593,12 +591,12 @@ class UR_Admin_Settings {
|
|
593 |
<?php
|
594 |
break;
|
595 |
|
596 |
-
// Default: run an action
|
597 |
default:
|
598 |
do_action( 'user_registration_admin_field_' . $value['type'], $value );
|
599 |
break;
|
600 |
-
}// End switch
|
601 |
-
}// End foreach
|
602 |
}
|
603 |
|
604 |
/**
|
@@ -606,7 +604,7 @@ class UR_Admin_Settings {
|
|
606 |
* given form field. Plugins can call this when implementing their own custom
|
607 |
* settings types.
|
608 |
*
|
609 |
-
* @param array $value The form field value array
|
610 |
*
|
611 |
* @return array The description and tip as a 2 element array
|
612 |
*/
|
@@ -646,7 +644,7 @@ class UR_Admin_Settings {
|
|
646 |
*
|
647 |
* Loops though the user registration options array and outputs each field.
|
648 |
*
|
649 |
-
* @param array $options Options array to output
|
650 |
*
|
651 |
* @return bool
|
652 |
*/
|
5 |
* @class UR_Admin_Settings
|
6 |
* @version 1.0.0
|
7 |
* @package UserRegistration/Admin
|
|
|
|
|
8 |
*/
|
9 |
|
10 |
if ( ! defined( 'ABSPATH' ) ) {
|
50 |
$settings[] = include 'settings/class-ur-settings-general.php';
|
51 |
$settings[] = include 'settings/class-ur-settings-integration.php';
|
52 |
$settings[] = include 'settings/class-ur-settings-email.php';
|
53 |
+
$settings[] = include 'settings/class-ur-settings-import-export.php';
|
54 |
|
55 |
self::$settings = apply_filters( 'user_registration_get_settings_pages', $settings );
|
56 |
}
|
68 |
die( __( 'Action failed. Please refresh the page and retry.', 'user-registration' ) );
|
69 |
}
|
70 |
|
71 |
+
// Trigger actions.
|
72 |
do_action( 'user_registration_settings_save_' . $current_tab );
|
73 |
do_action( 'user_registration_update_options_' . $current_tab );
|
74 |
do_action( 'user_registration_update_options' );
|
79 |
self::add_message( __( 'Your settings have been saved.', 'user-registration' ) );
|
80 |
}
|
81 |
|
82 |
+
// Flush rules.
|
83 |
wp_schedule_single_event( time(), 'user_registration_flush_rewrite_rules' );
|
84 |
|
85 |
do_action( 'user_registration_settings_saved' );
|
88 |
/**
|
89 |
* Add a message.
|
90 |
*
|
91 |
+
* @param string $text Text.
|
92 |
*/
|
93 |
public static function add_message( $text ) {
|
94 |
self::$messages[] = $text;
|
97 |
/**
|
98 |
* Add an error.
|
99 |
*
|
100 |
+
* @param string $text Text.
|
101 |
*/
|
102 |
public static function add_error( $text ) {
|
103 |
self::$errors[] = $text;
|
106 |
/**
|
107 |
* Output messages + errors.
|
108 |
*
|
109 |
+
* @echo string
|
110 |
*/
|
111 |
public static function show_messages() {
|
112 |
if ( sizeof( self::$errors ) > 0 ) {
|
142 |
)
|
143 |
);
|
144 |
|
145 |
+
// Include settings pages.
|
146 |
self::get_settings_pages();
|
147 |
|
148 |
// Get current tab/section
|
153 |
|
154 |
if ( $flag ) {
|
155 |
|
156 |
+
// Save settings if data has been posted.
|
157 |
if ( ! empty( $_POST ) ) {
|
158 |
self::save();
|
159 |
}
|
171 |
// Get tabs for the settings page
|
172 |
$tabs = apply_filters( 'user_registration_settings_tabs_array', array() );
|
173 |
|
174 |
+
if ( 'import_export' === $current_tab ) {
|
175 |
$GLOBALS['hide_save_button'] = true;
|
176 |
}
|
177 |
|
181 |
/**
|
182 |
* Get a setting from the settings API.
|
183 |
*
|
184 |
+
* @param mixed $option_name Option Name.
|
185 |
+
* @param mixed $default Default.
|
186 |
*
|
187 |
* @return string
|
188 |
*/
|
189 |
public static function get_option( $option_name, $default = '' ) {
|
190 |
+
// Array value.
|
191 |
if ( strstr( $option_name, '[' ) ) {
|
192 |
|
193 |
parse_str( $option_name, $option_array );
|
195 |
// Option name is first key
|
196 |
$option_name = current( array_keys( $option_array ) );
|
197 |
|
198 |
+
// Get value.
|
199 |
$option_values = get_option( $option_name, '' );
|
200 |
|
201 |
$key = key( $option_array[ $option_name ] );
|
215 |
$option_value = stripslashes( $option_value );
|
216 |
}
|
217 |
|
218 |
+
return null === $option_value ? $default : $option_value;
|
219 |
}
|
220 |
|
221 |
/**
|
223 |
*
|
224 |
* Loops though the user registration options array and outputs each field.
|
225 |
*
|
226 |
+
* @param array[] $options Opens array to output.
|
227 |
*/
|
228 |
public static function output_fields( $options ) {
|
229 |
|
268 |
}
|
269 |
}
|
270 |
|
271 |
+
// Description handling.
|
272 |
$field_description = self::get_field_description( $value );
|
273 |
extract( $field_description );
|
274 |
|
275 |
+
// Switch based on type.
|
276 |
switch ( $value['type'] ) {
|
277 |
|
278 |
+
// Section Titles.
|
279 |
case 'title':
|
280 |
if ( ! empty( $value['title'] ) ) {
|
281 |
echo '<h2>' . esc_html( $value['title'] ) . '</h2>';
|
289 |
}
|
290 |
break;
|
291 |
|
292 |
+
// Section Ends.
|
293 |
case 'sectionend':
|
294 |
if ( ! empty( $value['id'] ) ) {
|
295 |
do_action( 'user_registration_settings_' . sanitize_title( $value['id'] ) . '_end' );
|
300 |
}
|
301 |
break;
|
302 |
|
303 |
+
// Standard text inputs and subtypes like 'number'.
|
304 |
case 'text':
|
305 |
case 'email':
|
306 |
case 'number':
|
358 |
<?php
|
359 |
break;
|
360 |
|
361 |
+
// Textarea.
|
362 |
case 'textarea':
|
363 |
$option_value = self::get_option( $value['id'], $value['default'] );
|
364 |
|
384 |
<?php
|
385 |
break;
|
386 |
|
387 |
+
// Select boxes.
|
388 |
case 'select':
|
389 |
case 'multiselect':
|
390 |
$option_value = self::get_option( $value['id'], $value['default'] );
|
395 |
<label for="<?php echo esc_attr( $value['id'] ); ?>"><?php echo esc_html( $value['title'] ); ?></label>
|
396 |
<?php echo $tooltip_html; ?>
|
397 |
</th>
|
398 |
+
<td class="forminp forminp-<?php echo esc_html( sanitize_title( $value['type'] ) ); ?>">
|
399 |
<select
|
400 |
name="<?php echo esc_attr( $value['id'] ); ?><?php echo ( 'multiselect' === $value['type'] ) ? '[]' : ''; ?>"
|
401 |
id="<?php echo esc_attr( $value['id'] ); ?>"
|
407 |
<?php
|
408 |
foreach ( $value['options'] as $key => $val ) {
|
409 |
?>
|
410 |
+
<option value="<?php echo esc_attr( $key ); ?>"
|
411 |
+
<?php
|
412 |
+
if ( is_array( $option_value ) ) {
|
413 |
+
selected( in_array( $key, $option_value ), true );
|
414 |
+
} else {
|
415 |
+
selected( $option_value, $key );
|
416 |
+
}
|
417 |
+
?>
|
418 |
+
><?php echo esc_html( $val ); ?></option>
|
419 |
+
<?php
|
|
|
|
|
420 |
}
|
421 |
?>
|
422 |
+
</select> <?php echo esc_html( $description ); ?>
|
423 |
</td>
|
424 |
</tr>
|
425 |
<?php
|
426 |
break;
|
427 |
|
428 |
+
// Radio inputs.
|
429 |
case 'radio':
|
430 |
$option_value = self::get_option( $value['id'], $value['default'] );
|
431 |
|
463 |
<?php
|
464 |
break;
|
465 |
|
466 |
+
// Checkbox input.
|
467 |
case 'checkbox':
|
468 |
$option_value = self::get_option( $value['id'], $value['default'] );
|
469 |
$visbility_class = array();
|
474 |
if ( ! isset( $value['show_if_checked'] ) ) {
|
475 |
$value['show_if_checked'] = false;
|
476 |
}
|
477 |
+
if ( 'yes' === $value['hide_if_checked'] || 'yes' === $value['show_if_checked'] ) {
|
478 |
$visbility_class[] = 'hidden_option';
|
479 |
}
|
480 |
+
if ( 'option' === $value['hide_if_checked'] ) {
|
481 |
$visbility_class[] = 'hide_options_if_checked';
|
482 |
}
|
483 |
+
if ( 'option' === $value['show_if_checked'] ) {
|
484 |
$visbility_class[] = 'show_options_if_checked';
|
485 |
}
|
486 |
|
487 |
+
if ( ! isset( $value['checkboxgroup'] ) || 'start' === $value['checkboxgroup'] ) {
|
488 |
?>
|
489 |
<tr valign="top" class="
|
490 |
<?php
|
519 |
</label>
|
520 |
<?php
|
521 |
|
522 |
+
if ( ! isset( $value['checkboxgroup'] ) || 'end' === $value['checkboxgroup'] ) {
|
523 |
?>
|
524 |
</fieldset>
|
525 |
</td>
|
532 |
}
|
533 |
break;
|
534 |
|
535 |
+
// Single page selects.
|
536 |
case 'single_select_page':
|
537 |
$args = array(
|
538 |
'name' => $value['id'],
|
591 |
<?php
|
592 |
break;
|
593 |
|
594 |
+
// Default: run an action.
|
595 |
default:
|
596 |
do_action( 'user_registration_admin_field_' . $value['type'], $value );
|
597 |
break;
|
598 |
+
}// End switch case.
|
599 |
+
}// End foreach.
|
600 |
}
|
601 |
|
602 |
/**
|
604 |
* given form field. Plugins can call this when implementing their own custom
|
605 |
* settings types.
|
606 |
*
|
607 |
+
* @param array $value The form field value array.
|
608 |
*
|
609 |
* @return array The description and tip as a 2 element array
|
610 |
*/
|
644 |
*
|
645 |
* Loops though the user registration options array and outputs each field.
|
646 |
*
|
647 |
+
* @param array $options Options array to output.
|
648 |
*
|
649 |
* @return bool
|
650 |
*/
|
includes/admin/class-ur-admin.php
CHANGED
@@ -25,9 +25,11 @@ class UR_Admin {
|
|
25 |
add_action( 'init', array( $this, 'includes' ) );
|
26 |
add_action( 'current_screen', array( $this, 'conditional_includes' ) );
|
27 |
add_action( 'admin_init', array( $this, 'prevent_admin_access' ), 10, 2 );
|
|
|
28 |
add_filter( 'admin_footer_text', array( $this, 'admin_footer_text' ), 1 );
|
29 |
add_action( 'admin_notices', array( $this, 'review_notice' ) );
|
30 |
add_action( 'admin_footer', 'ur_print_js', 25 );
|
|
|
31 |
|
32 |
if ( 'admin_approval' === get_option( 'user_registration_general_setting_login_options' ) ) {
|
33 |
new UR_Admin_User_List_Manager();
|
@@ -42,6 +44,7 @@ class UR_Admin {
|
|
42 |
include_once dirname( __FILE__ ) . '/class-ur-admin-notices.php';
|
43 |
include_once dirname( __FILE__ ) . '/class-ur-admin-menus.php';
|
44 |
include_once dirname( __FILE__ ) . '/class-ur-admin-export-users.php';
|
|
|
45 |
include_once dirname( __FILE__ ) . '/class-ur-admin-form-modal.php';
|
46 |
|
47 |
include_once UR_ABSPATH . 'includes' . UR_DS . 'admin' . UR_DS . 'class-ur-admin-assets.php';
|
@@ -181,6 +184,51 @@ class UR_Admin {
|
|
181 |
</div>
|
182 |
<?php
|
183 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
184 |
}
|
185 |
|
186 |
return new UR_Admin();
|
25 |
add_action( 'init', array( $this, 'includes' ) );
|
26 |
add_action( 'current_screen', array( $this, 'conditional_includes' ) );
|
27 |
add_action( 'admin_init', array( $this, 'prevent_admin_access' ), 10, 2 );
|
28 |
+
add_action( 'load-users.php', array( $this, 'live_user_read' ), 10, 2 );
|
29 |
add_filter( 'admin_footer_text', array( $this, 'admin_footer_text' ), 1 );
|
30 |
add_action( 'admin_notices', array( $this, 'review_notice' ) );
|
31 |
add_action( 'admin_footer', 'ur_print_js', 25 );
|
32 |
+
add_filter( 'heartbeat_received', array( $this, 'new_user_live_notice' ), 10, 2 );
|
33 |
|
34 |
if ( 'admin_approval' === get_option( 'user_registration_general_setting_login_options' ) ) {
|
35 |
new UR_Admin_User_List_Manager();
|
44 |
include_once dirname( __FILE__ ) . '/class-ur-admin-notices.php';
|
45 |
include_once dirname( __FILE__ ) . '/class-ur-admin-menus.php';
|
46 |
include_once dirname( __FILE__ ) . '/class-ur-admin-export-users.php';
|
47 |
+
include_once dirname( __FILE__ ) . '/class-ur-admin-import-export-forms.php';
|
48 |
include_once dirname( __FILE__ ) . '/class-ur-admin-form-modal.php';
|
49 |
|
50 |
include_once UR_ABSPATH . 'includes' . UR_DS . 'admin' . UR_DS . 'class-ur-admin-assets.php';
|
184 |
</div>
|
185 |
<?php
|
186 |
}
|
187 |
+
|
188 |
+
/**
|
189 |
+
* Mark the read time of the user list table.
|
190 |
+
*/
|
191 |
+
public function live_user_read() {
|
192 |
+
|
193 |
+
$now = date( 'Y-m-d h:i:s' );
|
194 |
+
update_option( 'user_registration_users_listing_viewed', $now );
|
195 |
+
}
|
196 |
+
/**
|
197 |
+
* Check for new user by read time.
|
198 |
+
*
|
199 |
+
* @param array $response Heartbeat response data to pass back to front end.
|
200 |
+
* @param array $data Data received from the front end (unslashed).
|
201 |
+
*/
|
202 |
+
public function new_user_live_notice( $response, $data ) {
|
203 |
+
|
204 |
+
if ( empty( $data['user_registration_new_user_notice'] ) ) {
|
205 |
+
return $response;
|
206 |
+
}
|
207 |
+
|
208 |
+
$read_time = get_option( 'user_registration_users_listing_viewed' );
|
209 |
+
if ( ! $read_time ) {
|
210 |
+
$now = date( 'Y-m-d h:i:s' );
|
211 |
+
update_option( 'user_registration_users_listing_viewed', $now );
|
212 |
+
$read_time = $now;
|
213 |
+
}
|
214 |
+
|
215 |
+
$user_args = array(
|
216 |
+
'meta_key' => 'ur_form_id',
|
217 |
+
'count_total' => true,
|
218 |
+
'date_query' => array(
|
219 |
+
array(
|
220 |
+
'after' => $read_time,
|
221 |
+
'inclusive' => false,
|
222 |
+
),
|
223 |
+
),
|
224 |
+
);
|
225 |
+
$user_query = new WP_User_Query( $user_args );
|
226 |
+
$user_count = $user_query->get_total();
|
227 |
+
|
228 |
+
$response['user_registration_new_user_message'] = sprintf( __( '%1$d new %2$s registered.', 'user-registration' ), $user_count, _n( 'User', 'Users', $user_count, 'user-registration' ) );
|
229 |
+
$response['user_registration_new_user_count'] = $user_count;
|
230 |
+
return $response;
|
231 |
+
}
|
232 |
}
|
233 |
|
234 |
return new UR_Admin();
|
includes/admin/functions-ur-admin.php
CHANGED
@@ -427,6 +427,8 @@ function ur_admin_form_settings( $form_id = 0 ) {
|
|
427 |
foreach ( $arguments as $args ) {
|
428 |
user_registration_form_field( $args['id'], $args );
|
429 |
}
|
|
|
|
|
430 |
}
|
431 |
|
432 |
/**
|
427 |
foreach ( $arguments as $args ) {
|
428 |
user_registration_form_field( $args['id'], $args );
|
429 |
}
|
430 |
+
|
431 |
+
echo '</div>';
|
432 |
}
|
433 |
|
434 |
/**
|
includes/admin/settings/class-ur-settings-general.php
CHANGED
@@ -5,8 +5,6 @@
|
|
5 |
* @class UR_Settings_General
|
6 |
* @version 1.0.0
|
7 |
* @package UserRegistration/Admin
|
8 |
-
* @category Admin
|
9 |
-
* @author WPEverest
|
10 |
*/
|
11 |
|
12 |
if ( ! defined( 'ABSPATH' ) ) {
|
@@ -44,7 +42,6 @@ if ( ! class_exists( 'UR_Settings_General' ) ) :
|
|
44 |
'' => __( 'General Options', 'user-registration' ),
|
45 |
'login-options' => __( 'Login Options', 'user-registration' ),
|
46 |
'frontend-messages' => __( 'Frontend Messages', 'user-registration' ),
|
47 |
-
'export-users' => __( 'Export Users', 'user-registration' ),
|
48 |
);
|
49 |
|
50 |
return apply_filters( 'user_registration_get_sections_' . $this->id, $sections );
|
@@ -450,16 +447,15 @@ if ( ! class_exists( 'UR_Settings_General' ) ) :
|
|
450 |
public function output() {
|
451 |
|
452 |
global $current_section;
|
453 |
-
if (
|
454 |
$settings = $this->get_settings();
|
455 |
|
456 |
-
} elseif (
|
457 |
$settings = $this->get_frontend_messages_settings();
|
458 |
-
} elseif (
|
459 |
$settings = $this->get_login_options_settings();
|
460 |
-
}
|
461 |
$settings = array();
|
462 |
-
UR_Admin_Export_Users::output();
|
463 |
}
|
464 |
|
465 |
UR_Admin_Settings::output_fields( $settings );
|
@@ -473,15 +469,13 @@ if ( ! class_exists( 'UR_Settings_General' ) ) :
|
|
473 |
global $current_section;
|
474 |
$settings = $this->get_settings();
|
475 |
|
476 |
-
if (
|
477 |
$settings = $this->get_settings();
|
478 |
|
479 |
-
} elseif (
|
480 |
$settings = $this->get_frontend_messages_settings();
|
481 |
-
} elseif (
|
482 |
$settings = $this->get_login_options_settings();
|
483 |
-
} elseif ( $current_section === 'export-users' ) {
|
484 |
-
$settings = array();
|
485 |
}
|
486 |
|
487 |
UR_Admin_Settings::save_fields( $settings );
|
5 |
* @class UR_Settings_General
|
6 |
* @version 1.0.0
|
7 |
* @package UserRegistration/Admin
|
|
|
|
|
8 |
*/
|
9 |
|
10 |
if ( ! defined( 'ABSPATH' ) ) {
|
42 |
'' => __( 'General Options', 'user-registration' ),
|
43 |
'login-options' => __( 'Login Options', 'user-registration' ),
|
44 |
'frontend-messages' => __( 'Frontend Messages', 'user-registration' ),
|
|
|
45 |
);
|
46 |
|
47 |
return apply_filters( 'user_registration_get_sections_' . $this->id, $sections );
|
447 |
public function output() {
|
448 |
|
449 |
global $current_section;
|
450 |
+
if ( '' === $current_section ) {
|
451 |
$settings = $this->get_settings();
|
452 |
|
453 |
+
} elseif ( 'frontend-messages' === $current_section ) {
|
454 |
$settings = $this->get_frontend_messages_settings();
|
455 |
+
} elseif ( 'login-options' === $current_section ) {
|
456 |
$settings = $this->get_login_options_settings();
|
457 |
+
} else {
|
458 |
$settings = array();
|
|
|
459 |
}
|
460 |
|
461 |
UR_Admin_Settings::output_fields( $settings );
|
469 |
global $current_section;
|
470 |
$settings = $this->get_settings();
|
471 |
|
472 |
+
if ( '' === $current_section ) {
|
473 |
$settings = $this->get_settings();
|
474 |
|
475 |
+
} elseif ( 'frontend-messages' === $current_section ) {
|
476 |
$settings = $this->get_frontend_messages_settings();
|
477 |
+
} elseif ( 'login-options' === $current_section ) {
|
478 |
$settings = $this->get_login_options_settings();
|
|
|
|
|
479 |
}
|
480 |
|
481 |
UR_Admin_Settings::save_fields( $settings );
|
includes/admin/settings/class-ur-settings-import-export.php
ADDED
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* UserRegistration Import Export Settings
|
4 |
+
*
|
5 |
+
* @class UR_Settings_Import_Export
|
6 |
+
* @version 1.0.0
|
7 |
+
* @package UserRegistration/Admin
|
8 |
+
*/
|
9 |
+
|
10 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
11 |
+
exit; // Exit if accessed directly.
|
12 |
+
}
|
13 |
+
|
14 |
+
if ( ! class_exists( 'UR_Settings_Import_Export' ) ) :
|
15 |
+
|
16 |
+
/**
|
17 |
+
* UR_Settings_Import_Export Class
|
18 |
+
*/
|
19 |
+
class UR_Settings_Import_Export extends UR_Settings_Page {
|
20 |
+
|
21 |
+
/**
|
22 |
+
* Constructor.
|
23 |
+
*/
|
24 |
+
public function __construct() {
|
25 |
+
|
26 |
+
$this->id = 'import_export';
|
27 |
+
$this->label = __( 'Import/Export', 'user-registration' );
|
28 |
+
|
29 |
+
add_filter( 'user_registration_settings_tabs_array', array( $this, 'add_settings_page' ), 20 );
|
30 |
+
add_action( 'user_registration_sections_' . $this->id, array( $this, 'output_sections' ) );
|
31 |
+
add_action( 'user_registration_settings_' . $this->id, array( $this, 'output' ) );
|
32 |
+
add_action( 'user_registration_settings_save_' . $this->id, array( $this, 'save' ) );
|
33 |
+
}
|
34 |
+
|
35 |
+
/**
|
36 |
+
* Get sections.
|
37 |
+
*
|
38 |
+
* @return array
|
39 |
+
*/
|
40 |
+
public function get_sections() {
|
41 |
+
$sections = array(
|
42 |
+
'' => __( 'Export Users', 'user-registration' ),
|
43 |
+
'import-export-forms' => __( 'Import/Export Forms', 'user-registration' ),
|
44 |
+
);
|
45 |
+
|
46 |
+
return apply_filters( 'user_registration_get_sections_' . $this->id, $sections );
|
47 |
+
}
|
48 |
+
|
49 |
+
/**
|
50 |
+
* Output the settings.
|
51 |
+
*/
|
52 |
+
public function output() {
|
53 |
+
|
54 |
+
global $current_section;
|
55 |
+
if ( '' === $current_section ) {
|
56 |
+
$settings = array();
|
57 |
+
UR_Admin_Export_Users::output();
|
58 |
+
} elseif ( 'import-export-forms' === $current_section ) {
|
59 |
+
$settings = array();
|
60 |
+
UR_Admin_Import_Export_Forms::output();
|
61 |
+
} else {
|
62 |
+
$settings = array();
|
63 |
+
}
|
64 |
+
|
65 |
+
UR_Admin_Settings::output_fields( $settings );
|
66 |
+
}
|
67 |
+
|
68 |
+
/**
|
69 |
+
* Save settings
|
70 |
+
*/
|
71 |
+
public function save() {
|
72 |
+
|
73 |
+
global $current_section;
|
74 |
+
$settings = $this->get_settings();
|
75 |
+
|
76 |
+
if ( '' === $current_section ) {
|
77 |
+
$settings = array();
|
78 |
+
} elseif ( 'import-export-forms' === $current_section ) {
|
79 |
+
$settings = array();
|
80 |
+
} else {
|
81 |
+
$settings = array();
|
82 |
+
}
|
83 |
+
|
84 |
+
UR_Admin_Settings::save_fields( $settings );
|
85 |
+
}
|
86 |
+
}
|
87 |
+
|
88 |
+
endif;
|
89 |
+
|
90 |
+
return new UR_Settings_Import_Export();
|
includes/admin/settings/emails/class-ur-settings-email-confirmation.php
CHANGED
@@ -88,7 +88,7 @@ if ( ! class_exists( 'UR_Settings_Email_Confirmation', false ) ) :
|
|
88 |
|
89 |
You have registered on <a href="{{home_url}}">{{blog_info}}</a>. <br/>
|
90 |
|
91 |
-
Please click on this verification link {{home_url}}/
|
92 |
|
93 |
Thank You!',
|
94 |
'user-registration'
|
88 |
|
89 |
You have registered on <a href="{{home_url}}">{{blog_info}}</a>. <br/>
|
90 |
|
91 |
+
Please click on this verification link {{home_url}}/{{ur_login}}?ur_token={{email_token}} to confirm registration. <br/>
|
92 |
|
93 |
Thank You!',
|
94 |
'user-registration'
|
includes/admin/settings/emails/class-ur-settings-reset-password-email.php
CHANGED
@@ -96,7 +96,7 @@ Username: {{username}} <br/>
|
|
96 |
If this was a mistake, just ignore this email and nothing will happen. <br/>
|
97 |
|
98 |
To reset your password, visit the following address: <br/>
|
99 |
-
{{home_url}}/
|
100 |
|
101 |
Thank You!',
|
102 |
'user-registration'
|
96 |
If this was a mistake, just ignore this email and nothing will happen. <br/>
|
97 |
|
98 |
To reset your password, visit the following address: <br/>
|
99 |
+
{{home_url}}/{{ur_login}}?action=rp&key={{key}}&login={{username}} <br/>
|
100 |
|
101 |
Thank You!',
|
102 |
'user-registration'
|
includes/admin/views/html-admin-page-forms.php
CHANGED
@@ -6,35 +6,35 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
6 |
<div class="wrap ur-form-container">
|
7 |
<h1 style="display:none"></h1> <!-- To manage notices -->
|
8 |
<div id="menu-management-liquid" class="ur-form-subcontainer">
|
|
|
|
|
|
|
9 |
<div id="menu-management">
|
10 |
-
<div class="menu-edit
|
11 |
<input type="hidden" name="ur_form_id" id="ur_form_id" value="<?php echo $post_id; ?>"/>
|
12 |
-
|
13 |
<div id="nav-menu-header">
|
|
|
|
|
|
|
14 |
<div class="major-publishing-actions wp-clearfix">
|
15 |
-
<
|
16 |
-
|
17 |
-
|
18 |
-
<input name="ur-form-name" id="ur-form-name" type="text"
|
19 |
-
class="ur-form-name regular-text menu-item-textbox" value="<?php echo esc_html( $form_title ); ?>">
|
20 |
-
<?php
|
21 |
-
if ( isset( $post_data[0] ) ) {
|
22 |
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
<div class="publishing-action">
|
38 |
<button id="ur-full-screen-mode" class="button button-secondary button-large closed" title="<?php echo __( 'Fullscreen', 'user-registration' ); ?>"><span class="ur-fs-open-label dashicons dashicons-editor-expand"></span><span class="ur-fs-close-label dashicons dashicons-editor-contract"></span></button>
|
39 |
<a href="<?php echo esc_url( $preview_link ); ?>" target="_blank" class="button button-secondary button-large" title="<?php echo __( 'Preview Form', 'user-registration' ); ?>"><?php echo __( 'Preview', 'user-registration' ); ?></a>
|
40 |
<input type="button" name="save_form" id="save_form_footer" class="button button-primary button-large menu-form ur_save_form_action_button" value="<?php echo $save_label; ?> ">
|
@@ -49,64 +49,80 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
49 |
<li><a href="#ur-tab-registered-fields"
|
50 |
class="nav-tab active"><?php esc_html_e( 'Fields', 'user-registration' ); ?></a>
|
51 |
</li>
|
52 |
-
<li class="ur-no-pointer"><a href="#ur-tab-field-options"
|
53 |
-
class="nav-tab"><?php esc_html_e( 'Field Options', 'user-registration' ); ?></a>
|
54 |
</li>
|
|
|
|
|
|
|
|
|
|
|
55 |
<li><a href="#ur-tab-field-settings"
|
56 |
class="nav-tab"><?php esc_html_e( 'Form Setting', 'user-registration' ); ?></a>
|
57 |
</li>
|
58 |
</ul>
|
59 |
<div style="clear:both"></div>
|
60 |
|
61 |
-
<div
|
62 |
-
<
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
|
|
71 |
|
72 |
-
|
73 |
-
|
74 |
|
75 |
-
|
76 |
-
<?php
|
77 |
-
$form_id = isset( $post_data[0]->ID ) ? $post_data[0]->ID : 0;
|
78 |
-
?>
|
79 |
-
<div id ="ur-field-all-settings">
|
80 |
-
<?php ur_admin_form_settings( $form_id ); ?>
|
81 |
-
</div>
|
82 |
<?php
|
83 |
-
|
84 |
?>
|
85 |
-
|
|
|
|
|
|
|
|
|
|
|
86 |
|
|
|
87 |
</div>
|
88 |
</nav>
|
89 |
</div>
|
90 |
<?php
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
96 |
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
</div>
|
98 |
-
|
99 |
</div>
|
100 |
</div><!-- /#post-body -->
|
101 |
-
<div id="nav-menu-footer">
|
102 |
-
<div class="major-publishing-actions wp-clearfix">
|
103 |
-
<div class="publishing-action">
|
104 |
-
<input type="button" name="save_form" id="save_form_footer"
|
105 |
-
class="button button-primary button-large menu-form ur_save_form_action_button"
|
106 |
-
value="<?php echo $save_label; ?> "/>
|
107 |
-
</div><!-- END .publishing-action -->
|
108 |
-
</div><!-- END .major-publishing-actions -->
|
109 |
-
</div><!-- /#nav-menu-footer -->
|
110 |
</div><!-- /.menu-edit -->
|
111 |
</div><!-- /#menu-management -->
|
112 |
</div>
|
6 |
<div class="wrap ur-form-container">
|
7 |
<h1 style="display:none"></h1> <!-- To manage notices -->
|
8 |
<div id="menu-management-liquid" class="ur-form-subcontainer">
|
9 |
+
<div class="ur-loading-container">
|
10 |
+
<div class="ur-circle-loading"></div>
|
11 |
+
</div>
|
12 |
<div id="menu-management">
|
13 |
+
<div class="menu-edit">
|
14 |
<input type="hidden" name="ur_form_id" id="ur_form_id" value="<?php echo $post_id; ?>"/>
|
|
|
15 |
<div id="nav-menu-header">
|
16 |
+
<div class="ur-brand-logo">
|
17 |
+
<img src="<?php echo UR()->plugin_url() . '/assets/images/logo.svg'; ?>" alt="">
|
18 |
+
</div>
|
19 |
<div class="major-publishing-actions wp-clearfix">
|
20 |
+
<div class="publishing-action">
|
21 |
+
<?php
|
22 |
+
if ( isset( $post_data[0] ) ) {
|
|
|
|
|
|
|
|
|
23 |
|
24 |
+
?>
|
25 |
+
<input type="text" onfocus="this.select();" readonly="readonly"
|
26 |
+
value='[user_registration_form id=<?php echo '"' . $post_data[0]->ID . '"'; ?>]'
|
27 |
+
class=" code" size="35">
|
28 |
|
29 |
+
<button id="copy-shortcode" class="button button-primary button-large ur-copy-shortcode " href="#" data-tip="<?php esc_attr_e( 'Copy Shortcode!', 'user-registration' ); ?>" data-copied="<?php esc_attr_e( 'Copied!', 'user-registration' ); ?>">
|
30 |
+
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="16" viewBox="0 0 14 16">
|
31 |
+
<path fill-rule="evenodd" d="M2 13h4v1H2v-1zm5-6H2v1h5V7zm2 3V8l-3 3 3 3v-2h5v-2H9zM4.5 9H2v1h2.5V9zM2 12h2.5v-1H2v1zm9 1h1v2c-.02.28-.11.52-.3.7-.19.18-.42.28-.7.3H1c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1h3c0-1.11.89-2 2-2 1.11 0 2 .89 2 2h3c.55 0 1 .45 1 1v5h-1V6H1v9h10v-2zM2 5h8c0-.55-.45-1-1-1H8c-.55 0-1-.45-1-1s-.45-1-1-1-1 .45-1 1-.45 1-1 1H3c-.55 0-1 .45-1 1z"/>
|
32 |
+
</svg>
|
33 |
+
</button>
|
34 |
|
35 |
+
<?php
|
36 |
+
}
|
37 |
+
?>
|
|
|
38 |
<button id="ur-full-screen-mode" class="button button-secondary button-large closed" title="<?php echo __( 'Fullscreen', 'user-registration' ); ?>"><span class="ur-fs-open-label dashicons dashicons-editor-expand"></span><span class="ur-fs-close-label dashicons dashicons-editor-contract"></span></button>
|
39 |
<a href="<?php echo esc_url( $preview_link ); ?>" target="_blank" class="button button-secondary button-large" title="<?php echo __( 'Preview Form', 'user-registration' ); ?>"><?php echo __( 'Preview', 'user-registration' ); ?></a>
|
40 |
<input type="button" name="save_form" id="save_form_footer" class="button button-primary button-large menu-form ur_save_form_action_button" value="<?php echo $save_label; ?> ">
|
49 |
<li><a href="#ur-tab-registered-fields"
|
50 |
class="nav-tab active"><?php esc_html_e( 'Fields', 'user-registration' ); ?></a>
|
51 |
</li>
|
52 |
+
<li class="ur-no-pointer"><a href="#ur-tab-field-options" class="nav-tab"><?php esc_html_e( 'Field Options', 'user-registration' ); ?></a>
|
|
|
53 |
</li>
|
54 |
+
|
55 |
+
<?php
|
56 |
+
do_action( 'user_registration_form_bulder_tabs' ); // TODO:: Needs refactor. Move after field-settings and sort.
|
57 |
+
?>
|
58 |
+
|
59 |
<li><a href="#ur-tab-field-settings"
|
60 |
class="nav-tab"><?php esc_html_e( 'Form Setting', 'user-registration' ); ?></a>
|
61 |
</li>
|
62 |
</ul>
|
63 |
<div style="clear:both"></div>
|
64 |
|
65 |
+
<div class="ur-tab-contents" >
|
66 |
+
<div id="ur-tab-registered-fields" class="ur-tab-content">
|
67 |
+
<h2><?php echo __( 'Default User Fields', 'user-registration' ); ?></h2>
|
68 |
+
<hr/>
|
69 |
+
<?php $this->get_registered_user_form_fields(); ?>
|
70 |
+
<h2><?php echo __( 'Extra Fields', 'user-registration' ); ?></h2>
|
71 |
+
<hr/>
|
72 |
+
<?php $this->get_registered_other_form_fields(); ?>
|
73 |
+
<?php do_action( 'user_registration_extra_fields' ); ?>
|
74 |
+
</div>
|
75 |
+
<div id="ur-tab-field-options" class="ur-tab-content">
|
76 |
|
77 |
+
</div>
|
78 |
+
<div id="ur-tab-field-settings" class="ur-tab-content">
|
79 |
|
80 |
+
<form method="post" id="ur-field-settings" onsubmit="return false;" style='display:none'>
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
<?php
|
82 |
+
$form_id = isset( $post_data[0]->ID ) ? $post_data[0]->ID : 0;
|
83 |
?>
|
84 |
+
<div id="ur-field-all-settings">
|
85 |
+
<?php ur_admin_form_settings( $form_id ); ?>
|
86 |
+
<?php do_action( 'user_registration_after_form_settings', $form_id ); ?>
|
87 |
+
</div>
|
88 |
+
</form>
|
89 |
+
</div>
|
90 |
|
91 |
+
<?php do_action( 'user_registration_form_bulder_content', $form_id ); ?>
|
92 |
</div>
|
93 |
</nav>
|
94 |
</div>
|
95 |
<?php
|
96 |
+
$builder_class = apply_filters( 'user_registration_builder_class', array() );
|
97 |
+
$builder_class = implode( ' ', $builder_class );
|
98 |
+
?>
|
99 |
+
<div class='ur-builder-wrapper <?php echo $builder_class; ?>'>
|
100 |
+
<?php
|
101 |
+
if ( isset( $post_data[0] ) && isset( $_GET['edit-registration'] ) && is_numeric( $_GET['edit-registration'] ) ) {
|
102 |
+
$this->get_edit_form_field( $post_data );
|
103 |
+
} else {
|
104 |
+
?>
|
105 |
+
<div class="ur-selected-inputs">
|
106 |
+
<div class="ur-builder-wrapper-content">
|
107 |
+
<div class="ur-form-name-wrapper" >
|
108 |
+
<?php
|
109 |
+
$form_title = isset( $post_data[0]->post_title ) ? trim( $post_data[0]->post_title ) : __( 'Untitled', 'user-registration' );
|
110 |
+
?>
|
111 |
+
<input name="ur-form-name" id="ur-form-name" type="text" class="ur-form-name regular-text menu-item-textbox ur-editing" autofocus="autofocus" onfocus="this.select()" value="<?php echo esc_html( $form_title ); ?>">
|
112 |
+
<span class="ur-edit-form-name dashicons dashicons-edit"></span>
|
113 |
+
</div>
|
114 |
+
<div class="ur-input-grids">
|
115 |
|
116 |
+
</div>
|
117 |
+
</div>
|
118 |
+
</div>
|
119 |
+
<?php } ?>
|
120 |
+
<div class="ur-builder-wrapper-footer">
|
121 |
+
<?php do_action( 'user_registration_form_builder_wrapper_footer' ); ?>
|
122 |
</div>
|
123 |
+
</div>
|
124 |
</div>
|
125 |
</div><!-- /#post-body -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
126 |
</div><!-- /.menu-edit -->
|
127 |
</div><!-- /#menu-management -->
|
128 |
</div>
|
includes/admin/views/html-admin-page-import-export-forms.php
ADDED
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Import / Export Forms.
|
5 |
+
*
|
6 |
+
* @package Admin View: Page - Import / Export Forms.
|
7 |
+
*/
|
8 |
+
|
9 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
10 |
+
exit; // Exit if accessed directly.
|
11 |
+
}
|
12 |
+
|
13 |
+
?>
|
14 |
+
<div class="ur-export-users-page">
|
15 |
+
<div class="nav-tab-content">
|
16 |
+
<div class="nav-tab-inside">
|
17 |
+
<div class="postbox">
|
18 |
+
<h3 class="hndle"><?php _e( 'Export forms With Settings', 'user-registration' ); ?></h3>
|
19 |
+
|
20 |
+
<div class="inside">
|
21 |
+
<p class="help">
|
22 |
+
<?php _e( 'Export your forms along with their settings as <strong>JSON</strong> file.', 'user-registration' ); ?>
|
23 |
+
</p>
|
24 |
+
|
25 |
+
<p>
|
26 |
+
<select name="formid" class="forms-list">
|
27 |
+
<?php
|
28 |
+
foreach ( $all_forms as $form_id => $form ) {
|
29 |
+
echo '<option value ="' . esc_attr( $form_id ) . '">' . esc_html( $form ) . '</option>';
|
30 |
+
}
|
31 |
+
?>
|
32 |
+
</select>
|
33 |
+
</p>
|
34 |
+
|
35 |
+
<input type="submit" class="button button-primary" name="user_registration_export_form" value="<?php _e( 'Export Forms', 'user-registration' ); ?>">
|
36 |
+
|
37 |
+
</div>
|
38 |
+
</div><!-- .postbox -->
|
39 |
+
<div class="postbox">
|
40 |
+
<h3 class="hndle"><?php _e( 'Import Forms With Settings', 'user-registration' ); ?></h3>
|
41 |
+
|
42 |
+
<div class="inside">
|
43 |
+
<p class="help">
|
44 |
+
<?php _e( 'Import your forms along with their settings from <strong>JSON</strong> file.', 'user-registration' ); ?>
|
45 |
+
</p>
|
46 |
+
<p>
|
47 |
+
<input type="file" name="jsonfile" id="jsonfile" accept=".json"/>
|
48 |
+
<span class="description">Only JSON file format allowed.</span>
|
49 |
+
</p>
|
50 |
+
<div class="publishing-action">
|
51 |
+
<input type="button" class="button button-primary ur_import_form_action_button" name="user_registration_import_form" value="<?php _e( 'Import Forms', 'user-registration' ); ?>">
|
52 |
+
</div>
|
53 |
+
</div>
|
54 |
+
</div><!-- .postbox -->
|
55 |
+
</div>
|
56 |
+
</div>
|
57 |
+
</div>
|
includes/class-ur-ajax.php
CHANGED
@@ -44,6 +44,7 @@ class UR_AJAX {
|
|
44 |
'rated' => false,
|
45 |
'dashboard_widget' => false,
|
46 |
'dismiss_review_notice' => false,
|
|
|
47 |
);
|
48 |
|
49 |
foreach ( $ajax_events as $ajax_event => $nopriv ) {
|
@@ -195,6 +196,25 @@ class UR_AJAX {
|
|
195 |
}
|
196 |
}
|
197 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
198 |
/**
|
199 |
* Form save from backend
|
200 |
*
|
@@ -244,8 +264,9 @@ class UR_AJAX {
|
|
244 |
throw new Exception( __( 'Could not save form, ' . join( ', ', $required_fields ) . ' fields are required.! ', 'user-registration' ) );
|
245 |
}
|
246 |
|
247 |
-
$form_name
|
248 |
-
$
|
|
|
249 |
|
250 |
$post_data = array(
|
251 |
'post_type' => 'user_registration',
|
@@ -265,11 +286,16 @@ class UR_AJAX {
|
|
265 |
$post_id = wp_insert_post( wp_slash( $post_data ) );
|
266 |
|
267 |
if ( $post_id > 0 ) {
|
|
|
|
|
268 |
$post_data_setting = isset( $_POST['data']['form_setting_data'] ) ? $_POST['data']['form_setting_data'] : array();
|
269 |
ur_update_form_settings( $post_data_setting, $post_id );
|
|
|
|
|
|
|
270 |
}
|
271 |
|
272 |
-
|
273 |
|
274 |
wp_send_json_success(
|
275 |
array(
|
44 |
'rated' => false,
|
45 |
'dashboard_widget' => false,
|
46 |
'dismiss_review_notice' => false,
|
47 |
+
'import_form_action' => false,
|
48 |
);
|
49 |
|
50 |
foreach ( $ajax_events as $ajax_event => $nopriv ) {
|
196 |
}
|
197 |
}
|
198 |
|
199 |
+
/**
|
200 |
+
* Import Form ajax.
|
201 |
+
*
|
202 |
+
* @throws Exception Post data mot set.
|
203 |
+
*/
|
204 |
+
public static function import_form_action() {
|
205 |
+
try {
|
206 |
+
check_ajax_referer( 'ur_import_form_save_nonce', 'security' );
|
207 |
+
UR_Admin_Import_Export_Forms::import_form();
|
208 |
+
} catch ( Exception $e ) {
|
209 |
+
wp_send_json_error(
|
210 |
+
array(
|
211 |
+
'message' => $e->getMessage(),
|
212 |
+
)
|
213 |
+
);
|
214 |
+
|
215 |
+
}
|
216 |
+
}
|
217 |
+
|
218 |
/**
|
219 |
* Form save from backend
|
220 |
*
|
264 |
throw new Exception( __( 'Could not save form, ' . join( ', ', $required_fields ) . ' fields are required.! ', 'user-registration' ) );
|
265 |
}
|
266 |
|
267 |
+
$form_name = sanitize_text_field( $_POST['data']['form_name'] );
|
268 |
+
$form_row_ids = sanitize_text_field( $_POST['data']['form_row_ids'] );
|
269 |
+
$form_id = sanitize_text_field( $_POST['data']['form_id'] );
|
270 |
|
271 |
$post_data = array(
|
272 |
'post_type' => 'user_registration',
|
286 |
$post_id = wp_insert_post( wp_slash( $post_data ) );
|
287 |
|
288 |
if ( $post_id > 0 ) {
|
289 |
+
$_POST['data']['form_id'] = $post_id; // Form id for new form.
|
290 |
+
|
291 |
$post_data_setting = isset( $_POST['data']['form_setting_data'] ) ? $_POST['data']['form_setting_data'] : array();
|
292 |
ur_update_form_settings( $post_data_setting, $post_id );
|
293 |
+
|
294 |
+
// Form row_id save.
|
295 |
+
update_post_meta( $form_id, 'user_registration_form_row_ids', $form_row_ids );
|
296 |
}
|
297 |
|
298 |
+
do_action( 'user_registration_after_form_settings_save', $_POST['data'] );
|
299 |
|
300 |
wp_send_json_success(
|
301 |
array(
|
includes/class-ur-emailer.php
CHANGED
@@ -255,20 +255,11 @@ class UR_Emailer {
|
|
255 |
$status = ur_get_user_approval_status( $user_id );
|
256 |
$email_status = get_user_meta( $user_id, 'ur_confirm_email', true );
|
257 |
$email_token = get_user_meta( $user_id, 'ur_confirm_email_token', true );
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
$to_replace = array_merge( $to_replace, array_keys( $name_value ) );
|
264 |
-
$replace_with = array_merge( $replace_with, array_values( $name_value ) );
|
265 |
-
|
266 |
-
// Surround every key with {{ and }}.
|
267 |
-
array_walk(
|
268 |
-
$to_replace,
|
269 |
-
function( &$value, $key ) {
|
270 |
-
$value = '{{' . trim( $value, '{}' ) . '}}';
|
271 |
-
}
|
272 |
);
|
273 |
|
274 |
if ( '0' === $email_status ) {
|
@@ -277,8 +268,8 @@ class UR_Emailer {
|
|
277 |
$message = new UR_Settings_Email_Confirmation();
|
278 |
$message = $message->ur_get_email_confirmation();
|
279 |
$message = get_option( 'user_registration_email_confirmation', $message );
|
280 |
-
$message =
|
281 |
-
$subject =
|
282 |
|
283 |
wp_mail( $email, $subject, $message, self::ur_get_header(), $attachment );
|
284 |
} elseif ( 0 === $status ) {
|
@@ -287,8 +278,8 @@ class UR_Emailer {
|
|
287 |
$message = new UR_Settings_Awaiting_Admin_Approval_Email();
|
288 |
$message = $message->ur_get_awaiting_admin_approval_email();
|
289 |
$message = get_option( 'user_registration_awaiting_admin_approval_email', $message );
|
290 |
-
$message =
|
291 |
-
$subject =
|
292 |
|
293 |
if ( 'yes' === get_option( 'user_registration_enable_awaiting_admin_approval_email', 'yes' ) ) {
|
294 |
wp_mail( $email, $subject, $message, self::ur_get_header(), $attachment );
|
@@ -299,8 +290,8 @@ class UR_Emailer {
|
|
299 |
$message = new UR_Settings_Registration_Denied_Email();
|
300 |
$message = $message->ur_get_registration_denied_email();
|
301 |
$message = get_option( 'user_registration_registration_denied_email', $message );
|
302 |
-
$message =
|
303 |
-
$subject =
|
304 |
|
305 |
if ( 'yes' === get_option( 'user_registration_enable_registration_denied_email', 'yes' ) ) {
|
306 |
wp_mail( $email, $subject, $message, self::ur_get_header(), $attachment );
|
@@ -310,8 +301,8 @@ class UR_Emailer {
|
|
310 |
$message = new UR_Settings_Successfully_Registered_Email();
|
311 |
$message = $message->ur_get_successfully_registered_email();
|
312 |
$message = get_option( 'user_registration_successfully_registered_email', $message );
|
313 |
-
$message =
|
314 |
-
$subject =
|
315 |
|
316 |
if ( 'yes' === get_option( 'user_registration_enable_successfully_registered_email', 'yes' ) ) {
|
317 |
wp_mail( $email, $subject, $message, self::ur_get_header(), $attachment );
|
@@ -345,24 +336,14 @@ class UR_Emailer {
|
|
345 |
$message = $message->ur_get_admin_email();
|
346 |
$message = get_option( 'user_registration_admin_email', $message );
|
347 |
|
348 |
-
$
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
$to_replace = array_merge( $to_replace, array_keys( $name_value ) );
|
353 |
-
$replace_with = array_merge( $replace_with, array_values( $name_value ) );
|
354 |
-
|
355 |
-
// Surround every key with {{ and }}.
|
356 |
-
array_walk(
|
357 |
-
$to_replace,
|
358 |
-
function( &$value, $key ) {
|
359 |
-
$value = '{{' . trim( $value, '{}' ) . '}}';
|
360 |
-
}
|
361 |
);
|
362 |
-
|
363 |
-
$
|
364 |
-
$
|
365 |
-
$header = str_replace( $to_replace, $replace_with, $header );
|
366 |
|
367 |
if ( 'yes' === get_option( 'user_registration_enable_admin_email', 'yes' ) ) {
|
368 |
foreach ( $admin_email as $email ) {
|
@@ -382,21 +363,11 @@ class UR_Emailer {
|
|
382 |
public static function status_change_email( $email, $username, $status ) {
|
383 |
|
384 |
// Get name value pair to replace smart tag.
|
385 |
-
$name_value = self::
|
386 |
-
|
387 |
-
$to_replace = array( '{{username}}', '{{email}}', '{{blog_info}}', '{{home_url}}' );
|
388 |
-
$replace_with = array( $username, $email, get_bloginfo(), get_home_url() );
|
389 |
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
// Surround every key with {{ and }}.
|
395 |
-
array_walk(
|
396 |
-
$to_replace,
|
397 |
-
function( &$value, $key ) {
|
398 |
-
$value = '{{' . trim( $value, '{}' ) . '}}';
|
399 |
-
}
|
400 |
);
|
401 |
|
402 |
$headers = array( 'Content-Type: text/html; charset=UTF-8' );
|
@@ -407,8 +378,8 @@ class UR_Emailer {
|
|
407 |
$message = new UR_Settings_Registration_Pending_Email();
|
408 |
$message = $message->ur_get_registration_pending_email();
|
409 |
$message = get_option( 'user_registration_registration_pending_email', $message );
|
410 |
-
$message =
|
411 |
-
$subject =
|
412 |
|
413 |
if ( 'yes' === get_option( 'user_registration_enable_registration_pending_email', 'yes' ) ) {
|
414 |
wp_mail( $email, $subject, $message, self::ur_get_header() );
|
@@ -419,8 +390,8 @@ class UR_Emailer {
|
|
419 |
$message = new UR_Settings_Registration_Denied_Email();
|
420 |
$message = $message->ur_get_registration_denied_email();
|
421 |
$message = get_option( 'user_registration_registration_denied_email', $message );
|
422 |
-
$message =
|
423 |
-
$subject =
|
424 |
|
425 |
if ( 'yes' === get_option( 'user_registration_enable_registration_denied_email', 'yes' ) ) {
|
426 |
wp_mail( $email, $subject, $message, self::ur_get_header() );
|
@@ -431,8 +402,8 @@ class UR_Emailer {
|
|
431 |
$message = new UR_Settings_Registration_Approved_Email();
|
432 |
$message = $message->ur_get_registration_approved_email();
|
433 |
$message = get_option( 'user_registration_registration_approved_email', $message );
|
434 |
-
$message =
|
435 |
-
$subject =
|
436 |
|
437 |
if ( 'yes' === get_option( 'user_registration_enable_registration_approved_email', 'yes' ) ) {
|
438 |
wp_mail( $email, $subject, $message, self::ur_get_header() );
|
@@ -458,31 +429,19 @@ class UR_Emailer {
|
|
458 |
return false;
|
459 |
}
|
460 |
|
461 |
-
// Get name value pair to replace smart tag.
|
462 |
-
$name_value = self::status_change_emails_smart_tags( $email );
|
463 |
-
|
464 |
$subject = get_option( 'user_registration_reset_password_email_subject', __( 'Password Reset Email: {{blog_info}}', 'user-registration' ) );
|
465 |
$message = new UR_Settings_Reset_Password_Email();
|
466 |
$message = $message->ur_get_reset_password_email();
|
467 |
$message = get_option( 'user_registration_reset_password_email', $message );
|
468 |
|
469 |
-
$
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
$to_replace = array_merge( $to_replace, array_keys( $name_value ) );
|
474 |
-
$replace_with = array_merge( $replace_with, array_values( $name_value ) );
|
475 |
-
|
476 |
-
// Surround every key with {{ and }}.
|
477 |
-
array_walk(
|
478 |
-
$to_replace,
|
479 |
-
function( &$value, $key ) {
|
480 |
-
$value = '{{' . trim( $value, '{}' ) . '}}';
|
481 |
-
}
|
482 |
);
|
483 |
|
484 |
-
$message =
|
485 |
-
$subject =
|
486 |
|
487 |
if ( 'yes' === get_option( 'user_registration_enable_reset_password_email', 'yes' ) ) {
|
488 |
wp_mail( $email, $subject, $message, self::ur_get_header() );
|
@@ -492,6 +451,49 @@ class UR_Emailer {
|
|
492 |
return false;
|
493 |
}
|
494 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
495 |
/**
|
496 |
* Process smart tags for status change emails.
|
497 |
*
|
@@ -499,7 +501,7 @@ class UR_Emailer {
|
|
499 |
* @since 1.5.0
|
500 |
* @return array smart tag key value pair.
|
501 |
*/
|
502 |
-
public static function
|
503 |
$name_value = array();
|
504 |
$user = get_user_by( 'email', $email );
|
505 |
$user_id = isset( $user->ID ) ? absint( $user->ID ) : 0;
|
@@ -524,56 +526,67 @@ class UR_Emailer {
|
|
524 |
}
|
525 |
|
526 |
/**
|
527 |
-
*
|
528 |
*
|
529 |
-
* @param
|
530 |
-
* @param
|
531 |
-
* @param
|
532 |
-
* @param string $data_html String replaced with {{all_fields}} smart tag.
|
533 |
-
* @param array $name_value Array to replace with extra fields smart tag.
|
534 |
-
* @param array $attachments Email Attachement.
|
535 |
-
* @return void
|
536 |
-
* @since 1.6.3
|
537 |
*/
|
538 |
-
|
539 |
-
|
540 |
-
|
541 |
-
|
542 |
-
|
543 |
-
|
544 |
-
|
545 |
-
|
546 |
-
|
547 |
-
|
548 |
-
$subject = get_option( 'user_registration_profile_details_changed_email_subject', __( 'Profile Details Changed Email: {{blog_info}}', 'user-registration' ) );
|
549 |
-
$message = new UR_Settings_Profile_Details_Changed_Email();
|
550 |
-
$message = $message->ur_get_profile_details_changed_email();
|
551 |
-
$message = get_option( 'user_registration_profile_details_changed_email', $message );
|
552 |
-
|
553 |
-
$to_replace = array( '{{username}}', '{{email}}', '{{blog_info}}', '{{home_url}}', '{{all_fields}}' );
|
554 |
-
$replace_with = array( $username, $user_email, get_bloginfo(), get_home_url(), $data_html );
|
555 |
-
|
556 |
-
// Add the field name and values from $name_value to the replacement arrays.
|
557 |
-
$to_replace = array_merge( $to_replace, array_keys( $name_value ) );
|
558 |
-
$replace_with = array_merge( $replace_with, array_values( $name_value ) );
|
559 |
-
|
560 |
-
// Surround every key with {{ and }}.
|
561 |
-
array_walk(
|
562 |
-
$to_replace,
|
563 |
-
function( &$value, $key ) {
|
564 |
-
$value = '{{' . trim( $value, '{}' ) . '}}';
|
565 |
-
}
|
566 |
);
|
567 |
|
568 |
-
$
|
569 |
-
$
|
570 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
571 |
|
572 |
-
if (
|
573 |
-
|
574 |
-
|
|
|
575 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
576 |
}
|
|
|
|
|
|
|
|
|
577 |
}
|
578 |
}
|
579 |
|
255 |
$status = ur_get_user_approval_status( $user_id );
|
256 |
$email_status = get_user_meta( $user_id, 'ur_confirm_email', true );
|
257 |
$email_token = get_user_meta( $user_id, 'ur_confirm_email_token', true );
|
258 |
+
$values = array(
|
259 |
+
'username' => $username,
|
260 |
+
'email' => $user_email,
|
261 |
+
'all_fields' => $data_html,
|
262 |
+
'email_token' => $email_token,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
263 |
);
|
264 |
|
265 |
if ( '0' === $email_status ) {
|
268 |
$message = new UR_Settings_Email_Confirmation();
|
269 |
$message = $message->ur_get_email_confirmation();
|
270 |
$message = get_option( 'user_registration_email_confirmation', $message );
|
271 |
+
$message = self::parse_smart_tags( $message, $values, $name_value );
|
272 |
+
$subject = self::parse_smart_tags( $subject, $values, $name_value );
|
273 |
|
274 |
wp_mail( $email, $subject, $message, self::ur_get_header(), $attachment );
|
275 |
} elseif ( 0 === $status ) {
|
278 |
$message = new UR_Settings_Awaiting_Admin_Approval_Email();
|
279 |
$message = $message->ur_get_awaiting_admin_approval_email();
|
280 |
$message = get_option( 'user_registration_awaiting_admin_approval_email', $message );
|
281 |
+
$message = self::parse_smart_tags( $message, $values, $name_value );
|
282 |
+
$subject = self::parse_smart_tags( $subject, $values, $name_value );
|
283 |
|
284 |
if ( 'yes' === get_option( 'user_registration_enable_awaiting_admin_approval_email', 'yes' ) ) {
|
285 |
wp_mail( $email, $subject, $message, self::ur_get_header(), $attachment );
|
290 |
$message = new UR_Settings_Registration_Denied_Email();
|
291 |
$message = $message->ur_get_registration_denied_email();
|
292 |
$message = get_option( 'user_registration_registration_denied_email', $message );
|
293 |
+
$message = self::parse_smart_tags( $message, $values, $name_value );
|
294 |
+
$subject = self::parse_smart_tags( $subject, $values, $name_value );
|
295 |
|
296 |
if ( 'yes' === get_option( 'user_registration_enable_registration_denied_email', 'yes' ) ) {
|
297 |
wp_mail( $email, $subject, $message, self::ur_get_header(), $attachment );
|
301 |
$message = new UR_Settings_Successfully_Registered_Email();
|
302 |
$message = $message->ur_get_successfully_registered_email();
|
303 |
$message = get_option( 'user_registration_successfully_registered_email', $message );
|
304 |
+
$message = self::parse_smart_tags( $message, $values, $name_value );
|
305 |
+
$subject = self::parse_smart_tags( $subject, $values, $name_value );
|
306 |
|
307 |
if ( 'yes' === get_option( 'user_registration_enable_successfully_registered_email', 'yes' ) ) {
|
308 |
wp_mail( $email, $subject, $message, self::ur_get_header(), $attachment );
|
336 |
$message = $message->ur_get_admin_email();
|
337 |
$message = get_option( 'user_registration_admin_email', $message );
|
338 |
|
339 |
+
$values = array(
|
340 |
+
'username' => $username,
|
341 |
+
'email' => $user_email,
|
342 |
+
'all_fields' => $data_html,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
343 |
);
|
344 |
+
$message = self::parse_smart_tags( $message, $values, $name_value );
|
345 |
+
$subject = self::parse_smart_tags( $subject, $values, $name_value );
|
346 |
+
$header = self::parse_smart_tags( $header, $values, $name_value );
|
|
|
347 |
|
348 |
if ( 'yes' === get_option( 'user_registration_enable_admin_email', 'yes' ) ) {
|
349 |
foreach ( $admin_email as $email ) {
|
363 |
public static function status_change_email( $email, $username, $status ) {
|
364 |
|
365 |
// Get name value pair to replace smart tag.
|
366 |
+
$name_value = self::user_data_smart_tags( $email );
|
|
|
|
|
|
|
367 |
|
368 |
+
$values = array(
|
369 |
+
'username' => $username,
|
370 |
+
'email' => $user_email,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
371 |
);
|
372 |
|
373 |
$headers = array( 'Content-Type: text/html; charset=UTF-8' );
|
378 |
$message = new UR_Settings_Registration_Pending_Email();
|
379 |
$message = $message->ur_get_registration_pending_email();
|
380 |
$message = get_option( 'user_registration_registration_pending_email', $message );
|
381 |
+
$message = self::parse_smart_tags( $message, $values, $name_value );
|
382 |
+
$subject = self::parse_smart_tags( $subject, $values, $name_value );
|
383 |
|
384 |
if ( 'yes' === get_option( 'user_registration_enable_registration_pending_email', 'yes' ) ) {
|
385 |
wp_mail( $email, $subject, $message, self::ur_get_header() );
|
390 |
$message = new UR_Settings_Registration_Denied_Email();
|
391 |
$message = $message->ur_get_registration_denied_email();
|
392 |
$message = get_option( 'user_registration_registration_denied_email', $message );
|
393 |
+
$message = self::parse_smart_tags( $message, $values, $name_value );
|
394 |
+
$subject = self::parse_smart_tags( $subject, $values, $name_value );
|
395 |
|
396 |
if ( 'yes' === get_option( 'user_registration_enable_registration_denied_email', 'yes' ) ) {
|
397 |
wp_mail( $email, $subject, $message, self::ur_get_header() );
|
402 |
$message = new UR_Settings_Registration_Approved_Email();
|
403 |
$message = $message->ur_get_registration_approved_email();
|
404 |
$message = get_option( 'user_registration_registration_approved_email', $message );
|
405 |
+
$message = self::parse_smart_tags( $message, $values, $name_value );
|
406 |
+
$subject = self::parse_smart_tags( $subject, $values, $name_value );
|
407 |
|
408 |
if ( 'yes' === get_option( 'user_registration_enable_registration_approved_email', 'yes' ) ) {
|
409 |
wp_mail( $email, $subject, $message, self::ur_get_header() );
|
429 |
return false;
|
430 |
}
|
431 |
|
|
|
|
|
|
|
432 |
$subject = get_option( 'user_registration_reset_password_email_subject', __( 'Password Reset Email: {{blog_info}}', 'user-registration' ) );
|
433 |
$message = new UR_Settings_Reset_Password_Email();
|
434 |
$message = $message->ur_get_reset_password_email();
|
435 |
$message = get_option( 'user_registration_reset_password_email', $message );
|
436 |
|
437 |
+
$values = array(
|
438 |
+
'username' => $username,
|
439 |
+
'email' => $email,
|
440 |
+
'key' => $key,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
441 |
);
|
442 |
|
443 |
+
$message = self::parse_smart_tags( $message, $values );
|
444 |
+
$subject = self::parse_smart_tags( $subject, $values );
|
445 |
|
446 |
if ( 'yes' === get_option( 'user_registration_enable_reset_password_email', 'yes' ) ) {
|
447 |
wp_mail( $email, $subject, $message, self::ur_get_header() );
|
451 |
return false;
|
452 |
}
|
453 |
|
454 |
+
/**
|
455 |
+
* Trigger the admin email after profile details changed by user.
|
456 |
+
*
|
457 |
+
* @param string $user_email Email of the user.
|
458 |
+
* @param string $username Username of the user.
|
459 |
+
* @param int $user_id User id.
|
460 |
+
* @param string $data_html String replaced with {{all_fields}} smart tag.
|
461 |
+
* @param array $name_value Array to replace with extra fields smart tag.
|
462 |
+
* @param array $attachments Email Attachement.
|
463 |
+
* @return void
|
464 |
+
* @since 1.6.3
|
465 |
+
*/
|
466 |
+
public static function send_profile_changed_email_to_admin( $user_email, $username, $user_id, $data_html, $name_value, $attachments ) {
|
467 |
+
|
468 |
+
$header = "Reply-To: {{email}} \r\n";
|
469 |
+
$header .= 'Content-Type: text/html; charset=UTF-8';
|
470 |
+
|
471 |
+
$attachment = isset( $attachments['admin'] ) ? $attachments['admin'] : '';
|
472 |
+
$admin_email = get_option( 'user_registration_edit_profile_email_receipents', get_option( 'admin_email' ) );
|
473 |
+
$admin_email = explode( ',', $admin_email );
|
474 |
+
$admin_email = array_map( 'trim', $admin_email );
|
475 |
+
|
476 |
+
$subject = get_option( 'user_registration_profile_details_changed_email_subject', __( 'Profile Details Changed Email: {{blog_info}}', 'user-registration' ) );
|
477 |
+
$message = new UR_Settings_Profile_Details_Changed_Email();
|
478 |
+
$message = $message->ur_get_profile_details_changed_email();
|
479 |
+
$message = get_option( 'user_registration_profile_details_changed_email', $message );
|
480 |
+
|
481 |
+
$values = array(
|
482 |
+
'username' => $username,
|
483 |
+
'email' => $user_email,
|
484 |
+
'all_fields' => $data_html,
|
485 |
+
);
|
486 |
+
$message = self::parse_smart_tags( $message, $values, $name_value );
|
487 |
+
$subject = self::parse_smart_tags( $subject, $values, $name_value );
|
488 |
+
$header = self::parse_smart_tags( $header, $values, $name_value );
|
489 |
+
|
490 |
+
if ( 'yes' === get_option( 'user_registration_enable_profile_details_changed_email', 'yes' ) ) {
|
491 |
+
foreach ( $admin_email as $email ) {
|
492 |
+
wp_mail( $email, $subject, $message, $header, $attachment );
|
493 |
+
}
|
494 |
+
}
|
495 |
+
}
|
496 |
+
|
497 |
/**
|
498 |
* Process smart tags for status change emails.
|
499 |
*
|
501 |
* @since 1.5.0
|
502 |
* @return array smart tag key value pair.
|
503 |
*/
|
504 |
+
public static function user_data_smart_tags( $email ) {
|
505 |
$name_value = array();
|
506 |
$user = get_user_by( 'email', $email );
|
507 |
$user_id = isset( $user->ID ) ? absint( $user->ID ) : 0;
|
526 |
}
|
527 |
|
528 |
/**
|
529 |
+
* Parse Smart tags for emails.
|
530 |
*
|
531 |
+
* @param string $content Contents.
|
532 |
+
* @param array $values Data values.
|
533 |
+
* @param array $name_value Extra values.
|
|
|
|
|
|
|
|
|
|
|
534 |
*/
|
535 |
+
private static function parse_smart_tags( $content = '', $values = array(), $name_value = array() ) {
|
536 |
+
$smart_tags = array(
|
537 |
+
'{{username}}',
|
538 |
+
'{{email}}',
|
539 |
+
'{{email_token}}',
|
540 |
+
'{{blog_info}}',
|
541 |
+
'{{home_url}}',
|
542 |
+
'{{ur_login}}',
|
543 |
+
'{{key}}',
|
544 |
+
'{{all_fields}}',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
545 |
);
|
546 |
|
547 |
+
$ur_login = ( ur_get_page_permalink( 'myaccount' ) !== get_home_url() ) ? ur_get_page_permalink( 'myaccount' ) : wp_login_url();
|
548 |
+
$ur_login = str_replace( get_home_url() . '/', '', $ur_login );
|
549 |
+
|
550 |
+
$default_values = array(
|
551 |
+
'username' => '',
|
552 |
+
'email' => '',
|
553 |
+
'email_token' => '',
|
554 |
+
'blog_info' => get_bloginfo(),
|
555 |
+
'home_url' => get_home_url(),
|
556 |
+
'ur_login' => $ur_login,
|
557 |
+
'key' => '',
|
558 |
+
'all_fields' => '',
|
559 |
+
);
|
560 |
+
$values = wp_parse_args( $values, $default_values );
|
561 |
|
562 |
+
if ( ! empty( $values['email'] ) ) {
|
563 |
+
$user_data = self::user_data_smart_tags( $values['email'] );
|
564 |
+
if ( is_array( $name_value ) && ! empty( $name_value ) ) {
|
565 |
+
$user_data = array_merge( $user_data, $name_value );
|
566 |
}
|
567 |
+
$values = array_merge( $values, $user_data );
|
568 |
+
array_walk(
|
569 |
+
$values,
|
570 |
+
function( &$value, $key ) {
|
571 |
+
if ( 'user_pass' === $key ) {
|
572 |
+
$value = esc_html__( 'Chosen Password', 'user-registration' );
|
573 |
+
}
|
574 |
+
}
|
575 |
+
);
|
576 |
+
|
577 |
+
$user_smart_tags = array_keys( $user_data );
|
578 |
+
array_walk(
|
579 |
+
$user_smart_tags,
|
580 |
+
function( &$value ) {
|
581 |
+
$value = '{{' . trim( $value, '{}' ) . '}}';
|
582 |
+
}
|
583 |
+
);
|
584 |
+
$smart_tags = array_merge( $smart_tags, $user_smart_tags );
|
585 |
}
|
586 |
+
$smart_tags = apply_filters( 'user_registration_smart_tags', $smart_tags );
|
587 |
+
$content = str_replace( $smart_tags, array_values( $values ), $content );
|
588 |
+
|
589 |
+
return $content;
|
590 |
}
|
591 |
}
|
592 |
|
includes/class-ur-preview.php
CHANGED
@@ -28,11 +28,17 @@ class UR_Preview {
|
|
28 |
* Init hook function.
|
29 |
*/
|
30 |
public function init() {
|
31 |
-
if ( is_user_logged_in() && ! is_admin()
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
}
|
37 |
}
|
38 |
|
@@ -122,6 +128,57 @@ class UR_Preview {
|
|
122 |
|
123 |
return $content;
|
124 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
125 |
}
|
126 |
|
127 |
new UR_Preview();
|
28 |
* Init hook function.
|
29 |
*/
|
30 |
public function init() {
|
31 |
+
if ( is_user_logged_in() && ! is_admin() ) {
|
32 |
+
if ( isset( $_GET['ur_preview'] ) ) {
|
33 |
+
add_filter( 'edit_post_link', array( $this, 'edit_form_link' ) );
|
34 |
+
add_action( 'pre_get_posts', array( $this, 'pre_get_posts' ) );
|
35 |
+
add_filter( 'template_include', array( $this, 'template_include' ) );
|
36 |
+
add_action( 'template_redirect', array( $this, 'handle_preview' ) );
|
37 |
+
} elseif ( isset( $_GET['ur_login_preview'] ) ) {
|
38 |
+
add_action( 'pre_get_posts', array( $this, 'pre_get_posts' ) );
|
39 |
+
add_filter( 'template_include', array( $this, 'template_include' ) );
|
40 |
+
add_action( 'template_redirect', array( $this, 'handle_login_preview' ) );
|
41 |
+
}
|
42 |
}
|
43 |
}
|
44 |
|
128 |
|
129 |
return $content;
|
130 |
}
|
131 |
+
|
132 |
+
/**
|
133 |
+
* Handles the preview of login form.
|
134 |
+
*/
|
135 |
+
public function handle_login_preview() {
|
136 |
+
if ( ! is_user_logged_in() ) {
|
137 |
+
return;
|
138 |
+
}
|
139 |
+
|
140 |
+
add_filter( 'the_title', array( $this, 'login_form_preview_title' ) );
|
141 |
+
add_filter( 'the_content', array( $this, 'login_form_preview_content' ) );
|
142 |
+
}
|
143 |
+
|
144 |
+
/**
|
145 |
+
* Filter the title and insert form preview title.
|
146 |
+
*
|
147 |
+
* @param string $title Existing title.
|
148 |
+
* @return string
|
149 |
+
*/
|
150 |
+
public static function login_form_preview_title( $title ) {
|
151 |
+
if ( in_the_loop() ) {
|
152 |
+
/* translators: %s - Form name. */
|
153 |
+
return sprintf( esc_html__( '%s – Preview', 'user-registration' ), sanitize_text_field( 'Login Form' ) );
|
154 |
+
}
|
155 |
+
|
156 |
+
return $title;
|
157 |
+
}
|
158 |
+
|
159 |
+
/**
|
160 |
+
* Displays content of login form preview.
|
161 |
+
*
|
162 |
+
* @param string $content Page/Post content.
|
163 |
+
* @return string
|
164 |
+
*/
|
165 |
+
public function login_form_preview_content( $content ) {
|
166 |
+
remove_filter( 'the_content', array( $this, 'form_preview_content_filter' ) );
|
167 |
+
|
168 |
+
wp_enqueue_script( 'ur-my-account' );
|
169 |
+
$recaptcha_enabled = get_option( 'user_registration_login_options_enable_recaptcha', 'no' );
|
170 |
+
$recaptcha_node = ur_get_recaptcha_node( $recaptcha_enabled, 'login' );
|
171 |
+
|
172 |
+
ob_start();
|
173 |
+
ur_get_template(
|
174 |
+
'myaccount/form-login.php',
|
175 |
+
array(
|
176 |
+
'recaptcha_node' => $recaptcha_node,
|
177 |
+
'redirect' => '',
|
178 |
+
)
|
179 |
+
);
|
180 |
+
return ob_get_clean();
|
181 |
+
}
|
182 |
}
|
183 |
|
184 |
new UR_Preview();
|
includes/class-ur-shortcodes.php
CHANGED
@@ -18,6 +18,8 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
18 |
*/
|
19 |
class UR_Shortcodes {
|
20 |
|
|
|
|
|
21 |
/**
|
22 |
* Init Shortcodes.
|
23 |
*/
|
@@ -145,6 +147,8 @@ class UR_Shortcodes {
|
|
145 |
'user_registration_form'
|
146 |
);
|
147 |
|
|
|
|
|
148 |
ob_start();
|
149 |
self::render_form( $atts['id'] );
|
150 |
|
@@ -166,18 +170,25 @@ class UR_Shortcodes {
|
|
166 |
'post__in' => array( $form_id ),
|
167 |
);
|
168 |
|
169 |
-
$post_data
|
170 |
-
$form_data
|
|
|
171 |
|
172 |
if ( isset( $post_data[0] ) ) {
|
173 |
-
$form_data
|
|
|
174 |
}
|
175 |
-
$form_data_array
|
|
|
176 |
|
177 |
if ( gettype( $form_data_array ) != 'array' ) {
|
178 |
$form_data_array = array();
|
179 |
}
|
180 |
|
|
|
|
|
|
|
|
|
181 |
$is_field_exists = false;
|
182 |
$enable_strong_password = ur_get_single_post_meta( $form_id, 'user_registration_form_setting_enable_strong_password' );
|
183 |
$minimum_password_strength = ur_get_single_post_meta( $form_id, 'user_registration_form_setting_minimum_password_strength' );
|
@@ -204,6 +215,8 @@ class UR_Shortcodes {
|
|
204 |
|
205 |
$form_data_array = apply_filters( 'user_registration_before_registration_form_template', $form_data_array, $form_id );
|
206 |
|
|
|
|
|
207 |
include_once UR_ABSPATH . 'includes/frontend/class-ur-frontend.php';
|
208 |
ur_get_template(
|
209 |
'form-registration.php',
|
@@ -214,6 +227,8 @@ class UR_Shortcodes {
|
|
214 |
'enable_strong_password' => $enable_strong_password,
|
215 |
'minimum_password_strength' => $minimum_password_strength,
|
216 |
'recaptcha_node' => $recaptcha_node,
|
|
|
|
|
217 |
)
|
218 |
);
|
219 |
}
|
18 |
*/
|
19 |
class UR_Shortcodes {
|
20 |
|
21 |
+
public static $parts = false;
|
22 |
+
|
23 |
/**
|
24 |
* Init Shortcodes.
|
25 |
*/
|
147 |
'user_registration_form'
|
148 |
);
|
149 |
|
150 |
+
do_action( 'user_registration_form_shortcode_scripts', $atts );
|
151 |
+
|
152 |
ob_start();
|
153 |
self::render_form( $atts['id'] );
|
154 |
|
170 |
'post__in' => array( $form_id ),
|
171 |
);
|
172 |
|
173 |
+
$post_data = get_posts( $args );
|
174 |
+
$form_data = '';
|
175 |
+
$form_row_ids = '';
|
176 |
|
177 |
if ( isset( $post_data[0] ) ) {
|
178 |
+
$form_data = $post_data[0]->post_content;
|
179 |
+
$form_row_ids = get_post_meta( $post_data[0]->ID, 'user_registration_form_row_ids', true );
|
180 |
}
|
181 |
+
$form_data_array = json_decode( $form_data );
|
182 |
+
$form_row_ids_array = json_decode( $form_row_ids );
|
183 |
|
184 |
if ( gettype( $form_data_array ) != 'array' ) {
|
185 |
$form_data_array = array();
|
186 |
}
|
187 |
|
188 |
+
if ( gettype( $form_row_ids_array ) != 'array' ) {
|
189 |
+
$form_row_ids_array = array();
|
190 |
+
}
|
191 |
+
|
192 |
$is_field_exists = false;
|
193 |
$enable_strong_password = ur_get_single_post_meta( $form_id, 'user_registration_form_setting_enable_strong_password' );
|
194 |
$minimum_password_strength = ur_get_single_post_meta( $form_id, 'user_registration_form_setting_minimum_password_strength' );
|
215 |
|
216 |
$form_data_array = apply_filters( 'user_registration_before_registration_form_template', $form_data_array, $form_id );
|
217 |
|
218 |
+
self::$parts = apply_filters( 'user_registration_parts_data', self::$parts, $form_id, $form_data_array );
|
219 |
+
|
220 |
include_once UR_ABSPATH . 'includes/frontend/class-ur-frontend.php';
|
221 |
ur_get_template(
|
222 |
'form-registration.php',
|
227 |
'enable_strong_password' => $enable_strong_password,
|
228 |
'minimum_password_strength' => $minimum_password_strength,
|
229 |
'recaptcha_node' => $recaptcha_node,
|
230 |
+
'parts' => self::$parts,
|
231 |
+
'row_ids' => $form_row_ids_array,
|
232 |
)
|
233 |
);
|
234 |
}
|
includes/form/class-ur-form-field-checkbox.php
CHANGED
@@ -33,7 +33,7 @@ class UR_Form_Field_Checkbox extends UR_Form_Field {
|
|
33 |
$this->form_id = 1;
|
34 |
$this->registered_fields_config = array(
|
35 |
'label' => __( 'Checkbox', 'user-registration' ),
|
36 |
-
'icon' => '
|
37 |
);
|
38 |
|
39 |
$this->field_defaults = array(
|
33 |
$this->form_id = 1;
|
34 |
$this->registered_fields_config = array(
|
35 |
'label' => __( 'Checkbox', 'user-registration' ),
|
36 |
+
'icon' => 'ur-icon ur-icon-input-checkbox',
|
37 |
);
|
38 |
|
39 |
$this->field_defaults = array(
|
includes/form/class-ur-form-field-country.php
CHANGED
@@ -291,7 +291,7 @@ class UR_Form_Field_Country extends UR_Form_Field {
|
|
291 |
$this->form_id = 1;
|
292 |
$this->registered_fields_config = array(
|
293 |
'label' => __( 'Country', 'user-registration' ),
|
294 |
-
'icon' => '
|
295 |
);
|
296 |
|
297 |
$this->field_defaults = array(
|
291 |
$this->form_id = 1;
|
292 |
$this->registered_fields_config = array(
|
293 |
'label' => __( 'Country', 'user-registration' ),
|
294 |
+
'icon' => 'ur-icon ur-icon-flag',
|
295 |
);
|
296 |
|
297 |
$this->field_defaults = array(
|
includes/form/class-ur-form-field-date.php
CHANGED
@@ -35,7 +35,7 @@ class UR_Form_Field_Date extends UR_Form_Field {
|
|
35 |
$this->form_id = 1;
|
36 |
$this->registered_fields_config = array(
|
37 |
'label' => __( 'Date', 'user-registration' ),
|
38 |
-
'icon' => '
|
39 |
);
|
40 |
|
41 |
$this->field_defaults = array(
|
35 |
$this->form_id = 1;
|
36 |
$this->registered_fields_config = array(
|
37 |
'label' => __( 'Date', 'user-registration' ),
|
38 |
+
'icon' => 'ur-icon ur-icon-calendar',
|
39 |
);
|
40 |
|
41 |
$this->field_defaults = array(
|
includes/form/class-ur-form-field-description.php
CHANGED
@@ -34,7 +34,7 @@ class UR_Form_Field_Description extends UR_Form_Field {
|
|
34 |
$this->form_id = 1;
|
35 |
$this->registered_fields_config = array(
|
36 |
'label' => __( 'User Bio', 'user-registration' ),
|
37 |
-
'icon' => '
|
38 |
);
|
39 |
|
40 |
$this->field_defaults = array(
|
34 |
$this->form_id = 1;
|
35 |
$this->registered_fields_config = array(
|
36 |
'label' => __( 'User Bio', 'user-registration' ),
|
37 |
+
'icon' => 'ur-icon ur-icon-user-bio',
|
38 |
);
|
39 |
|
40 |
$this->field_defaults = array(
|
includes/form/class-ur-form-field-display-name.php
CHANGED
@@ -33,7 +33,7 @@ class UR_Form_Field_Display_Name extends UR_Form_Field {
|
|
33 |
$this->form_id = 1;
|
34 |
$this->registered_fields_config = array(
|
35 |
'label' => __( 'Display Name', 'user-registration' ),
|
36 |
-
'icon' => '
|
37 |
);
|
38 |
|
39 |
$this->field_defaults = array(
|
33 |
$this->form_id = 1;
|
34 |
$this->registered_fields_config = array(
|
35 |
'label' => __( 'Display Name', 'user-registration' ),
|
36 |
+
'icon' => 'ur-icon ur-icon-user-display-name',
|
37 |
);
|
38 |
|
39 |
$this->field_defaults = array(
|
includes/form/class-ur-form-field-email.php
CHANGED
@@ -33,7 +33,7 @@ class UR_Form_Field_Email extends UR_Form_Field {
|
|
33 |
$this->form_id = 1;
|
34 |
$this->registered_fields_config = array(
|
35 |
'label' => __( 'Secondary Email ', 'user-registration' ),
|
36 |
-
'icon' => '
|
37 |
);
|
38 |
|
39 |
$this->field_defaults = array(
|
33 |
$this->form_id = 1;
|
34 |
$this->registered_fields_config = array(
|
35 |
'label' => __( 'Secondary Email ', 'user-registration' ),
|
36 |
+
'icon' => 'ur-icon ur-icon-email-secondary',
|
37 |
);
|
38 |
|
39 |
$this->field_defaults = array(
|
includes/form/class-ur-form-field-first-name.php
CHANGED
@@ -33,7 +33,7 @@ class UR_Form_Field_First_Name extends UR_Form_Field {
|
|
33 |
$this->form_id = 1;
|
34 |
$this->registered_fields_config = array(
|
35 |
'label' => __( 'First Name', 'user-registration' ),
|
36 |
-
'icon' => '
|
37 |
);
|
38 |
|
39 |
$this->field_defaults = array(
|
33 |
$this->form_id = 1;
|
34 |
$this->registered_fields_config = array(
|
35 |
'label' => __( 'First Name', 'user-registration' ),
|
36 |
+
'icon' => 'ur-icon ur-icon-input-first-name',
|
37 |
);
|
38 |
|
39 |
$this->field_defaults = array(
|
includes/form/class-ur-form-field-last-name.php
CHANGED
@@ -33,7 +33,7 @@ class UR_Form_Field_Last_Name extends UR_Form_Field {
|
|
33 |
$this->form_id = 1;
|
34 |
$this->registered_fields_config = array(
|
35 |
'label' => __( 'Last Name ', 'user-registration' ),
|
36 |
-
'icon' => '
|
37 |
);
|
38 |
|
39 |
$this->field_defaults = array(
|
33 |
$this->form_id = 1;
|
34 |
$this->registered_fields_config = array(
|
35 |
'label' => __( 'Last Name ', 'user-registration' ),
|
36 |
+
'icon' => 'ur-icon ur-icon-input-last-name',
|
37 |
);
|
38 |
|
39 |
$this->field_defaults = array(
|
includes/form/class-ur-form-field-nickname.php
CHANGED
@@ -33,7 +33,7 @@ class UR_Form_Field_Nickname extends UR_Form_Field {
|
|
33 |
$this->form_id = 1;
|
34 |
$this->registered_fields_config = array(
|
35 |
'label' => __( 'Nickname', 'user-registration' ),
|
36 |
-
'icon' => '
|
37 |
);
|
38 |
|
39 |
$this->field_defaults = array(
|
33 |
$this->form_id = 1;
|
34 |
$this->registered_fields_config = array(
|
35 |
'label' => __( 'Nickname', 'user-registration' ),
|
36 |
+
'icon' => 'ur-icon ur-icon-user-nickname',
|
37 |
);
|
38 |
|
39 |
$this->field_defaults = array(
|
includes/form/class-ur-form-field-number.php
CHANGED
@@ -35,7 +35,7 @@ class UR_Form_Field_Number extends UR_Form_Field {
|
|
35 |
$this->form_id = 1;
|
36 |
$this->registered_fields_config = array(
|
37 |
'label' => __( 'Number', 'user-registration' ),
|
38 |
-
'icon' => '
|
39 |
);
|
40 |
|
41 |
$this->field_defaults = array(
|
35 |
$this->form_id = 1;
|
36 |
$this->registered_fields_config = array(
|
37 |
'label' => __( 'Number', 'user-registration' ),
|
38 |
+
'icon' => 'ur-icon ur-icon-number',
|
39 |
);
|
40 |
|
41 |
$this->field_defaults = array(
|
includes/form/class-ur-form-field-password.php
CHANGED
@@ -33,7 +33,7 @@ class UR_Form_Field_Password extends UR_Form_Field {
|
|
33 |
$this->form_id = 1;
|
34 |
$this->registered_fields_config = array(
|
35 |
'label' => __( 'Password Field', 'user-registration' ),
|
36 |
-
'icon' => '
|
37 |
);
|
38 |
|
39 |
$this->field_defaults = array(
|
33 |
$this->form_id = 1;
|
34 |
$this->registered_fields_config = array(
|
35 |
'label' => __( 'Password Field', 'user-registration' ),
|
36 |
+
'icon' => 'ur-icon ur-icon-input-password',
|
37 |
);
|
38 |
|
39 |
$this->field_defaults = array(
|
includes/form/class-ur-form-field-privacy-policy.php
CHANGED
@@ -33,7 +33,7 @@ class UR_Form_Field_Privacy_Policy extends UR_Form_Field {
|
|
33 |
$this->form_id = 1;
|
34 |
$this->registered_fields_config = array(
|
35 |
'label' => __( 'Privacy Policy', 'user-registration' ),
|
36 |
-
'icon' => '
|
37 |
);
|
38 |
|
39 |
$this->field_defaults = array(
|
33 |
$this->form_id = 1;
|
34 |
$this->registered_fields_config = array(
|
35 |
'label' => __( 'Privacy Policy', 'user-registration' ),
|
36 |
+
'icon' => 'ur-icon ur-icon-doc',
|
37 |
);
|
38 |
|
39 |
$this->field_defaults = array(
|
includes/form/class-ur-form-field-radio.php
CHANGED
@@ -36,7 +36,7 @@ class UR_Form_Field_Radio extends UR_Form_Field {
|
|
36 |
$this->form_id = 1;
|
37 |
$this->registered_fields_config = array(
|
38 |
'label' => __( 'Radio', 'user-registration' ),
|
39 |
-
'icon' => '
|
40 |
);
|
41 |
|
42 |
$this->field_defaults = array(
|
36 |
$this->form_id = 1;
|
37 |
$this->registered_fields_config = array(
|
38 |
'label' => __( 'Radio', 'user-registration' ),
|
39 |
+
'icon' => 'ur-icon ur-icon-radio',
|
40 |
);
|
41 |
|
42 |
$this->field_defaults = array(
|
includes/form/class-ur-form-field-select.php
CHANGED
@@ -33,7 +33,7 @@ class UR_Form_Field_Select extends UR_Form_Field {
|
|
33 |
$this->form_id = 1;
|
34 |
$this->registered_fields_config = array(
|
35 |
'label' => __( 'Select', 'user-registration' ),
|
36 |
-
'icon' => '
|
37 |
);
|
38 |
|
39 |
$this->field_defaults = array(
|
33 |
$this->form_id = 1;
|
34 |
$this->registered_fields_config = array(
|
35 |
'label' => __( 'Select', 'user-registration' ),
|
36 |
+
'icon' => 'ur-icon ur-icon-drop-down',
|
37 |
);
|
38 |
|
39 |
$this->field_defaults = array(
|
includes/form/class-ur-form-field-text.php
CHANGED
@@ -33,7 +33,7 @@ class UR_Form_Field_Text extends UR_Form_Field {
|
|
33 |
$this->form_id = 1;
|
34 |
$this->registered_fields_config = array(
|
35 |
'label' => __( 'Input Field', 'user-registration' ),
|
36 |
-
'icon' => '
|
37 |
);
|
38 |
|
39 |
$this->field_defaults = array(
|
33 |
$this->form_id = 1;
|
34 |
$this->registered_fields_config = array(
|
35 |
'label' => __( 'Input Field', 'user-registration' ),
|
36 |
+
'icon' => 'ur-icon ur-icon-input-field',
|
37 |
);
|
38 |
|
39 |
$this->field_defaults = array(
|
includes/form/class-ur-form-field-textarea.php
CHANGED
@@ -33,7 +33,7 @@ class UR_Form_Field_Textarea extends UR_Form_Field {
|
|
33 |
$this->form_id = 1;
|
34 |
$this->registered_fields_config = array(
|
35 |
'label' => __( 'Textarea', 'user-registration' ),
|
36 |
-
'icon' => '
|
37 |
);
|
38 |
|
39 |
$this->field_defaults = array(
|
33 |
$this->form_id = 1;
|
34 |
$this->registered_fields_config = array(
|
35 |
'label' => __( 'Textarea', 'user-registration' ),
|
36 |
+
'icon' => 'ur-icon ur-icon-textarea',
|
37 |
);
|
38 |
|
39 |
$this->field_defaults = array(
|
includes/form/class-ur-form-field-user-confirm-email.php
CHANGED
@@ -47,7 +47,7 @@ class UR_Form_Field_User_Confirm_Email extends UR_Form_Field {
|
|
47 |
$this->form_id = 1;
|
48 |
$this->registered_fields_config = array(
|
49 |
'label' => __( 'Confirm Email ', 'user-registration' ),
|
50 |
-
'icon' => '
|
51 |
);
|
52 |
|
53 |
$this->field_defaults = array(
|
47 |
$this->form_id = 1;
|
48 |
$this->registered_fields_config = array(
|
49 |
'label' => __( 'Confirm Email ', 'user-registration' ),
|
50 |
+
'icon' => 'ur-icon ur-icon-email-confirm',
|
51 |
);
|
52 |
|
53 |
$this->field_defaults = array(
|
includes/form/class-ur-form-field-user-confirm-password.php
CHANGED
@@ -33,7 +33,7 @@ class UR_Form_Field_User_Confirm_Password extends UR_Form_Field {
|
|
33 |
$this->form_id = 1;
|
34 |
$this->registered_fields_config = array(
|
35 |
'label' => __( 'Confirm Password ', 'user-registration' ),
|
36 |
-
'icon' => '
|
37 |
);
|
38 |
|
39 |
$this->field_defaults = array(
|
33 |
$this->form_id = 1;
|
34 |
$this->registered_fields_config = array(
|
35 |
'label' => __( 'Confirm Password ', 'user-registration' ),
|
36 |
+
'icon' => 'ur-icon ur-icon-password-confirm',
|
37 |
);
|
38 |
|
39 |
$this->field_defaults = array(
|
includes/form/class-ur-form-field-user-email.php
CHANGED
@@ -33,7 +33,7 @@ class UR_Form_Field_User_Email extends UR_Form_Field {
|
|
33 |
$this->form_id = 1;
|
34 |
$this->registered_fields_config = array(
|
35 |
'label' => __( 'Email ', 'user-registration' ),
|
36 |
-
'icon' => '
|
37 |
);
|
38 |
|
39 |
$this->field_defaults = array(
|
33 |
$this->form_id = 1;
|
34 |
$this->registered_fields_config = array(
|
35 |
'label' => __( 'Email ', 'user-registration' ),
|
36 |
+
'icon' => 'ur-icon ur-icon-email',
|
37 |
);
|
38 |
|
39 |
$this->field_defaults = array(
|
includes/form/class-ur-form-field-user-login.php
CHANGED
@@ -33,7 +33,7 @@ class UR_Form_Field_User_Login extends UR_Form_Field {
|
|
33 |
$this->form_id = 1;
|
34 |
$this->registered_fields_config = array(
|
35 |
'label' => __( 'Username', 'user-registration' ),
|
36 |
-
'icon' => '
|
37 |
);
|
38 |
|
39 |
$this->field_defaults = array(
|
33 |
$this->form_id = 1;
|
34 |
$this->registered_fields_config = array(
|
35 |
'label' => __( 'Username', 'user-registration' ),
|
36 |
+
'icon' => 'ur-icon ur-icon-user',
|
37 |
);
|
38 |
|
39 |
$this->field_defaults = array(
|
includes/form/class-ur-form-field-user-pass.php
CHANGED
@@ -33,7 +33,7 @@ class UR_Form_Field_User_Pass extends UR_Form_Field {
|
|
33 |
$this->form_id = 1;
|
34 |
$this->registered_fields_config = array(
|
35 |
'label' => __( 'Password ', 'user-registration' ),
|
36 |
-
'icon' => '
|
37 |
);
|
38 |
|
39 |
$this->field_defaults = array(
|
33 |
$this->form_id = 1;
|
34 |
$this->registered_fields_config = array(
|
35 |
'label' => __( 'Password ', 'user-registration' ),
|
36 |
+
'icon' => 'ur-icon ur-icon-password',
|
37 |
);
|
38 |
|
39 |
$this->field_defaults = array(
|
includes/form/class-ur-form-field-user-url.php
CHANGED
@@ -33,7 +33,7 @@ class UR_Form_Field_User_Url extends UR_Form_Field {
|
|
33 |
$this->form_id = 1;
|
34 |
$this->registered_fields_config = array(
|
35 |
'label' => __( 'Website', 'user-registration' ),
|
36 |
-
'icon' => '
|
37 |
);
|
38 |
|
39 |
$this->field_defaults = array(
|
33 |
$this->form_id = 1;
|
34 |
$this->registered_fields_config = array(
|
35 |
'label' => __( 'Website', 'user-registration' ),
|
36 |
+
'icon' => 'ur-icon ur-icon-website',
|
37 |
);
|
38 |
|
39 |
$this->field_defaults = array(
|
includes/frontend/class-ur-frontend.php
CHANGED
@@ -77,8 +77,14 @@ class UR_Frontend {
|
|
77 |
* @since 1.6.0
|
78 |
*/
|
79 |
public function prevent_core_login_page() {
|
|
|
|
|
80 |
if ( ! ( defined( 'UR_DISABLE_PREVENT_CORE_LOGIN' ) && true === UR_DISABLE_PREVENT_CORE_LOGIN ) && 'yes' === get_option( 'user_registration_login_options_prevent_core_login', 'no' ) ) {
|
81 |
-
|
|
|
|
|
|
|
|
|
82 |
}
|
83 |
}
|
84 |
}
|
77 |
* @since 1.6.0
|
78 |
*/
|
79 |
public function prevent_core_login_page() {
|
80 |
+
global $action;
|
81 |
+
|
82 |
if ( ! ( defined( 'UR_DISABLE_PREVENT_CORE_LOGIN' ) && true === UR_DISABLE_PREVENT_CORE_LOGIN ) && 'yes' === get_option( 'user_registration_login_options_prevent_core_login', 'no' ) ) {
|
83 |
+
if ( 'register' === $action || 'login' === $action ) {
|
84 |
+
$myaccount_page = add_query_arg( $_GET, ur_get_page_permalink( 'myaccount' ) ); // phpcs:ignore WordPress.Security.NonceVerification
|
85 |
+
wp_safe_redirect( $myaccount_page );
|
86 |
+
exit;
|
87 |
+
}
|
88 |
}
|
89 |
}
|
90 |
}
|
includes/functions-ur-core.php
CHANGED
@@ -146,6 +146,75 @@ function ur_sanitize_tooltip( $var ) {
|
|
146 |
);
|
147 |
}
|
148 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
149 |
/**
|
150 |
* Get other templates (e.g. my account) passing attributes and including the file.
|
151 |
*
|
@@ -837,8 +906,8 @@ function ur_admin_form_settings_fields( $form_id ) {
|
|
837 |
array(
|
838 |
'type' => 'text',
|
839 |
'label' => __( 'Redirect URL', 'user-registration' ),
|
840 |
-
'description' => __( 'This option lets you enter redirect path after successful user registration.', 'user-registration' ),
|
841 |
'id' => 'user_registration_form_setting_redirect_options',
|
|
|
842 |
'class' => array( 'ur-enhanced-select' ),
|
843 |
'input_class' => array(),
|
844 |
'custom_attributes' => array(),
|
146 |
);
|
147 |
}
|
148 |
|
149 |
+
/**
|
150 |
+
* Format dimensions for display.
|
151 |
+
*
|
152 |
+
* @since 1.7.0
|
153 |
+
* @param array $dimensions Array of dimensions.
|
154 |
+
* @param array $suffix Suffix, defaults to 'px'.
|
155 |
+
* @return string
|
156 |
+
*/
|
157 |
+
function ur_sanitize_dimension_unit( $dimensions = array(), $unit = 'px' ) {
|
158 |
+
return ur_array_to_string( ur_suffix_array( $dimensions, $unit ) );
|
159 |
+
}
|
160 |
+
|
161 |
+
/**
|
162 |
+
* Add a suffix into an array.
|
163 |
+
*
|
164 |
+
* @since 1.7.0
|
165 |
+
* @param array $array Raw array data.
|
166 |
+
* @param string $suffix Suffix to be added.
|
167 |
+
* @return array Modified array with suffix added.
|
168 |
+
*/
|
169 |
+
function ur_suffix_array( $array = array(), $suffix = '' ) {
|
170 |
+
return preg_filter( '/$/', $suffix, $array );
|
171 |
+
}
|
172 |
+
/**
|
173 |
+
* Implode an array into a string by $glue and remove empty values.
|
174 |
+
*
|
175 |
+
* @since 1.7.0
|
176 |
+
* @param array $array Array to convert.
|
177 |
+
* @param string $glue Glue, defaults to ' '.
|
178 |
+
* @return string
|
179 |
+
*/
|
180 |
+
function ur_array_to_string( $array = array(), $glue = ' ' ) {
|
181 |
+
return is_string( $array ) ? $array : implode( $glue, array_filter( $array ) );
|
182 |
+
}
|
183 |
+
/**
|
184 |
+
* Explode a string into an array by $delimiter and remove empty values.
|
185 |
+
*
|
186 |
+
* @since 1.7.0
|
187 |
+
* @param string $string String to convert.
|
188 |
+
* @param string $delimiter Delimiter, defaults to ','.
|
189 |
+
* @return array
|
190 |
+
*/
|
191 |
+
function ur_string_to_array( $string, $delimiter = ',' ) {
|
192 |
+
return is_array( $string ) ? $string : array_filter( explode( $delimiter, $string ) );
|
193 |
+
}
|
194 |
+
|
195 |
+
/**
|
196 |
+
* Converts a string (e.g. 'yes' or 'no') to a bool.
|
197 |
+
*
|
198 |
+
* @param string $string String to convert.
|
199 |
+
* @return bool
|
200 |
+
*/
|
201 |
+
function ur_string_to_bool( $string ) {
|
202 |
+
return is_bool( $string ) ? $string : ( 'yes' === $string || 1 === $string || 'true' === $string || '1' === $string );
|
203 |
+
}
|
204 |
+
|
205 |
+
/**
|
206 |
+
* Converts a bool to a 'yes' or 'no'.
|
207 |
+
*
|
208 |
+
* @param bool $bool String to convert.
|
209 |
+
* @return string
|
210 |
+
*/
|
211 |
+
function ur_bool_to_string( $bool ) {
|
212 |
+
if ( ! is_bool( $bool ) ) {
|
213 |
+
$bool = ur_string_to_bool( $bool );
|
214 |
+
}
|
215 |
+
return true === $bool ? 'yes' : 'no';
|
216 |
+
}
|
217 |
+
|
218 |
/**
|
219 |
* Get other templates (e.g. my account) passing attributes and including the file.
|
220 |
*
|
906 |
array(
|
907 |
'type' => 'text',
|
908 |
'label' => __( 'Redirect URL', 'user-registration' ),
|
|
|
909 |
'id' => 'user_registration_form_setting_redirect_options',
|
910 |
+
'description' => __( 'This option lets you enter redirect path after successful user registration.', 'user-registration' ),
|
911 |
'class' => array( 'ur-enhanced-select' ),
|
912 |
'input_class' => array(),
|
913 |
'custom_attributes' => array(),
|
includes/functions-ur-template.php
CHANGED
@@ -235,11 +235,7 @@ if ( ! function_exists( 'user_registration_form_field' ) ) {
|
|
235 |
$field = '';
|
236 |
$label_id = $args['id'];
|
237 |
$sort = $args['priority'] ? $args['priority'] : '';
|
238 |
-
$field_container = '<
|
239 |
-
|
240 |
-
if ( $args['description'] ) {
|
241 |
-
$field .= '<span class="description">' . $args['description'] . '</span>';
|
242 |
-
}
|
243 |
switch ( $args['type'] ) {
|
244 |
|
245 |
case 'textarea':
|
@@ -260,14 +256,12 @@ if ( ! function_exists( 'user_registration_form_field' ) ) {
|
|
260 |
|
261 |
$choices = isset( $options ) ? $options : array();
|
262 |
|
263 |
-
$field = '<label class="
|
264 |
$field .= $args['label'] . $required . '</label>';
|
265 |
-
if ( $args['description'] ) {
|
266 |
-
$field .= '<span class="description">' . $args['description'] . '</span>';
|
267 |
-
}
|
268 |
|
269 |
$checkbox_start = 0;
|
270 |
|
|
|
271 |
foreach ( $choices as $choice_index => $choice ) {
|
272 |
|
273 |
$value = '';
|
@@ -277,18 +271,16 @@ if ( ! function_exists( 'user_registration_form_field' ) ) {
|
|
277 |
$value = 'checked="checked"';
|
278 |
}
|
279 |
|
280 |
-
$field .= '<
|
281 |
-
$field .= '
|
282 |
-
$field .= trim( $choice ) . '
|
283 |
$checkbox_start++;
|
284 |
}
|
|
|
285 |
} else {
|
286 |
-
$field = '<label class="checkbox ' . implode( ' ', $custom_attributes ) . '">
|
287 |
<input data-rules="' . esc_attr( $rules ) . '" data-id="' . esc_attr( $key ) . '" ' . implode( ' ', $custom_attributes ) . ' data-value="' . $value . '" type="' . esc_attr( $args['type'] ) . '" class="input-checkbox ' . esc_attr( implode( ' ', $args['input_class'] ) ) . '" name="' . esc_attr( $key ) . '" id="' . esc_attr( $args['id'] ) . '" value="1" ' . checked( $value, 1, false ) . ' /> '
|
288 |
. $args['label'] . $required . '</label>';
|
289 |
-
if ( $args['description'] ) {
|
290 |
-
$field .= '<span class="description">' . $args['description'] . '</span>';
|
291 |
-
}
|
292 |
}
|
293 |
break;
|
294 |
|
@@ -311,6 +303,10 @@ if ( ! function_exists( 'user_registration_form_field' ) ) {
|
|
311 |
}
|
312 |
break;
|
313 |
|
|
|
|
|
|
|
|
|
314 |
case 'select':
|
315 |
$default_value = isset( $args['default_value'] ) ? $args['default_value'] : ''; // Backward compatibility. Modified since 1.5.7
|
316 |
|
@@ -372,11 +368,15 @@ if ( ! function_exists( 'user_registration_form_field' ) ) {
|
|
372 |
$value = ! empty( $value ) ? $value : $default_value;
|
373 |
$label_id = current( array_keys( $args['options'] ) );
|
374 |
if ( ! empty( $args['options'] ) ) {
|
|
|
|
|
375 |
foreach ( $args['options'] as $option_index => $option_text ) {
|
376 |
|
|
|
|
|
377 |
$field .= '<label for="' . esc_attr( $args['id'] ) . '_' . esc_attr( $option_text ) . '" class="radio">';
|
378 |
|
379 |
-
$field .=
|
380 |
trim( $option_text ),
|
381 |
array(
|
382 |
'a' => array(
|
@@ -385,18 +385,23 @@ if ( ! function_exists( 'user_registration_form_field' ) ) {
|
|
385 |
),
|
386 |
'span' => array(),
|
387 |
)
|
388 |
-
) . '</label>';
|
389 |
}
|
|
|
390 |
}
|
391 |
break;
|
392 |
|
393 |
}// End switch().
|
394 |
|
|
|
|
|
|
|
|
|
395 |
if ( ! empty( $field ) ) {
|
396 |
|
397 |
$field_html = '';
|
398 |
if ( $args['label'] && 'checkbox' != $args['type'] ) {
|
399 |
-
$field_html .= '<label for="' . esc_attr( $label_id ) . '">' . wp_kses(
|
400 |
$args['label'],
|
401 |
array(
|
402 |
'a' => array(
|
235 |
$field = '';
|
236 |
$label_id = $args['id'];
|
237 |
$sort = $args['priority'] ? $args['priority'] : '';
|
238 |
+
$field_container = '<div class="form-row %1$s" id="%2$s" data-priority="' . esc_attr( $sort ) . '">%3$s</div>';
|
|
|
|
|
|
|
|
|
239 |
switch ( $args['type'] ) {
|
240 |
|
241 |
case 'textarea':
|
256 |
|
257 |
$choices = isset( $options ) ? $options : array();
|
258 |
|
259 |
+
$field = '<label class="ur-label" ' . implode( ' ', $custom_attributes ) . '">';
|
260 |
$field .= $args['label'] . $required . '</label>';
|
|
|
|
|
|
|
261 |
|
262 |
$checkbox_start = 0;
|
263 |
|
264 |
+
$field .= '<ul>';
|
265 |
foreach ( $choices as $choice_index => $choice ) {
|
266 |
|
267 |
$value = '';
|
271 |
$value = 'checked="checked"';
|
272 |
}
|
273 |
|
274 |
+
$field .= '<li class="ur-checkbox-list">';
|
275 |
+
$field .= '<input data-rules="' . esc_attr( $rules ) . '" data-id="' . esc_attr( $key ) . '" ' . implode( ' ', $custom_attributes ) . ' data-value="' . $choice_index . '" type="' . esc_attr( $args['type'] ) . '" class="input-checkbox ' . esc_attr( implode( ' ', $args['input_class'] ) ) . '" name="' . esc_attr( $key ) . '[]" id="' . esc_attr( $args['id'] ) . '_' . esc_attr( $choice_index ) . '" value="' . trim( $choice_index ) . '"' . $value . ' /> ';
|
276 |
+
$field .= '<label class="ur-checkbox-label" for="' . esc_attr( $args['id'] ) . '_' . esc_attr( $choice_index ) . '">' . trim( $choice ) . '</label> </li>';
|
277 |
$checkbox_start++;
|
278 |
}
|
279 |
+
$field .= '</ul>';
|
280 |
} else {
|
281 |
+
$field = '<label class="ur-label checkbox ' . implode( ' ', $custom_attributes ) . '">
|
282 |
<input data-rules="' . esc_attr( $rules ) . '" data-id="' . esc_attr( $key ) . '" ' . implode( ' ', $custom_attributes ) . ' data-value="' . $value . '" type="' . esc_attr( $args['type'] ) . '" class="input-checkbox ' . esc_attr( implode( ' ', $args['input_class'] ) ) . '" name="' . esc_attr( $key ) . '" id="' . esc_attr( $args['id'] ) . '" value="1" ' . checked( $value, 1, false ) . ' /> '
|
283 |
. $args['label'] . $required . '</label>';
|
|
|
|
|
|
|
284 |
}
|
285 |
break;
|
286 |
|
303 |
}
|
304 |
break;
|
305 |
|
306 |
+
case 'color':
|
307 |
+
$field .= '<input data-rules="' . esc_attr( $rules ) . '" data-id="' . esc_attr( $key ) . '" type="text" class="input-text input-color ' . esc_attr( implode( ' ', $args['input_class'] ) ) . '" name="' . esc_attr( $key ) . '" id="' . esc_attr( $args['id'] ) . '" placeholder="' . esc_attr( $args['placeholder'] ) . '" value="' . esc_attr( $value ) . '" data-default-color="' . esc_attr( $args['default'] ) . '" ' . implode( ' ', $custom_attributes ) . ' />';
|
308 |
+
break;
|
309 |
+
|
310 |
case 'select':
|
311 |
$default_value = isset( $args['default_value'] ) ? $args['default_value'] : ''; // Backward compatibility. Modified since 1.5.7
|
312 |
|
368 |
$value = ! empty( $value ) ? $value : $default_value;
|
369 |
$label_id = current( array_keys( $args['options'] ) );
|
370 |
if ( ! empty( $args['options'] ) ) {
|
371 |
+
|
372 |
+
$field .= '<ul>';
|
373 |
foreach ( $args['options'] as $option_index => $option_text ) {
|
374 |
|
375 |
+
$field .= '<li class="ur-radio-list">';
|
376 |
+
$field .= '<input data-rules="' . esc_attr( $rules ) . '" data-id="' . esc_attr( $key ) . '" type="radio" class="input-radio ' . esc_attr( implode( ' ', $args['input_class'] ) ) . '" value="' . esc_attr( trim( $option_index ) ) . '" name="' . esc_attr( $key ) . '" id="' . esc_attr( $args['id'] ) . '_' . esc_attr( $option_text ) . '" ' . implode( ' ', $custom_attributes ) . ' / ' . checked( $value, trim( $option_index ), false ) . ' /> ';
|
377 |
$field .= '<label for="' . esc_attr( $args['id'] ) . '_' . esc_attr( $option_text ) . '" class="radio">';
|
378 |
|
379 |
+
$field .= wp_kses(
|
380 |
trim( $option_text ),
|
381 |
array(
|
382 |
'a' => array(
|
385 |
),
|
386 |
'span' => array(),
|
387 |
)
|
388 |
+
) . '</label></li>';
|
389 |
}
|
390 |
+
$field .= '</ul>';
|
391 |
}
|
392 |
break;
|
393 |
|
394 |
}// End switch().
|
395 |
|
396 |
+
if ( $args['description'] ) {
|
397 |
+
$field .= '<span class="description">' . $args['description'] . '</span>';
|
398 |
+
}
|
399 |
+
|
400 |
if ( ! empty( $field ) ) {
|
401 |
|
402 |
$field_html = '';
|
403 |
if ( $args['label'] && 'checkbox' != $args['type'] ) {
|
404 |
+
$field_html .= '<label for="' . esc_attr( $label_id ) . '" class="ur-label">' . wp_kses(
|
405 |
$args['label'],
|
406 |
array(
|
407 |
'a' => array(
|
languages/user-registration.pot
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
# This file is distributed under the same license as the User Registration package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: User Registration 1.
|
6 |
"Report-Msgid-Bugs-To: wpeverest@gmail.com\n"
|
7 |
-
"POT-Creation-Date: 2019-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -22,31 +22,32 @@ msgstr ""
|
|
22 |
msgid "Advance Settings"
|
23 |
msgstr ""
|
24 |
|
25 |
-
#: includes/admin/class-ur-admin-assets.php:
|
26 |
msgid "Upload Profile Picture"
|
27 |
msgstr ""
|
28 |
|
29 |
-
#: includes/admin/class-ur-admin-assets.php:
|
30 |
msgid "Select Image"
|
31 |
msgstr ""
|
32 |
|
33 |
-
#: includes/admin/class-ur-admin-assets.php:
|
34 |
msgid "Could not install."
|
35 |
msgstr ""
|
36 |
|
37 |
-
#: includes/admin/class-ur-admin-assets.php:
|
38 |
msgid "Clone"
|
39 |
msgstr ""
|
40 |
|
41 |
-
#: includes/admin/class-ur-admin-assets.php:
|
42 |
#: includes/admin/class-ur-admin-registrations-table-list.php:114
|
43 |
msgid "Trash"
|
44 |
msgstr ""
|
45 |
|
46 |
#: includes/admin/class-ur-admin-export-users.php:52
|
|
|
47 |
#: includes/admin/class-ur-admin-menus.php:241
|
48 |
#: includes/admin/class-ur-admin-notices.php:121
|
49 |
-
#: includes/admin/class-ur-admin-settings.php:
|
50 |
#: includes/admin/class-ur-admin-status.php:169
|
51 |
#: includes/class-ur-email-confirmation.php:213
|
52 |
msgid "Action failed. Please refresh the page and retry."
|
@@ -100,6 +101,23 @@ msgstr ""
|
|
100 |
msgid "Add Form"
|
101 |
msgstr ""
|
102 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
103 |
#: includes/admin/class-ur-admin-menus.php:152
|
104 |
msgid "Copy of "
|
105 |
msgstr ""
|
@@ -166,7 +184,7 @@ msgid "User Registration endpoints"
|
|
166 |
msgstr ""
|
167 |
|
168 |
#: includes/admin/class-ur-admin-menus.php:503
|
169 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
170 |
#: includes/class-ur-query.php:78
|
171 |
msgid "Lost password"
|
172 |
msgstr ""
|
@@ -179,7 +197,12 @@ msgstr ""
|
|
179 |
msgid "Add to menu"
|
180 |
msgstr ""
|
181 |
|
182 |
-
#: includes/admin/class-ur-admin-menus.php:
|
|
|
|
|
|
|
|
|
|
|
183 |
msgid "Empty form data"
|
184 |
msgstr ""
|
185 |
|
@@ -312,15 +335,15 @@ msgstr ""
|
|
312 |
msgid "Empty trash"
|
313 |
msgstr ""
|
314 |
|
315 |
-
#: includes/admin/class-ur-admin-settings.php:
|
316 |
msgid "Your settings have been saved."
|
317 |
msgstr ""
|
318 |
|
319 |
-
#: includes/admin/class-ur-admin-settings.php:
|
320 |
msgid "The changes you made will be lost if you navigate away from this page."
|
321 |
msgstr ""
|
322 |
|
323 |
-
#: includes/admin/class-ur-admin-settings.php:
|
324 |
msgid "Select a page…"
|
325 |
msgstr ""
|
326 |
|
@@ -329,6 +352,7 @@ msgid "User Registration:"
|
|
329 |
msgstr ""
|
330 |
|
331 |
#: includes/admin/class-ur-admin-user-list-manager.php:146
|
|
|
332 |
msgid "User"
|
333 |
msgstr ""
|
334 |
|
@@ -398,24 +422,24 @@ msgstr ""
|
|
398 |
msgid "denied"
|
399 |
msgstr ""
|
400 |
|
401 |
-
#: includes/admin/class-ur-admin.php:
|
402 |
#. translators: 1: WooCommerce 2:: five stars
|
403 |
msgid "If you like %1$s please leave us a %2$s rating. A huge thanks in advance!"
|
404 |
msgstr ""
|
405 |
|
406 |
-
#: includes/admin/class-ur-admin.php:
|
407 |
msgid "Thank You!"
|
408 |
msgstr ""
|
409 |
|
410 |
-
#: includes/admin/class-ur-admin.php:
|
411 |
msgid "Thank you for using User Registration."
|
412 |
msgstr ""
|
413 |
|
414 |
-
#: includes/admin/class-ur-admin.php:
|
415 |
msgid "Enjoying <strong>User Registration</strong>?"
|
416 |
msgstr ""
|
417 |
|
418 |
-
#: includes/admin/class-ur-admin.php:
|
419 |
msgid ""
|
420 |
"Looks like you have been using user registration for a while. Would you do "
|
421 |
"us some favour and leave a review on <a "
|
@@ -423,18 +447,22 @@ msgid ""
|
|
423 |
"post\" target=\"_blank\"><strong>WordPress.org</strong></a>?"
|
424 |
msgstr ""
|
425 |
|
426 |
-
#: includes/admin/class-ur-admin.php:
|
427 |
msgid "Sure, I'd love to!"
|
428 |
msgstr ""
|
429 |
|
430 |
-
#: includes/admin/class-ur-admin.php:
|
431 |
msgid "I already did!"
|
432 |
msgstr ""
|
433 |
|
434 |
-
#: includes/admin/class-ur-admin.php:
|
435 |
msgid "Never show again"
|
436 |
msgstr ""
|
437 |
|
|
|
|
|
|
|
|
|
438 |
#: includes/admin/functions-ur-admin.php:28
|
439 |
msgid "User Registration Activity"
|
440 |
msgstr ""
|
@@ -491,7 +519,7 @@ msgid "How the sender email appears in outgoing user registration emails."
|
|
491 |
msgstr ""
|
492 |
|
493 |
#: includes/admin/settings/class-ur-settings-email.php:161
|
494 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
495 |
msgid "Email"
|
496 |
msgstr ""
|
497 |
|
@@ -504,374 +532,382 @@ msgstr ""
|
|
504 |
msgid "Smart Tags Used"
|
505 |
msgstr ""
|
506 |
|
507 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
508 |
msgid "General"
|
509 |
msgstr ""
|
510 |
|
511 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
512 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
513 |
msgid "General Options"
|
514 |
msgstr ""
|
515 |
|
516 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
517 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
518 |
msgid "Login Options"
|
519 |
msgstr ""
|
520 |
|
521 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
522 |
msgid "Frontend Messages"
|
523 |
msgstr ""
|
524 |
|
525 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
526 |
-
#: includes/admin/views/html-admin-page-export-users.php:31
|
527 |
-
msgid "Export Users"
|
528 |
-
msgstr ""
|
529 |
-
|
530 |
-
#: includes/admin/settings/class-ur-settings-general.php:77
|
531 |
msgid "User login option"
|
532 |
msgstr ""
|
533 |
|
534 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
535 |
msgid "This option lets you choose login option after user registration."
|
536 |
msgstr ""
|
537 |
|
538 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
539 |
msgid "Prevent dashboard access"
|
540 |
msgstr ""
|
541 |
|
542 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
543 |
msgid ""
|
544 |
"This option lets you limit which roles you are willing to prevent dashboard "
|
545 |
"access."
|
546 |
msgstr ""
|
547 |
|
548 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
549 |
msgid "Uninstall Option"
|
550 |
msgstr ""
|
551 |
|
552 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
553 |
msgid ""
|
554 |
"Heads Up! Check this if you would like to remove ALL User Registration data "
|
555 |
"upon plugin deletion."
|
556 |
msgstr ""
|
557 |
|
558 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
559 |
msgid "My account Section"
|
560 |
msgstr ""
|
561 |
|
562 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
563 |
msgid "My account page"
|
564 |
msgstr ""
|
565 |
|
566 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
567 |
msgid "Page contents: [%s]"
|
568 |
msgstr ""
|
569 |
|
570 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
571 |
msgid "Layout"
|
572 |
msgstr ""
|
573 |
|
574 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
575 |
msgid "This option lets you choose layout for user registration my account tab."
|
576 |
msgstr ""
|
577 |
|
578 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
579 |
msgid "Horizontal"
|
580 |
msgstr ""
|
581 |
|
582 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
583 |
msgid "Vertical"
|
584 |
msgstr ""
|
585 |
|
586 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
587 |
msgid "Endpoints: "
|
588 |
msgstr ""
|
589 |
|
590 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
591 |
msgid ""
|
592 |
"Endpoints are appended to your page URLs to handle specific actions on the "
|
593 |
"accounts pages. They should be unique and can be left blank to disable the "
|
594 |
"endpoint."
|
595 |
msgstr ""
|
596 |
|
597 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
598 |
msgid "Edit profile"
|
599 |
msgstr ""
|
600 |
|
601 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
602 |
msgid "Endpoint for the \"My account → Edit profile\" page."
|
603 |
msgstr ""
|
604 |
|
605 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
606 |
#: includes/class-ur-query.php:72 includes/functions-ur-account.php:109
|
607 |
#: templates/myaccount/form-edit-password.php:35
|
608 |
msgid "Change Password"
|
609 |
msgstr ""
|
610 |
|
611 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
612 |
msgid "Endpoint for the \"My account → Change Password\" page."
|
613 |
msgstr ""
|
614 |
|
615 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
616 |
msgid "Endpoint for the \"My account → Lost password\" page."
|
617 |
msgstr ""
|
618 |
|
619 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
620 |
msgid "User logout"
|
621 |
msgstr ""
|
622 |
|
623 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
624 |
msgid ""
|
625 |
"Endpoint for the triggering logout. You can add this to your menus via a "
|
626 |
"custom link: yoursite.com/?user-logout=true"
|
627 |
msgstr ""
|
628 |
|
629 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
630 |
msgid "Success Messages"
|
631 |
msgstr ""
|
632 |
|
633 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
634 |
-
#: includes/functions-ur-core.php:
|
635 |
msgid "Manual login after registration"
|
636 |
msgstr ""
|
637 |
|
638 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
639 |
msgid ""
|
640 |
"Enter the text message after successful form submission on manual login "
|
641 |
"after registration."
|
642 |
msgstr ""
|
643 |
|
644 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
645 |
#: includes/class-ur-frontend-scripts.php:346
|
646 |
msgid "User successfully registered."
|
647 |
msgstr ""
|
648 |
|
649 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
650 |
-
#: includes/functions-ur-core.php:
|
651 |
msgid "Email confirmation to login"
|
652 |
msgstr ""
|
653 |
|
654 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
655 |
msgid ""
|
656 |
"Enter the text message after successful form submission on email "
|
657 |
"confirmation to login."
|
658 |
msgstr ""
|
659 |
|
660 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
661 |
#: includes/class-ur-frontend-scripts.php:348
|
662 |
msgid ""
|
663 |
"User registered. Verify your email by clicking on the link sent to your "
|
664 |
"email."
|
665 |
msgstr ""
|
666 |
|
667 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
668 |
-
#: includes/functions-ur-core.php:
|
669 |
msgid "Admin approval after registration"
|
670 |
msgstr ""
|
671 |
|
672 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
673 |
msgid ""
|
674 |
"Enter the text message after successful form submission on admin approval "
|
675 |
"after registration."
|
676 |
msgstr ""
|
677 |
|
678 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
679 |
#: includes/class-ur-frontend-scripts.php:347
|
680 |
msgid "User registered. Wait until admin approves your registration."
|
681 |
msgstr ""
|
682 |
|
683 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
684 |
msgid "Error Messages"
|
685 |
msgstr ""
|
686 |
|
687 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
688 |
-
#: includes/functions-ur-core.php:
|
689 |
msgid "Required"
|
690 |
msgstr ""
|
691 |
|
692 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
693 |
msgid "Enter the error message in form submission on required fields."
|
694 |
msgstr ""
|
695 |
|
696 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
697 |
#: includes/class-ur-frontend-scripts.php:339
|
698 |
msgid "This field is required."
|
699 |
msgstr ""
|
700 |
|
701 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
702 |
msgid "Enter the error message in form submission on Email."
|
703 |
msgstr ""
|
704 |
|
705 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
706 |
#: includes/class-ur-frontend-scripts.php:340
|
707 |
msgid "Please enter a valid email address."
|
708 |
msgstr ""
|
709 |
|
710 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
711 |
msgid "Website URL"
|
712 |
msgstr ""
|
713 |
|
714 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
715 |
msgid "Enter the error message in form submission on website/URL."
|
716 |
msgstr ""
|
717 |
|
718 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
719 |
#: includes/class-ur-frontend-scripts.php:341
|
720 |
msgid "Please enter a valid URL."
|
721 |
msgstr ""
|
722 |
|
723 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
724 |
#: includes/form/class-ur-form-field-number.php:37
|
725 |
#: includes/form/class-ur-form-field-number.php:42
|
726 |
msgid "Number"
|
727 |
msgstr ""
|
728 |
|
729 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
730 |
msgid "Enter the error message in form submission on Number."
|
731 |
msgstr ""
|
732 |
|
733 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
734 |
#: includes/class-ur-frontend-scripts.php:342
|
735 |
msgid "Please enter a valid number."
|
736 |
msgstr ""
|
737 |
|
738 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
739 |
#: includes/form/class-ur-form-field-user-confirm-email.php:54
|
740 |
msgid "Confirm Email"
|
741 |
msgstr ""
|
742 |
|
743 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
744 |
msgid "Enter the error message in form submission on Confim Email."
|
745 |
msgstr ""
|
746 |
|
747 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
748 |
#: includes/class-ur-frontend-scripts.php:344
|
749 |
msgid "Email and confirm email not matched."
|
750 |
msgstr ""
|
751 |
|
752 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
753 |
#: includes/form/class-ur-form-field-user-confirm-password.php:40
|
754 |
msgid "Confirm Password"
|
755 |
msgstr ""
|
756 |
|
757 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
758 |
msgid "Enter the error message in form submission on Confim Password."
|
759 |
msgstr ""
|
760 |
|
761 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
762 |
#: includes/class-ur-frontend-scripts.php:343
|
763 |
msgid "Password and confirm password not matched."
|
764 |
msgstr ""
|
765 |
|
766 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
767 |
msgid "Google reCaptcha"
|
768 |
msgstr ""
|
769 |
|
770 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
771 |
msgid "Enter the error message in form submission on google recaptcha."
|
772 |
msgstr ""
|
773 |
|
774 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
775 |
-
#: includes/class-ur-ajax.php:
|
776 |
#: includes/class-ur-frontend-scripts.php:349
|
777 |
msgid "Captcha code error, please try again."
|
778 |
msgstr ""
|
779 |
|
780 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
781 |
-
#: includes/functions-ur-core.php:
|
782 |
msgid "Form Template"
|
783 |
msgstr ""
|
784 |
|
785 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
786 |
msgid "Choose the login form template."
|
787 |
msgstr ""
|
788 |
|
789 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
790 |
-
#: includes/functions-ur-core.php:
|
791 |
msgid "Default"
|
792 |
msgstr ""
|
793 |
|
794 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
795 |
-
#: includes/functions-ur-core.php:
|
796 |
msgid "Bordered"
|
797 |
msgstr ""
|
798 |
|
799 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
800 |
-
#: includes/functions-ur-core.php:
|
801 |
msgid "Flat"
|
802 |
msgstr ""
|
803 |
|
804 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
805 |
-
#: includes/functions-ur-core.php:
|
806 |
msgid "Rounded"
|
807 |
msgstr ""
|
808 |
|
809 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
810 |
-
#: includes/functions-ur-core.php:
|
811 |
msgid "Rounded Edge"
|
812 |
msgstr ""
|
813 |
|
814 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
815 |
msgid "Enable remember me"
|
816 |
msgstr ""
|
817 |
|
818 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
819 |
msgid "Check to enable/disable remember me."
|
820 |
msgstr ""
|
821 |
|
822 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
823 |
msgid "Enable hide/show password"
|
824 |
msgstr ""
|
825 |
|
826 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
827 |
msgid "Check to enable hide/show password icon in login form."
|
828 |
msgstr ""
|
829 |
|
830 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
831 |
msgid "Enable lost password"
|
832 |
msgstr ""
|
833 |
|
834 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
835 |
msgid "Check to enable/disable lost password."
|
836 |
msgstr ""
|
837 |
|
838 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
839 |
msgid "Enable google reCaptcha"
|
840 |
msgstr ""
|
841 |
|
842 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
843 |
msgid "Enable %1$s %2$s reCaptcha %3$s support"
|
844 |
msgstr ""
|
845 |
|
846 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
847 |
msgid "Registration URL"
|
848 |
msgstr ""
|
849 |
|
850 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
851 |
msgid "This option lets you enter the registration page url in login form."
|
852 |
msgstr ""
|
853 |
|
854 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
855 |
msgid "Registration URL label"
|
856 |
msgstr ""
|
857 |
|
858 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
859 |
msgid "This option lets you enter the label to registration url in login form."
|
860 |
msgstr ""
|
861 |
|
862 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
863 |
#: templates/myaccount/form-login.php:122
|
864 |
msgid "Not a member yet? Register now."
|
865 |
msgstr ""
|
866 |
|
867 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
868 |
msgid "Prevent Core Login"
|
869 |
msgstr ""
|
870 |
|
871 |
-
#: includes/admin/settings/class-ur-settings-general.php:
|
872 |
msgid "Check to disable WordPress default login or registration page."
|
873 |
msgstr ""
|
874 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
875 |
#: includes/admin/settings/class-ur-settings-integration.php:29
|
876 |
msgid "Integration"
|
877 |
msgstr ""
|
@@ -985,7 +1021,7 @@ msgid "The email subject you want to customize."
|
|
985 |
msgstr ""
|
986 |
|
987 |
#: includes/admin/settings/emails/class-ur-settings-admin-email.php:69
|
988 |
-
#: includes/class-ur-emailer.php:
|
989 |
msgid "A New User Registered"
|
990 |
msgstr ""
|
991 |
|
@@ -1015,15 +1051,15 @@ msgstr ""
|
|
1015 |
|
1016 |
#: includes/admin/settings/emails/class-ur-settings-admin-email.php:100
|
1017 |
msgid ""
|
1018 |
-
"
|
1019 |
"\n"
|
1020 |
"A new user {{username}} - {{email}} has successfully registered to your "
|
1021 |
-
"site <a href=\"{{home_url}}\">{{blog_info}}</a
|
1022 |
"\n"
|
1023 |
"Please review the user role and details at '<b>Users</b>' menu in your WP "
|
1024 |
-
"dashboard
|
1025 |
"\n"
|
1026 |
-
"Thank You
|
1027 |
msgstr ""
|
1028 |
|
1029 |
#: includes/admin/settings/emails/class-ur-settings-awaiting-admin-approval-email.php:25
|
@@ -1045,20 +1081,20 @@ msgid ""
|
|
1045 |
msgstr ""
|
1046 |
|
1047 |
#: includes/admin/settings/emails/class-ur-settings-awaiting-admin-approval-email.php:60
|
1048 |
-
#: includes/class-ur-emailer.php:
|
1049 |
msgid "Thank you for registration on {{blog_info}}"
|
1050 |
msgstr ""
|
1051 |
|
1052 |
#: includes/admin/settings/emails/class-ur-settings-awaiting-admin-approval-email.php:92
|
1053 |
msgid ""
|
1054 |
-
"
|
1055 |
"\n"
|
1056 |
-
"You have registered on <a href=\"{{home_url}}\">{{blog_info}}</a
|
1057 |
"\n"
|
1058 |
"Please wait until the site admin approves your registration. You will be "
|
1059 |
-
"notified after it is approved
|
1060 |
"\n"
|
1061 |
-
"Thank You
|
1062 |
msgstr ""
|
1063 |
|
1064 |
#: includes/admin/settings/emails/class-ur-settings-email-confirmation.php:24
|
@@ -1073,20 +1109,21 @@ msgid ""
|
|
1073 |
msgstr ""
|
1074 |
|
1075 |
#: includes/admin/settings/emails/class-ur-settings-email-confirmation.php:52
|
1076 |
-
#: includes/class-ur-emailer.php:
|
1077 |
msgid "Please confirm your registration on {{blog_info}}"
|
1078 |
msgstr ""
|
1079 |
|
1080 |
#: includes/admin/settings/emails/class-ur-settings-email-confirmation.php:86
|
1081 |
msgid ""
|
1082 |
-
"
|
1083 |
"\n"
|
1084 |
-
"You have registered on <a href=\"{{home_url}}\">{{blog_info}}</a
|
1085 |
"\n"
|
1086 |
"Please click on this verification link "
|
1087 |
-
"{{home_url}}/
|
|
|
1088 |
"\n"
|
1089 |
-
"Thank You!
|
1090 |
msgstr ""
|
1091 |
|
1092 |
#: includes/admin/settings/emails/class-ur-settings-profile-details-changed-email.php:25
|
@@ -1103,20 +1140,20 @@ msgid "Enable this email sent to the admin when a user changed profile informati
|
|
1103 |
msgstr ""
|
1104 |
|
1105 |
#: includes/admin/settings/emails/class-ur-settings-profile-details-changed-email.php:70
|
1106 |
-
#: includes/class-ur-emailer.php:
|
1107 |
msgid "Profile Details Changed Email: {{blog_info}}"
|
1108 |
msgstr ""
|
1109 |
|
1110 |
#: includes/admin/settings/emails/class-ur-settings-profile-details-changed-email.php:103
|
1111 |
msgid ""
|
1112 |
-
"
|
1113 |
"\n"
|
1114 |
-
"SiteName: {{blog_info}}
|
1115 |
-
"Username: {{username}}
|
1116 |
"\n"
|
1117 |
"{{all_fields}}\n"
|
1118 |
-
"
|
1119 |
-
"Thank You!
|
1120 |
msgstr ""
|
1121 |
|
1122 |
#: includes/admin/settings/emails/class-ur-settings-registration-approved-email.php:25
|
@@ -1135,21 +1172,22 @@ msgid ""
|
|
1135 |
msgstr ""
|
1136 |
|
1137 |
#: includes/admin/settings/emails/class-ur-settings-registration-approved-email.php:60
|
1138 |
-
#: includes/class-ur-emailer.php:
|
1139 |
msgid "Congratulations! Registration approved on {{blog_info}}"
|
1140 |
msgstr ""
|
1141 |
|
1142 |
#: includes/admin/settings/emails/class-ur-settings-registration-approved-email.php:92
|
1143 |
msgid ""
|
1144 |
-
"
|
1145 |
"\n"
|
1146 |
"Your registration on <a href=\"{{home_url}}\">{{blog_info}}</a> has been "
|
1147 |
-
"approved
|
1148 |
"\n"
|
1149 |
"Please visit '<b>My Account</b>' page to edit your account details and "
|
1150 |
-
"create your user profile on <a href=\"{{home_url}}\">{{blog_info}}</a
|
|
|
1151 |
"\n"
|
1152 |
-
"Thank You!
|
1153 |
msgstr ""
|
1154 |
|
1155 |
#: includes/admin/settings/emails/class-ur-settings-registration-denied-email.php:25
|
@@ -1168,19 +1206,20 @@ msgid ""
|
|
1168 |
msgstr ""
|
1169 |
|
1170 |
#: includes/admin/settings/emails/class-ur-settings-registration-denied-email.php:60
|
1171 |
-
#: includes/class-ur-emailer.php:
|
1172 |
msgid "Sorry! Registration denied on {{blog_info}}"
|
1173 |
msgstr ""
|
1174 |
|
1175 |
#: includes/admin/settings/emails/class-ur-settings-registration-denied-email.php:92
|
1176 |
msgid ""
|
1177 |
-
"
|
1178 |
"\n"
|
1179 |
-
"You have registered on <a href=\"{{home_url}}\">{{blog_info}}</a
|
1180 |
"\n"
|
1181 |
-
"Unfortunately your registration is denied. Sorry for the inconvenience
|
|
|
1182 |
"\n"
|
1183 |
-
"Thank You!
|
1184 |
msgstr ""
|
1185 |
|
1186 |
#: includes/admin/settings/emails/class-ur-settings-registration-pending-email.php:25
|
@@ -1197,22 +1236,22 @@ msgid "Enable this email sent to the user notifying the registration is pending.
|
|
1197 |
msgstr ""
|
1198 |
|
1199 |
#: includes/admin/settings/emails/class-ur-settings-registration-pending-email.php:61
|
1200 |
-
#: includes/class-ur-emailer.php:
|
1201 |
msgid "Sorry! Registration changed to pending on {{blog_info}}"
|
1202 |
msgstr ""
|
1203 |
|
1204 |
#: includes/admin/settings/emails/class-ur-settings-registration-pending-email.php:95
|
1205 |
msgid ""
|
1206 |
-
"
|
1207 |
"\n"
|
1208 |
"Your registration on <a href=\"{{home_url}}\">{{blog_info}}</a> has been "
|
1209 |
-
"changed to pending
|
1210 |
"\n"
|
1211 |
-
"Sorry for the inconvenience
|
1212 |
"\n"
|
1213 |
-
"You will be notified after it is approved
|
1214 |
"\n"
|
1215 |
-
"Thank You!
|
1216 |
msgstr ""
|
1217 |
|
1218 |
#: includes/admin/settings/emails/class-ur-settings-reset-password-email.php:24
|
@@ -1229,23 +1268,24 @@ msgid "Enable this email sent to the user when a user requests for reset passwor
|
|
1229 |
msgstr ""
|
1230 |
|
1231 |
#: includes/admin/settings/emails/class-ur-settings-reset-password-email.php:59
|
1232 |
-
#: includes/class-ur-emailer.php:
|
1233 |
msgid "Password Reset Email: {{blog_info}}"
|
1234 |
msgstr ""
|
1235 |
|
1236 |
#: includes/admin/settings/emails/class-ur-settings-reset-password-email.php:90
|
1237 |
msgid ""
|
1238 |
-
"
|
1239 |
"\n"
|
1240 |
-
"SiteName: {{blog_info}}
|
1241 |
-
"Username: {{username}}
|
1242 |
"\n"
|
1243 |
-
"If this was a mistake, just ignore this email and nothing will happen
|
|
|
1244 |
"\n"
|
1245 |
-
"To reset your password, visit the following address
|
1246 |
-
"{{home_url}}/
|
1247 |
"\n"
|
1248 |
-
"Thank You!
|
1249 |
msgstr ""
|
1250 |
|
1251 |
#: includes/admin/settings/emails/class-ur-settings-successfully-registered-email.php:25
|
@@ -1262,21 +1302,22 @@ msgid "Enable this email sent to the user after successful user registration."
|
|
1262 |
msgstr ""
|
1263 |
|
1264 |
#: includes/admin/settings/emails/class-ur-settings-successfully-registered-email.php:60
|
1265 |
-
#: includes/class-ur-emailer.php:
|
1266 |
msgid "Congratulations! Registration Complete on {{blog_info}}"
|
1267 |
msgstr ""
|
1268 |
|
1269 |
#: includes/admin/settings/emails/class-ur-settings-successfully-registered-email.php:91
|
1270 |
msgid ""
|
1271 |
-
"
|
1272 |
"\n"
|
1273 |
"You have successfully completed user registration on <a "
|
1274 |
-
"href=\"{{home_url}}\">{{blog_info}}</a
|
1275 |
"\n"
|
1276 |
"Please visit '<b>My Account</b>' page to edit your account details and "
|
1277 |
-
"create your user profile on <a href=\"{{home_url}}\">{{blog_info}}</a
|
|
|
1278 |
"\n"
|
1279 |
-
"Thank You!
|
1280 |
msgstr ""
|
1281 |
|
1282 |
#: includes/admin/updater/class-ur-addon-updater.php:222
|
@@ -1321,15 +1362,11 @@ msgid ""
|
|
1321 |
"registration form as a <strong>CSV</strong> file."
|
1322 |
msgstr ""
|
1323 |
|
1324 |
-
#: includes/admin/views/html-admin-page-forms.php:
|
1325 |
-
msgid "Form Name"
|
1326 |
-
msgstr ""
|
1327 |
-
|
1328 |
-
#: includes/admin/views/html-admin-page-forms.php:28
|
1329 |
msgid "Copy Shortcode!"
|
1330 |
msgstr ""
|
1331 |
|
1332 |
-
#: includes/admin/views/html-admin-page-forms.php:
|
1333 |
msgid "Copied!"
|
1334 |
msgstr ""
|
1335 |
|
@@ -1345,22 +1382,46 @@ msgstr ""
|
|
1345 |
msgid "Fields"
|
1346 |
msgstr ""
|
1347 |
|
1348 |
-
#: includes/admin/views/html-admin-page-forms.php:
|
1349 |
msgid "Field Options"
|
1350 |
msgstr ""
|
1351 |
|
1352 |
-
#: includes/admin/views/html-admin-page-forms.php:
|
1353 |
msgid "Form Setting"
|
1354 |
msgstr ""
|
1355 |
|
1356 |
-
#: includes/admin/views/html-admin-page-forms.php:
|
1357 |
msgid "Default User Fields"
|
1358 |
msgstr ""
|
1359 |
|
1360 |
-
#: includes/admin/views/html-admin-page-forms.php:
|
1361 |
msgid "Extra Fields"
|
1362 |
msgstr ""
|
1363 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1364 |
#: includes/admin/views/html-admin-page-status-logs.php:21
|
1365 |
msgid "Delete log"
|
1366 |
msgstr ""
|
@@ -1474,40 +1535,40 @@ msgstr ""
|
|
1474 |
msgid "Taking a while? Click here to run it now."
|
1475 |
msgstr ""
|
1476 |
|
1477 |
-
#: includes/class-ur-ajax.php:
|
1478 |
msgid "You are already logged in."
|
1479 |
msgstr ""
|
1480 |
|
1481 |
-
#: includes/class-ur-ajax.php:
|
1482 |
msgid "Nonce error, please reload."
|
1483 |
msgstr ""
|
1484 |
|
1485 |
-
#: includes/class-ur-ajax.php:
|
1486 |
msgid "Error on google reCaptcha. Contact your site administrator."
|
1487 |
msgstr ""
|
1488 |
|
1489 |
-
#: includes/class-ur-ajax.php:
|
1490 |
msgid "Only administrators can add new users."
|
1491 |
msgstr ""
|
1492 |
|
1493 |
-
#: includes/class-ur-ajax.php:
|
1494 |
msgid "You are currently logged in as %1$1s. %2$2s"
|
1495 |
msgstr ""
|
1496 |
|
1497 |
-
#: includes/class-ur-ajax.php:
|
1498 |
msgid "Log out of this account."
|
1499 |
msgstr ""
|
1500 |
|
1501 |
-
#: includes/class-ur-ajax.php:
|
1502 |
#: includes/functions-ur-account.php:110
|
1503 |
msgid "Logout"
|
1504 |
msgstr ""
|
1505 |
|
1506 |
-
#: includes/class-ur-ajax.php:
|
1507 |
msgid "post data not set"
|
1508 |
msgstr ""
|
1509 |
|
1510 |
-
#: includes/class-ur-ajax.php:
|
1511 |
msgid "Could not save form. Invalid field name. Please check all field name"
|
1512 |
msgstr ""
|
1513 |
|
@@ -1570,7 +1631,7 @@ msgid ""
|
|
1570 |
"email."
|
1571 |
msgstr ""
|
1572 |
|
1573 |
-
#: includes/class-ur-emailer.php:146
|
1574 |
msgid "Chosen Password"
|
1575 |
msgstr ""
|
1576 |
|
@@ -1681,22 +1742,22 @@ msgid "Please enter a stronger password."
|
|
1681 |
msgstr ""
|
1682 |
|
1683 |
#: includes/class-ur-frontend-scripts.php:361
|
1684 |
-
#: includes/functions-ur-core.php:
|
1685 |
msgid "Very Weak"
|
1686 |
msgstr ""
|
1687 |
|
1688 |
#: includes/class-ur-frontend-scripts.php:362
|
1689 |
-
#: includes/functions-ur-core.php:
|
1690 |
msgid "Weak"
|
1691 |
msgstr ""
|
1692 |
|
1693 |
#: includes/class-ur-frontend-scripts.php:363
|
1694 |
-
#: includes/functions-ur-core.php:
|
1695 |
msgid "Medium"
|
1696 |
msgstr ""
|
1697 |
|
1698 |
#: includes/class-ur-frontend-scripts.php:364
|
1699 |
-
#: includes/functions-ur-core.php:
|
1700 |
msgid "Strong"
|
1701 |
msgstr ""
|
1702 |
|
@@ -1851,11 +1912,11 @@ msgstr ""
|
|
1851 |
msgid "Parent registration"
|
1852 |
msgstr ""
|
1853 |
|
1854 |
-
#: includes/class-ur-preview.php:
|
1855 |
msgid "Edit Form"
|
1856 |
msgstr ""
|
1857 |
|
1858 |
-
#: includes/class-ur-preview.php:
|
1859 |
#. translators: %s - Form name.
|
1860 |
msgid "%s – Preview"
|
1861 |
msgstr ""
|
@@ -2083,21 +2144,21 @@ msgstr ""
|
|
2083 |
#: includes/form/class-ur-form-field-checkbox.php:43
|
2084 |
#: includes/form/class-ur-form-field-radio.php:46
|
2085 |
#: includes/form/class-ur-form-field-select.php:43
|
2086 |
-
#: includes/functions-ur-core.php:
|
2087 |
msgid "First Choice"
|
2088 |
msgstr ""
|
2089 |
|
2090 |
#: includes/form/class-ur-form-field-checkbox.php:44
|
2091 |
#: includes/form/class-ur-form-field-radio.php:47
|
2092 |
#: includes/form/class-ur-form-field-select.php:44
|
2093 |
-
#: includes/functions-ur-core.php:
|
2094 |
msgid "Second Choice"
|
2095 |
msgstr ""
|
2096 |
|
2097 |
#: includes/form/class-ur-form-field-checkbox.php:45
|
2098 |
#: includes/form/class-ur-form-field-radio.php:48
|
2099 |
#: includes/form/class-ur-form-field-select.php:45
|
2100 |
-
#: includes/functions-ur-core.php:
|
2101 |
msgid "Third Choice"
|
2102 |
msgstr ""
|
2103 |
|
@@ -3353,103 +3414,103 @@ msgstr ""
|
|
3353 |
msgid "Dashboard"
|
3354 |
msgstr ""
|
3355 |
|
3356 |
-
#: includes/functions-ur-core.php:
|
3357 |
msgid "Username can not be changed."
|
3358 |
msgstr ""
|
3359 |
|
3360 |
-
#: includes/functions-ur-core.php:
|
3361 |
msgid "Passowrd can not be changed."
|
3362 |
msgstr ""
|
3363 |
|
3364 |
-
#: includes/functions-ur-core.php:
|
3365 |
msgid "Confirm password can not be changed."
|
3366 |
msgstr ""
|
3367 |
|
3368 |
-
#: includes/functions-ur-core.php:
|
3369 |
msgid "Confirm email can not be changed."
|
3370 |
msgstr ""
|
3371 |
|
3372 |
-
#: includes/functions-ur-core.php:
|
3373 |
msgid "Label"
|
3374 |
msgstr ""
|
3375 |
|
3376 |
-
#: includes/functions-ur-core.php:
|
3377 |
msgid "Description"
|
3378 |
msgstr ""
|
3379 |
|
3380 |
-
#: includes/functions-ur-core.php:
|
3381 |
msgid "Field Name"
|
3382 |
msgstr ""
|
3383 |
|
3384 |
-
#: includes/functions-ur-core.php:
|
3385 |
msgid "Placeholder"
|
3386 |
msgstr ""
|
3387 |
|
3388 |
-
#: includes/functions-ur-core.php:
|
3389 |
-
#: includes/functions-ur-core.php:
|
3390 |
msgid "No"
|
3391 |
msgstr ""
|
3392 |
|
3393 |
-
#: includes/functions-ur-core.php:
|
3394 |
-
#: includes/functions-ur-core.php:
|
3395 |
msgid "Yes"
|
3396 |
msgstr ""
|
3397 |
|
3398 |
-
#: includes/functions-ur-core.php:
|
3399 |
msgid "Hide Label"
|
3400 |
msgstr ""
|
3401 |
|
3402 |
-
#: includes/functions-ur-core.php:
|
3403 |
msgid "Options"
|
3404 |
msgstr ""
|
3405 |
|
3406 |
-
#: includes/functions-ur-core.php:
|
3407 |
msgid "Default User Role"
|
3408 |
msgstr ""
|
3409 |
|
3410 |
-
#: includes/functions-ur-core.php:
|
3411 |
msgid "Enable Strong Password"
|
3412 |
msgstr ""
|
3413 |
|
3414 |
-
#: includes/functions-ur-core.php:
|
3415 |
msgid "Minimum Password Strength"
|
3416 |
msgstr ""
|
3417 |
|
3418 |
-
#: includes/functions-ur-core.php:
|
3419 |
msgid "Redirect URL"
|
3420 |
msgstr ""
|
3421 |
|
3422 |
-
#: includes/functions-ur-core.php:
|
3423 |
msgid "This option lets you enter redirect path after successful user registration."
|
3424 |
msgstr ""
|
3425 |
|
3426 |
-
#: includes/functions-ur-core.php:
|
3427 |
msgid "Form Submit Button Label"
|
3428 |
msgstr ""
|
3429 |
|
3430 |
-
#: includes/functions-ur-core.php:
|
3431 |
msgid "Enable %1$s %2$s reCaptcha %3$s Support"
|
3432 |
msgstr ""
|
3433 |
|
3434 |
-
#: includes/functions-ur-core.php:
|
3435 |
msgid "Custom CSS class"
|
3436 |
msgstr ""
|
3437 |
|
3438 |
-
#: includes/functions-ur-core.php:
|
3439 |
msgid "Auto login after registration"
|
3440 |
msgstr ""
|
3441 |
|
3442 |
-
#: includes/functions-ur-core.php:
|
3443 |
msgid ""
|
3444 |
"The class <code>%s</code> provided by user_registration_logging_class "
|
3445 |
"filter must implement <code>UR_Logger_Interface</code>."
|
3446 |
msgstr ""
|
3447 |
|
3448 |
-
#: includes/functions-ur-core.php:
|
3449 |
msgid "Disable emails"
|
3450 |
msgstr ""
|
3451 |
|
3452 |
-
#: includes/functions-ur-core.php:
|
3453 |
msgid "Disable all emails sent after registration."
|
3454 |
msgstr ""
|
3455 |
|
@@ -3464,7 +3525,7 @@ msgstr ""
|
|
3464 |
msgid "required"
|
3465 |
msgstr ""
|
3466 |
|
3467 |
-
#: includes/functions-ur-template.php:
|
3468 |
msgid "Choose an option"
|
3469 |
msgstr ""
|
3470 |
|
@@ -3675,144 +3736,144 @@ msgstr ""
|
|
3675 |
msgid "https://wpeverest.com"
|
3676 |
msgstr ""
|
3677 |
|
3678 |
-
#: includes/admin/class-ur-admin-assets.php:
|
3679 |
msgctxt "enhanced select"
|
3680 |
msgid "No matches found"
|
3681 |
msgstr ""
|
3682 |
|
3683 |
-
#: includes/admin/class-ur-admin-assets.php:
|
3684 |
msgctxt "enhanced select"
|
3685 |
msgid "Loading failed"
|
3686 |
msgstr ""
|
3687 |
|
3688 |
-
#: includes/admin/class-ur-admin-assets.php:
|
3689 |
msgctxt "enhanced select"
|
3690 |
msgid "Please enter 1 or more characters"
|
3691 |
msgstr ""
|
3692 |
|
3693 |
-
#: includes/admin/class-ur-admin-assets.php:
|
3694 |
msgctxt "enhanced select"
|
3695 |
msgid "Please enter %qty% or more characters"
|
3696 |
msgstr ""
|
3697 |
|
3698 |
-
#: includes/admin/class-ur-admin-assets.php:
|
3699 |
msgctxt "enhanced select"
|
3700 |
msgid "Please delete 1 character"
|
3701 |
msgstr ""
|
3702 |
|
3703 |
-
#: includes/admin/class-ur-admin-assets.php:
|
3704 |
msgctxt "enhanced select"
|
3705 |
msgid "Please delete %qty% characters"
|
3706 |
msgstr ""
|
3707 |
|
3708 |
-
#: includes/admin/class-ur-admin-assets.php:
|
3709 |
msgctxt "enhanced select"
|
3710 |
msgid "You can only select 1 item"
|
3711 |
msgstr ""
|
3712 |
|
3713 |
-
#: includes/admin/class-ur-admin-assets.php:
|
3714 |
msgctxt "enhanced select"
|
3715 |
msgid "You can only select %qty% items"
|
3716 |
msgstr ""
|
3717 |
|
3718 |
-
#: includes/admin/class-ur-admin-assets.php:
|
3719 |
msgctxt "enhanced select"
|
3720 |
msgid "Loading more results…"
|
3721 |
msgstr ""
|
3722 |
|
3723 |
-
#: includes/admin/class-ur-admin-assets.php:
|
3724 |
msgctxt "enhanced select"
|
3725 |
msgid "Searching…"
|
3726 |
msgstr ""
|
3727 |
|
3728 |
-
#: includes/admin/class-ur-admin-assets.php:
|
3729 |
msgctxt "user-registration admin"
|
3730 |
msgid "User Email"
|
3731 |
msgstr ""
|
3732 |
|
3733 |
-
#: includes/admin/class-ur-admin-assets.php:
|
3734 |
msgctxt "user-registration admin"
|
3735 |
msgid "User Password"
|
3736 |
msgstr ""
|
3737 |
|
3738 |
-
#: includes/admin/class-ur-admin-assets.php:
|
3739 |
msgctxt "user registration admin"
|
3740 |
msgid "Are you sure want to delete?"
|
3741 |
msgstr ""
|
3742 |
|
3743 |
-
#: includes/admin/class-ur-admin-assets.php:
|
3744 |
msgctxt "user registration admin"
|
3745 |
msgid "At least one row needs to be selected."
|
3746 |
msgstr ""
|
3747 |
|
3748 |
-
#: includes/admin/class-ur-admin-assets.php:
|
3749 |
msgctxt "user registration admin"
|
3750 |
msgid "This field is one time draggable."
|
3751 |
msgstr ""
|
3752 |
|
3753 |
-
#: includes/admin/class-ur-admin-assets.php:
|
3754 |
msgctxt "user registration admin"
|
3755 |
msgid "Could not clone this field."
|
3756 |
msgstr ""
|
3757 |
|
3758 |
-
#: includes/admin/class-ur-admin-assets.php:
|
3759 |
msgctxt "user registration admin"
|
3760 |
msgid "Form successfully saved."
|
3761 |
msgstr ""
|
3762 |
|
3763 |
-
#: includes/admin/class-ur-admin-assets.php:
|
3764 |
msgctxt "user registration admin"
|
3765 |
msgid "Success"
|
3766 |
msgstr ""
|
3767 |
|
3768 |
-
#: includes/admin/class-ur-admin-assets.php:
|
3769 |
msgctxt "user registration admin"
|
3770 |
msgid "Error"
|
3771 |
msgstr ""
|
3772 |
|
3773 |
-
#: includes/admin/class-ur-admin-assets.php:
|
3774 |
msgctxt "user registration admin"
|
3775 |
msgid "At least one field needs to be selected."
|
3776 |
msgstr ""
|
3777 |
|
3778 |
-
#: includes/admin/class-ur-admin-assets.php:
|
3779 |
msgctxt "user registration admin"
|
3780 |
msgid "Empty form name."
|
3781 |
msgstr ""
|
3782 |
|
3783 |
-
#: includes/admin/class-ur-admin-assets.php:
|
3784 |
msgctxt "user registration admin"
|
3785 |
msgid "Previous save action on going."
|
3786 |
msgstr ""
|
3787 |
|
3788 |
-
#: includes/admin/class-ur-admin-assets.php:
|
3789 |
msgctxt "user registration admin"
|
3790 |
msgid "Duplicate field name."
|
3791 |
msgstr ""
|
3792 |
|
3793 |
-
#: includes/admin/class-ur-admin-assets.php:
|
3794 |
msgctxt "user registration admin"
|
3795 |
msgid "Empty field label."
|
3796 |
msgstr ""
|
3797 |
|
3798 |
-
#: includes/admin/class-ur-admin-assets.php:
|
3799 |
msgctxt "user registration admin"
|
3800 |
msgid ""
|
3801 |
"Invalid field name. Please do not use space, empty or special character, "
|
3802 |
"you can use underscore."
|
3803 |
msgstr ""
|
3804 |
|
3805 |
-
#: includes/admin/class-ur-admin-assets.php:
|
3806 |
msgctxt "user registration admin"
|
3807 |
msgid "Multiple field key "
|
3808 |
msgstr ""
|
3809 |
|
3810 |
-
#: includes/admin/class-ur-admin-assets.php:
|
3811 |
msgctxt "user registration admin"
|
3812 |
msgid "field is required."
|
3813 |
msgstr ""
|
3814 |
|
3815 |
-
#: includes/admin/class-ur-admin-assets.php:
|
3816 |
msgctxt "user registration admin"
|
3817 |
msgid "Drag your first form item here."
|
3818 |
msgstr ""
|
2 |
# This file is distributed under the same license as the User Registration package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: User Registration 1.7.0\n"
|
6 |
"Report-Msgid-Bugs-To: wpeverest@gmail.com\n"
|
7 |
+
"POT-Creation-Date: 2019-09-05 12:08:53+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
22 |
msgid "Advance Settings"
|
23 |
msgstr ""
|
24 |
|
25 |
+
#: includes/admin/class-ur-admin-assets.php:155
|
26 |
msgid "Upload Profile Picture"
|
27 |
msgstr ""
|
28 |
|
29 |
+
#: includes/admin/class-ur-admin-assets.php:156
|
30 |
msgid "Select Image"
|
31 |
msgstr ""
|
32 |
|
33 |
+
#: includes/admin/class-ur-admin-assets.php:206
|
34 |
msgid "Could not install."
|
35 |
msgstr ""
|
36 |
|
37 |
+
#: includes/admin/class-ur-admin-assets.php:286
|
38 |
msgid "Clone"
|
39 |
msgstr ""
|
40 |
|
41 |
+
#: includes/admin/class-ur-admin-assets.php:286
|
42 |
#: includes/admin/class-ur-admin-registrations-table-list.php:114
|
43 |
msgid "Trash"
|
44 |
msgstr ""
|
45 |
|
46 |
#: includes/admin/class-ur-admin-export-users.php:52
|
47 |
+
#: includes/admin/class-ur-admin-import-export-forms.php:51
|
48 |
#: includes/admin/class-ur-admin-menus.php:241
|
49 |
#: includes/admin/class-ur-admin-notices.php:121
|
50 |
+
#: includes/admin/class-ur-admin-settings.php:68
|
51 |
#: includes/admin/class-ur-admin-status.php:169
|
52 |
#: includes/class-ur-email-confirmation.php:213
|
53 |
msgid "Action failed. Please refresh the page and retry."
|
101 |
msgid "Add Form"
|
102 |
msgstr ""
|
103 |
|
104 |
+
#: includes/admin/class-ur-admin-import-export-forms.php:180
|
105 |
+
msgid "Imported Successfully."
|
106 |
+
msgstr ""
|
107 |
+
|
108 |
+
#: includes/admin/class-ur-admin-import-export-forms.php:188
|
109 |
+
#: includes/admin/class-ur-admin-import-export-forms.php:195
|
110 |
+
msgid "Invalid file content. Please export file from user registration plugin."
|
111 |
+
msgstr ""
|
112 |
+
|
113 |
+
#: includes/admin/class-ur-admin-import-export-forms.php:202
|
114 |
+
msgid "Invalid file format. Only Json File Allowed."
|
115 |
+
msgstr ""
|
116 |
+
|
117 |
+
#: includes/admin/class-ur-admin-import-export-forms.php:209
|
118 |
+
msgid "Please select json file to import form data."
|
119 |
+
msgstr ""
|
120 |
+
|
121 |
#: includes/admin/class-ur-admin-menus.php:152
|
122 |
msgid "Copy of "
|
123 |
msgstr ""
|
184 |
msgstr ""
|
185 |
|
186 |
#: includes/admin/class-ur-admin-menus.php:503
|
187 |
+
#: includes/admin/settings/class-ur-settings-general.php:166
|
188 |
#: includes/class-ur-query.php:78
|
189 |
msgid "Lost password"
|
190 |
msgstr ""
|
197 |
msgid "Add to menu"
|
198 |
msgstr ""
|
199 |
|
200 |
+
#: includes/admin/class-ur-admin-menus.php:590
|
201 |
+
#: includes/admin/views/html-admin-page-forms.php:109
|
202 |
+
msgid "Untitled"
|
203 |
+
msgstr ""
|
204 |
+
|
205 |
+
#: includes/admin/class-ur-admin-menus.php:690
|
206 |
msgid "Empty form data"
|
207 |
msgstr ""
|
208 |
|
335 |
msgid "Empty trash"
|
336 |
msgstr ""
|
337 |
|
338 |
+
#: includes/admin/class-ur-admin-settings.php:79
|
339 |
msgid "Your settings have been saved."
|
340 |
msgstr ""
|
341 |
|
342 |
+
#: includes/admin/class-ur-admin-settings.php:141
|
343 |
msgid "The changes you made will be lost if you navigate away from this page."
|
344 |
msgstr ""
|
345 |
|
346 |
+
#: includes/admin/class-ur-admin-settings.php:556
|
347 |
msgid "Select a page…"
|
348 |
msgstr ""
|
349 |
|
352 |
msgstr ""
|
353 |
|
354 |
#: includes/admin/class-ur-admin-user-list-manager.php:146
|
355 |
+
#: includes/admin/class-ur-admin.php:228
|
356 |
msgid "User"
|
357 |
msgstr ""
|
358 |
|
422 |
msgid "denied"
|
423 |
msgstr ""
|
424 |
|
425 |
+
#: includes/admin/class-ur-admin.php:124
|
426 |
#. translators: 1: WooCommerce 2:: five stars
|
427 |
msgid "If you like %1$s please leave us a %2$s rating. A huge thanks in advance!"
|
428 |
msgstr ""
|
429 |
|
430 |
+
#: includes/admin/class-ur-admin.php:126
|
431 |
msgid "Thank You!"
|
432 |
msgstr ""
|
433 |
|
434 |
+
#: includes/admin/class-ur-admin.php:137
|
435 |
msgid "Thank you for using User Registration."
|
436 |
msgstr ""
|
437 |
|
438 |
+
#: includes/admin/class-ur-admin.php:175
|
439 |
msgid "Enjoying <strong>User Registration</strong>?"
|
440 |
msgstr ""
|
441 |
|
442 |
+
#: includes/admin/class-ur-admin.php:176
|
443 |
msgid ""
|
444 |
"Looks like you have been using user registration for a while. Would you do "
|
445 |
"us some favour and leave a review on <a "
|
447 |
"post\" target=\"_blank\"><strong>WordPress.org</strong></a>?"
|
448 |
msgstr ""
|
449 |
|
450 |
+
#: includes/admin/class-ur-admin.php:179
|
451 |
msgid "Sure, I'd love to!"
|
452 |
msgstr ""
|
453 |
|
454 |
+
#: includes/admin/class-ur-admin.php:180
|
455 |
msgid "I already did!"
|
456 |
msgstr ""
|
457 |
|
458 |
+
#: includes/admin/class-ur-admin.php:181
|
459 |
msgid "Never show again"
|
460 |
msgstr ""
|
461 |
|
462 |
+
#: includes/admin/class-ur-admin.php:228
|
463 |
+
msgid "%1$d new %2$s registered."
|
464 |
+
msgstr ""
|
465 |
+
|
466 |
#: includes/admin/functions-ur-admin.php:28
|
467 |
msgid "User Registration Activity"
|
468 |
msgstr ""
|
519 |
msgstr ""
|
520 |
|
521 |
#: includes/admin/settings/class-ur-settings-email.php:161
|
522 |
+
#: includes/admin/settings/class-ur-settings-general.php:262
|
523 |
msgid "Email"
|
524 |
msgstr ""
|
525 |
|
532 |
msgid "Smart Tags Used"
|
533 |
msgstr ""
|
534 |
|
535 |
+
#: includes/admin/settings/class-ur-settings-general.php:27
|
536 |
msgid "General"
|
537 |
msgstr ""
|
538 |
|
539 |
+
#: includes/admin/settings/class-ur-settings-general.php:42
|
540 |
+
#: includes/admin/settings/class-ur-settings-general.php:68
|
541 |
msgid "General Options"
|
542 |
msgstr ""
|
543 |
|
544 |
+
#: includes/admin/settings/class-ur-settings-general.php:43
|
545 |
+
#: includes/admin/settings/class-ur-settings-general.php:342
|
546 |
msgid "Login Options"
|
547 |
msgstr ""
|
548 |
|
549 |
+
#: includes/admin/settings/class-ur-settings-general.php:44
|
550 |
msgid "Frontend Messages"
|
551 |
msgstr ""
|
552 |
|
553 |
+
#: includes/admin/settings/class-ur-settings-general.php:74
|
|
|
|
|
|
|
|
|
|
|
554 |
msgid "User login option"
|
555 |
msgstr ""
|
556 |
|
557 |
+
#: includes/admin/settings/class-ur-settings-general.php:75
|
558 |
msgid "This option lets you choose login option after user registration."
|
559 |
msgstr ""
|
560 |
|
561 |
+
#: includes/admin/settings/class-ur-settings-general.php:85
|
562 |
msgid "Prevent dashboard access"
|
563 |
msgstr ""
|
564 |
|
565 |
+
#: includes/admin/settings/class-ur-settings-general.php:86
|
566 |
msgid ""
|
567 |
"This option lets you limit which roles you are willing to prevent dashboard "
|
568 |
"access."
|
569 |
msgstr ""
|
570 |
|
571 |
+
#: includes/admin/settings/class-ur-settings-general.php:96
|
572 |
msgid "Uninstall Option"
|
573 |
msgstr ""
|
574 |
|
575 |
+
#: includes/admin/settings/class-ur-settings-general.php:97
|
576 |
msgid ""
|
577 |
"Heads Up! Check this if you would like to remove ALL User Registration data "
|
578 |
"upon plugin deletion."
|
579 |
msgstr ""
|
580 |
|
581 |
+
#: includes/admin/settings/class-ur-settings-general.php:110
|
582 |
msgid "My account Section"
|
583 |
msgstr ""
|
584 |
|
585 |
+
#: includes/admin/settings/class-ur-settings-general.php:115
|
586 |
msgid "My account page"
|
587 |
msgstr ""
|
588 |
|
589 |
+
#: includes/admin/settings/class-ur-settings-general.php:116
|
590 |
msgid "Page contents: [%s]"
|
591 |
msgstr ""
|
592 |
|
593 |
+
#: includes/admin/settings/class-ur-settings-general.php:125
|
594 |
msgid "Layout"
|
595 |
msgstr ""
|
596 |
|
597 |
+
#: includes/admin/settings/class-ur-settings-general.php:126
|
598 |
msgid "This option lets you choose layout for user registration my account tab."
|
599 |
msgstr ""
|
600 |
|
601 |
+
#: includes/admin/settings/class-ur-settings-general.php:134
|
602 |
msgid "Horizontal"
|
603 |
msgstr ""
|
604 |
|
605 |
+
#: includes/admin/settings/class-ur-settings-general.php:135
|
606 |
msgid "Vertical"
|
607 |
msgstr ""
|
608 |
|
609 |
+
#: includes/admin/settings/class-ur-settings-general.php:145
|
610 |
msgid "Endpoints: "
|
611 |
msgstr ""
|
612 |
|
613 |
+
#: includes/admin/settings/class-ur-settings-general.php:145
|
614 |
msgid ""
|
615 |
"Endpoints are appended to your page URLs to handle specific actions on the "
|
616 |
"accounts pages. They should be unique and can be left blank to disable the "
|
617 |
"endpoint."
|
618 |
msgstr ""
|
619 |
|
620 |
+
#: includes/admin/settings/class-ur-settings-general.php:150
|
621 |
msgid "Edit profile"
|
622 |
msgstr ""
|
623 |
|
624 |
+
#: includes/admin/settings/class-ur-settings-general.php:151
|
625 |
msgid "Endpoint for the \"My account → Edit profile\" page."
|
626 |
msgstr ""
|
627 |
|
628 |
+
#: includes/admin/settings/class-ur-settings-general.php:158
|
629 |
#: includes/class-ur-query.php:72 includes/functions-ur-account.php:109
|
630 |
#: templates/myaccount/form-edit-password.php:35
|
631 |
msgid "Change Password"
|
632 |
msgstr ""
|
633 |
|
634 |
+
#: includes/admin/settings/class-ur-settings-general.php:159
|
635 |
msgid "Endpoint for the \"My account → Change Password\" page."
|
636 |
msgstr ""
|
637 |
|
638 |
+
#: includes/admin/settings/class-ur-settings-general.php:167
|
639 |
msgid "Endpoint for the \"My account → Lost password\" page."
|
640 |
msgstr ""
|
641 |
|
642 |
+
#: includes/admin/settings/class-ur-settings-general.php:174
|
643 |
msgid "User logout"
|
644 |
msgstr ""
|
645 |
|
646 |
+
#: includes/admin/settings/class-ur-settings-general.php:175
|
647 |
msgid ""
|
648 |
"Endpoint for the triggering logout. You can add this to your menus via a "
|
649 |
"custom link: yoursite.com/?user-logout=true"
|
650 |
msgstr ""
|
651 |
|
652 |
+
#: includes/admin/settings/class-ur-settings-general.php:203
|
653 |
msgid "Success Messages"
|
654 |
msgstr ""
|
655 |
|
656 |
+
#: includes/admin/settings/class-ur-settings-general.php:210
|
657 |
+
#: includes/functions-ur-core.php:989
|
658 |
msgid "Manual login after registration"
|
659 |
msgstr ""
|
660 |
|
661 |
+
#: includes/admin/settings/class-ur-settings-general.php:211
|
662 |
msgid ""
|
663 |
"Enter the text message after successful form submission on manual login "
|
664 |
"after registration."
|
665 |
msgstr ""
|
666 |
|
667 |
+
#: includes/admin/settings/class-ur-settings-general.php:216
|
668 |
#: includes/class-ur-frontend-scripts.php:346
|
669 |
msgid "User successfully registered."
|
670 |
msgstr ""
|
671 |
|
672 |
+
#: includes/admin/settings/class-ur-settings-general.php:220
|
673 |
+
#: includes/functions-ur-core.php:990
|
674 |
msgid "Email confirmation to login"
|
675 |
msgstr ""
|
676 |
|
677 |
+
#: includes/admin/settings/class-ur-settings-general.php:221
|
678 |
msgid ""
|
679 |
"Enter the text message after successful form submission on email "
|
680 |
"confirmation to login."
|
681 |
msgstr ""
|
682 |
|
683 |
+
#: includes/admin/settings/class-ur-settings-general.php:226
|
684 |
#: includes/class-ur-frontend-scripts.php:348
|
685 |
msgid ""
|
686 |
"User registered. Verify your email by clicking on the link sent to your "
|
687 |
"email."
|
688 |
msgstr ""
|
689 |
|
690 |
+
#: includes/admin/settings/class-ur-settings-general.php:230
|
691 |
+
#: includes/functions-ur-core.php:992
|
692 |
msgid "Admin approval after registration"
|
693 |
msgstr ""
|
694 |
|
695 |
+
#: includes/admin/settings/class-ur-settings-general.php:231
|
696 |
msgid ""
|
697 |
"Enter the text message after successful form submission on admin approval "
|
698 |
"after registration."
|
699 |
msgstr ""
|
700 |
|
701 |
+
#: includes/admin/settings/class-ur-settings-general.php:236
|
702 |
#: includes/class-ur-frontend-scripts.php:347
|
703 |
msgid "User registered. Wait until admin approves your registration."
|
704 |
msgstr ""
|
705 |
|
706 |
+
#: includes/admin/settings/class-ur-settings-general.php:245
|
707 |
msgid "Error Messages"
|
708 |
msgstr ""
|
709 |
|
710 |
+
#: includes/admin/settings/class-ur-settings-general.php:252
|
711 |
+
#: includes/functions-ur-core.php:690
|
712 |
msgid "Required"
|
713 |
msgstr ""
|
714 |
|
715 |
+
#: includes/admin/settings/class-ur-settings-general.php:253
|
716 |
msgid "Enter the error message in form submission on required fields."
|
717 |
msgstr ""
|
718 |
|
719 |
+
#: includes/admin/settings/class-ur-settings-general.php:258
|
720 |
#: includes/class-ur-frontend-scripts.php:339
|
721 |
msgid "This field is required."
|
722 |
msgstr ""
|
723 |
|
724 |
+
#: includes/admin/settings/class-ur-settings-general.php:263
|
725 |
msgid "Enter the error message in form submission on Email."
|
726 |
msgstr ""
|
727 |
|
728 |
+
#: includes/admin/settings/class-ur-settings-general.php:268
|
729 |
#: includes/class-ur-frontend-scripts.php:340
|
730 |
msgid "Please enter a valid email address."
|
731 |
msgstr ""
|
732 |
|
733 |
+
#: includes/admin/settings/class-ur-settings-general.php:272
|
734 |
msgid "Website URL"
|
735 |
msgstr ""
|
736 |
|
737 |
+
#: includes/admin/settings/class-ur-settings-general.php:273
|
738 |
msgid "Enter the error message in form submission on website/URL."
|
739 |
msgstr ""
|
740 |
|
741 |
+
#: includes/admin/settings/class-ur-settings-general.php:278
|
742 |
#: includes/class-ur-frontend-scripts.php:341
|
743 |
msgid "Please enter a valid URL."
|
744 |
msgstr ""
|
745 |
|
746 |
+
#: includes/admin/settings/class-ur-settings-general.php:282
|
747 |
#: includes/form/class-ur-form-field-number.php:37
|
748 |
#: includes/form/class-ur-form-field-number.php:42
|
749 |
msgid "Number"
|
750 |
msgstr ""
|
751 |
|
752 |
+
#: includes/admin/settings/class-ur-settings-general.php:283
|
753 |
msgid "Enter the error message in form submission on Number."
|
754 |
msgstr ""
|
755 |
|
756 |
+
#: includes/admin/settings/class-ur-settings-general.php:288
|
757 |
#: includes/class-ur-frontend-scripts.php:342
|
758 |
msgid "Please enter a valid number."
|
759 |
msgstr ""
|
760 |
|
761 |
+
#: includes/admin/settings/class-ur-settings-general.php:292
|
762 |
#: includes/form/class-ur-form-field-user-confirm-email.php:54
|
763 |
msgid "Confirm Email"
|
764 |
msgstr ""
|
765 |
|
766 |
+
#: includes/admin/settings/class-ur-settings-general.php:293
|
767 |
msgid "Enter the error message in form submission on Confim Email."
|
768 |
msgstr ""
|
769 |
|
770 |
+
#: includes/admin/settings/class-ur-settings-general.php:298
|
771 |
#: includes/class-ur-frontend-scripts.php:344
|
772 |
msgid "Email and confirm email not matched."
|
773 |
msgstr ""
|
774 |
|
775 |
+
#: includes/admin/settings/class-ur-settings-general.php:302
|
776 |
#: includes/form/class-ur-form-field-user-confirm-password.php:40
|
777 |
msgid "Confirm Password"
|
778 |
msgstr ""
|
779 |
|
780 |
+
#: includes/admin/settings/class-ur-settings-general.php:303
|
781 |
msgid "Enter the error message in form submission on Confim Password."
|
782 |
msgstr ""
|
783 |
|
784 |
+
#: includes/admin/settings/class-ur-settings-general.php:308
|
785 |
#: includes/class-ur-frontend-scripts.php:343
|
786 |
msgid "Password and confirm password not matched."
|
787 |
msgstr ""
|
788 |
|
789 |
+
#: includes/admin/settings/class-ur-settings-general.php:312
|
790 |
msgid "Google reCaptcha"
|
791 |
msgstr ""
|
792 |
|
793 |
+
#: includes/admin/settings/class-ur-settings-general.php:313
|
794 |
msgid "Enter the error message in form submission on google recaptcha."
|
795 |
msgstr ""
|
796 |
|
797 |
+
#: includes/admin/settings/class-ur-settings-general.php:318
|
798 |
+
#: includes/class-ur-ajax.php:106 includes/class-ur-form-handler.php:336
|
799 |
#: includes/class-ur-frontend-scripts.php:349
|
800 |
msgid "Captcha code error, please try again."
|
801 |
msgstr ""
|
802 |
|
803 |
+
#: includes/admin/settings/class-ur-settings-general.php:349
|
804 |
+
#: includes/functions-ur-core.php:944
|
805 |
msgid "Form Template"
|
806 |
msgstr ""
|
807 |
|
808 |
+
#: includes/admin/settings/class-ur-settings-general.php:350
|
809 |
msgid "Choose the login form template."
|
810 |
msgstr ""
|
811 |
|
812 |
+
#: includes/admin/settings/class-ur-settings-general.php:357
|
813 |
+
#: includes/functions-ur-core.php:951
|
814 |
msgid "Default"
|
815 |
msgstr ""
|
816 |
|
817 |
+
#: includes/admin/settings/class-ur-settings-general.php:358
|
818 |
+
#: includes/functions-ur-core.php:952
|
819 |
msgid "Bordered"
|
820 |
msgstr ""
|
821 |
|
822 |
+
#: includes/admin/settings/class-ur-settings-general.php:359
|
823 |
+
#: includes/functions-ur-core.php:953
|
824 |
msgid "Flat"
|
825 |
msgstr ""
|
826 |
|
827 |
+
#: includes/admin/settings/class-ur-settings-general.php:360
|
828 |
+
#: includes/functions-ur-core.php:954
|
829 |
msgid "Rounded"
|
830 |
msgstr ""
|
831 |
|
832 |
+
#: includes/admin/settings/class-ur-settings-general.php:361
|
833 |
+
#: includes/functions-ur-core.php:955
|
834 |
msgid "Rounded Edge"
|
835 |
msgstr ""
|
836 |
|
837 |
+
#: includes/admin/settings/class-ur-settings-general.php:366
|
838 |
msgid "Enable remember me"
|
839 |
msgstr ""
|
840 |
|
841 |
+
#: includes/admin/settings/class-ur-settings-general.php:367
|
842 |
msgid "Check to enable/disable remember me."
|
843 |
msgstr ""
|
844 |
|
845 |
+
#: includes/admin/settings/class-ur-settings-general.php:376
|
846 |
msgid "Enable hide/show password"
|
847 |
msgstr ""
|
848 |
|
849 |
+
#: includes/admin/settings/class-ur-settings-general.php:377
|
850 |
msgid "Check to enable hide/show password icon in login form."
|
851 |
msgstr ""
|
852 |
|
853 |
+
#: includes/admin/settings/class-ur-settings-general.php:386
|
854 |
msgid "Enable lost password"
|
855 |
msgstr ""
|
856 |
|
857 |
+
#: includes/admin/settings/class-ur-settings-general.php:387
|
858 |
msgid "Check to enable/disable lost password."
|
859 |
msgstr ""
|
860 |
|
861 |
+
#: includes/admin/settings/class-ur-settings-general.php:396
|
862 |
msgid "Enable google reCaptcha"
|
863 |
msgstr ""
|
864 |
|
865 |
+
#: includes/admin/settings/class-ur-settings-general.php:397
|
866 |
msgid "Enable %1$s %2$s reCaptcha %3$s support"
|
867 |
msgstr ""
|
868 |
|
869 |
+
#: includes/admin/settings/class-ur-settings-general.php:406
|
870 |
msgid "Registration URL"
|
871 |
msgstr ""
|
872 |
|
873 |
+
#: includes/admin/settings/class-ur-settings-general.php:407
|
874 |
msgid "This option lets you enter the registration page url in login form."
|
875 |
msgstr ""
|
876 |
|
877 |
+
#: includes/admin/settings/class-ur-settings-general.php:415
|
878 |
msgid "Registration URL label"
|
879 |
msgstr ""
|
880 |
|
881 |
+
#: includes/admin/settings/class-ur-settings-general.php:416
|
882 |
msgid "This option lets you enter the label to registration url in login form."
|
883 |
msgstr ""
|
884 |
|
885 |
+
#: includes/admin/settings/class-ur-settings-general.php:421
|
886 |
#: templates/myaccount/form-login.php:122
|
887 |
msgid "Not a member yet? Register now."
|
888 |
msgstr ""
|
889 |
|
890 |
+
#: includes/admin/settings/class-ur-settings-general.php:425
|
891 |
msgid "Prevent Core Login"
|
892 |
msgstr ""
|
893 |
|
894 |
+
#: includes/admin/settings/class-ur-settings-general.php:426
|
895 |
msgid "Check to disable WordPress default login or registration page."
|
896 |
msgstr ""
|
897 |
|
898 |
+
#: includes/admin/settings/class-ur-settings-import-export.php:27
|
899 |
+
msgid "Import/Export"
|
900 |
+
msgstr ""
|
901 |
+
|
902 |
+
#: includes/admin/settings/class-ur-settings-import-export.php:42
|
903 |
+
#: includes/admin/views/html-admin-page-export-users.php:31
|
904 |
+
msgid "Export Users"
|
905 |
+
msgstr ""
|
906 |
+
|
907 |
+
#: includes/admin/settings/class-ur-settings-import-export.php:43
|
908 |
+
msgid "Import/Export Forms"
|
909 |
+
msgstr ""
|
910 |
+
|
911 |
#: includes/admin/settings/class-ur-settings-integration.php:29
|
912 |
msgid "Integration"
|
913 |
msgstr ""
|
1021 |
msgstr ""
|
1022 |
|
1023 |
#: includes/admin/settings/emails/class-ur-settings-admin-email.php:69
|
1024 |
+
#: includes/class-ur-emailer.php:334
|
1025 |
msgid "A New User Registered"
|
1026 |
msgstr ""
|
1027 |
|
1051 |
|
1052 |
#: includes/admin/settings/emails/class-ur-settings-admin-email.php:100
|
1053 |
msgid ""
|
1054 |
+
"Hi Admin, <br/>\n"
|
1055 |
"\n"
|
1056 |
"A new user {{username}} - {{email}} has successfully registered to your "
|
1057 |
+
"site <a href=\"{{home_url}}\">{{blog_info}}</a>. <br/>\n"
|
1058 |
"\n"
|
1059 |
"Please review the user role and details at '<b>Users</b>' menu in your WP "
|
1060 |
+
"dashboard. <br/>\n"
|
1061 |
"\n"
|
1062 |
+
"Thank You!"
|
1063 |
msgstr ""
|
1064 |
|
1065 |
#: includes/admin/settings/emails/class-ur-settings-awaiting-admin-approval-email.php:25
|
1081 |
msgstr ""
|
1082 |
|
1083 |
#: includes/admin/settings/emails/class-ur-settings-awaiting-admin-approval-email.php:60
|
1084 |
+
#: includes/class-ur-emailer.php:277
|
1085 |
msgid "Thank you for registration on {{blog_info}}"
|
1086 |
msgstr ""
|
1087 |
|
1088 |
#: includes/admin/settings/emails/class-ur-settings-awaiting-admin-approval-email.php:92
|
1089 |
msgid ""
|
1090 |
+
"Hi {{username}}, <br/>\n"
|
1091 |
"\n"
|
1092 |
+
"You have registered on <a href=\"{{home_url}}\">{{blog_info}}</a>. <br/>\n"
|
1093 |
"\n"
|
1094 |
"Please wait until the site admin approves your registration. You will be "
|
1095 |
+
"notified after it is approved. <br/>\n"
|
1096 |
"\n"
|
1097 |
+
"Thank You!"
|
1098 |
msgstr ""
|
1099 |
|
1100 |
#: includes/admin/settings/emails/class-ur-settings-email-confirmation.php:24
|
1109 |
msgstr ""
|
1110 |
|
1111 |
#: includes/admin/settings/emails/class-ur-settings-email-confirmation.php:52
|
1112 |
+
#: includes/class-ur-emailer.php:267
|
1113 |
msgid "Please confirm your registration on {{blog_info}}"
|
1114 |
msgstr ""
|
1115 |
|
1116 |
#: includes/admin/settings/emails/class-ur-settings-email-confirmation.php:86
|
1117 |
msgid ""
|
1118 |
+
"Hi {{username}}, <br/>\n"
|
1119 |
"\n"
|
1120 |
+
"You have registered on <a href=\"{{home_url}}\">{{blog_info}}</a>. <br/>\n"
|
1121 |
"\n"
|
1122 |
"Please click on this verification link "
|
1123 |
+
"{{home_url}}/{{ur_login}}?ur_token={{email_token}} to confirm registration. "
|
1124 |
+
"<br/>\n"
|
1125 |
"\n"
|
1126 |
+
"Thank You!"
|
1127 |
msgstr ""
|
1128 |
|
1129 |
#: includes/admin/settings/emails/class-ur-settings-profile-details-changed-email.php:25
|
1140 |
msgstr ""
|
1141 |
|
1142 |
#: includes/admin/settings/emails/class-ur-settings-profile-details-changed-email.php:70
|
1143 |
+
#: includes/class-ur-emailer.php:476
|
1144 |
msgid "Profile Details Changed Email: {{blog_info}}"
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#: includes/admin/settings/emails/class-ur-settings-profile-details-changed-email.php:103
|
1148 |
msgid ""
|
1149 |
+
"User has changed profile information for the following account:<br/>\n"
|
1150 |
"\n"
|
1151 |
+
"SiteName: {{blog_info}} <br/>\n"
|
1152 |
+
"Username: {{username}} <br/>\n"
|
1153 |
"\n"
|
1154 |
"{{all_fields}}\n"
|
1155 |
+
"<br/>\n"
|
1156 |
+
"Thank You!"
|
1157 |
msgstr ""
|
1158 |
|
1159 |
#: includes/admin/settings/emails/class-ur-settings-registration-approved-email.php:25
|
1172 |
msgstr ""
|
1173 |
|
1174 |
#: includes/admin/settings/emails/class-ur-settings-registration-approved-email.php:60
|
1175 |
+
#: includes/class-ur-emailer.php:401
|
1176 |
msgid "Congratulations! Registration approved on {{blog_info}}"
|
1177 |
msgstr ""
|
1178 |
|
1179 |
#: includes/admin/settings/emails/class-ur-settings-registration-approved-email.php:92
|
1180 |
msgid ""
|
1181 |
+
"Hi {{username}}, <br/>\n"
|
1182 |
"\n"
|
1183 |
"Your registration on <a href=\"{{home_url}}\">{{blog_info}}</a> has been "
|
1184 |
+
"approved. <br/>\n"
|
1185 |
"\n"
|
1186 |
"Please visit '<b>My Account</b>' page to edit your account details and "
|
1187 |
+
"create your user profile on <a href=\"{{home_url}}\">{{blog_info}}</a>. "
|
1188 |
+
"<br/>\n"
|
1189 |
"\n"
|
1190 |
+
"Thank You!"
|
1191 |
msgstr ""
|
1192 |
|
1193 |
#: includes/admin/settings/emails/class-ur-settings-registration-denied-email.php:25
|
1206 |
msgstr ""
|
1207 |
|
1208 |
#: includes/admin/settings/emails/class-ur-settings-registration-denied-email.php:60
|
1209 |
+
#: includes/class-ur-emailer.php:289 includes/class-ur-emailer.php:389
|
1210 |
msgid "Sorry! Registration denied on {{blog_info}}"
|
1211 |
msgstr ""
|
1212 |
|
1213 |
#: includes/admin/settings/emails/class-ur-settings-registration-denied-email.php:92
|
1214 |
msgid ""
|
1215 |
+
"Hi {{username}}, <br/>\n"
|
1216 |
"\n"
|
1217 |
+
"You have registered on <a href=\"{{home_url}}\">{{blog_info}}</a>. <br/>\n"
|
1218 |
"\n"
|
1219 |
+
"Unfortunately your registration is denied. Sorry for the inconvenience. "
|
1220 |
+
"<br/>\n"
|
1221 |
"\n"
|
1222 |
+
"Thank You!"
|
1223 |
msgstr ""
|
1224 |
|
1225 |
#: includes/admin/settings/emails/class-ur-settings-registration-pending-email.php:25
|
1236 |
msgstr ""
|
1237 |
|
1238 |
#: includes/admin/settings/emails/class-ur-settings-registration-pending-email.php:61
|
1239 |
+
#: includes/class-ur-emailer.php:377
|
1240 |
msgid "Sorry! Registration changed to pending on {{blog_info}}"
|
1241 |
msgstr ""
|
1242 |
|
1243 |
#: includes/admin/settings/emails/class-ur-settings-registration-pending-email.php:95
|
1244 |
msgid ""
|
1245 |
+
"Hi {{username}}, <br/>\n"
|
1246 |
"\n"
|
1247 |
"Your registration on <a href=\"{{home_url}}\">{{blog_info}}</a> has been "
|
1248 |
+
"changed to pending. <br/>\n"
|
1249 |
"\n"
|
1250 |
+
"Sorry for the inconvenience. <br/>\n"
|
1251 |
"\n"
|
1252 |
+
"You will be notified after it is approved. <br/>\n"
|
1253 |
"\n"
|
1254 |
+
"Thank You!"
|
1255 |
msgstr ""
|
1256 |
|
1257 |
#: includes/admin/settings/emails/class-ur-settings-reset-password-email.php:24
|
1268 |
msgstr ""
|
1269 |
|
1270 |
#: includes/admin/settings/emails/class-ur-settings-reset-password-email.php:59
|
1271 |
+
#: includes/class-ur-emailer.php:432
|
1272 |
msgid "Password Reset Email: {{blog_info}}"
|
1273 |
msgstr ""
|
1274 |
|
1275 |
#: includes/admin/settings/emails/class-ur-settings-reset-password-email.php:90
|
1276 |
msgid ""
|
1277 |
+
"Someone has requested a password reset for the following account: <br/>\n"
|
1278 |
"\n"
|
1279 |
+
"SiteName: {{blog_info}} <br/>\n"
|
1280 |
+
"Username: {{username}} <br/>\n"
|
1281 |
"\n"
|
1282 |
+
"If this was a mistake, just ignore this email and nothing will happen. "
|
1283 |
+
"<br/>\n"
|
1284 |
"\n"
|
1285 |
+
"To reset your password, visit the following address: <br/>\n"
|
1286 |
+
"{{home_url}}/{{ur_login}}?action=rp&key={{key}}&login={{username}} <br/>\n"
|
1287 |
"\n"
|
1288 |
+
"Thank You!"
|
1289 |
msgstr ""
|
1290 |
|
1291 |
#: includes/admin/settings/emails/class-ur-settings-successfully-registered-email.php:25
|
1302 |
msgstr ""
|
1303 |
|
1304 |
#: includes/admin/settings/emails/class-ur-settings-successfully-registered-email.php:60
|
1305 |
+
#: includes/class-ur-emailer.php:300
|
1306 |
msgid "Congratulations! Registration Complete on {{blog_info}}"
|
1307 |
msgstr ""
|
1308 |
|
1309 |
#: includes/admin/settings/emails/class-ur-settings-successfully-registered-email.php:91
|
1310 |
msgid ""
|
1311 |
+
"Hi {{username}}, <br/>\n"
|
1312 |
"\n"
|
1313 |
"You have successfully completed user registration on <a "
|
1314 |
+
"href=\"{{home_url}}\">{{blog_info}}</a>. <br/>\n"
|
1315 |
"\n"
|
1316 |
"Please visit '<b>My Account</b>' page to edit your account details and "
|
1317 |
+
"create your user profile on <a href=\"{{home_url}}\">{{blog_info}}</a>. "
|
1318 |
+
"<br/>\n"
|
1319 |
"\n"
|
1320 |
+
"Thank You!"
|
1321 |
msgstr ""
|
1322 |
|
1323 |
#: includes/admin/updater/class-ur-addon-updater.php:222
|
1362 |
"registration form as a <strong>CSV</strong> file."
|
1363 |
msgstr ""
|
1364 |
|
1365 |
+
#: includes/admin/views/html-admin-page-forms.php:29
|
|
|
|
|
|
|
|
|
1366 |
msgid "Copy Shortcode!"
|
1367 |
msgstr ""
|
1368 |
|
1369 |
+
#: includes/admin/views/html-admin-page-forms.php:29
|
1370 |
msgid "Copied!"
|
1371 |
msgstr ""
|
1372 |
|
1382 |
msgid "Fields"
|
1383 |
msgstr ""
|
1384 |
|
1385 |
+
#: includes/admin/views/html-admin-page-forms.php:52
|
1386 |
msgid "Field Options"
|
1387 |
msgstr ""
|
1388 |
|
1389 |
+
#: includes/admin/views/html-admin-page-forms.php:60
|
1390 |
msgid "Form Setting"
|
1391 |
msgstr ""
|
1392 |
|
1393 |
+
#: includes/admin/views/html-admin-page-forms.php:67
|
1394 |
msgid "Default User Fields"
|
1395 |
msgstr ""
|
1396 |
|
1397 |
+
#: includes/admin/views/html-admin-page-forms.php:70
|
1398 |
msgid "Extra Fields"
|
1399 |
msgstr ""
|
1400 |
|
1401 |
+
#: includes/admin/views/html-admin-page-import-export-forms.php:18
|
1402 |
+
msgid "Export forms With Settings"
|
1403 |
+
msgstr ""
|
1404 |
+
|
1405 |
+
#: includes/admin/views/html-admin-page-import-export-forms.php:22
|
1406 |
+
msgid "Export your forms along with their settings as <strong>JSON</strong> file."
|
1407 |
+
msgstr ""
|
1408 |
+
|
1409 |
+
#: includes/admin/views/html-admin-page-import-export-forms.php:35
|
1410 |
+
msgid "Export Forms"
|
1411 |
+
msgstr ""
|
1412 |
+
|
1413 |
+
#: includes/admin/views/html-admin-page-import-export-forms.php:40
|
1414 |
+
msgid "Import Forms With Settings"
|
1415 |
+
msgstr ""
|
1416 |
+
|
1417 |
+
#: includes/admin/views/html-admin-page-import-export-forms.php:44
|
1418 |
+
msgid "Import your forms along with their settings from <strong>JSON</strong> file."
|
1419 |
+
msgstr ""
|
1420 |
+
|
1421 |
+
#: includes/admin/views/html-admin-page-import-export-forms.php:51
|
1422 |
+
msgid "Import Forms"
|
1423 |
+
msgstr ""
|
1424 |
+
|
1425 |
#: includes/admin/views/html-admin-page-status-logs.php:21
|
1426 |
msgid "Delete log"
|
1427 |
msgstr ""
|
1535 |
msgid "Taking a while? Click here to run it now."
|
1536 |
msgstr ""
|
1537 |
|
1538 |
+
#: includes/class-ur-ajax.php:69
|
1539 |
msgid "You are already logged in."
|
1540 |
msgstr ""
|
1541 |
|
1542 |
+
#: includes/class-ur-ajax.php:77 includes/class-ur-ajax.php:115
|
1543 |
msgid "Nonce error, please reload."
|
1544 |
msgstr ""
|
1545 |
|
1546 |
+
#: includes/class-ur-ajax.php:99 includes/class-ur-form-handler.php:333
|
1547 |
msgid "Error on google reCaptcha. Contact your site administrator."
|
1548 |
msgstr ""
|
1549 |
|
1550 |
+
#: includes/class-ur-ajax.php:127 includes/class-ur-shortcodes.php:124
|
1551 |
msgid "Only administrators can add new users."
|
1552 |
msgstr ""
|
1553 |
|
1554 |
+
#: includes/class-ur-ajax.php:145 includes/class-ur-shortcodes.php:138
|
1555 |
msgid "You are currently logged in as %1$1s. %2$2s"
|
1556 |
msgstr ""
|
1557 |
|
1558 |
+
#: includes/class-ur-ajax.php:145 includes/class-ur-shortcodes.php:138
|
1559 |
msgid "Log out of this account."
|
1560 |
msgstr ""
|
1561 |
|
1562 |
+
#: includes/class-ur-ajax.php:145 includes/class-ur-shortcodes.php:138
|
1563 |
#: includes/functions-ur-account.php:110
|
1564 |
msgid "Logout"
|
1565 |
msgstr ""
|
1566 |
|
1567 |
+
#: includes/class-ur-ajax.php:230 includes/class-ur-ajax.php:236
|
1568 |
msgid "post data not set"
|
1569 |
msgstr ""
|
1570 |
|
1571 |
+
#: includes/class-ur-ajax.php:253
|
1572 |
msgid "Could not save form. Invalid field name. Please check all field name"
|
1573 |
msgstr ""
|
1574 |
|
1631 |
"email."
|
1632 |
msgstr ""
|
1633 |
|
1634 |
+
#: includes/class-ur-emailer.php:146 includes/class-ur-emailer.php:572
|
1635 |
msgid "Chosen Password"
|
1636 |
msgstr ""
|
1637 |
|
1742 |
msgstr ""
|
1743 |
|
1744 |
#: includes/class-ur-frontend-scripts.php:361
|
1745 |
+
#: includes/functions-ur-core.php:898
|
1746 |
msgid "Very Weak"
|
1747 |
msgstr ""
|
1748 |
|
1749 |
#: includes/class-ur-frontend-scripts.php:362
|
1750 |
+
#: includes/functions-ur-core.php:899
|
1751 |
msgid "Weak"
|
1752 |
msgstr ""
|
1753 |
|
1754 |
#: includes/class-ur-frontend-scripts.php:363
|
1755 |
+
#: includes/functions-ur-core.php:900
|
1756 |
msgid "Medium"
|
1757 |
msgstr ""
|
1758 |
|
1759 |
#: includes/class-ur-frontend-scripts.php:364
|
1760 |
+
#: includes/functions-ur-core.php:901
|
1761 |
msgid "Strong"
|
1762 |
msgstr ""
|
1763 |
|
1912 |
msgid "Parent registration"
|
1913 |
msgstr ""
|
1914 |
|
1915 |
+
#: includes/class-ur-preview.php:60
|
1916 |
msgid "Edit Form"
|
1917 |
msgstr ""
|
1918 |
|
1919 |
+
#: includes/class-ur-preview.php:111 includes/class-ur-preview.php:153
|
1920 |
#. translators: %s - Form name.
|
1921 |
msgid "%s – Preview"
|
1922 |
msgstr ""
|
2144 |
#: includes/form/class-ur-form-field-checkbox.php:43
|
2145 |
#: includes/form/class-ur-form-field-radio.php:46
|
2146 |
#: includes/form/class-ur-form-field-select.php:43
|
2147 |
+
#: includes/functions-ur-core.php:740
|
2148 |
msgid "First Choice"
|
2149 |
msgstr ""
|
2150 |
|
2151 |
#: includes/form/class-ur-form-field-checkbox.php:44
|
2152 |
#: includes/form/class-ur-form-field-radio.php:47
|
2153 |
#: includes/form/class-ur-form-field-select.php:44
|
2154 |
+
#: includes/functions-ur-core.php:741
|
2155 |
msgid "Second Choice"
|
2156 |
msgstr ""
|
2157 |
|
2158 |
#: includes/form/class-ur-form-field-checkbox.php:45
|
2159 |
#: includes/form/class-ur-form-field-radio.php:48
|
2160 |
#: includes/form/class-ur-form-field-select.php:45
|
2161 |
+
#: includes/functions-ur-core.php:742
|
2162 |
msgid "Third Choice"
|
2163 |
msgstr ""
|
2164 |
|
3414 |
msgid "Dashboard"
|
3415 |
msgstr ""
|
3416 |
|
3417 |
+
#: includes/functions-ur-core.php:516
|
3418 |
msgid "Username can not be changed."
|
3419 |
msgstr ""
|
3420 |
|
3421 |
+
#: includes/functions-ur-core.php:520
|
3422 |
msgid "Passowrd can not be changed."
|
3423 |
msgstr ""
|
3424 |
|
3425 |
+
#: includes/functions-ur-core.php:524
|
3426 |
msgid "Confirm password can not be changed."
|
3427 |
msgstr ""
|
3428 |
|
3429 |
+
#: includes/functions-ur-core.php:527
|
3430 |
msgid "Confirm email can not be changed."
|
3431 |
msgstr ""
|
3432 |
|
3433 |
+
#: includes/functions-ur-core.php:661 includes/functions-ur-core.php:663
|
3434 |
msgid "Label"
|
3435 |
msgstr ""
|
3436 |
|
3437 |
+
#: includes/functions-ur-core.php:668 includes/functions-ur-core.php:670
|
3438 |
msgid "Description"
|
3439 |
msgstr ""
|
3440 |
|
3441 |
+
#: includes/functions-ur-core.php:675 includes/functions-ur-core.php:677
|
3442 |
msgid "Field Name"
|
3443 |
msgstr ""
|
3444 |
|
3445 |
+
#: includes/functions-ur-core.php:683 includes/functions-ur-core.php:685
|
3446 |
msgid "Placeholder"
|
3447 |
msgstr ""
|
3448 |
|
3449 |
+
#: includes/functions-ur-core.php:695 includes/functions-ur-core.php:706
|
3450 |
+
#: includes/functions-ur-core.php:884 includes/functions-ur-core.php:937
|
3451 |
msgid "No"
|
3452 |
msgstr ""
|
3453 |
|
3454 |
+
#: includes/functions-ur-core.php:696 includes/functions-ur-core.php:707
|
3455 |
+
#: includes/functions-ur-core.php:883 includes/functions-ur-core.php:936
|
3456 |
msgid "Yes"
|
3457 |
msgstr ""
|
3458 |
|
3459 |
+
#: includes/functions-ur-core.php:701
|
3460 |
msgid "Hide Label"
|
3461 |
msgstr ""
|
3462 |
|
3463 |
+
#: includes/functions-ur-core.php:735
|
3464 |
msgid "Options"
|
3465 |
msgstr ""
|
3466 |
|
3467 |
+
#: includes/functions-ur-core.php:864
|
3468 |
msgid "Default User Role"
|
3469 |
msgstr ""
|
3470 |
|
3471 |
+
#: includes/functions-ur-core.php:876
|
3472 |
msgid "Enable Strong Password"
|
3473 |
msgstr ""
|
3474 |
|
3475 |
+
#: includes/functions-ur-core.php:891
|
3476 |
msgid "Minimum Password Strength"
|
3477 |
msgstr ""
|
3478 |
|
3479 |
+
#: includes/functions-ur-core.php:908
|
3480 |
msgid "Redirect URL"
|
3481 |
msgstr ""
|
3482 |
|
3483 |
+
#: includes/functions-ur-core.php:910
|
3484 |
msgid "This option lets you enter redirect path after successful user registration."
|
3485 |
msgstr ""
|
3486 |
|
3487 |
+
#: includes/functions-ur-core.php:918
|
3488 |
msgid "Form Submit Button Label"
|
3489 |
msgstr ""
|
3490 |
|
3491 |
+
#: includes/functions-ur-core.php:929
|
3492 |
msgid "Enable %1$s %2$s reCaptcha %3$s Support"
|
3493 |
msgstr ""
|
3494 |
|
3495 |
+
#: includes/functions-ur-core.php:962
|
3496 |
msgid "Custom CSS class"
|
3497 |
msgstr ""
|
3498 |
|
3499 |
+
#: includes/functions-ur-core.php:991
|
3500 |
msgid "Auto login after registration"
|
3501 |
msgstr ""
|
3502 |
|
3503 |
+
#: includes/functions-ur-core.php:1173
|
3504 |
msgid ""
|
3505 |
"The class <code>%s</code> provided by user_registration_logging_class "
|
3506 |
"filter must implement <code>UR_Logger_Interface</code>."
|
3507 |
msgstr ""
|
3508 |
|
3509 |
+
#: includes/functions-ur-core.php:1276
|
3510 |
msgid "Disable emails"
|
3511 |
msgstr ""
|
3512 |
|
3513 |
+
#: includes/functions-ur-core.php:1277
|
3514 |
msgid "Disable all emails sent after registration."
|
3515 |
msgstr ""
|
3516 |
|
3525 |
msgid "required"
|
3526 |
msgstr ""
|
3527 |
|
3528 |
+
#: includes/functions-ur-template.php:348
|
3529 |
msgid "Choose an option"
|
3530 |
msgstr ""
|
3531 |
|
3736 |
msgid "https://wpeverest.com"
|
3737 |
msgstr ""
|
3738 |
|
3739 |
+
#: includes/admin/class-ur-admin-assets.php:185
|
3740 |
msgctxt "enhanced select"
|
3741 |
msgid "No matches found"
|
3742 |
msgstr ""
|
3743 |
|
3744 |
+
#: includes/admin/class-ur-admin-assets.php:186
|
3745 |
msgctxt "enhanced select"
|
3746 |
msgid "Loading failed"
|
3747 |
msgstr ""
|
3748 |
|
3749 |
+
#: includes/admin/class-ur-admin-assets.php:187
|
3750 |
msgctxt "enhanced select"
|
3751 |
msgid "Please enter 1 or more characters"
|
3752 |
msgstr ""
|
3753 |
|
3754 |
+
#: includes/admin/class-ur-admin-assets.php:188
|
3755 |
msgctxt "enhanced select"
|
3756 |
msgid "Please enter %qty% or more characters"
|
3757 |
msgstr ""
|
3758 |
|
3759 |
+
#: includes/admin/class-ur-admin-assets.php:189
|
3760 |
msgctxt "enhanced select"
|
3761 |
msgid "Please delete 1 character"
|
3762 |
msgstr ""
|
3763 |
|
3764 |
+
#: includes/admin/class-ur-admin-assets.php:190
|
3765 |
msgctxt "enhanced select"
|
3766 |
msgid "Please delete %qty% characters"
|
3767 |
msgstr ""
|
3768 |
|
3769 |
+
#: includes/admin/class-ur-admin-assets.php:191
|
3770 |
msgctxt "enhanced select"
|
3771 |
msgid "You can only select 1 item"
|
3772 |
msgstr ""
|
3773 |
|
3774 |
+
#: includes/admin/class-ur-admin-assets.php:192
|
3775 |
msgctxt "enhanced select"
|
3776 |
msgid "You can only select %qty% items"
|
3777 |
msgstr ""
|
3778 |
|
3779 |
+
#: includes/admin/class-ur-admin-assets.php:193
|
3780 |
msgctxt "enhanced select"
|
3781 |
msgid "Loading more results…"
|
3782 |
msgstr ""
|
3783 |
|
3784 |
+
#: includes/admin/class-ur-admin-assets.php:194
|
3785 |
msgctxt "enhanced select"
|
3786 |
msgid "Searching…"
|
3787 |
msgstr ""
|
3788 |
|
3789 |
+
#: includes/admin/class-ur-admin-assets.php:306
|
3790 |
msgctxt "user-registration admin"
|
3791 |
msgid "User Email"
|
3792 |
msgstr ""
|
3793 |
|
3794 |
+
#: includes/admin/class-ur-admin-assets.php:307
|
3795 |
msgctxt "user-registration admin"
|
3796 |
msgid "User Password"
|
3797 |
msgstr ""
|
3798 |
|
3799 |
+
#: includes/admin/class-ur-admin-assets.php:308
|
3800 |
msgctxt "user registration admin"
|
3801 |
msgid "Are you sure want to delete?"
|
3802 |
msgstr ""
|
3803 |
|
3804 |
+
#: includes/admin/class-ur-admin-assets.php:309
|
3805 |
msgctxt "user registration admin"
|
3806 |
msgid "At least one row needs to be selected."
|
3807 |
msgstr ""
|
3808 |
|
3809 |
+
#: includes/admin/class-ur-admin-assets.php:310
|
3810 |
msgctxt "user registration admin"
|
3811 |
msgid "This field is one time draggable."
|
3812 |
msgstr ""
|
3813 |
|
3814 |
+
#: includes/admin/class-ur-admin-assets.php:311
|
3815 |
msgctxt "user registration admin"
|
3816 |
msgid "Could not clone this field."
|
3817 |
msgstr ""
|
3818 |
|
3819 |
+
#: includes/admin/class-ur-admin-assets.php:312
|
3820 |
msgctxt "user registration admin"
|
3821 |
msgid "Form successfully saved."
|
3822 |
msgstr ""
|
3823 |
|
3824 |
+
#: includes/admin/class-ur-admin-assets.php:313
|
3825 |
msgctxt "user registration admin"
|
3826 |
msgid "Success"
|
3827 |
msgstr ""
|
3828 |
|
3829 |
+
#: includes/admin/class-ur-admin-assets.php:314
|
3830 |
msgctxt "user registration admin"
|
3831 |
msgid "Error"
|
3832 |
msgstr ""
|
3833 |
|
3834 |
+
#: includes/admin/class-ur-admin-assets.php:315
|
3835 |
msgctxt "user registration admin"
|
3836 |
msgid "At least one field needs to be selected."
|
3837 |
msgstr ""
|
3838 |
|
3839 |
+
#: includes/admin/class-ur-admin-assets.php:316
|
3840 |
msgctxt "user registration admin"
|
3841 |
msgid "Empty form name."
|
3842 |
msgstr ""
|
3843 |
|
3844 |
+
#: includes/admin/class-ur-admin-assets.php:317
|
3845 |
msgctxt "user registration admin"
|
3846 |
msgid "Previous save action on going."
|
3847 |
msgstr ""
|
3848 |
|
3849 |
+
#: includes/admin/class-ur-admin-assets.php:318
|
3850 |
msgctxt "user registration admin"
|
3851 |
msgid "Duplicate field name."
|
3852 |
msgstr ""
|
3853 |
|
3854 |
+
#: includes/admin/class-ur-admin-assets.php:319
|
3855 |
msgctxt "user registration admin"
|
3856 |
msgid "Empty field label."
|
3857 |
msgstr ""
|
3858 |
|
3859 |
+
#: includes/admin/class-ur-admin-assets.php:320
|
3860 |
msgctxt "user registration admin"
|
3861 |
msgid ""
|
3862 |
"Invalid field name. Please do not use space, empty or special character, "
|
3863 |
"you can use underscore."
|
3864 |
msgstr ""
|
3865 |
|
3866 |
+
#: includes/admin/class-ur-admin-assets.php:321
|
3867 |
msgctxt "user registration admin"
|
3868 |
msgid "Multiple field key "
|
3869 |
msgstr ""
|
3870 |
|
3871 |
+
#: includes/admin/class-ur-admin-assets.php:322
|
3872 |
msgctxt "user registration admin"
|
3873 |
msgid "field is required."
|
3874 |
msgstr ""
|
3875 |
|
3876 |
+
#: includes/admin/class-ur-admin-assets.php:323
|
3877 |
msgctxt "user registration admin"
|
3878 |
msgid "Drag your first form item here."
|
3879 |
msgstr ""
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: user registration, registration, user profile, registration form, login fo
|
|
4 |
Requires at least: 4.0
|
5 |
Requires PHP: 5.3
|
6 |
Tested up to: 5.2
|
7 |
-
Stable tag: 1.
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -126,7 +126,38 @@ All the users registered via the registration forms and their data can be access
|
|
126 |
|
127 |
== Changelog ==
|
128 |
|
129 |
-
= 1.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
130 |
* Enhancement - Send Email to Admin when user changes their profile details.
|
131 |
* Feature - Fullscreen builder mode.
|
132 |
* Tweak - Template file update to locate add-ons file
|
4 |
Requires at least: 4.0
|
5 |
Requires PHP: 5.3
|
6 |
Tested up to: 5.2
|
7 |
+
Stable tag: 1.7.0
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
126 |
|
127 |
== Changelog ==
|
128 |
|
129 |
+
= 1.7.0 - 05/09/2019 =
|
130 |
+
* Feature - Live new user registration notice and badge.
|
131 |
+
* Feature - Import/Export registration form in JSON format.
|
132 |
+
* Feature - Shortcut to save form ( Ctrl + s ).
|
133 |
+
* Tweak - Form name edit position change.
|
134 |
+
* Tweak - UI enhancement for full-screen mode.
|
135 |
+
* Tweak - Input field box design on the builder.
|
136 |
+
* Tweak - Brand logo add in the builder.
|
137 |
+
* Tweak - Header design enhancement on the builder.
|
138 |
+
* Tweak - Remove footer save button.
|
139 |
+
* Tweak - Remove builder reload on save.
|
140 |
+
* Tweak - Form builder pre-loader.
|
141 |
+
* Tweak - Setting tab design.
|
142 |
+
* Tweak - Form fields design.
|
143 |
+
* Tweak - Overall form builder design
|
144 |
+
* Tweak - Add row button color adjustment.
|
145 |
+
* Tweak - Field description placement below the input in front-end.
|
146 |
+
* Tweak - Success and Error messages.
|
147 |
+
* Tweak - Fields Icon change.
|
148 |
+
* Tweak - SweetAlert2 confirmation and alert box.
|
149 |
+
* Fix - Manage draggable user fields on row delete.
|
150 |
+
* Add - Perfect Scrollbar in the builder.
|
151 |
+
* Add - New Smarttag ( {{ur_login}} ).
|
152 |
+
* Dev - Action hook in form builder footer wrapper.
|
153 |
+
* Dev - Action hook after form save.
|
154 |
+
* Dev - Filter hooks before and after form fields.
|
155 |
+
* Dev - Filter before and after field row.
|
156 |
+
* Dev - Add and Delete row JS events.
|
157 |
+
* Dev - Color picker field in form setting.
|
158 |
+
* Dev - Bool to string and vise Versa formatting add.
|
159 |
+
|
160 |
+
= 1.6.3 - 19/08/2019 =
|
161 |
* Enhancement - Send Email to Admin when user changes their profile details.
|
162 |
* Feature - Fullscreen builder mode.
|
163 |
* Tweak - Template file update to locate add-ons file
|
templates/form-registration.php
CHANGED
@@ -47,23 +47,24 @@ if ( 'Bordered' === $form_template ) {
|
|
47 |
$template_class = 'ur-frontend-form--rounded ur-frontend-form--rounded-edge';
|
48 |
}
|
49 |
|
50 |
-
$custom_class = apply_filters( 'user_registration_form_custom_class', $custom_class );
|
51 |
|
52 |
/**
|
53 |
* @since 1.5.1
|
54 |
*/
|
55 |
-
do_action( 'user_registration_before_registration_form' );
|
56 |
|
57 |
?>
|
58 |
-
<div class='ur-frontend-form <?php echo $template_class . ' ' . $custom_class; ?>' id='
|
59 |
<form method='post' class='register'
|
60 |
data-enable-strength-password="<?php echo $enable_strong_password; ?>" data-minimum-password-strength="<?php echo $minimum_password_strength; ?>" <?php echo apply_filters( 'user_registration_form_params', '' ); ?>>
|
61 |
|
62 |
<?php
|
|
|
63 |
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
?>
|
68 |
<div class='ur-form-row'>
|
69 |
<?php
|
@@ -93,8 +94,10 @@ do_action( 'user_registration_before_registration_form' );
|
|
93 |
}
|
94 |
?>
|
95 |
</div>
|
96 |
-
|
|
|
97 |
}
|
|
|
98 |
|
99 |
if ( $is_field_exists ) {
|
100 |
?>
|
@@ -102,18 +105,29 @@ do_action( 'user_registration_before_registration_form' );
|
|
102 |
if ( ! empty( $recaptcha_node ) ) {
|
103 |
echo '<div id="ur-recaptcha-node" style="width:100px;max-width: 100px;"> ' . $recaptcha_node . '</div>';
|
104 |
}
|
|
|
|
|
105 |
?>
|
106 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
107 |
<span></span>
|
108 |
-
<?php echo
|
109 |
</button>
|
110 |
|
|
|
|
|
111 |
<?php
|
112 |
}
|
113 |
|
114 |
if ( count( $form_data_array ) == 0 ) {
|
115 |
?>
|
116 |
-
<h2><?php echo
|
117 |
<?php
|
118 |
}
|
119 |
?>
|
@@ -135,6 +149,6 @@ do_action( 'user_registration_before_registration_form' );
|
|
135 |
*
|
136 |
* @since 1.0.0
|
137 |
*/
|
138 |
-
do_action( 'user_registration_form_registration' );
|
139 |
|
140 |
/* Omit closing PHP tag at the end of PHP files to avoid "headers already sent" issues. */
|
47 |
$template_class = 'ur-frontend-form--rounded ur-frontend-form--rounded-edge';
|
48 |
}
|
49 |
|
50 |
+
$custom_class = apply_filters( 'user_registration_form_custom_class', $custom_class, $form_id );
|
51 |
|
52 |
/**
|
53 |
* @since 1.5.1
|
54 |
*/
|
55 |
+
do_action( 'user_registration_before_registration_form', $form_id );
|
56 |
|
57 |
?>
|
58 |
+
<div class='user-registration ur-frontend-form <?php echo $template_class . ' ' . $custom_class; ?>' id='user-registration-form-<?php echo absint( $form_id ); ?>'>
|
59 |
<form method='post' class='register'
|
60 |
data-enable-strength-password="<?php echo $enable_strong_password; ?>" data-minimum-password-strength="<?php echo $minimum_password_strength; ?>" <?php echo apply_filters( 'user_registration_form_params', '' ); ?>>
|
61 |
|
62 |
<?php
|
63 |
+
do_action( 'user_registration_before_form_fields', $form_data_array, $form_id );
|
64 |
|
65 |
+
foreach ( $form_data_array as $index => $data ) {
|
66 |
+
$row_id = ( ! empty( $row_ids ) ) ? absint( $row_ids[ $index ] ) : $index;
|
67 |
+
do_action( 'user_registration_before_field_row', $row_id, $form_data_array, $form_id );
|
68 |
?>
|
69 |
<div class='ur-form-row'>
|
70 |
<?php
|
94 |
}
|
95 |
?>
|
96 |
</div>
|
97 |
+
<?php
|
98 |
+
do_action( 'user_registration_after_field_row', $row_id, $form_data_array, $form_id );
|
99 |
}
|
100 |
+
do_action( 'user_registration_after_form_fields', $form_data_array, $form_id );
|
101 |
|
102 |
if ( $is_field_exists ) {
|
103 |
?>
|
105 |
if ( ! empty( $recaptcha_node ) ) {
|
106 |
echo '<div id="ur-recaptcha-node" style="width:100px;max-width: 100px;"> ' . $recaptcha_node . '</div>';
|
107 |
}
|
108 |
+
|
109 |
+
$btn_container_class = apply_filters( 'user_registration_form_btn_container_class', array(), $form_id );
|
110 |
?>
|
111 |
+
<div class="ur-button-container <?php echo esc_html( implode( ' ', $btn_container_class ) ); ?>" >
|
112 |
+
<?php
|
113 |
+
do_action( 'user_registration_before_form_buttons', $form_id );
|
114 |
+
|
115 |
+
$submit_btn_class = apply_filters( 'user_registration_form_submit_btn_class', array(), $form_id );
|
116 |
+
?>
|
117 |
+
|
118 |
+
<button type="submit" class="btn button ur-submit-button <?php echo esc_html( implode( ' ', $submit_btn_class ) ); ?>">
|
119 |
<span></span>
|
120 |
+
<?php echo esc_html( ur_get_form_setting_by_key( $form_id, 'user_registration_form_setting_form_submit_label' ) ); ?>
|
121 |
</button>
|
122 |
|
123 |
+
<?php do_action( 'user_registration_after_form_buttons', $form_id ); ?>
|
124 |
+
</div>
|
125 |
<?php
|
126 |
}
|
127 |
|
128 |
if ( count( $form_data_array ) == 0 ) {
|
129 |
?>
|
130 |
+
<h2><?php echo esc_html__( 'Form not found, form id :' . $form_id, 'user-registration' ); ?></h2>
|
131 |
<?php
|
132 |
}
|
133 |
?>
|
149 |
*
|
150 |
* @since 1.0.0
|
151 |
*/
|
152 |
+
do_action( 'user_registration_form_registration', $form_id );
|
153 |
|
154 |
/* Omit closing PHP tag at the end of PHP files to avoid "headers already sent" issues. */
|
user-registration.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: User Registration
|
4 |
* Plugin URI: https://wpeverest.com/plugins/user-registration
|
5 |
* Description: Drag and Drop user registration form and login form builder.
|
6 |
-
* Version: 1.
|
7 |
* Author: WPEverest
|
8 |
* Author URI: https://wpeverest.com
|
9 |
* Text Domain: user-registration
|
@@ -31,7 +31,7 @@ if ( ! class_exists( 'UserRegistration' ) ) :
|
|
31 |
*
|
32 |
* @var string
|
33 |
*/
|
34 |
-
public $version = '1.
|
35 |
|
36 |
/**
|
37 |
* Session instance.
|
3 |
* Plugin Name: User Registration
|
4 |
* Plugin URI: https://wpeverest.com/plugins/user-registration
|
5 |
* Description: Drag and Drop user registration form and login form builder.
|
6 |
+
* Version: 1.7.0
|
7 |
* Author: WPEverest
|
8 |
* Author URI: https://wpeverest.com
|
9 |
* Text Domain: user-registration
|
31 |
*
|
32 |
* @var string
|
33 |
*/
|
34 |
+
public $version = '1.7.0';
|
35 |
|
36 |
/**
|
37 |
* Session instance.
|