Version Description
Download this release
Release Info
Developer | wpeverest |
Plugin | User Registration – Custom Registration Form, Login Form And User Profile For WordPress |
Version | 1.4.1 |
Comparing to | |
See all releases |
Code changes from version 1.4.0 to 1.4.1
- assets/css/admin-rtl.css +2 -2
- assets/css/admin.css +2 -2
- assets/css/admin.scss +4 -11
- assets/css/select2.css +1 -1
- assets/css/user-registration-rtl.css +1 -1
- assets/css/user-registration-smallscreen-rtl.css +1 -1
- assets/css/user-registration-smallscreen.css +1 -1
- assets/css/user-registration.css +1 -1
- assets/js/admin/admin.js +0 -11
- assets/js/frontend/user-registration.js +7 -4
- assets/js/frontend/user-registration.min.js +1 -1
- assets/js/inputmask/jquery.inputmask.bundle.js +2403 -0
- assets/js/inputmask/jquery.inputmask.bundle.min.js +9 -0
- includes/abstracts/abstract-ur-field-settings.php +0 -22
- includes/abstracts/abstract-ur-form-field.php +25 -73
- includes/admin/class-ur-admin-profile.php +86 -91
- includes/admin/settings/class-ur-settings-email.php +16 -17
- includes/admin/settings/class-ur-settings-integration.php +0 -8
- includes/admin/settings/emails/class-ur-settings-admin-email.php +65 -72
- includes/admin/settings/emails/class-ur-settings-awaiting-admin-approval-email.php +59 -69
- includes/admin/settings/emails/class-ur-settings-email-confirmation.php +7 -11
- includes/admin/settings/emails/class-ur-settings-registration-approved-email.php +59 -68
- includes/admin/settings/emails/class-ur-settings-registration-denied-email.php +6 -18
- includes/admin/settings/emails/class-ur-settings-registration-pending-email.php +64 -69
- includes/admin/settings/emails/class-ur-settings-reset-password-email.php +59 -57
- includes/admin/settings/emails/class-ur-settings-successfully-registered-email.php +58 -65
- includes/class-ur-ajax.php +5 -67
- includes/class-ur-email-confirmation.php +8 -17
- includes/class-ur-frontend-scripts.php +8 -1
- includes/class-ur-shortcodes.php +9 -14
- includes/functions-ur-account.php +5 -8
- includes/functions-ur-core.php +0 -2
- includes/functions-ur-template.php +21 -24
- includes/shortcodes/class-ur-shortcode-my-account.php +2 -33
- languages/user-registration.pot +245 -243
- package-lock.json +1 -1
- readme.txt +1 -1
- templates/myaccount/form-edit-profile.php +3 -5
- user-registration.php +2 -4
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;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;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;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: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: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: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: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-registered-item.ui-draggable-dragging{padding:10px 10px;line-height:20px;background:#3498db;color:#fff;text-align:center;margin-bottom:7px;word-break:break-word;white-space:normal;width:200px!important}.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:'';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_addons_wrap .products{overflow:hidden}.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{background-color:#fff}.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:23px}.user-registration_page_add-new-registration .postbox p.submit{margin-bottom:0}.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%}.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%;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:#000;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;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:#666;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:#000}.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 .subsubsub{margin:-8px 0 0}.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: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 .ur-registered-inputs{width:35%;background-color:#f9f9f9}.ur-registered-from .ur-registered-inputs .ur-tabs{border:0 none;background-color:transparent;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:flex;border-bottom:2px solid #217dbb;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:#666;background-color:transparent;padding:5px 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:#217dbb;color:#fff;line-height:24px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content{padding:10px}.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:#404040}.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:#3498db;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:#217dbb;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}.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:#787878;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:#787878;width:25px;height:25px;cursor:pointer;padding:0;line-height:25px;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:flex;text-align:center;padding:20px;box-sizing:border-box;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;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;transition:border-color .35s}.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 #3498db}.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 20px rgba(0,0,0,.2);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 .ur-action-buttons{display:none;position:absolute;left:10px;width:50px;text-align:center;padding:0;font-size:10px;top:10px;color:#b1b1b1}.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:#3498db}.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:#b1b1b1;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 dotted #217dbb;border-right:2px dotted #217dbb;border-top:2px dotted #217dbb;border-bottom:2px dotted #217dbb;background-color:#e1f0fa}.ur-registered-from .ur-selected-inputs .ur-add-new-row{color:#b1b1b1;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:#3498db}.ur-registered-from .ur-selected-inputs li.ur-registered-item{list-style:none;padding:10px 10px;line-height:20px;background-color:#3498db;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-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:#787878;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:#666;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:#3498db;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}#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}}@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{flex-direction:column}.ur-registered-from .ur-registered-inputs{width:100%;margin-bottom:10px}.ur-registered-from .ur-selected-inputs{width:100%}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{float:right;width:48%}}@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{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:#666;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}#ur-setting-form .ur-general-setting-html .ur-general-setting-description,#ur-setting-form .ur-general-setting-html .ur-general-setting-hide-label,#ur-setting-form .ur-general-setting-html .ur-general-setting-placeholder,#ur-setting-form .ur-general-setting-html .ur-general-setting-required,#ur-setting-form .ur-general-setting-section_title .ur-general-setting-description,#ur-setting-form .ur-general-setting-section_title .ur-general-setting-hide-label,#ur-setting-form .ur-general-setting-section_title .ur-general-setting-placeholder,#ur-setting-form .ur-general-setting-section_title .ur-general-setting-required{display:none}
|
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-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-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-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-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-registered-item.ui-draggable-dragging{padding:10px 10px;line-height:20px;background:#3498db;color:#fff;text-align:center;margin-bottom:7px;word-break:break-word;white-space:normal;width:200px!important}.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_addons_wrap .products{overflow:hidden}.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{background-color:#fff}.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:23px}.user-registration_page_add-new-registration .postbox p.submit{margin-bottom:0}.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%}.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:#000;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:#666;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:#000}.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 .subsubsub{margin:-8px 0 0}.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:-ms-flexbox;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 .ur-registered-inputs{width:35%;background-color:#f9f9f9}.ur-registered-from .ur-registered-inputs .ur-tabs{border:0 none;background-color:transparent;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:-ms-flexbox;display:flex;border-bottom:2px solid #217dbb;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:#666;background-color:transparent;padding:5px 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:#217dbb;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:#404040}.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:#3498db;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:#217dbb;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 - 50px);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:#787878;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:#787878;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:-ms-flexbox;display:flex;text-align:center;padding:20px;box-sizing:border-box;-webkit-box-pack:center;-ms-flex-pack: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;-ms-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: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 #3498db}.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 20px rgba(0,0,0,.2);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 .ur-action-buttons{display:none;position:absolute;left:10px;width:50px;text-align:center;padding:0;font-size:10px;top:10px;color:#b1b1b1}.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:#3498db}.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:#b1b1b1;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 dotted #217dbb;border-right:2px dotted #217dbb;border-top:2px dotted #217dbb;border-bottom:2px dotted #217dbb;background-color:#e1f0fa}.ur-registered-from .ur-selected-inputs .ur-add-new-row{color:#b1b1b1;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:#3498db}.ur-registered-from .ur-selected-inputs li.ur-registered-item{list-style:none;padding:10px 10px;line-height:20px;background-color:#3498db;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-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:#787878;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:#666;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:#3498db;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}#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}}@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;-ms-flex-direction:column;flex-direction:column}.ur-registered-from .ur-registered-inputs{width:100%;margin-bottom:10px}.ur-registered-from .ur-selected-inputs{width:100%}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{float:right;width:48%}}@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;-ms-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:#666;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}
|
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;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;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;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: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: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: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: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-registered-item.ui-draggable-dragging{padding:10px 10px;line-height:20px;background:#3498db;color:#fff;text-align:center;margin-bottom:7px;word-break:break-word;white-space:normal;width:200px!important}.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:'';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_addons_wrap .products{overflow:hidden}.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{background-color:#fff}.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:23px}.user-registration_page_add-new-registration .postbox p.submit{margin-bottom:0}.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%}.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%;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:#000;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;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:#666;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:#000}.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 .subsubsub{margin:-8px 0 0}.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: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 .ur-registered-inputs{width:35%;background-color:#f9f9f9}.ur-registered-from .ur-registered-inputs .ur-tabs{border:0 none;background-color:transparent;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:flex;border-bottom:2px solid #217dbb;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:#666;background-color:transparent;padding:5px 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:#217dbb;color:#fff;line-height:24px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content{padding:10px}.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:#404040}.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:#3498db;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:#217dbb;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}.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:#787878;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:#787878;width:25px;height:25px;cursor:pointer;padding:0;line-height:25px;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:flex;text-align:center;padding:20px;box-sizing:border-box;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;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;transition:border-color .35s}.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 #3498db}.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 20px rgba(0,0,0,.2);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 .ur-action-buttons{display:none;position:absolute;right:10px;width:50px;text-align:center;padding:0;font-size:10px;top:10px;color:#b1b1b1}.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:#3498db}.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:#b1b1b1;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 dotted #217dbb;border-left:2px dotted #217dbb;border-top:2px dotted #217dbb;border-bottom:2px dotted #217dbb;background-color:#e1f0fa}.ur-registered-from .ur-selected-inputs .ur-add-new-row{color:#b1b1b1;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:#3498db}.ur-registered-from .ur-selected-inputs li.ur-registered-item{list-style:none;padding:10px 10px;line-height:20px;background-color:#3498db;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-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:#787878;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:#666;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:#3498db;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}#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}}@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{flex-direction:column}.ur-registered-from .ur-registered-inputs{width:100%;margin-bottom:10px}.ur-registered-from .ur-selected-inputs{width:100%}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{float:left;width:48%}}@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{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:#666;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}#ur-setting-form .ur-general-setting-html .ur-general-setting-description,#ur-setting-form .ur-general-setting-html .ur-general-setting-hide-label,#ur-setting-form .ur-general-setting-html .ur-general-setting-placeholder,#ur-setting-form .ur-general-setting-html .ur-general-setting-required,#ur-setting-form .ur-general-setting-section_title .ur-general-setting-description,#ur-setting-form .ur-general-setting-section_title .ur-general-setting-hide-label,#ur-setting-form .ur-general-setting-section_title .ur-general-setting-placeholder,#ur-setting-form .ur-general-setting-section_title .ur-general-setting-required{display:none}
|
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-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-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-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-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-registered-item.ui-draggable-dragging{padding:10px 10px;line-height:20px;background:#3498db;color:#fff;text-align:center;margin-bottom:7px;word-break:break-word;white-space:normal;width:200px!important}.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_addons_wrap .products{overflow:hidden}.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{background-color:#fff}.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:23px}.user-registration_page_add-new-registration .postbox p.submit{margin-bottom:0}.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%}.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:#000;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:#666;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:#000}.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 .subsubsub{margin:-8px 0 0}.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:-ms-flexbox;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 .ur-registered-inputs{width:35%;background-color:#f9f9f9}.ur-registered-from .ur-registered-inputs .ur-tabs{border:0 none;background-color:transparent;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:-ms-flexbox;display:flex;border-bottom:2px solid #217dbb;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:#666;background-color:transparent;padding:5px 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:#217dbb;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:#404040}.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:#3498db;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:#217dbb;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 - 50px);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:#787878;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:#787878;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:-ms-flexbox;display:flex;text-align:center;padding:20px;box-sizing:border-box;-webkit-box-pack:center;-ms-flex-pack: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;-ms-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: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 #3498db}.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 20px rgba(0,0,0,.2);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 .ur-action-buttons{display:none;position:absolute;right:10px;width:50px;text-align:center;padding:0;font-size:10px;top:10px;color:#b1b1b1}.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:#3498db}.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:#b1b1b1;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 dotted #217dbb;border-left:2px dotted #217dbb;border-top:2px dotted #217dbb;border-bottom:2px dotted #217dbb;background-color:#e1f0fa}.ur-registered-from .ur-selected-inputs .ur-add-new-row{color:#b1b1b1;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:#3498db}.ur-registered-from .ur-selected-inputs li.ur-registered-item{list-style:none;padding:10px 10px;line-height:20px;background-color:#3498db;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-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:#787878;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:#666;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:#3498db;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}#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}}@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;-ms-flex-direction:column;flex-direction:column}.ur-registered-from .ur-registered-inputs{width:100%;margin-bottom:10px}.ur-registered-from .ur-selected-inputs{width:100%}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{float:left;width:48%}}@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;-ms-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:#666;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}
|
assets/css/admin.scss
CHANGED
@@ -596,6 +596,8 @@
|
|
596 |
}
|
597 |
.ur-tab-content {
|
598 |
padding: 10px;
|
|
|
|
|
599 |
&#ur-tab-registered-fields,
|
600 |
&#ur-tab-field-options {
|
601 |
background-color: $color_gray_eight;
|
@@ -661,6 +663,8 @@
|
|
661 |
box-sizing: border-box;
|
662 |
border-left: 1px solid $color_gray_six;
|
663 |
padding: 20px;
|
|
|
|
|
664 |
.ur-single-row {
|
665 |
background-color: $color_gray_eight;
|
666 |
margin-bottom: 20px;
|
@@ -1258,14 +1262,3 @@ line-height: inherit;
|
|
1258 |
#smart-tags{
|
1259 |
text-align: center;
|
1260 |
}
|
1261 |
-
|
1262 |
-
/**
|
1263 |
-
* Advanced Fields
|
1264 |
-
*/
|
1265 |
-
#ur-setting-form {
|
1266 |
-
.ur-general-setting-section_title, .ur-general-setting-html {
|
1267 |
-
.ur-general-setting-description, .ur-general-setting-placeholder, .ur-general-setting-required, .ur-general-setting-hide-label {
|
1268 |
-
display: none;
|
1269 |
-
}
|
1270 |
-
}
|
1271 |
-
}
|
596 |
}
|
597 |
.ur-tab-content {
|
598 |
padding: 10px;
|
599 |
+
height: calc(100vh - 85px);
|
600 |
+
overflow-y: auto;
|
601 |
&#ur-tab-registered-fields,
|
602 |
&#ur-tab-field-options {
|
603 |
background-color: $color_gray_eight;
|
663 |
box-sizing: border-box;
|
664 |
border-left: 1px solid $color_gray_six;
|
665 |
padding: 20px;
|
666 |
+
height: calc(100vh - 50px);
|
667 |
+
overflow-y: auto;
|
668 |
.ur-single-row {
|
669 |
background-color: $color_gray_eight;
|
670 |
margin-bottom: 20px;
|
1262 |
#smart-tags{
|
1263 |
text-align: center;
|
1264 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assets/css/select2.css
CHANGED
@@ -1 +1 @@
|
|
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;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;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;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: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: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: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: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}
|
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-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-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-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-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}
|
assets/css/user-registration-rtl.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.ur-registered-item.ui-draggable-dragging{padding:10px 10px;line-height:20px;background:#3498db;color:#fff;text-align:center;margin-bottom:7px;word-break:break-word;white-space:normal;width:200px!important}.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{padding:1.5em 3.5em 1.5em 2em;margin:0 0 2em;position:relative;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{font-family:Dashicons;content:'\f348';display:inline-block;position:absolute;top:1em;right:.9em;font-size:18px;line-height:1.5}.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 *{box-sizing:border-box}.ur-frontend-form form .ur-form-row{display:flex}.ur-frontend-form form .ur-form-row:last-child{margin-bottom:0}.ur-frontend-form form .ur-form-row .ur-form-grid{flex:1;padding:0 10px}.ur-frontend-form form .ur-form-row .ur-form-grid:nth-child(1n+2){border-right:0 none}.ur-frontend-form form .ur-form-row .ur-form-grid .ur-field-item{margin-bottom:20px;font-size:13px}.ur-frontend-form form .ur-form-row .ur-form-grid .ur-field-item:last-child{margin-bottom:0}.ur-frontend-form form .ur-form-row .ur-form-grid input[type=date],.ur-frontend-form form .ur-form-row .ur-form-grid input[type=email],.ur-frontend-form form .ur-form-row .ur-form-grid input[type=number],.ur-frontend-form form .ur-form-row .ur-form-grid input[type=password],.ur-frontend-form form .ur-form-row .ur-form-grid input[type=phone],.ur-frontend-form form .ur-form-row .ur-form-grid input[type=text],.ur-frontend-form form .ur-form-row .ur-form-grid input[type=timepicker],.ur-frontend-form form .ur-form-row .ur-form-grid input[type=url],.ur-frontend-form form .ur-form-row .ur-form-grid select,.ur-frontend-form form .ur-form-row .ur-form-grid textarea{display:block;width:100%;border-radius:0;height:40px;margin-bottom:10px}.ur-frontend-form form .ur-form-row .ur-form-grid input[type=date]::-webkit-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=email]::-webkit-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=number]::-webkit-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=password]::-webkit-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=phone]::-webkit-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=text]::-webkit-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=timepicker]::-webkit-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=url]::-webkit-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid select::-webkit-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid textarea::-webkit-input-placeholder{color:#ddd;font-size:13px}.ur-frontend-form form .ur-form-row .ur-form-grid input[type=date]::-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=email]::-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=number]::-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=password]::-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=phone]::-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=text]::-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=timepicker]::-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=url]::-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid select::-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid textarea::-moz-placeholder{color:#ddd;font-size:13px}.ur-frontend-form form .ur-form-row .ur-form-grid input[type=date]:-ms-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=email]:-ms-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=number]:-ms-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=password]:-ms-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=phone]:-ms-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=text]:-ms-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=timepicker]:-ms-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=url]:-ms-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid select:-ms-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid textarea:-ms-input-placeholder{color:#ddd;font-size:13px}.ur-frontend-form form .ur-form-row .ur-form-grid input[type=date]:-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=email]:-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=number]:-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=password]:-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=phone]:-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=text]:-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=timepicker]:-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=url]:-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid select:-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid textarea:-moz-placeholder{color:#ddd;font-size:13px}.ur-frontend-form form .ur-form-row .ur-form-grid input[type=checkbox],.ur-frontend-form 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 form .ur-form-row .ur-form-grid input[type=checkbox]:first-child,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=radio]:first-child{margin-right:0}.ur-frontend-form form .ur-form-row .ur-form-grid button:focus,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=email]:focus,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=password]:focus,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=radio]:focus,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=text]:focus,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=url]:focus,.ur-frontend-form form .ur-form-row .ur-form-grid select:focus,.ur-frontend-form form .ur-form-row .ur-form-grid textarea:focus{outline:0}.ur-frontend-form form .ur-form-row .ur-form-grid label,.ur-frontend-form form .ur-form-row .ur-form-grid legend{display:block;width:100%;margin-bottom:10px}.ur-frontend-form form .ur-form-row .ur-form-grid label .required,.ur-frontend-form form .ur-form-row .ur-form-grid legend .required{text-decoration:none;border:none;color:red}.ur-frontend-form form .ur-form-row .ur-form-grid textarea{padding:10px;height:100px;resize:none;padding:5px 20px}.ur-frontend-form form button[type=submit],.ur-frontend-form form input[type=submit]{float:left;padding:10px 20px;line-height:1em;text-align:center;word-break:break-word;white-space:normal;border:none;cursor:pointer;-webkit-transition:.9s all ease-out;-o-transition:.9s all ease-out;transition:.9s all ease-out}.ur-frontend-form 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;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 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:#3498db;color:#fff;border-color:#3498db}.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--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;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 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 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 *,#user-registration.user-registration{box-sizing:border-box}#user-registration p{color:#333}#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:flex;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;border-right:1px solid #fff;border-top:1px solid #fff;border-left:1px solid #fff;position:relative;box-shadow:0 0 0 transparent}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link a{color:#666;padding:10px 15px;display:block;font-weight:600;font-size:15px;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{background-color:#fcfcfc;border-right:1px solid #ddd;border-top:1px solid #ddd;border-left:1px solid #ddd}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link.is-active:before{position:absolute;bottom:-1px;right:0;content:" ";width:100%;height:1px;background-color:#fcfcfc}#user-registration .user-registration-MyAccount-content{background:#fcfcfc;padding:15px 20px;border:1px solid #ddd}#user-registration .user-registration-MyAccount-content .ur-form-grid{padding:0;border:0 none;background:0 0}#user-registration .user-registration-MyAccount-content .ur-frontend-form{border:none}.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}
|
1 |
+
.ur-registered-item.ui-draggable-dragging{padding:10px 10px;line-height:20px;background:#3498db;color:#fff;text-align:center;margin-bottom:7px;word-break:break-word;white-space:normal;width:200px!important}.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{padding:1.5em 3.5em 1.5em 2em;margin:0 0 2em;position:relative;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{font-family:Dashicons;content:'\f348';display:inline-block;position:absolute;top:1em;right:.9em;font-size:18px;line-height:1.5}.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 *{box-sizing:border-box}.ur-frontend-form form .ur-form-row{display:-webkit-box;display:-ms-flexbox;display:flex}.ur-frontend-form form .ur-form-row:last-child{margin-bottom:0}.ur-frontend-form form .ur-form-row .ur-form-grid{-webkit-box-flex:1;-ms-flex:1;flex:1;padding:0 10px}.ur-frontend-form form .ur-form-row .ur-form-grid:nth-child(1n+2){border-right:0 none}.ur-frontend-form form .ur-form-row .ur-form-grid .ur-field-item{margin-bottom:20px;font-size:13px}.ur-frontend-form form .ur-form-row .ur-form-grid .ur-field-item:last-child{margin-bottom:0}.ur-frontend-form form .ur-form-row .ur-form-grid input[type=date],.ur-frontend-form form .ur-form-row .ur-form-grid input[type=email],.ur-frontend-form form .ur-form-row .ur-form-grid input[type=number],.ur-frontend-form form .ur-form-row .ur-form-grid input[type=password],.ur-frontend-form form .ur-form-row .ur-form-grid input[type=phone],.ur-frontend-form form .ur-form-row .ur-form-grid input[type=text],.ur-frontend-form form .ur-form-row .ur-form-grid input[type=timepicker],.ur-frontend-form form .ur-form-row .ur-form-grid input[type=url],.ur-frontend-form form .ur-form-row .ur-form-grid select,.ur-frontend-form form .ur-form-row .ur-form-grid textarea{display:block;width:100%;border-radius:0;height:40px;margin-bottom:10px}.ur-frontend-form form .ur-form-row .ur-form-grid input[type=date]::-webkit-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=email]::-webkit-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=number]::-webkit-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=password]::-webkit-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=phone]::-webkit-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=text]::-webkit-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=timepicker]::-webkit-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=url]::-webkit-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid select::-webkit-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid textarea::-webkit-input-placeholder{color:#ddd;font-size:13px}.ur-frontend-form form .ur-form-row .ur-form-grid input[type=date]::-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=email]::-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=number]::-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=password]::-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=phone]::-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=text]::-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=timepicker]::-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=url]::-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid select::-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid textarea::-moz-placeholder{color:#ddd;font-size:13px}.ur-frontend-form form .ur-form-row .ur-form-grid input[type=date]:-ms-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=email]:-ms-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=number]:-ms-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=password]:-ms-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=phone]:-ms-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=text]:-ms-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=timepicker]:-ms-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=url]:-ms-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid select:-ms-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid textarea:-ms-input-placeholder{color:#ddd;font-size:13px}.ur-frontend-form form .ur-form-row .ur-form-grid input[type=date]:-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=email]:-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=number]:-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=password]:-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=phone]:-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=text]:-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=timepicker]:-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=url]:-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid select:-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid textarea:-moz-placeholder{color:#ddd;font-size:13px}.ur-frontend-form form .ur-form-row .ur-form-grid input[type=checkbox],.ur-frontend-form 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 form .ur-form-row .ur-form-grid input[type=checkbox]:first-child,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=radio]:first-child{margin-right:0}.ur-frontend-form form .ur-form-row .ur-form-grid button:focus,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=email]:focus,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=password]:focus,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=radio]:focus,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=text]:focus,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=url]:focus,.ur-frontend-form form .ur-form-row .ur-form-grid select:focus,.ur-frontend-form form .ur-form-row .ur-form-grid textarea:focus{outline:0}.ur-frontend-form form .ur-form-row .ur-form-grid label,.ur-frontend-form form .ur-form-row .ur-form-grid legend{display:block;width:100%;margin-bottom:10px}.ur-frontend-form form .ur-form-row .ur-form-grid label .required,.ur-frontend-form form .ur-form-row .ur-form-grid legend .required{text-decoration:none;border:none;color:red}.ur-frontend-form form .ur-form-row .ur-form-grid textarea{padding:10px;height:100px;resize:none;padding:5px 20px}.ur-frontend-form form button[type=submit],.ur-frontend-form form input[type=submit]{float:left;padding:10px 20px;line-height:1em;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 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 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:#3498db;color:#fff;border-color:#3498db}.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--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 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 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 *,#user-registration.user-registration{box-sizing:border-box}#user-registration p{color:#333}#user-registration .user-registration-MyAccount-navigation{overflow:visible;margin:0}#user-registration .user-registration-MyAccount-navigation ul{margin:0;padding:0;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-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;border-right:1px solid #fff;border-top:1px solid #fff;border-left:1px solid #fff;position:relative;box-shadow:0 0 0 transparent}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link a{color:#666;padding:10px 15px;display:block;font-weight:600;font-size:15px;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{background-color:#fcfcfc;border-right:1px solid #ddd;border-top:1px solid #ddd;border-left:1px solid #ddd}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link.is-active:before{position:absolute;bottom:-1px;right:0;content:" ";width:100%;height:1px;background-color:#fcfcfc}#user-registration .user-registration-MyAccount-content{background:#fcfcfc;padding:15px 20px;border:1px solid #ddd}#user-registration .user-registration-MyAccount-content .ur-form-grid{padding:0;border:0 none;background:0 0}#user-registration .user-registration-MyAccount-content .ur-frontend-form{border:none}.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}
|
assets/css/user-registration-smallscreen-rtl.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
@media screen and (max-width:768px){.ur-frontend-form form .ur-form-row{display:-webkit-
|
1 |
+
@media screen and (max-width:768px){.ur-frontend-form form .ur-form-row{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.ur-frontend-form form .ur-form-row .ur-form-grid{width:100%!important;margin-bottom:20px}.ur-frontend-form form .ur-form-row .ur-form-grid:nth-child(1n+2){border-right:1px solid #ddd}.ur-frontend-form form .ur-form-row .ur-form-grid:last-child{margin-bottom:0;border-right:0 none}}@media screen and (max-width:600px){#user-registration .user-registration-MyAccount-navigation ul{display:block}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link{display:block}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link.is-active{border-top:1px solid #fcfcfc;border-right:1px solid #fcfcfc;border-left:1px solid #fcfcfc}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link.is-active:before{display:none}}
|
assets/css/user-registration-smallscreen.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
@media screen and (max-width:768px){.ur-frontend-form form .ur-form-row{display:-webkit-
|
1 |
+
@media screen and (max-width:768px){.ur-frontend-form form .ur-form-row{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.ur-frontend-form form .ur-form-row .ur-form-grid{width:100%!important;margin-bottom:20px}.ur-frontend-form form .ur-form-row .ur-form-grid:nth-child(1n+2){border-left:1px solid #ddd}.ur-frontend-form form .ur-form-row .ur-form-grid:last-child{margin-bottom:0;border-left:0 none}}@media screen and (max-width:600px){#user-registration .user-registration-MyAccount-navigation ul{display:block}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link{display:block}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link.is-active{border-top:1px solid #fcfcfc;border-left:1px solid #fcfcfc;border-right:1px solid #fcfcfc}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link.is-active:before{display:none}}
|
assets/css/user-registration.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.ur-registered-item.ui-draggable-dragging{padding:10px 10px;line-height:20px;background:#3498db;color:#fff;text-align:center;margin-bottom:7px;word-break:break-word;white-space:normal;width:200px!important}.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{padding:1.5em 2em 1.5em 3.5em;margin:0 0 2em;position:relative;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{font-family:Dashicons;content:'\f348';display:inline-block;position:absolute;top:1em;left:.9em;font-size:18px;line-height:1.5}.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 *{box-sizing:border-box}.ur-frontend-form form .ur-form-row{display:flex}.ur-frontend-form form .ur-form-row:last-child{margin-bottom:0}.ur-frontend-form form .ur-form-row .ur-form-grid{flex:1;padding:0 10px}.ur-frontend-form form .ur-form-row .ur-form-grid:nth-child(1n+2){border-left:0 none}.ur-frontend-form form .ur-form-row .ur-form-grid .ur-field-item{margin-bottom:20px;font-size:13px}.ur-frontend-form form .ur-form-row .ur-form-grid .ur-field-item:last-child{margin-bottom:0}.ur-frontend-form form .ur-form-row .ur-form-grid input[type=date],.ur-frontend-form form .ur-form-row .ur-form-grid input[type=email],.ur-frontend-form form .ur-form-row .ur-form-grid input[type=number],.ur-frontend-form form .ur-form-row .ur-form-grid input[type=password],.ur-frontend-form form .ur-form-row .ur-form-grid input[type=phone],.ur-frontend-form form .ur-form-row .ur-form-grid input[type=text],.ur-frontend-form form .ur-form-row .ur-form-grid input[type=timepicker],.ur-frontend-form form .ur-form-row .ur-form-grid input[type=url],.ur-frontend-form form .ur-form-row .ur-form-grid select,.ur-frontend-form form .ur-form-row .ur-form-grid textarea{display:block;width:100%;border-radius:0;height:40px;margin-bottom:10px}.ur-frontend-form form .ur-form-row .ur-form-grid input[type=date]::-webkit-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=email]::-webkit-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=number]::-webkit-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=password]::-webkit-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=phone]::-webkit-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=text]::-webkit-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=timepicker]::-webkit-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=url]::-webkit-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid select::-webkit-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid textarea::-webkit-input-placeholder{color:#ddd;font-size:13px}.ur-frontend-form form .ur-form-row .ur-form-grid input[type=date]::-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=email]::-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=number]::-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=password]::-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=phone]::-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=text]::-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=timepicker]::-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=url]::-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid select::-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid textarea::-moz-placeholder{color:#ddd;font-size:13px}.ur-frontend-form form .ur-form-row .ur-form-grid input[type=date]:-ms-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=email]:-ms-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=number]:-ms-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=password]:-ms-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=phone]:-ms-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=text]:-ms-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=timepicker]:-ms-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=url]:-ms-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid select:-ms-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid textarea:-ms-input-placeholder{color:#ddd;font-size:13px}.ur-frontend-form form .ur-form-row .ur-form-grid input[type=date]:-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=email]:-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=number]:-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=password]:-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=phone]:-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=text]:-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=timepicker]:-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=url]:-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid select:-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid textarea:-moz-placeholder{color:#ddd;font-size:13px}.ur-frontend-form form .ur-form-row .ur-form-grid input[type=checkbox],.ur-frontend-form 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 form .ur-form-row .ur-form-grid input[type=checkbox]:first-child,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=radio]:first-child{margin-left:0}.ur-frontend-form form .ur-form-row .ur-form-grid button:focus,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=email]:focus,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=password]:focus,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=radio]:focus,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=text]:focus,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=url]:focus,.ur-frontend-form form .ur-form-row .ur-form-grid select:focus,.ur-frontend-form form .ur-form-row .ur-form-grid textarea:focus{outline:0}.ur-frontend-form form .ur-form-row .ur-form-grid label,.ur-frontend-form form .ur-form-row .ur-form-grid legend{display:block;width:100%;margin-bottom:10px}.ur-frontend-form form .ur-form-row .ur-form-grid label .required,.ur-frontend-form form .ur-form-row .ur-form-grid legend .required{text-decoration:none;border:none;color:red}.ur-frontend-form form .ur-form-row .ur-form-grid textarea{padding:10px;height:100px;resize:none;padding:5px 20px}.ur-frontend-form form button[type=submit],.ur-frontend-form form input[type=submit]{float:right;padding:10px 20px;line-height:1em;text-align:center;word-break:break-word;white-space:normal;border:none;cursor:pointer;-webkit-transition:.9s all ease-out;-o-transition:.9s all ease-out;transition:.9s all ease-out}.ur-frontend-form 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;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 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:#3498db;color:#fff;border-color:#3498db}.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--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;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 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 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 *,#user-registration.user-registration{box-sizing:border-box}#user-registration p{color:#333}#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:flex;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;border-left:1px solid #fff;border-top:1px solid #fff;border-right:1px solid #fff;position:relative;box-shadow:0 0 0 transparent}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link a{color:#666;padding:10px 15px;display:block;font-weight:600;font-size:15px;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{background-color:#fcfcfc;border-left:1px solid #ddd;border-top:1px solid #ddd;border-right:1px solid #ddd}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link.is-active:before{position:absolute;bottom:-1px;left:0;content:" ";width:100%;height:1px;background-color:#fcfcfc}#user-registration .user-registration-MyAccount-content{background:#fcfcfc;padding:15px 20px;border:1px solid #ddd}#user-registration .user-registration-MyAccount-content .ur-form-grid{padding:0;border:0 none;background:0 0}#user-registration .user-registration-MyAccount-content .ur-frontend-form{border:none}.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}
|
1 |
+
.ur-registered-item.ui-draggable-dragging{padding:10px 10px;line-height:20px;background:#3498db;color:#fff;text-align:center;margin-bottom:7px;word-break:break-word;white-space:normal;width:200px!important}.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{padding:1.5em 2em 1.5em 3.5em;margin:0 0 2em;position:relative;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{font-family:Dashicons;content:'\f348';display:inline-block;position:absolute;top:1em;left:.9em;font-size:18px;line-height:1.5}.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 *{box-sizing:border-box}.ur-frontend-form form .ur-form-row{display:-webkit-box;display:-ms-flexbox;display:flex}.ur-frontend-form form .ur-form-row:last-child{margin-bottom:0}.ur-frontend-form form .ur-form-row .ur-form-grid{-webkit-box-flex:1;-ms-flex:1;flex:1;padding:0 10px}.ur-frontend-form form .ur-form-row .ur-form-grid:nth-child(1n+2){border-left:0 none}.ur-frontend-form form .ur-form-row .ur-form-grid .ur-field-item{margin-bottom:20px;font-size:13px}.ur-frontend-form form .ur-form-row .ur-form-grid .ur-field-item:last-child{margin-bottom:0}.ur-frontend-form form .ur-form-row .ur-form-grid input[type=date],.ur-frontend-form form .ur-form-row .ur-form-grid input[type=email],.ur-frontend-form form .ur-form-row .ur-form-grid input[type=number],.ur-frontend-form form .ur-form-row .ur-form-grid input[type=password],.ur-frontend-form form .ur-form-row .ur-form-grid input[type=phone],.ur-frontend-form form .ur-form-row .ur-form-grid input[type=text],.ur-frontend-form form .ur-form-row .ur-form-grid input[type=timepicker],.ur-frontend-form form .ur-form-row .ur-form-grid input[type=url],.ur-frontend-form form .ur-form-row .ur-form-grid select,.ur-frontend-form form .ur-form-row .ur-form-grid textarea{display:block;width:100%;border-radius:0;height:40px;margin-bottom:10px}.ur-frontend-form form .ur-form-row .ur-form-grid input[type=date]::-webkit-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=email]::-webkit-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=number]::-webkit-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=password]::-webkit-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=phone]::-webkit-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=text]::-webkit-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=timepicker]::-webkit-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=url]::-webkit-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid select::-webkit-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid textarea::-webkit-input-placeholder{color:#ddd;font-size:13px}.ur-frontend-form form .ur-form-row .ur-form-grid input[type=date]::-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=email]::-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=number]::-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=password]::-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=phone]::-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=text]::-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=timepicker]::-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=url]::-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid select::-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid textarea::-moz-placeholder{color:#ddd;font-size:13px}.ur-frontend-form form .ur-form-row .ur-form-grid input[type=date]:-ms-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=email]:-ms-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=number]:-ms-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=password]:-ms-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=phone]:-ms-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=text]:-ms-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=timepicker]:-ms-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=url]:-ms-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid select:-ms-input-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid textarea:-ms-input-placeholder{color:#ddd;font-size:13px}.ur-frontend-form form .ur-form-row .ur-form-grid input[type=date]:-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=email]:-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=number]:-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=password]:-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=phone]:-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=text]:-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=timepicker]:-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=url]:-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid select:-moz-placeholder,.ur-frontend-form form .ur-form-row .ur-form-grid textarea:-moz-placeholder{color:#ddd;font-size:13px}.ur-frontend-form form .ur-form-row .ur-form-grid input[type=checkbox],.ur-frontend-form 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 form .ur-form-row .ur-form-grid input[type=checkbox]:first-child,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=radio]:first-child{margin-left:0}.ur-frontend-form form .ur-form-row .ur-form-grid button:focus,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=email]:focus,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=password]:focus,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=radio]:focus,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=text]:focus,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=url]:focus,.ur-frontend-form form .ur-form-row .ur-form-grid select:focus,.ur-frontend-form form .ur-form-row .ur-form-grid textarea:focus{outline:0}.ur-frontend-form form .ur-form-row .ur-form-grid label,.ur-frontend-form form .ur-form-row .ur-form-grid legend{display:block;width:100%;margin-bottom:10px}.ur-frontend-form form .ur-form-row .ur-form-grid label .required,.ur-frontend-form form .ur-form-row .ur-form-grid legend .required{text-decoration:none;border:none;color:red}.ur-frontend-form form .ur-form-row .ur-form-grid textarea{padding:10px;height:100px;resize:none;padding:5px 20px}.ur-frontend-form form button[type=submit],.ur-frontend-form form input[type=submit]{float:right;padding:10px 20px;line-height:1em;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 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 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:#3498db;color:#fff;border-color:#3498db}.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--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 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 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 *,#user-registration.user-registration{box-sizing:border-box}#user-registration p{color:#333}#user-registration .user-registration-MyAccount-navigation{overflow:visible;margin:0}#user-registration .user-registration-MyAccount-navigation ul{margin:0;padding:0;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-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;border-left:1px solid #fff;border-top:1px solid #fff;border-right:1px solid #fff;position:relative;box-shadow:0 0 0 transparent}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link a{color:#666;padding:10px 15px;display:block;font-weight:600;font-size:15px;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{background-color:#fcfcfc;border-left:1px solid #ddd;border-top:1px solid #ddd;border-right:1px solid #ddd}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link.is-active:before{position:absolute;bottom:-1px;left:0;content:" ";width:100%;height:1px;background-color:#fcfcfc}#user-registration .user-registration-MyAccount-content{background:#fcfcfc;padding:15px 20px;border:1px solid #ddd}#user-registration .user-registration-MyAccount-content .ur-form-grid{padding:0;border:0 none;background:0 0}#user-registration .user-registration-MyAccount-content .ur-frontend-form{border:none}.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}
|
assets/js/admin/admin.js
CHANGED
@@ -2,18 +2,15 @@
|
|
2 |
* UserRegistration Admin JS
|
3 |
* global i18n_admin
|
4 |
*/
|
5 |
-
|
6 |
jQuery(function () {
|
7 |
|
8 |
var mySelect = jQuery('#user_registration_general_setting_login_options option:selected').val();
|
9 |
-
|
10 |
if ( mySelect == 'email_confirmation' ) {
|
11 |
jQuery('#user_registration_general_setting_disable_email').attr('checked', false);
|
12 |
jQuery("#user_registration_general_setting_disable_email").attr("disabled", true);
|
13 |
}
|
14 |
|
15 |
jQuery("body").on('select2:select', "#user_registration_general_setting_login_options", function () {
|
16 |
-
|
17 |
if ( jQuery(this).find('option:selected').val() == "email_confirmation" ) {
|
18 |
jQuery('#user_registration_general_setting_disable_email').attr('checked', false);
|
19 |
jQuery("#user_registration_general_setting_disable_email").attr("disabled", true);
|
@@ -24,7 +21,6 @@ jQuery(function () {
|
|
24 |
});
|
25 |
});
|
26 |
|
27 |
-
|
28 |
jQuery(function ( $ ) {
|
29 |
// Tooltips
|
30 |
$(document.body).on('init_tooltips', function () {
|
@@ -837,21 +833,14 @@ jQuery(function ( $ ) {
|
|
837 |
|
838 |
}
|
839 |
});
|
840 |
-
|
841 |
-
|
842 |
}
|
843 |
|
844 |
function ur_math_ceil ( value ) {
|
845 |
-
|
846 |
return Math.ceil(value, 0);
|
847 |
-
|
848 |
}
|
849 |
|
850 |
function ur_parse_int ( value ) {
|
851 |
-
|
852 |
return parseInt(value, 0);
|
853 |
}
|
854 |
|
855 |
-
|
856 |
}(jQuery, window.user_registration_admin_data));
|
857 |
-
|
2 |
* UserRegistration Admin JS
|
3 |
* global i18n_admin
|
4 |
*/
|
|
|
5 |
jQuery(function () {
|
6 |
|
7 |
var mySelect = jQuery('#user_registration_general_setting_login_options option:selected').val();
|
|
|
8 |
if ( mySelect == 'email_confirmation' ) {
|
9 |
jQuery('#user_registration_general_setting_disable_email').attr('checked', false);
|
10 |
jQuery("#user_registration_general_setting_disable_email").attr("disabled", true);
|
11 |
}
|
12 |
|
13 |
jQuery("body").on('select2:select', "#user_registration_general_setting_login_options", function () {
|
|
|
14 |
if ( jQuery(this).find('option:selected').val() == "email_confirmation" ) {
|
15 |
jQuery('#user_registration_general_setting_disable_email').attr('checked', false);
|
16 |
jQuery("#user_registration_general_setting_disable_email").attr("disabled", true);
|
21 |
});
|
22 |
});
|
23 |
|
|
|
24 |
jQuery(function ( $ ) {
|
25 |
// Tooltips
|
26 |
$(document.body).on('init_tooltips', function () {
|
833 |
|
834 |
}
|
835 |
});
|
|
|
|
|
836 |
}
|
837 |
|
838 |
function ur_math_ceil ( value ) {
|
|
|
839 |
return Math.ceil(value, 0);
|
|
|
840 |
}
|
841 |
|
842 |
function ur_parse_int ( value ) {
|
|
|
843 |
return parseInt(value, 0);
|
844 |
}
|
845 |
|
|
|
846 |
}(jQuery, window.user_registration_admin_data));
|
|
assets/js/frontend/user-registration.js
CHANGED
@@ -2,16 +2,21 @@
|
|
2 |
/* global ur_google_recaptcha_code */
|
3 |
/* global grecaptcha */
|
4 |
(function ( $ ) {
|
5 |
-
|
6 |
-
var user_registration = {
|
7 |
$user_registration: $( '.ur-frontend-form form.register' ),
|
8 |
init: function() {
|
9 |
this.init_datepicker();
|
10 |
this.load_validation();
|
|
|
11 |
|
12 |
// Inline validation
|
13 |
this.$user_registration.on( 'input validate change', '.input-text, select, input:checkbox input:radio', this.validate_field );
|
14 |
},
|
|
|
|
|
|
|
|
|
|
|
15 |
init_datepicker: function () {
|
16 |
$( '.date-picker-field, .date-picker' ).datepicker({
|
17 |
changeMonth: true,
|
@@ -446,6 +451,4 @@ var onloadURCallback = function () {
|
|
446 |
'style': 'transform:scale(0.77);-webkit-transform:scale(0.77);transform-origin:0 0;-webkit-transform-origin:0 0;'
|
447 |
|
448 |
});
|
449 |
-
|
450 |
-
|
451 |
};
|
2 |
/* global ur_google_recaptcha_code */
|
3 |
/* global grecaptcha */
|
4 |
(function ( $ ) {
|
5 |
+
var user_registration = {
|
|
|
6 |
$user_registration: $( '.ur-frontend-form form.register' ),
|
7 |
init: function() {
|
8 |
this.init_datepicker();
|
9 |
this.load_validation();
|
10 |
+
this.init_inputMask();
|
11 |
|
12 |
// Inline validation
|
13 |
this.$user_registration.on( 'input validate change', '.input-text, select, input:checkbox input:radio', this.validate_field );
|
14 |
},
|
15 |
+
init_inputMask: function() {
|
16 |
+
if ( typeof $.fn.inputmask !== 'undefined' ) {
|
17 |
+
$( '.ur-masked-input' ).inputmask();
|
18 |
+
}
|
19 |
+
},
|
20 |
init_datepicker: function () {
|
21 |
$( '.date-picker-field, .date-picker' ).datepicker({
|
22 |
changeMonth: true,
|
451 |
'style': 'transform:scale(0.77);-webkit-transform:scale(0.77);transform-origin:0 0;-webkit-transform-origin:0 0;'
|
452 |
|
453 |
});
|
|
|
|
|
454 |
};
|
assets/js/frontend/user-registration.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e){({$user_registration:e(".ur-frontend-form form.register"),init:function(){this.init_datepicker(),this.load_validation(),this.$user_registration.on("input validate change",".input-text, select, input:checkbox input:radio",this.validate_field)},init_datepicker:function(){e(".date-picker-field, .date-picker").datepicker({changeMonth:!0,changeYear:!0,defaultDate:"",dateFormat:"yy-mm-dd",numberOfMonths:1,minDate:"-15Y",maxDate:"+15Y"})},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):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 F=JSON.stringify(d);else if("radio"==o)F=d[0];else F=u.val();var l=s[n];l=l.replace("[]","");var f={value:F,field_type:u.eq(0).attr("id").replace("ur-input-type-",""),label:u.eq(0).attr("data-label"),field_name:l};t.push(f)}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=r.attr("id").replace("ur-input-type-",""),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="",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(t){if(a.valid()){if(a.find(".user-registration-password-strength").length>0){var i=a.find(".user-registration-password-strength").attr("data-current-strength"),n=a.find(".user-registration-password-strength").attr("data-min-strength");if(parseInt(i,0)<parseInt(n,0))return!1}t.preventDefault();var u;try{u=JSON.stringify(s.get_form_data())}catch(l){u=""}var o=0;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());var d="0";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,form_id:o,ur_frontend_form_nonce:d};if(e(document).trigger("user_registration_frontend_before_form_submit",[F,a]),"undefined"!=typeof ur_google_recaptcha_code&&"1"===ur_google_recaptcha_code.is_captcha_enable){if(0===a.find("#g-recaptcha-response").val().length)return void s.show_message("<p>"+r.captcha_error+"</p>","error",a);grecaptcha.reset()}a.find(".ur-submit-button").find("span").addClass("ur-front-spinner"),e.ajax({url:user_registration_params.ajax_url,data:F,type:"POST",async:!0,beforeSend:function(){},complete:function(t){a.find(".ur-submit-button").find("span").removeClass("ur-front-spinner");var i=e('<ul class=""/>'),n="error";try{var u=e.parseJSON(t.responseText);"undefined"!=typeof u.success&&!0===u.success&&(n="message"),"object"==typeof u.data.message&&e.each(u.data.message,function(){e("<li/>").text(this).appendTo(i)}),"message"===n&&(e(".user-registration-password-hint").remove(),e(".user-registration-password-strength").remove(),"admin_approval"==user_registration_params.login_option?i.append("<li>"+r.user_under_approval+"</li>"):"email_confirmation"==user_registration_params.login_option?i.append("<li>"+r.user_email_pending+"</li>"):i.append("<li>"+r.user_successfully_saved+"</li>"),a[0].reset(),""!==user_registration_params.redirect_url?window.setTimeout(function(){window.location=user_registration_params.redirect_url},1e3):"undefined"!=typeof u.data.auto_login&&u.data.auto_login&&location.reload())}catch(o){i.append("<li>"+o.message+"</li>")}s.show_message(i,n,a),e(document).trigger("user_registration_frontend_after_ajax_complete",[t.responseText,n,a])}})}})}};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("ur-date").attr("type","text").attr("placeholder","yy-mm-dd").datepicker({dateFormat:"yy-mm-dd",changeMonth:!0,changeYear:!0,yearRange:"1901:2099"})})}(jQuery);var google_recaptcha_user_registration,onloadURCallback=function(){google_recaptcha_user_registration=grecaptcha.render("node_recaptcha",{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(e){({$user_registration:e(".ur-frontend-form form.register"),init:function(){this.init_datepicker(),this.load_validation(),this.init_inputMask(),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_datepicker:function(){e(".date-picker-field, .date-picker").datepicker({changeMonth:!0,changeYear:!0,defaultDate:"",dateFormat:"yy-mm-dd",numberOfMonths:1,minDate:"-15Y",maxDate:"+15Y"})},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):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 F=JSON.stringify(d);else if("radio"==o)F=d[0];else F=u.val();var l=s[n];l=l.replace("[]","");var f={value:F,field_type:u.eq(0).attr("id").replace("ur-input-type-",""),label:u.eq(0).attr("data-label"),field_name:l};t.push(f)}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=r.attr("id").replace("ur-input-type-",""),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="",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(t){if(a.valid()){if(a.find(".user-registration-password-strength").length>0){var i=a.find(".user-registration-password-strength").attr("data-current-strength"),n=a.find(".user-registration-password-strength").attr("data-min-strength");if(parseInt(i,0)<parseInt(n,0))return!1}t.preventDefault();var u;try{u=JSON.stringify(s.get_form_data())}catch(l){u=""}var o=0;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());var d="0";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,form_id:o,ur_frontend_form_nonce:d};if(e(document).trigger("user_registration_frontend_before_form_submit",[F,a]),"undefined"!=typeof ur_google_recaptcha_code&&"1"===ur_google_recaptcha_code.is_captcha_enable){if(0===a.find("#g-recaptcha-response").val().length)return void s.show_message("<p>"+r.captcha_error+"</p>","error",a);grecaptcha.reset()}a.find(".ur-submit-button").find("span").addClass("ur-front-spinner"),e.ajax({url:user_registration_params.ajax_url,data:F,type:"POST",async:!0,beforeSend:function(){},complete:function(t){a.find(".ur-submit-button").find("span").removeClass("ur-front-spinner");var i=e('<ul class=""/>'),n="error";try{var u=e.parseJSON(t.responseText);"undefined"!=typeof u.success&&!0===u.success&&(n="message"),"object"==typeof u.data.message&&e.each(u.data.message,function(){e("<li/>").text(this).appendTo(i)}),"message"===n&&(e(".user-registration-password-hint").remove(),e(".user-registration-password-strength").remove(),"admin_approval"==user_registration_params.login_option?i.append("<li>"+r.user_under_approval+"</li>"):"email_confirmation"==user_registration_params.login_option?i.append("<li>"+r.user_email_pending+"</li>"):i.append("<li>"+r.user_successfully_saved+"</li>"),a[0].reset(),""!==user_registration_params.redirect_url?window.setTimeout(function(){window.location=user_registration_params.redirect_url},1e3):"undefined"!=typeof u.data.auto_login&&u.data.auto_login&&location.reload())}catch(o){i.append("<li>"+o.message+"</li>")}s.show_message(i,n,a),e(document).trigger("user_registration_frontend_after_ajax_complete",[t.responseText,n,a])}})}})}};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("ur-date").attr("type","text").attr("placeholder","yy-mm-dd").datepicker({dateFormat:"yy-mm-dd",changeMonth:!0,changeYear:!0,yearRange:"1901:2099"})})}(jQuery);var google_recaptcha_user_registration,onloadURCallback=function(){google_recaptcha_user_registration=grecaptcha.render("node_recaptcha",{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/inputmask/jquery.inputmask.bundle.js
ADDED
@@ -0,0 +1,2403 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
* jquery.inputmask.bundle.js
|
3 |
+
* https://github.com/RobinHerbots/Inputmask
|
4 |
+
* Copyright (c) 2010 - 2018 Robin Herbots
|
5 |
+
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
|
6 |
+
* Version: 4.0.0-beta.58
|
7 |
+
*/
|
8 |
+
|
9 |
+
!function(modules) {
|
10 |
+
var installedModules = {};
|
11 |
+
function __webpack_require__(moduleId) {
|
12 |
+
if (installedModules[moduleId]) return installedModules[moduleId].exports;
|
13 |
+
var module = installedModules[moduleId] = {
|
14 |
+
i: moduleId,
|
15 |
+
l: !1,
|
16 |
+
exports: {}
|
17 |
+
};
|
18 |
+
return modules[moduleId].call(module.exports, module, module.exports, __webpack_require__),
|
19 |
+
module.l = !0, module.exports;
|
20 |
+
}
|
21 |
+
__webpack_require__.m = modules, __webpack_require__.c = installedModules, __webpack_require__.d = function(exports, name, getter) {
|
22 |
+
__webpack_require__.o(exports, name) || Object.defineProperty(exports, name, {
|
23 |
+
configurable: !1,
|
24 |
+
enumerable: !0,
|
25 |
+
get: getter
|
26 |
+
});
|
27 |
+
}, __webpack_require__.n = function(module) {
|
28 |
+
var getter = module && module.__esModule ? function() {
|
29 |
+
return module.default;
|
30 |
+
} : function() {
|
31 |
+
return module;
|
32 |
+
};
|
33 |
+
return __webpack_require__.d(getter, "a", getter), getter;
|
34 |
+
}, __webpack_require__.o = function(object, property) {
|
35 |
+
return Object.prototype.hasOwnProperty.call(object, property);
|
36 |
+
}, __webpack_require__.p = "", __webpack_require__(__webpack_require__.s = 3);
|
37 |
+
}([ function(module, exports, __webpack_require__) {
|
38 |
+
"use strict";
|
39 |
+
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__, factory;
|
40 |
+
"function" == typeof Symbol && Symbol.iterator;
|
41 |
+
factory = function($) {
|
42 |
+
return $;
|
43 |
+
}, __WEBPACK_AMD_DEFINE_ARRAY__ = [ __webpack_require__(2) ], void 0 === (__WEBPACK_AMD_DEFINE_RESULT__ = "function" == typeof (__WEBPACK_AMD_DEFINE_FACTORY__ = factory) ? __WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__) : __WEBPACK_AMD_DEFINE_FACTORY__) || (module.exports = __WEBPACK_AMD_DEFINE_RESULT__);
|
44 |
+
}, function(module, exports, __webpack_require__) {
|
45 |
+
"use strict";
|
46 |
+
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__, factory, _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj) {
|
47 |
+
return typeof obj;
|
48 |
+
} : function(obj) {
|
49 |
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
50 |
+
};
|
51 |
+
factory = function($, window, document, undefined) {
|
52 |
+
var ua = navigator.userAgent, mobile = isInputEventSupported("touchstart"), iemobile = /iemobile/i.test(ua), iphone = /iphone/i.test(ua) && !iemobile;
|
53 |
+
function Inputmask(alias, options, internal) {
|
54 |
+
if (!(this instanceof Inputmask)) return new Inputmask(alias, options, internal);
|
55 |
+
this.el = undefined, this.events = {}, this.maskset = undefined, this.refreshValue = !1,
|
56 |
+
!0 !== internal && ($.isPlainObject(alias) ? options = alias : (options = options || {},
|
57 |
+
alias && (options.alias = alias)), this.opts = $.extend(!0, {}, this.defaults, options),
|
58 |
+
this.noMasksCache = options && options.definitions !== undefined, this.userOptions = options || {},
|
59 |
+
this.isRTL = this.opts.numericInput, resolveAlias(this.opts.alias, options, this.opts));
|
60 |
+
}
|
61 |
+
function resolveAlias(aliasStr, options, opts) {
|
62 |
+
var aliasDefinition = Inputmask.prototype.aliases[aliasStr];
|
63 |
+
return aliasDefinition ? (aliasDefinition.alias && resolveAlias(aliasDefinition.alias, undefined, opts),
|
64 |
+
$.extend(!0, opts, aliasDefinition), $.extend(!0, opts, options), !0) : (null === opts.mask && (opts.mask = aliasStr),
|
65 |
+
!1);
|
66 |
+
}
|
67 |
+
function generateMaskSet(opts, nocache) {
|
68 |
+
function generateMask(mask, metadata, opts) {
|
69 |
+
var regexMask = !1;
|
70 |
+
if (null !== mask && "" !== mask || ((regexMask = null !== opts.regex) ? mask = (mask = opts.regex).replace(/^(\^)(.*)(\$)$/, "$2") : (regexMask = !0,
|
71 |
+
mask = ".*")), 1 === mask.length && !1 === opts.greedy && 0 !== opts.repeat && (opts.placeholder = ""),
|
72 |
+
opts.repeat > 0 || "*" === opts.repeat || "+" === opts.repeat) {
|
73 |
+
var repeatStart = "*" === opts.repeat ? 0 : "+" === opts.repeat ? 1 : opts.repeat;
|
74 |
+
mask = opts.groupmarker[0] + mask + opts.groupmarker[1] + opts.quantifiermarker[0] + repeatStart + "," + opts.repeat + opts.quantifiermarker[1];
|
75 |
+
}
|
76 |
+
var masksetDefinition, maskdefKey = regexMask ? "regex_" + opts.regex : opts.numericInput ? mask.split("").reverse().join("") : mask;
|
77 |
+
return Inputmask.prototype.masksCache[maskdefKey] === undefined || !0 === nocache ? (masksetDefinition = {
|
78 |
+
mask: mask,
|
79 |
+
maskToken: Inputmask.prototype.analyseMask(mask, regexMask, opts),
|
80 |
+
validPositions: {},
|
81 |
+
_buffer: undefined,
|
82 |
+
buffer: undefined,
|
83 |
+
tests: {},
|
84 |
+
excludes: {},
|
85 |
+
metadata: metadata,
|
86 |
+
maskLength: undefined
|
87 |
+
}, !0 !== nocache && (Inputmask.prototype.masksCache[maskdefKey] = masksetDefinition,
|
88 |
+
masksetDefinition = $.extend(!0, {}, Inputmask.prototype.masksCache[maskdefKey]))) : masksetDefinition = $.extend(!0, {}, Inputmask.prototype.masksCache[maskdefKey]),
|
89 |
+
masksetDefinition;
|
90 |
+
}
|
91 |
+
if ($.isFunction(opts.mask) && (opts.mask = opts.mask(opts)), $.isArray(opts.mask)) {
|
92 |
+
if (opts.mask.length > 1) {
|
93 |
+
if (null === opts.keepStatic) {
|
94 |
+
opts.keepStatic = "auto";
|
95 |
+
for (var i = 0; i < opts.mask.length; i++) if (opts.mask[i].charAt(0) !== opts.mask[0].charAt(0)) {
|
96 |
+
opts.keepStatic = !0;
|
97 |
+
break;
|
98 |
+
}
|
99 |
+
}
|
100 |
+
var altMask = opts.groupmarker[0];
|
101 |
+
return $.each(opts.isRTL ? opts.mask.reverse() : opts.mask, function(ndx, msk) {
|
102 |
+
altMask.length > 1 && (altMask += opts.groupmarker[1] + opts.alternatormarker + opts.groupmarker[0]),
|
103 |
+
msk.mask === undefined || $.isFunction(msk.mask) ? altMask += msk : altMask += msk.mask;
|
104 |
+
}), generateMask(altMask += opts.groupmarker[1], opts.mask, opts);
|
105 |
+
}
|
106 |
+
opts.mask = opts.mask.pop();
|
107 |
+
}
|
108 |
+
return opts.mask && opts.mask.mask !== undefined && !$.isFunction(opts.mask.mask) ? generateMask(opts.mask.mask, opts.mask, opts) : generateMask(opts.mask, opts.mask, opts);
|
109 |
+
}
|
110 |
+
function isInputEventSupported(eventName) {
|
111 |
+
var el = document.createElement("input"), evName = "on" + eventName, isSupported = evName in el;
|
112 |
+
return isSupported || (el.setAttribute(evName, "return;"), isSupported = "function" == typeof el[evName]),
|
113 |
+
el = null, isSupported;
|
114 |
+
}
|
115 |
+
function maskScope(actionObj, maskset, opts) {
|
116 |
+
maskset = maskset || this.maskset, opts = opts || this.opts;
|
117 |
+
var undoValue, $el, maxLength, colorMask, inputmask = this, el = this.el, isRTL = this.isRTL, skipKeyPressEvent = !1, skipInputEvent = !1, ignorable = !1, mouseEnter = !1;
|
118 |
+
function getMaskTemplate(baseOnInput, minimalPos, includeMode, noJit, clearOptionalTail) {
|
119 |
+
var greedy = opts.greedy;
|
120 |
+
clearOptionalTail && (opts.greedy = !1), minimalPos = minimalPos || 0;
|
121 |
+
var ndxIntlzr, test, testPos, maskTemplate = [], pos = 0, lvp = getLastValidPosition();
|
122 |
+
do {
|
123 |
+
if (!0 === baseOnInput && getMaskSet().validPositions[pos]) test = (testPos = clearOptionalTail && !0 === getMaskSet().validPositions[pos].match.optionality && getMaskSet().validPositions[pos + 1] === undefined && (!0 === getMaskSet().validPositions[pos].generatedInput || getMaskSet().validPositions[pos].input == opts.skipOptionalPartCharacter && pos > 0) ? determineTestTemplate(pos, getTests(pos, ndxIntlzr, pos - 1)) : getMaskSet().validPositions[pos]).match,
|
124 |
+
ndxIntlzr = testPos.locator.slice(), maskTemplate.push(!0 === includeMode ? testPos.input : !1 === includeMode ? test.nativeDef : getPlaceholder(pos, test)); else {
|
125 |
+
test = (testPos = getTestTemplate(pos, ndxIntlzr, pos - 1)).match, ndxIntlzr = testPos.locator.slice();
|
126 |
+
var jitMasking = !0 !== noJit && (!1 !== opts.jitMasking ? opts.jitMasking : test.jit);
|
127 |
+
(!1 === jitMasking || jitMasking === undefined || pos < lvp || "number" == typeof jitMasking && isFinite(jitMasking) && jitMasking > pos) && maskTemplate.push(!1 === includeMode ? test.nativeDef : getPlaceholder(pos, test));
|
128 |
+
}
|
129 |
+
"auto" === opts.keepStatic && test.newBlockMarker && null !== test.fn && (opts.keepStatic = pos - 1),
|
130 |
+
pos++;
|
131 |
+
} while ((maxLength === undefined || pos < maxLength) && (null !== test.fn || "" !== test.def) || minimalPos > pos);
|
132 |
+
return "" === maskTemplate[maskTemplate.length - 1] && maskTemplate.pop(), !1 === includeMode && getMaskSet().maskLength !== undefined || (getMaskSet().maskLength = pos - 1),
|
133 |
+
opts.greedy = greedy, maskTemplate;
|
134 |
+
}
|
135 |
+
function getMaskSet() {
|
136 |
+
return maskset;
|
137 |
+
}
|
138 |
+
function resetMaskSet(soft) {
|
139 |
+
var maskset = getMaskSet();
|
140 |
+
maskset.buffer = undefined, !0 !== soft && (maskset.validPositions = {}, maskset.p = 0);
|
141 |
+
}
|
142 |
+
function getLastValidPosition(closestTo, strict, validPositions) {
|
143 |
+
var before = -1, after = -1, valids = validPositions || getMaskSet().validPositions;
|
144 |
+
for (var posNdx in closestTo === undefined && (closestTo = -1), valids) {
|
145 |
+
var psNdx = parseInt(posNdx);
|
146 |
+
valids[psNdx] && (strict || !0 !== valids[psNdx].generatedInput) && (psNdx <= closestTo && (before = psNdx),
|
147 |
+
psNdx >= closestTo && (after = psNdx));
|
148 |
+
}
|
149 |
+
return -1 === before || before == closestTo ? after : -1 == after ? before : closestTo - before < after - closestTo ? before : after;
|
150 |
+
}
|
151 |
+
function getDecisionTaker(tst) {
|
152 |
+
var decisionTaker = tst.locator[tst.alternation];
|
153 |
+
return "string" == typeof decisionTaker && decisionTaker.length > 0 && (decisionTaker = decisionTaker.split(",")[0]),
|
154 |
+
decisionTaker !== undefined ? decisionTaker.toString() : "";
|
155 |
+
}
|
156 |
+
function getLocator(tst, align) {
|
157 |
+
var locator = (tst.alternation != undefined ? tst.mloc[getDecisionTaker(tst)] : tst.locator).join("");
|
158 |
+
if ("" !== locator) for (;locator.length < align; ) locator += "0";
|
159 |
+
return locator;
|
160 |
+
}
|
161 |
+
function determineTestTemplate(pos, tests) {
|
162 |
+
for (var tstLocator, closest, bestMatch, targetLocator = getLocator(getTest(pos = pos > 0 ? pos - 1 : 0)), ndx = 0; ndx < tests.length; ndx++) {
|
163 |
+
var tst = tests[ndx];
|
164 |
+
tstLocator = getLocator(tst, targetLocator.length);
|
165 |
+
var distance = Math.abs(tstLocator - targetLocator);
|
166 |
+
(closest === undefined || "" !== tstLocator && distance < closest || bestMatch && bestMatch.match.optionality && "master" === bestMatch.match.newBlockMarker && (!tst.match.optionality || !tst.match.newBlockMarker) || bestMatch && bestMatch.match.optionalQuantifier && !tst.match.optionalQuantifier) && (closest = distance,
|
167 |
+
bestMatch = tst);
|
168 |
+
}
|
169 |
+
return bestMatch;
|
170 |
+
}
|
171 |
+
function getTestTemplate(pos, ndxIntlzr, tstPs) {
|
172 |
+
return getMaskSet().validPositions[pos] || determineTestTemplate(pos, getTests(pos, ndxIntlzr ? ndxIntlzr.slice() : ndxIntlzr, tstPs));
|
173 |
+
}
|
174 |
+
function getTest(pos, tests) {
|
175 |
+
return getMaskSet().validPositions[pos] ? getMaskSet().validPositions[pos] : (tests || getTests(pos))[0];
|
176 |
+
}
|
177 |
+
function positionCanMatchDefinition(pos, def) {
|
178 |
+
for (var valid = !1, tests = getTests(pos), tndx = 0; tndx < tests.length; tndx++) if (tests[tndx].match && tests[tndx].match.def === def) {
|
179 |
+
valid = !0;
|
180 |
+
break;
|
181 |
+
}
|
182 |
+
return valid;
|
183 |
+
}
|
184 |
+
function getTests(pos, ndxIntlzr, tstPs) {
|
185 |
+
var latestMatch, maskTokens = getMaskSet().maskToken, testPos = ndxIntlzr ? tstPs : 0, ndxInitializer = ndxIntlzr ? ndxIntlzr.slice() : [ 0 ], matches = [], insertStop = !1, cacheDependency = ndxIntlzr ? ndxIntlzr.join("") : "";
|
186 |
+
function resolveTestFromToken(maskToken, ndxInitializer, loopNdx, quantifierRecurse) {
|
187 |
+
function handleMatch(match, loopNdx, quantifierRecurse) {
|
188 |
+
function isFirstMatch(latestMatch, tokenGroup) {
|
189 |
+
var firstMatch = 0 === $.inArray(latestMatch, tokenGroup.matches);
|
190 |
+
return firstMatch || $.each(tokenGroup.matches, function(ndx, match) {
|
191 |
+
if (!0 === match.isQuantifier ? firstMatch = isFirstMatch(latestMatch, tokenGroup.matches[ndx - 1]) : !0 === match.isOptional ? firstMatch = isFirstMatch(latestMatch, match) : !0 === match.isAlternate && (firstMatch = isFirstMatch(latestMatch, match)),
|
192 |
+
firstMatch) return !1;
|
193 |
+
}), firstMatch;
|
194 |
+
}
|
195 |
+
function resolveNdxInitializer(pos, alternateNdx, targetAlternation) {
|
196 |
+
var bestMatch, indexPos;
|
197 |
+
if ((getMaskSet().tests[pos] || getMaskSet().validPositions[pos]) && $.each(getMaskSet().tests[pos] || [ getMaskSet().validPositions[pos] ], function(ndx, lmnt) {
|
198 |
+
if (lmnt.mloc[alternateNdx]) return bestMatch = lmnt, !1;
|
199 |
+
var alternation = targetAlternation !== undefined ? targetAlternation : lmnt.alternation, ndxPos = lmnt.locator[alternation] !== undefined ? lmnt.locator[alternation].toString().indexOf(alternateNdx) : -1;
|
200 |
+
(indexPos === undefined || ndxPos < indexPos) && -1 !== ndxPos && (bestMatch = lmnt,
|
201 |
+
indexPos = ndxPos);
|
202 |
+
}), bestMatch) {
|
203 |
+
var bestMatchAltIndex = bestMatch.locator[bestMatch.alternation];
|
204 |
+
return (bestMatch.mloc[alternateNdx] || bestMatch.mloc[bestMatchAltIndex] || bestMatch.locator).slice((targetAlternation !== undefined ? targetAlternation : bestMatch.alternation) + 1);
|
205 |
+
}
|
206 |
+
return targetAlternation !== undefined ? resolveNdxInitializer(pos, alternateNdx) : undefined;
|
207 |
+
}
|
208 |
+
function isSubsetOf(source, target) {
|
209 |
+
function expand(pattern) {
|
210 |
+
for (var start, end, expanded = [], i = 0, l = pattern.length; i < l; i++) if ("-" === pattern.charAt(i)) for (end = pattern.charCodeAt(i + 1); ++start < end; ) expanded.push(String.fromCharCode(start)); else start = pattern.charCodeAt(i),
|
211 |
+
expanded.push(pattern.charAt(i));
|
212 |
+
return expanded.join("");
|
213 |
+
}
|
214 |
+
return opts.regex && null !== source.match.fn && null !== target.match.fn ? -1 !== expand(target.match.def.replace(/[\[\]]/g, "")).indexOf(expand(source.match.def.replace(/[\[\]]/g, ""))) : source.match.def === target.match.nativeDef;
|
215 |
+
}
|
216 |
+
function setMergeLocators(targetMatch, altMatch) {
|
217 |
+
if (altMatch === undefined || targetMatch.alternation === altMatch.alternation && -1 === targetMatch.locator[targetMatch.alternation].toString().indexOf(altMatch.locator[altMatch.alternation])) {
|
218 |
+
targetMatch.mloc = targetMatch.mloc || {};
|
219 |
+
var locNdx = targetMatch.locator[targetMatch.alternation];
|
220 |
+
if (locNdx !== undefined) {
|
221 |
+
if ("string" == typeof locNdx && (locNdx = locNdx.split(",")[0]), targetMatch.mloc[locNdx] === undefined && (targetMatch.mloc[locNdx] = targetMatch.locator.slice()),
|
222 |
+
altMatch !== undefined) {
|
223 |
+
for (var ndx in altMatch.mloc) "string" == typeof ndx && (ndx = ndx.split(",")[0]),
|
224 |
+
targetMatch.mloc[ndx] === undefined && (targetMatch.mloc[ndx] = altMatch.mloc[ndx]);
|
225 |
+
targetMatch.locator[targetMatch.alternation] = Object.keys(targetMatch.mloc).join(",");
|
226 |
+
}
|
227 |
+
return !0;
|
228 |
+
}
|
229 |
+
targetMatch.alternation = undefined;
|
230 |
+
}
|
231 |
+
return !1;
|
232 |
+
}
|
233 |
+
if (testPos > 5e3) throw "Inputmask: There is probably an error in your mask definition or in the code. Create an issue on github with an example of the mask you are using. " + getMaskSet().mask;
|
234 |
+
if (testPos === pos && match.matches === undefined) return matches.push({
|
235 |
+
match: match,
|
236 |
+
locator: loopNdx.reverse(),
|
237 |
+
cd: cacheDependency,
|
238 |
+
mloc: {}
|
239 |
+
}), !0;
|
240 |
+
if (match.matches !== undefined) {
|
241 |
+
if (match.isGroup && quantifierRecurse !== match) {
|
242 |
+
if (match = handleMatch(maskToken.matches[$.inArray(match, maskToken.matches) + 1], loopNdx, quantifierRecurse)) return !0;
|
243 |
+
} else if (match.isOptional) {
|
244 |
+
var optionalToken = match;
|
245 |
+
if (match = resolveTestFromToken(match, ndxInitializer, loopNdx, quantifierRecurse)) {
|
246 |
+
if ($.each(matches, function(ndx, mtch) {
|
247 |
+
mtch.match.optionality = !0;
|
248 |
+
}), latestMatch = matches[matches.length - 1].match, quantifierRecurse !== undefined || !isFirstMatch(latestMatch, optionalToken)) return !0;
|
249 |
+
insertStop = !0, testPos = pos;
|
250 |
+
}
|
251 |
+
} else if (match.isAlternator) {
|
252 |
+
var maltMatches, alternateToken = match, malternateMatches = [], currentMatches = matches.slice(), loopNdxCnt = loopNdx.length, altIndex = ndxInitializer.length > 0 ? ndxInitializer.shift() : -1;
|
253 |
+
if (-1 === altIndex || "string" == typeof altIndex) {
|
254 |
+
var amndx, currentPos = testPos, ndxInitializerClone = ndxInitializer.slice(), altIndexArr = [];
|
255 |
+
if ("string" == typeof altIndex) altIndexArr = altIndex.split(","); else for (amndx = 0; amndx < alternateToken.matches.length; amndx++) altIndexArr.push(amndx.toString());
|
256 |
+
if (getMaskSet().excludes[pos]) {
|
257 |
+
for (var altIndexArrClone = altIndexArr.slice(), i = 0, el = getMaskSet().excludes[pos].length; i < el; i++) altIndexArr.splice(altIndexArr.indexOf(getMaskSet().excludes[pos][i].toString()), 1);
|
258 |
+
0 === altIndexArr.length && (getMaskSet().excludes[pos] = undefined, altIndexArr = altIndexArrClone);
|
259 |
+
}
|
260 |
+
(!0 === opts.keepStatic || isFinite(parseInt(opts.keepStatic)) && currentPos >= opts.keepStatic) && (altIndexArr = altIndexArr.slice(0, 1));
|
261 |
+
for (var unMatchedAlternation = !1, ndx = 0; ndx < altIndexArr.length; ndx++) {
|
262 |
+
amndx = parseInt(altIndexArr[ndx]), matches = [], ndxInitializer = "string" == typeof altIndex && resolveNdxInitializer(testPos, amndx, loopNdxCnt) || ndxInitializerClone.slice(),
|
263 |
+
alternateToken.matches[amndx] && handleMatch(alternateToken.matches[amndx], [ amndx ].concat(loopNdx), quantifierRecurse) ? match = !0 : 0 === ndx && (unMatchedAlternation = !0),
|
264 |
+
maltMatches = matches.slice(), testPos = currentPos, matches = [];
|
265 |
+
for (var ndx1 = 0; ndx1 < maltMatches.length; ndx1++) {
|
266 |
+
var altMatch = maltMatches[ndx1], dropMatch = !1;
|
267 |
+
altMatch.match.jit = altMatch.match.jit || unMatchedAlternation, altMatch.alternation = altMatch.alternation || loopNdxCnt,
|
268 |
+
setMergeLocators(altMatch);
|
269 |
+
for (var ndx2 = 0; ndx2 < malternateMatches.length; ndx2++) {
|
270 |
+
var altMatch2 = malternateMatches[ndx2];
|
271 |
+
if ("string" != typeof altIndex || altMatch.alternation !== undefined && -1 !== $.inArray(altMatch.locator[altMatch.alternation].toString(), altIndexArr)) {
|
272 |
+
if (altMatch.match.nativeDef === altMatch2.match.nativeDef) {
|
273 |
+
dropMatch = !0, setMergeLocators(altMatch2, altMatch);
|
274 |
+
break;
|
275 |
+
}
|
276 |
+
if (isSubsetOf(altMatch, altMatch2)) {
|
277 |
+
setMergeLocators(altMatch, altMatch2) && (dropMatch = !0, malternateMatches.splice(malternateMatches.indexOf(altMatch2), 0, altMatch));
|
278 |
+
break;
|
279 |
+
}
|
280 |
+
if (isSubsetOf(altMatch2, altMatch)) {
|
281 |
+
setMergeLocators(altMatch2, altMatch);
|
282 |
+
break;
|
283 |
+
}
|
284 |
+
if (target = altMatch2, null === (source = altMatch).match.fn && null !== target.match.fn && target.match.fn.test(source.match.def, getMaskSet(), pos, !1, opts, !1)) {
|
285 |
+
setMergeLocators(altMatch, altMatch2) && (dropMatch = !0, malternateMatches.splice(malternateMatches.indexOf(altMatch2), 0, altMatch));
|
286 |
+
break;
|
287 |
+
}
|
288 |
+
}
|
289 |
+
}
|
290 |
+
dropMatch || malternateMatches.push(altMatch);
|
291 |
+
}
|
292 |
+
}
|
293 |
+
matches = currentMatches.concat(malternateMatches), testPos = pos, insertStop = matches.length > 0,
|
294 |
+
match = malternateMatches.length > 0, ndxInitializer = ndxInitializerClone.slice();
|
295 |
+
} else match = handleMatch(alternateToken.matches[altIndex] || maskToken.matches[altIndex], [ altIndex ].concat(loopNdx), quantifierRecurse);
|
296 |
+
if (match) return !0;
|
297 |
+
} else if (match.isQuantifier && quantifierRecurse !== maskToken.matches[$.inArray(match, maskToken.matches) - 1]) for (var qt = match, qndx = ndxInitializer.length > 0 ? ndxInitializer.shift() : 0; qndx < (isNaN(qt.quantifier.max) ? qndx + 1 : qt.quantifier.max) && testPos <= pos; qndx++) {
|
298 |
+
var tokenGroup = maskToken.matches[$.inArray(qt, maskToken.matches) - 1];
|
299 |
+
if (match = handleMatch(tokenGroup, [ qndx ].concat(loopNdx), tokenGroup)) {
|
300 |
+
if ((latestMatch = matches[matches.length - 1].match).optionalQuantifier = qndx > qt.quantifier.min - 1,
|
301 |
+
latestMatch.jit = qndx + tokenGroup.matches.indexOf(latestMatch) >= qt.quantifier.jit,
|
302 |
+
isFirstMatch(latestMatch, tokenGroup) && qndx > qt.quantifier.min - 1) {
|
303 |
+
insertStop = !0, testPos = pos;
|
304 |
+
break;
|
305 |
+
}
|
306 |
+
if (qt.quantifier.jit !== undefined && isNaN(qt.quantifier.max) && latestMatch.optionalQuantifier && getMaskSet().validPositions[pos - 1] === undefined) {
|
307 |
+
matches.pop(), insertStop = !0, testPos = pos, cacheDependency = undefined;
|
308 |
+
break;
|
309 |
+
}
|
310 |
+
return !0;
|
311 |
+
}
|
312 |
+
} else if (match = resolveTestFromToken(match, ndxInitializer, loopNdx, quantifierRecurse)) return !0;
|
313 |
+
} else testPos++;
|
314 |
+
var source, target;
|
315 |
+
}
|
316 |
+
for (var tndx = ndxInitializer.length > 0 ? ndxInitializer.shift() : 0; tndx < maskToken.matches.length; tndx++) if (!0 !== maskToken.matches[tndx].isQuantifier) {
|
317 |
+
var match = handleMatch(maskToken.matches[tndx], [ tndx ].concat(loopNdx), quantifierRecurse);
|
318 |
+
if (match && testPos === pos) return match;
|
319 |
+
if (testPos > pos) break;
|
320 |
+
}
|
321 |
+
}
|
322 |
+
if (pos > -1) {
|
323 |
+
if (ndxIntlzr === undefined) {
|
324 |
+
for (var test, previousPos = pos - 1; (test = getMaskSet().validPositions[previousPos] || getMaskSet().tests[previousPos]) === undefined && previousPos > -1; ) previousPos--;
|
325 |
+
test !== undefined && previousPos > -1 && (ndxInitializer = function(pos, tests) {
|
326 |
+
var locator = [];
|
327 |
+
return $.isArray(tests) || (tests = [ tests ]), tests.length > 0 && (tests[0].alternation === undefined ? 0 === (locator = determineTestTemplate(pos, tests.slice()).locator.slice()).length && (locator = tests[0].locator.slice()) : $.each(tests, function(ndx, tst) {
|
328 |
+
if ("" !== tst.def) if (0 === locator.length) locator = tst.locator.slice(); else for (var i = 0; i < locator.length; i++) tst.locator[i] && -1 === locator[i].toString().indexOf(tst.locator[i]) && (locator[i] += "," + tst.locator[i]);
|
329 |
+
})), locator;
|
330 |
+
}(previousPos, test), cacheDependency = ndxInitializer.join(""), testPos = previousPos);
|
331 |
+
}
|
332 |
+
if (getMaskSet().tests[pos] && getMaskSet().tests[pos][0].cd === cacheDependency) return getMaskSet().tests[pos];
|
333 |
+
for (var mtndx = ndxInitializer.shift(); mtndx < maskTokens.length; mtndx++) {
|
334 |
+
if (resolveTestFromToken(maskTokens[mtndx], ndxInitializer, [ mtndx ]) && testPos === pos || testPos > pos) break;
|
335 |
+
}
|
336 |
+
}
|
337 |
+
return (0 === matches.length || insertStop) && matches.push({
|
338 |
+
match: {
|
339 |
+
fn: null,
|
340 |
+
optionality: !1,
|
341 |
+
casing: null,
|
342 |
+
def: "",
|
343 |
+
placeholder: ""
|
344 |
+
},
|
345 |
+
locator: [],
|
346 |
+
mloc: {},
|
347 |
+
cd: cacheDependency
|
348 |
+
}), ndxIntlzr !== undefined && getMaskSet().tests[pos] ? $.extend(!0, [], matches) : (getMaskSet().tests[pos] = $.extend(!0, [], matches),
|
349 |
+
getMaskSet().tests[pos]);
|
350 |
+
}
|
351 |
+
function getBufferTemplate() {
|
352 |
+
return getMaskSet()._buffer === undefined && (getMaskSet()._buffer = getMaskTemplate(!1, 1),
|
353 |
+
getMaskSet().buffer === undefined && (getMaskSet().buffer = getMaskSet()._buffer.slice())),
|
354 |
+
getMaskSet()._buffer;
|
355 |
+
}
|
356 |
+
function getBuffer(noCache) {
|
357 |
+
return getMaskSet().buffer !== undefined && !0 !== noCache || (getMaskSet().buffer = getMaskTemplate(!0, getLastValidPosition(), !0)),
|
358 |
+
getMaskSet().buffer;
|
359 |
+
}
|
360 |
+
function refreshFromBuffer(start, end, buffer) {
|
361 |
+
var i, p;
|
362 |
+
if (!0 === start) resetMaskSet(), start = 0, end = buffer.length; else for (i = start; i < end; i++) delete getMaskSet().validPositions[i];
|
363 |
+
for (p = start, i = start; i < end; i++) if (resetMaskSet(!0), buffer[i] !== opts.skipOptionalPartCharacter) {
|
364 |
+
var valResult = isValid(p, buffer[i], !0, !0);
|
365 |
+
!1 !== valResult && (resetMaskSet(!0), p = valResult.caret !== undefined ? valResult.caret : valResult.pos + 1);
|
366 |
+
}
|
367 |
+
}
|
368 |
+
function checkAlternationMatch(altArr1, altArr2, na) {
|
369 |
+
for (var naNdx, altArrC = opts.greedy ? altArr2 : altArr2.slice(0, 1), isMatch = !1, naArr = na !== undefined ? na.split(",") : [], i = 0; i < naArr.length; i++) -1 !== (naNdx = altArr1.indexOf(naArr[i])) && altArr1.splice(naNdx, 1);
|
370 |
+
for (var alndx = 0; alndx < altArr1.length; alndx++) if (-1 !== $.inArray(altArr1[alndx], altArrC)) {
|
371 |
+
isMatch = !0;
|
372 |
+
break;
|
373 |
+
}
|
374 |
+
return isMatch;
|
375 |
+
}
|
376 |
+
function alternate(pos, c, strict, fromSetValid, rAltPos) {
|
377 |
+
var lastAlt, alternation, altPos, prevAltPos, i, validPos, decisionPos, validPsClone = $.extend(!0, {}, getMaskSet().validPositions), isValidRslt = !1, lAltPos = rAltPos !== undefined ? rAltPos : getLastValidPosition();
|
378 |
+
if (-1 === lAltPos && rAltPos === undefined) alternation = (prevAltPos = getTest(lastAlt = 0)).alternation; else for (;lAltPos >= 0; lAltPos--) if ((altPos = getMaskSet().validPositions[lAltPos]) && altPos.alternation !== undefined) {
|
379 |
+
if (prevAltPos && prevAltPos.locator[altPos.alternation] !== altPos.locator[altPos.alternation]) break;
|
380 |
+
lastAlt = lAltPos, alternation = getMaskSet().validPositions[lastAlt].alternation,
|
381 |
+
prevAltPos = altPos;
|
382 |
+
}
|
383 |
+
if (alternation !== undefined) {
|
384 |
+
decisionPos = parseInt(lastAlt), getMaskSet().excludes[decisionPos] = getMaskSet().excludes[decisionPos] || [],
|
385 |
+
!0 !== pos && getMaskSet().excludes[decisionPos].push(getDecisionTaker(prevAltPos));
|
386 |
+
var validInputsClone = [], staticInputsBeforePos = 0;
|
387 |
+
for (i = decisionPos; i < getLastValidPosition(undefined, !0) + 1; i++) (validPos = getMaskSet().validPositions[i]) && !0 !== validPos.generatedInput ? validInputsClone.push(validPos.input) : i < pos && staticInputsBeforePos++,
|
388 |
+
delete getMaskSet().validPositions[i];
|
389 |
+
for (;getMaskSet().excludes[decisionPos] && getMaskSet().excludes[decisionPos].length < 10; ) {
|
390 |
+
var posOffset = -1 * staticInputsBeforePos, validInputs = validInputsClone.slice();
|
391 |
+
for (getMaskSet().tests[decisionPos] = undefined, resetMaskSet(!0), isValidRslt = !0; validInputs.length > 0; ) {
|
392 |
+
var input = validInputs.shift();
|
393 |
+
if (!(isValidRslt = isValid(getLastValidPosition(undefined, !0) + 1, input, !1, fromSetValid, !0))) break;
|
394 |
+
}
|
395 |
+
if (isValidRslt && c !== undefined) {
|
396 |
+
var targetLvp = getLastValidPosition(pos) + 1;
|
397 |
+
for (i = decisionPos; i < getLastValidPosition() + 1; i++) ((validPos = getMaskSet().validPositions[i]) === undefined || null == validPos.match.fn) && i < pos + posOffset && posOffset++;
|
398 |
+
isValidRslt = isValid((pos += posOffset) > targetLvp ? targetLvp : pos, c, strict, fromSetValid, !0);
|
399 |
+
}
|
400 |
+
if (isValidRslt) break;
|
401 |
+
if (resetMaskSet(), prevAltPos = getTest(decisionPos), getMaskSet().validPositions = $.extend(!0, {}, validPsClone),
|
402 |
+
!getMaskSet().excludes[decisionPos]) {
|
403 |
+
isValidRslt = alternate(pos, c, strict, fromSetValid, decisionPos - 1);
|
404 |
+
break;
|
405 |
+
}
|
406 |
+
var decisionTaker = getDecisionTaker(prevAltPos);
|
407 |
+
if (-1 !== getMaskSet().excludes[decisionPos].indexOf(decisionTaker)) {
|
408 |
+
isValidRslt = alternate(pos, c, strict, fromSetValid, decisionPos - 1);
|
409 |
+
break;
|
410 |
+
}
|
411 |
+
for (getMaskSet().excludes[decisionPos].push(decisionTaker), i = decisionPos; i < getLastValidPosition(undefined, !0) + 1; i++) delete getMaskSet().validPositions[i];
|
412 |
+
}
|
413 |
+
}
|
414 |
+
return getMaskSet().excludes[decisionPos] = undefined, isValidRslt;
|
415 |
+
}
|
416 |
+
function isValid(pos, c, strict, fromSetValid, fromAlternate, validateOnly) {
|
417 |
+
function isSelection(posObj) {
|
418 |
+
return isRTL ? posObj.begin - posObj.end > 1 || posObj.begin - posObj.end == 1 : posObj.end - posObj.begin > 1 || posObj.end - posObj.begin == 1;
|
419 |
+
}
|
420 |
+
strict = !0 === strict;
|
421 |
+
var maskPos = pos;
|
422 |
+
function _isValid(position, c, strict) {
|
423 |
+
var rslt = !1;
|
424 |
+
return $.each(getTests(position), function(ndx, tst) {
|
425 |
+
var test = tst.match;
|
426 |
+
if (getBuffer(!0), !1 !== (rslt = null != test.fn ? test.fn.test(c, getMaskSet(), position, strict, opts, isSelection(pos)) : (c === test.def || c === opts.skipOptionalPartCharacter) && "" !== test.def && {
|
427 |
+
c: getPlaceholder(position, test, !0) || test.def,
|
428 |
+
pos: position
|
429 |
+
})) {
|
430 |
+
var elem = rslt.c !== undefined ? rslt.c : c, validatedPos = position;
|
431 |
+
return elem = elem === opts.skipOptionalPartCharacter && null === test.fn ? getPlaceholder(position, test, !0) || test.def : elem,
|
432 |
+
rslt.remove !== undefined && ($.isArray(rslt.remove) || (rslt.remove = [ rslt.remove ]),
|
433 |
+
$.each(rslt.remove.sort(function(a, b) {
|
434 |
+
return b - a;
|
435 |
+
}), function(ndx, lmnt) {
|
436 |
+
revalidateMask({
|
437 |
+
begin: lmnt,
|
438 |
+
end: lmnt + 1
|
439 |
+
});
|
440 |
+
})), rslt.insert !== undefined && ($.isArray(rslt.insert) || (rslt.insert = [ rslt.insert ]),
|
441 |
+
$.each(rslt.insert.sort(function(a, b) {
|
442 |
+
return a - b;
|
443 |
+
}), function(ndx, lmnt) {
|
444 |
+
isValid(lmnt.pos, lmnt.c, !0, fromSetValid);
|
445 |
+
})), !0 !== rslt && rslt.pos !== undefined && rslt.pos !== position && (validatedPos = rslt.pos),
|
446 |
+
!0 !== rslt && rslt.pos === undefined && rslt.c === undefined ? !1 : (revalidateMask(pos, $.extend({}, tst, {
|
447 |
+
input: function(elem, test, pos) {
|
448 |
+
switch (opts.casing || test.casing) {
|
449 |
+
case "upper":
|
450 |
+
elem = elem.toUpperCase();
|
451 |
+
break;
|
452 |
+
|
453 |
+
case "lower":
|
454 |
+
elem = elem.toLowerCase();
|
455 |
+
break;
|
456 |
+
|
457 |
+
case "title":
|
458 |
+
var posBefore = getMaskSet().validPositions[pos - 1];
|
459 |
+
elem = 0 === pos || posBefore && posBefore.input === String.fromCharCode(Inputmask.keyCode.SPACE) ? elem.toUpperCase() : elem.toLowerCase();
|
460 |
+
break;
|
461 |
+
|
462 |
+
default:
|
463 |
+
if ($.isFunction(opts.casing)) {
|
464 |
+
var args = Array.prototype.slice.call(arguments);
|
465 |
+
args.push(getMaskSet().validPositions), elem = opts.casing.apply(this, args);
|
466 |
+
}
|
467 |
+
}
|
468 |
+
return elem;
|
469 |
+
}(elem, test, validatedPos)
|
470 |
+
}), fromSetValid, validatedPos) || (rslt = !1), !1);
|
471 |
+
}
|
472 |
+
}), rslt;
|
473 |
+
}
|
474 |
+
pos.begin !== undefined && (maskPos = isRTL ? pos.end : pos.begin);
|
475 |
+
var result = !0, positionsClone = $.extend(!0, {}, getMaskSet().validPositions);
|
476 |
+
if ($.isFunction(opts.preValidation) && !strict && !0 !== fromSetValid && !0 !== validateOnly && (result = opts.preValidation(getBuffer(), maskPos, c, isSelection(pos), opts, getMaskSet())),
|
477 |
+
!0 === result) {
|
478 |
+
if (trackbackPositions(undefined, maskPos, !0), (maxLength === undefined || maskPos < maxLength) && (result = _isValid(maskPos, c, strict),
|
479 |
+
(!strict || !0 === fromSetValid) && !1 === result && !0 !== validateOnly)) {
|
480 |
+
var currentPosValid = getMaskSet().validPositions[maskPos];
|
481 |
+
if (!currentPosValid || null !== currentPosValid.match.fn || currentPosValid.match.def !== c && c !== opts.skipOptionalPartCharacter) {
|
482 |
+
if ((opts.insertMode || getMaskSet().validPositions[seekNext(maskPos)] === undefined) && !isMask(maskPos, !0)) for (var nPos = maskPos + 1, snPos = seekNext(maskPos); nPos <= snPos; nPos++) if (!1 !== (result = _isValid(nPos, c, strict))) {
|
483 |
+
result = trackbackPositions(maskPos, result.pos !== undefined ? result.pos : nPos) || result,
|
484 |
+
maskPos = nPos;
|
485 |
+
break;
|
486 |
+
}
|
487 |
+
} else result = {
|
488 |
+
caret: seekNext(maskPos)
|
489 |
+
};
|
490 |
+
}
|
491 |
+
!1 !== result || !1 === opts.keepStatic || null != opts.regex && !isComplete(getBuffer()) || strict || !0 === fromAlternate || (result = alternate(maskPos, c, strict, fromSetValid)),
|
492 |
+
!0 === result && (result = {
|
493 |
+
pos: maskPos
|
494 |
+
});
|
495 |
+
}
|
496 |
+
if ($.isFunction(opts.postValidation) && !1 !== result && !strict && !0 !== fromSetValid && !0 !== validateOnly) {
|
497 |
+
var postResult = opts.postValidation(getBuffer(!0), result, opts);
|
498 |
+
if (postResult !== undefined) {
|
499 |
+
if (postResult.refreshFromBuffer && postResult.buffer) {
|
500 |
+
var refresh = postResult.refreshFromBuffer;
|
501 |
+
refreshFromBuffer(!0 === refresh ? refresh : refresh.start, refresh.end, postResult.buffer);
|
502 |
+
}
|
503 |
+
result = !0 === postResult ? result : postResult;
|
504 |
+
}
|
505 |
+
}
|
506 |
+
return result && result.pos === undefined && (result.pos = maskPos), !1 !== result && !0 !== validateOnly || (resetMaskSet(!0),
|
507 |
+
getMaskSet().validPositions = $.extend(!0, {}, positionsClone)), result;
|
508 |
+
}
|
509 |
+
function trackbackPositions(originalPos, newPos, fillOnly) {
|
510 |
+
var result;
|
511 |
+
if (originalPos === undefined) for (originalPos = newPos - 1; originalPos > 0 && !getMaskSet().validPositions[originalPos]; originalPos--) ;
|
512 |
+
for (var ps = originalPos; ps < newPos; ps++) if (getMaskSet().validPositions[ps] === undefined && !isMask(ps, !0)) {
|
513 |
+
var vp = 0 == ps ? getTest(ps) : getMaskSet().validPositions[ps - 1];
|
514 |
+
if (vp) {
|
515 |
+
var tstLocator, targetLocator = getLocator(vp), tests = getTests(ps).slice(), closest = undefined, bestMatch = getTest(ps);
|
516 |
+
if ("" === tests[tests.length - 1].match.def && tests.pop(), $.each(tests, function(ndx, tst) {
|
517 |
+
tstLocator = getLocator(tst, targetLocator.length);
|
518 |
+
var distance = Math.abs(tstLocator - targetLocator);
|
519 |
+
(closest === undefined || distance < closest) && null === tst.match.fn && !0 !== tst.match.optionality && !0 !== tst.match.optionalQuantifier && (closest = distance,
|
520 |
+
bestMatch = tst);
|
521 |
+
}), (bestMatch = $.extend({}, bestMatch, {
|
522 |
+
input: getPlaceholder(ps, bestMatch.match, !0) || bestMatch.match.def
|
523 |
+
})).generatedInput = !0, revalidateMask(ps, bestMatch, !0), !0 !== fillOnly) {
|
524 |
+
var cvpInput = getMaskSet().validPositions[newPos].input;
|
525 |
+
getMaskSet().validPositions[newPos] = undefined, result = isValid(newPos, cvpInput, !0, !0);
|
526 |
+
}
|
527 |
+
}
|
528 |
+
}
|
529 |
+
return result;
|
530 |
+
}
|
531 |
+
function revalidateMask(pos, validTest, fromSetValid, validatedPos) {
|
532 |
+
function IsEnclosedStatic(pos, valids, selection) {
|
533 |
+
var posMatch = valids[pos];
|
534 |
+
if (posMatch !== undefined && (null === posMatch.match.fn && !0 !== posMatch.match.optionality || posMatch.input === opts.radixPoint)) {
|
535 |
+
var prevMatch = selection.begin <= pos - 1 ? valids[pos - 1] && null === valids[pos - 1].match.fn && valids[pos - 1] : valids[pos - 1], nextMatch = selection.end > pos + 1 ? valids[pos + 1] && null === valids[pos + 1].match.fn && valids[pos + 1] : valids[pos + 1];
|
536 |
+
return prevMatch && nextMatch;
|
537 |
+
}
|
538 |
+
return !1;
|
539 |
+
}
|
540 |
+
var begin = pos.begin !== undefined ? pos.begin : pos, end = pos.end !== undefined ? pos.end : pos;
|
541 |
+
if (pos.begin > pos.end && (begin = pos.end, end = pos.begin), validatedPos = validatedPos !== undefined ? validatedPos : begin,
|
542 |
+
begin !== end || opts.insertMode && getMaskSet().validPositions[validatedPos] !== undefined && fromSetValid === undefined) {
|
543 |
+
var positionsClone = $.extend(!0, {}, getMaskSet().validPositions), lvp = getLastValidPosition(undefined, !0);
|
544 |
+
for (getMaskSet().p = begin, i = lvp; i >= begin; i--) getMaskSet().validPositions[i] && "+" === getMaskSet().validPositions[i].match.nativeDef && (opts.isNegative = !1),
|
545 |
+
delete getMaskSet().validPositions[i];
|
546 |
+
var valid = !0, j = validatedPos, needsValidation = (getMaskSet().validPositions,
|
547 |
+
!1), posMatch = j, i = j;
|
548 |
+
for (validTest && (getMaskSet().validPositions[validatedPos] = $.extend(!0, {}, validTest),
|
549 |
+
posMatch++, j++, begin < end && i++); i <= lvp; i++) {
|
550 |
+
var t = positionsClone[i];
|
551 |
+
if (t !== undefined && (i >= end || i >= begin && !0 !== t.generatedInput && IsEnclosedStatic(i, positionsClone, {
|
552 |
+
begin: begin,
|
553 |
+
end: end
|
554 |
+
}))) {
|
555 |
+
for (;"" !== getTest(posMatch).match.def; ) {
|
556 |
+
if (!1 === needsValidation && positionsClone[posMatch] && positionsClone[posMatch].match.nativeDef === t.match.nativeDef) getMaskSet().validPositions[posMatch] = $.extend(!0, {}, positionsClone[posMatch]),
|
557 |
+
getMaskSet().validPositions[posMatch].input = t.input, trackbackPositions(undefined, posMatch, !0),
|
558 |
+
j = posMatch + 1, valid = !0; else if (positionCanMatchDefinition(posMatch, t.match.def)) {
|
559 |
+
var result = isValid(posMatch, t.input, !0, !0);
|
560 |
+
valid = !1 !== result, j = result.caret || result.insert ? getLastValidPosition() : posMatch + 1,
|
561 |
+
needsValidation = !0;
|
562 |
+
} else if (!(valid = !0 === t.generatedInput || t.input === opts.radixPoint && !0 === opts.numericInput) && "" === getTest(posMatch).match.def) break;
|
563 |
+
if (valid) break;
|
564 |
+
posMatch++;
|
565 |
+
}
|
566 |
+
"" == getTest(posMatch).match.def && (valid = !1), posMatch = j;
|
567 |
+
}
|
568 |
+
if (!valid) break;
|
569 |
+
}
|
570 |
+
if (!valid) return getMaskSet().validPositions = $.extend(!0, {}, positionsClone),
|
571 |
+
resetMaskSet(!0), !1;
|
572 |
+
} else validTest && (getMaskSet().validPositions[validatedPos] = $.extend(!0, {}, validTest));
|
573 |
+
return resetMaskSet(!0), !0;
|
574 |
+
}
|
575 |
+
function isMask(pos, strict) {
|
576 |
+
var test = getTestTemplate(pos).match;
|
577 |
+
if ("" === test.def && (test = getTest(pos).match), null != test.fn) return test.fn;
|
578 |
+
if (!0 !== strict && pos > -1) {
|
579 |
+
var tests = getTests(pos);
|
580 |
+
return tests.length > 1 + ("" === tests[tests.length - 1].match.def ? 1 : 0);
|
581 |
+
}
|
582 |
+
return !1;
|
583 |
+
}
|
584 |
+
function seekNext(pos, newBlock) {
|
585 |
+
for (var position = pos + 1; "" !== getTest(position).match.def && (!0 === newBlock && (!0 !== getTest(position).match.newBlockMarker || !isMask(position)) || !0 !== newBlock && !isMask(position)); ) position++;
|
586 |
+
return position;
|
587 |
+
}
|
588 |
+
function seekPrevious(pos, newBlock) {
|
589 |
+
var tests, position = pos;
|
590 |
+
if (position <= 0) return 0;
|
591 |
+
for (;--position > 0 && (!0 === newBlock && !0 !== getTest(position).match.newBlockMarker || !0 !== newBlock && !isMask(position) && ((tests = getTests(position)).length < 2 || 2 === tests.length && "" === tests[1].match.def)); ) ;
|
592 |
+
return position;
|
593 |
+
}
|
594 |
+
function writeBuffer(input, buffer, caretPos, event, triggerEvents) {
|
595 |
+
if (event && $.isFunction(opts.onBeforeWrite)) {
|
596 |
+
var result = opts.onBeforeWrite.call(inputmask, event, buffer, caretPos, opts);
|
597 |
+
if (result) {
|
598 |
+
if (result.refreshFromBuffer) {
|
599 |
+
var refresh = result.refreshFromBuffer;
|
600 |
+
refreshFromBuffer(!0 === refresh ? refresh : refresh.start, refresh.end, result.buffer || buffer),
|
601 |
+
buffer = getBuffer(!0);
|
602 |
+
}
|
603 |
+
caretPos !== undefined && (caretPos = result.caret !== undefined ? result.caret : caretPos);
|
604 |
+
}
|
605 |
+
}
|
606 |
+
if (input !== undefined && (input.inputmask._valueSet(buffer.join("")), caretPos === undefined || event !== undefined && "blur" === event.type ? renderColorMask(input, caretPos, 0 === buffer.length) : caret(input, caretPos),
|
607 |
+
!0 === triggerEvents)) {
|
608 |
+
var $input = $(input), nptVal = input.inputmask._valueGet();
|
609 |
+
skipInputEvent = !0, $input.trigger("input"), setTimeout(function() {
|
610 |
+
nptVal === getBufferTemplate().join("") ? $input.trigger("cleared") : !0 === isComplete(buffer) && $input.trigger("complete");
|
611 |
+
}, 0);
|
612 |
+
}
|
613 |
+
}
|
614 |
+
function getPlaceholder(pos, test, returnPL) {
|
615 |
+
if ((test = test || getTest(pos).match).placeholder !== undefined || !0 === returnPL) return $.isFunction(test.placeholder) ? test.placeholder(opts) : test.placeholder;
|
616 |
+
if (null === test.fn) {
|
617 |
+
if (pos > -1 && getMaskSet().validPositions[pos] === undefined) {
|
618 |
+
var prevTest, tests = getTests(pos), staticAlternations = [];
|
619 |
+
if (tests.length > 1 + ("" === tests[tests.length - 1].match.def ? 1 : 0)) for (var i = 0; i < tests.length; i++) if (!0 !== tests[i].match.optionality && !0 !== tests[i].match.optionalQuantifier && (null === tests[i].match.fn || prevTest === undefined || !1 !== tests[i].match.fn.test(prevTest.match.def, getMaskSet(), pos, !0, opts)) && (staticAlternations.push(tests[i]),
|
620 |
+
null === tests[i].match.fn && (prevTest = tests[i]), staticAlternations.length > 1 && /[0-9a-bA-Z]/.test(staticAlternations[0].match.def))) return opts.placeholder.charAt(pos % opts.placeholder.length);
|
621 |
+
}
|
622 |
+
return test.def;
|
623 |
+
}
|
624 |
+
return opts.placeholder.charAt(pos % opts.placeholder.length);
|
625 |
+
}
|
626 |
+
var valueBuffer, EventRuler = {
|
627 |
+
on: function(input, eventName, eventHandler) {
|
628 |
+
var ev = function(e) {
|
629 |
+
var that = this;
|
630 |
+
if (that.inputmask === undefined && "FORM" !== this.nodeName) {
|
631 |
+
var imOpts = $.data(that, "_inputmask_opts");
|
632 |
+
imOpts ? new Inputmask(imOpts).mask(that) : EventRuler.off(that);
|
633 |
+
} else {
|
634 |
+
if ("setvalue" === e.type || "FORM" === this.nodeName || !(that.disabled || that.readOnly && !("keydown" === e.type && e.ctrlKey && 67 === e.keyCode || !1 === opts.tabThrough && e.keyCode === Inputmask.keyCode.TAB))) {
|
635 |
+
switch (e.type) {
|
636 |
+
case "input":
|
637 |
+
if (!0 === skipInputEvent) return skipInputEvent = !1, e.preventDefault();
|
638 |
+
if (mobile) {
|
639 |
+
var args = arguments;
|
640 |
+
return setTimeout(function() {
|
641 |
+
eventHandler.apply(that, args), caret(that, that.inputmask.caretPos, undefined, !0);
|
642 |
+
}, 0), !1;
|
643 |
+
}
|
644 |
+
break;
|
645 |
+
|
646 |
+
case "keydown":
|
647 |
+
skipKeyPressEvent = !1, skipInputEvent = !1;
|
648 |
+
break;
|
649 |
+
|
650 |
+
case "keypress":
|
651 |
+
if (!0 === skipKeyPressEvent) return e.preventDefault();
|
652 |
+
skipKeyPressEvent = !0;
|
653 |
+
break;
|
654 |
+
|
655 |
+
case "click":
|
656 |
+
if (iemobile || iphone) {
|
657 |
+
args = arguments;
|
658 |
+
return setTimeout(function() {
|
659 |
+
eventHandler.apply(that, args);
|
660 |
+
}, 0), !1;
|
661 |
+
}
|
662 |
+
}
|
663 |
+
var returnVal = eventHandler.apply(that, arguments);
|
664 |
+
return !1 === returnVal && (e.preventDefault(), e.stopPropagation()), returnVal;
|
665 |
+
}
|
666 |
+
e.preventDefault();
|
667 |
+
}
|
668 |
+
};
|
669 |
+
input.inputmask.events[eventName] = input.inputmask.events[eventName] || [], input.inputmask.events[eventName].push(ev),
|
670 |
+
-1 !== $.inArray(eventName, [ "submit", "reset" ]) ? null !== input.form && $(input.form).on(eventName, ev) : $(input).on(eventName, ev);
|
671 |
+
},
|
672 |
+
off: function(input, event) {
|
673 |
+
var events;
|
674 |
+
input.inputmask && input.inputmask.events && (event ? (events = [])[event] = input.inputmask.events[event] : events = input.inputmask.events,
|
675 |
+
$.each(events, function(eventName, evArr) {
|
676 |
+
for (;evArr.length > 0; ) {
|
677 |
+
var ev = evArr.pop();
|
678 |
+
-1 !== $.inArray(eventName, [ "submit", "reset" ]) ? null !== input.form && $(input.form).off(eventName, ev) : $(input).off(eventName, ev);
|
679 |
+
}
|
680 |
+
delete input.inputmask.events[eventName];
|
681 |
+
}));
|
682 |
+
}
|
683 |
+
}, EventHandlers = {
|
684 |
+
keydownEvent: function(e) {
|
685 |
+
var input = this, $input = $(input), k = e.keyCode, pos = caret(input);
|
686 |
+
if (k === Inputmask.keyCode.BACKSPACE || k === Inputmask.keyCode.DELETE || iphone && k === Inputmask.keyCode.BACKSPACE_SAFARI || e.ctrlKey && k === Inputmask.keyCode.X && !isInputEventSupported("cut")) e.preventDefault(),
|
687 |
+
handleRemove(input, k, pos), writeBuffer(input, getBuffer(!0), getMaskSet().p, e, input.inputmask._valueGet() !== getBuffer().join("")); else if (k === Inputmask.keyCode.END || k === Inputmask.keyCode.PAGE_DOWN) {
|
688 |
+
e.preventDefault();
|
689 |
+
var caretPos = seekNext(getLastValidPosition());
|
690 |
+
opts.insertMode || caretPos !== getMaskSet().maskLength || e.shiftKey || caretPos--,
|
691 |
+
caret(input, e.shiftKey ? pos.begin : caretPos, caretPos, !0);
|
692 |
+
} else k === Inputmask.keyCode.HOME && !e.shiftKey || k === Inputmask.keyCode.PAGE_UP ? (e.preventDefault(),
|
693 |
+
caret(input, 0, e.shiftKey ? pos.begin : 0, !0)) : (opts.undoOnEscape && k === Inputmask.keyCode.ESCAPE || 90 === k && e.ctrlKey) && !0 !== e.altKey ? (checkVal(input, !0, !1, undoValue.split("")),
|
694 |
+
$input.trigger("click")) : k !== Inputmask.keyCode.INSERT || e.shiftKey || e.ctrlKey ? !0 === opts.tabThrough && k === Inputmask.keyCode.TAB ? (!0 === e.shiftKey ? (null === getTest(pos.begin).match.fn && (pos.begin = seekNext(pos.begin)),
|
695 |
+
pos.end = seekPrevious(pos.begin, !0), pos.begin = seekPrevious(pos.end, !0)) : (pos.begin = seekNext(pos.begin, !0),
|
696 |
+
pos.end = seekNext(pos.begin, !0), pos.end < getMaskSet().maskLength && pos.end--),
|
697 |
+
pos.begin < getMaskSet().maskLength && (e.preventDefault(), caret(input, pos.begin, pos.end))) : e.shiftKey || !1 === opts.insertMode && (k === Inputmask.keyCode.RIGHT ? setTimeout(function() {
|
698 |
+
var caretPos = caret(input);
|
699 |
+
caret(input, caretPos.begin);
|
700 |
+
}, 0) : k === Inputmask.keyCode.LEFT && setTimeout(function() {
|
701 |
+
var caretPos = caret(input);
|
702 |
+
caret(input, isRTL ? caretPos.begin + 1 : caretPos.begin - 1);
|
703 |
+
}, 0)) : (opts.insertMode = !opts.insertMode, caret(input, opts.insertMode || pos.begin !== getMaskSet().maskLength ? pos.begin : pos.begin - 1));
|
704 |
+
opts.onKeyDown.call(this, e, getBuffer(), caret(input).begin, opts), ignorable = -1 !== $.inArray(k, opts.ignorables);
|
705 |
+
},
|
706 |
+
keypressEvent: function(e, checkval, writeOut, strict, ndx) {
|
707 |
+
var input = this, $input = $(input), k = e.which || e.charCode || e.keyCode;
|
708 |
+
if (!(!0 === checkval || e.ctrlKey && e.altKey) && (e.ctrlKey || e.metaKey || ignorable)) return k === Inputmask.keyCode.ENTER && undoValue !== getBuffer().join("") && (undoValue = getBuffer().join(""),
|
709 |
+
setTimeout(function() {
|
710 |
+
$input.trigger("change");
|
711 |
+
}, 0)), !0;
|
712 |
+
if (k) {
|
713 |
+
46 === k && !1 === e.shiftKey && "" !== opts.radixPoint && (k = opts.radixPoint.charCodeAt(0));
|
714 |
+
var forwardPosition, pos = checkval ? {
|
715 |
+
begin: ndx,
|
716 |
+
end: ndx
|
717 |
+
} : caret(input), c = String.fromCharCode(k), offset = 0;
|
718 |
+
if (opts._radixDance && opts.numericInput) {
|
719 |
+
var caretPos = getBuffer().indexOf(opts.radixPoint.charAt(0)) + 1;
|
720 |
+
pos.begin <= caretPos && (k === opts.radixPoint.charCodeAt(0) && (offset = 1), pos.begin -= 1,
|
721 |
+
pos.end -= 1);
|
722 |
+
}
|
723 |
+
getMaskSet().writeOutBuffer = !0;
|
724 |
+
var valResult = isValid(pos, c, strict);
|
725 |
+
if (!1 !== valResult && (resetMaskSet(!0), forwardPosition = valResult.caret !== undefined ? valResult.caret : seekNext(valResult.pos.begin ? valResult.pos.begin : valResult.pos),
|
726 |
+
getMaskSet().p = forwardPosition), forwardPosition = (opts.numericInput && valResult.caret === undefined ? seekPrevious(forwardPosition) : forwardPosition) + offset,
|
727 |
+
!1 !== writeOut && (setTimeout(function() {
|
728 |
+
opts.onKeyValidation.call(input, k, valResult, opts);
|
729 |
+
}, 0), getMaskSet().writeOutBuffer && !1 !== valResult)) {
|
730 |
+
var buffer = getBuffer();
|
731 |
+
writeBuffer(input, buffer, forwardPosition, e, !0 !== checkval);
|
732 |
+
}
|
733 |
+
if (e.preventDefault(), checkval) return !1 !== valResult && (valResult.forwardPosition = forwardPosition),
|
734 |
+
valResult;
|
735 |
+
}
|
736 |
+
},
|
737 |
+
pasteEvent: function(e) {
|
738 |
+
var tempValue, ev = e.originalEvent || e, inputValue = ($(this), this.inputmask._valueGet(!0)), caretPos = caret(this);
|
739 |
+
isRTL && (tempValue = caretPos.end, caretPos.end = caretPos.begin, caretPos.begin = tempValue);
|
740 |
+
var valueBeforeCaret = inputValue.substr(0, caretPos.begin), valueAfterCaret = inputValue.substr(caretPos.end, inputValue.length);
|
741 |
+
if (valueBeforeCaret === (isRTL ? getBufferTemplate().reverse() : getBufferTemplate()).slice(0, caretPos.begin).join("") && (valueBeforeCaret = ""),
|
742 |
+
valueAfterCaret === (isRTL ? getBufferTemplate().reverse() : getBufferTemplate()).slice(caretPos.end).join("") && (valueAfterCaret = ""),
|
743 |
+
window.clipboardData && window.clipboardData.getData) inputValue = valueBeforeCaret + window.clipboardData.getData("Text") + valueAfterCaret; else {
|
744 |
+
if (!ev.clipboardData || !ev.clipboardData.getData) return !0;
|
745 |
+
inputValue = valueBeforeCaret + ev.clipboardData.getData("text/plain") + valueAfterCaret;
|
746 |
+
}
|
747 |
+
var pasteValue = inputValue;
|
748 |
+
if ($.isFunction(opts.onBeforePaste)) {
|
749 |
+
if (!1 === (pasteValue = opts.onBeforePaste.call(inputmask, inputValue, opts))) return e.preventDefault();
|
750 |
+
pasteValue || (pasteValue = inputValue);
|
751 |
+
}
|
752 |
+
return checkVal(this, !1, !1, pasteValue.toString().split("")), writeBuffer(this, getBuffer(), seekNext(getLastValidPosition()), e, undoValue !== getBuffer().join("")),
|
753 |
+
e.preventDefault();
|
754 |
+
},
|
755 |
+
inputFallBackEvent: function(e) {
|
756 |
+
var input = this, inputValue = input.inputmask._valueGet();
|
757 |
+
if (getBuffer().join("") !== inputValue) {
|
758 |
+
var caretPos = caret(input);
|
759 |
+
if (inputValue = function(input, inputValue, caretPos) {
|
760 |
+
if (iemobile) {
|
761 |
+
var inputChar = inputValue.replace(getBuffer().join(""), "");
|
762 |
+
if (1 === inputChar.length) {
|
763 |
+
var iv = inputValue.split("");
|
764 |
+
iv.splice(caretPos.begin, 0, inputChar), inputValue = iv.join("");
|
765 |
+
}
|
766 |
+
}
|
767 |
+
return inputValue;
|
768 |
+
}(0, inputValue = function(input, inputValue, caretPos) {
|
769 |
+
return "." === inputValue.charAt(caretPos.begin - 1) && "" !== opts.radixPoint && ((inputValue = inputValue.split(""))[caretPos.begin - 1] = opts.radixPoint.charAt(0),
|
770 |
+
inputValue = inputValue.join("")), inputValue;
|
771 |
+
}(0, inputValue, caretPos), caretPos), getBuffer().join("") !== inputValue) {
|
772 |
+
var buffer = getBuffer().join(""), offset = !opts.numericInput && inputValue.length > buffer.length ? -1 : 0, frontPart = inputValue.substr(0, caretPos.begin), backPart = inputValue.substr(caretPos.begin), frontBufferPart = buffer.substr(0, caretPos.begin + offset), backBufferPart = buffer.substr(caretPos.begin + offset), selection = caretPos, entries = "", isEntry = !1;
|
773 |
+
if (frontPart !== frontBufferPart) {
|
774 |
+
for (var fpl = (isEntry = frontPart.length >= frontBufferPart.length) ? frontPart.length : frontBufferPart.length, i = 0; frontPart.charAt(i) === frontBufferPart.charAt(i) && i < fpl; i++) ;
|
775 |
+
isEntry && (0 === offset && (selection.begin = i), entries += frontPart.slice(i, selection.end));
|
776 |
+
}
|
777 |
+
if (backPart !== backBufferPart && (backPart.length > backBufferPart.length ? entries += backPart.slice(0, 1) : backPart.length < backBufferPart.length && (selection.end += backBufferPart.length - backPart.length,
|
778 |
+
isEntry || "" === opts.radixPoint || "" !== backPart || frontPart.charAt(selection.begin + offset - 1) !== opts.radixPoint || (selection.begin--,
|
779 |
+
entries = opts.radixPoint))), writeBuffer(input, getBuffer(), {
|
780 |
+
begin: selection.begin + offset,
|
781 |
+
end: selection.end + offset
|
782 |
+
}), entries.length > 0) $.each(entries.split(""), function(ndx, entry) {
|
783 |
+
var keypress = new $.Event("keypress");
|
784 |
+
keypress.which = entry.charCodeAt(0), ignorable = !1, EventHandlers.keypressEvent.call(input, keypress);
|
785 |
+
}); else {
|
786 |
+
selection.begin === selection.end - 1 && (selection.begin = seekPrevious(selection.begin + 1),
|
787 |
+
selection.begin === selection.end - 1 ? caret(input, selection.begin) : caret(input, selection.begin, selection.end));
|
788 |
+
var keydown = new $.Event("keydown");
|
789 |
+
keydown.keyCode = opts.numericInput ? Inputmask.keyCode.BACKSPACE : Inputmask.keyCode.DELETE,
|
790 |
+
EventHandlers.keydownEvent.call(input, keydown), !1 === opts.insertMode && caret(input, caret(input).begin - 1);
|
791 |
+
}
|
792 |
+
e.preventDefault();
|
793 |
+
}
|
794 |
+
}
|
795 |
+
},
|
796 |
+
beforeInputEvent: function(e) {
|
797 |
+
if (e.cancelable) {
|
798 |
+
var input = this;
|
799 |
+
switch (e.inputType) {
|
800 |
+
case "insertText":
|
801 |
+
return $.each(e.data.split(""), function(ndx, entry) {
|
802 |
+
var keypress = new $.Event("keypress");
|
803 |
+
keypress.which = entry.charCodeAt(0), ignorable = !1, EventHandlers.keypressEvent.call(input, keypress);
|
804 |
+
}), e.preventDefault();
|
805 |
+
|
806 |
+
case "deleteContentBackward":
|
807 |
+
return (keydown = new $.Event("keydown")).keyCode = Inputmask.keyCode.BACKSPACE,
|
808 |
+
EventHandlers.keydownEvent.call(input, keydown), e.preventDefault();
|
809 |
+
|
810 |
+
case "deleteContentForward":
|
811 |
+
var keydown;
|
812 |
+
return (keydown = new $.Event("keydown")).keyCode = Inputmask.keyCode.DELETE, EventHandlers.keydownEvent.call(input, keydown),
|
813 |
+
e.preventDefault();
|
814 |
+
}
|
815 |
+
}
|
816 |
+
},
|
817 |
+
setValueEvent: function(e) {
|
818 |
+
this.inputmask.refreshValue = !1;
|
819 |
+
var value = (value = e && e.detail ? e.detail[0] : arguments[1]) || this.inputmask._valueGet(!0);
|
820 |
+
$.isFunction(opts.onBeforeMask) && (value = opts.onBeforeMask.call(inputmask, value, opts) || value),
|
821 |
+
checkVal(this, !0, !1, value = value.split("")), undoValue = getBuffer().join(""),
|
822 |
+
(opts.clearMaskOnLostFocus || opts.clearIncomplete) && this.inputmask._valueGet() === getBufferTemplate().join("") && this.inputmask._valueSet("");
|
823 |
+
},
|
824 |
+
focusEvent: function(e) {
|
825 |
+
var nptValue = this.inputmask._valueGet();
|
826 |
+
opts.showMaskOnFocus && (!opts.showMaskOnHover || opts.showMaskOnHover && "" === nptValue) && (this.inputmask._valueGet() !== getBuffer().join("") ? writeBuffer(this, getBuffer(), seekNext(getLastValidPosition())) : !1 === mouseEnter && caret(this, seekNext(getLastValidPosition()))),
|
827 |
+
!0 === opts.positionCaretOnTab && !1 === mouseEnter && EventHandlers.clickEvent.apply(this, [ e, !0 ]),
|
828 |
+
undoValue = getBuffer().join("");
|
829 |
+
},
|
830 |
+
mouseleaveEvent: function(e) {
|
831 |
+
if (mouseEnter = !1, opts.clearMaskOnLostFocus && document.activeElement !== this) {
|
832 |
+
var buffer = getBuffer().slice(), nptValue = this.inputmask._valueGet();
|
833 |
+
nptValue !== this.getAttribute("placeholder") && "" !== nptValue && (-1 === getLastValidPosition() && nptValue === getBufferTemplate().join("") ? buffer = [] : clearOptionalTail(buffer),
|
834 |
+
writeBuffer(this, buffer));
|
835 |
+
}
|
836 |
+
},
|
837 |
+
clickEvent: function(e, tabbed) {
|
838 |
+
var input = this;
|
839 |
+
setTimeout(function() {
|
840 |
+
if (document.activeElement === input) {
|
841 |
+
var selectedCaret = caret(input);
|
842 |
+
if (tabbed && (isRTL ? selectedCaret.end = selectedCaret.begin : selectedCaret.begin = selectedCaret.end),
|
843 |
+
selectedCaret.begin === selectedCaret.end) switch (opts.positionCaretOnClick) {
|
844 |
+
case "none":
|
845 |
+
break;
|
846 |
+
|
847 |
+
case "select":
|
848 |
+
caret(input, 0, getBuffer().length);
|
849 |
+
break;
|
850 |
+
|
851 |
+
case "ignore":
|
852 |
+
caret(input, seekNext(getLastValidPosition()));
|
853 |
+
break;
|
854 |
+
|
855 |
+
case "radixFocus":
|
856 |
+
if (function(clickPos) {
|
857 |
+
if ("" !== opts.radixPoint) {
|
858 |
+
var vps = getMaskSet().validPositions;
|
859 |
+
if (vps[clickPos] === undefined || vps[clickPos].input === getPlaceholder(clickPos)) {
|
860 |
+
if (clickPos < seekNext(-1)) return !0;
|
861 |
+
var radixPos = $.inArray(opts.radixPoint, getBuffer());
|
862 |
+
if (-1 !== radixPos) {
|
863 |
+
for (var vp in vps) if (radixPos < vp && vps[vp].input !== getPlaceholder(vp)) return !1;
|
864 |
+
return !0;
|
865 |
+
}
|
866 |
+
}
|
867 |
+
}
|
868 |
+
return !1;
|
869 |
+
}(selectedCaret.begin)) {
|
870 |
+
var radixPos = getBuffer().join("").indexOf(opts.radixPoint);
|
871 |
+
caret(input, opts.numericInput ? seekNext(radixPos) : radixPos);
|
872 |
+
break;
|
873 |
+
}
|
874 |
+
|
875 |
+
default:
|
876 |
+
var clickPosition = selectedCaret.begin, lvclickPosition = getLastValidPosition(clickPosition, !0), lastPosition = seekNext(lvclickPosition);
|
877 |
+
if (clickPosition < lastPosition) caret(input, isMask(clickPosition, !0) || isMask(clickPosition - 1, !0) ? clickPosition : seekNext(clickPosition)); else {
|
878 |
+
var lvp = getMaskSet().validPositions[lvclickPosition], tt = getTestTemplate(lastPosition, lvp ? lvp.match.locator : undefined, lvp), placeholder = getPlaceholder(lastPosition, tt.match);
|
879 |
+
if ("" !== placeholder && getBuffer()[lastPosition] !== placeholder && !0 !== tt.match.optionalQuantifier && !0 !== tt.match.newBlockMarker || !isMask(lastPosition, opts.keepStatic) && tt.match.def === placeholder) {
|
880 |
+
var newPos = seekNext(lastPosition);
|
881 |
+
(clickPosition >= newPos || clickPosition === lastPosition) && (lastPosition = newPos);
|
882 |
+
}
|
883 |
+
caret(input, lastPosition);
|
884 |
+
}
|
885 |
+
}
|
886 |
+
}
|
887 |
+
}, 0);
|
888 |
+
},
|
889 |
+
dblclickEvent: function(e) {
|
890 |
+
var input = this;
|
891 |
+
setTimeout(function() {
|
892 |
+
caret(input, 0, seekNext(getLastValidPosition()));
|
893 |
+
}, 0);
|
894 |
+
},
|
895 |
+
cutEvent: function(e) {
|
896 |
+
$(this);
|
897 |
+
var pos = caret(this), ev = e.originalEvent || e, clipboardData = window.clipboardData || ev.clipboardData, clipData = isRTL ? getBuffer().slice(pos.end, pos.begin) : getBuffer().slice(pos.begin, pos.end);
|
898 |
+
clipboardData.setData("text", isRTL ? clipData.reverse().join("") : clipData.join("")),
|
899 |
+
document.execCommand && document.execCommand("copy"), handleRemove(this, Inputmask.keyCode.DELETE, pos),
|
900 |
+
writeBuffer(this, getBuffer(), getMaskSet().p, e, undoValue !== getBuffer().join(""));
|
901 |
+
},
|
902 |
+
blurEvent: function(e) {
|
903 |
+
var $input = $(this);
|
904 |
+
if (this.inputmask) {
|
905 |
+
var nptValue = this.inputmask._valueGet(), buffer = getBuffer().slice();
|
906 |
+
"" === nptValue && colorMask === undefined || (opts.clearMaskOnLostFocus && (-1 === getLastValidPosition() && nptValue === getBufferTemplate().join("") ? buffer = [] : clearOptionalTail(buffer)),
|
907 |
+
!1 === isComplete(buffer) && (setTimeout(function() {
|
908 |
+
$input.trigger("incomplete");
|
909 |
+
}, 0), opts.clearIncomplete && (resetMaskSet(), buffer = opts.clearMaskOnLostFocus ? [] : getBufferTemplate().slice())),
|
910 |
+
writeBuffer(this, buffer, undefined, e)), undoValue !== getBuffer().join("") && (undoValue = buffer.join(""),
|
911 |
+
$input.trigger("change"));
|
912 |
+
}
|
913 |
+
},
|
914 |
+
mouseenterEvent: function(e) {
|
915 |
+
mouseEnter = !0, document.activeElement !== this && opts.showMaskOnHover && this.inputmask._valueGet() !== getBuffer().join("") && writeBuffer(this, getBuffer());
|
916 |
+
},
|
917 |
+
submitEvent: function(e) {
|
918 |
+
undoValue !== getBuffer().join("") && $el.trigger("change"), opts.clearMaskOnLostFocus && -1 === getLastValidPosition() && el.inputmask._valueGet && el.inputmask._valueGet() === getBufferTemplate().join("") && el.inputmask._valueSet(""),
|
919 |
+
opts.clearIncomplete && !1 === isComplete(getBuffer()) && el.inputmask._valueSet(""),
|
920 |
+
opts.removeMaskOnSubmit && (el.inputmask._valueSet(el.inputmask.unmaskedvalue(), !0),
|
921 |
+
setTimeout(function() {
|
922 |
+
writeBuffer(el, getBuffer());
|
923 |
+
}, 0));
|
924 |
+
},
|
925 |
+
resetEvent: function(e) {
|
926 |
+
el.inputmask.refreshValue = !0, setTimeout(function() {
|
927 |
+
$el.trigger("setvalue");
|
928 |
+
}, 0);
|
929 |
+
}
|
930 |
+
};
|
931 |
+
function checkVal(input, writeOut, strict, nptvl, initiatingEvent) {
|
932 |
+
var inputmask = this || input.inputmask, inputValue = nptvl.slice(), charCodes = "", initialNdx = -1, result = undefined;
|
933 |
+
if (resetMaskSet(), strict || !0 === opts.autoUnmask) initialNdx = seekNext(initialNdx); else {
|
934 |
+
var staticInput = getBufferTemplate().slice(0, seekNext(-1)).join(""), matches = inputValue.join("").match(new RegExp("^" + Inputmask.escapeRegex(staticInput), "g"));
|
935 |
+
matches && matches.length > 0 && (inputValue.splice(0, matches.length * staticInput.length),
|
936 |
+
initialNdx = seekNext(initialNdx));
|
937 |
+
}
|
938 |
+
-1 === initialNdx ? (getMaskSet().p = seekNext(initialNdx), initialNdx = 0) : getMaskSet().p = initialNdx,
|
939 |
+
inputmask.caretPos = {
|
940 |
+
begin: initialNdx
|
941 |
+
}, $.each(inputValue, function(ndx, charCode) {
|
942 |
+
if (charCode !== undefined) if (getMaskSet().validPositions[ndx] === undefined && inputValue[ndx] === getPlaceholder(ndx) && isMask(ndx, !0) && !1 === isValid(ndx, inputValue[ndx], !0, undefined, undefined, !0)) getMaskSet().p++; else {
|
943 |
+
var keypress = new $.Event("_checkval");
|
944 |
+
keypress.which = charCode.charCodeAt(0), charCodes += charCode;
|
945 |
+
var lvp = getLastValidPosition(undefined, !0);
|
946 |
+
!function(ndx, charCodes) {
|
947 |
+
return -1 !== getMaskTemplate(!0, 0, !1).slice(ndx, seekNext(ndx)).join("").replace(/'/g, "").indexOf(charCodes) && !isMask(ndx) && (getTest(ndx).match.nativeDef === charCodes.charAt(0) || null === getTest(ndx).match.fn && getTest(ndx).match.nativeDef === "'" + charCodes.charAt(0) || " " === getTest(ndx).match.nativeDef && (getTest(ndx + 1).match.nativeDef === charCodes.charAt(0) || null === getTest(ndx + 1).match.fn && getTest(ndx + 1).match.nativeDef === "'" + charCodes.charAt(0)));
|
948 |
+
}(initialNdx, charCodes) ? (result = EventHandlers.keypressEvent.call(input, keypress, !0, !1, strict, inputmask.caretPos.begin)) && (initialNdx = inputmask.caretPos.begin + 1,
|
949 |
+
charCodes = "") : result = EventHandlers.keypressEvent.call(input, keypress, !0, !1, strict, lvp + 1),
|
950 |
+
result && (writeBuffer(undefined, getBuffer(), result.forwardPosition, keypress, !1),
|
951 |
+
inputmask.caretPos = {
|
952 |
+
begin: result.forwardPosition,
|
953 |
+
end: result.forwardPosition
|
954 |
+
});
|
955 |
+
}
|
956 |
+
}), writeOut && writeBuffer(input, getBuffer(), result ? result.forwardPosition : undefined, initiatingEvent || new $.Event("checkval"), initiatingEvent && "input" === initiatingEvent.type);
|
957 |
+
}
|
958 |
+
function unmaskedvalue(input) {
|
959 |
+
if (input) {
|
960 |
+
if (input.inputmask === undefined) return input.value;
|
961 |
+
input.inputmask && input.inputmask.refreshValue && EventHandlers.setValueEvent.call(input);
|
962 |
+
}
|
963 |
+
var umValue = [], vps = getMaskSet().validPositions;
|
964 |
+
for (var pndx in vps) vps[pndx].match && null != vps[pndx].match.fn && umValue.push(vps[pndx].input);
|
965 |
+
var unmaskedValue = 0 === umValue.length ? "" : (isRTL ? umValue.reverse() : umValue).join("");
|
966 |
+
if ($.isFunction(opts.onUnMask)) {
|
967 |
+
var bufferValue = (isRTL ? getBuffer().slice().reverse() : getBuffer()).join("");
|
968 |
+
unmaskedValue = opts.onUnMask.call(inputmask, bufferValue, unmaskedValue, opts);
|
969 |
+
}
|
970 |
+
return unmaskedValue;
|
971 |
+
}
|
972 |
+
function translatePosition(pos) {
|
973 |
+
return !isRTL || "number" != typeof pos || opts.greedy && "" === opts.placeholder || !el || (pos = el.inputmask._valueGet().length - pos),
|
974 |
+
pos;
|
975 |
+
}
|
976 |
+
function caret(input, begin, end, notranslate) {
|
977 |
+
var range;
|
978 |
+
if (begin === undefined) return input.setSelectionRange ? (begin = input.selectionStart,
|
979 |
+
end = input.selectionEnd) : window.getSelection ? (range = window.getSelection().getRangeAt(0)).commonAncestorContainer.parentNode !== input && range.commonAncestorContainer !== input || (begin = range.startOffset,
|
980 |
+
end = range.endOffset) : document.selection && document.selection.createRange && (end = (begin = 0 - (range = document.selection.createRange()).duplicate().moveStart("character", -input.inputmask._valueGet().length)) + range.text.length),
|
981 |
+
{
|
982 |
+
begin: notranslate ? begin : translatePosition(begin),
|
983 |
+
end: notranslate ? end : translatePosition(end)
|
984 |
+
};
|
985 |
+
if ($.isArray(begin) && (end = isRTL ? begin[0] : begin[1], begin = isRTL ? begin[1] : begin[0]),
|
986 |
+
begin.begin !== undefined && (end = isRTL ? begin.begin : begin.end, begin = isRTL ? begin.end : begin.begin),
|
987 |
+
"number" == typeof begin) {
|
988 |
+
begin = notranslate ? begin : translatePosition(begin), end = "number" == typeof (end = notranslate ? end : translatePosition(end)) ? end : begin;
|
989 |
+
var scrollCalc = parseInt(((input.ownerDocument.defaultView || window).getComputedStyle ? (input.ownerDocument.defaultView || window).getComputedStyle(input, null) : input.currentStyle).fontSize) * end;
|
990 |
+
if (input.scrollLeft = scrollCalc > input.scrollWidth ? scrollCalc : 0, iphone || !1 !== opts.insertMode || begin !== end || end++,
|
991 |
+
input.inputmask.caretPos = {
|
992 |
+
begin: begin,
|
993 |
+
end: end
|
994 |
+
}, input.setSelectionRange) input.selectionStart = begin, input.selectionEnd = end; else if (window.getSelection) {
|
995 |
+
if (range = document.createRange(), input.firstChild === undefined || null === input.firstChild) {
|
996 |
+
var textNode = document.createTextNode("");
|
997 |
+
input.appendChild(textNode);
|
998 |
+
}
|
999 |
+
range.setStart(input.firstChild, begin < input.inputmask._valueGet().length ? begin : input.inputmask._valueGet().length),
|
1000 |
+
range.setEnd(input.firstChild, end < input.inputmask._valueGet().length ? end : input.inputmask._valueGet().length),
|
1001 |
+
range.collapse(!0);
|
1002 |
+
var sel = window.getSelection();
|
1003 |
+
sel.removeAllRanges(), sel.addRange(range);
|
1004 |
+
} else input.createTextRange && ((range = input.createTextRange()).collapse(!0),
|
1005 |
+
range.moveEnd("character", end), range.moveStart("character", begin), range.select());
|
1006 |
+
renderColorMask(input, {
|
1007 |
+
begin: begin,
|
1008 |
+
end: end
|
1009 |
+
});
|
1010 |
+
}
|
1011 |
+
}
|
1012 |
+
function determineLastRequiredPosition(returnDefinition) {
|
1013 |
+
var pos, testPos, buffer = getMaskTemplate(!0, getLastValidPosition(), !0, !0), bl = buffer.length, lvp = getLastValidPosition(), positions = {}, lvTest = getMaskSet().validPositions[lvp], ndxIntlzr = lvTest !== undefined ? lvTest.locator.slice() : undefined;
|
1014 |
+
for (pos = lvp + 1; pos < buffer.length; pos++) ndxIntlzr = (testPos = getTestTemplate(pos, ndxIntlzr, pos - 1)).locator.slice(),
|
1015 |
+
positions[pos] = $.extend(!0, {}, testPos);
|
1016 |
+
var lvTestAlt = lvTest && lvTest.alternation !== undefined ? lvTest.locator[lvTest.alternation] : undefined;
|
1017 |
+
for (pos = bl - 1; pos > lvp && (((testPos = positions[pos]).match.optionality || testPos.match.optionalQuantifier && testPos.match.newBlockMarker || lvTestAlt && (lvTestAlt !== positions[pos].locator[lvTest.alternation] && null != testPos.match.fn || null === testPos.match.fn && testPos.locator[lvTest.alternation] && checkAlternationMatch(testPos.locator[lvTest.alternation].toString().split(","), lvTestAlt.toString().split(",")) && "" !== getTests(pos)[0].def)) && buffer[pos] === getPlaceholder(pos, testPos.match)); pos--) bl--;
|
1018 |
+
return returnDefinition ? {
|
1019 |
+
l: bl,
|
1020 |
+
def: positions[bl] ? positions[bl].match : undefined
|
1021 |
+
} : bl;
|
1022 |
+
}
|
1023 |
+
function clearOptionalTail(buffer) {
|
1024 |
+
buffer.length = 0;
|
1025 |
+
for (var lmnt, template = getMaskTemplate(!0, 0, !0, undefined, !0); (lmnt = template.shift()) !== undefined; ) buffer.push(lmnt);
|
1026 |
+
return buffer;
|
1027 |
+
}
|
1028 |
+
function isComplete(buffer) {
|
1029 |
+
if ($.isFunction(opts.isComplete)) return opts.isComplete(buffer, opts);
|
1030 |
+
if ("*" === opts.repeat) return undefined;
|
1031 |
+
var complete = !1, lrp = determineLastRequiredPosition(!0), aml = seekPrevious(lrp.l);
|
1032 |
+
if (lrp.def === undefined || lrp.def.newBlockMarker || lrp.def.optionality || lrp.def.optionalQuantifier) {
|
1033 |
+
complete = !0;
|
1034 |
+
for (var i = 0; i <= aml; i++) {
|
1035 |
+
var test = getTestTemplate(i).match;
|
1036 |
+
if (null !== test.fn && getMaskSet().validPositions[i] === undefined && !0 !== test.optionality && !0 !== test.optionalQuantifier || null === test.fn && buffer[i] !== getPlaceholder(i, test)) {
|
1037 |
+
complete = !1;
|
1038 |
+
break;
|
1039 |
+
}
|
1040 |
+
}
|
1041 |
+
}
|
1042 |
+
return complete;
|
1043 |
+
}
|
1044 |
+
function handleRemove(input, k, pos, strict, fromIsValid) {
|
1045 |
+
if ((opts.numericInput || isRTL) && (k === Inputmask.keyCode.BACKSPACE ? k = Inputmask.keyCode.DELETE : k === Inputmask.keyCode.DELETE && (k = Inputmask.keyCode.BACKSPACE),
|
1046 |
+
isRTL)) {
|
1047 |
+
var pend = pos.end;
|
1048 |
+
pos.end = pos.begin, pos.begin = pend;
|
1049 |
+
}
|
1050 |
+
if (k === Inputmask.keyCode.BACKSPACE && (pos.end - pos.begin < 1 || !1 === opts.insertMode) ? (pos.begin = seekPrevious(pos.begin),
|
1051 |
+
getMaskSet().validPositions[pos.begin] !== undefined && getMaskSet().validPositions[pos.begin].input === opts.groupSeparator && pos.begin--,
|
1052 |
+
!1 === opts.insertMode && pos.end !== getMaskSet().maskLength && pos.end--) : k === Inputmask.keyCode.DELETE && pos.begin === pos.end && (pos.end = isMask(pos.end, !0) && getMaskSet().validPositions[pos.end] && getMaskSet().validPositions[pos.end].input !== opts.radixPoint ? pos.end + 1 : seekNext(pos.end) + 1,
|
1053 |
+
getMaskSet().validPositions[pos.begin] !== undefined && getMaskSet().validPositions[pos.begin].input === opts.groupSeparator && pos.end++),
|
1054 |
+
revalidateMask(pos), !0 !== strict && !1 !== opts.keepStatic || null !== opts.regex) {
|
1055 |
+
var result = alternate(!0);
|
1056 |
+
if (result) {
|
1057 |
+
var newPos = result.caret !== undefined ? result.caret : result.pos ? seekNext(result.pos.begin ? result.pos.begin : result.pos) : getLastValidPosition(-1, !0);
|
1058 |
+
(k !== Inputmask.keyCode.DELETE || pos.begin > newPos) && pos.begin;
|
1059 |
+
}
|
1060 |
+
}
|
1061 |
+
var lvp = getLastValidPosition(pos.begin, !0);
|
1062 |
+
if (lvp < pos.begin || -1 === pos.begin) getMaskSet().p = seekNext(lvp); else if (!0 !== strict && (getMaskSet().p = pos.begin,
|
1063 |
+
!0 !== fromIsValid)) for (;getMaskSet().p < lvp && getMaskSet().validPositions[getMaskSet().p] === undefined; ) getMaskSet().p++;
|
1064 |
+
}
|
1065 |
+
function initializeColorMask(input) {
|
1066 |
+
var computedStyle = (input.ownerDocument.defaultView || window).getComputedStyle(input, null);
|
1067 |
+
var template = document.createElement("div");
|
1068 |
+
template.style.width = computedStyle.width, template.style.textAlign = computedStyle.textAlign,
|
1069 |
+
colorMask = document.createElement("div"), input.inputmask.colorMask = colorMask,
|
1070 |
+
colorMask.className = "im-colormask", input.parentNode.insertBefore(colorMask, input),
|
1071 |
+
input.parentNode.removeChild(input), colorMask.appendChild(input), colorMask.appendChild(template),
|
1072 |
+
input.style.left = template.offsetLeft + "px", $(colorMask).on("mouseleave", function(e) {
|
1073 |
+
return EventHandlers.mouseleaveEvent.call(input, [ e ]);
|
1074 |
+
}), $(colorMask).on("mouseenter", function(e) {
|
1075 |
+
return EventHandlers.mouseenterEvent.call(input, [ e ]);
|
1076 |
+
}), $(colorMask).on("click", function(e) {
|
1077 |
+
return caret(input, function(clientx) {
|
1078 |
+
var caretPos, e = document.createElement("span");
|
1079 |
+
for (var style in computedStyle) isNaN(style) && -1 !== style.indexOf("font") && (e.style[style] = computedStyle[style]);
|
1080 |
+
e.style.textTransform = computedStyle.textTransform, e.style.letterSpacing = computedStyle.letterSpacing,
|
1081 |
+
e.style.position = "absolute", e.style.height = "auto", e.style.width = "auto",
|
1082 |
+
e.style.visibility = "hidden", e.style.whiteSpace = "nowrap", document.body.appendChild(e);
|
1083 |
+
var itl, inputText = input.inputmask._valueGet(), previousWidth = 0;
|
1084 |
+
for (caretPos = 0, itl = inputText.length; caretPos <= itl; caretPos++) {
|
1085 |
+
if (e.innerHTML += inputText.charAt(caretPos) || "_", e.offsetWidth >= clientx) {
|
1086 |
+
var offset1 = clientx - previousWidth, offset2 = e.offsetWidth - clientx;
|
1087 |
+
e.innerHTML = inputText.charAt(caretPos), caretPos = (offset1 -= e.offsetWidth / 3) < offset2 ? caretPos - 1 : caretPos;
|
1088 |
+
break;
|
1089 |
+
}
|
1090 |
+
previousWidth = e.offsetWidth;
|
1091 |
+
}
|
1092 |
+
return document.body.removeChild(e), caretPos;
|
1093 |
+
}(e.clientX)), EventHandlers.clickEvent.call(input, [ e ]);
|
1094 |
+
}), $(input).on("keydown", function(e) {
|
1095 |
+
e.shiftKey || !1 === opts.insertMode || setTimeout(function() {
|
1096 |
+
renderColorMask(input);
|
1097 |
+
}, 0);
|
1098 |
+
});
|
1099 |
+
}
|
1100 |
+
function renderColorMask(input, caretPos, clear) {
|
1101 |
+
var test, testPos, ndxIntlzr, maskTemplate = [], isStatic = !1, pos = 0;
|
1102 |
+
function setEntry(entry) {
|
1103 |
+
if (entry === undefined && (entry = ""), isStatic || null !== test.fn && testPos.input !== undefined) if (isStatic && (null !== test.fn && testPos.input !== undefined || "" === test.def)) {
|
1104 |
+
isStatic = !1;
|
1105 |
+
var mtl = maskTemplate.length;
|
1106 |
+
maskTemplate[mtl - 1] = maskTemplate[mtl - 1] + "</span>", maskTemplate.push(entry);
|
1107 |
+
} else maskTemplate.push(entry); else isStatic = !0, maskTemplate.push("<span class='im-static'>" + entry);
|
1108 |
+
}
|
1109 |
+
if (colorMask !== undefined) {
|
1110 |
+
var buffer = getBuffer();
|
1111 |
+
if (caretPos === undefined ? caretPos = caret(input) : caretPos.begin === undefined && (caretPos = {
|
1112 |
+
begin: caretPos,
|
1113 |
+
end: caretPos
|
1114 |
+
}), !0 !== clear) {
|
1115 |
+
var lvp = getLastValidPosition();
|
1116 |
+
do {
|
1117 |
+
getMaskSet().validPositions[pos] ? (testPos = getMaskSet().validPositions[pos],
|
1118 |
+
test = testPos.match, ndxIntlzr = testPos.locator.slice(), setEntry(buffer[pos])) : (testPos = getTestTemplate(pos, ndxIntlzr, pos - 1),
|
1119 |
+
test = testPos.match, ndxIntlzr = testPos.locator.slice(), !1 === opts.jitMasking || pos < lvp || "number" == typeof opts.jitMasking && isFinite(opts.jitMasking) && opts.jitMasking > pos ? setEntry(getPlaceholder(pos, test)) : isStatic = !1),
|
1120 |
+
pos++;
|
1121 |
+
} while ((maxLength === undefined || pos < maxLength) && (null !== test.fn || "" !== test.def) || lvp > pos || isStatic);
|
1122 |
+
isStatic && setEntry(), document.activeElement === input && (maskTemplate.splice(caretPos.begin, 0, caretPos.begin === caretPos.end || caretPos.end > getMaskSet().maskLength ? '<mark class="im-caret" style="border-right-width: 1px;border-right-style: solid;">' : '<mark class="im-caret-select">'),
|
1123 |
+
maskTemplate.splice(caretPos.end + 1, 0, "</mark>"));
|
1124 |
+
}
|
1125 |
+
var template = colorMask.getElementsByTagName("div")[0];
|
1126 |
+
template.innerHTML = maskTemplate.join(""), input.inputmask.positionColorMask(input, template);
|
1127 |
+
}
|
1128 |
+
}
|
1129 |
+
if (Inputmask.prototype.positionColorMask = function(input, template) {
|
1130 |
+
input.style.left = template.offsetLeft + "px";
|
1131 |
+
}, actionObj !== undefined) switch (actionObj.action) {
|
1132 |
+
case "isComplete":
|
1133 |
+
return el = actionObj.el, isComplete(getBuffer());
|
1134 |
+
|
1135 |
+
case "unmaskedvalue":
|
1136 |
+
return el !== undefined && actionObj.value === undefined || (valueBuffer = actionObj.value,
|
1137 |
+
valueBuffer = ($.isFunction(opts.onBeforeMask) && opts.onBeforeMask.call(inputmask, valueBuffer, opts) || valueBuffer).split(""),
|
1138 |
+
checkVal.call(this, undefined, !1, !1, valueBuffer), $.isFunction(opts.onBeforeWrite) && opts.onBeforeWrite.call(inputmask, undefined, getBuffer(), 0, opts)),
|
1139 |
+
unmaskedvalue(el);
|
1140 |
+
|
1141 |
+
case "mask":
|
1142 |
+
!function(elem) {
|
1143 |
+
EventRuler.off(elem);
|
1144 |
+
var isSupported = function(input, opts) {
|
1145 |
+
var elementType = input.getAttribute("type"), isSupported = "INPUT" === input.tagName && -1 !== $.inArray(elementType, opts.supportsInputType) || input.isContentEditable || "TEXTAREA" === input.tagName;
|
1146 |
+
if (!isSupported) if ("INPUT" === input.tagName) {
|
1147 |
+
var el = document.createElement("input");
|
1148 |
+
el.setAttribute("type", elementType), isSupported = "text" === el.type, el = null;
|
1149 |
+
} else isSupported = "partial";
|
1150 |
+
return !1 !== isSupported ? function(npt) {
|
1151 |
+
var valueGet, valueSet;
|
1152 |
+
function getter() {
|
1153 |
+
return this.inputmask ? this.inputmask.opts.autoUnmask ? this.inputmask.unmaskedvalue() : -1 !== getLastValidPosition() || !0 !== opts.nullable ? document.activeElement === this && opts.clearMaskOnLostFocus ? (isRTL ? clearOptionalTail(getBuffer().slice()).reverse() : clearOptionalTail(getBuffer().slice())).join("") : valueGet.call(this) : "" : valueGet.call(this);
|
1154 |
+
}
|
1155 |
+
function setter(value) {
|
1156 |
+
valueSet.call(this, value), this.inputmask && $(this).trigger("setvalue", [ value ]);
|
1157 |
+
}
|
1158 |
+
if (!npt.inputmask.__valueGet) {
|
1159 |
+
if (!0 !== opts.noValuePatching) {
|
1160 |
+
if (Object.getOwnPropertyDescriptor) {
|
1161 |
+
"function" != typeof Object.getPrototypeOf && (Object.getPrototypeOf = "object" === _typeof("test".__proto__) ? function(object) {
|
1162 |
+
return object.__proto__;
|
1163 |
+
} : function(object) {
|
1164 |
+
return object.constructor.prototype;
|
1165 |
+
});
|
1166 |
+
var valueProperty = Object.getPrototypeOf ? Object.getOwnPropertyDescriptor(Object.getPrototypeOf(npt), "value") : undefined;
|
1167 |
+
valueProperty && valueProperty.get && valueProperty.set ? (valueGet = valueProperty.get,
|
1168 |
+
valueSet = valueProperty.set, Object.defineProperty(npt, "value", {
|
1169 |
+
get: getter,
|
1170 |
+
set: setter,
|
1171 |
+
configurable: !0
|
1172 |
+
})) : "INPUT" !== npt.tagName && (valueGet = function() {
|
1173 |
+
return this.textContent;
|
1174 |
+
}, valueSet = function(value) {
|
1175 |
+
this.textContent = value;
|
1176 |
+
}, Object.defineProperty(npt, "value", {
|
1177 |
+
get: getter,
|
1178 |
+
set: setter,
|
1179 |
+
configurable: !0
|
1180 |
+
}));
|
1181 |
+
} else document.__lookupGetter__ && npt.__lookupGetter__("value") && (valueGet = npt.__lookupGetter__("value"),
|
1182 |
+
valueSet = npt.__lookupSetter__("value"), npt.__defineGetter__("value", getter),
|
1183 |
+
npt.__defineSetter__("value", setter));
|
1184 |
+
npt.inputmask.__valueGet = valueGet, npt.inputmask.__valueSet = valueSet;
|
1185 |
+
}
|
1186 |
+
npt.inputmask._valueGet = function(overruleRTL) {
|
1187 |
+
return isRTL && !0 !== overruleRTL ? valueGet.call(this.el).split("").reverse().join("") : valueGet.call(this.el);
|
1188 |
+
}, npt.inputmask._valueSet = function(value, overruleRTL) {
|
1189 |
+
valueSet.call(this.el, null === value || value === undefined ? "" : !0 !== overruleRTL && isRTL ? value.split("").reverse().join("") : value);
|
1190 |
+
}, valueGet === undefined && (valueGet = function() {
|
1191 |
+
return this.value;
|
1192 |
+
}, valueSet = function(value) {
|
1193 |
+
this.value = value;
|
1194 |
+
}, function(type) {
|
1195 |
+
if ($.valHooks && ($.valHooks[type] === undefined || !0 !== $.valHooks[type].inputmaskpatch)) {
|
1196 |
+
var valhookGet = $.valHooks[type] && $.valHooks[type].get ? $.valHooks[type].get : function(elem) {
|
1197 |
+
return elem.value;
|
1198 |
+
}, valhookSet = $.valHooks[type] && $.valHooks[type].set ? $.valHooks[type].set : function(elem, value) {
|
1199 |
+
return elem.value = value, elem;
|
1200 |
+
};
|
1201 |
+
$.valHooks[type] = {
|
1202 |
+
get: function(elem) {
|
1203 |
+
if (elem.inputmask) {
|
1204 |
+
if (elem.inputmask.opts.autoUnmask) return elem.inputmask.unmaskedvalue();
|
1205 |
+
var result = valhookGet(elem);
|
1206 |
+
return -1 !== getLastValidPosition(undefined, undefined, elem.inputmask.maskset.validPositions) || !0 !== opts.nullable ? result : "";
|
1207 |
+
}
|
1208 |
+
return valhookGet(elem);
|
1209 |
+
},
|
1210 |
+
set: function(elem, value) {
|
1211 |
+
var result, $elem = $(elem);
|
1212 |
+
return result = valhookSet(elem, value), elem.inputmask && $elem.trigger("setvalue", [ value ]),
|
1213 |
+
result;
|
1214 |
+
},
|
1215 |
+
inputmaskpatch: !0
|
1216 |
+
};
|
1217 |
+
}
|
1218 |
+
}(npt.type), function(npt) {
|
1219 |
+
EventRuler.on(npt, "mouseenter", function(event) {
|
1220 |
+
var $input = $(this);
|
1221 |
+
this.inputmask._valueGet() !== getBuffer().join("") && $input.trigger("setvalue");
|
1222 |
+
});
|
1223 |
+
}(npt));
|
1224 |
+
}
|
1225 |
+
}(input) : input.inputmask = undefined, isSupported;
|
1226 |
+
}(elem, opts);
|
1227 |
+
if (!1 !== isSupported && ($el = $(el = elem), -1 === (maxLength = el !== undefined ? el.maxLength : undefined) && (maxLength = undefined),
|
1228 |
+
!0 === opts.colorMask && initializeColorMask(el), mobile && ("inputmode" in el && (el.inputmode = opts.inputmode,
|
1229 |
+
el.setAttribute("inputmode", opts.inputmode)), !0 === opts.disablePredictiveText && ("autocorrect" in el ? el.autocorrect = !1 : (!0 !== opts.colorMask && initializeColorMask(el),
|
1230 |
+
el.type = "password"))), !0 === isSupported && (EventRuler.on(el, "submit", EventHandlers.submitEvent),
|
1231 |
+
EventRuler.on(el, "reset", EventHandlers.resetEvent), EventRuler.on(el, "blur", EventHandlers.blurEvent),
|
1232 |
+
EventRuler.on(el, "focus", EventHandlers.focusEvent), !0 !== opts.colorMask && (EventRuler.on(el, "click", EventHandlers.clickEvent),
|
1233 |
+
EventRuler.on(el, "mouseleave", EventHandlers.mouseleaveEvent), EventRuler.on(el, "mouseenter", EventHandlers.mouseenterEvent)),
|
1234 |
+
EventRuler.on(el, "dblclick", EventHandlers.dblclickEvent), EventRuler.on(el, "paste", EventHandlers.pasteEvent),
|
1235 |
+
EventRuler.on(el, "dragdrop", EventHandlers.pasteEvent), EventRuler.on(el, "drop", EventHandlers.pasteEvent),
|
1236 |
+
EventRuler.on(el, "cut", EventHandlers.cutEvent), EventRuler.on(el, "complete", opts.oncomplete),
|
1237 |
+
EventRuler.on(el, "incomplete", opts.onincomplete), EventRuler.on(el, "cleared", opts.oncleared),
|
1238 |
+
mobile || !0 === opts.inputEventOnly ? el.removeAttribute("maxLength") : (EventRuler.on(el, "keydown", EventHandlers.keydownEvent),
|
1239 |
+
EventRuler.on(el, "keypress", EventHandlers.keypressEvent)), EventRuler.on(el, "compositionstart", $.noop),
|
1240 |
+
EventRuler.on(el, "compositionupdate", $.noop), EventRuler.on(el, "compositionend", $.noop),
|
1241 |
+
EventRuler.on(el, "keyup", $.noop), EventRuler.on(el, "input", EventHandlers.inputFallBackEvent),
|
1242 |
+
EventRuler.on(el, "beforeinput", EventHandlers.beforeInputEvent)), EventRuler.on(el, "setvalue", EventHandlers.setValueEvent),
|
1243 |
+
undoValue = getBufferTemplate().join(""), "" !== el.inputmask._valueGet(!0) || !1 === opts.clearMaskOnLostFocus || document.activeElement === el)) {
|
1244 |
+
var initialValue = $.isFunction(opts.onBeforeMask) && opts.onBeforeMask.call(inputmask, el.inputmask._valueGet(!0), opts) || el.inputmask._valueGet(!0);
|
1245 |
+
"" !== initialValue && checkVal(el, !0, !1, initialValue.split(""));
|
1246 |
+
var buffer = getBuffer().slice();
|
1247 |
+
undoValue = buffer.join(""), !1 === isComplete(buffer) && opts.clearIncomplete && resetMaskSet(),
|
1248 |
+
opts.clearMaskOnLostFocus && document.activeElement !== el && (-1 === getLastValidPosition() ? buffer = [] : clearOptionalTail(buffer)),
|
1249 |
+
(!1 === opts.clearMaskOnLostFocus || opts.showMaskOnFocus && document.activeElement === el || "" !== el.inputmask._valueGet(!0)) && writeBuffer(el, buffer),
|
1250 |
+
document.activeElement === el && caret(el, seekNext(getLastValidPosition()));
|
1251 |
+
}
|
1252 |
+
}(el);
|
1253 |
+
break;
|
1254 |
+
|
1255 |
+
case "format":
|
1256 |
+
return valueBuffer = ($.isFunction(opts.onBeforeMask) && opts.onBeforeMask.call(inputmask, actionObj.value, opts) || actionObj.value).split(""),
|
1257 |
+
checkVal.call(this, undefined, !0, !1, valueBuffer), actionObj.metadata ? {
|
1258 |
+
value: isRTL ? getBuffer().slice().reverse().join("") : getBuffer().join(""),
|
1259 |
+
metadata: maskScope.call(this, {
|
1260 |
+
action: "getmetadata"
|
1261 |
+
}, maskset, opts)
|
1262 |
+
} : isRTL ? getBuffer().slice().reverse().join("") : getBuffer().join("");
|
1263 |
+
|
1264 |
+
case "isValid":
|
1265 |
+
actionObj.value ? (valueBuffer = actionObj.value.split(""), checkVal.call(this, undefined, !0, !0, valueBuffer)) : actionObj.value = getBuffer().join("");
|
1266 |
+
for (var buffer = getBuffer(), rl = determineLastRequiredPosition(), lmib = buffer.length - 1; lmib > rl && !isMask(lmib); lmib--) ;
|
1267 |
+
return buffer.splice(rl, lmib + 1 - rl), isComplete(buffer) && actionObj.value === getBuffer().join("");
|
1268 |
+
|
1269 |
+
case "getemptymask":
|
1270 |
+
return getBufferTemplate().join("");
|
1271 |
+
|
1272 |
+
case "remove":
|
1273 |
+
if (el && el.inputmask) $.data(el, "_inputmask_opts", null), $el = $(el), el.inputmask._valueSet(opts.autoUnmask ? unmaskedvalue(el) : el.inputmask._valueGet(!0)),
|
1274 |
+
EventRuler.off(el), el.inputmask.colorMask && ((colorMask = el.inputmask.colorMask).removeChild(el),
|
1275 |
+
colorMask.parentNode.insertBefore(el, colorMask), colorMask.parentNode.removeChild(colorMask)),
|
1276 |
+
Object.getOwnPropertyDescriptor && Object.getPrototypeOf ? Object.getOwnPropertyDescriptor(Object.getPrototypeOf(el), "value") && el.inputmask.__valueGet && Object.defineProperty(el, "value", {
|
1277 |
+
get: el.inputmask.__valueGet,
|
1278 |
+
set: el.inputmask.__valueSet,
|
1279 |
+
configurable: !0
|
1280 |
+
}) : document.__lookupGetter__ && el.__lookupGetter__("value") && el.inputmask.__valueGet && (el.__defineGetter__("value", el.inputmask.__valueGet),
|
1281 |
+
el.__defineSetter__("value", el.inputmask.__valueSet)), el.inputmask = undefined;
|
1282 |
+
return el;
|
1283 |
+
|
1284 |
+
case "getmetadata":
|
1285 |
+
if ($.isArray(maskset.metadata)) {
|
1286 |
+
var maskTarget = getMaskTemplate(!0, 0, !1).join("");
|
1287 |
+
return $.each(maskset.metadata, function(ndx, mtdt) {
|
1288 |
+
if (mtdt.mask === maskTarget) return maskTarget = mtdt, !1;
|
1289 |
+
}), maskTarget;
|
1290 |
+
}
|
1291 |
+
return maskset.metadata;
|
1292 |
+
}
|
1293 |
+
}
|
1294 |
+
return Inputmask.prototype = {
|
1295 |
+
dataAttribute: "data-inputmask",
|
1296 |
+
defaults: {
|
1297 |
+
placeholder: "_",
|
1298 |
+
optionalmarker: [ "[", "]" ],
|
1299 |
+
quantifiermarker: [ "{", "}" ],
|
1300 |
+
groupmarker: [ "(", ")" ],
|
1301 |
+
alternatormarker: "|",
|
1302 |
+
escapeChar: "\\",
|
1303 |
+
mask: null,
|
1304 |
+
regex: null,
|
1305 |
+
oncomplete: $.noop,
|
1306 |
+
onincomplete: $.noop,
|
1307 |
+
oncleared: $.noop,
|
1308 |
+
repeat: 0,
|
1309 |
+
greedy: !1,
|
1310 |
+
autoUnmask: !1,
|
1311 |
+
removeMaskOnSubmit: !1,
|
1312 |
+
clearMaskOnLostFocus: !0,
|
1313 |
+
insertMode: !0,
|
1314 |
+
clearIncomplete: !1,
|
1315 |
+
alias: null,
|
1316 |
+
onKeyDown: $.noop,
|
1317 |
+
onBeforeMask: null,
|
1318 |
+
onBeforePaste: function(pastedValue, opts) {
|
1319 |
+
return $.isFunction(opts.onBeforeMask) ? opts.onBeforeMask.call(this, pastedValue, opts) : pastedValue;
|
1320 |
+
},
|
1321 |
+
onBeforeWrite: null,
|
1322 |
+
onUnMask: null,
|
1323 |
+
showMaskOnFocus: !0,
|
1324 |
+
showMaskOnHover: !0,
|
1325 |
+
onKeyValidation: $.noop,
|
1326 |
+
skipOptionalPartCharacter: " ",
|
1327 |
+
numericInput: !1,
|
1328 |
+
rightAlign: !1,
|
1329 |
+
undoOnEscape: !0,
|
1330 |
+
radixPoint: "",
|
1331 |
+
_radixDance: !1,
|
1332 |
+
groupSeparator: "",
|
1333 |
+
keepStatic: null,
|
1334 |
+
positionCaretOnTab: !0,
|
1335 |
+
tabThrough: !1,
|
1336 |
+
supportsInputType: [ "text", "tel", "password", "search" ],
|
1337 |
+
ignorables: [ 8, 9, 13, 19, 27, 33, 34, 35, 36, 37, 38, 39, 40, 45, 46, 93, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 0, 229 ],
|
1338 |
+
isComplete: null,
|
1339 |
+
preValidation: null,
|
1340 |
+
postValidation: null,
|
1341 |
+
staticDefinitionSymbol: undefined,
|
1342 |
+
jitMasking: !1,
|
1343 |
+
nullable: !0,
|
1344 |
+
inputEventOnly: !1,
|
1345 |
+
noValuePatching: !1,
|
1346 |
+
positionCaretOnClick: "lvp",
|
1347 |
+
casing: null,
|
1348 |
+
inputmode: "verbatim",
|
1349 |
+
colorMask: !1,
|
1350 |
+
disablePredictiveText: !1,
|
1351 |
+
importDataAttributes: !0
|
1352 |
+
},
|
1353 |
+
definitions: {
|
1354 |
+
9: {
|
1355 |
+
validator: "[0-91-9]",
|
1356 |
+
definitionSymbol: "*"
|
1357 |
+
},
|
1358 |
+
a: {
|
1359 |
+
validator: "[A-Za-zА-яЁёÀ-ÿµ]",
|
1360 |
+
definitionSymbol: "*"
|
1361 |
+
},
|
1362 |
+
"*": {
|
1363 |
+
validator: "[0-91-9A-Za-zА-яЁёÀ-ÿµ]"
|
1364 |
+
}
|
1365 |
+
},
|
1366 |
+
aliases: {},
|
1367 |
+
masksCache: {},
|
1368 |
+
mask: function(elems) {
|
1369 |
+
var that = this;
|
1370 |
+
return "string" == typeof elems && (elems = document.getElementById(elems) || document.querySelectorAll(elems)),
|
1371 |
+
elems = elems.nodeName ? [ elems ] : elems, $.each(elems, function(ndx, el) {
|
1372 |
+
var scopedOpts = $.extend(!0, {}, that.opts);
|
1373 |
+
if (function(npt, opts, userOptions, dataAttribute) {
|
1374 |
+
if (!0 === opts.importDataAttributes) {
|
1375 |
+
var option, dataoptions, optionData, p, importOption = function(option, optionData) {
|
1376 |
+
null !== (optionData = optionData !== undefined ? optionData : npt.getAttribute(dataAttribute + "-" + option)) && ("string" == typeof optionData && (0 === option.indexOf("on") ? optionData = window[optionData] : "false" === optionData ? optionData = !1 : "true" === optionData && (optionData = !0)),
|
1377 |
+
userOptions[option] = optionData);
|
1378 |
+
}, attrOptions = npt.getAttribute(dataAttribute);
|
1379 |
+
if (attrOptions && "" !== attrOptions && (attrOptions = attrOptions.replace(/'/g, '"'),
|
1380 |
+
dataoptions = JSON.parse("{" + attrOptions + "}")), dataoptions) for (p in optionData = undefined,
|
1381 |
+
dataoptions) if ("alias" === p.toLowerCase()) {
|
1382 |
+
optionData = dataoptions[p];
|
1383 |
+
break;
|
1384 |
+
}
|
1385 |
+
for (option in importOption("alias", optionData), userOptions.alias && resolveAlias(userOptions.alias, userOptions, opts),
|
1386 |
+
opts) {
|
1387 |
+
if (dataoptions) for (p in optionData = undefined, dataoptions) if (p.toLowerCase() === option.toLowerCase()) {
|
1388 |
+
optionData = dataoptions[p];
|
1389 |
+
break;
|
1390 |
+
}
|
1391 |
+
importOption(option, optionData);
|
1392 |
+
}
|
1393 |
+
}
|
1394 |
+
return $.extend(!0, opts, userOptions), ("rtl" === npt.dir || opts.rightAlign) && (npt.style.textAlign = "right"),
|
1395 |
+
("rtl" === npt.dir || opts.numericInput) && (npt.dir = "ltr", npt.removeAttribute("dir"),
|
1396 |
+
opts.isRTL = !0), Object.keys(userOptions).length;
|
1397 |
+
}(el, scopedOpts, $.extend(!0, {}, that.userOptions), that.dataAttribute)) {
|
1398 |
+
var maskset = generateMaskSet(scopedOpts, that.noMasksCache);
|
1399 |
+
maskset !== undefined && (el.inputmask !== undefined && (el.inputmask.opts.autoUnmask = !0,
|
1400 |
+
el.inputmask.remove()), el.inputmask = new Inputmask(undefined, undefined, !0),
|
1401 |
+
el.inputmask.opts = scopedOpts, el.inputmask.noMasksCache = that.noMasksCache, el.inputmask.userOptions = $.extend(!0, {}, that.userOptions),
|
1402 |
+
el.inputmask.isRTL = scopedOpts.isRTL || scopedOpts.numericInput, el.inputmask.el = el,
|
1403 |
+
el.inputmask.maskset = maskset, $.data(el, "_inputmask_opts", scopedOpts), maskScope.call(el.inputmask, {
|
1404 |
+
action: "mask"
|
1405 |
+
}));
|
1406 |
+
}
|
1407 |
+
}), elems && elems[0] && elems[0].inputmask || this;
|
1408 |
+
},
|
1409 |
+
option: function(options, noremask) {
|
1410 |
+
return "string" == typeof options ? this.opts[options] : "object" === (void 0 === options ? "undefined" : _typeof(options)) ? ($.extend(this.userOptions, options),
|
1411 |
+
this.el && !0 !== noremask && this.mask(this.el), this) : void 0;
|
1412 |
+
},
|
1413 |
+
unmaskedvalue: function(value) {
|
1414 |
+
return this.maskset = this.maskset || generateMaskSet(this.opts, this.noMasksCache),
|
1415 |
+
maskScope.call(this, {
|
1416 |
+
action: "unmaskedvalue",
|
1417 |
+
value: value
|
1418 |
+
});
|
1419 |
+
},
|
1420 |
+
remove: function() {
|
1421 |
+
return maskScope.call(this, {
|
1422 |
+
action: "remove"
|
1423 |
+
});
|
1424 |
+
},
|
1425 |
+
getemptymask: function() {
|
1426 |
+
return this.maskset = this.maskset || generateMaskSet(this.opts, this.noMasksCache),
|
1427 |
+
maskScope.call(this, {
|
1428 |
+
action: "getemptymask"
|
1429 |
+
});
|
1430 |
+
},
|
1431 |
+
hasMaskedValue: function() {
|
1432 |
+
return !this.opts.autoUnmask;
|
1433 |
+
},
|
1434 |
+
isComplete: function() {
|
1435 |
+
return this.maskset = this.maskset || generateMaskSet(this.opts, this.noMasksCache),
|
1436 |
+
maskScope.call(this, {
|
1437 |
+
action: "isComplete"
|
1438 |
+
});
|
1439 |
+
},
|
1440 |
+
getmetadata: function() {
|
1441 |
+
return this.maskset = this.maskset || generateMaskSet(this.opts, this.noMasksCache),
|
1442 |
+
maskScope.call(this, {
|
1443 |
+
action: "getmetadata"
|
1444 |
+
});
|
1445 |
+
},
|
1446 |
+
isValid: function(value) {
|
1447 |
+
return this.maskset = this.maskset || generateMaskSet(this.opts, this.noMasksCache),
|
1448 |
+
maskScope.call(this, {
|
1449 |
+
action: "isValid",
|
1450 |
+
value: value
|
1451 |
+
});
|
1452 |
+
},
|
1453 |
+
format: function(value, metadata) {
|
1454 |
+
return this.maskset = this.maskset || generateMaskSet(this.opts, this.noMasksCache),
|
1455 |
+
maskScope.call(this, {
|
1456 |
+
action: "format",
|
1457 |
+
value: value,
|
1458 |
+
metadata: metadata
|
1459 |
+
});
|
1460 |
+
},
|
1461 |
+
setValue: function(value) {
|
1462 |
+
this.el && $(this.el).trigger("setvalue", [ value ]);
|
1463 |
+
},
|
1464 |
+
analyseMask: function(mask, regexMask, opts) {
|
1465 |
+
var match, m, openingToken, currentOpeningToken, alternator, lastMatch, tokenizer = /(?:[?*+]|\{[0-9\+\*]+(?:,[0-9\+\*]*)?(?:\|[0-9\+\*]*)?\})|[^.?*+^${[]()|\\]+|./g, regexTokenizer = /\[\^?]?(?:[^\\\]]+|\\[\S\s]?)*]?|\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9][0-9]*|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|c[A-Za-z]|[\S\s]?)|\((?:\?[:=!]?)?|(?:[?*+]|\{[0-9]+(?:,[0-9]*)?\})\??|[^.?*+^${[()|\\]+|./g, escaped = !1, currentToken = new MaskToken(), openenings = [], maskTokens = [];
|
1466 |
+
function MaskToken(isGroup, isOptional, isQuantifier, isAlternator) {
|
1467 |
+
this.matches = [], this.openGroup = isGroup || !1, this.alternatorGroup = !1, this.isGroup = isGroup || !1,
|
1468 |
+
this.isOptional = isOptional || !1, this.isQuantifier = isQuantifier || !1, this.isAlternator = isAlternator || !1,
|
1469 |
+
this.quantifier = {
|
1470 |
+
min: 1,
|
1471 |
+
max: 1
|
1472 |
+
};
|
1473 |
+
}
|
1474 |
+
function insertTestDefinition(mtoken, element, position) {
|
1475 |
+
position = position !== undefined ? position : mtoken.matches.length;
|
1476 |
+
var prevMatch = mtoken.matches[position - 1];
|
1477 |
+
if (regexMask) 0 === element.indexOf("[") || escaped && /\\d|\\s|\\w]/i.test(element) || "." === element ? mtoken.matches.splice(position++, 0, {
|
1478 |
+
fn: new RegExp(element, opts.casing ? "i" : ""),
|
1479 |
+
optionality: !1,
|
1480 |
+
newBlockMarker: prevMatch === undefined ? "master" : prevMatch.def !== element,
|
1481 |
+
casing: null,
|
1482 |
+
def: element,
|
1483 |
+
placeholder: undefined,
|
1484 |
+
nativeDef: element
|
1485 |
+
}) : (escaped && (element = element[element.length - 1]), $.each(element.split(""), function(ndx, lmnt) {
|
1486 |
+
prevMatch = mtoken.matches[position - 1], mtoken.matches.splice(position++, 0, {
|
1487 |
+
fn: null,
|
1488 |
+
optionality: !1,
|
1489 |
+
newBlockMarker: prevMatch === undefined ? "master" : prevMatch.def !== lmnt && null !== prevMatch.fn,
|
1490 |
+
casing: null,
|
1491 |
+
def: opts.staticDefinitionSymbol || lmnt,
|
1492 |
+
placeholder: opts.staticDefinitionSymbol !== undefined ? lmnt : undefined,
|
1493 |
+
nativeDef: (escaped ? "'" : "") + lmnt
|
1494 |
+
});
|
1495 |
+
})), escaped = !1; else {
|
1496 |
+
var maskdef = (opts.definitions ? opts.definitions[element] : undefined) || Inputmask.prototype.definitions[element];
|
1497 |
+
maskdef && !escaped ? mtoken.matches.splice(position++, 0, {
|
1498 |
+
fn: maskdef.validator ? "string" == typeof maskdef.validator ? new RegExp(maskdef.validator, opts.casing ? "i" : "") : new function() {
|
1499 |
+
this.test = maskdef.validator;
|
1500 |
+
}() : new RegExp("."),
|
1501 |
+
optionality: !1,
|
1502 |
+
newBlockMarker: prevMatch === undefined ? "master" : prevMatch.def !== (maskdef.definitionSymbol || element),
|
1503 |
+
casing: maskdef.casing,
|
1504 |
+
def: maskdef.definitionSymbol || element,
|
1505 |
+
placeholder: maskdef.placeholder,
|
1506 |
+
nativeDef: element
|
1507 |
+
}) : (mtoken.matches.splice(position++, 0, {
|
1508 |
+
fn: null,
|
1509 |
+
optionality: !1,
|
1510 |
+
newBlockMarker: prevMatch === undefined ? "master" : prevMatch.def !== element && null !== prevMatch.fn,
|
1511 |
+
casing: null,
|
1512 |
+
def: opts.staticDefinitionSymbol || element,
|
1513 |
+
placeholder: opts.staticDefinitionSymbol !== undefined ? element : undefined,
|
1514 |
+
nativeDef: (escaped ? "'" : "") + element
|
1515 |
+
}), escaped = !1);
|
1516 |
+
}
|
1517 |
+
}
|
1518 |
+
function defaultCase() {
|
1519 |
+
if (openenings.length > 0) {
|
1520 |
+
if (insertTestDefinition(currentOpeningToken = openenings[openenings.length - 1], m),
|
1521 |
+
currentOpeningToken.isAlternator) {
|
1522 |
+
alternator = openenings.pop();
|
1523 |
+
for (var mndx = 0; mndx < alternator.matches.length; mndx++) alternator.matches[mndx].isGroup && (alternator.matches[mndx].isGroup = !1);
|
1524 |
+
openenings.length > 0 ? (currentOpeningToken = openenings[openenings.length - 1]).matches.push(alternator) : currentToken.matches.push(alternator);
|
1525 |
+
}
|
1526 |
+
} else insertTestDefinition(currentToken, m);
|
1527 |
+
}
|
1528 |
+
function groupify(matches) {
|
1529 |
+
var groupToken = new MaskToken(!0);
|
1530 |
+
return groupToken.openGroup = !1, groupToken.matches = matches, groupToken;
|
1531 |
+
}
|
1532 |
+
for (regexMask && (opts.optionalmarker[0] = undefined, opts.optionalmarker[1] = undefined); match = regexMask ? regexTokenizer.exec(mask) : tokenizer.exec(mask); ) {
|
1533 |
+
if (m = match[0], regexMask) switch (m.charAt(0)) {
|
1534 |
+
case "?":
|
1535 |
+
m = "{0,1}";
|
1536 |
+
break;
|
1537 |
+
|
1538 |
+
case "+":
|
1539 |
+
case "*":
|
1540 |
+
m = "{" + m + "}";
|
1541 |
+
}
|
1542 |
+
if (escaped) defaultCase(); else switch (m.charAt(0)) {
|
1543 |
+
case "(?=":
|
1544 |
+
case "(?!":
|
1545 |
+
case "(?<=":
|
1546 |
+
case "(?<!":
|
1547 |
+
break;
|
1548 |
+
|
1549 |
+
case opts.escapeChar:
|
1550 |
+
escaped = !0, regexMask && defaultCase();
|
1551 |
+
break;
|
1552 |
+
|
1553 |
+
case opts.optionalmarker[1]:
|
1554 |
+
case opts.groupmarker[1]:
|
1555 |
+
if ((openingToken = openenings.pop()).openGroup = !1, openingToken !== undefined) if (openenings.length > 0) {
|
1556 |
+
if ((currentOpeningToken = openenings[openenings.length - 1]).matches.push(openingToken),
|
1557 |
+
currentOpeningToken.isAlternator) {
|
1558 |
+
alternator = openenings.pop();
|
1559 |
+
for (var mndx = 0; mndx < alternator.matches.length; mndx++) alternator.matches[mndx].isGroup = !1,
|
1560 |
+
alternator.matches[mndx].alternatorGroup = !1;
|
1561 |
+
openenings.length > 0 ? (currentOpeningToken = openenings[openenings.length - 1]).matches.push(alternator) : currentToken.matches.push(alternator);
|
1562 |
+
}
|
1563 |
+
} else currentToken.matches.push(openingToken); else defaultCase();
|
1564 |
+
break;
|
1565 |
+
|
1566 |
+
case opts.optionalmarker[0]:
|
1567 |
+
openenings.push(new MaskToken(!1, !0));
|
1568 |
+
break;
|
1569 |
+
|
1570 |
+
case opts.groupmarker[0]:
|
1571 |
+
openenings.push(new MaskToken(!0));
|
1572 |
+
break;
|
1573 |
+
|
1574 |
+
case opts.quantifiermarker[0]:
|
1575 |
+
var quantifier = new MaskToken(!1, !1, !0), mqj = (m = m.replace(/[{}]/g, "")).split("|"), mq = mqj[0].split(","), mq0 = isNaN(mq[0]) ? mq[0] : parseInt(mq[0]), mq1 = 1 === mq.length ? mq0 : isNaN(mq[1]) ? mq[1] : parseInt(mq[1]);
|
1576 |
+
"*" !== mq0 && "+" !== mq0 || (mq0 = "*" === mq1 ? 0 : 1), quantifier.quantifier = {
|
1577 |
+
min: mq0,
|
1578 |
+
max: mq1,
|
1579 |
+
jit: mqj[1]
|
1580 |
+
};
|
1581 |
+
var matches = openenings.length > 0 ? openenings[openenings.length - 1].matches : currentToken.matches;
|
1582 |
+
if ((match = matches.pop()).isAlternator) {
|
1583 |
+
matches.push(match), matches = match.matches;
|
1584 |
+
var groupToken = new MaskToken(!0), tmpMatch = matches.pop();
|
1585 |
+
matches.push(groupToken), matches = groupToken.matches, match = tmpMatch;
|
1586 |
+
}
|
1587 |
+
match.isGroup || (match = groupify([ match ])), matches.push(match), matches.push(quantifier);
|
1588 |
+
break;
|
1589 |
+
|
1590 |
+
case opts.alternatormarker:
|
1591 |
+
var groupQuantifier = function(matches) {
|
1592 |
+
var lastMatch = matches.pop();
|
1593 |
+
return lastMatch.isQuantifier && (lastMatch = groupify([ matches.pop(), lastMatch ])),
|
1594 |
+
lastMatch;
|
1595 |
+
};
|
1596 |
+
if (openenings.length > 0) {
|
1597 |
+
var subToken = (currentOpeningToken = openenings[openenings.length - 1]).matches[currentOpeningToken.matches.length - 1];
|
1598 |
+
lastMatch = currentOpeningToken.openGroup && (subToken.matches === undefined || !1 === subToken.isGroup && !1 === subToken.isAlternator) ? openenings.pop() : groupQuantifier(currentOpeningToken.matches);
|
1599 |
+
} else lastMatch = groupQuantifier(currentToken.matches);
|
1600 |
+
if (lastMatch.isAlternator) openenings.push(lastMatch); else if (lastMatch.alternatorGroup ? (alternator = openenings.pop(),
|
1601 |
+
lastMatch.alternatorGroup = !1) : alternator = new MaskToken(!1, !1, !1, !0), alternator.matches.push(lastMatch),
|
1602 |
+
openenings.push(alternator), lastMatch.openGroup) {
|
1603 |
+
lastMatch.openGroup = !1;
|
1604 |
+
var alternatorGroup = new MaskToken(!0);
|
1605 |
+
alternatorGroup.alternatorGroup = !0, openenings.push(alternatorGroup);
|
1606 |
+
}
|
1607 |
+
break;
|
1608 |
+
|
1609 |
+
default:
|
1610 |
+
defaultCase();
|
1611 |
+
}
|
1612 |
+
}
|
1613 |
+
for (;openenings.length > 0; ) openingToken = openenings.pop(), currentToken.matches.push(openingToken);
|
1614 |
+
return currentToken.matches.length > 0 && (!function verifyGroupMarker(maskToken) {
|
1615 |
+
maskToken && maskToken.matches && $.each(maskToken.matches, function(ndx, token) {
|
1616 |
+
var nextToken = maskToken.matches[ndx + 1];
|
1617 |
+
(nextToken === undefined || nextToken.matches === undefined || !1 === nextToken.isQuantifier) && token && token.isGroup && (token.isGroup = !1,
|
1618 |
+
regexMask || (insertTestDefinition(token, opts.groupmarker[0], 0), !0 !== token.openGroup && insertTestDefinition(token, opts.groupmarker[1]))),
|
1619 |
+
verifyGroupMarker(token);
|
1620 |
+
});
|
1621 |
+
}(currentToken), maskTokens.push(currentToken)), (opts.numericInput || opts.isRTL) && function reverseTokens(maskToken) {
|
1622 |
+
for (var match in maskToken.matches = maskToken.matches.reverse(), maskToken.matches) if (maskToken.matches.hasOwnProperty(match)) {
|
1623 |
+
var intMatch = parseInt(match);
|
1624 |
+
if (maskToken.matches[match].isQuantifier && maskToken.matches[intMatch + 1] && maskToken.matches[intMatch + 1].isGroup) {
|
1625 |
+
var qt = maskToken.matches[match];
|
1626 |
+
maskToken.matches.splice(match, 1), maskToken.matches.splice(intMatch + 1, 0, qt);
|
1627 |
+
}
|
1628 |
+
maskToken.matches[match].matches !== undefined ? maskToken.matches[match] = reverseTokens(maskToken.matches[match]) : maskToken.matches[match] = ((st = maskToken.matches[match]) === opts.optionalmarker[0] ? st = opts.optionalmarker[1] : st === opts.optionalmarker[1] ? st = opts.optionalmarker[0] : st === opts.groupmarker[0] ? st = opts.groupmarker[1] : st === opts.groupmarker[1] && (st = opts.groupmarker[0]),
|
1629 |
+
st);
|
1630 |
+
}
|
1631 |
+
var st;
|
1632 |
+
return maskToken;
|
1633 |
+
}(maskTokens[0]), maskTokens;
|
1634 |
+
}
|
1635 |
+
}, Inputmask.extendDefaults = function(options) {
|
1636 |
+
$.extend(!0, Inputmask.prototype.defaults, options);
|
1637 |
+
}, Inputmask.extendDefinitions = function(definition) {
|
1638 |
+
$.extend(!0, Inputmask.prototype.definitions, definition);
|
1639 |
+
}, Inputmask.extendAliases = function(alias) {
|
1640 |
+
$.extend(!0, Inputmask.prototype.aliases, alias);
|
1641 |
+
}, Inputmask.format = function(value, options, metadata) {
|
1642 |
+
return Inputmask(options).format(value, metadata);
|
1643 |
+
}, Inputmask.unmask = function(value, options) {
|
1644 |
+
return Inputmask(options).unmaskedvalue(value);
|
1645 |
+
}, Inputmask.isValid = function(value, options) {
|
1646 |
+
return Inputmask(options).isValid(value);
|
1647 |
+
}, Inputmask.remove = function(elems) {
|
1648 |
+
"string" == typeof elems && (elems = document.getElementById(elems) || document.querySelectorAll(elems)),
|
1649 |
+
elems = elems.nodeName ? [ elems ] : elems, $.each(elems, function(ndx, el) {
|
1650 |
+
el.inputmask && el.inputmask.remove();
|
1651 |
+
});
|
1652 |
+
}, Inputmask.setValue = function(elems, value) {
|
1653 |
+
"string" == typeof elems && (elems = document.getElementById(elems) || document.querySelectorAll(elems)),
|
1654 |
+
elems = elems.nodeName ? [ elems ] : elems, $.each(elems, function(ndx, el) {
|
1655 |
+
el.inputmask ? el.inputmask.setValue(value) : $(el).trigger("setvalue", [ value ]);
|
1656 |
+
});
|
1657 |
+
}, Inputmask.escapeRegex = function(str) {
|
1658 |
+
return str.replace(new RegExp("(\\" + [ "/", ".", "*", "+", "?", "|", "(", ")", "[", "]", "{", "}", "\\", "$", "^" ].join("|\\") + ")", "gim"), "\\$1");
|
1659 |
+
}, Inputmask.keyCode = {
|
1660 |
+
BACKSPACE: 8,
|
1661 |
+
BACKSPACE_SAFARI: 127,
|
1662 |
+
DELETE: 46,
|
1663 |
+
DOWN: 40,
|
1664 |
+
END: 35,
|
1665 |
+
ENTER: 13,
|
1666 |
+
ESCAPE: 27,
|
1667 |
+
HOME: 36,
|
1668 |
+
INSERT: 45,
|
1669 |
+
LEFT: 37,
|
1670 |
+
PAGE_DOWN: 34,
|
1671 |
+
PAGE_UP: 33,
|
1672 |
+
RIGHT: 39,
|
1673 |
+
SPACE: 32,
|
1674 |
+
TAB: 9,
|
1675 |
+
UP: 38,
|
1676 |
+
X: 88,
|
1677 |
+
CONTROL: 17
|
1678 |
+
}, Inputmask;
|
1679 |
+
}, __WEBPACK_AMD_DEFINE_ARRAY__ = [ __webpack_require__(0), __webpack_require__(5), __webpack_require__(6) ],
|
1680 |
+
void 0 === (__WEBPACK_AMD_DEFINE_RESULT__ = "function" == typeof (__WEBPACK_AMD_DEFINE_FACTORY__ = factory) ? __WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__) : __WEBPACK_AMD_DEFINE_FACTORY__) || (module.exports = __WEBPACK_AMD_DEFINE_RESULT__);
|
1681 |
+
}, function(module, exports) {
|
1682 |
+
module.exports = jQuery;
|
1683 |
+
}, function(module, exports, __webpack_require__) {
|
1684 |
+
"use strict";
|
1685 |
+
__webpack_require__(4), __webpack_require__(7), __webpack_require__(8), __webpack_require__(9);
|
1686 |
+
var _inputmask2 = _interopRequireDefault(__webpack_require__(1)), _inputmask4 = _interopRequireDefault(__webpack_require__(0)), _jquery2 = _interopRequireDefault(__webpack_require__(2));
|
1687 |
+
function _interopRequireDefault(obj) {
|
1688 |
+
return obj && obj.__esModule ? obj : {
|
1689 |
+
default: obj
|
1690 |
+
};
|
1691 |
+
}
|
1692 |
+
_inputmask4.default === _jquery2.default && __webpack_require__(10), window.Inputmask = _inputmask2.default;
|
1693 |
+
}, function(module, exports, __webpack_require__) {
|
1694 |
+
"use strict";
|
1695 |
+
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__, factory;
|
1696 |
+
"function" == typeof Symbol && Symbol.iterator;
|
1697 |
+
factory = function($, Inputmask) {
|
1698 |
+
var formatCode = {
|
1699 |
+
d: [ "[1-9]|[12][0-9]|3[01]", Date.prototype.setDate, "day", Date.prototype.getDate ],
|
1700 |
+
dd: [ "0[1-9]|[12][0-9]|3[01]", Date.prototype.setDate, "day", function() {
|
1701 |
+
return pad(Date.prototype.getDate.call(this), 2);
|
1702 |
+
} ],
|
1703 |
+
ddd: [ "" ],
|
1704 |
+
dddd: [ "" ],
|
1705 |
+
m: [ "[1-9]|1[012]", Date.prototype.setMonth, "month", function() {
|
1706 |
+
return Date.prototype.getMonth.call(this) + 1;
|
1707 |
+
} ],
|
1708 |
+
mm: [ "0[1-9]|1[012]", Date.prototype.setMonth, "month", function() {
|
1709 |
+
return pad(Date.prototype.getMonth.call(this) + 1, 2);
|
1710 |
+
} ],
|
1711 |
+
mmm: [ "" ],
|
1712 |
+
mmmm: [ "" ],
|
1713 |
+
yy: [ "[0-9]{2}", Date.prototype.setFullYear, "year", function() {
|
1714 |
+
return pad(Date.prototype.getFullYear.call(this), 2);
|
1715 |
+
} ],
|
1716 |
+
yyyy: [ "[0-9]{4}", Date.prototype.setFullYear, "year", function() {
|
1717 |
+
return pad(Date.prototype.getFullYear.call(this), 4);
|
1718 |
+
} ],
|
1719 |
+
h: [ "[1-9]|1[0-2]", Date.prototype.setHours, "hours", Date.prototype.getHours ],
|
1720 |
+
hh: [ "0[1-9]|1[0-2]", Date.prototype.setHours, "hours", function() {
|
1721 |
+
return pad(Date.prototype.getHours.call(this), 2);
|
1722 |
+
} ],
|
1723 |
+
hhh: [ "[0-9]+", Date.prototype.setHours, "hours", Date.prototype.getHours ],
|
1724 |
+
H: [ "1?[0-9]|2[0-3]", Date.prototype.setHours, "hours", Date.prototype.getHours ],
|
1725 |
+
HH: [ "[01][0-9]|2[0-3]", Date.prototype.setHours, "hours", function() {
|
1726 |
+
return pad(Date.prototype.getHours.call(this), 2);
|
1727 |
+
} ],
|
1728 |
+
HHH: [ "[0-9]+", Date.prototype.setHours, "hours", Date.prototype.getHours ],
|
1729 |
+
M: [ "[1-5]?[0-9]", Date.prototype.setMinutes, "minutes", Date.prototype.getMinutes ],
|
1730 |
+
MM: [ "[0-5][0-9]", Date.prototype.setMinutes, "minutes", function() {
|
1731 |
+
return pad(Date.prototype.getMinutes.call(this), 2);
|
1732 |
+
} ],
|
1733 |
+
s: [ "[1-5]?[0-9]", Date.prototype.setSeconds, "seconds", Date.prototype.getSeconds ],
|
1734 |
+
ss: [ "[0-5][0-9]", Date.prototype.setSeconds, "seconds", function() {
|
1735 |
+
return pad(Date.prototype.getSeconds.call(this), 2);
|
1736 |
+
} ],
|
1737 |
+
l: [ "[0-9]{3}", Date.prototype.setMilliseconds, "milliseconds", function() {
|
1738 |
+
return pad(Date.prototype.getMilliseconds.call(this), 3);
|
1739 |
+
} ],
|
1740 |
+
L: [ "[0-9]{2}", Date.prototype.setMilliseconds, "milliseconds", function() {
|
1741 |
+
return pad(Date.prototype.getMilliseconds.call(this), 2);
|
1742 |
+
} ],
|
1743 |
+
t: [ "[ap]" ],
|
1744 |
+
tt: [ "[ap]m" ],
|
1745 |
+
T: [ "[AP]" ],
|
1746 |
+
TT: [ "[AP]M" ],
|
1747 |
+
Z: [ "" ],
|
1748 |
+
o: [ "" ],
|
1749 |
+
S: [ "" ]
|
1750 |
+
}, formatAlias = {
|
1751 |
+
isoDate: "yyyy-mm-dd",
|
1752 |
+
isoTime: "HH:MM:ss",
|
1753 |
+
isoDateTime: "yyyy-mm-dd'T'HH:MM:ss",
|
1754 |
+
isoUtcDateTime: "UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"
|
1755 |
+
};
|
1756 |
+
function getTokenizer(opts) {
|
1757 |
+
if (!opts.tokenizer) {
|
1758 |
+
var tokens = [];
|
1759 |
+
for (var ndx in formatCode) -1 === tokens.indexOf(ndx[0]) && tokens.push(ndx[0]);
|
1760 |
+
opts.tokenizer = "(" + tokens.join("+|") + ")+?|.", opts.tokenizer = new RegExp(opts.tokenizer, "g");
|
1761 |
+
}
|
1762 |
+
return opts.tokenizer;
|
1763 |
+
}
|
1764 |
+
function parse(format, dateObjValue, opts) {
|
1765 |
+
for (var match, mask = ""; match = getTokenizer(opts).exec(format); ) {
|
1766 |
+
if (void 0 === dateObjValue) if (formatCode[match[0]]) mask += "(" + formatCode[match[0]][0] + ")"; else switch (match[0]) {
|
1767 |
+
case "[":
|
1768 |
+
mask += "(";
|
1769 |
+
break;
|
1770 |
+
|
1771 |
+
case "]":
|
1772 |
+
mask += ")?";
|
1773 |
+
break;
|
1774 |
+
|
1775 |
+
default:
|
1776 |
+
mask += Inputmask.escapeRegex(match[0]);
|
1777 |
+
} else if (formatCode[match[0]]) mask += formatCode[match[0]][3].call(dateObjValue.date); else mask += match[0];
|
1778 |
+
}
|
1779 |
+
return mask;
|
1780 |
+
}
|
1781 |
+
function pad(val, len) {
|
1782 |
+
for (val = String(val), len = len || 2; val.length < len; ) val = "0" + val;
|
1783 |
+
return val;
|
1784 |
+
}
|
1785 |
+
function analyseMask(maskString, format, opts) {
|
1786 |
+
var targetProp, match, dateOperation, dateObj = {
|
1787 |
+
date: new Date(1, 0, 1)
|
1788 |
+
}, mask = maskString;
|
1789 |
+
function extendYear(year) {
|
1790 |
+
var correctedyear = 4 === year.length ? year : new Date().getFullYear().toString().substr(0, 4 - year.length) + year;
|
1791 |
+
return opts.min && opts.min.year && opts.max && opts.max.year ? (correctedyear = correctedyear.replace(/[^0-9]/g, ""),
|
1792 |
+
correctedyear += opts.min.year == opts.max.year ? opts.min.year.substr(correctedyear.length) : ("" !== correctedyear && 0 == opts.max.year.indexOf(correctedyear) ? parseInt(opts.max.year) - 1 : parseInt(opts.min.year) + 1).toString().substr(correctedyear.length)) : correctedyear = correctedyear.replace(/[^0-9]/g, "0"),
|
1793 |
+
correctedyear;
|
1794 |
+
}
|
1795 |
+
function setValue(dateObj, value, opts) {
|
1796 |
+
"year" === targetProp ? (dateObj[targetProp] = extendYear(value), dateObj["raw" + targetProp] = value) : dateObj[targetProp] = opts.min && value.match(/[^0-9]/) ? opts.min[targetProp] : value,
|
1797 |
+
void 0 !== dateOperation && dateOperation.call(dateObj.date, "month" == targetProp ? parseInt(dateObj[targetProp]) - 1 : dateObj[targetProp]);
|
1798 |
+
}
|
1799 |
+
if ("string" == typeof mask) {
|
1800 |
+
for (;match = getTokenizer(opts).exec(format); ) {
|
1801 |
+
var value = mask.slice(0, match[0].length);
|
1802 |
+
formatCode.hasOwnProperty(match[0]) && (targetProp = formatCode[match[0]][2], dateOperation = formatCode[match[0]][1],
|
1803 |
+
setValue(dateObj, value, opts)), mask = mask.slice(value.length);
|
1804 |
+
}
|
1805 |
+
return dateObj;
|
1806 |
+
}
|
1807 |
+
}
|
1808 |
+
return Inputmask.extendAliases({
|
1809 |
+
datetime: {
|
1810 |
+
mask: function(opts) {
|
1811 |
+
return formatCode.S = opts.i18n.ordinalSuffix.join("|"), opts.inputFormat = formatAlias[opts.inputFormat] || opts.inputFormat,
|
1812 |
+
opts.displayFormat = formatAlias[opts.displayFormat] || opts.displayFormat || opts.inputFormat,
|
1813 |
+
opts.outputFormat = formatAlias[opts.outputFormat] || opts.outputFormat || opts.inputFormat,
|
1814 |
+
opts.placeholder = "" !== opts.placeholder ? opts.placeholder : opts.inputFormat.replace(/[\[\]]/, ""),
|
1815 |
+
opts.min = analyseMask(opts.min, opts.inputFormat, opts), opts.max = analyseMask(opts.max, opts.inputFormat, opts),
|
1816 |
+
opts.regex = parse(opts.inputFormat, void 0, opts), null;
|
1817 |
+
},
|
1818 |
+
placeholder: "",
|
1819 |
+
inputFormat: "isoDateTime",
|
1820 |
+
displayFormat: void 0,
|
1821 |
+
outputFormat: void 0,
|
1822 |
+
min: null,
|
1823 |
+
max: null,
|
1824 |
+
i18n: {
|
1825 |
+
dayNames: [ "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday" ],
|
1826 |
+
monthNames: [ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ],
|
1827 |
+
ordinalSuffix: [ "st", "nd", "rd", "th" ]
|
1828 |
+
},
|
1829 |
+
postValidation: function(buffer, currentResult, opts) {
|
1830 |
+
var result = currentResult, dateParts = analyseMask(buffer.join(""), opts.inputFormat, opts);
|
1831 |
+
return result && dateParts.date.getTime() == dateParts.date.getTime() && (result = (result = function(dateParts, currentResult) {
|
1832 |
+
return (!isFinite(dateParts.day) || "29" == dateParts.day && !isFinite(dateParts.rawyear) || new Date(dateParts.date.getFullYear(), isFinite(dateParts.month) ? dateParts.month : dateParts.date.getMonth() + 1, 0).getDate() >= dateParts.day) && currentResult;
|
1833 |
+
}(dateParts, result)) && function(dateParts, opts) {
|
1834 |
+
var result = !0;
|
1835 |
+
return opts.min && opts.min.date.getTime() == opts.min.date.getTime() && (result = opts.min.date.getTime() <= dateParts.date.getTime()),
|
1836 |
+
result && opts.max && opts.max.date.getTime() == opts.max.date.getTime() && (result = opts.max.date.getTime() >= dateParts.date.getTime()),
|
1837 |
+
result;
|
1838 |
+
}(dateParts, opts)), result;
|
1839 |
+
},
|
1840 |
+
onKeyDown: function(e, buffer, caretPos, opts) {
|
1841 |
+
if (e.ctrlKey && e.keyCode === Inputmask.keyCode.RIGHT) {
|
1842 |
+
for (var match, today = new Date(), date = ""; match = getTokenizer(opts).exec(opts.inputFormat); ) "d" === match[0].charAt(0) ? date += pad(today.getDate(), match[0].length) : "m" === match[0].charAt(0) ? date += pad(today.getMonth() + 1, match[0].length) : "yyyy" === match[0] ? date += today.getFullYear().toString() : "y" === match[0].charAt(0) && (date += pad(today.getYear(), match[0].length));
|
1843 |
+
this.inputmask._valueSet(date), $(this).trigger("setvalue");
|
1844 |
+
}
|
1845 |
+
},
|
1846 |
+
onUnMask: function(maskedValue, unmaskedValue, opts) {
|
1847 |
+
return parse(opts.outputFormat, analyseMask(maskedValue, opts.inputFormat, opts), opts);
|
1848 |
+
},
|
1849 |
+
casing: function(elem, test, pos, validPositions) {
|
1850 |
+
return 0 == test.nativeDef.indexOf("[ap]") ? elem.toLowerCase() : 0 == test.nativeDef.indexOf("[AP]") ? elem.toUpperCase() : elem;
|
1851 |
+
},
|
1852 |
+
insertMode: !1
|
1853 |
+
}
|
1854 |
+
}), Inputmask;
|
1855 |
+
}, __WEBPACK_AMD_DEFINE_ARRAY__ = [ __webpack_require__(0), __webpack_require__(1) ],
|
1856 |
+
void 0 === (__WEBPACK_AMD_DEFINE_RESULT__ = "function" == typeof (__WEBPACK_AMD_DEFINE_FACTORY__ = factory) ? __WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__) : __WEBPACK_AMD_DEFINE_FACTORY__) || (module.exports = __WEBPACK_AMD_DEFINE_RESULT__);
|
1857 |
+
}, function(module, exports, __webpack_require__) {
|
1858 |
+
"use strict";
|
1859 |
+
var __WEBPACK_AMD_DEFINE_RESULT__;
|
1860 |
+
"function" == typeof Symbol && Symbol.iterator;
|
1861 |
+
void 0 === (__WEBPACK_AMD_DEFINE_RESULT__ = function() {
|
1862 |
+
return window;
|
1863 |
+
}.call(exports, __webpack_require__, exports, module)) || (module.exports = __WEBPACK_AMD_DEFINE_RESULT__);
|
1864 |
+
}, function(module, exports, __webpack_require__) {
|
1865 |
+
"use strict";
|
1866 |
+
var __WEBPACK_AMD_DEFINE_RESULT__;
|
1867 |
+
"function" == typeof Symbol && Symbol.iterator;
|
1868 |
+
void 0 === (__WEBPACK_AMD_DEFINE_RESULT__ = function() {
|
1869 |
+
return document;
|
1870 |
+
}.call(exports, __webpack_require__, exports, module)) || (module.exports = __WEBPACK_AMD_DEFINE_RESULT__);
|
1871 |
+
}, function(module, exports, __webpack_require__) {
|
1872 |
+
"use strict";
|
1873 |
+
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__, factory;
|
1874 |
+
"function" == typeof Symbol && Symbol.iterator;
|
1875 |
+
factory = function($, Inputmask) {
|
1876 |
+
return Inputmask.extendDefinitions({
|
1877 |
+
A: {
|
1878 |
+
validator: "[A-Za-zА-яЁёÀ-ÿµ]",
|
1879 |
+
casing: "upper"
|
1880 |
+
},
|
1881 |
+
"&": {
|
1882 |
+
validator: "[0-9A-Za-zА-яЁёÀ-ÿµ]",
|
1883 |
+
casing: "upper"
|
1884 |
+
},
|
1885 |
+
"#": {
|
1886 |
+
validator: "[0-9A-Fa-f]",
|
1887 |
+
casing: "upper"
|
1888 |
+
}
|
1889 |
+
}), Inputmask.extendAliases({
|
1890 |
+
cssunit: {
|
1891 |
+
regex: "[+-]?[0-9]+\\.?([0-9]+)?(px|em|rem|ex|%|in|cm|mm|pt|pc)"
|
1892 |
+
},
|
1893 |
+
url: {
|
1894 |
+
regex: "(https?|ftp)//.*",
|
1895 |
+
autoUnmask: !1
|
1896 |
+
},
|
1897 |
+
ip: {
|
1898 |
+
mask: "i[i[i]].i[i[i]].i[i[i]].i[i[i]]",
|
1899 |
+
definitions: {
|
1900 |
+
i: {
|
1901 |
+
validator: function(chrs, maskset, pos, strict, opts) {
|
1902 |
+
return pos - 1 > -1 && "." !== maskset.buffer[pos - 1] ? (chrs = maskset.buffer[pos - 1] + chrs,
|
1903 |
+
chrs = pos - 2 > -1 && "." !== maskset.buffer[pos - 2] ? maskset.buffer[pos - 2] + chrs : "0" + chrs) : chrs = "00" + chrs,
|
1904 |
+
new RegExp("25[0-5]|2[0-4][0-9]|[01][0-9][0-9]").test(chrs);
|
1905 |
+
}
|
1906 |
+
}
|
1907 |
+
},
|
1908 |
+
onUnMask: function(maskedValue, unmaskedValue, opts) {
|
1909 |
+
return maskedValue;
|
1910 |
+
},
|
1911 |
+
inputmode: "numeric"
|
1912 |
+
},
|
1913 |
+
email: {
|
1914 |
+
mask: "*{1,64}[.*{1,64}][.*{1,64}][.*{1,63}]@-{1,63}.-{1,63}[.-{1,63}][.-{1,63}]",
|
1915 |
+
greedy: !1,
|
1916 |
+
casing: "lower",
|
1917 |
+
onBeforePaste: function(pastedValue, opts) {
|
1918 |
+
return (pastedValue = pastedValue.toLowerCase()).replace("mailto:", "");
|
1919 |
+
},
|
1920 |
+
definitions: {
|
1921 |
+
"*": {
|
1922 |
+
validator: "[0-91-9A-Za-zА-яЁёÀ-ÿµ!#$%&'*+/=?^_`{|}~-]"
|
1923 |
+
},
|
1924 |
+
"-": {
|
1925 |
+
validator: "[0-9A-Za-z-]"
|
1926 |
+
}
|
1927 |
+
},
|
1928 |
+
onUnMask: function(maskedValue, unmaskedValue, opts) {
|
1929 |
+
return maskedValue;
|
1930 |
+
},
|
1931 |
+
inputmode: "email"
|
1932 |
+
},
|
1933 |
+
mac: {
|
1934 |
+
mask: "##:##:##:##:##:##"
|
1935 |
+
},
|
1936 |
+
vin: {
|
1937 |
+
mask: "V{13}9{4}",
|
1938 |
+
definitions: {
|
1939 |
+
V: {
|
1940 |
+
validator: "[A-HJ-NPR-Za-hj-npr-z\\d]",
|
1941 |
+
casing: "upper"
|
1942 |
+
}
|
1943 |
+
},
|
1944 |
+
clearIncomplete: !0,
|
1945 |
+
autoUnmask: !0
|
1946 |
+
}
|
1947 |
+
}), Inputmask;
|
1948 |
+
}, __WEBPACK_AMD_DEFINE_ARRAY__ = [ __webpack_require__(0), __webpack_require__(1) ],
|
1949 |
+
void 0 === (__WEBPACK_AMD_DEFINE_RESULT__ = "function" == typeof (__WEBPACK_AMD_DEFINE_FACTORY__ = factory) ? __WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__) : __WEBPACK_AMD_DEFINE_FACTORY__) || (module.exports = __WEBPACK_AMD_DEFINE_RESULT__);
|
1950 |
+
}, function(module, exports, __webpack_require__) {
|
1951 |
+
"use strict";
|
1952 |
+
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__, factory;
|
1953 |
+
"function" == typeof Symbol && Symbol.iterator;
|
1954 |
+
factory = function($, Inputmask, undefined) {
|
1955 |
+
function autoEscape(txt, opts) {
|
1956 |
+
for (var escapedTxt = "", i = 0; i < txt.length; i++) Inputmask.prototype.definitions[txt.charAt(i)] || opts.definitions[txt.charAt(i)] || opts.optionalmarker.start === txt.charAt(i) || opts.optionalmarker.end === txt.charAt(i) || opts.quantifiermarker.start === txt.charAt(i) || opts.quantifiermarker.end === txt.charAt(i) || opts.groupmarker.start === txt.charAt(i) || opts.groupmarker.end === txt.charAt(i) || opts.alternatormarker === txt.charAt(i) ? escapedTxt += "\\" + txt.charAt(i) : escapedTxt += txt.charAt(i);
|
1957 |
+
return escapedTxt;
|
1958 |
+
}
|
1959 |
+
return Inputmask.extendAliases({
|
1960 |
+
numeric: {
|
1961 |
+
mask: function(opts) {
|
1962 |
+
if (0 !== opts.repeat && isNaN(opts.integerDigits) && (opts.integerDigits = opts.repeat),
|
1963 |
+
opts.repeat = 0, opts.groupSeparator === opts.radixPoint && opts.digits && "0" !== opts.digits && ("." === opts.radixPoint ? opts.groupSeparator = "," : "," === opts.radixPoint ? opts.groupSeparator = "." : opts.groupSeparator = ""),
|
1964 |
+
" " === opts.groupSeparator && (opts.skipOptionalPartCharacter = undefined), opts.autoGroup = opts.autoGroup && "" !== opts.groupSeparator,
|
1965 |
+
opts.autoGroup && ("string" == typeof opts.groupSize && isFinite(opts.groupSize) && (opts.groupSize = parseInt(opts.groupSize)),
|
1966 |
+
isFinite(opts.integerDigits))) {
|
1967 |
+
var seps = Math.floor(opts.integerDigits / opts.groupSize), mod = opts.integerDigits % opts.groupSize;
|
1968 |
+
opts.integerDigits = parseInt(opts.integerDigits) + (0 === mod ? seps - 1 : seps),
|
1969 |
+
opts.integerDigits < 1 && (opts.integerDigits = "*");
|
1970 |
+
}
|
1971 |
+
opts.placeholder.length > 1 && (opts.placeholder = opts.placeholder.charAt(0)),
|
1972 |
+
"radixFocus" === opts.positionCaretOnClick && "" === opts.placeholder && !1 === opts.integerOptional && (opts.positionCaretOnClick = "lvp"),
|
1973 |
+
opts.definitions[";"] = opts.definitions["~"], opts.definitions[";"].definitionSymbol = "~",
|
1974 |
+
!0 === opts.numericInput && (opts.positionCaretOnClick = "radixFocus" === opts.positionCaretOnClick ? "lvp" : opts.positionCaretOnClick,
|
1975 |
+
opts.digitsOptional = !1, isNaN(opts.digits) && (opts.digits = 2), opts.decimalProtect = !1);
|
1976 |
+
var mask = "[+]";
|
1977 |
+
if (mask += autoEscape(opts.prefix, opts), !0 === opts.integerOptional ? mask += "~{1," + opts.integerDigits + "}" : mask += "~{" + opts.integerDigits + "}",
|
1978 |
+
opts.digits !== undefined) {
|
1979 |
+
var radixDef = opts.decimalProtect ? ":" : opts.radixPoint, dq = opts.digits.toString().split(",");
|
1980 |
+
isFinite(dq[0]) && dq[1] && isFinite(dq[1]) ? mask += radixDef + ";{" + opts.digits + "}" : (isNaN(opts.digits) || parseInt(opts.digits) > 0) && (opts.digitsOptional ? mask += "[" + radixDef + ";{1," + opts.digits + "}]" : mask += radixDef + ";{" + opts.digits + "}");
|
1981 |
+
}
|
1982 |
+
return mask += autoEscape(opts.suffix, opts), mask += "[-]", opts.greedy = !1, mask;
|
1983 |
+
},
|
1984 |
+
placeholder: "",
|
1985 |
+
greedy: !1,
|
1986 |
+
digits: "*",
|
1987 |
+
digitsOptional: !0,
|
1988 |
+
enforceDigitsOnBlur: !1,
|
1989 |
+
radixPoint: ".",
|
1990 |
+
positionCaretOnClick: "radixFocus",
|
1991 |
+
groupSize: 3,
|
1992 |
+
groupSeparator: "",
|
1993 |
+
autoGroup: !1,
|
1994 |
+
allowMinus: !0,
|
1995 |
+
negationSymbol: {
|
1996 |
+
front: "-",
|
1997 |
+
back: ""
|
1998 |
+
},
|
1999 |
+
integerDigits: "+",
|
2000 |
+
integerOptional: !0,
|
2001 |
+
prefix: "",
|
2002 |
+
suffix: "",
|
2003 |
+
rightAlign: !0,
|
2004 |
+
decimalProtect: !0,
|
2005 |
+
min: null,
|
2006 |
+
max: null,
|
2007 |
+
step: 1,
|
2008 |
+
insertMode: !0,
|
2009 |
+
autoUnmask: !1,
|
2010 |
+
unmaskAsNumber: !1,
|
2011 |
+
inputmode: "numeric",
|
2012 |
+
preValidation: function(buffer, pos, c, isSelection, opts, maskset) {
|
2013 |
+
if ("-" === c || c === opts.negationSymbol.front) return !0 === opts.allowMinus && (opts.isNegative = opts.isNegative === undefined || !opts.isNegative,
|
2014 |
+
"" === buffer.join("") || {
|
2015 |
+
caret: pos,
|
2016 |
+
dopost: !0
|
2017 |
+
});
|
2018 |
+
if (!1 === isSelection && c === opts.radixPoint && opts.digits !== undefined && (isNaN(opts.digits) || parseInt(opts.digits) > 0)) {
|
2019 |
+
var radixPos = $.inArray(opts.radixPoint, buffer);
|
2020 |
+
if (-1 !== radixPos && maskset.validPositions[radixPos] !== undefined) return !0 === opts.numericInput ? pos === radixPos : {
|
2021 |
+
caret: radixPos + 1
|
2022 |
+
};
|
2023 |
+
}
|
2024 |
+
return !0;
|
2025 |
+
},
|
2026 |
+
postValidation: function(buffer, currentResult, opts) {
|
2027 |
+
var suffix = opts.suffix.split(""), prefix = opts.prefix.split("");
|
2028 |
+
if (currentResult.pos === undefined && currentResult.caret !== undefined && !0 !== currentResult.dopost) return currentResult;
|
2029 |
+
var caretPos = currentResult.caret !== undefined ? currentResult.caret : currentResult.pos, maskedValue = buffer.slice();
|
2030 |
+
opts.numericInput && (caretPos = maskedValue.length - caretPos - 1, maskedValue = maskedValue.reverse());
|
2031 |
+
var charAtPos = maskedValue[caretPos];
|
2032 |
+
if (charAtPos === opts.groupSeparator && (charAtPos = maskedValue[caretPos += 1]),
|
2033 |
+
caretPos === maskedValue.length - opts.suffix.length - 1 && charAtPos === opts.radixPoint) return currentResult;
|
2034 |
+
charAtPos !== undefined && charAtPos !== opts.radixPoint && charAtPos !== opts.negationSymbol.front && charAtPos !== opts.negationSymbol.back && (maskedValue[caretPos] = "?",
|
2035 |
+
opts.prefix.length > 0 && caretPos >= (!1 === opts.isNegative ? 1 : 0) && caretPos < opts.prefix.length - 1 + (!1 === opts.isNegative ? 1 : 0) ? prefix[caretPos - (!1 === opts.isNegative ? 1 : 0)] = "?" : opts.suffix.length > 0 && caretPos >= maskedValue.length - opts.suffix.length - (!1 === opts.isNegative ? 1 : 0) && (suffix[caretPos - (maskedValue.length - opts.suffix.length - (!1 === opts.isNegative ? 1 : 0))] = "?")),
|
2036 |
+
prefix = prefix.join(""), suffix = suffix.join("");
|
2037 |
+
var processValue = maskedValue.join("").replace(prefix, "");
|
2038 |
+
if (processValue = (processValue = (processValue = (processValue = processValue.replace(suffix, "")).replace(new RegExp(Inputmask.escapeRegex(opts.groupSeparator), "g"), "")).replace(new RegExp("[-" + Inputmask.escapeRegex(opts.negationSymbol.front) + "]", "g"), "")).replace(new RegExp(Inputmask.escapeRegex(opts.negationSymbol.back) + "$"), ""),
|
2039 |
+
isNaN(opts.placeholder) && (processValue = processValue.replace(new RegExp(Inputmask.escapeRegex(opts.placeholder), "g"), "")),
|
2040 |
+
processValue.length > 1 && 1 !== processValue.indexOf(opts.radixPoint) && ("0" === charAtPos && (processValue = processValue.replace(/^\?/g, "")),
|
2041 |
+
processValue = processValue.replace(/^0/g, "")), processValue.charAt(0) === opts.radixPoint && "" !== opts.radixPoint && !0 !== opts.numericInput && (processValue = "0" + processValue),
|
2042 |
+
"" !== processValue) {
|
2043 |
+
if (processValue = processValue.split(""), (!opts.digitsOptional || opts.enforceDigitsOnBlur && "blur" === currentResult.event) && isFinite(opts.digits)) {
|
2044 |
+
var radixPosition = $.inArray(opts.radixPoint, processValue), rpb = $.inArray(opts.radixPoint, maskedValue);
|
2045 |
+
-1 === radixPosition && (processValue.push(opts.radixPoint), radixPosition = processValue.length - 1);
|
2046 |
+
for (var i = 1; i <= opts.digits; i++) opts.digitsOptional && (!opts.enforceDigitsOnBlur || "blur" !== currentResult.event) || processValue[radixPosition + i] !== undefined && processValue[radixPosition + i] !== opts.placeholder.charAt(0) ? -1 !== rpb && maskedValue[rpb + i] !== undefined && (processValue[radixPosition + i] = processValue[radixPosition + i] || maskedValue[rpb + i]) : processValue[radixPosition + i] = currentResult.placeholder || opts.placeholder.charAt(0);
|
2047 |
+
}
|
2048 |
+
if (!0 !== opts.autoGroup || "" === opts.groupSeparator || charAtPos === opts.radixPoint && currentResult.pos === undefined && !currentResult.dopost) processValue = processValue.join(""); else {
|
2049 |
+
var addRadix = processValue[processValue.length - 1] === opts.radixPoint && currentResult.c === opts.radixPoint;
|
2050 |
+
processValue = Inputmask(function(buffer, opts) {
|
2051 |
+
var postMask = "";
|
2052 |
+
if (postMask += "(" + opts.groupSeparator + "*{" + opts.groupSize + "}){*}", "" !== opts.radixPoint) {
|
2053 |
+
var radixSplit = buffer.join("").split(opts.radixPoint);
|
2054 |
+
radixSplit[1] && (postMask += opts.radixPoint + "*{" + radixSplit[1].match(/^\d*\??\d*/)[0].length + "}");
|
2055 |
+
}
|
2056 |
+
return postMask;
|
2057 |
+
}(processValue, opts), {
|
2058 |
+
numericInput: !0,
|
2059 |
+
jitMasking: !0,
|
2060 |
+
definitions: {
|
2061 |
+
"*": {
|
2062 |
+
validator: "[0-9?]",
|
2063 |
+
cardinality: 1
|
2064 |
+
}
|
2065 |
+
}
|
2066 |
+
}).format(processValue.join("")), addRadix && (processValue += opts.radixPoint),
|
2067 |
+
processValue.charAt(0) === opts.groupSeparator && processValue.substr(1);
|
2068 |
+
}
|
2069 |
+
}
|
2070 |
+
if (opts.isNegative && "blur" === currentResult.event && (opts.isNegative = "0" !== processValue),
|
2071 |
+
processValue = prefix + processValue, processValue += suffix, opts.isNegative && (processValue = opts.negationSymbol.front + processValue,
|
2072 |
+
processValue += opts.negationSymbol.back), processValue = processValue.split(""),
|
2073 |
+
charAtPos !== undefined) if (charAtPos !== opts.radixPoint && charAtPos !== opts.negationSymbol.front && charAtPos !== opts.negationSymbol.back) (caretPos = $.inArray("?", processValue)) > -1 ? processValue[caretPos] = charAtPos : caretPos = currentResult.caret || 0; else if (charAtPos === opts.radixPoint || charAtPos === opts.negationSymbol.front || charAtPos === opts.negationSymbol.back) {
|
2074 |
+
var newCaretPos = $.inArray(charAtPos, processValue);
|
2075 |
+
-1 !== newCaretPos && (caretPos = newCaretPos);
|
2076 |
+
}
|
2077 |
+
opts.numericInput && (caretPos = processValue.length - caretPos - 1, processValue = processValue.reverse());
|
2078 |
+
var rslt = {
|
2079 |
+
caret: charAtPos === undefined || currentResult.pos !== undefined ? caretPos + (opts.numericInput ? -1 : 1) : caretPos,
|
2080 |
+
buffer: processValue,
|
2081 |
+
refreshFromBuffer: currentResult.dopost || buffer.join("") !== processValue.join("")
|
2082 |
+
};
|
2083 |
+
return rslt.refreshFromBuffer ? rslt : currentResult;
|
2084 |
+
},
|
2085 |
+
onBeforeWrite: function(e, buffer, caretPos, opts) {
|
2086 |
+
if (e) switch (e.type) {
|
2087 |
+
case "keydown":
|
2088 |
+
return opts.postValidation(buffer, {
|
2089 |
+
caret: caretPos,
|
2090 |
+
dopost: !0
|
2091 |
+
}, opts);
|
2092 |
+
|
2093 |
+
case "blur":
|
2094 |
+
case "checkval":
|
2095 |
+
var unmasked;
|
2096 |
+
if (function(opts) {
|
2097 |
+
opts.parseMinMaxOptions === undefined && (null !== opts.min && (opts.min = opts.min.toString().replace(new RegExp(Inputmask.escapeRegex(opts.groupSeparator), "g"), ""),
|
2098 |
+
"," === opts.radixPoint && (opts.min = opts.min.replace(opts.radixPoint, ".")),
|
2099 |
+
opts.min = isFinite(opts.min) ? parseFloat(opts.min) : NaN, isNaN(opts.min) && (opts.min = Number.MIN_VALUE)),
|
2100 |
+
null !== opts.max && (opts.max = opts.max.toString().replace(new RegExp(Inputmask.escapeRegex(opts.groupSeparator), "g"), ""),
|
2101 |
+
"," === opts.radixPoint && (opts.max = opts.max.replace(opts.radixPoint, ".")),
|
2102 |
+
opts.max = isFinite(opts.max) ? parseFloat(opts.max) : NaN, isNaN(opts.max) && (opts.max = Number.MAX_VALUE)),
|
2103 |
+
opts.parseMinMaxOptions = "done");
|
2104 |
+
}(opts), null !== opts.min || null !== opts.max) {
|
2105 |
+
if (unmasked = opts.onUnMask(buffer.join(""), undefined, $.extend({}, opts, {
|
2106 |
+
unmaskAsNumber: !0
|
2107 |
+
})), null !== opts.min && unmasked < opts.min) return opts.isNegative = opts.min < 0,
|
2108 |
+
opts.postValidation(opts.min.toString().replace(".", opts.radixPoint).split(""), {
|
2109 |
+
caret: caretPos,
|
2110 |
+
dopost: !0,
|
2111 |
+
placeholder: "0"
|
2112 |
+
}, opts);
|
2113 |
+
if (null !== opts.max && unmasked > opts.max) return opts.isNegative = opts.max < 0,
|
2114 |
+
opts.postValidation(opts.max.toString().replace(".", opts.radixPoint).split(""), {
|
2115 |
+
caret: caretPos,
|
2116 |
+
dopost: !0,
|
2117 |
+
placeholder: "0"
|
2118 |
+
}, opts);
|
2119 |
+
}
|
2120 |
+
return opts.postValidation(buffer, {
|
2121 |
+
caret: caretPos,
|
2122 |
+
placeholder: "0",
|
2123 |
+
event: "blur"
|
2124 |
+
}, opts);
|
2125 |
+
|
2126 |
+
case "_checkval":
|
2127 |
+
return {
|
2128 |
+
caret: caretPos
|
2129 |
+
};
|
2130 |
+
}
|
2131 |
+
},
|
2132 |
+
regex: {
|
2133 |
+
integerPart: function(opts, emptyCheck) {
|
2134 |
+
return emptyCheck ? new RegExp("[" + Inputmask.escapeRegex(opts.negationSymbol.front) + "+]?") : new RegExp("[" + Inputmask.escapeRegex(opts.negationSymbol.front) + "+]?\\d+");
|
2135 |
+
},
|
2136 |
+
integerNPart: function(opts) {
|
2137 |
+
return new RegExp("[\\d" + Inputmask.escapeRegex(opts.groupSeparator) + Inputmask.escapeRegex(opts.placeholder.charAt(0)) + "]+");
|
2138 |
+
}
|
2139 |
+
},
|
2140 |
+
definitions: {
|
2141 |
+
"~": {
|
2142 |
+
validator: function(chrs, maskset, pos, strict, opts, isSelection) {
|
2143 |
+
var isValid;
|
2144 |
+
if ("k" === chrs || "m" === chrs) {
|
2145 |
+
isValid = {
|
2146 |
+
insert: [],
|
2147 |
+
c: 0
|
2148 |
+
};
|
2149 |
+
for (var i = 0, l = "k" === chrs ? 2 : 5; i < l; i++) isValid.insert.push({
|
2150 |
+
pos: pos + i,
|
2151 |
+
c: 0
|
2152 |
+
});
|
2153 |
+
return isValid.pos = pos + l, isValid;
|
2154 |
+
}
|
2155 |
+
if (!0 === (isValid = strict ? new RegExp("[0-9" + Inputmask.escapeRegex(opts.groupSeparator) + "]").test(chrs) : new RegExp("[0-9]").test(chrs))) {
|
2156 |
+
if (!0 !== opts.numericInput && maskset.validPositions[pos] !== undefined && "~" === maskset.validPositions[pos].match.def && !isSelection) {
|
2157 |
+
var processValue = maskset.buffer.join(""), pvRadixSplit = (processValue = (processValue = processValue.replace(new RegExp("[-" + Inputmask.escapeRegex(opts.negationSymbol.front) + "]", "g"), "")).replace(new RegExp(Inputmask.escapeRegex(opts.negationSymbol.back) + "$"), "")).split(opts.radixPoint);
|
2158 |
+
pvRadixSplit.length > 1 && (pvRadixSplit[1] = pvRadixSplit[1].replace(/0/g, opts.placeholder.charAt(0))),
|
2159 |
+
"0" === pvRadixSplit[0] && (pvRadixSplit[0] = pvRadixSplit[0].replace(/0/g, opts.placeholder.charAt(0))),
|
2160 |
+
processValue = pvRadixSplit[0] + opts.radixPoint + pvRadixSplit[1] || "";
|
2161 |
+
var bufferTemplate = maskset._buffer.join("");
|
2162 |
+
for (processValue === opts.radixPoint && (processValue = bufferTemplate); null === processValue.match(Inputmask.escapeRegex(bufferTemplate) + "$"); ) bufferTemplate = bufferTemplate.slice(1);
|
2163 |
+
isValid = (processValue = (processValue = processValue.replace(bufferTemplate, "")).split(""))[pos] === undefined ? {
|
2164 |
+
pos: pos,
|
2165 |
+
remove: pos
|
2166 |
+
} : {
|
2167 |
+
pos: pos
|
2168 |
+
};
|
2169 |
+
}
|
2170 |
+
} else strict || chrs !== opts.radixPoint || maskset.validPositions[pos - 1] !== undefined || (isValid = {
|
2171 |
+
insert: {
|
2172 |
+
pos: pos,
|
2173 |
+
c: 0
|
2174 |
+
},
|
2175 |
+
pos: pos + 1
|
2176 |
+
});
|
2177 |
+
return isValid;
|
2178 |
+
},
|
2179 |
+
cardinality: 1
|
2180 |
+
},
|
2181 |
+
"+": {
|
2182 |
+
validator: function(chrs, maskset, pos, strict, opts) {
|
2183 |
+
return opts.allowMinus && ("-" === chrs || chrs === opts.negationSymbol.front);
|
2184 |
+
},
|
2185 |
+
cardinality: 1,
|
2186 |
+
placeholder: ""
|
2187 |
+
},
|
2188 |
+
"-": {
|
2189 |
+
validator: function(chrs, maskset, pos, strict, opts) {
|
2190 |
+
return opts.allowMinus && chrs === opts.negationSymbol.back;
|
2191 |
+
},
|
2192 |
+
cardinality: 1,
|
2193 |
+
placeholder: ""
|
2194 |
+
},
|
2195 |
+
":": {
|
2196 |
+
validator: function(chrs, maskset, pos, strict, opts) {
|
2197 |
+
var radix = "[" + Inputmask.escapeRegex(opts.radixPoint) + "]", isValid = new RegExp(radix).test(chrs);
|
2198 |
+
return isValid && maskset.validPositions[pos] && maskset.validPositions[pos].match.placeholder === opts.radixPoint && (isValid = {
|
2199 |
+
caret: pos + 1
|
2200 |
+
}), isValid;
|
2201 |
+
},
|
2202 |
+
cardinality: 1,
|
2203 |
+
placeholder: function(opts) {
|
2204 |
+
return opts.radixPoint;
|
2205 |
+
}
|
2206 |
+
}
|
2207 |
+
},
|
2208 |
+
onUnMask: function(maskedValue, unmaskedValue, opts) {
|
2209 |
+
if ("" === unmaskedValue && !0 === opts.nullable) return unmaskedValue;
|
2210 |
+
var processValue = maskedValue.replace(opts.prefix, "");
|
2211 |
+
return processValue = (processValue = processValue.replace(opts.suffix, "")).replace(new RegExp(Inputmask.escapeRegex(opts.groupSeparator), "g"), ""),
|
2212 |
+
"" !== opts.placeholder.charAt(0) && (processValue = processValue.replace(new RegExp(opts.placeholder.charAt(0), "g"), "0")),
|
2213 |
+
opts.unmaskAsNumber ? ("" !== opts.radixPoint && -1 !== processValue.indexOf(opts.radixPoint) && (processValue = processValue.replace(Inputmask.escapeRegex.call(this, opts.radixPoint), ".")),
|
2214 |
+
processValue = (processValue = processValue.replace(new RegExp("^" + Inputmask.escapeRegex(opts.negationSymbol.front)), "-")).replace(new RegExp(Inputmask.escapeRegex(opts.negationSymbol.back) + "$"), ""),
|
2215 |
+
Number(processValue)) : processValue;
|
2216 |
+
},
|
2217 |
+
isComplete: function(buffer, opts) {
|
2218 |
+
var maskedValue = (opts.numericInput ? buffer.slice().reverse() : buffer).join("");
|
2219 |
+
return maskedValue = (maskedValue = (maskedValue = (maskedValue = (maskedValue = maskedValue.replace(new RegExp("^" + Inputmask.escapeRegex(opts.negationSymbol.front)), "-")).replace(new RegExp(Inputmask.escapeRegex(opts.negationSymbol.back) + "$"), "")).replace(opts.prefix, "")).replace(opts.suffix, "")).replace(new RegExp(Inputmask.escapeRegex(opts.groupSeparator) + "([0-9]{3})", "g"), "$1"),
|
2220 |
+
"," === opts.radixPoint && (maskedValue = maskedValue.replace(Inputmask.escapeRegex(opts.radixPoint), ".")),
|
2221 |
+
isFinite(maskedValue);
|
2222 |
+
},
|
2223 |
+
onBeforeMask: function(initialValue, opts) {
|
2224 |
+
if (opts.isNegative = undefined, "number" == typeof initialValue && "" !== opts.radixPoint && (initialValue = initialValue.toString().replace(".", opts.radixPoint)),
|
2225 |
+
initialValue = initialValue.toString().charAt(initialValue.length - 1) === opts.radixPoint ? initialValue.toString().substr(0, initialValue.length - 1) : initialValue.toString(),
|
2226 |
+
"" !== opts.radixPoint && isFinite(initialValue)) {
|
2227 |
+
var vs = initialValue.split("."), groupSize = "" !== opts.groupSeparator ? parseInt(opts.groupSize) : 0;
|
2228 |
+
2 === vs.length && (vs[0].length > groupSize || vs[1].length > groupSize || vs[0].length <= groupSize && vs[1].length < groupSize) && (initialValue = initialValue.replace(".", opts.radixPoint));
|
2229 |
+
}
|
2230 |
+
var kommaMatches = initialValue.match(/,/g), dotMatches = initialValue.match(/\./g);
|
2231 |
+
if (initialValue = dotMatches && kommaMatches ? dotMatches.length > kommaMatches.length ? (initialValue = initialValue.replace(/\./g, "")).replace(",", opts.radixPoint) : kommaMatches.length > dotMatches.length ? (initialValue = initialValue.replace(/,/g, "")).replace(".", opts.radixPoint) : initialValue.indexOf(".") < initialValue.indexOf(",") ? initialValue.replace(/\./g, "") : initialValue.replace(/,/g, "") : initialValue.replace(new RegExp(Inputmask.escapeRegex(opts.groupSeparator), "g"), ""),
|
2232 |
+
0 === opts.digits && (-1 !== initialValue.indexOf(".") ? initialValue = initialValue.substring(0, initialValue.indexOf(".")) : -1 !== initialValue.indexOf(",") && (initialValue = initialValue.substring(0, initialValue.indexOf(",")))),
|
2233 |
+
"" !== opts.radixPoint && isFinite(opts.digits) && -1 !== initialValue.indexOf(opts.radixPoint)) {
|
2234 |
+
var decPart = initialValue.split(opts.radixPoint)[1].match(new RegExp("\\d*"))[0];
|
2235 |
+
if (parseInt(opts.digits) < decPart.toString().length) {
|
2236 |
+
var digitsFactor = Math.pow(10, parseInt(opts.digits));
|
2237 |
+
initialValue = initialValue.replace(Inputmask.escapeRegex(opts.radixPoint), "."),
|
2238 |
+
initialValue = (initialValue = Math.round(parseFloat(initialValue) * digitsFactor) / digitsFactor).toString().replace(".", opts.radixPoint);
|
2239 |
+
}
|
2240 |
+
}
|
2241 |
+
return function(buffer, opts) {
|
2242 |
+
var radixPosition = $.inArray(opts.radixPoint, buffer);
|
2243 |
+
-1 === radixPosition && (buffer.push(opts.radixPoint), radixPosition = buffer.length - 1);
|
2244 |
+
for (var i = 1; i <= opts.digits; i++) buffer[radixPosition + i] = buffer[radixPosition + i] || "0";
|
2245 |
+
return buffer;
|
2246 |
+
}(initialValue.toString().split(""), opts).join("");
|
2247 |
+
},
|
2248 |
+
onKeyDown: function(e, buffer, caretPos, opts) {
|
2249 |
+
var $input = $(this);
|
2250 |
+
if (e.ctrlKey) switch (e.keyCode) {
|
2251 |
+
case Inputmask.keyCode.UP:
|
2252 |
+
$input.val(parseFloat(this.inputmask.unmaskedvalue()) + parseInt(opts.step)), $input.trigger("setvalue");
|
2253 |
+
break;
|
2254 |
+
|
2255 |
+
case Inputmask.keyCode.DOWN:
|
2256 |
+
$input.val(parseFloat(this.inputmask.unmaskedvalue()) - parseInt(opts.step)), $input.trigger("setvalue");
|
2257 |
+
}
|
2258 |
+
}
|
2259 |
+
},
|
2260 |
+
currency: {
|
2261 |
+
prefix: "$ ",
|
2262 |
+
groupSeparator: ",",
|
2263 |
+
alias: "numeric",
|
2264 |
+
placeholder: "0",
|
2265 |
+
autoGroup: !0,
|
2266 |
+
digits: 2,
|
2267 |
+
digitsOptional: !1,
|
2268 |
+
clearMaskOnLostFocus: !1
|
2269 |
+
},
|
2270 |
+
decimal: {
|
2271 |
+
alias: "numeric"
|
2272 |
+
},
|
2273 |
+
integer: {
|
2274 |
+
alias: "numeric",
|
2275 |
+
digits: 0,
|
2276 |
+
radixPoint: ""
|
2277 |
+
},
|
2278 |
+
percentage: {
|
2279 |
+
alias: "numeric",
|
2280 |
+
digits: 2,
|
2281 |
+
digitsOptional: !0,
|
2282 |
+
radixPoint: ".",
|
2283 |
+
placeholder: "0",
|
2284 |
+
autoGroup: !1,
|
2285 |
+
min: 0,
|
2286 |
+
max: 100,
|
2287 |
+
suffix: " %",
|
2288 |
+
allowMinus: !1
|
2289 |
+
}
|
2290 |
+
}), Inputmask;
|
2291 |
+
}, __WEBPACK_AMD_DEFINE_ARRAY__ = [ __webpack_require__(0), __webpack_require__(1) ],
|
2292 |
+
void 0 === (__WEBPACK_AMD_DEFINE_RESULT__ = "function" == typeof (__WEBPACK_AMD_DEFINE_FACTORY__ = factory) ? __WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__) : __WEBPACK_AMD_DEFINE_FACTORY__) || (module.exports = __WEBPACK_AMD_DEFINE_RESULT__);
|
2293 |
+
}, function(module, exports, __webpack_require__) {
|
2294 |
+
"use strict";
|
2295 |
+
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__, factory;
|
2296 |
+
"function" == typeof Symbol && Symbol.iterator;
|
2297 |
+
factory = function($, Inputmask) {
|
2298 |
+
function maskSort(a, b) {
|
2299 |
+
var maska = (a.mask || a).replace(/#/g, "0").replace(/\)/, "0").replace(/[+()#-]/g, ""), maskb = (b.mask || b).replace(/#/g, "0").replace(/\)/, "0").replace(/[+()#-]/g, "");
|
2300 |
+
return maska.localeCompare(maskb);
|
2301 |
+
}
|
2302 |
+
var analyseMaskBase = Inputmask.prototype.analyseMask;
|
2303 |
+
return Inputmask.prototype.analyseMask = function(mask, regexMask, opts) {
|
2304 |
+
var maskGroups = {};
|
2305 |
+
return opts.phoneCodes && (opts.phoneCodes && opts.phoneCodes.length > 1e3 && (function reduceVariations(masks, previousVariation, previousmaskGroup) {
|
2306 |
+
previousVariation = previousVariation || "", previousmaskGroup = previousmaskGroup || maskGroups,
|
2307 |
+
"" !== previousVariation && (previousmaskGroup[previousVariation] = {});
|
2308 |
+
for (var variation = "", maskGroup = previousmaskGroup[previousVariation] || previousmaskGroup, i = masks.length - 1; i >= 0; i--) maskGroup[variation = (mask = masks[i].mask || masks[i]).substr(0, 1)] = maskGroup[variation] || [],
|
2309 |
+
maskGroup[variation].unshift(mask.substr(1)), masks.splice(i, 1);
|
2310 |
+
for (var ndx in maskGroup) maskGroup[ndx].length > 500 && reduceVariations(maskGroup[ndx].slice(), ndx, maskGroup);
|
2311 |
+
}((mask = mask.substr(1, mask.length - 2)).split(opts.groupmarker[1] + opts.alternatormarker + opts.groupmarker[0])),
|
2312 |
+
mask = function rebuild(maskGroup) {
|
2313 |
+
var mask = "", submasks = [];
|
2314 |
+
for (var ndx in maskGroup) $.isArray(maskGroup[ndx]) ? 1 === maskGroup[ndx].length ? submasks.push(ndx + maskGroup[ndx]) : submasks.push(ndx + opts.groupmarker[0] + maskGroup[ndx].join(opts.groupmarker[1] + opts.alternatormarker + opts.groupmarker[0]) + opts.groupmarker[1]) : submasks.push(ndx + rebuild(maskGroup[ndx]));
|
2315 |
+
return 1 === submasks.length ? mask += submasks[0] : mask += opts.groupmarker[0] + submasks.join(opts.groupmarker[1] + opts.alternatormarker + opts.groupmarker[0]) + opts.groupmarker[1],
|
2316 |
+
mask;
|
2317 |
+
}(maskGroups)), mask = mask.replace(/9/g, "\\9")), analyseMaskBase.call(this, mask, regexMask, opts);
|
2318 |
+
}, Inputmask.extendAliases({
|
2319 |
+
abstractphone: {
|
2320 |
+
groupmarker: [ "<", ">" ],
|
2321 |
+
countrycode: "",
|
2322 |
+
phoneCodes: [],
|
2323 |
+
keepStatic: "auto",
|
2324 |
+
mask: function(opts) {
|
2325 |
+
return opts.definitions = {
|
2326 |
+
"#": Inputmask.prototype.definitions[9]
|
2327 |
+
}, opts.phoneCodes.sort(maskSort);
|
2328 |
+
},
|
2329 |
+
onBeforeMask: function(value, opts) {
|
2330 |
+
var processedValue = value.replace(/^0{1,2}/, "").replace(/[\s]/g, "");
|
2331 |
+
return (processedValue.indexOf(opts.countrycode) > 1 || -1 === processedValue.indexOf(opts.countrycode)) && (processedValue = "+" + opts.countrycode + processedValue),
|
2332 |
+
processedValue;
|
2333 |
+
},
|
2334 |
+
onUnMask: function(maskedValue, unmaskedValue, opts) {
|
2335 |
+
return maskedValue.replace(/[()#-]/g, "");
|
2336 |
+
},
|
2337 |
+
inputmode: "tel"
|
2338 |
+
}
|
2339 |
+
}), Inputmask;
|
2340 |
+
}, __WEBPACK_AMD_DEFINE_ARRAY__ = [ __webpack_require__(0), __webpack_require__(1) ],
|
2341 |
+
void 0 === (__WEBPACK_AMD_DEFINE_RESULT__ = "function" == typeof (__WEBPACK_AMD_DEFINE_FACTORY__ = factory) ? __WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__) : __WEBPACK_AMD_DEFINE_FACTORY__) || (module.exports = __WEBPACK_AMD_DEFINE_RESULT__);
|
2342 |
+
}, function(module, exports, __webpack_require__) {
|
2343 |
+
"use strict";
|
2344 |
+
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__, factory, _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj) {
|
2345 |
+
return typeof obj;
|
2346 |
+
} : function(obj) {
|
2347 |
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
2348 |
+
};
|
2349 |
+
factory = function($, Inputmask) {
|
2350 |
+
return void 0 === $.fn.inputmask && ($.fn.inputmask = function(fn, options) {
|
2351 |
+
var nptmask, input = this[0];
|
2352 |
+
if (void 0 === options && (options = {}), "string" == typeof fn) switch (fn) {
|
2353 |
+
case "unmaskedvalue":
|
2354 |
+
return input && input.inputmask ? input.inputmask.unmaskedvalue() : $(input).val();
|
2355 |
+
|
2356 |
+
case "remove":
|
2357 |
+
return this.each(function() {
|
2358 |
+
this.inputmask && this.inputmask.remove();
|
2359 |
+
});
|
2360 |
+
|
2361 |
+
case "getemptymask":
|
2362 |
+
return input && input.inputmask ? input.inputmask.getemptymask() : "";
|
2363 |
+
|
2364 |
+
case "hasMaskedValue":
|
2365 |
+
return !(!input || !input.inputmask) && input.inputmask.hasMaskedValue();
|
2366 |
+
|
2367 |
+
case "isComplete":
|
2368 |
+
return !input || !input.inputmask || input.inputmask.isComplete();
|
2369 |
+
|
2370 |
+
case "getmetadata":
|
2371 |
+
return input && input.inputmask ? input.inputmask.getmetadata() : void 0;
|
2372 |
+
|
2373 |
+
case "setvalue":
|
2374 |
+
Inputmask.setValue(input, options);
|
2375 |
+
break;
|
2376 |
+
|
2377 |
+
case "option":
|
2378 |
+
if ("string" != typeof options) return this.each(function() {
|
2379 |
+
if (void 0 !== this.inputmask) return this.inputmask.option(options);
|
2380 |
+
});
|
2381 |
+
if (input && void 0 !== input.inputmask) return input.inputmask.option(options);
|
2382 |
+
break;
|
2383 |
+
|
2384 |
+
default:
|
2385 |
+
return options.alias = fn, nptmask = new Inputmask(options), this.each(function() {
|
2386 |
+
nptmask.mask(this);
|
2387 |
+
});
|
2388 |
+
} else {
|
2389 |
+
if ("object" == (void 0 === fn ? "undefined" : _typeof(fn))) return nptmask = new Inputmask(fn),
|
2390 |
+
void 0 === fn.mask && void 0 === fn.alias ? this.each(function() {
|
2391 |
+
if (void 0 !== this.inputmask) return this.inputmask.option(fn);
|
2392 |
+
nptmask.mask(this);
|
2393 |
+
}) : this.each(function() {
|
2394 |
+
nptmask.mask(this);
|
2395 |
+
});
|
2396 |
+
if (void 0 === fn) return this.each(function() {
|
2397 |
+
(nptmask = new Inputmask(options)).mask(this);
|
2398 |
+
});
|
2399 |
+
}
|
2400 |
+
}), $.fn.inputmask;
|
2401 |
+
}, __WEBPACK_AMD_DEFINE_ARRAY__ = [ __webpack_require__(2), __webpack_require__(1) ],
|
2402 |
+
void 0 === (__WEBPACK_AMD_DEFINE_RESULT__ = "function" == typeof (__WEBPACK_AMD_DEFINE_FACTORY__ = factory) ? __WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__) : __WEBPACK_AMD_DEFINE_FACTORY__) || (module.exports = __WEBPACK_AMD_DEFINE_RESULT__);
|
2403 |
+
} ]);
|
assets/js/inputmask/jquery.inputmask.bundle.min.js
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
* jquery.inputmask.bundle.js
|
3 |
+
* https://github.com/RobinHerbots/Inputmask
|
4 |
+
* Copyright (c) 2010 - 2018 Robin Herbots
|
5 |
+
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
|
6 |
+
* Version: 4.0.0-beta.58
|
7 |
+
*/
|
8 |
+
|
9 |
+
!function(e){var t={};function n(i){if(t[i])return t[i].exports;var a=t[i]={i:i,l:!1,exports:{}};return e[i].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=3)}([function(e,t,n){"use strict";var i,a,r,o;"function"==typeof Symbol&&Symbol.iterator;o=function(e){return e},a=[n(2)],void 0===(r="function"==typeof(i=o)?i.apply(t,a):i)||(e.exports=r)},function(e,t,n){"use strict";var i,a,r,o,s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};o=function(e,t,n,i){var a=navigator.userAgent,r=f("touchstart"),o=/iemobile/i.test(a),l=/iphone/i.test(a)&&!o;function u(t,n,a){if(!(this instanceof u))return new u(t,n,a);this.el=i,this.events={},this.maskset=i,this.refreshValue=!1,!0!==a&&(e.isPlainObject(t)?n=t:(n=n||{},t&&(n.alias=t)),this.opts=e.extend(!0,{},this.defaults,n),this.noMasksCache=n&&n.definitions!==i,this.userOptions=n||{},this.isRTL=this.opts.numericInput,c(this.opts.alias,n,this.opts))}function c(t,n,a){var r=u.prototype.aliases[t];return r?(r.alias&&c(r.alias,i,a),e.extend(!0,a,r),e.extend(!0,a,n),!0):(null===a.mask&&(a.mask=t),!1)}function p(t,n){function a(t,a,r){var o=!1;if(null!==t&&""!==t||((o=null!==r.regex)?t=(t=r.regex).replace(/^(\^)(.*)(\$)$/,"$2"):(o=!0,t=".*")),1===t.length&&!1===r.greedy&&0!==r.repeat&&(r.placeholder=""),r.repeat>0||"*"===r.repeat||"+"===r.repeat){var s="*"===r.repeat?0:"+"===r.repeat?1:r.repeat;t=r.groupmarker[0]+t+r.groupmarker[1]+r.quantifiermarker[0]+s+","+r.repeat+r.quantifiermarker[1]}var l,c=o?"regex_"+r.regex:r.numericInput?t.split("").reverse().join(""):t;return u.prototype.masksCache[c]===i||!0===n?(l={mask:t,maskToken:u.prototype.analyseMask(t,o,r),validPositions:{},_buffer:i,buffer:i,tests:{},excludes:{},metadata:a,maskLength:i},!0!==n&&(u.prototype.masksCache[c]=l,l=e.extend(!0,{},u.prototype.masksCache[c]))):l=e.extend(!0,{},u.prototype.masksCache[c]),l}if(e.isFunction(t.mask)&&(t.mask=t.mask(t)),e.isArray(t.mask)){if(t.mask.length>1){if(null===t.keepStatic){t.keepStatic="auto";for(var r=0;r<t.mask.length;r++)if(t.mask[r].charAt(0)!==t.mask[0].charAt(0)){t.keepStatic=!0;break}}var o=t.groupmarker[0];return e.each(t.isRTL?t.mask.reverse():t.mask,function(n,a){o.length>1&&(o+=t.groupmarker[1]+t.alternatormarker+t.groupmarker[0]),a.mask===i||e.isFunction(a.mask)?o+=a:o+=a.mask}),a(o+=t.groupmarker[1],t.mask,t)}t.mask=t.mask.pop()}return t.mask&&t.mask.mask!==i&&!e.isFunction(t.mask.mask)?a(t.mask.mask,t.mask,t):a(t.mask,t.mask,t)}function f(e){var t=n.createElement("input"),i="on"+e,a=i in t;return a||(t.setAttribute(i,"return;"),a="function"==typeof t[i]),t=null,a}function m(a,c,p){c=c||this.maskset,p=p||this.opts;var d,h,g,v,k=this,y=this.el,b=this.isRTL,x=!1,P=!1,S=!1,A=!1;function C(e,t,n,a,r){var o=p.greedy;r&&(p.greedy=!1),t=t||0;var s,l,u,c=[],f=0,m=M();do{if(!0===e&&E().validPositions[f])l=(u=r&&!0===E().validPositions[f].match.optionality&&E().validPositions[f+1]===i&&(!0===E().validPositions[f].generatedInput||E().validPositions[f].input==p.skipOptionalPartCharacter&&f>0)?_(f,R(f,s,f-1)):E().validPositions[f]).match,s=u.locator.slice(),c.push(!0===n?u.input:!1===n?l.nativeDef:W(f,l));else{l=(u=j(f,s,f-1)).match,s=u.locator.slice();var d=!0!==a&&(!1!==p.jitMasking?p.jitMasking:l.jit);(!1===d||d===i||f<m||"number"==typeof d&&isFinite(d)&&d>f)&&c.push(!1===n?l.nativeDef:W(f,l))}"auto"===p.keepStatic&&l.newBlockMarker&&null!==l.fn&&(p.keepStatic=f-1),f++}while((g===i||f<g)&&(null!==l.fn||""!==l.def)||t>f);return""===c[c.length-1]&&c.pop(),!1===n&&E().maskLength!==i||(E().maskLength=f-1),p.greedy=o,c}function E(){return c}function w(e){var t=E();t.buffer=i,!0!==e&&(t.validPositions={},t.p=0)}function M(e,t,n){var a=-1,r=-1,o=n||E().validPositions;for(var s in e===i&&(e=-1),o){var l=parseInt(s);o[l]&&(t||!0!==o[l].generatedInput)&&(l<=e&&(a=l),l>=e&&(r=l))}return-1===a||a==e?r:-1==r?a:e-a<r-e?a:r}function D(e){var t=e.locator[e.alternation];return"string"==typeof t&&t.length>0&&(t=t.split(",")[0]),t!==i?t.toString():""}function O(e,t){var n=(e.alternation!=i?e.mloc[D(e)]:e.locator).join("");if(""!==n)for(;n.length<t;)n+="0";return n}function _(e,t){for(var n,a,r,o=O(F(e=e>0?e-1:0)),s=0;s<t.length;s++){var l=t[s];n=O(l,o.length);var u=Math.abs(n-o);(a===i||""!==n&&u<a||r&&r.match.optionality&&"master"===r.match.newBlockMarker&&(!l.match.optionality||!l.match.newBlockMarker)||r&&r.match.optionalQuantifier&&!l.match.optionalQuantifier)&&(a=u,r=l)}return r}function j(e,t,n){return E().validPositions[e]||_(e,R(e,t?t.slice():t,n))}function F(e,t){return E().validPositions[e]?E().validPositions[e]:(t||R(e))[0]}function T(e,t){for(var n=!1,i=R(e),a=0;a<i.length;a++)if(i[a].match&&i[a].match.def===t){n=!0;break}return n}function R(t,n,a){var r,o,s,l,u=E().maskToken,c=n?a:0,f=n?n.slice():[0],m=[],d=!1,h=n?n.join(""):"";function g(n,a,o,s){function l(o,s,u){function f(t,n){var i=0===e.inArray(t,n.matches);return i||e.each(n.matches,function(e,a){if(!0===a.isQuantifier?i=f(t,n.matches[e-1]):!0===a.isOptional?i=f(t,a):!0===a.isAlternate&&(i=f(t,a)),i)return!1}),i}function v(t,n,a){var r,o;if((E().tests[t]||E().validPositions[t])&&e.each(E().tests[t]||[E().validPositions[t]],function(e,t){if(t.mloc[n])return r=t,!1;var s=a!==i?a:t.alternation,l=t.locator[s]!==i?t.locator[s].toString().indexOf(n):-1;(o===i||l<o)&&-1!==l&&(r=t,o=l)}),r){var s=r.locator[r.alternation];return(r.mloc[n]||r.mloc[s]||r.locator).slice((a!==i?a:r.alternation)+1)}return a!==i?v(t,n):i}function k(e,t){function n(e){for(var t,n,i=[],a=0,r=e.length;a<r;a++)if("-"===e.charAt(a))for(n=e.charCodeAt(a+1);++t<n;)i.push(String.fromCharCode(t));else t=e.charCodeAt(a),i.push(e.charAt(a));return i.join("")}return p.regex&&null!==e.match.fn&&null!==t.match.fn?-1!==n(t.match.def.replace(/[\[\]]/g,"")).indexOf(n(e.match.def.replace(/[\[\]]/g,""))):e.match.def===t.match.nativeDef}function y(e,t){if(t===i||e.alternation===t.alternation&&-1===e.locator[e.alternation].toString().indexOf(t.locator[t.alternation])){e.mloc=e.mloc||{};var n=e.locator[e.alternation];if(n!==i){if("string"==typeof n&&(n=n.split(",")[0]),e.mloc[n]===i&&(e.mloc[n]=e.locator.slice()),t!==i){for(var a in t.mloc)"string"==typeof a&&(a=a.split(",")[0]),e.mloc[a]===i&&(e.mloc[a]=t.mloc[a]);e.locator[e.alternation]=Object.keys(e.mloc).join(",")}return!0}e.alternation=i}return!1}if(c>5e3)throw"Inputmask: There is probably an error in your mask definition or in the code. Create an issue on github with an example of the mask you are using. "+E().mask;if(c===t&&o.matches===i)return m.push({match:o,locator:s.reverse(),cd:h,mloc:{}}),!0;if(o.matches!==i){if(o.isGroup&&u!==o){if(o=l(n.matches[e.inArray(o,n.matches)+1],s,u))return!0}else if(o.isOptional){var b=o;if(o=g(o,a,s,u)){if(e.each(m,function(e,t){t.match.optionality=!0}),r=m[m.length-1].match,u!==i||!f(r,b))return!0;d=!0,c=t}}else if(o.isAlternator){var x,P=o,S=[],A=m.slice(),C=s.length,w=a.length>0?a.shift():-1;if(-1===w||"string"==typeof w){var M,D=c,O=a.slice(),_=[];if("string"==typeof w)_=w.split(",");else for(M=0;M<P.matches.length;M++)_.push(M.toString());if(E().excludes[t]){for(var j=_.slice(),F=0,T=E().excludes[t].length;F<T;F++)_.splice(_.indexOf(E().excludes[t][F].toString()),1);0===_.length&&(E().excludes[t]=i,_=j)}(!0===p.keepStatic||isFinite(parseInt(p.keepStatic))&&D>=p.keepStatic)&&(_=_.slice(0,1));for(var R=!1,N=0;N<_.length;N++){M=parseInt(_[N]),m=[],a="string"==typeof w&&v(c,M,C)||O.slice(),P.matches[M]&&l(P.matches[M],[M].concat(s),u)?o=!0:0===N&&(R=!0),x=m.slice(),c=D,m=[];for(var G=0;G<x.length;G++){var I=x[G],B=!1;I.match.jit=I.match.jit||R,I.alternation=I.alternation||C,y(I);for(var L=0;L<S.length;L++){var H=S[L];if("string"!=typeof w||I.alternation!==i&&-1!==e.inArray(I.locator[I.alternation].toString(),_)){if(I.match.nativeDef===H.match.nativeDef){B=!0,y(H,I);break}if(k(I,H)){y(I,H)&&(B=!0,S.splice(S.indexOf(H),0,I));break}if(k(H,I)){y(H,I);break}if(q=H,null===(z=I).match.fn&&null!==q.match.fn&&q.match.fn.test(z.match.def,E(),t,!1,p,!1)){y(I,H)&&(B=!0,S.splice(S.indexOf(H),0,I));break}}}B||S.push(I)}}m=A.concat(S),c=t,d=m.length>0,o=S.length>0,a=O.slice()}else o=l(P.matches[w]||n.matches[w],[w].concat(s),u);if(o)return!0}else if(o.isQuantifier&&u!==n.matches[e.inArray(o,n.matches)-1])for(var V=o,K=a.length>0?a.shift():0;K<(isNaN(V.quantifier.max)?K+1:V.quantifier.max)&&c<=t;K++){var U=n.matches[e.inArray(V,n.matches)-1];if(o=l(U,[K].concat(s),U)){if((r=m[m.length-1].match).optionalQuantifier=K>V.quantifier.min-1,r.jit=K+U.matches.indexOf(r)>=V.quantifier.jit,f(r,U)&&K>V.quantifier.min-1){d=!0,c=t;break}if(V.quantifier.jit!==i&&isNaN(V.quantifier.max)&&r.optionalQuantifier&&E().validPositions[t-1]===i){m.pop(),d=!0,c=t,h=i;break}return!0}}else if(o=g(o,a,s,u))return!0}else c++;var z,q}for(var u=a.length>0?a.shift():0;u<n.matches.length;u++)if(!0!==n.matches[u].isQuantifier){var f=l(n.matches[u],[u].concat(o),s);if(f&&c===t)return f;if(c>t)break}}if(t>-1){if(n===i){for(var v,k=t-1;(v=E().validPositions[k]||E().tests[k])===i&&k>-1;)k--;v!==i&&k>-1&&(o=k,s=v,l=[],e.isArray(s)||(s=[s]),s.length>0&&(s[0].alternation===i?0===(l=_(o,s.slice()).locator.slice()).length&&(l=s[0].locator.slice()):e.each(s,function(e,t){if(""!==t.def)if(0===l.length)l=t.locator.slice();else for(var n=0;n<l.length;n++)t.locator[n]&&-1===l[n].toString().indexOf(t.locator[n])&&(l[n]+=","+t.locator[n])})),h=(f=l).join(""),c=k)}if(E().tests[t]&&E().tests[t][0].cd===h)return E().tests[t];for(var y=f.shift();y<u.length;y++){if(g(u[y],f,[y])&&c===t||c>t)break}}return(0===m.length||d)&&m.push({match:{fn:null,optionality:!1,casing:null,def:"",placeholder:""},locator:[],mloc:{},cd:h}),n!==i&&E().tests[t]?e.extend(!0,[],m):(E().tests[t]=e.extend(!0,[],m),E().tests[t])}function N(){return E()._buffer===i&&(E()._buffer=C(!1,1),E().buffer===i&&(E().buffer=E()._buffer.slice())),E()._buffer}function G(e){return E().buffer!==i&&!0!==e||(E().buffer=C(!0,M(),!0)),E().buffer}function I(e,t,n){var a,r;if(!0===e)w(),e=0,t=n.length;else for(a=e;a<t;a++)delete E().validPositions[a];for(r=e,a=e;a<t;a++)if(w(!0),n[a]!==p.skipOptionalPartCharacter){var o=H(r,n[a],!0,!0);!1!==o&&(w(!0),r=o.caret!==i?o.caret:o.pos+1)}}function B(t,n,a){for(var r,o=p.greedy?n:n.slice(0,1),s=!1,l=a!==i?a.split(","):[],u=0;u<l.length;u++)-1!==(r=t.indexOf(l[u]))&&t.splice(r,1);for(var c=0;c<t.length;c++)if(-1!==e.inArray(t[c],o)){s=!0;break}return s}function L(t,n,a,r,o){var s,l,u,c,p,f,m,d=e.extend(!0,{},E().validPositions),h=!1,g=o!==i?o:M();if(-1===g&&o===i)l=(c=F(s=0)).alternation;else for(;g>=0;g--)if((u=E().validPositions[g])&&u.alternation!==i){if(c&&c.locator[u.alternation]!==u.locator[u.alternation])break;s=g,l=E().validPositions[s].alternation,c=u}if(l!==i){m=parseInt(s),E().excludes[m]=E().excludes[m]||[],!0!==t&&E().excludes[m].push(D(c));var v=[],k=0;for(p=m;p<M(i,!0)+1;p++)(f=E().validPositions[p])&&!0!==f.generatedInput?v.push(f.input):p<t&&k++,delete E().validPositions[p];for(;E().excludes[m]&&E().excludes[m].length<10;){var y=-1*k,b=v.slice();for(E().tests[m]=i,w(!0),h=!0;b.length>0;){var x=b.shift();if(!(h=H(M(i,!0)+1,x,!1,r,!0)))break}if(h&&n!==i){var P=M(t)+1;for(p=m;p<M()+1;p++)((f=E().validPositions[p])===i||null==f.match.fn)&&p<t+y&&y++;h=H((t+=y)>P?P:t,n,a,r,!0)}if(h)break;if(w(),c=F(m),E().validPositions=e.extend(!0,{},d),!E().excludes[m]){h=L(t,n,a,r,m-1);break}var S=D(c);if(-1!==E().excludes[m].indexOf(S)){h=L(t,n,a,r,m-1);break}for(E().excludes[m].push(S),p=m;p<M(i,!0)+1;p++)delete E().validPositions[p]}}return E().excludes[m]=i,h}function H(t,n,a,r,o,s){function l(e){return b?e.begin-e.end>1||e.begin-e.end==1:e.end-e.begin>1||e.end-e.begin==1}a=!0===a;var c=t;function f(n,a,o){var s=!1;return e.each(R(n),function(c,f){var m=f.match;if(G(!0),!1!==(s=null!=m.fn?m.fn.test(a,E(),n,o,p,l(t)):(a===m.def||a===p.skipOptionalPartCharacter)&&""!==m.def&&{c:W(n,m,!0)||m.def,pos:n})){var d=s.c!==i?s.c:a,h=n;return d=d===p.skipOptionalPartCharacter&&null===m.fn?W(n,m,!0)||m.def:d,s.remove!==i&&(e.isArray(s.remove)||(s.remove=[s.remove]),e.each(s.remove.sort(function(e,t){return t-e}),function(e,t){K({begin:t,end:t+1})})),s.insert!==i&&(e.isArray(s.insert)||(s.insert=[s.insert]),e.each(s.insert.sort(function(e,t){return e-t}),function(e,t){H(t.pos,t.c,!0,r)})),!0!==s&&s.pos!==i&&s.pos!==n&&(h=s.pos),!0!==s&&s.pos===i&&s.c===i?!1:(K(t,e.extend({},f,{input:function(t,n,i){switch(p.casing||n.casing){case"upper":t=t.toUpperCase();break;case"lower":t=t.toLowerCase();break;case"title":var a=E().validPositions[i-1];t=0===i||a&&a.input===String.fromCharCode(u.keyCode.SPACE)?t.toUpperCase():t.toLowerCase();break;default:if(e.isFunction(p.casing)){var r=Array.prototype.slice.call(arguments);r.push(E().validPositions),t=p.casing.apply(this,r)}}return t}(d,m,h)}),r,h)||(s=!1),!1)}}),s}t.begin!==i&&(c=b?t.end:t.begin);var m=!0,d=e.extend(!0,{},E().validPositions);if(e.isFunction(p.preValidation)&&!a&&!0!==r&&!0!==s&&(m=p.preValidation(G(),c,n,l(t),p,E())),!0===m){if(V(i,c,!0),(g===i||c<g)&&(m=f(c,n,a),(!a||!0===r)&&!1===m&&!0!==s)){var h=E().validPositions[c];if(!h||null!==h.match.fn||h.match.def!==n&&n!==p.skipOptionalPartCharacter){if((p.insertMode||E().validPositions[z(c)]===i)&&!U(c,!0))for(var v=c+1,k=z(c);v<=k;v++)if(!1!==(m=f(v,n,a))){m=V(c,m.pos!==i?m.pos:v)||m,c=v;break}}else m={caret:z(c)}}!1!==m||!1===p.keepStatic||null!=p.regex&&!ae(G())||a||!0===o||(m=L(c,n,a,r)),!0===m&&(m={pos:c})}if(e.isFunction(p.postValidation)&&!1!==m&&!a&&!0!==r&&!0!==s){var y=p.postValidation(G(!0),m,p);if(y!==i){if(y.refreshFromBuffer&&y.buffer){var x=y.refreshFromBuffer;I(!0===x?x:x.start,x.end,y.buffer)}m=!0===y?m:y}}return m&&m.pos===i&&(m.pos=c),!1!==m&&!0!==s||(w(!0),E().validPositions=e.extend(!0,{},d)),m}function V(t,n,a){var r;if(t===i)for(t=n-1;t>0&&!E().validPositions[t];t--);for(var o=t;o<n;o++)if(E().validPositions[o]===i&&!U(o,!0)){var s=0==o?F(o):E().validPositions[o-1];if(s){var l,u=O(s),c=R(o).slice(),p=i,f=F(o);if(""===c[c.length-1].match.def&&c.pop(),e.each(c,function(e,t){l=O(t,u.length);var n=Math.abs(l-u);(p===i||n<p)&&null===t.match.fn&&!0!==t.match.optionality&&!0!==t.match.optionalQuantifier&&(p=n,f=t)}),(f=e.extend({},f,{input:W(o,f.match,!0)||f.match.def})).generatedInput=!0,K(o,f,!0),!0!==a){var m=E().validPositions[n].input;E().validPositions[n]=i,r=H(n,m,!0,!0)}}}return r}function K(t,n,a,r){function o(e,t,n){var a=t[e];if(a!==i&&(null===a.match.fn&&!0!==a.match.optionality||a.input===p.radixPoint)){var r=n.begin<=e-1?t[e-1]&&null===t[e-1].match.fn&&t[e-1]:t[e-1],o=n.end>e+1?t[e+1]&&null===t[e+1].match.fn&&t[e+1]:t[e+1];return r&&o}return!1}var s=t.begin!==i?t.begin:t,l=t.end!==i?t.end:t;if(t.begin>t.end&&(s=t.end,l=t.begin),r=r!==i?r:s,s!==l||p.insertMode&&E().validPositions[r]!==i&&a===i){var u=e.extend(!0,{},E().validPositions),c=M(i,!0);for(E().p=s,g=c;g>=s;g--)E().validPositions[g]&&"+"===E().validPositions[g].match.nativeDef&&(p.isNegative=!1),delete E().validPositions[g];var f=!0,m=r,d=(E().validPositions,!1),h=m,g=m;for(n&&(E().validPositions[r]=e.extend(!0,{},n),h++,m++,s<l&&g++);g<=c;g++){var v=u[g];if(v!==i&&(g>=l||g>=s&&!0!==v.generatedInput&&o(g,u,{begin:s,end:l}))){for(;""!==F(h).match.def;){if(!1===d&&u[h]&&u[h].match.nativeDef===v.match.nativeDef)E().validPositions[h]=e.extend(!0,{},u[h]),E().validPositions[h].input=v.input,V(i,h,!0),m=h+1,f=!0;else if(T(h,v.match.def)){var k=H(h,v.input,!0,!0);f=!1!==k,m=k.caret||k.insert?M():h+1,d=!0}else if(!(f=!0===v.generatedInput||v.input===p.radixPoint&&!0===p.numericInput)&&""===F(h).match.def)break;if(f)break;h++}""==F(h).match.def&&(f=!1),h=m}if(!f)break}if(!f)return E().validPositions=e.extend(!0,{},u),w(!0),!1}else n&&(E().validPositions[r]=e.extend(!0,{},n));return w(!0),!0}function U(e,t){var n=j(e).match;if(""===n.def&&(n=F(e).match),null!=n.fn)return n.fn;if(!0!==t&&e>-1){var i=R(e);return i.length>1+(""===i[i.length-1].match.def?1:0)}return!1}function z(e,t){for(var n=e+1;""!==F(n).match.def&&(!0===t&&(!0!==F(n).match.newBlockMarker||!U(n))||!0!==t&&!U(n));)n++;return n}function q(e,t){var n,i=e;if(i<=0)return 0;for(;--i>0&&(!0===t&&!0!==F(i).match.newBlockMarker||!0!==t&&!U(i)&&((n=R(i)).length<2||2===n.length&&""===n[1].match.def)););return i}function Q(t,n,a,r,o){if(r&&e.isFunction(p.onBeforeWrite)){var s=p.onBeforeWrite.call(k,r,n,a,p);if(s){if(s.refreshFromBuffer){var l=s.refreshFromBuffer;I(!0===l?l:l.start,l.end,s.buffer||n),n=G(!0)}a!==i&&(a=s.caret!==i?s.caret:a)}}if(t!==i&&(t.inputmask._valueSet(n.join("")),a===i||r!==i&&"blur"===r.type?se(t,a,0===n.length):te(t,a),!0===o)){var u=e(t),c=t.inputmask._valueGet();P=!0,u.trigger("input"),setTimeout(function(){c===N().join("")?u.trigger("cleared"):!0===ae(n)&&u.trigger("complete")},0)}}function W(t,n,a){if((n=n||F(t).match).placeholder!==i||!0===a)return e.isFunction(n.placeholder)?n.placeholder(p):n.placeholder;if(null===n.fn){if(t>-1&&E().validPositions[t]===i){var r,o=R(t),s=[];if(o.length>1+(""===o[o.length-1].match.def?1:0))for(var l=0;l<o.length;l++)if(!0!==o[l].match.optionality&&!0!==o[l].match.optionalQuantifier&&(null===o[l].match.fn||r===i||!1!==o[l].match.fn.test(r.match.def,E(),t,!0,p))&&(s.push(o[l]),null===o[l].match.fn&&(r=o[l]),s.length>1&&/[0-9a-bA-Z]/.test(s[0].match.def)))return p.placeholder.charAt(t%p.placeholder.length)}return n.def}return p.placeholder.charAt(t%p.placeholder.length)}var $,Z={on:function(t,n,a){var s=function(t){var n=this;if(n.inputmask===i&&"FORM"!==this.nodeName){var s=e.data(n,"_inputmask_opts");s?new u(s).mask(n):Z.off(n)}else{if("setvalue"===t.type||"FORM"===this.nodeName||!(n.disabled||n.readOnly&&!("keydown"===t.type&&t.ctrlKey&&67===t.keyCode||!1===p.tabThrough&&t.keyCode===u.keyCode.TAB))){switch(t.type){case"input":if(!0===P)return P=!1,t.preventDefault();if(r){var c=arguments;return setTimeout(function(){a.apply(n,c),te(n,n.inputmask.caretPos,i,!0)},0),!1}break;case"keydown":x=!1,P=!1;break;case"keypress":if(!0===x)return t.preventDefault();x=!0;break;case"click":if(o||l){c=arguments;return setTimeout(function(){a.apply(n,c)},0),!1}}var f=a.apply(n,arguments);return!1===f&&(t.preventDefault(),t.stopPropagation()),f}t.preventDefault()}};t.inputmask.events[n]=t.inputmask.events[n]||[],t.inputmask.events[n].push(s),-1!==e.inArray(n,["submit","reset"])?null!==t.form&&e(t.form).on(n,s):e(t).on(n,s)},off:function(t,n){var i;t.inputmask&&t.inputmask.events&&(n?(i=[])[n]=t.inputmask.events[n]:i=t.inputmask.events,e.each(i,function(n,i){for(;i.length>0;){var a=i.pop();-1!==e.inArray(n,["submit","reset"])?null!==t.form&&e(t.form).off(n,a):e(t).off(n,a)}delete t.inputmask.events[n]}))}},J={keydownEvent:function(t){var n=this,i=e(n),a=t.keyCode,r=te(n);if(a===u.keyCode.BACKSPACE||a===u.keyCode.DELETE||l&&a===u.keyCode.BACKSPACE_SAFARI||t.ctrlKey&&a===u.keyCode.X&&!f("cut"))t.preventDefault(),re(n,a,r),Q(n,G(!0),E().p,t,n.inputmask._valueGet()!==G().join(""));else if(a===u.keyCode.END||a===u.keyCode.PAGE_DOWN){t.preventDefault();var o=z(M());p.insertMode||o!==E().maskLength||t.shiftKey||o--,te(n,t.shiftKey?r.begin:o,o,!0)}else a===u.keyCode.HOME&&!t.shiftKey||a===u.keyCode.PAGE_UP?(t.preventDefault(),te(n,0,t.shiftKey?r.begin:0,!0)):(p.undoOnEscape&&a===u.keyCode.ESCAPE||90===a&&t.ctrlKey)&&!0!==t.altKey?(Y(n,!0,!1,d.split("")),i.trigger("click")):a!==u.keyCode.INSERT||t.shiftKey||t.ctrlKey?!0===p.tabThrough&&a===u.keyCode.TAB?(!0===t.shiftKey?(null===F(r.begin).match.fn&&(r.begin=z(r.begin)),r.end=q(r.begin,!0),r.begin=q(r.end,!0)):(r.begin=z(r.begin,!0),r.end=z(r.begin,!0),r.end<E().maskLength&&r.end--),r.begin<E().maskLength&&(t.preventDefault(),te(n,r.begin,r.end))):t.shiftKey||!1===p.insertMode&&(a===u.keyCode.RIGHT?setTimeout(function(){var e=te(n);te(n,e.begin)},0):a===u.keyCode.LEFT&&setTimeout(function(){var e=te(n);te(n,b?e.begin+1:e.begin-1)},0)):(p.insertMode=!p.insertMode,te(n,p.insertMode||r.begin!==E().maskLength?r.begin:r.begin-1));p.onKeyDown.call(this,t,G(),te(n).begin,p),S=-1!==e.inArray(a,p.ignorables)},keypressEvent:function(t,n,a,r,o){var s=this,l=e(s),c=t.which||t.charCode||t.keyCode;if(!(!0===n||t.ctrlKey&&t.altKey)&&(t.ctrlKey||t.metaKey||S))return c===u.keyCode.ENTER&&d!==G().join("")&&(d=G().join(""),setTimeout(function(){l.trigger("change")},0)),!0;if(c){46===c&&!1===t.shiftKey&&""!==p.radixPoint&&(c=p.radixPoint.charCodeAt(0));var f,m=n?{begin:o,end:o}:te(s),h=String.fromCharCode(c),g=0;if(p._radixDance&&p.numericInput){var v=G().indexOf(p.radixPoint.charAt(0))+1;m.begin<=v&&(c===p.radixPoint.charCodeAt(0)&&(g=1),m.begin-=1,m.end-=1)}E().writeOutBuffer=!0;var k=H(m,h,r);if(!1!==k&&(w(!0),f=k.caret!==i?k.caret:z(k.pos.begin?k.pos.begin:k.pos),E().p=f),f=(p.numericInput&&k.caret===i?q(f):f)+g,!1!==a&&(setTimeout(function(){p.onKeyValidation.call(s,c,k,p)},0),E().writeOutBuffer&&!1!==k)){var y=G();Q(s,y,f,t,!0!==n)}if(t.preventDefault(),n)return!1!==k&&(k.forwardPosition=f),k}},pasteEvent:function(n){var i,a=this,r=n.originalEvent||n,o=(e(a),a.inputmask._valueGet(!0)),s=te(a);b&&(i=s.end,s.end=s.begin,s.begin=i);var l=o.substr(0,s.begin),u=o.substr(s.end,o.length);if(l===(b?N().reverse():N()).slice(0,s.begin).join("")&&(l=""),u===(b?N().reverse():N()).slice(s.end).join("")&&(u=""),t.clipboardData&&t.clipboardData.getData)o=l+t.clipboardData.getData("Text")+u;else{if(!r.clipboardData||!r.clipboardData.getData)return!0;o=l+r.clipboardData.getData("text/plain")+u}var c=o;if(e.isFunction(p.onBeforePaste)){if(!1===(c=p.onBeforePaste.call(k,o,p)))return n.preventDefault();c||(c=o)}return Y(a,!1,!1,c.toString().split("")),Q(a,G(),z(M()),n,d!==G().join("")),n.preventDefault()},inputFallBackEvent:function(t){var n,i,a=this,r=a.inputmask._valueGet();if(G().join("")!==r){var s=te(a);if(i=s,"."===(n=r).charAt(i.begin-1)&&""!==p.radixPoint&&((n=n.split(""))[i.begin-1]=p.radixPoint.charAt(0),n=n.join("")),r=function(e,t,n){if(o){var i=t.replace(G().join(""),"");if(1===i.length){var a=t.split("");a.splice(n.begin,0,i),t=a.join("")}}return t}(0,r=n,s),G().join("")!==r){var l=G().join(""),c=!p.numericInput&&r.length>l.length?-1:0,f=r.substr(0,s.begin),m=r.substr(s.begin),d=l.substr(0,s.begin+c),h=l.substr(s.begin+c),g=s,v="",k=!1;if(f!==d){for(var y=(k=f.length>=d.length)?f.length:d.length,b=0;f.charAt(b)===d.charAt(b)&&b<y;b++);k&&(0===c&&(g.begin=b),v+=f.slice(b,g.end))}if(m!==h&&(m.length>h.length?v+=m.slice(0,1):m.length<h.length&&(g.end+=h.length-m.length,k||""===p.radixPoint||""!==m||f.charAt(g.begin+c-1)!==p.radixPoint||(g.begin--,v=p.radixPoint))),Q(a,G(),{begin:g.begin+c,end:g.end+c}),v.length>0)e.each(v.split(""),function(t,n){var i=new e.Event("keypress");i.which=n.charCodeAt(0),S=!1,J.keypressEvent.call(a,i)});else{g.begin===g.end-1&&(g.begin=q(g.begin+1),g.begin===g.end-1?te(a,g.begin):te(a,g.begin,g.end));var x=new e.Event("keydown");x.keyCode=p.numericInput?u.keyCode.BACKSPACE:u.keyCode.DELETE,J.keydownEvent.call(a,x),!1===p.insertMode&&te(a,te(a).begin-1)}t.preventDefault()}}},beforeInputEvent:function(t){if(t.cancelable){var n=this;switch(t.inputType){case"insertText":return e.each(t.data.split(""),function(t,i){var a=new e.Event("keypress");a.which=i.charCodeAt(0),S=!1,J.keypressEvent.call(n,a)}),t.preventDefault();case"deleteContentBackward":return(i=new e.Event("keydown")).keyCode=u.keyCode.BACKSPACE,J.keydownEvent.call(n,i),t.preventDefault();case"deleteContentForward":var i;return(i=new e.Event("keydown")).keyCode=u.keyCode.DELETE,J.keydownEvent.call(n,i),t.preventDefault()}}},setValueEvent:function(t){this.inputmask.refreshValue=!1;var n=(n=t&&t.detail?t.detail[0]:arguments[1])||this.inputmask._valueGet(!0);e.isFunction(p.onBeforeMask)&&(n=p.onBeforeMask.call(k,n,p)||n),Y(this,!0,!1,n=n.split("")),d=G().join(""),(p.clearMaskOnLostFocus||p.clearIncomplete)&&this.inputmask._valueGet()===N().join("")&&this.inputmask._valueSet("")},focusEvent:function(e){var t=this,n=t.inputmask._valueGet();p.showMaskOnFocus&&(!p.showMaskOnHover||p.showMaskOnHover&&""===n)&&(t.inputmask._valueGet()!==G().join("")?Q(t,G(),z(M())):!1===A&&te(t,z(M()))),!0===p.positionCaretOnTab&&!1===A&&J.clickEvent.apply(t,[e,!0]),d=G().join("")},mouseleaveEvent:function(e){if(A=!1,p.clearMaskOnLostFocus&&n.activeElement!==this){var t=G().slice(),i=this.inputmask._valueGet();i!==this.getAttribute("placeholder")&&""!==i&&(-1===M()&&i===N().join("")?t=[]:ie(t),Q(this,t))}},clickEvent:function(t,a){var r=this;setTimeout(function(){if(n.activeElement===r){var t=te(r);if(a&&(b?t.end=t.begin:t.begin=t.end),t.begin===t.end)switch(p.positionCaretOnClick){case"none":break;case"select":te(r,0,G().length);break;case"ignore":te(r,z(M()));break;case"radixFocus":if(function(t){if(""!==p.radixPoint){var n=E().validPositions;if(n[t]===i||n[t].input===W(t)){if(t<z(-1))return!0;var a=e.inArray(p.radixPoint,G());if(-1!==a){for(var r in n)if(a<r&&n[r].input!==W(r))return!1;return!0}}}return!1}(t.begin)){var o=G().join("").indexOf(p.radixPoint);te(r,p.numericInput?z(o):o);break}default:var s=t.begin,l=M(s,!0),u=z(l);if(s<u)te(r,U(s,!0)||U(s-1,!0)?s:z(s));else{var c=E().validPositions[l],f=j(u,c?c.match.locator:i,c),m=W(u,f.match);if(""!==m&&G()[u]!==m&&!0!==f.match.optionalQuantifier&&!0!==f.match.newBlockMarker||!U(u,p.keepStatic)&&f.match.def===m){var d=z(u);(s>=d||s===u)&&(u=d)}te(r,u)}}}},0)},dblclickEvent:function(e){var t=this;setTimeout(function(){te(t,0,z(M()))},0)},cutEvent:function(i){e(this);var a=te(this),r=i.originalEvent||i,o=t.clipboardData||r.clipboardData,s=b?G().slice(a.end,a.begin):G().slice(a.begin,a.end);o.setData("text",b?s.reverse().join(""):s.join("")),n.execCommand&&n.execCommand("copy"),re(this,u.keyCode.DELETE,a),Q(this,G(),E().p,i,d!==G().join(""))},blurEvent:function(t){var n=e(this);if(this.inputmask){var a=this.inputmask._valueGet(),r=G().slice();""===a&&v===i||(p.clearMaskOnLostFocus&&(-1===M()&&a===N().join("")?r=[]:ie(r)),!1===ae(r)&&(setTimeout(function(){n.trigger("incomplete")},0),p.clearIncomplete&&(w(),r=p.clearMaskOnLostFocus?[]:N().slice())),Q(this,r,i,t)),d!==G().join("")&&(d=r.join(""),n.trigger("change"))}},mouseenterEvent:function(e){A=!0,n.activeElement!==this&&p.showMaskOnHover&&this.inputmask._valueGet()!==G().join("")&&Q(this,G())},submitEvent:function(e){d!==G().join("")&&h.trigger("change"),p.clearMaskOnLostFocus&&-1===M()&&y.inputmask._valueGet&&y.inputmask._valueGet()===N().join("")&&y.inputmask._valueSet(""),p.clearIncomplete&&!1===ae(G())&&y.inputmask._valueSet(""),p.removeMaskOnSubmit&&(y.inputmask._valueSet(y.inputmask.unmaskedvalue(),!0),setTimeout(function(){Q(y,G())},0))},resetEvent:function(e){y.inputmask.refreshValue=!0,setTimeout(function(){h.trigger("setvalue")},0)}};function Y(t,n,a,r,o){var s=this||t.inputmask,l=r.slice(),c="",f=-1,m=i;if(w(),a||!0===p.autoUnmask)f=z(f);else{var d=N().slice(0,z(-1)).join(""),h=l.join("").match(new RegExp("^"+u.escapeRegex(d),"g"));h&&h.length>0&&(l.splice(0,h.length*d.length),f=z(f))}-1===f?(E().p=z(f),f=0):E().p=f,s.caretPos={begin:f},e.each(l,function(n,r){if(r!==i)if(E().validPositions[n]===i&&l[n]===W(n)&&U(n,!0)&&!1===H(n,l[n],!0,i,i,!0))E().p++;else{var o=new e.Event("_checkval");o.which=r.charCodeAt(0),c+=r;var u=M(i,!0);p=f,d=c,-1===C(!0,0,!1).slice(p,z(p)).join("").replace(/'/g,"").indexOf(d)||U(p)||!(F(p).match.nativeDef===d.charAt(0)||null===F(p).match.fn&&F(p).match.nativeDef==="'"+d.charAt(0)||" "===F(p).match.nativeDef&&(F(p+1).match.nativeDef===d.charAt(0)||null===F(p+1).match.fn&&F(p+1).match.nativeDef==="'"+d.charAt(0)))?(m=J.keypressEvent.call(t,o,!0,!1,a,s.caretPos.begin))&&(f=s.caretPos.begin+1,c=""):m=J.keypressEvent.call(t,o,!0,!1,a,u+1),m&&(Q(i,G(),m.forwardPosition,o,!1),s.caretPos={begin:m.forwardPosition,end:m.forwardPosition})}var p,d}),n&&Q(t,G(),m?m.forwardPosition:i,o||new e.Event("checkval"),o&&"input"===o.type)}function X(t){if(t){if(t.inputmask===i)return t.value;t.inputmask&&t.inputmask.refreshValue&&J.setValueEvent.call(t)}var n=[],a=E().validPositions;for(var r in a)a[r].match&&null!=a[r].match.fn&&n.push(a[r].input);var o=0===n.length?"":(b?n.reverse():n).join("");if(e.isFunction(p.onUnMask)){var s=(b?G().slice().reverse():G()).join("");o=p.onUnMask.call(k,s,o,p)}return o}function ee(e){return!b||"number"!=typeof e||p.greedy&&""===p.placeholder||!y||(e=y.inputmask._valueGet().length-e),e}function te(a,r,o,s){var u;if(r===i)return a.setSelectionRange?(r=a.selectionStart,o=a.selectionEnd):t.getSelection?(u=t.getSelection().getRangeAt(0)).commonAncestorContainer.parentNode!==a&&u.commonAncestorContainer!==a||(r=u.startOffset,o=u.endOffset):n.selection&&n.selection.createRange&&(o=(r=0-(u=n.selection.createRange()).duplicate().moveStart("character",-a.inputmask._valueGet().length))+u.text.length),{begin:s?r:ee(r),end:s?o:ee(o)};if(e.isArray(r)&&(o=b?r[0]:r[1],r=b?r[1]:r[0]),r.begin!==i&&(o=b?r.begin:r.end,r=b?r.end:r.begin),"number"==typeof r){r=s?r:ee(r),o="number"==typeof(o=s?o:ee(o))?o:r;var c=parseInt(((a.ownerDocument.defaultView||t).getComputedStyle?(a.ownerDocument.defaultView||t).getComputedStyle(a,null):a.currentStyle).fontSize)*o;if(a.scrollLeft=c>a.scrollWidth?c:0,l||!1!==p.insertMode||r!==o||o++,a.inputmask.caretPos={begin:r,end:o},a.setSelectionRange)a.selectionStart=r,a.selectionEnd=o;else if(t.getSelection){if(u=n.createRange(),a.firstChild===i||null===a.firstChild){var f=n.createTextNode("");a.appendChild(f)}u.setStart(a.firstChild,r<a.inputmask._valueGet().length?r:a.inputmask._valueGet().length),u.setEnd(a.firstChild,o<a.inputmask._valueGet().length?o:a.inputmask._valueGet().length),u.collapse(!0);var m=t.getSelection();m.removeAllRanges(),m.addRange(u)}else a.createTextRange&&((u=a.createTextRange()).collapse(!0),u.moveEnd("character",o),u.moveStart("character",r),u.select());se(a,{begin:r,end:o})}}function ne(t){var n,a,r=C(!0,M(),!0,!0),o=r.length,s=M(),l={},u=E().validPositions[s],c=u!==i?u.locator.slice():i;for(n=s+1;n<r.length;n++)c=(a=j(n,c,n-1)).locator.slice(),l[n]=e.extend(!0,{},a);var p=u&&u.alternation!==i?u.locator[u.alternation]:i;for(n=o-1;n>s&&(((a=l[n]).match.optionality||a.match.optionalQuantifier&&a.match.newBlockMarker||p&&(p!==l[n].locator[u.alternation]&&null!=a.match.fn||null===a.match.fn&&a.locator[u.alternation]&&B(a.locator[u.alternation].toString().split(","),p.toString().split(","))&&""!==R(n)[0].def))&&r[n]===W(n,a.match));n--)o--;return t?{l:o,def:l[o]?l[o].match:i}:o}function ie(e){e.length=0;for(var t,n=C(!0,0,!0,i,!0);(t=n.shift())!==i;)e.push(t);return e}function ae(t){if(e.isFunction(p.isComplete))return p.isComplete(t,p);if("*"===p.repeat)return i;var n=!1,a=ne(!0),r=q(a.l);if(a.def===i||a.def.newBlockMarker||a.def.optionality||a.def.optionalQuantifier){n=!0;for(var o=0;o<=r;o++){var s=j(o).match;if(null!==s.fn&&E().validPositions[o]===i&&!0!==s.optionality&&!0!==s.optionalQuantifier||null===s.fn&&t[o]!==W(o,s)){n=!1;break}}}return n}function re(e,t,n,a,r){if((p.numericInput||b)&&(t===u.keyCode.BACKSPACE?t=u.keyCode.DELETE:t===u.keyCode.DELETE&&(t=u.keyCode.BACKSPACE),b)){var o=n.end;n.end=n.begin,n.begin=o}if(t===u.keyCode.BACKSPACE&&(n.end-n.begin<1||!1===p.insertMode)?(n.begin=q(n.begin),E().validPositions[n.begin]!==i&&E().validPositions[n.begin].input===p.groupSeparator&&n.begin--,!1===p.insertMode&&n.end!==E().maskLength&&n.end--):t===u.keyCode.DELETE&&n.begin===n.end&&(n.end=U(n.end,!0)&&E().validPositions[n.end]&&E().validPositions[n.end].input!==p.radixPoint?n.end+1:z(n.end)+1,E().validPositions[n.begin]!==i&&E().validPositions[n.begin].input===p.groupSeparator&&n.end++),K(n),!0!==a&&!1!==p.keepStatic||null!==p.regex){var s=L(!0);if(s){var l=s.caret!==i?s.caret:s.pos?z(s.pos.begin?s.pos.begin:s.pos):M(-1,!0);(t!==u.keyCode.DELETE||n.begin>l)&&n.begin}}var c=M(n.begin,!0);if(c<n.begin||-1===n.begin)E().p=z(c);else if(!0!==a&&(E().p=n.begin,!0!==r))for(;E().p<c&&E().validPositions[E().p]===i;)E().p++}function oe(i){var a=(i.ownerDocument.defaultView||t).getComputedStyle(i,null);var r=n.createElement("div");r.style.width=a.width,r.style.textAlign=a.textAlign,v=n.createElement("div"),i.inputmask.colorMask=v,v.className="im-colormask",i.parentNode.insertBefore(v,i),i.parentNode.removeChild(i),v.appendChild(i),v.appendChild(r),i.style.left=r.offsetLeft+"px",e(v).on("mouseleave",function(e){return J.mouseleaveEvent.call(i,[e])}),e(v).on("mouseenter",function(e){return J.mouseenterEvent.call(i,[e])}),e(v).on("click",function(e){return te(i,function(e){var t,r=n.createElement("span");for(var o in a)isNaN(o)&&-1!==o.indexOf("font")&&(r.style[o]=a[o]);r.style.textTransform=a.textTransform,r.style.letterSpacing=a.letterSpacing,r.style.position="absolute",r.style.height="auto",r.style.width="auto",r.style.visibility="hidden",r.style.whiteSpace="nowrap",n.body.appendChild(r);var s,l=i.inputmask._valueGet(),u=0;for(t=0,s=l.length;t<=s;t++){if(r.innerHTML+=l.charAt(t)||"_",r.offsetWidth>=e){var c=e-u,p=r.offsetWidth-e;r.innerHTML=l.charAt(t),t=(c-=r.offsetWidth/3)<p?t-1:t;break}u=r.offsetWidth}return n.body.removeChild(r),t}(e.clientX)),J.clickEvent.call(i,[e])}),e(i).on("keydown",function(e){e.shiftKey||!1===p.insertMode||setTimeout(function(){se(i)},0)})}function se(e,t,a){var r,o,s,l=[],u=!1,c=0;function f(e){if(e===i&&(e=""),u||null!==r.fn&&o.input!==i)if(u&&(null!==r.fn&&o.input!==i||""===r.def)){u=!1;var t=l.length;l[t-1]=l[t-1]+"</span>",l.push(e)}else l.push(e);else u=!0,l.push("<span class='im-static'>"+e)}if(v!==i){var m=G();if(t===i?t=te(e):t.begin===i&&(t={begin:t,end:t}),!0!==a){var d=M();do{E().validPositions[c]?(o=E().validPositions[c],r=o.match,s=o.locator.slice(),f(m[c])):(o=j(c,s,c-1),r=o.match,s=o.locator.slice(),!1===p.jitMasking||c<d||"number"==typeof p.jitMasking&&isFinite(p.jitMasking)&&p.jitMasking>c?f(W(c,r)):u=!1),c++}while((g===i||c<g)&&(null!==r.fn||""!==r.def)||d>c||u);u&&f(),n.activeElement===e&&(l.splice(t.begin,0,t.begin===t.end||t.end>E().maskLength?'<mark class="im-caret" style="border-right-width: 1px;border-right-style: solid;">':'<mark class="im-caret-select">'),l.splice(t.end+1,0,"</mark>"))}var h=v.getElementsByTagName("div")[0];h.innerHTML=l.join(""),e.inputmask.positionColorMask(e,h)}}if(u.prototype.positionColorMask=function(e,t){e.style.left=t.offsetLeft+"px"},a!==i)switch(a.action){case"isComplete":return y=a.el,ae(G());case"unmaskedvalue":return y!==i&&a.value===i||($=a.value,$=(e.isFunction(p.onBeforeMask)&&p.onBeforeMask.call(k,$,p)||$).split(""),Y.call(this,i,!1,!1,$),e.isFunction(p.onBeforeWrite)&&p.onBeforeWrite.call(k,i,G(),0,p)),X(y);case"mask":!function(t){Z.off(t);var a=function(t,a){var r=t.getAttribute("type"),o="INPUT"===t.tagName&&-1!==e.inArray(r,a.supportsInputType)||t.isContentEditable||"TEXTAREA"===t.tagName;if(!o)if("INPUT"===t.tagName){var l=n.createElement("input");l.setAttribute("type",r),o="text"===l.type,l=null}else o="partial";return!1!==o?function(t){var r,o,l;function u(){return this.inputmask?this.inputmask.opts.autoUnmask?this.inputmask.unmaskedvalue():-1!==M()||!0!==a.nullable?n.activeElement===this&&a.clearMaskOnLostFocus?(b?ie(G().slice()).reverse():ie(G().slice())).join(""):r.call(this):"":r.call(this)}function c(t){o.call(this,t),this.inputmask&&e(this).trigger("setvalue",[t])}if(!t.inputmask.__valueGet){if(!0!==a.noValuePatching){if(Object.getOwnPropertyDescriptor){"function"!=typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===s("test".__proto__)?function(e){return e.__proto__}:function(e){return e.constructor.prototype});var p=Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t),"value"):i;p&&p.get&&p.set?(r=p.get,o=p.set,Object.defineProperty(t,"value",{get:u,set:c,configurable:!0})):"INPUT"!==t.tagName&&(r=function(){return this.textContent},o=function(e){this.textContent=e},Object.defineProperty(t,"value",{get:u,set:c,configurable:!0}))}else n.__lookupGetter__&&t.__lookupGetter__("value")&&(r=t.__lookupGetter__("value"),o=t.__lookupSetter__("value"),t.__defineGetter__("value",u),t.__defineSetter__("value",c));t.inputmask.__valueGet=r,t.inputmask.__valueSet=o}t.inputmask._valueGet=function(e){return b&&!0!==e?r.call(this.el).split("").reverse().join(""):r.call(this.el)},t.inputmask._valueSet=function(e,t){o.call(this.el,null===e||e===i?"":!0!==t&&b?e.split("").reverse().join(""):e)},r===i&&(r=function(){return this.value},o=function(e){this.value=e},function(t){if(e.valHooks&&(e.valHooks[t]===i||!0!==e.valHooks[t].inputmaskpatch)){var n=e.valHooks[t]&&e.valHooks[t].get?e.valHooks[t].get:function(e){return e.value},r=e.valHooks[t]&&e.valHooks[t].set?e.valHooks[t].set:function(e,t){return e.value=t,e};e.valHooks[t]={get:function(e){if(e.inputmask){if(e.inputmask.opts.autoUnmask)return e.inputmask.unmaskedvalue();var t=n(e);return-1!==M(i,i,e.inputmask.maskset.validPositions)||!0!==a.nullable?t:""}return n(e)},set:function(t,n){var i,a=e(t);return i=r(t,n),t.inputmask&&a.trigger("setvalue",[n]),i},inputmaskpatch:!0}}}(t.type),l=t,Z.on(l,"mouseenter",function(t){var n=e(this);this.inputmask._valueGet()!==G().join("")&&n.trigger("setvalue")}))}}(t):t.inputmask=i,o}(t,p);if(!1!==a&&(h=e(y=t),-1===(g=y!==i?y.maxLength:i)&&(g=i),!0===p.colorMask&&oe(y),r&&("inputmode"in y&&(y.inputmode=p.inputmode,y.setAttribute("inputmode",p.inputmode)),!0===p.disablePredictiveText&&("autocorrect"in y?y.autocorrect=!1:(!0!==p.colorMask&&oe(y),y.type="password"))),!0===a&&(Z.on(y,"submit",J.submitEvent),Z.on(y,"reset",J.resetEvent),Z.on(y,"blur",J.blurEvent),Z.on(y,"focus",J.focusEvent),!0!==p.colorMask&&(Z.on(y,"click",J.clickEvent),Z.on(y,"mouseleave",J.mouseleaveEvent),Z.on(y,"mouseenter",J.mouseenterEvent)),Z.on(y,"dblclick",J.dblclickEvent),Z.on(y,"paste",J.pasteEvent),Z.on(y,"dragdrop",J.pasteEvent),Z.on(y,"drop",J.pasteEvent),Z.on(y,"cut",J.cutEvent),Z.on(y,"complete",p.oncomplete),Z.on(y,"incomplete",p.onincomplete),Z.on(y,"cleared",p.oncleared),r||!0===p.inputEventOnly?y.removeAttribute("maxLength"):(Z.on(y,"keydown",J.keydownEvent),Z.on(y,"keypress",J.keypressEvent)),Z.on(y,"compositionstart",e.noop),Z.on(y,"compositionupdate",e.noop),Z.on(y,"compositionend",e.noop),Z.on(y,"keyup",e.noop),Z.on(y,"input",J.inputFallBackEvent),Z.on(y,"beforeinput",J.beforeInputEvent)),Z.on(y,"setvalue",J.setValueEvent),d=N().join(""),""!==y.inputmask._valueGet(!0)||!1===p.clearMaskOnLostFocus||n.activeElement===y)){var o=e.isFunction(p.onBeforeMask)&&p.onBeforeMask.call(k,y.inputmask._valueGet(!0),p)||y.inputmask._valueGet(!0);""!==o&&Y(y,!0,!1,o.split(""));var l=G().slice();d=l.join(""),!1===ae(l)&&p.clearIncomplete&&w(),p.clearMaskOnLostFocus&&n.activeElement!==y&&(-1===M()?l=[]:ie(l)),(!1===p.clearMaskOnLostFocus||p.showMaskOnFocus&&n.activeElement===y||""!==y.inputmask._valueGet(!0))&&Q(y,l),n.activeElement===y&&te(y,z(M()))}}(y);break;case"format":return $=(e.isFunction(p.onBeforeMask)&&p.onBeforeMask.call(k,a.value,p)||a.value).split(""),Y.call(this,i,!0,!1,$),a.metadata?{value:b?G().slice().reverse().join(""):G().join(""),metadata:m.call(this,{action:"getmetadata"},c,p)}:b?G().slice().reverse().join(""):G().join("");case"isValid":a.value?($=a.value.split(""),Y.call(this,i,!0,!0,$)):a.value=G().join("");for(var le=G(),ue=ne(),ce=le.length-1;ce>ue&&!U(ce);ce--);return le.splice(ue,ce+1-ue),ae(le)&&a.value===G().join("");case"getemptymask":return N().join("");case"remove":if(y&&y.inputmask)e.data(y,"_inputmask_opts",null),h=e(y),y.inputmask._valueSet(p.autoUnmask?X(y):y.inputmask._valueGet(!0)),Z.off(y),y.inputmask.colorMask&&((v=y.inputmask.colorMask).removeChild(y),v.parentNode.insertBefore(y,v),v.parentNode.removeChild(v)),Object.getOwnPropertyDescriptor&&Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(y),"value")&&y.inputmask.__valueGet&&Object.defineProperty(y,"value",{get:y.inputmask.__valueGet,set:y.inputmask.__valueSet,configurable:!0}):n.__lookupGetter__&&y.__lookupGetter__("value")&&y.inputmask.__valueGet&&(y.__defineGetter__("value",y.inputmask.__valueGet),y.__defineSetter__("value",y.inputmask.__valueSet)),y.inputmask=i;return y;case"getmetadata":if(e.isArray(c.metadata)){var pe=C(!0,0,!1).join("");return e.each(c.metadata,function(e,t){if(t.mask===pe)return pe=t,!1}),pe}return c.metadata}}return u.prototype={dataAttribute:"data-inputmask",defaults:{placeholder:"_",optionalmarker:["[","]"],quantifiermarker:["{","}"],groupmarker:["(",")"],alternatormarker:"|",escapeChar:"\\",mask:null,regex:null,oncomplete:e.noop,onincomplete:e.noop,oncleared:e.noop,repeat:0,greedy:!1,autoUnmask:!1,removeMaskOnSubmit:!1,clearMaskOnLostFocus:!0,insertMode:!0,clearIncomplete:!1,alias:null,onKeyDown:e.noop,onBeforeMask:null,onBeforePaste:function(t,n){return e.isFunction(n.onBeforeMask)?n.onBeforeMask.call(this,t,n):t},onBeforeWrite:null,onUnMask:null,showMaskOnFocus:!0,showMaskOnHover:!0,onKeyValidation:e.noop,skipOptionalPartCharacter:" ",numericInput:!1,rightAlign:!1,undoOnEscape:!0,radixPoint:"",_radixDance:!1,groupSeparator:"",keepStatic:null,positionCaretOnTab:!0,tabThrough:!1,supportsInputType:["text","tel","password","search"],ignorables:[8,9,13,19,27,33,34,35,36,37,38,39,40,45,46,93,112,113,114,115,116,117,118,119,120,121,122,123,0,229],isComplete:null,preValidation:null,postValidation:null,staticDefinitionSymbol:i,jitMasking:!1,nullable:!0,inputEventOnly:!1,noValuePatching:!1,positionCaretOnClick:"lvp",casing:null,inputmode:"verbatim",colorMask:!1,disablePredictiveText:!1,importDataAttributes:!0},definitions:{9:{validator:"[0-91-9]",definitionSymbol:"*"},a:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",definitionSymbol:"*"},"*":{validator:"[0-91-9A-Za-zА-яЁёÀ-ÿµ]"}},aliases:{},masksCache:{},mask:function(a){var r=this;return"string"==typeof a&&(a=n.getElementById(a)||n.querySelectorAll(a)),a=a.nodeName?[a]:a,e.each(a,function(n,a){var o=e.extend(!0,{},r.opts);if(function(n,a,r,o){if(!0===a.importDataAttributes){var s,l,u,p,f=function(e,a){null!==(a=a!==i?a:n.getAttribute(o+"-"+e))&&("string"==typeof a&&(0===e.indexOf("on")?a=t[a]:"false"===a?a=!1:"true"===a&&(a=!0)),r[e]=a)},m=n.getAttribute(o);if(m&&""!==m&&(m=m.replace(/'/g,'"'),l=JSON.parse("{"+m+"}")),l)for(p in u=i,l)if("alias"===p.toLowerCase()){u=l[p];break}for(s in f("alias",u),r.alias&&c(r.alias,r,a),a){if(l)for(p in u=i,l)if(p.toLowerCase()===s.toLowerCase()){u=l[p];break}f(s,u)}}return e.extend(!0,a,r),("rtl"===n.dir||a.rightAlign)&&(n.style.textAlign="right"),("rtl"===n.dir||a.numericInput)&&(n.dir="ltr",n.removeAttribute("dir"),a.isRTL=!0),Object.keys(r).length}(a,o,e.extend(!0,{},r.userOptions),r.dataAttribute)){var s=p(o,r.noMasksCache);s!==i&&(a.inputmask!==i&&(a.inputmask.opts.autoUnmask=!0,a.inputmask.remove()),a.inputmask=new u(i,i,!0),a.inputmask.opts=o,a.inputmask.noMasksCache=r.noMasksCache,a.inputmask.userOptions=e.extend(!0,{},r.userOptions),a.inputmask.isRTL=o.isRTL||o.numericInput,a.inputmask.el=a,a.inputmask.maskset=s,e.data(a,"_inputmask_opts",o),m.call(a.inputmask,{action:"mask"}))}}),a&&a[0]&&a[0].inputmask||this},option:function(t,n){return"string"==typeof t?this.opts[t]:"object"===(void 0===t?"undefined":s(t))?(e.extend(this.userOptions,t),this.el&&!0!==n&&this.mask(this.el),this):void 0},unmaskedvalue:function(e){return this.maskset=this.maskset||p(this.opts,this.noMasksCache),m.call(this,{action:"unmaskedvalue",value:e})},remove:function(){return m.call(this,{action:"remove"})},getemptymask:function(){return this.maskset=this.maskset||p(this.opts,this.noMasksCache),m.call(this,{action:"getemptymask"})},hasMaskedValue:function(){return!this.opts.autoUnmask},isComplete:function(){return this.maskset=this.maskset||p(this.opts,this.noMasksCache),m.call(this,{action:"isComplete"})},getmetadata:function(){return this.maskset=this.maskset||p(this.opts,this.noMasksCache),m.call(this,{action:"getmetadata"})},isValid:function(e){return this.maskset=this.maskset||p(this.opts,this.noMasksCache),m.call(this,{action:"isValid",value:e})},format:function(e,t){return this.maskset=this.maskset||p(this.opts,this.noMasksCache),m.call(this,{action:"format",value:e,metadata:t})},setValue:function(t){this.el&&e(this.el).trigger("setvalue",[t])},analyseMask:function(t,n,a){var r,o,s,l,c,p,f=/(?:[?*+]|\{[0-9\+\*]+(?:,[0-9\+\*]*)?(?:\|[0-9\+\*]*)?\})|[^.?*+^${[]()|\\]+|./g,m=/\[\^?]?(?:[^\\\]]+|\\[\S\s]?)*]?|\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9][0-9]*|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|c[A-Za-z]|[\S\s]?)|\((?:\?[:=!]?)?|(?:[?*+]|\{[0-9]+(?:,[0-9]*)?\})\??|[^.?*+^${[()|\\]+|./g,d=!1,h=new k,g=[],v=[];function k(e,t,n,i){this.matches=[],this.openGroup=e||!1,this.alternatorGroup=!1,this.isGroup=e||!1,this.isOptional=t||!1,this.isQuantifier=n||!1,this.isAlternator=i||!1,this.quantifier={min:1,max:1}}function y(t,r,o){o=o!==i?o:t.matches.length;var s=t.matches[o-1];if(n)0===r.indexOf("[")||d&&/\\d|\\s|\\w]/i.test(r)||"."===r?t.matches.splice(o++,0,{fn:new RegExp(r,a.casing?"i":""),optionality:!1,newBlockMarker:s===i?"master":s.def!==r,casing:null,def:r,placeholder:i,nativeDef:r}):(d&&(r=r[r.length-1]),e.each(r.split(""),function(e,n){s=t.matches[o-1],t.matches.splice(o++,0,{fn:null,optionality:!1,newBlockMarker:s===i?"master":s.def!==n&&null!==s.fn,casing:null,def:a.staticDefinitionSymbol||n,placeholder:a.staticDefinitionSymbol!==i?n:i,nativeDef:(d?"'":"")+n})})),d=!1;else{var l=(a.definitions?a.definitions[r]:i)||u.prototype.definitions[r];l&&!d?t.matches.splice(o++,0,{fn:l.validator?"string"==typeof l.validator?new RegExp(l.validator,a.casing?"i":""):new function(){this.test=l.validator}:new RegExp("."),optionality:!1,newBlockMarker:s===i?"master":s.def!==(l.definitionSymbol||r),casing:l.casing,def:l.definitionSymbol||r,placeholder:l.placeholder,nativeDef:r}):(t.matches.splice(o++,0,{fn:null,optionality:!1,newBlockMarker:s===i?"master":s.def!==r&&null!==s.fn,casing:null,def:a.staticDefinitionSymbol||r,placeholder:a.staticDefinitionSymbol!==i?r:i,nativeDef:(d?"'":"")+r}),d=!1)}}function b(){if(g.length>0){if(y(l=g[g.length-1],o),l.isAlternator){c=g.pop();for(var e=0;e<c.matches.length;e++)c.matches[e].isGroup&&(c.matches[e].isGroup=!1);g.length>0?(l=g[g.length-1]).matches.push(c):h.matches.push(c)}}else y(h,o)}function x(e){var t=new k(!0);return t.openGroup=!1,t.matches=e,t}for(n&&(a.optionalmarker[0]=i,a.optionalmarker[1]=i);r=n?m.exec(t):f.exec(t);){if(o=r[0],n)switch(o.charAt(0)){case"?":o="{0,1}";break;case"+":case"*":o="{"+o+"}"}if(d)b();else switch(o.charAt(0)){case"(?=":case"(?!":case"(?<=":case"(?<!":break;case a.escapeChar:d=!0,n&&b();break;case a.optionalmarker[1]:case a.groupmarker[1]:if((s=g.pop()).openGroup=!1,s!==i)if(g.length>0){if((l=g[g.length-1]).matches.push(s),l.isAlternator){c=g.pop();for(var P=0;P<c.matches.length;P++)c.matches[P].isGroup=!1,c.matches[P].alternatorGroup=!1;g.length>0?(l=g[g.length-1]).matches.push(c):h.matches.push(c)}}else h.matches.push(s);else b();break;case a.optionalmarker[0]:g.push(new k(!1,!0));break;case a.groupmarker[0]:g.push(new k(!0));break;case a.quantifiermarker[0]:var S=new k(!1,!1,!0),A=(o=o.replace(/[{}]/g,"")).split("|"),C=A[0].split(","),E=isNaN(C[0])?C[0]:parseInt(C[0]),w=1===C.length?E:isNaN(C[1])?C[1]:parseInt(C[1]);"*"!==E&&"+"!==E||(E="*"===w?0:1),S.quantifier={min:E,max:w,jit:A[1]};var M=g.length>0?g[g.length-1].matches:h.matches;if((r=M.pop()).isAlternator){M.push(r),M=r.matches;var D=new k(!0),O=M.pop();M.push(D),M=D.matches,r=O}r.isGroup||(r=x([r])),M.push(r),M.push(S);break;case a.alternatormarker:var _=function(e){var t=e.pop();return t.isQuantifier&&(t=x([e.pop(),t])),t};if(g.length>0){var j=(l=g[g.length-1]).matches[l.matches.length-1];p=l.openGroup&&(j.matches===i||!1===j.isGroup&&!1===j.isAlternator)?g.pop():_(l.matches)}else p=_(h.matches);if(p.isAlternator)g.push(p);else if(p.alternatorGroup?(c=g.pop(),p.alternatorGroup=!1):c=new k(!1,!1,!1,!0),c.matches.push(p),g.push(c),p.openGroup){p.openGroup=!1;var F=new k(!0);F.alternatorGroup=!0,g.push(F)}break;default:b()}}for(;g.length>0;)s=g.pop(),h.matches.push(s);return h.matches.length>0&&(!function t(r){r&&r.matches&&e.each(r.matches,function(e,o){var s=r.matches[e+1];(s===i||s.matches===i||!1===s.isQuantifier)&&o&&o.isGroup&&(o.isGroup=!1,n||(y(o,a.groupmarker[0],0),!0!==o.openGroup&&y(o,a.groupmarker[1]))),t(o)})}(h),v.push(h)),(a.numericInput||a.isRTL)&&function e(t){for(var n in t.matches=t.matches.reverse(),t.matches)if(t.matches.hasOwnProperty(n)){var r=parseInt(n);if(t.matches[n].isQuantifier&&t.matches[r+1]&&t.matches[r+1].isGroup){var o=t.matches[n];t.matches.splice(n,1),t.matches.splice(r+1,0,o)}t.matches[n].matches!==i?t.matches[n]=e(t.matches[n]):t.matches[n]=((s=t.matches[n])===a.optionalmarker[0]?s=a.optionalmarker[1]:s===a.optionalmarker[1]?s=a.optionalmarker[0]:s===a.groupmarker[0]?s=a.groupmarker[1]:s===a.groupmarker[1]&&(s=a.groupmarker[0]),s)}var s;return t}(v[0]),v}},u.extendDefaults=function(t){e.extend(!0,u.prototype.defaults,t)},u.extendDefinitions=function(t){e.extend(!0,u.prototype.definitions,t)},u.extendAliases=function(t){e.extend(!0,u.prototype.aliases,t)},u.format=function(e,t,n){return u(t).format(e,n)},u.unmask=function(e,t){return u(t).unmaskedvalue(e)},u.isValid=function(e,t){return u(t).isValid(e)},u.remove=function(t){"string"==typeof t&&(t=n.getElementById(t)||n.querySelectorAll(t)),t=t.nodeName?[t]:t,e.each(t,function(e,t){t.inputmask&&t.inputmask.remove()})},u.setValue=function(t,i){"string"==typeof t&&(t=n.getElementById(t)||n.querySelectorAll(t)),t=t.nodeName?[t]:t,e.each(t,function(t,n){n.inputmask?n.inputmask.setValue(i):e(n).trigger("setvalue",[i])})},u.escapeRegex=function(e){return e.replace(new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^"].join("|\\")+")","gim"),"\\$1")},u.keyCode={BACKSPACE:8,BACKSPACE_SAFARI:127,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,RIGHT:39,SPACE:32,TAB:9,UP:38,X:88,CONTROL:17},u},a=[n(0),n(5),n(6)],void 0===(r="function"==typeof(i=o)?i.apply(t,a):i)||(e.exports=r)},function(e,t){e.exports=jQuery},function(e,t,n){"use strict";n(4),n(7),n(8),n(9);var i=o(n(1)),a=o(n(0)),r=o(n(2));function o(e){return e&&e.__esModule?e:{default:e}}a.default===r.default&&n(10),window.Inputmask=i.default},function(e,t,n){"use strict";var i,a,r,o;"function"==typeof Symbol&&Symbol.iterator;o=function(e,t){var n={d:["[1-9]|[12][0-9]|3[01]",Date.prototype.setDate,"day",Date.prototype.getDate],dd:["0[1-9]|[12][0-9]|3[01]",Date.prototype.setDate,"day",function(){return o(Date.prototype.getDate.call(this),2)}],ddd:[""],dddd:[""],m:["[1-9]|1[012]",Date.prototype.setMonth,"month",function(){return Date.prototype.getMonth.call(this)+1}],mm:["0[1-9]|1[012]",Date.prototype.setMonth,"month",function(){return o(Date.prototype.getMonth.call(this)+1,2)}],mmm:[""],mmmm:[""],yy:["[0-9]{2}",Date.prototype.setFullYear,"year",function(){return o(Date.prototype.getFullYear.call(this),2)}],yyyy:["[0-9]{4}",Date.prototype.setFullYear,"year",function(){return o(Date.prototype.getFullYear.call(this),4)}],h:["[1-9]|1[0-2]",Date.prototype.setHours,"hours",Date.prototype.getHours],hh:["0[1-9]|1[0-2]",Date.prototype.setHours,"hours",function(){return o(Date.prototype.getHours.call(this),2)}],hhh:["[0-9]+",Date.prototype.setHours,"hours",Date.prototype.getHours],H:["1?[0-9]|2[0-3]",Date.prototype.setHours,"hours",Date.prototype.getHours],HH:["[01][0-9]|2[0-3]",Date.prototype.setHours,"hours",function(){return o(Date.prototype.getHours.call(this),2)}],HHH:["[0-9]+",Date.prototype.setHours,"hours",Date.prototype.getHours],M:["[1-5]?[0-9]",Date.prototype.setMinutes,"minutes",Date.prototype.getMinutes],MM:["[0-5][0-9]",Date.prototype.setMinutes,"minutes",function(){return o(Date.prototype.getMinutes.call(this),2)}],s:["[1-5]?[0-9]",Date.prototype.setSeconds,"seconds",Date.prototype.getSeconds],ss:["[0-5][0-9]",Date.prototype.setSeconds,"seconds",function(){return o(Date.prototype.getSeconds.call(this),2)}],l:["[0-9]{3}",Date.prototype.setMilliseconds,"milliseconds",function(){return o(Date.prototype.getMilliseconds.call(this),3)}],L:["[0-9]{2}",Date.prototype.setMilliseconds,"milliseconds",function(){return o(Date.prototype.getMilliseconds.call(this),2)}],t:["[ap]"],tt:["[ap]m"],T:["[AP]"],TT:["[AP]M"],Z:[""],o:[""],S:[""]},i={isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};function a(e){if(!e.tokenizer){var t=[];for(var i in n)-1===t.indexOf(i[0])&&t.push(i[0]);e.tokenizer="("+t.join("+|")+")+?|.",e.tokenizer=new RegExp(e.tokenizer,"g")}return e.tokenizer}function r(e,i,r){for(var o,s="";o=a(r).exec(e);){if(void 0===i)if(n[o[0]])s+="("+n[o[0]][0]+")";else switch(o[0]){case"[":s+="(";break;case"]":s+=")?";break;default:s+=t.escapeRegex(o[0])}else if(n[o[0]])s+=n[o[0]][3].call(i.date);else s+=o[0]}return s}function o(e,t){for(e=String(e),t=t||2;e.length<t;)e="0"+e;return e}function s(e,t,i){var r,o,s,l={date:new Date(1,0,1)},u=e;function c(e,t,n){var a,o;"year"===r?(e[r]=(o=4===(a=t).length?a:(new Date).getFullYear().toString().substr(0,4-a.length)+a,i.min&&i.min.year&&i.max&&i.max.year?(o=o.replace(/[^0-9]/g,""),o+=i.min.year==i.max.year?i.min.year.substr(o.length):(""!==o&&0==i.max.year.indexOf(o)?parseInt(i.max.year)-1:parseInt(i.min.year)+1).toString().substr(o.length)):o=o.replace(/[^0-9]/g,"0"),o),e["raw"+r]=t):e[r]=n.min&&t.match(/[^0-9]/)?n.min[r]:t,void 0!==s&&s.call(e.date,"month"==r?parseInt(e[r])-1:e[r])}if("string"==typeof u){for(;o=a(i).exec(t);){var p=u.slice(0,o[0].length);n.hasOwnProperty(o[0])&&(r=n[o[0]][2],s=n[o[0]][1],c(l,p,i)),u=u.slice(p.length)}return l}}return t.extendAliases({datetime:{mask:function(e){return n.S=e.i18n.ordinalSuffix.join("|"),e.inputFormat=i[e.inputFormat]||e.inputFormat,e.displayFormat=i[e.displayFormat]||e.displayFormat||e.inputFormat,e.outputFormat=i[e.outputFormat]||e.outputFormat||e.inputFormat,e.placeholder=""!==e.placeholder?e.placeholder:e.inputFormat.replace(/[\[\]]/,""),e.min=s(e.min,e.inputFormat,e),e.max=s(e.max,e.inputFormat,e),e.regex=r(e.inputFormat,void 0,e),null},placeholder:"",inputFormat:"isoDateTime",displayFormat:void 0,outputFormat:void 0,min:null,max:null,i18n:{dayNames:["Mon","Tue","Wed","Thu","Fri","Sat","Sun","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],ordinalSuffix:["st","nd","rd","th"]},postValidation:function(e,t,n){var i,a,r,o,l,u=t,c=s(e.join(""),n.inputFormat,n);return u&&c.date.getTime()==c.date.getTime()&&(o=c,l=u,u=(u=(!isFinite(o.day)||"29"==o.day&&!isFinite(o.rawyear)||new Date(o.date.getFullYear(),isFinite(o.month)?o.month:o.date.getMonth()+1,0).getDate()>=o.day)&&l)&&(i=c,r=!0,(a=n).min&&a.min.date.getTime()==a.min.date.getTime()&&(r=a.min.date.getTime()<=i.date.getTime()),r&&a.max&&a.max.date.getTime()==a.max.date.getTime()&&(r=a.max.date.getTime()>=i.date.getTime()),r)),u},onKeyDown:function(n,i,r,s){if(n.ctrlKey&&n.keyCode===t.keyCode.RIGHT){for(var l,u=new Date,c="";l=a(s).exec(s.inputFormat);)"d"===l[0].charAt(0)?c+=o(u.getDate(),l[0].length):"m"===l[0].charAt(0)?c+=o(u.getMonth()+1,l[0].length):"yyyy"===l[0]?c+=u.getFullYear().toString():"y"===l[0].charAt(0)&&(c+=o(u.getYear(),l[0].length));this.inputmask._valueSet(c),e(this).trigger("setvalue")}},onUnMask:function(e,t,n){return r(n.outputFormat,s(e,n.inputFormat,n),n)},casing:function(e,t,n,i){return 0==t.nativeDef.indexOf("[ap]")?e.toLowerCase():0==t.nativeDef.indexOf("[AP]")?e.toUpperCase():e},insertMode:!1}}),t},a=[n(0),n(1)],void 0===(r="function"==typeof(i=o)?i.apply(t,a):i)||(e.exports=r)},function(e,t,n){"use strict";var i;"function"==typeof Symbol&&Symbol.iterator;void 0===(i=function(){return window}.call(t,n,t,e))||(e.exports=i)},function(e,t,n){"use strict";var i;"function"==typeof Symbol&&Symbol.iterator;void 0===(i=function(){return document}.call(t,n,t,e))||(e.exports=i)},function(e,t,n){"use strict";var i,a,r,o;"function"==typeof Symbol&&Symbol.iterator;o=function(e,t){return t.extendDefinitions({A:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",casing:"upper"},"&":{validator:"[0-9A-Za-zА-яЁёÀ-ÿµ]",casing:"upper"},"#":{validator:"[0-9A-Fa-f]",casing:"upper"}}),t.extendAliases({cssunit:{regex:"[+-]?[0-9]+\\.?([0-9]+)?(px|em|rem|ex|%|in|cm|mm|pt|pc)"},url:{regex:"(https?|ftp)//.*",autoUnmask:!1},ip:{mask:"i[i[i]].i[i[i]].i[i[i]].i[i[i]]",definitions:{i:{validator:function(e,t,n,i,a){return n-1>-1&&"."!==t.buffer[n-1]?(e=t.buffer[n-1]+e,e=n-2>-1&&"."!==t.buffer[n-2]?t.buffer[n-2]+e:"0"+e):e="00"+e,new RegExp("25[0-5]|2[0-4][0-9]|[01][0-9][0-9]").test(e)}}},onUnMask:function(e,t,n){return e},inputmode:"numeric"},email:{mask:"*{1,64}[.*{1,64}][.*{1,64}][.*{1,63}]@-{1,63}.-{1,63}[.-{1,63}][.-{1,63}]",greedy:!1,casing:"lower",onBeforePaste:function(e,t){return(e=e.toLowerCase()).replace("mailto:","")},definitions:{"*":{validator:"[0-91-9A-Za-zА-яЁёÀ-ÿµ!#$%&'*+/=?^_`{|}~-]"},"-":{validator:"[0-9A-Za-z-]"}},onUnMask:function(e,t,n){return e},inputmode:"email"},mac:{mask:"##:##:##:##:##:##"},vin:{mask:"V{13}9{4}",definitions:{V:{validator:"[A-HJ-NPR-Za-hj-npr-z\\d]",casing:"upper"}},clearIncomplete:!0,autoUnmask:!0}}),t},a=[n(0),n(1)],void 0===(r="function"==typeof(i=o)?i.apply(t,a):i)||(e.exports=r)},function(e,t,n){"use strict";var i,a,r,o;"function"==typeof Symbol&&Symbol.iterator;o=function(e,t,n){function i(e,n){for(var i="",a=0;a<e.length;a++)t.prototype.definitions[e.charAt(a)]||n.definitions[e.charAt(a)]||n.optionalmarker.start===e.charAt(a)||n.optionalmarker.end===e.charAt(a)||n.quantifiermarker.start===e.charAt(a)||n.quantifiermarker.end===e.charAt(a)||n.groupmarker.start===e.charAt(a)||n.groupmarker.end===e.charAt(a)||n.alternatormarker===e.charAt(a)?i+="\\"+e.charAt(a):i+=e.charAt(a);return i}return t.extendAliases({numeric:{mask:function(e){if(0!==e.repeat&&isNaN(e.integerDigits)&&(e.integerDigits=e.repeat),e.repeat=0,e.groupSeparator===e.radixPoint&&e.digits&&"0"!==e.digits&&("."===e.radixPoint?e.groupSeparator=",":","===e.radixPoint?e.groupSeparator=".":e.groupSeparator="")," "===e.groupSeparator&&(e.skipOptionalPartCharacter=n),e.autoGroup=e.autoGroup&&""!==e.groupSeparator,e.autoGroup&&("string"==typeof e.groupSize&&isFinite(e.groupSize)&&(e.groupSize=parseInt(e.groupSize)),isFinite(e.integerDigits))){var t=Math.floor(e.integerDigits/e.groupSize),a=e.integerDigits%e.groupSize;e.integerDigits=parseInt(e.integerDigits)+(0===a?t-1:t),e.integerDigits<1&&(e.integerDigits="*")}e.placeholder.length>1&&(e.placeholder=e.placeholder.charAt(0)),"radixFocus"===e.positionCaretOnClick&&""===e.placeholder&&!1===e.integerOptional&&(e.positionCaretOnClick="lvp"),e.definitions[";"]=e.definitions["~"],e.definitions[";"].definitionSymbol="~",!0===e.numericInput&&(e.positionCaretOnClick="radixFocus"===e.positionCaretOnClick?"lvp":e.positionCaretOnClick,e.digitsOptional=!1,isNaN(e.digits)&&(e.digits=2),e.decimalProtect=!1);var r="[+]";if(r+=i(e.prefix,e),!0===e.integerOptional?r+="~{1,"+e.integerDigits+"}":r+="~{"+e.integerDigits+"}",e.digits!==n){var o=e.decimalProtect?":":e.radixPoint,s=e.digits.toString().split(",");isFinite(s[0])&&s[1]&&isFinite(s[1])?r+=o+";{"+e.digits+"}":(isNaN(e.digits)||parseInt(e.digits)>0)&&(e.digitsOptional?r+="["+o+";{1,"+e.digits+"}]":r+=o+";{"+e.digits+"}")}return r+=i(e.suffix,e),r+="[-]",e.greedy=!1,r},placeholder:"",greedy:!1,digits:"*",digitsOptional:!0,enforceDigitsOnBlur:!1,radixPoint:".",positionCaretOnClick:"radixFocus",groupSize:3,groupSeparator:"",autoGroup:!1,allowMinus:!0,negationSymbol:{front:"-",back:""},integerDigits:"+",integerOptional:!0,prefix:"",suffix:"",rightAlign:!0,decimalProtect:!0,min:null,max:null,step:1,insertMode:!0,autoUnmask:!1,unmaskAsNumber:!1,inputmode:"numeric",preValidation:function(t,i,a,r,o,s){if("-"===a||a===o.negationSymbol.front)return!0===o.allowMinus&&(o.isNegative=o.isNegative===n||!o.isNegative,""===t.join("")||{caret:i,dopost:!0});if(!1===r&&a===o.radixPoint&&o.digits!==n&&(isNaN(o.digits)||parseInt(o.digits)>0)){var l=e.inArray(o.radixPoint,t);if(-1!==l&&s.validPositions[l]!==n)return!0===o.numericInput?i===l:{caret:l+1}}return!0},postValidation:function(i,a,r){var o=r.suffix.split(""),s=r.prefix.split("");if(a.pos===n&&a.caret!==n&&!0!==a.dopost)return a;var l=a.caret!==n?a.caret:a.pos,u=i.slice();r.numericInput&&(l=u.length-l-1,u=u.reverse());var c=u[l];if(c===r.groupSeparator&&(c=u[l+=1]),l===u.length-r.suffix.length-1&&c===r.radixPoint)return a;c!==n&&c!==r.radixPoint&&c!==r.negationSymbol.front&&c!==r.negationSymbol.back&&(u[l]="?",r.prefix.length>0&&l>=(!1===r.isNegative?1:0)&&l<r.prefix.length-1+(!1===r.isNegative?1:0)?s[l-(!1===r.isNegative?1:0)]="?":r.suffix.length>0&&l>=u.length-r.suffix.length-(!1===r.isNegative?1:0)&&(o[l-(u.length-r.suffix.length-(!1===r.isNegative?1:0))]="?")),s=s.join(""),o=o.join("");var p=u.join("").replace(s,"");if(p=(p=(p=(p=p.replace(o,"")).replace(new RegExp(t.escapeRegex(r.groupSeparator),"g"),"")).replace(new RegExp("[-"+t.escapeRegex(r.negationSymbol.front)+"]","g"),"")).replace(new RegExp(t.escapeRegex(r.negationSymbol.back)+"$"),""),isNaN(r.placeholder)&&(p=p.replace(new RegExp(t.escapeRegex(r.placeholder),"g"),"")),p.length>1&&1!==p.indexOf(r.radixPoint)&&("0"===c&&(p=p.replace(/^\?/g,"")),p=p.replace(/^0/g,"")),p.charAt(0)===r.radixPoint&&""!==r.radixPoint&&!0!==r.numericInput&&(p="0"+p),""!==p){if(p=p.split(""),(!r.digitsOptional||r.enforceDigitsOnBlur&&"blur"===a.event)&&isFinite(r.digits)){var f=e.inArray(r.radixPoint,p),m=e.inArray(r.radixPoint,u);-1===f&&(p.push(r.radixPoint),f=p.length-1);for(var d=1;d<=r.digits;d++)r.digitsOptional&&(!r.enforceDigitsOnBlur||"blur"!==a.event)||p[f+d]!==n&&p[f+d]!==r.placeholder.charAt(0)?-1!==m&&u[m+d]!==n&&(p[f+d]=p[f+d]||u[m+d]):p[f+d]=a.placeholder||r.placeholder.charAt(0)}if(!0!==r.autoGroup||""===r.groupSeparator||c===r.radixPoint&&a.pos===n&&!a.dopost)p=p.join("");else{var h=p[p.length-1]===r.radixPoint&&a.c===r.radixPoint;p=t(function(e,t){var n="";if(n+="("+t.groupSeparator+"*{"+t.groupSize+"}){*}",""!==t.radixPoint){var i=e.join("").split(t.radixPoint);i[1]&&(n+=t.radixPoint+"*{"+i[1].match(/^\d*\??\d*/)[0].length+"}")}return n}(p,r),{numericInput:!0,jitMasking:!0,definitions:{"*":{validator:"[0-9?]",cardinality:1}}}).format(p.join("")),h&&(p+=r.radixPoint),p.charAt(0)===r.groupSeparator&&p.substr(1)}}if(r.isNegative&&"blur"===a.event&&(r.isNegative="0"!==p),p=s+p,p+=o,r.isNegative&&(p=r.negationSymbol.front+p,p+=r.negationSymbol.back),p=p.split(""),c!==n)if(c!==r.radixPoint&&c!==r.negationSymbol.front&&c!==r.negationSymbol.back)(l=e.inArray("?",p))>-1?p[l]=c:l=a.caret||0;else if(c===r.radixPoint||c===r.negationSymbol.front||c===r.negationSymbol.back){var g=e.inArray(c,p);-1!==g&&(l=g)}r.numericInput&&(l=p.length-l-1,p=p.reverse());var v={caret:c===n||a.pos!==n?l+(r.numericInput?-1:1):l,buffer:p,refreshFromBuffer:a.dopost||i.join("")!==p.join("")};return v.refreshFromBuffer?v:a},onBeforeWrite:function(i,a,r,o){if(i)switch(i.type){case"keydown":return o.postValidation(a,{caret:r,dopost:!0},o);case"blur":case"checkval":var s;if((l=o).parseMinMaxOptions===n&&(null!==l.min&&(l.min=l.min.toString().replace(new RegExp(t.escapeRegex(l.groupSeparator),"g"),""),","===l.radixPoint&&(l.min=l.min.replace(l.radixPoint,".")),l.min=isFinite(l.min)?parseFloat(l.min):NaN,isNaN(l.min)&&(l.min=Number.MIN_VALUE)),null!==l.max&&(l.max=l.max.toString().replace(new RegExp(t.escapeRegex(l.groupSeparator),"g"),""),","===l.radixPoint&&(l.max=l.max.replace(l.radixPoint,".")),l.max=isFinite(l.max)?parseFloat(l.max):NaN,isNaN(l.max)&&(l.max=Number.MAX_VALUE)),l.parseMinMaxOptions="done"),null!==o.min||null!==o.max){if(s=o.onUnMask(a.join(""),n,e.extend({},o,{unmaskAsNumber:!0})),null!==o.min&&s<o.min)return o.isNegative=o.min<0,o.postValidation(o.min.toString().replace(".",o.radixPoint).split(""),{caret:r,dopost:!0,placeholder:"0"},o);if(null!==o.max&&s>o.max)return o.isNegative=o.max<0,o.postValidation(o.max.toString().replace(".",o.radixPoint).split(""),{caret:r,dopost:!0,placeholder:"0"},o)}return o.postValidation(a,{caret:r,placeholder:"0",event:"blur"},o);case"_checkval":return{caret:r}}var l},regex:{integerPart:function(e,n){return n?new RegExp("["+t.escapeRegex(e.negationSymbol.front)+"+]?"):new RegExp("["+t.escapeRegex(e.negationSymbol.front)+"+]?\\d+")},integerNPart:function(e){return new RegExp("[\\d"+t.escapeRegex(e.groupSeparator)+t.escapeRegex(e.placeholder.charAt(0))+"]+")}},definitions:{"~":{validator:function(e,i,a,r,o,s){var l;if("k"===e||"m"===e){l={insert:[],c:0};for(var u=0,c="k"===e?2:5;u<c;u++)l.insert.push({pos:a+u,c:0});return l.pos=a+c,l}if(!0===(l=r?new RegExp("[0-9"+t.escapeRegex(o.groupSeparator)+"]").test(e):new RegExp("[0-9]").test(e))){if(!0!==o.numericInput&&i.validPositions[a]!==n&&"~"===i.validPositions[a].match.def&&!s){var p=i.buffer.join(""),f=(p=(p=p.replace(new RegExp("[-"+t.escapeRegex(o.negationSymbol.front)+"]","g"),"")).replace(new RegExp(t.escapeRegex(o.negationSymbol.back)+"$"),"")).split(o.radixPoint);f.length>1&&(f[1]=f[1].replace(/0/g,o.placeholder.charAt(0))),"0"===f[0]&&(f[0]=f[0].replace(/0/g,o.placeholder.charAt(0))),p=f[0]+o.radixPoint+f[1]||"";var m=i._buffer.join("");for(p===o.radixPoint&&(p=m);null===p.match(t.escapeRegex(m)+"$");)m=m.slice(1);l=(p=(p=p.replace(m,"")).split(""))[a]===n?{pos:a,remove:a}:{pos:a}}}else r||e!==o.radixPoint||i.validPositions[a-1]!==n||(l={insert:{pos:a,c:0},pos:a+1});return l},cardinality:1},"+":{validator:function(e,t,n,i,a){return a.allowMinus&&("-"===e||e===a.negationSymbol.front)},cardinality:1,placeholder:""},"-":{validator:function(e,t,n,i,a){return a.allowMinus&&e===a.negationSymbol.back},cardinality:1,placeholder:""},":":{validator:function(e,n,i,a,r){var o="["+t.escapeRegex(r.radixPoint)+"]",s=new RegExp(o).test(e);return s&&n.validPositions[i]&&n.validPositions[i].match.placeholder===r.radixPoint&&(s={caret:i+1}),s},cardinality:1,placeholder:function(e){return e.radixPoint}}},onUnMask:function(e,n,i){if(""===n&&!0===i.nullable)return n;var a=e.replace(i.prefix,"");return a=(a=a.replace(i.suffix,"")).replace(new RegExp(t.escapeRegex(i.groupSeparator),"g"),""),""!==i.placeholder.charAt(0)&&(a=a.replace(new RegExp(i.placeholder.charAt(0),"g"),"0")),i.unmaskAsNumber?(""!==i.radixPoint&&-1!==a.indexOf(i.radixPoint)&&(a=a.replace(t.escapeRegex.call(this,i.radixPoint),".")),a=(a=a.replace(new RegExp("^"+t.escapeRegex(i.negationSymbol.front)),"-")).replace(new RegExp(t.escapeRegex(i.negationSymbol.back)+"$"),""),Number(a)):a},isComplete:function(e,n){var i=(n.numericInput?e.slice().reverse():e).join("");return i=(i=(i=(i=(i=i.replace(new RegExp("^"+t.escapeRegex(n.negationSymbol.front)),"-")).replace(new RegExp(t.escapeRegex(n.negationSymbol.back)+"$"),"")).replace(n.prefix,"")).replace(n.suffix,"")).replace(new RegExp(t.escapeRegex(n.groupSeparator)+"([0-9]{3})","g"),"$1"),","===n.radixPoint&&(i=i.replace(t.escapeRegex(n.radixPoint),".")),isFinite(i)},onBeforeMask:function(i,a){if(a.isNegative=n,"number"==typeof i&&""!==a.radixPoint&&(i=i.toString().replace(".",a.radixPoint)),i=i.toString().charAt(i.length-1)===a.radixPoint?i.toString().substr(0,i.length-1):i.toString(),""!==a.radixPoint&&isFinite(i)){var r=i.split("."),o=""!==a.groupSeparator?parseInt(a.groupSize):0;2===r.length&&(r[0].length>o||r[1].length>o||r[0].length<=o&&r[1].length<o)&&(i=i.replace(".",a.radixPoint))}var s=i.match(/,/g),l=i.match(/\./g);if(i=l&&s?l.length>s.length?(i=i.replace(/\./g,"")).replace(",",a.radixPoint):s.length>l.length?(i=i.replace(/,/g,"")).replace(".",a.radixPoint):i.indexOf(".")<i.indexOf(",")?i.replace(/\./g,""):i.replace(/,/g,""):i.replace(new RegExp(t.escapeRegex(a.groupSeparator),"g"),""),0===a.digits&&(-1!==i.indexOf(".")?i=i.substring(0,i.indexOf(".")):-1!==i.indexOf(",")&&(i=i.substring(0,i.indexOf(",")))),""!==a.radixPoint&&isFinite(a.digits)&&-1!==i.indexOf(a.radixPoint)){var u=i.split(a.radixPoint)[1].match(new RegExp("\\d*"))[0];if(parseInt(a.digits)<u.toString().length){var c=Math.pow(10,parseInt(a.digits));i=i.replace(t.escapeRegex(a.radixPoint),"."),i=(i=Math.round(parseFloat(i)*c)/c).toString().replace(".",a.radixPoint)}}return function(t,n){var i=e.inArray(n.radixPoint,t);-1===i&&(t.push(n.radixPoint),i=t.length-1);for(var a=1;a<=n.digits;a++)t[i+a]=t[i+a]||"0";return t}(i.toString().split(""),a).join("")},onKeyDown:function(n,i,a,r){var o=e(this);if(n.ctrlKey)switch(n.keyCode){case t.keyCode.UP:o.val(parseFloat(this.inputmask.unmaskedvalue())+parseInt(r.step)),o.trigger("setvalue");break;case t.keyCode.DOWN:o.val(parseFloat(this.inputmask.unmaskedvalue())-parseInt(r.step)),o.trigger("setvalue")}}},currency:{prefix:"$ ",groupSeparator:",",alias:"numeric",placeholder:"0",autoGroup:!0,digits:2,digitsOptional:!1,clearMaskOnLostFocus:!1},decimal:{alias:"numeric"},integer:{alias:"numeric",digits:0,radixPoint:""},percentage:{alias:"numeric",digits:2,digitsOptional:!0,radixPoint:".",placeholder:"0",autoGroup:!1,min:0,max:100,suffix:" %",allowMinus:!1}}),t},a=[n(0),n(1)],void 0===(r="function"==typeof(i=o)?i.apply(t,a):i)||(e.exports=r)},function(e,t,n){"use strict";var i,a,r,o;"function"==typeof Symbol&&Symbol.iterator;o=function(e,t){function n(e,t){var n=(e.mask||e).replace(/#/g,"0").replace(/\)/,"0").replace(/[+()#-]/g,""),i=(t.mask||t).replace(/#/g,"0").replace(/\)/,"0").replace(/[+()#-]/g,"");return n.localeCompare(i)}var i=t.prototype.analyseMask;return t.prototype.analyseMask=function(t,n,a){var r={};return a.phoneCodes&&(a.phoneCodes&&a.phoneCodes.length>1e3&&(function e(n,i,a){i=i||"",a=a||r,""!==i&&(a[i]={});for(var o="",s=a[i]||a,l=n.length-1;l>=0;l--)s[o=(t=n[l].mask||n[l]).substr(0,1)]=s[o]||[],s[o].unshift(t.substr(1)),n.splice(l,1);for(var u in s)s[u].length>500&&e(s[u].slice(),u,s)}((t=t.substr(1,t.length-2)).split(a.groupmarker[1]+a.alternatormarker+a.groupmarker[0])),t=function t(n){var i="",r=[];for(var o in n)e.isArray(n[o])?1===n[o].length?r.push(o+n[o]):r.push(o+a.groupmarker[0]+n[o].join(a.groupmarker[1]+a.alternatormarker+a.groupmarker[0])+a.groupmarker[1]):r.push(o+t(n[o]));return 1===r.length?i+=r[0]:i+=a.groupmarker[0]+r.join(a.groupmarker[1]+a.alternatormarker+a.groupmarker[0])+a.groupmarker[1],i}(r)),t=t.replace(/9/g,"\\9")),i.call(this,t,n,a)},t.extendAliases({abstractphone:{groupmarker:["<",">"],countrycode:"",phoneCodes:[],keepStatic:"auto",mask:function(e){return e.definitions={"#":t.prototype.definitions[9]},e.phoneCodes.sort(n)},onBeforeMask:function(e,t){var n=e.replace(/^0{1,2}/,"").replace(/[\s]/g,"");return(n.indexOf(t.countrycode)>1||-1===n.indexOf(t.countrycode))&&(n="+"+t.countrycode+n),n},onUnMask:function(e,t,n){return e.replace(/[()#-]/g,"")},inputmode:"tel"}}),t},a=[n(0),n(1)],void 0===(r="function"==typeof(i=o)?i.apply(t,a):i)||(e.exports=r)},function(e,t,n){"use strict";var i,a,r,o,s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};o=function(e,t){return void 0===e.fn.inputmask&&(e.fn.inputmask=function(n,i){var a,r=this[0];if(void 0===i&&(i={}),"string"==typeof n)switch(n){case"unmaskedvalue":return r&&r.inputmask?r.inputmask.unmaskedvalue():e(r).val();case"remove":return this.each(function(){this.inputmask&&this.inputmask.remove()});case"getemptymask":return r&&r.inputmask?r.inputmask.getemptymask():"";case"hasMaskedValue":return!(!r||!r.inputmask)&&r.inputmask.hasMaskedValue();case"isComplete":return!r||!r.inputmask||r.inputmask.isComplete();case"getmetadata":return r&&r.inputmask?r.inputmask.getmetadata():void 0;case"setvalue":t.setValue(r,i);break;case"option":if("string"!=typeof i)return this.each(function(){if(void 0!==this.inputmask)return this.inputmask.option(i)});if(r&&void 0!==r.inputmask)return r.inputmask.option(i);break;default:return i.alias=n,a=new t(i),this.each(function(){a.mask(this)})}else{if("object"==(void 0===n?"undefined":s(n)))return a=new t(n),void 0===n.mask&&void 0===n.alias?this.each(function(){if(void 0!==this.inputmask)return this.inputmask.option(n);a.mask(this)}):this.each(function(){a.mask(this)});if(void 0===n)return this.each(function(){(a=new t(i)).mask(this)})}}),e.fn.inputmask},a=[n(2),n(1)],void 0===(r="function"==typeof(i=o)?i.apply(t,a):i)||(e.exports=r)}]);
|
includes/abstracts/abstract-ur-field-settings.php
CHANGED
@@ -14,11 +14,8 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
14 |
abstract class UR_Field_Settings {
|
15 |
|
16 |
public $field_id;
|
17 |
-
|
18 |
public $fields_html;
|
19 |
-
|
20 |
public $field_data = array();
|
21 |
-
|
22 |
public $default_class = 'ur_advance_setting';
|
23 |
|
24 |
/**
|
@@ -29,7 +26,6 @@ abstract class UR_Field_Settings {
|
|
29 |
public function get_advance_setting_data( $key ) {
|
30 |
|
31 |
if ( isset( $this->field_data->advance_setting->$key ) ) {
|
32 |
-
|
33 |
return $this->field_data->advance_setting->$key;
|
34 |
}
|
35 |
|
@@ -57,7 +53,6 @@ abstract class UR_Field_Settings {
|
|
57 |
foreach ( $fields as $field_key => $field ) {
|
58 |
|
59 |
$this->fields_html .= '<div class="ur-advance-setting ur-advance-' . esc_attr($field_key) . '">';
|
60 |
-
|
61 |
$this->fields_html .= '<label for="' . esc_attr($field['class']) . '">' . esc_html($field['label']) . '</label>';
|
62 |
|
63 |
$value = $this->get_advance_setting_data( $field_key ) == '' ? $field['default'] : $this->get_advance_setting_data( $field_key );
|
@@ -65,27 +60,20 @@ abstract class UR_Field_Settings {
|
|
65 |
switch ( $field['type'] ) {
|
66 |
|
67 |
case 'text':
|
68 |
-
|
69 |
$this->fields_html .= '<input data-advance-field="' . esc_attr($field_key) . '" value="' . esc_attr($value) . '" class="' . esc_attr($field['class']) . '" type="text" name="' . esc_attr($field['name']) . '" data-id="' . ( isset( $field['data-id'] ) ? esc_attr( $field['data-id'] ) : '' ) . '" placeholder="' . esc_attr($field['placeholder']) . '"';
|
70 |
|
71 |
if ( true == $field['required'] ) {
|
72 |
-
|
73 |
$this->fields_html .= ' required ';
|
74 |
-
|
75 |
}
|
76 |
|
77 |
$this->fields_html .= ' />';
|
78 |
-
|
79 |
break;
|
80 |
|
81 |
case 'select':
|
82 |
-
|
83 |
$this->fields_html .= '<select data-advance-field="' . esc_attr($field_key) . '" class="' . esc_attr($field['class']) . '" data-id="' . ( isset( $field['data-id'] ) ? esc_attr( $field['data-id'] ) : '' ) . '" placeholder="' . esc_attr($field['placeholder']) . '" ';
|
84 |
|
85 |
if ( true == $field['required'] ) {
|
86 |
-
|
87 |
$this->fields_html .= ' required ';
|
88 |
-
|
89 |
}
|
90 |
|
91 |
$field_options = isset( $field['options'] ) ? $field['options'] : array();
|
@@ -93,37 +81,27 @@ abstract class UR_Field_Settings {
|
|
93 |
$this->fields_html .= '>';
|
94 |
|
95 |
foreach ( $field_options as $option_key => $option_value ) {
|
96 |
-
|
97 |
$required = $value === $option_key ? 'selected="selected"' : '';
|
98 |
-
|
99 |
$this->fields_html .= '<option value="' . esc_attr($option_key) . '" ' . $required . '>' . esc_html($option_value) . '</option>';
|
100 |
-
|
101 |
}
|
102 |
|
103 |
$this->fields_html .= '</select>';
|
104 |
-
|
105 |
break;
|
106 |
|
107 |
case 'textarea':
|
108 |
-
|
109 |
$this->fields_html .= '<textarea data-advance-field="' . esc_attr($field_key) . '" class="' . esc_attr($field['class']) . '" type="text" name="' . esc_attr($field['name']) . '" data-id="' . ( isset( $field['data-id'] ) ? esc_attr( $field['data-id'] ) : '' ) . '" placeholder="' . esc_attr($field['placeholder']) . '"';
|
110 |
|
111 |
if ( true == $field['required'] ) {
|
112 |
-
|
113 |
$this->fields_html .= ' required ';
|
114 |
-
|
115 |
}
|
116 |
|
117 |
$this->fields_html .= '>' . esc_html($value) . '</textarea>';
|
118 |
-
|
119 |
break;
|
120 |
|
121 |
default:
|
122 |
-
|
123 |
}
|
124 |
|
125 |
$this->fields_html .= '</div>';
|
126 |
}// End foreach().
|
127 |
}
|
128 |
-
|
129 |
}
|
14 |
abstract class UR_Field_Settings {
|
15 |
|
16 |
public $field_id;
|
|
|
17 |
public $fields_html;
|
|
|
18 |
public $field_data = array();
|
|
|
19 |
public $default_class = 'ur_advance_setting';
|
20 |
|
21 |
/**
|
26 |
public function get_advance_setting_data( $key ) {
|
27 |
|
28 |
if ( isset( $this->field_data->advance_setting->$key ) ) {
|
|
|
29 |
return $this->field_data->advance_setting->$key;
|
30 |
}
|
31 |
|
53 |
foreach ( $fields as $field_key => $field ) {
|
54 |
|
55 |
$this->fields_html .= '<div class="ur-advance-setting ur-advance-' . esc_attr($field_key) . '">';
|
|
|
56 |
$this->fields_html .= '<label for="' . esc_attr($field['class']) . '">' . esc_html($field['label']) . '</label>';
|
57 |
|
58 |
$value = $this->get_advance_setting_data( $field_key ) == '' ? $field['default'] : $this->get_advance_setting_data( $field_key );
|
60 |
switch ( $field['type'] ) {
|
61 |
|
62 |
case 'text':
|
|
|
63 |
$this->fields_html .= '<input data-advance-field="' . esc_attr($field_key) . '" value="' . esc_attr($value) . '" class="' . esc_attr($field['class']) . '" type="text" name="' . esc_attr($field['name']) . '" data-id="' . ( isset( $field['data-id'] ) ? esc_attr( $field['data-id'] ) : '' ) . '" placeholder="' . esc_attr($field['placeholder']) . '"';
|
64 |
|
65 |
if ( true == $field['required'] ) {
|
|
|
66 |
$this->fields_html .= ' required ';
|
|
|
67 |
}
|
68 |
|
69 |
$this->fields_html .= ' />';
|
|
|
70 |
break;
|
71 |
|
72 |
case 'select':
|
|
|
73 |
$this->fields_html .= '<select data-advance-field="' . esc_attr($field_key) . '" class="' . esc_attr($field['class']) . '" data-id="' . ( isset( $field['data-id'] ) ? esc_attr( $field['data-id'] ) : '' ) . '" placeholder="' . esc_attr($field['placeholder']) . '" ';
|
74 |
|
75 |
if ( true == $field['required'] ) {
|
|
|
76 |
$this->fields_html .= ' required ';
|
|
|
77 |
}
|
78 |
|
79 |
$field_options = isset( $field['options'] ) ? $field['options'] : array();
|
81 |
$this->fields_html .= '>';
|
82 |
|
83 |
foreach ( $field_options as $option_key => $option_value ) {
|
|
|
84 |
$required = $value === $option_key ? 'selected="selected"' : '';
|
|
|
85 |
$this->fields_html .= '<option value="' . esc_attr($option_key) . '" ' . $required . '>' . esc_html($option_value) . '</option>';
|
|
|
86 |
}
|
87 |
|
88 |
$this->fields_html .= '</select>';
|
|
|
89 |
break;
|
90 |
|
91 |
case 'textarea':
|
|
|
92 |
$this->fields_html .= '<textarea data-advance-field="' . esc_attr($field_key) . '" class="' . esc_attr($field['class']) . '" type="text" name="' . esc_attr($field['name']) . '" data-id="' . ( isset( $field['data-id'] ) ? esc_attr( $field['data-id'] ) : '' ) . '" placeholder="' . esc_attr($field['placeholder']) . '"';
|
93 |
|
94 |
if ( true == $field['required'] ) {
|
|
|
95 |
$this->fields_html .= ' required ';
|
|
|
96 |
}
|
97 |
|
98 |
$this->fields_html .= '>' . esc_html($value) . '</textarea>';
|
|
|
99 |
break;
|
100 |
|
101 |
default:
|
|
|
102 |
}
|
103 |
|
104 |
$this->fields_html .= '</div>';
|
105 |
}// End foreach().
|
106 |
}
|
|
|
107 |
}
|
includes/abstracts/abstract-ur-form-field.php
CHANGED
@@ -4,7 +4,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
4 |
}
|
5 |
|
6 |
/**
|
7 |
-
* Abstract
|
8 |
*
|
9 |
* Implemented by classes using the same CRUD(s) pattern.
|
10 |
*
|
@@ -22,13 +22,8 @@ abstract class UR_Form_Field {
|
|
22 |
* @var int
|
23 |
*/
|
24 |
protected $id = 0;
|
25 |
-
|
26 |
-
|
27 |
protected $field_defaults = array();
|
28 |
-
|
29 |
protected $admin_data = array();
|
30 |
-
|
31 |
-
|
32 |
protected $registered_fields_config = array();
|
33 |
|
34 |
/**
|
@@ -44,19 +39,20 @@ abstract class UR_Form_Field {
|
|
44 |
public function get_general_setting_data( $key ) {
|
45 |
|
46 |
if ( isset( $this->admin_data->general_setting->$key ) ) {
|
47 |
-
|
48 |
return $this->admin_data->general_setting->$key;
|
49 |
}
|
50 |
|
51 |
if ( isset( $this->field_defaults[ 'default_' . $key ] ) ) {
|
52 |
-
|
53 |
return $this->field_defaults[ 'default_' . $key ];
|
54 |
}
|
55 |
|
56 |
return '';
|
57 |
}
|
58 |
|
59 |
-
|
|
|
|
|
|
|
60 |
public function get_admin_template( $admin_data = array() ) {
|
61 |
|
62 |
ob_start();
|
@@ -64,9 +60,7 @@ abstract class UR_Form_Field {
|
|
64 |
$this->admin_data = $admin_data;
|
65 |
|
66 |
$template_path = str_replace( '_', '-', str_replace( 'user_registration_', 'admin-', $this->id ) );
|
67 |
-
|
68 |
$admin_template_path = apply_filters( $this->id . '_admin_template', UR_FORM_PATH . 'views' . UR_DS . 'admin' . UR_DS . $template_path . '.php' );
|
69 |
-
|
70 |
include( $admin_template_path );
|
71 |
|
72 |
$this->admin_data = array();
|
@@ -91,55 +85,48 @@ abstract class UR_Form_Field {
|
|
91 |
|
92 |
if( isset( $data['general_setting']->required ) ) {
|
93 |
|
94 |
-
if ( in_array( $field_key, ur_get_required_fields() )
|
|
|
95 |
|
96 |
$form_data['required'] = true;
|
97 |
-
|
98 |
$form_data['custom_attributes']['required'] = 'required';
|
99 |
}
|
100 |
}
|
101 |
|
102 |
if ( isset( $data['advance_setting']->size ) ) {
|
103 |
-
|
104 |
$form_data['size'] = $data['advance_setting']->size;
|
105 |
-
|
106 |
}
|
107 |
-
if ( isset( $data['advance_setting']->default_value ) ) {
|
108 |
|
|
|
109 |
$form_data['default'] = $data['advance_setting']->default_value;
|
110 |
-
|
111 |
}
|
|
|
112 |
$form_data['input_class'] = array( 'ur-frontend-field ' );
|
113 |
|
114 |
if ( isset( $data['advance_setting']->custom_class ) ) {
|
115 |
-
|
116 |
array_push( $form_data['input_class'], $data['advance_setting']->custom_class );
|
117 |
-
|
118 |
}
|
|
|
119 |
$form_data['custom_attributes']['data-label'] = $data['general_setting']->label;
|
120 |
|
121 |
if ( 'country' == $field_key ) {
|
122 |
-
|
123 |
$form_data['options'] = UR_Form_Field_Country::get_instance()->get_country();
|
124 |
-
|
125 |
}
|
126 |
-
if ( 'select' == $field_key ) {
|
127 |
|
|
|
128 |
$option_data = isset( $data['advance_setting']->options ) ? explode( ',', $data['advance_setting']->options ) : array();
|
129 |
|
130 |
if ( is_array( $option_data ) ) {
|
131 |
-
|
132 |
foreach ( $option_data as $index_data => $option ) {
|
133 |
$form_data['options'][ $option ] = $option;
|
134 |
}
|
135 |
}
|
136 |
}
|
137 |
-
if ( 'radio' == $field_key ) {
|
138 |
|
|
|
139 |
$option_data = isset( $data['advance_setting']->options ) ? explode( ',', $data['advance_setting']->options ) : array();
|
140 |
|
141 |
if ( is_array( $option_data ) ) {
|
142 |
-
|
143 |
foreach ( $option_data as $index_data => $option ) {
|
144 |
$form_data['options'][ $option ] = $option;
|
145 |
}
|
@@ -150,7 +137,6 @@ abstract class UR_Form_Field {
|
|
150 |
$choices = isset( $data['advance_setting']->choices ) ? explode( ',', $data['advance_setting']->choices ) : array();
|
151 |
|
152 |
if ( is_array( $choices ) ) {
|
153 |
-
|
154 |
foreach ( $choices as $index_data => $choice ) {
|
155 |
$form_data['choices'][ $choice ] = $choice;
|
156 |
}
|
@@ -172,16 +158,16 @@ abstract class UR_Form_Field {
|
|
172 |
|
173 |
}
|
174 |
|
|
|
|
|
|
|
175 |
public function get_field_advance_settings() {
|
176 |
|
177 |
$file_name = str_replace( 'user_registration_', '', $this->id );
|
178 |
-
|
179 |
$file_path = UR_FORM_PATH . 'settings' . UR_DS . 'class-ur-setting-' . strtolower( $file_name ) . '.php';
|
180 |
-
|
181 |
$class_name = 'UR_Setting_' . ucwords( $file_name );
|
182 |
|
183 |
if ( ! class_exists( $class_name ) ) {
|
184 |
-
|
185 |
$file_path_array = apply_filters( 'user_registration_' . strtolower( $file_name ) . '_advance_class', array(
|
186 |
|
187 |
'file_name' => strtolower( $file_name ),
|
@@ -190,15 +176,12 @@ abstract class UR_Form_Field {
|
|
190 |
$file_path = isset( $file_path_array['file_path'] ) ? $file_path_array['file_path'] : $file_path;
|
191 |
|
192 |
if ( file_exists( $file_path ) ) {
|
193 |
-
|
194 |
$advance_setting_instance = include_once( $file_path );
|
195 |
-
|
196 |
return $advance_setting_instance->output( $this->admin_data );
|
197 |
}
|
198 |
} else {
|
199 |
|
200 |
$instance = new $class_name;
|
201 |
-
|
202 |
return $instance->output( $this->admin_data );
|
203 |
}
|
204 |
|
@@ -212,93 +195,69 @@ abstract class UR_Form_Field {
|
|
212 |
public function get_field_general_settings() {
|
213 |
|
214 |
$general_settings = ur_get_general_settings( $this->id );
|
215 |
-
|
216 |
$general_setting_html = '';
|
217 |
|
218 |
foreach ( $general_settings as $setting_key => $setting_value ) {
|
219 |
-
|
220 |
$general_setting_wrapper = '<div class="ur-general-setting ur-setting-' . $setting_value['type'] . ' ur-general-setting-' . str_replace(" ", "-", strtolower( $setting_value['label']) ) . '">';
|
221 |
-
|
222 |
$general_setting_wrapper .= '<label for="ur-type-' . $setting_value['type'] . '">' . $setting_value['label'] . '</label>';
|
223 |
-
|
224 |
$sub_string_key = substr( $this->id, strlen( 'user_registration_' ), 5 );
|
225 |
-
|
226 |
$strip_prefix = substr( $this->id, 18 );
|
227 |
|
228 |
switch ( $setting_value['type'] ) {
|
229 |
-
|
230 |
case 'text':
|
231 |
-
|
232 |
$extra_attribute = in_array( $strip_prefix, ur_get_fields_without_prefix() ) && 'field_name' == $setting_key ? "disabled='disabled'" : '';
|
233 |
-
|
234 |
$value = in_array( $strip_prefix, ur_get_fields_without_prefix() ) && 'field_name' == $setting_key ? trim( str_replace( 'user_registration_', '', $this->id ) ) : $this->get_general_setting_data( $setting_key );
|
235 |
-
|
236 |
$general_setting_wrapper .= '<input value="' . $value . '" data-field="' . $setting_key . '" class="ur-general-setting-field ur-type-' . $setting_value['type'] . '" type="text" name="' . $setting_value['name'] . '" placeholder="' . $setting_value['placeholder'] . '"';
|
237 |
|
238 |
if ( true == $setting_value['required'] ) {
|
239 |
-
|
240 |
$general_setting_wrapper .= ' required ';
|
241 |
-
|
242 |
}
|
243 |
|
244 |
$general_setting_wrapper .= $extra_attribute . ' />';
|
245 |
-
|
246 |
break;
|
247 |
|
248 |
case 'radio':
|
249 |
-
|
250 |
-
|
251 |
|
252 |
foreach ( $setting_value['options'] as $option_key => $option_value ) {
|
253 |
-
|
254 |
$general_setting_wrapper .= '<span>' . $option_value . '</span><input data-field="' . $setting_key . '" value="' . $option_key . '" class="ur-general-setting-field ur-type-' . $setting_value['type'] . '" type="radio" name="' . $setting_value['name'] . '" id="' . $setting_value['id'] . '" placeholder="' . $setting_value['placeholder'] . '"';
|
255 |
-
|
256 |
$general_setting_wrapper .= ' />';
|
257 |
-
|
258 |
}
|
259 |
} else {
|
260 |
$general_setting_wrapper .= '<input data-field="' . $setting_key . '" class="ur-general-setting-field ur-type-' . $setting_value['type'] . '" type="radio" name="' . $setting_value['name'] . '" placeholder="' . $setting_value['placeholder'] . '"';
|
261 |
|
262 |
if ( true == $setting_value['required'] ) {
|
263 |
-
|
264 |
$general_setting_wrapper .= ' required ';
|
265 |
-
|
266 |
}
|
267 |
|
268 |
$general_setting_wrapper .= ' />';
|
269 |
}
|
270 |
-
|
271 |
break;
|
272 |
|
273 |
case 'select':
|
274 |
-
|
275 |
-
|
276 |
|
277 |
$general_setting_wrapper .= '<select data-field="' . $setting_key . '" class="ur-general-setting-field ur-type-' . $setting_value['type'] . '" name="' . $setting_value['name'] . '">';
|
278 |
|
279 |
foreach ( $setting_value['options'] as $option_key => $option_value ) {
|
280 |
-
|
281 |
$selected = $this->get_general_setting_data( $setting_key ) == $option_key ? "selected='selected'" : '';
|
282 |
-
|
283 |
$general_setting_wrapper .= '<option ' . $selected . " value='" . $option_key . "'>" . $option_value . '</option>';
|
284 |
}
|
285 |
-
$general_setting_wrapper .= '</select>';
|
286 |
|
|
|
287 |
}
|
288 |
-
|
289 |
break;
|
290 |
|
291 |
case 'textarea':
|
292 |
$general_setting_wrapper .= '<textarea data-field="' . $setting_key . '" class="ur-general-setting-field ur-type-' . $setting_value['type'] . '" name="' . $setting_value['name'] . '" placeholder= "'. esc_attr( $setting_value['placeholder'] ) .'" ';
|
293 |
|
294 |
if ( true == $setting_value['required'] ) {
|
295 |
-
|
296 |
$general_setting_wrapper .= ' required >';
|
297 |
-
|
298 |
}
|
299 |
|
300 |
$general_setting_wrapper .= $this->get_general_setting_data( $setting_key ) . '</textarea>';
|
301 |
-
|
302 |
break;
|
303 |
|
304 |
default:
|
@@ -306,7 +265,6 @@ abstract class UR_Form_Field {
|
|
306 |
}// End switch().
|
307 |
|
308 |
$general_setting_wrapper .= '</div>';
|
309 |
-
|
310 |
$general_setting_html .= $general_setting_wrapper;
|
311 |
|
312 |
}// End foreach().
|
@@ -314,37 +272,31 @@ abstract class UR_Form_Field {
|
|
314 |
return $general_setting_html;
|
315 |
}
|
316 |
|
317 |
-
|
|
|
|
|
|
|
318 |
public function get_setting() {
|
319 |
-
$sub_string_key = substr( $this->id, strlen( 'user_registration_' ), 5 );
|
320 |
|
|
|
321 |
$strip_prefix = substr( $this->id, 18 );
|
322 |
-
|
323 |
$class = 'ur-general-setting-'.$strip_prefix;
|
324 |
|
325 |
echo "<div class='ur-general-setting-block " . esc_attr( $class ) ."'>";
|
326 |
-
|
327 |
echo '<h2>' . __( 'General Settings', 'user-registration' ) . '</h2>';
|
328 |
-
|
329 |
echo $this->get_field_general_settings();
|
330 |
-
|
331 |
echo '</div>';
|
332 |
|
333 |
$advance_settings = $this->get_field_advance_settings( );
|
334 |
|
335 |
if ( '' != $advance_settings ) {
|
336 |
-
|
337 |
echo "<div class='ur-advance-setting-block'>";
|
338 |
-
|
339 |
echo '<h2>' . __( 'Advance Settings', 'user-registration' ) . '</h2>';
|
340 |
-
|
341 |
echo $advance_settings;
|
342 |
-
|
343 |
echo '</div>';
|
344 |
}
|
345 |
do_action( 'user_registration_after_advance_settings', $this->id, $this->admin_data );
|
346 |
}
|
347 |
|
348 |
public abstract function validation( $single_form_field, $form_data, $filter_hook, $form_id );
|
349 |
-
|
350 |
}
|
4 |
}
|
5 |
|
6 |
/**
|
7 |
+
* Abstract UR_Form_Field Class
|
8 |
*
|
9 |
* Implemented by classes using the same CRUD(s) pattern.
|
10 |
*
|
22 |
* @var int
|
23 |
*/
|
24 |
protected $id = 0;
|
|
|
|
|
25 |
protected $field_defaults = array();
|
|
|
26 |
protected $admin_data = array();
|
|
|
|
|
27 |
protected $registered_fields_config = array();
|
28 |
|
29 |
/**
|
39 |
public function get_general_setting_data( $key ) {
|
40 |
|
41 |
if ( isset( $this->admin_data->general_setting->$key ) ) {
|
|
|
42 |
return $this->admin_data->general_setting->$key;
|
43 |
}
|
44 |
|
45 |
if ( isset( $this->field_defaults[ 'default_' . $key ] ) ) {
|
|
|
46 |
return $this->field_defaults[ 'default_' . $key ];
|
47 |
}
|
48 |
|
49 |
return '';
|
50 |
}
|
51 |
|
52 |
+
/**
|
53 |
+
* Include admin template for each form fields
|
54 |
+
* @param array $admin_data
|
55 |
+
*/
|
56 |
public function get_admin_template( $admin_data = array() ) {
|
57 |
|
58 |
ob_start();
|
60 |
$this->admin_data = $admin_data;
|
61 |
|
62 |
$template_path = str_replace( '_', '-', str_replace( 'user_registration_', 'admin-', $this->id ) );
|
|
|
63 |
$admin_template_path = apply_filters( $this->id . '_admin_template', UR_FORM_PATH . 'views' . UR_DS . 'admin' . UR_DS . $template_path . '.php' );
|
|
|
64 |
include( $admin_template_path );
|
65 |
|
66 |
$this->admin_data = array();
|
85 |
|
86 |
if( isset( $data['general_setting']->required ) ) {
|
87 |
|
88 |
+
if ( in_array( $field_key, ur_get_required_fields() )
|
89 |
+
|| 'yes' === $data['general_setting']->required ) {
|
90 |
|
91 |
$form_data['required'] = true;
|
|
|
92 |
$form_data['custom_attributes']['required'] = 'required';
|
93 |
}
|
94 |
}
|
95 |
|
96 |
if ( isset( $data['advance_setting']->size ) ) {
|
|
|
97 |
$form_data['size'] = $data['advance_setting']->size;
|
|
|
98 |
}
|
|
|
99 |
|
100 |
+
if ( isset( $data['advance_setting']->default_value ) ) {
|
101 |
$form_data['default'] = $data['advance_setting']->default_value;
|
|
|
102 |
}
|
103 |
+
|
104 |
$form_data['input_class'] = array( 'ur-frontend-field ' );
|
105 |
|
106 |
if ( isset( $data['advance_setting']->custom_class ) ) {
|
|
|
107 |
array_push( $form_data['input_class'], $data['advance_setting']->custom_class );
|
|
|
108 |
}
|
109 |
+
|
110 |
$form_data['custom_attributes']['data-label'] = $data['general_setting']->label;
|
111 |
|
112 |
if ( 'country' == $field_key ) {
|
|
|
113 |
$form_data['options'] = UR_Form_Field_Country::get_instance()->get_country();
|
|
|
114 |
}
|
|
|
115 |
|
116 |
+
if ( 'select' == $field_key ) {
|
117 |
$option_data = isset( $data['advance_setting']->options ) ? explode( ',', $data['advance_setting']->options ) : array();
|
118 |
|
119 |
if ( is_array( $option_data ) ) {
|
|
|
120 |
foreach ( $option_data as $index_data => $option ) {
|
121 |
$form_data['options'][ $option ] = $option;
|
122 |
}
|
123 |
}
|
124 |
}
|
|
|
125 |
|
126 |
+
if ( 'radio' == $field_key ) {
|
127 |
$option_data = isset( $data['advance_setting']->options ) ? explode( ',', $data['advance_setting']->options ) : array();
|
128 |
|
129 |
if ( is_array( $option_data ) ) {
|
|
|
130 |
foreach ( $option_data as $index_data => $option ) {
|
131 |
$form_data['options'][ $option ] = $option;
|
132 |
}
|
137 |
$choices = isset( $data['advance_setting']->choices ) ? explode( ',', $data['advance_setting']->choices ) : array();
|
138 |
|
139 |
if ( is_array( $choices ) ) {
|
|
|
140 |
foreach ( $choices as $index_data => $choice ) {
|
141 |
$form_data['choices'][ $choice ] = $choice;
|
142 |
}
|
158 |
|
159 |
}
|
160 |
|
161 |
+
/**
|
162 |
+
* Inlcude advance settings file if exists
|
163 |
+
*/
|
164 |
public function get_field_advance_settings() {
|
165 |
|
166 |
$file_name = str_replace( 'user_registration_', '', $this->id );
|
|
|
167 |
$file_path = UR_FORM_PATH . 'settings' . UR_DS . 'class-ur-setting-' . strtolower( $file_name ) . '.php';
|
|
|
168 |
$class_name = 'UR_Setting_' . ucwords( $file_name );
|
169 |
|
170 |
if ( ! class_exists( $class_name ) ) {
|
|
|
171 |
$file_path_array = apply_filters( 'user_registration_' . strtolower( $file_name ) . '_advance_class', array(
|
172 |
|
173 |
'file_name' => strtolower( $file_name ),
|
176 |
$file_path = isset( $file_path_array['file_path'] ) ? $file_path_array['file_path'] : $file_path;
|
177 |
|
178 |
if ( file_exists( $file_path ) ) {
|
|
|
179 |
$advance_setting_instance = include_once( $file_path );
|
|
|
180 |
return $advance_setting_instance->output( $this->admin_data );
|
181 |
}
|
182 |
} else {
|
183 |
|
184 |
$instance = new $class_name;
|
|
|
185 |
return $instance->output( $this->admin_data );
|
186 |
}
|
187 |
|
195 |
public function get_field_general_settings() {
|
196 |
|
197 |
$general_settings = ur_get_general_settings( $this->id );
|
|
|
198 |
$general_setting_html = '';
|
199 |
|
200 |
foreach ( $general_settings as $setting_key => $setting_value ) {
|
|
|
201 |
$general_setting_wrapper = '<div class="ur-general-setting ur-setting-' . $setting_value['type'] . ' ur-general-setting-' . str_replace(" ", "-", strtolower( $setting_value['label']) ) . '">';
|
|
|
202 |
$general_setting_wrapper .= '<label for="ur-type-' . $setting_value['type'] . '">' . $setting_value['label'] . '</label>';
|
|
|
203 |
$sub_string_key = substr( $this->id, strlen( 'user_registration_' ), 5 );
|
|
|
204 |
$strip_prefix = substr( $this->id, 18 );
|
205 |
|
206 |
switch ( $setting_value['type'] ) {
|
|
|
207 |
case 'text':
|
|
|
208 |
$extra_attribute = in_array( $strip_prefix, ur_get_fields_without_prefix() ) && 'field_name' == $setting_key ? "disabled='disabled'" : '';
|
|
|
209 |
$value = in_array( $strip_prefix, ur_get_fields_without_prefix() ) && 'field_name' == $setting_key ? trim( str_replace( 'user_registration_', '', $this->id ) ) : $this->get_general_setting_data( $setting_key );
|
|
|
210 |
$general_setting_wrapper .= '<input value="' . $value . '" data-field="' . $setting_key . '" class="ur-general-setting-field ur-type-' . $setting_value['type'] . '" type="text" name="' . $setting_value['name'] . '" placeholder="' . $setting_value['placeholder'] . '"';
|
211 |
|
212 |
if ( true == $setting_value['required'] ) {
|
|
|
213 |
$general_setting_wrapper .= ' required ';
|
|
|
214 |
}
|
215 |
|
216 |
$general_setting_wrapper .= $extra_attribute . ' />';
|
|
|
217 |
break;
|
218 |
|
219 |
case 'radio':
|
220 |
+
if ( isset( $setting_value['options'] )
|
221 |
+
&& gettype( $setting_value['options'] ) == 'array' ) {
|
222 |
|
223 |
foreach ( $setting_value['options'] as $option_key => $option_value ) {
|
|
|
224 |
$general_setting_wrapper .= '<span>' . $option_value . '</span><input data-field="' . $setting_key . '" value="' . $option_key . '" class="ur-general-setting-field ur-type-' . $setting_value['type'] . '" type="radio" name="' . $setting_value['name'] . '" id="' . $setting_value['id'] . '" placeholder="' . $setting_value['placeholder'] . '"';
|
|
|
225 |
$general_setting_wrapper .= ' />';
|
|
|
226 |
}
|
227 |
} else {
|
228 |
$general_setting_wrapper .= '<input data-field="' . $setting_key . '" class="ur-general-setting-field ur-type-' . $setting_value['type'] . '" type="radio" name="' . $setting_value['name'] . '" placeholder="' . $setting_value['placeholder'] . '"';
|
229 |
|
230 |
if ( true == $setting_value['required'] ) {
|
|
|
231 |
$general_setting_wrapper .= ' required ';
|
|
|
232 |
}
|
233 |
|
234 |
$general_setting_wrapper .= ' />';
|
235 |
}
|
|
|
236 |
break;
|
237 |
|
238 |
case 'select':
|
239 |
+
if ( isset( $setting_value['options'] )
|
240 |
+
&& gettype( $setting_value['options'] ) == 'array' ) {
|
241 |
|
242 |
$general_setting_wrapper .= '<select data-field="' . $setting_key . '" class="ur-general-setting-field ur-type-' . $setting_value['type'] . '" name="' . $setting_value['name'] . '">';
|
243 |
|
244 |
foreach ( $setting_value['options'] as $option_key => $option_value ) {
|
|
|
245 |
$selected = $this->get_general_setting_data( $setting_key ) == $option_key ? "selected='selected'" : '';
|
|
|
246 |
$general_setting_wrapper .= '<option ' . $selected . " value='" . $option_key . "'>" . $option_value . '</option>';
|
247 |
}
|
|
|
248 |
|
249 |
+
$general_setting_wrapper .= '</select>';
|
250 |
}
|
|
|
251 |
break;
|
252 |
|
253 |
case 'textarea':
|
254 |
$general_setting_wrapper .= '<textarea data-field="' . $setting_key . '" class="ur-general-setting-field ur-type-' . $setting_value['type'] . '" name="' . $setting_value['name'] . '" placeholder= "'. esc_attr( $setting_value['placeholder'] ) .'" ';
|
255 |
|
256 |
if ( true == $setting_value['required'] ) {
|
|
|
257 |
$general_setting_wrapper .= ' required >';
|
|
|
258 |
}
|
259 |
|
260 |
$general_setting_wrapper .= $this->get_general_setting_data( $setting_key ) . '</textarea>';
|
|
|
261 |
break;
|
262 |
|
263 |
default:
|
265 |
}// End switch().
|
266 |
|
267 |
$general_setting_wrapper .= '</div>';
|
|
|
268 |
$general_setting_html .= $general_setting_wrapper;
|
269 |
|
270 |
}// End foreach().
|
272 |
return $general_setting_html;
|
273 |
}
|
274 |
|
275 |
+
/**
|
276 |
+
* Display Setting for each fields in options tab
|
277 |
+
* @return void
|
278 |
+
*/
|
279 |
public function get_setting() {
|
|
|
280 |
|
281 |
+
$sub_string_key = substr( $this->id, strlen( 'user_registration_' ), 5 );
|
282 |
$strip_prefix = substr( $this->id, 18 );
|
|
|
283 |
$class = 'ur-general-setting-'.$strip_prefix;
|
284 |
|
285 |
echo "<div class='ur-general-setting-block " . esc_attr( $class ) ."'>";
|
|
|
286 |
echo '<h2>' . __( 'General Settings', 'user-registration' ) . '</h2>';
|
|
|
287 |
echo $this->get_field_general_settings();
|
|
|
288 |
echo '</div>';
|
289 |
|
290 |
$advance_settings = $this->get_field_advance_settings( );
|
291 |
|
292 |
if ( '' != $advance_settings ) {
|
|
|
293 |
echo "<div class='ur-advance-setting-block'>";
|
|
|
294 |
echo '<h2>' . __( 'Advance Settings', 'user-registration' ) . '</h2>';
|
|
|
295 |
echo $advance_settings;
|
|
|
296 |
echo '</div>';
|
297 |
}
|
298 |
do_action( 'user_registration_after_advance_settings', $this->id, $this->admin_data );
|
299 |
}
|
300 |
|
301 |
public abstract function validation( $single_form_field, $form_data, $filter_hook, $form_id );
|
|
|
302 |
}
|
includes/admin/class-ur-admin-profile.php
CHANGED
@@ -19,35 +19,38 @@ if ( ! class_exists( 'UR_Admin_Profile', false ) ) :
|
|
19 |
*/
|
20 |
class UR_Admin_Profile {
|
21 |
|
22 |
-
/**
|
23 |
-
* Hook in tabs.
|
24 |
-
*/
|
25 |
public function __construct() {
|
26 |
-
add_action( 'show_user_profile', array( $this, '
|
27 |
-
add_action( 'edit_user_profile', array( $this, '
|
|
|
|
|
|
|
28 |
|
29 |
-
|
30 |
-
|
|
|
|
|
|
|
|
|
31 |
}
|
32 |
|
33 |
/**
|
34 |
-
* Get
|
35 |
-
*
|
36 |
* @return array Fields to display which are filtered through user_registration_profile_meta_fields before being returned
|
37 |
*/
|
38 |
-
public function
|
|
|
39 |
$show_fields = array();
|
40 |
$form_id = $this->get_user_meta( $user_id, 'ur_form_id' );
|
41 |
-
|
42 |
$all_meta_for_user = $this->get_user_meta_by_prefix( $user_id, 'user_registration_' );
|
|
|
43 |
|
44 |
-
|
45 |
-
|
46 |
-
if ( ! empty( $extra_meta_fields ) ) {
|
47 |
$show_fields = apply_filters( 'user_registration_profile_meta_fields', array(
|
48 |
'user_registration' => array(
|
49 |
'title' => sprintf( __( 'User Extra Information %s', 'user-registration' ), '' ),
|
50 |
-
'fields' => $
|
51 |
),
|
52 |
) );
|
53 |
}
|
@@ -55,19 +58,26 @@ if ( ! class_exists( 'UR_Admin_Profile', false ) ) :
|
|
55 |
}
|
56 |
|
57 |
/**
|
58 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
*
|
60 |
* @param WP_User $user
|
61 |
*/
|
62 |
-
public function
|
63 |
if ( ! current_user_can( 'manage_options' ) ) {
|
64 |
return;
|
65 |
}
|
66 |
|
67 |
-
$show_fields = $this->
|
68 |
|
69 |
foreach ( $show_fields as $fieldset_key => $fieldset ) :
|
70 |
-
|
71 |
?>
|
72 |
<h2><?php echo $fieldset['title']; ?></h2>
|
73 |
<table class="form-table" id="<?php echo esc_attr( 'fieldset-' . $fieldset_key ); ?>">
|
@@ -81,11 +91,12 @@ if ( ! class_exists( 'UR_Admin_Profile', false ) ) :
|
|
81 |
'radio'
|
82 |
);
|
83 |
foreach ( $fieldset['fields'] as $key => $field ) :
|
|
|
84 |
$field['label'] = isset( $field['label'] ) ? $field['label'] : '';
|
85 |
$field['description'] = isset( $field['description'] ) ? $field['description'] : '';
|
86 |
$attributes = isset( $field['attributes'] ) ? $field['attributes'] : array();
|
87 |
-
|
88 |
$attribute_string = '';
|
|
|
89 |
foreach ( $attributes as $name => $value ) {
|
90 |
if ( is_bool( $value ) ) {
|
91 |
if ( $value ) {
|
@@ -97,7 +108,6 @@ if ( ! class_exists( 'UR_Admin_Profile', false ) ) :
|
|
97 |
}
|
98 |
|
99 |
$field_label = $field['label'];
|
100 |
-
|
101 |
$field_type = isset( $field['type'] ) ? $field['type'] : '';
|
102 |
|
103 |
if ( ! in_array( $field_type, $profile_field_type ) ) {
|
@@ -111,19 +121,20 @@ if ( ! class_exists( 'UR_Admin_Profile', false ) ) :
|
|
111 |
<th>
|
112 |
<label
|
113 |
for="<?php echo esc_attr( $key ); ?>"><?php echo esc_html( $field_label ); ?></label>
|
|
|
114 |
</th>
|
115 |
-
<td>
|
116 |
<?php if ( ! empty( $field['type'] ) && 'select' === $field['type'] ) : ?>
|
117 |
<select name="<?php echo esc_attr( $key ); ?>" id="<?php echo esc_attr( $key ); ?>"
|
118 |
class="<?php echo esc_attr( $field['class'] ); ?>" style="width: 25em;">
|
119 |
<option><?php echo __( 'Select', 'user-registration' ); ?></option>
|
120 |
<?php
|
121 |
$selected = esc_attr( get_user_meta( $user->ID, $key, true ) );
|
122 |
-
foreach ( $field['options'] as $option_key => $option_value ) : ?>
|
123 |
<option value="<?php echo esc_attr( trim ( $option_key ) ); ?>" <?php selected( $selected, trim( $option_key ), true ); ?>><?php echo esc_attr( trim ( $option_value ) ); ?></option>
|
124 |
<?php endforeach; ?>
|
125 |
</select>
|
126 |
-
|
127 |
<?php elseif ( ! empty( $field['type'] ) && 'country' === $field['type'] ) : ?>
|
128 |
<select name="<?php echo esc_attr( $key ); ?>" id="<?php echo esc_attr( $key ); ?>"
|
129 |
class="<?php echo esc_attr( $field['class'] ); ?>" style="width: 25em;">
|
@@ -137,7 +148,7 @@ if ( ! class_exists( 'UR_Admin_Profile', false ) ) :
|
|
137 |
</select>
|
138 |
|
139 |
<?php elseif ( ! empty( $field['type'] ) && 'radio' === $field['type'] ) : ?>
|
140 |
-
<?php
|
141 |
$db_value = get_user_meta( $user->ID, $key, true );
|
142 |
if( is_array( $field['options'] ) ) {
|
143 |
foreach( $field['options'] as $option_key => $option_value ) {
|
@@ -156,7 +167,7 @@ if ( ! class_exists( 'UR_Admin_Profile', false ) ) :
|
|
156 |
<?php elseif ( ! empty( $field['type'] ) && 'checkbox' === $field['type'] ) : ?>
|
157 |
<?php
|
158 |
|
159 |
-
$value = get_user_meta( $user->ID, $key, true );
|
160 |
|
161 |
if ( count( $field['choices'] ) > 1 && is_array( $field['choices'] ) ) {
|
162 |
foreach ( $field['choices'] as $choice ) {
|
@@ -184,7 +195,7 @@ if ( ! class_exists( 'UR_Admin_Profile', false ) ) :
|
|
184 |
class="button <?php echo esc_attr( $field['class'] ); ?>"><?php echo esc_html( $field['text'] ); ?></button>
|
185 |
<?php elseif ( ! empty( $field['type'] ) && 'privacy_policy' === $field['type'] ) : ?>
|
186 |
<input checked type="checkbox" disabled="disabled"/>
|
187 |
-
|
188 |
<?php elseif ( ! empty( $field['type'] ) && 'textarea' === $field['type'] ) : ?>
|
189 |
<textarea name="<?php echo esc_attr( $key ); ?>"
|
190 |
id="<?php echo esc_attr( $key ); ?>"
|
@@ -194,7 +205,7 @@ if ( ! class_exists( 'UR_Admin_Profile', false ) ) :
|
|
194 |
rows="5"
|
195 |
cols="30"><?php echo esc_attr( $this->get_user_meta( $user->ID, $key ) ); ?></textarea>
|
196 |
|
197 |
-
<?php else :
|
198 |
|
199 |
if ( ! empty( $field['type'] ) ) {
|
200 |
$data = array(
|
@@ -218,11 +229,10 @@ if ( ! class_exists( 'UR_Admin_Profile', false ) ) :
|
|
218 |
<?php echo esc_attr( $attribute_string ); ?>
|
219 |
/>
|
220 |
|
221 |
-
<?php }
|
222 |
|
223 |
} endif; ?>
|
224 |
<br/>
|
225 |
-
<span class="description"><?php echo wp_kses_post( $field['description'] ); ?></span>
|
226 |
</td>
|
227 |
</tr>
|
228 |
<?php
|
@@ -233,23 +243,35 @@ if ( ! class_exists( 'UR_Admin_Profile', false ) ) :
|
|
233 |
endforeach;
|
234 |
}
|
235 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
236 |
|
237 |
/**
|
238 |
-
* Save
|
239 |
*
|
240 |
* @param int $user_id User ID of the user being saved
|
241 |
*/
|
242 |
-
public function
|
243 |
|
244 |
-
$save_fields = $this->
|
245 |
|
246 |
foreach ( $save_fields as $fieldset ) {
|
247 |
foreach ( $fieldset['fields'] as $key => $field ) {
|
248 |
-
|
249 |
if ( isset( $field['type'] ) && 'checkbox' === $field['type'] ) {
|
250 |
-
if ( isset( $_POST[ $key ] )
|
251 |
-
|
252 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
253 |
} elseif ( isset( $_POST[ $key ] ) ) {
|
254 |
update_user_meta( $user_id, $key, sanitize_text_field( $_POST[ $key ] ) );
|
255 |
}
|
@@ -259,11 +281,8 @@ if ( ! class_exists( 'UR_Admin_Profile', false ) ) :
|
|
259 |
|
260 |
/**
|
261 |
* Get user meta for a given key, with fallbacks to core user info for pre-existing fields.
|
262 |
-
*
|
263 |
-
* @since 3.1.0
|
264 |
-
*
|
265 |
* @param int $user_id User ID of the user being edited
|
266 |
-
* @param string $key
|
267 |
*
|
268 |
* @return string
|
269 |
*/
|
@@ -281,38 +300,27 @@ if ( ! class_exists( 'UR_Admin_Profile', false ) ) :
|
|
281 |
}
|
282 |
|
283 |
/**
|
284 |
-
* Get user meta for a given key, with fallbacks to core user info for pre-existing fields.
|
285 |
-
*
|
286 |
-
* @since 3.1.0
|
287 |
*
|
288 |
* @param int $user_id User ID of the user being edited
|
289 |
-
* @param string $
|
290 |
-
*
|
291 |
* @return array
|
292 |
*/
|
293 |
protected function get_user_meta_by_prefix( $user_id, $key_prefix ) {
|
294 |
|
295 |
$values = get_user_meta( $user_id );
|
296 |
-
|
297 |
$return_values = array();
|
298 |
|
299 |
if ( gettype( $values ) != 'array' ) {
|
300 |
-
|
301 |
return $return_values;
|
302 |
}
|
303 |
|
304 |
foreach ( $values as $meta_key => $value ) {
|
305 |
-
|
306 |
if ( substr( $meta_key, 0, strlen( $key_prefix ) ) == $key_prefix ) {
|
307 |
-
|
308 |
if ( isset( $value[0] ) ) {
|
309 |
-
|
310 |
$return_values[ $meta_key ] = $value[0];
|
311 |
-
|
312 |
} elseif ( gettype( $values ) == 'string' ) {
|
313 |
-
|
314 |
$return_values[ $meta_key ] = $value;
|
315 |
-
|
316 |
}
|
317 |
}
|
318 |
}
|
@@ -320,7 +328,20 @@ if ( ! class_exists( 'UR_Admin_Profile', false ) ) :
|
|
320 |
return $return_values;
|
321 |
}
|
322 |
|
323 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
324 |
|
325 |
$post_id = $form_id;
|
326 |
$args = array(
|
@@ -328,113 +349,88 @@ if ( ! class_exists( 'UR_Admin_Profile', false ) ) :
|
|
328 |
'post_status' => 'publish',
|
329 |
'post__in' => array( $post_id ),
|
330 |
);
|
331 |
-
$post_data = get_posts( $args );
|
332 |
|
|
|
333 |
$post_content = isset( $post_data[0]->post_content ) ? $post_data[0]->post_content : '';
|
334 |
-
|
335 |
$fields = array();
|
336 |
-
|
337 |
$post_content_array = json_decode( $post_content );
|
338 |
|
339 |
if ( gettype( $post_content_array ) != 'array' ) {
|
340 |
-
|
341 |
return $fields;
|
342 |
}
|
|
|
343 |
$all_meta_value_keys = array_keys( $all_meta_value );
|
344 |
|
345 |
foreach ( $post_content_array as $post_content_row ) {
|
346 |
-
|
347 |
foreach ( $post_content_row as $post_content_grid ) {
|
348 |
-
|
349 |
foreach ( $post_content_grid as $field ) {
|
350 |
-
|
351 |
$field_name = isset( $field->general_setting->field_name ) ? $field->general_setting->field_name : '';
|
352 |
-
|
353 |
$field_label = isset( $field->general_setting->label ) ? $field->general_setting->label : '';
|
354 |
-
|
355 |
$field_key = isset( $field->field_key ) ? $field->field_key : '';
|
356 |
|
357 |
if ( $field_label == '' && isset( $field->general_setting->field_name ) ) {
|
358 |
-
|
359 |
$field_label_array = explode( '_', $field->general_setting->field_name );
|
360 |
-
|
361 |
$field_label = join( ' ', array_map( 'ucwords', $field_label_array ) );
|
362 |
-
|
363 |
}
|
364 |
|
365 |
if ( $field_name != '' ) {
|
366 |
-
|
367 |
$field_index = '';
|
368 |
|
369 |
if ( in_array( 'user_registration_' . $field_name, $all_meta_value_keys ) ) {
|
370 |
-
|
371 |
$field_index = 'user_registration_' . $field_name;
|
372 |
$fields[ $field_index ] = array(
|
373 |
'label' => __( $field_label, 'user-registration' ),
|
374 |
-
'description' => '',
|
375 |
);
|
376 |
|
377 |
} elseif ( ! in_array( $field_name, ur_get_fields_without_prefix() ) ) {
|
378 |
-
|
379 |
$field_index = $field_name;
|
380 |
$fields[ $field_name ] = array(
|
381 |
'label' => __( $field_label, 'user-registration' ),
|
382 |
-
'description' => '',
|
383 |
);
|
384 |
}
|
385 |
switch ( $field_key ) {
|
386 |
|
387 |
case 'select':
|
388 |
-
|
389 |
$option_data = isset( $field->advance_setting->options ) ? explode( ',', $field->advance_setting->options ) : array();
|
390 |
|
391 |
if ( is_array( $option_data ) && $field_index != '' ) {
|
392 |
-
|
393 |
foreach ( $option_data as $index_data => $option ) {
|
394 |
-
|
395 |
$fields[ $field_index ]['options'][ $option ] = $option;
|
396 |
}
|
397 |
$fields[ $field_index ]['type'] = 'select';
|
398 |
$fields[ $field_index ]['class'] = '';
|
399 |
}
|
400 |
break;
|
401 |
-
case 'radio':
|
402 |
|
|
|
403 |
$option_data = isset( $field->advance_setting->options ) ? explode( ',', $field->advance_setting->options ) : array();
|
404 |
|
405 |
if ( is_array( $option_data ) && $field_index != '' ) {
|
406 |
-
|
407 |
foreach ( $option_data as $index_data => $option ) {
|
408 |
-
|
409 |
$fields[ $field_index ]['options'][ $option ] = $option;
|
410 |
}
|
411 |
$fields[ $field_index ]['type'] = 'radio';
|
412 |
-
|
413 |
$fields[ $field_index ]['class'] = '';
|
414 |
}
|
415 |
break;
|
416 |
|
417 |
case 'country':
|
418 |
-
|
419 |
$country = ur_load_form_field_class( $field_key );
|
420 |
-
|
421 |
$fields[ $field_index ]['options'] = $country::get_instance()->get_country();
|
422 |
-
|
423 |
$fields[ $field_index ]['type'] = 'country';
|
424 |
-
|
425 |
$fields[ $field_index ]['class'] = '';
|
426 |
-
|
427 |
break;
|
428 |
-
case 'textarea':
|
429 |
|
|
|
430 |
$fields[ $field_index ]['type'] = 'textarea';
|
431 |
-
|
432 |
$fields[ $field_index ]['class'] = '';
|
433 |
-
|
434 |
break;
|
|
|
435 |
case 'mailchimp':
|
436 |
case 'checkbox':
|
437 |
-
|
438 |
$choices_data = isset( $field->advance_setting->choices ) ? ( $field->advance_setting->choices ) : '';
|
439 |
|
440 |
$choices_data = explode( ",", $choices_data );
|
@@ -445,6 +441,7 @@ if ( ! class_exists( 'UR_Admin_Profile', false ) ) :
|
|
445 |
$fields[ $field_index ]['class'] = '';
|
446 |
|
447 |
break;
|
|
|
448 |
case 'privacy_policy':
|
449 |
$fields[ $field_index ]['type'] = 'privacy_policy';
|
450 |
break;
|
@@ -462,12 +459,10 @@ if ( ! class_exists( 'UR_Admin_Profile', false ) ) :
|
|
462 |
}// End foreach().
|
463 |
}// End foreach().
|
464 |
}// End foreach().
|
465 |
-
|
466 |
return $fields;
|
467 |
}
|
468 |
-
|
469 |
}
|
470 |
-
|
471 |
endif;
|
472 |
|
473 |
return new UR_Admin_Profile();
|
19 |
*/
|
20 |
class UR_Admin_Profile {
|
21 |
|
|
|
|
|
|
|
22 |
public function __construct() {
|
23 |
+
add_action( 'show_user_profile', array( $this, 'show_user_extra_fields' ) );
|
24 |
+
add_action( 'edit_user_profile', array( $this, 'show_user_extra_fields' ) );
|
25 |
+
add_action( 'personal_options_update', array( $this, 'update_user_profile' ) );
|
26 |
+
add_action( 'edit_user_profile_update', array( $this, 'update_user_profile' ) );
|
27 |
+
}
|
28 |
|
29 |
+
/**
|
30 |
+
* @deprecated 1.4.1
|
31 |
+
* @param array $all_meta_value, int $form_id
|
32 |
+
*/
|
33 |
+
public function get_customer_meta_fields( $all_meta_value, $form_id ) {
|
34 |
+
ur_deprecated_function( 'UR_Admin_Profile::get_customer_meta_fields', '1.4.1', 'UR_Admin_Profile::get_user_meta_by_form_fields' );
|
35 |
}
|
36 |
|
37 |
/**
|
38 |
+
* Get User extra fields from usermeta and integrate with form
|
39 |
+
* @param $user_id
|
40 |
* @return array Fields to display which are filtered through user_registration_profile_meta_fields before being returned
|
41 |
*/
|
42 |
+
public function get_user_meta_by_form_fields( $user_id ) {
|
43 |
+
|
44 |
$show_fields = array();
|
45 |
$form_id = $this->get_user_meta( $user_id, 'ur_form_id' );
|
|
|
46 |
$all_meta_for_user = $this->get_user_meta_by_prefix( $user_id, 'user_registration_' );
|
47 |
+
$form_fields = $this->get_form_fields( $all_meta_for_user, $form_id );
|
48 |
|
49 |
+
if ( ! empty( $form_fields ) ) {
|
|
|
|
|
50 |
$show_fields = apply_filters( 'user_registration_profile_meta_fields', array(
|
51 |
'user_registration' => array(
|
52 |
'title' => sprintf( __( 'User Extra Information %s', 'user-registration' ), '' ),
|
53 |
+
'fields' => $form_fields,
|
54 |
),
|
55 |
) );
|
56 |
}
|
58 |
}
|
59 |
|
60 |
/**
|
61 |
+
* @deprecated 1.4.1
|
62 |
+
* @param array $all_meta_value, int $form_id
|
63 |
+
*/
|
64 |
+
public function add_customer_meta_fields( $all_meta_value, $form_id ) {
|
65 |
+
ur_deprecated_function( 'UR_Admin_Profile::add_customer_meta_fields', '1.4.1', 'UR_Admin_Profile::show_user_extra_fields' );
|
66 |
+
}
|
67 |
+
|
68 |
+
/**
|
69 |
+
* Show user extra information in users profile page.
|
70 |
*
|
71 |
* @param WP_User $user
|
72 |
*/
|
73 |
+
public function show_user_extra_fields( $user ) {
|
74 |
if ( ! current_user_can( 'manage_options' ) ) {
|
75 |
return;
|
76 |
}
|
77 |
|
78 |
+
$show_fields = $this->get_user_meta_by_form_fields( $user->ID );
|
79 |
|
80 |
foreach ( $show_fields as $fieldset_key => $fieldset ) :
|
|
|
81 |
?>
|
82 |
<h2><?php echo $fieldset['title']; ?></h2>
|
83 |
<table class="form-table" id="<?php echo esc_attr( 'fieldset-' . $fieldset_key ); ?>">
|
91 |
'radio'
|
92 |
);
|
93 |
foreach ( $fieldset['fields'] as $key => $field ) :
|
94 |
+
|
95 |
$field['label'] = isset( $field['label'] ) ? $field['label'] : '';
|
96 |
$field['description'] = isset( $field['description'] ) ? $field['description'] : '';
|
97 |
$attributes = isset( $field['attributes'] ) ? $field['attributes'] : array();
|
|
|
98 |
$attribute_string = '';
|
99 |
+
|
100 |
foreach ( $attributes as $name => $value ) {
|
101 |
if ( is_bool( $value ) ) {
|
102 |
if ( $value ) {
|
108 |
}
|
109 |
|
110 |
$field_label = $field['label'];
|
|
|
111 |
$field_type = isset( $field['type'] ) ? $field['type'] : '';
|
112 |
|
113 |
if ( ! in_array( $field_type, $profile_field_type ) ) {
|
121 |
<th>
|
122 |
<label
|
123 |
for="<?php echo esc_attr( $key ); ?>"><?php echo esc_html( $field_label ); ?></label>
|
124 |
+
<p><span class="description"><?php echo wp_kses_post( $field['description'] ); ?></span></p>
|
125 |
</th>
|
126 |
+
<td>
|
127 |
<?php if ( ! empty( $field['type'] ) && 'select' === $field['type'] ) : ?>
|
128 |
<select name="<?php echo esc_attr( $key ); ?>" id="<?php echo esc_attr( $key ); ?>"
|
129 |
class="<?php echo esc_attr( $field['class'] ); ?>" style="width: 25em;">
|
130 |
<option><?php echo __( 'Select', 'user-registration' ); ?></option>
|
131 |
<?php
|
132 |
$selected = esc_attr( get_user_meta( $user->ID, $key, true ) );
|
133 |
+
foreach ( $field['options'] as $option_key => $option_value ) : ?>
|
134 |
<option value="<?php echo esc_attr( trim ( $option_key ) ); ?>" <?php selected( $selected, trim( $option_key ), true ); ?>><?php echo esc_attr( trim ( $option_value ) ); ?></option>
|
135 |
<?php endforeach; ?>
|
136 |
</select>
|
137 |
+
|
138 |
<?php elseif ( ! empty( $field['type'] ) && 'country' === $field['type'] ) : ?>
|
139 |
<select name="<?php echo esc_attr( $key ); ?>" id="<?php echo esc_attr( $key ); ?>"
|
140 |
class="<?php echo esc_attr( $field['class'] ); ?>" style="width: 25em;">
|
148 |
</select>
|
149 |
|
150 |
<?php elseif ( ! empty( $field['type'] ) && 'radio' === $field['type'] ) : ?>
|
151 |
+
<?php
|
152 |
$db_value = get_user_meta( $user->ID, $key, true );
|
153 |
if( is_array( $field['options'] ) ) {
|
154 |
foreach( $field['options'] as $option_key => $option_value ) {
|
167 |
<?php elseif ( ! empty( $field['type'] ) && 'checkbox' === $field['type'] ) : ?>
|
168 |
<?php
|
169 |
|
170 |
+
$value = get_user_meta( $user->ID, $key, true );
|
171 |
|
172 |
if ( count( $field['choices'] ) > 1 && is_array( $field['choices'] ) ) {
|
173 |
foreach ( $field['choices'] as $choice ) {
|
195 |
class="button <?php echo esc_attr( $field['class'] ); ?>"><?php echo esc_html( $field['text'] ); ?></button>
|
196 |
<?php elseif ( ! empty( $field['type'] ) && 'privacy_policy' === $field['type'] ) : ?>
|
197 |
<input checked type="checkbox" disabled="disabled"/>
|
198 |
+
|
199 |
<?php elseif ( ! empty( $field['type'] ) && 'textarea' === $field['type'] ) : ?>
|
200 |
<textarea name="<?php echo esc_attr( $key ); ?>"
|
201 |
id="<?php echo esc_attr( $key ); ?>"
|
205 |
rows="5"
|
206 |
cols="30"><?php echo esc_attr( $this->get_user_meta( $user->ID, $key ) ); ?></textarea>
|
207 |
|
208 |
+
<?php else :
|
209 |
|
210 |
if ( ! empty( $field['type'] ) ) {
|
211 |
$data = array(
|
229 |
<?php echo esc_attr( $attribute_string ); ?>
|
230 |
/>
|
231 |
|
232 |
+
<?php }
|
233 |
|
234 |
} endif; ?>
|
235 |
<br/>
|
|
|
236 |
</td>
|
237 |
</tr>
|
238 |
<?php
|
243 |
endforeach;
|
244 |
}
|
245 |
|
246 |
+
/**
|
247 |
+
* @deprecated 1.4.1
|
248 |
+
* @param array $all_meta_value, int $form_id
|
249 |
+
*/
|
250 |
+
public function save_customer_meta_fields( $all_meta_value, $form_id ) {
|
251 |
+
ur_deprecated_function( 'UR_Admin_Profile::save_customer_meta_fields', '1.4.1', 'UR_Admin_Profile::update_user_profile' );
|
252 |
+
}
|
253 |
|
254 |
/**
|
255 |
+
* Save user extra fields on edit user pages.
|
256 |
*
|
257 |
* @param int $user_id User ID of the user being saved
|
258 |
*/
|
259 |
+
public function update_user_profile( $user_id ) {
|
260 |
|
261 |
+
$save_fields = $this->get_user_meta_by_form_fields( $user_id );
|
262 |
|
263 |
foreach ( $save_fields as $fieldset ) {
|
264 |
foreach ( $fieldset['fields'] as $key => $field ) {
|
|
|
265 |
if ( isset( $field['type'] ) && 'checkbox' === $field['type'] ) {
|
266 |
+
if ( isset( $_POST[ $key ] ) ) {
|
267 |
+
if( is_array( $_POST[ $key ] ) ) {
|
268 |
+
$values = array_map( 'sanitize_text_field', $_POST[ $key ] );
|
269 |
+
update_user_meta( $user_id, $key, $values );
|
270 |
+
}
|
271 |
+
}
|
272 |
+
else {
|
273 |
+
update_user_meta( $user_id, $key, '' );
|
274 |
+
}
|
275 |
} elseif ( isset( $_POST[ $key ] ) ) {
|
276 |
update_user_meta( $user_id, $key, sanitize_text_field( $_POST[ $key ] ) );
|
277 |
}
|
281 |
|
282 |
/**
|
283 |
* Get user meta for a given key, with fallbacks to core user info for pre-existing fields.
|
|
|
|
|
|
|
284 |
* @param int $user_id User ID of the user being edited
|
285 |
+
* @param string $key key for user meta field
|
286 |
*
|
287 |
* @return string
|
288 |
*/
|
300 |
}
|
301 |
|
302 |
/**
|
303 |
+
* Get user meta for a given key prefix, with fallbacks to core user info for pre-existing fields.
|
|
|
|
|
304 |
*
|
305 |
* @param int $user_id User ID of the user being edited
|
306 |
+
* @param string $key_prefix
|
|
|
307 |
* @return array
|
308 |
*/
|
309 |
protected function get_user_meta_by_prefix( $user_id, $key_prefix ) {
|
310 |
|
311 |
$values = get_user_meta( $user_id );
|
|
|
312 |
$return_values = array();
|
313 |
|
314 |
if ( gettype( $values ) != 'array' ) {
|
|
|
315 |
return $return_values;
|
316 |
}
|
317 |
|
318 |
foreach ( $values as $meta_key => $value ) {
|
|
|
319 |
if ( substr( $meta_key, 0, strlen( $key_prefix ) ) == $key_prefix ) {
|
|
|
320 |
if ( isset( $value[0] ) ) {
|
|
|
321 |
$return_values[ $meta_key ] = $value[0];
|
|
|
322 |
} elseif ( gettype( $values ) == 'string' ) {
|
|
|
323 |
$return_values[ $meta_key ] = $value;
|
|
|
324 |
}
|
325 |
}
|
326 |
}
|
328 |
return $return_values;
|
329 |
}
|
330 |
|
331 |
+
/**
|
332 |
+
* @deprecated 1.4.1
|
333 |
+
* @param array $all_meta_value, int $form_id
|
334 |
+
*/
|
335 |
+
public function get_user_meta_fields( $all_meta_value, $form_id ) {
|
336 |
+
ur_deprecated_function( 'UR_Admin_Profile::get_user_meta_fields', '1.4.1', 'UR_Admin_Profile::get_form_fields' );
|
337 |
+
}
|
338 |
+
|
339 |
+
/**
|
340 |
+
* Get all the registration form fields
|
341 |
+
* @param $all_meta_value
|
342 |
+
* @param int $form_id
|
343 |
+
*/
|
344 |
+
protected function get_form_fields( $all_meta_value, $form_id ) {
|
345 |
|
346 |
$post_id = $form_id;
|
347 |
$args = array(
|
349 |
'post_status' => 'publish',
|
350 |
'post__in' => array( $post_id ),
|
351 |
);
|
|
|
352 |
|
353 |
+
$post_data = get_posts( $args );
|
354 |
$post_content = isset( $post_data[0]->post_content ) ? $post_data[0]->post_content : '';
|
|
|
355 |
$fields = array();
|
|
|
356 |
$post_content_array = json_decode( $post_content );
|
357 |
|
358 |
if ( gettype( $post_content_array ) != 'array' ) {
|
|
|
359 |
return $fields;
|
360 |
}
|
361 |
+
|
362 |
$all_meta_value_keys = array_keys( $all_meta_value );
|
363 |
|
364 |
foreach ( $post_content_array as $post_content_row ) {
|
|
|
365 |
foreach ( $post_content_row as $post_content_grid ) {
|
|
|
366 |
foreach ( $post_content_grid as $field ) {
|
|
|
367 |
$field_name = isset( $field->general_setting->field_name ) ? $field->general_setting->field_name : '';
|
|
|
368 |
$field_label = isset( $field->general_setting->label ) ? $field->general_setting->label : '';
|
369 |
+
$field_description = isset( $field->general_setting->description ) ? $field->general_setting->description : '';
|
370 |
$field_key = isset( $field->field_key ) ? $field->field_key : '';
|
371 |
|
372 |
if ( $field_label == '' && isset( $field->general_setting->field_name ) ) {
|
|
|
373 |
$field_label_array = explode( '_', $field->general_setting->field_name );
|
|
|
374 |
$field_label = join( ' ', array_map( 'ucwords', $field_label_array ) );
|
|
|
375 |
}
|
376 |
|
377 |
if ( $field_name != '' ) {
|
|
|
378 |
$field_index = '';
|
379 |
|
380 |
if ( in_array( 'user_registration_' . $field_name, $all_meta_value_keys ) ) {
|
|
|
381 |
$field_index = 'user_registration_' . $field_name;
|
382 |
$fields[ $field_index ] = array(
|
383 |
'label' => __( $field_label, 'user-registration' ),
|
384 |
+
'description' => __( $field_description, 'user-registration' ),
|
385 |
);
|
386 |
|
387 |
} elseif ( ! in_array( $field_name, ur_get_fields_without_prefix() ) ) {
|
|
|
388 |
$field_index = $field_name;
|
389 |
$fields[ $field_name ] = array(
|
390 |
'label' => __( $field_label, 'user-registration' ),
|
391 |
+
'description' => __( $field_description, 'user-registration' ),
|
392 |
);
|
393 |
}
|
394 |
switch ( $field_key ) {
|
395 |
|
396 |
case 'select':
|
|
|
397 |
$option_data = isset( $field->advance_setting->options ) ? explode( ',', $field->advance_setting->options ) : array();
|
398 |
|
399 |
if ( is_array( $option_data ) && $field_index != '' ) {
|
|
|
400 |
foreach ( $option_data as $index_data => $option ) {
|
|
|
401 |
$fields[ $field_index ]['options'][ $option ] = $option;
|
402 |
}
|
403 |
$fields[ $field_index ]['type'] = 'select';
|
404 |
$fields[ $field_index ]['class'] = '';
|
405 |
}
|
406 |
break;
|
|
|
407 |
|
408 |
+
case 'radio':
|
409 |
$option_data = isset( $field->advance_setting->options ) ? explode( ',', $field->advance_setting->options ) : array();
|
410 |
|
411 |
if ( is_array( $option_data ) && $field_index != '' ) {
|
|
|
412 |
foreach ( $option_data as $index_data => $option ) {
|
|
|
413 |
$fields[ $field_index ]['options'][ $option ] = $option;
|
414 |
}
|
415 |
$fields[ $field_index ]['type'] = 'radio';
|
|
|
416 |
$fields[ $field_index ]['class'] = '';
|
417 |
}
|
418 |
break;
|
419 |
|
420 |
case 'country':
|
|
|
421 |
$country = ur_load_form_field_class( $field_key );
|
|
|
422 |
$fields[ $field_index ]['options'] = $country::get_instance()->get_country();
|
|
|
423 |
$fields[ $field_index ]['type'] = 'country';
|
|
|
424 |
$fields[ $field_index ]['class'] = '';
|
|
|
425 |
break;
|
|
|
426 |
|
427 |
+
case 'textarea':
|
428 |
$fields[ $field_index ]['type'] = 'textarea';
|
|
|
429 |
$fields[ $field_index ]['class'] = '';
|
|
|
430 |
break;
|
431 |
+
|
432 |
case 'mailchimp':
|
433 |
case 'checkbox':
|
|
|
434 |
$choices_data = isset( $field->advance_setting->choices ) ? ( $field->advance_setting->choices ) : '';
|
435 |
|
436 |
$choices_data = explode( ",", $choices_data );
|
441 |
$fields[ $field_index ]['class'] = '';
|
442 |
|
443 |
break;
|
444 |
+
|
445 |
case 'privacy_policy':
|
446 |
$fields[ $field_index ]['type'] = 'privacy_policy';
|
447 |
break;
|
459 |
}// End foreach().
|
460 |
}// End foreach().
|
461 |
}// End foreach().
|
462 |
+
|
463 |
return $fields;
|
464 |
}
|
|
|
465 |
}
|
|
|
466 |
endif;
|
467 |
|
468 |
return new UR_Admin_Profile();
|
includes/admin/settings/class-ur-settings-email.php
CHANGED
@@ -25,7 +25,6 @@ if ( ! class_exists( 'UR_Settings_Email' ) ) :
|
|
25 |
*
|
26 |
* @var array
|
27 |
*/
|
28 |
-
|
29 |
public $emails = array();
|
30 |
|
31 |
/**
|
@@ -39,7 +38,6 @@ if ( ! class_exists( 'UR_Settings_Email' ) ) :
|
|
39 |
add_filter( 'user_registration_settings_tabs_array', array( $this, 'add_settings_page' ), 20 );
|
40 |
add_action( 'user_registration_settings_' . $this->id, array( $this, 'output' ) );
|
41 |
add_action( 'user_registration_settings_save_' . $this->id, array( $this, 'save' ) );
|
42 |
-
|
43 |
add_action( 'user_registration_admin_field_email_notification', array( $this, 'email_notification_setting' ) );
|
44 |
|
45 |
$this->emails['UR_Settings_Admin_Email'] = include( 'emails/class-ur-settings-admin-email.php' );
|
@@ -81,7 +79,12 @@ if ( ! class_exists( 'UR_Settings_Email' ) ) :
|
|
81 |
'id' => 'general_email_setting',
|
82 |
),
|
83 |
|
84 |
-
array(
|
|
|
|
|
|
|
|
|
|
|
85 |
|
86 |
array( 'type' => 'email_notification' ),
|
87 |
|
@@ -153,20 +156,18 @@ if ( ! class_exists( 'UR_Settings_Email' ) ) :
|
|
153 |
</tr>
|
154 |
</thead>
|
155 |
<tbody>
|
156 |
-
|
157 |
|
158 |
<?php
|
159 |
$emails = $this->get_emails();
|
160 |
-
foreach( $emails as $email )
|
161 |
-
{
|
162 |
echo '<tr><td class="ur-email-settings-table">
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
}
|
171 |
?>
|
172 |
</tbody>
|
@@ -201,10 +202,8 @@ if ( ! class_exists( 'UR_Settings_Email' ) ) :
|
|
201 |
global $current_section;
|
202 |
$emails = $this->get_emails();
|
203 |
|
204 |
-
foreach( $emails as $email )
|
205 |
-
|
206 |
-
if( $current_section == 'ur_settings_' . $email->id . '' )
|
207 |
-
{
|
208 |
$settings = new $email;
|
209 |
$settings = $settings->get_settings();
|
210 |
}
|
25 |
*
|
26 |
* @var array
|
27 |
*/
|
|
|
28 |
public $emails = array();
|
29 |
|
30 |
/**
|
38 |
add_filter( 'user_registration_settings_tabs_array', array( $this, 'add_settings_page' ), 20 );
|
39 |
add_action( 'user_registration_settings_' . $this->id, array( $this, 'output' ) );
|
40 |
add_action( 'user_registration_settings_save_' . $this->id, array( $this, 'save' ) );
|
|
|
41 |
add_action( 'user_registration_admin_field_email_notification', array( $this, 'email_notification_setting' ) );
|
42 |
|
43 |
$this->emails['UR_Settings_Admin_Email'] = include( 'emails/class-ur-settings-admin-email.php' );
|
79 |
'id' => 'general_email_setting',
|
80 |
),
|
81 |
|
82 |
+
array(
|
83 |
+
'title' => __( 'Email notifications', 'user-registration' ),
|
84 |
+
'desc' => __( 'Email notifications sent from user registration are listed below. Click on an email to configure it.', 'user-registration' ),
|
85 |
+
'type' => 'title',
|
86 |
+
'id' => 'email_notification_settings'
|
87 |
+
),
|
88 |
|
89 |
array( 'type' => 'email_notification' ),
|
90 |
|
156 |
</tr>
|
157 |
</thead>
|
158 |
<tbody>
|
|
|
159 |
|
160 |
<?php
|
161 |
$emails = $this->get_emails();
|
162 |
+
foreach( $emails as $email ) {
|
|
|
163 |
echo '<tr><td class="ur-email-settings-table">
|
164 |
+
<a href="' . admin_url( 'admin.php?page=user-registration-settings&tab=email§ion=ur_settings_'. $email->id .'' ) .
|
165 |
+
'">'. __( $email->title, 'user-registration' ) .'</a>' . ur_help_tip( __($email->description,'user-registration' ) ) . '
|
166 |
+
</td>
|
167 |
+
<td class="ur-email-settings-table">
|
168 |
+
<a class="button tips" data-tip="'. esc_attr__( 'Configure','user-registration' ) .'" href="' . admin_url( 'admin.php?page=user-registration-settings&tab=email§ion=ur_settings_'. $email->id.'' ) . '"><span class="dashicons dashicons-admin-generic"></span> </a>
|
169 |
+
</td>
|
170 |
+
</tr>';
|
171 |
}
|
172 |
?>
|
173 |
</tbody>
|
202 |
global $current_section;
|
203 |
$emails = $this->get_emails();
|
204 |
|
205 |
+
foreach( $emails as $email ) {
|
206 |
+
if( $current_section == 'ur_settings_' . $email->id . '' ) {
|
|
|
|
|
207 |
$settings = new $email;
|
208 |
$settings = $settings->get_settings();
|
209 |
}
|
includes/admin/settings/class-ur-settings-integration.php
CHANGED
@@ -20,7 +20,6 @@ if ( ! class_exists( 'UR_Settings_Integration ' ) ) :
|
|
20 |
*/
|
21 |
class UR_Settings_Integration extends UR_Settings_Page {
|
22 |
|
23 |
-
|
24 |
/**
|
25 |
* Constructor.
|
26 |
*/
|
@@ -43,14 +42,12 @@ if ( ! class_exists( 'UR_Settings_Integration ' ) ) :
|
|
43 |
|
44 |
$settings = apply_filters(
|
45 |
'user_registration_integration_settings', array(
|
46 |
-
|
47 |
array(
|
48 |
'title' => __( 'Google reCaptcha Integation', 'user-registration' ),
|
49 |
'type' => 'title',
|
50 |
'desc' => '',
|
51 |
'id' => 'integration_options',
|
52 |
),
|
53 |
-
|
54 |
array(
|
55 |
'title' => __( 'Site Key', 'user-registration' ),
|
56 |
'desc' => sprintf( __('Get site key from google %1$s reCaptcha %2$s.', 'user-registration' ), '<a href="https://www.google.com/recaptcha" target="_blank">', '</a>' ), 'id' => 'user_registration_integration_setting_recaptcha_site_key',
|
@@ -70,16 +67,11 @@ if ( ! class_exists( 'UR_Settings_Integration ' ) ) :
|
|
70 |
'class' => '',
|
71 |
'css' => 'min-width: 350px;',
|
72 |
'desc_tip' => true,
|
73 |
-
|
74 |
),
|
75 |
-
|
76 |
-
|
77 |
array(
|
78 |
'type' => 'sectionend',
|
79 |
'id' => 'general_options',
|
80 |
),
|
81 |
-
|
82 |
-
|
83 |
)
|
84 |
);
|
85 |
|
20 |
*/
|
21 |
class UR_Settings_Integration extends UR_Settings_Page {
|
22 |
|
|
|
23 |
/**
|
24 |
* Constructor.
|
25 |
*/
|
42 |
|
43 |
$settings = apply_filters(
|
44 |
'user_registration_integration_settings', array(
|
|
|
45 |
array(
|
46 |
'title' => __( 'Google reCaptcha Integation', 'user-registration' ),
|
47 |
'type' => 'title',
|
48 |
'desc' => '',
|
49 |
'id' => 'integration_options',
|
50 |
),
|
|
|
51 |
array(
|
52 |
'title' => __( 'Site Key', 'user-registration' ),
|
53 |
'desc' => sprintf( __('Get site key from google %1$s reCaptcha %2$s.', 'user-registration' ), '<a href="https://www.google.com/recaptcha" target="_blank">', '</a>' ), 'id' => 'user_registration_integration_setting_recaptcha_site_key',
|
67 |
'class' => '',
|
68 |
'css' => 'min-width: 350px;',
|
69 |
'desc_tip' => true,
|
|
|
70 |
),
|
|
|
|
|
71 |
array(
|
72 |
'type' => 'sectionend',
|
73 |
'id' => 'general_options',
|
74 |
),
|
|
|
|
|
75 |
)
|
76 |
);
|
77 |
|
includes/admin/settings/emails/class-ur-settings-admin-email.php
CHANGED
@@ -25,85 +25,78 @@ class UR_Settings_Admin_Email{
|
|
25 |
$this->description = __( 'Email sent to the admin when a new user registers', 'user-registration' );
|
26 |
}
|
27 |
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
|
35 |
-
|
36 |
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
),
|
88 |
-
)
|
89 |
-
);
|
90 |
-
|
91 |
-
return apply_filters( 'user_registration_get_settings_' . $this->id, $settings );
|
92 |
-
}
|
93 |
|
|
|
|
|
94 |
public function ur_get_admin_email() {
|
95 |
|
96 |
$message = apply_filters( 'user_registration_admin_email_message', sprintf( __(
|
|
|
|
|
|
|
|
|
|
|
97 |
|
98 |
-
|
99 |
-
<br/><br/>
|
100 |
-
A new user {{username}} - {{email}} has successfully registered to your site <a href="{{home_url}}">{{blog_info}}</a>.
|
101 |
-
<br/>
|
102 |
-
<br/>
|
103 |
-
Please review the user role and details at \'<b>Users</b>\' menu in your WP dashboard.
|
104 |
-
<br/>
|
105 |
-
<br/>
|
106 |
-
Thank You!', 'user-registration' ) ) );
|
107 |
|
108 |
return $message;
|
109 |
}
|
25 |
$this->description = __( 'Email sent to the admin when a new user registers', 'user-registration' );
|
26 |
}
|
27 |
|
28 |
+
/**
|
29 |
+
* Get settings
|
30 |
+
*
|
31 |
+
* @return array
|
32 |
+
*/
|
33 |
+
public function get_settings() {
|
34 |
|
35 |
+
?><h2><?php echo esc_html__('Admin Email','user-registration'); ?> <?php ur_back_link( __( 'Return to emails', 'user-registration' ), admin_url( 'admin.php?page=user-registration-settings&tab=email' ) ); ?></h2>
|
36 |
|
37 |
+
<?php
|
38 |
+
$settings = apply_filters(
|
39 |
+
'user_registration_admin_email', array(
|
40 |
+
array(
|
41 |
+
'type' => 'title',
|
42 |
+
'desc' => '',
|
43 |
+
'id' => 'admin_email',
|
44 |
+
),
|
45 |
+
array(
|
46 |
+
'title' => __( 'Enable this email', 'user-registration' ),
|
47 |
+
'desc' => __( 'Enable this email sent to admin after successful user registration.', 'user-registration' ),
|
48 |
+
'id' => 'user_registration_enable_admin_email',
|
49 |
+
'default' => 'yes',
|
50 |
+
'type' => 'checkbox',
|
51 |
+
'autoload' => false,
|
52 |
+
),
|
53 |
+
array(
|
54 |
+
'title' => __( 'Email Receipents', 'user-registration' ),
|
55 |
+
'desc' => __( 'Use comma to send emails to multiple receipents.', 'user-registration' ),
|
56 |
+
'id' => 'user_registration_admin_email_receipents',
|
57 |
+
'default' => get_option( 'admin_email' ),
|
58 |
+
'type' => 'text',
|
59 |
+
'css' => 'min-width: 350px;',
|
60 |
+
'autoload' => false,
|
61 |
+
'desc_tip' => true,
|
62 |
+
),
|
63 |
+
array(
|
64 |
+
'title' => __( 'Email Subject', 'user-registration' ),
|
65 |
+
'desc' => __( 'The email subject you want to customize.', 'user-registration' ),
|
66 |
+
'id' => 'user_registration_admin_email_subject',
|
67 |
+
'type' => 'text',
|
68 |
+
'default' => __('A New User Registered', 'user-registration'),
|
69 |
+
'css' => 'min-width: 350px;',
|
70 |
+
'desc_tip' => true,
|
71 |
+
),
|
72 |
+
array(
|
73 |
+
'title' => __( 'Email Content', 'user-registration' ),
|
74 |
+
'desc' => __( 'The email content you want to customize.', 'user-registration' ),
|
75 |
+
'id' => 'user_registration_admin_email',
|
76 |
+
'type' => 'tinymce',
|
77 |
+
'default' => $this->ur_get_admin_email(),
|
78 |
+
'css' => 'min-width: 350px;',
|
79 |
+
'desc_tip' => true,
|
80 |
+
),
|
81 |
+
array(
|
82 |
+
'type' => 'sectionend',
|
83 |
+
'id' => 'admin_email',
|
84 |
+
),
|
85 |
+
)
|
86 |
+
);
|
|
|
|
|
|
|
|
|
|
|
|
|
87 |
|
88 |
+
return apply_filters( 'user_registration_get_settings_' . $this->id, $settings );
|
89 |
+
}
|
90 |
public function ur_get_admin_email() {
|
91 |
|
92 |
$message = apply_filters( 'user_registration_admin_email_message', sprintf( __(
|
93 |
+
'Hi Admin,
|
94 |
+
|
95 |
+
A new user {{username}} - {{email}} has successfully registered to your site <a href="{{home_url}}">{{blog_info}}</a>.
|
96 |
+
|
97 |
+
Please review the user role and details at \'<b>Users</b>\' menu in your WP dashboard.
|
98 |
|
99 |
+
Thank You!', 'user-registration' ) ) );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
|
101 |
return $message;
|
102 |
}
|
includes/admin/settings/emails/class-ur-settings-awaiting-admin-approval-email.php
CHANGED
@@ -26,80 +26,70 @@ class UR_Settings_Awaiting_Admin_Approval_Email{
|
|
26 |
$this->description = __( 'Email sent to the user notifying the registration is awaiting admin approval', 'user-registration' );
|
27 |
}
|
28 |
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
),
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
),
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
)
|
83 |
-
);
|
84 |
-
|
85 |
-
return apply_filters( 'user_registration_get_settings_' . $this->id, $settings );
|
86 |
-
}
|
87 |
|
88 |
public function ur_get_awaiting_admin_approval_email() {
|
89 |
|
90 |
$message = apply_filters( 'user_registration_get_awaiting_admin_approval_email', sprintf( __(
|
91 |
-
|
92 |
'Hi {{username}},
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
You will be notified after it is approved.
|
100 |
-
<br/>
|
101 |
-
<br/>
|
102 |
-
Thank You!', 'user-registration' ) ) );
|
103 |
|
104 |
return $message;
|
105 |
}
|
26 |
$this->description = __( 'Email sent to the user notifying the registration is awaiting admin approval', 'user-registration' );
|
27 |
}
|
28 |
|
29 |
+
/**
|
30 |
+
* Get settings
|
31 |
+
*
|
32 |
+
* @return array
|
33 |
+
*/
|
34 |
+
public function get_settings() {
|
35 |
+
|
36 |
+
?><h2><?php echo esc_html__('Awaiting Admin Approval Email','user-registration'); ?> <?php ur_back_link( __( 'Return to emails', 'user-registration' ), admin_url( 'admin.php?page=user-registration-settings&tab=email' ) ); ?></h2>
|
37 |
+
|
38 |
+
<?php
|
39 |
+
$settings = apply_filters(
|
40 |
+
'user_registration_awaiting_admin_approval', array(
|
41 |
+
array(
|
42 |
+
'type' => 'title',
|
43 |
+
'desc' => '',
|
44 |
+
'id' => 'awaiting_admin_approval_email',
|
45 |
+
),
|
46 |
+
array(
|
47 |
+
'title' => __( 'Enable this email', 'user-registration' ),
|
48 |
+
'desc' => __( 'Enable this email sent to user notifying the registration is awaiting admin approval.', 'user-registration' ),
|
49 |
+
'id' => 'user_registration_enable_awaiting_admin_approval_email',
|
50 |
+
'default' => 'yes',
|
51 |
+
'type' => 'checkbox',
|
52 |
+
'autoload' => false,
|
53 |
+
),
|
54 |
+
array(
|
55 |
+
'title' => __( 'Email Subject', 'user-registration' ),
|
56 |
+
'desc' => __( 'The email subject you want to customize.', 'user-registration' ),
|
57 |
+
'id' => 'user_registration_awaiting_admin_approval_email_subject',
|
58 |
+
'type' => 'text',
|
59 |
+
'default' => __('Thank you for registration on {{blog_info}}', 'user-registration'),
|
60 |
+
'css' => 'min-width: 350px;',
|
61 |
+
'desc_tip' => true,
|
62 |
+
),
|
63 |
+
array(
|
64 |
+
'title' => __( 'Email Content', 'user-registration' ),
|
65 |
+
'desc' => __( 'The email content you want to customize.', 'user-registration' ),
|
66 |
+
'id' => 'user_registration_awaiting_admin_approval_email',
|
67 |
+
'type' => 'tinymce',
|
68 |
+
'default' => $this->ur_get_awaiting_admin_approval_email(),
|
69 |
+
'css' => 'min-width: 350px;',
|
70 |
+
'desc_tip' => true,
|
71 |
+
),
|
72 |
+
array(
|
73 |
+
'type' => 'sectionend',
|
74 |
+
'id' => 'awaiting_admin_approval_email',
|
75 |
+
),
|
76 |
+
|
77 |
+
)
|
78 |
+
);
|
79 |
+
|
80 |
+
return apply_filters( 'user_registration_get_settings_' . $this->id, $settings );
|
81 |
+
}
|
|
|
|
|
|
|
|
|
|
|
82 |
|
83 |
public function ur_get_awaiting_admin_approval_email() {
|
84 |
|
85 |
$message = apply_filters( 'user_registration_get_awaiting_admin_approval_email', sprintf( __(
|
|
|
86 |
'Hi {{username}},
|
87 |
+
|
88 |
+
You have registered on <a href="{{home_url}}">{{blog_info}}</a>.
|
89 |
+
|
90 |
+
Please wait until the site admin approves your registration. You will be notified after it is approved.
|
91 |
+
|
92 |
+
Thank You!', 'user-registration' ) ) );
|
|
|
|
|
|
|
|
|
93 |
|
94 |
return $message;
|
95 |
}
|
includes/admin/settings/emails/class-ur-settings-email-confirmation.php
CHANGED
@@ -76,18 +76,14 @@ class UR_Settings_Email_Confirmation{
|
|
76 |
|
77 |
public function ur_get_email_confirmation() {
|
78 |
|
79 |
-
$message = apply_filters( 'user_registration_get_email_confirmation', sprintf( __(
|
80 |
-
|
81 |
'Hi {{username}},
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
<br/>
|
89 |
-
<br/>
|
90 |
-
Thank You!', 'user-registration' ) ) );
|
91 |
return $message;
|
92 |
}
|
93 |
}
|
76 |
|
77 |
public function ur_get_email_confirmation() {
|
78 |
|
79 |
+
$message = apply_filters( 'user_registration_get_email_confirmation', sprintf( __(
|
|
|
80 |
'Hi {{username}},
|
81 |
+
|
82 |
+
You have registered on <a href="{{home_url}}">{{blog_info}}</a>.
|
83 |
+
|
84 |
+
Please click on this verification link {{home_url}}/wp-login.php?ur_token={{email_token}} to confirm registration.
|
85 |
+
|
86 |
+
Thank You!', 'user-registration' ) ) );
|
|
|
|
|
|
|
87 |
return $message;
|
88 |
}
|
89 |
}
|
includes/admin/settings/emails/class-ur-settings-registration-approved-email.php
CHANGED
@@ -26,79 +26,70 @@ class UR_Settings_Registration_Approved_Email{
|
|
26 |
$this->description = __( 'Email sent to the user notifying the registration is approved by site admin', 'user-registration' );
|
27 |
}
|
28 |
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
),
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
),
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
)
|
84 |
-
);
|
85 |
-
|
86 |
-
return apply_filters( 'user_registration_get_settings_' . $this->id, $settings );
|
87 |
-
}
|
88 |
|
89 |
public function ur_get_registration_approved_email() {
|
90 |
|
91 |
$message = apply_filters( 'user_registration_get_registration_approved_email', sprintf( __(
|
92 |
-
|
93 |
'Hi {{username}},
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
<br/>
|
101 |
-
Thank You!', 'user-registration' ) ) );
|
102 |
|
103 |
return $message;
|
104 |
}
|
26 |
$this->description = __( 'Email sent to the user notifying the registration is approved by site admin', 'user-registration' );
|
27 |
}
|
28 |
|
29 |
+
/**
|
30 |
+
* Get settings
|
31 |
+
*
|
32 |
+
* @return array
|
33 |
+
*/
|
34 |
+
public function get_settings() {
|
35 |
+
|
36 |
+
?><h2><?php echo esc_html__('Registration Approved Email','user-registration'); ?> <?php ur_back_link( __( 'Return to emails', 'user-registration' ), admin_url( 'admin.php?page=user-registration-settings&tab=email' ) ); ?></h2>
|
37 |
+
|
38 |
+
<?php
|
39 |
+
$settings = apply_filters(
|
40 |
+
'user_registration_registration_approved_email', array(
|
41 |
+
array(
|
42 |
+
'type' => 'title',
|
43 |
+
'desc' => '',
|
44 |
+
'id' => 'registration_approved_email',
|
45 |
+
),
|
46 |
+
array(
|
47 |
+
'title' => __( 'Enable this email', 'user-registration' ),
|
48 |
+
'desc' => __( 'Enable this email sent to admin after successfull user registration.', 'user-registration' ),
|
49 |
+
'id' => 'user_registration_enable_registration_approved_email',
|
50 |
+
'default' => 'yes',
|
51 |
+
'type' => 'checkbox',
|
52 |
+
'autoload' => false,
|
53 |
+
),
|
54 |
+
array(
|
55 |
+
'title' => __( 'Email Subject', 'user-registration' ),
|
56 |
+
'desc' => __( 'The email subject you want to customize.', 'user-registration' ),
|
57 |
+
'id' => 'user_registration_registration_approved_email_subject',
|
58 |
+
'type' => 'text',
|
59 |
+
'default' => __('Congratulations! Registration approved on {{blog_info}}', 'user-registration'),
|
60 |
+
'css' => 'min-width: 350px;',
|
61 |
+
'desc_tip' => true,
|
62 |
+
),
|
63 |
+
array(
|
64 |
+
'title' => __( 'Email Content', 'user-registration' ),
|
65 |
+
'desc' => __( 'The email content you want to customize.', 'user-registration' ),
|
66 |
+
'id' => 'user_registration_registration_approved_email',
|
67 |
+
'type' => 'tinymce',
|
68 |
+
'default' => $this->ur_get_registration_approved_email(),
|
69 |
+
'css' => 'min-width: 350px;',
|
70 |
+
'desc_tip' => true,
|
71 |
+
),
|
72 |
+
array(
|
73 |
+
'type' => 'sectionend',
|
74 |
+
'id' => 'registration_approved_email',
|
75 |
+
),
|
76 |
+
|
77 |
+
)
|
78 |
+
);
|
79 |
+
|
80 |
+
return apply_filters( 'user_registration_get_settings_' . $this->id, $settings );
|
81 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
|
83 |
public function ur_get_registration_approved_email() {
|
84 |
|
85 |
$message = apply_filters( 'user_registration_get_registration_approved_email', sprintf( __(
|
|
|
86 |
'Hi {{username}},
|
87 |
+
|
88 |
+
Your registration on <a href="{{home_url}}">{{blog_info}}</a> has been approved.
|
89 |
+
|
90 |
+
Please visit \'<b>My Account</b>\' page to edit your account details and create your user profile on <a href="{{home_url}}">{{blog_info}}</a>.
|
91 |
+
|
92 |
+
Thank You!', 'user-registration' ) ) );
|
|
|
|
|
93 |
|
94 |
return $message;
|
95 |
}
|
includes/admin/settings/emails/class-ur-settings-registration-denied-email.php
CHANGED
@@ -38,13 +38,11 @@ class UR_Settings_Registration_Denied_Email{
|
|
38 |
<?php
|
39 |
$settings = apply_filters(
|
40 |
'user_registration_registration_denied_email', array(
|
41 |
-
|
42 |
array(
|
43 |
'type' => 'title',
|
44 |
'desc' => '',
|
45 |
'id' => 'registration_denied_email',
|
46 |
),
|
47 |
-
|
48 |
array(
|
49 |
'title' => __( 'Enable this email', 'user-registration' ),
|
50 |
'desc' => __( 'Enable this email sent to admin after successfull user registration.', 'user-registration' ),
|
@@ -53,7 +51,6 @@ class UR_Settings_Registration_Denied_Email{
|
|
53 |
'type' => 'checkbox',
|
54 |
'autoload' => false,
|
55 |
),
|
56 |
-
|
57 |
array(
|
58 |
'title' => __( 'Email Subject', 'user-registration' ),
|
59 |
'desc' => __( 'The email subject you want to customize.', 'user-registration' ),
|
@@ -63,8 +60,6 @@ class UR_Settings_Registration_Denied_Email{
|
|
63 |
'css' => 'min-width: 350px;',
|
64 |
'desc_tip' => true,
|
65 |
),
|
66 |
-
|
67 |
-
|
68 |
array(
|
69 |
'title' => __( 'Email Content', 'user-registration' ),
|
70 |
'desc' => __( 'The email content you want to customize.', 'user-registration' ),
|
@@ -74,7 +69,6 @@ class UR_Settings_Registration_Denied_Email{
|
|
74 |
'css' => 'min-width: 350px;',
|
75 |
'desc_tip' => true,
|
76 |
),
|
77 |
-
|
78 |
array(
|
79 |
'type' => 'sectionend',
|
80 |
'id' => 'registration_denied_email',
|
@@ -89,19 +83,13 @@ class UR_Settings_Registration_Denied_Email{
|
|
89 |
public function ur_get_registration_denied_email() {
|
90 |
|
91 |
$message = apply_filters( 'user_registration_get_registration_denied_email', sprintf( __(
|
92 |
-
|
93 |
'Hi {{username}},
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
<br/>
|
101 |
-
Sorry for the inconvenience.
|
102 |
-
<br/>
|
103 |
-
<br/>
|
104 |
-
Thank You!', 'user-registration' ) ) );
|
105 |
|
106 |
return $message;
|
107 |
}
|
38 |
<?php
|
39 |
$settings = apply_filters(
|
40 |
'user_registration_registration_denied_email', array(
|
|
|
41 |
array(
|
42 |
'type' => 'title',
|
43 |
'desc' => '',
|
44 |
'id' => 'registration_denied_email',
|
45 |
),
|
|
|
46 |
array(
|
47 |
'title' => __( 'Enable this email', 'user-registration' ),
|
48 |
'desc' => __( 'Enable this email sent to admin after successfull user registration.', 'user-registration' ),
|
51 |
'type' => 'checkbox',
|
52 |
'autoload' => false,
|
53 |
),
|
|
|
54 |
array(
|
55 |
'title' => __( 'Email Subject', 'user-registration' ),
|
56 |
'desc' => __( 'The email subject you want to customize.', 'user-registration' ),
|
60 |
'css' => 'min-width: 350px;',
|
61 |
'desc_tip' => true,
|
62 |
),
|
|
|
|
|
63 |
array(
|
64 |
'title' => __( 'Email Content', 'user-registration' ),
|
65 |
'desc' => __( 'The email content you want to customize.', 'user-registration' ),
|
69 |
'css' => 'min-width: 350px;',
|
70 |
'desc_tip' => true,
|
71 |
),
|
|
|
72 |
array(
|
73 |
'type' => 'sectionend',
|
74 |
'id' => 'registration_denied_email',
|
83 |
public function ur_get_registration_denied_email() {
|
84 |
|
85 |
$message = apply_filters( 'user_registration_get_registration_denied_email', sprintf( __(
|
|
|
86 |
'Hi {{username}},
|
87 |
+
|
88 |
+
You have registered on <a href="{{home_url}}">{{blog_info}}</a>.
|
89 |
+
|
90 |
+
Unfortunately your registration is denied. Sorry for the inconvenience.
|
91 |
+
|
92 |
+
Thank You!', 'user-registration' ) ) );
|
|
|
|
|
|
|
|
|
|
|
93 |
|
94 |
return $message;
|
95 |
}
|
includes/admin/settings/emails/class-ur-settings-registration-pending-email.php
CHANGED
@@ -25,81 +25,76 @@ class UR_Settings_Registration_Pending_Email{
|
|
25 |
$this->description = __( 'Email sent to the user notifying the registration is pending', 'user-registration' );
|
26 |
}
|
27 |
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
return apply_filters( 'user_registration_get_settings_' . $this->id, $settings );
|
85 |
-
}
|
86 |
|
87 |
public function ur_get_registration_pending_email() {
|
88 |
|
89 |
$message = apply_filters( 'user_registration_get_registration_pending_email', sprintf( __(
|
90 |
|
91 |
'Hi {{username}},
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
<br/>
|
101 |
-
<br/>
|
102 |
-
Thank You!', 'user-registration' ) ) );
|
103 |
|
104 |
return $message;
|
105 |
}
|
25 |
$this->description = __( 'Email sent to the user notifying the registration is pending', 'user-registration' );
|
26 |
}
|
27 |
|
28 |
+
/**
|
29 |
+
* Get settings
|
30 |
+
*
|
31 |
+
* @return array
|
32 |
+
*/
|
33 |
+
public function get_settings() {
|
34 |
+
|
35 |
+
?><h2><?php echo esc_html__('Registration Pending Email','user-registration'); ?> <?php ur_back_link( __( 'Return to emails', 'user-registration' ), admin_url( 'admin.php?page=user-registration-settings&tab=email' ) ); ?></h2>
|
36 |
+
|
37 |
+
<?php
|
38 |
+
$settings = apply_filters(
|
39 |
+
'user_registration_registration_pending_email', array(
|
40 |
+
array(
|
41 |
+
'type' => 'title',
|
42 |
+
'desc' => '',
|
43 |
+
'id' => 'registration_pending_email',
|
44 |
+
),
|
45 |
+
array(
|
46 |
+
'title' => __( 'Enable this email', 'user-registration' ),
|
47 |
+
'desc' => __( 'Enable this email sent to admin after successfull user registration.', 'user-registration' ),
|
48 |
+
'id' => 'user_registration_enable_registration_pending_email',
|
49 |
+
'default' => 'yes',
|
50 |
+
'type' => 'checkbox',
|
51 |
+
'autoload' => false,
|
52 |
+
),
|
53 |
+
|
54 |
+
array(
|
55 |
+
'title' => __( 'Email Subject', 'user-registration' ),
|
56 |
+
'desc' => __( 'The email subject you want to customize.', 'user-registration' ),
|
57 |
+
'id' => 'user_registration_registration_pending_email_subject',
|
58 |
+
'type' => 'text',
|
59 |
+
'default' => __('Sorry! Registration changed to pending on {{blog_info}}', 'user-registration'),
|
60 |
+
'css' => 'min-width: 350px;',
|
61 |
+
'desc_tip' => true,
|
62 |
+
),
|
63 |
+
|
64 |
+
array(
|
65 |
+
'title' => __( 'Email Content', 'user-registration' ),
|
66 |
+
'desc' => __( 'The email content you want to customize.', 'user-registration' ),
|
67 |
+
'id' => 'user_registration_registration_pending_email',
|
68 |
+
'type' => 'tinymce',
|
69 |
+
'default' => $this->ur_get_registration_pending_email(),
|
70 |
+
'css' => 'min-width: 350px;',
|
71 |
+
'desc_tip' => true,
|
72 |
+
),
|
73 |
+
|
74 |
+
array(
|
75 |
+
'type' => 'sectionend',
|
76 |
+
'id' => 'registration_pending_email',
|
77 |
+
),
|
78 |
+
|
79 |
+
)
|
80 |
+
);
|
81 |
+
|
82 |
+
return apply_filters( 'user_registration_get_settings_' . $this->id, $settings );
|
83 |
+
}
|
|
|
|
|
84 |
|
85 |
public function ur_get_registration_pending_email() {
|
86 |
|
87 |
$message = apply_filters( 'user_registration_get_registration_pending_email', sprintf( __(
|
88 |
|
89 |
'Hi {{username}},
|
90 |
+
|
91 |
+
Your registration on <a href="{{home_url}}">{{blog_info}}</a> has been changed to pending.
|
92 |
+
|
93 |
+
Sorry for the inconvenience.
|
94 |
+
|
95 |
+
You will be notified after it is approved.
|
96 |
+
|
97 |
+
Thank You!', 'user-registration' ) ) );
|
|
|
|
|
|
|
98 |
|
99 |
return $message;
|
100 |
}
|
includes/admin/settings/emails/class-ur-settings-reset-password-email.php
CHANGED
@@ -24,71 +24,73 @@ class UR_Settings_Reset_Password_Email{
|
|
24 |
$this->description = __( 'Email sent to the user when a user requests for reset password', 'user-registration' );
|
25 |
}
|
26 |
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
|
34 |
-
|
35 |
|
36 |
-
|
37 |
-
|
38 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
|
40 |
-
|
41 |
-
|
42 |
-
'desc' => '',
|
43 |
-
'id' => 'reset_password_email',
|
44 |
-
),
|
45 |
-
array(
|
46 |
-
'title' => __( 'Enable this email', 'user-registration' ),
|
47 |
-
'desc' => __( 'Enable this email sent to the user when a user requests for reset password.', 'user-registration' ),
|
48 |
-
'id' => 'user_registration_enable_reset_password_email',
|
49 |
-
'default' => 'yes',
|
50 |
-
'type' => 'checkbox',
|
51 |
-
'autoload' => false,
|
52 |
-
),
|
53 |
-
array(
|
54 |
-
'title' => __( 'Email Subject', 'user-registration' ),
|
55 |
-
'desc' => __( 'The email subject you want to customize.', 'user-registration' ),
|
56 |
-
'id' => 'user_registration_reset_password_email_subject',
|
57 |
-
'type' => 'text',
|
58 |
-
'default' => __('Password Reset Email: {{blog_info}}', 'user-registration'),
|
59 |
-
'css' => 'min-width: 350px;',
|
60 |
-
'desc_tip' => true,
|
61 |
-
),
|
62 |
-
|
63 |
-
array(
|
64 |
-
'title' => __( 'Email Content', 'user-registration' ),
|
65 |
-
'desc' => __( 'The email content you want to customize.', 'user-registration' ),
|
66 |
-
'id' => 'user_registration_reset_password_email',
|
67 |
-
'type' => 'tinymce',
|
68 |
-
'default' => $this->ur_get_reset_password_email(),
|
69 |
-
'css' => 'min-width: 350px;',
|
70 |
-
'desc_tip' => true,
|
71 |
-
),
|
72 |
-
|
73 |
-
array(
|
74 |
-
'type' => 'sectionend',
|
75 |
-
'id' => 'reset_password_email',
|
76 |
-
),
|
77 |
-
)
|
78 |
-
);
|
79 |
-
|
80 |
-
return apply_filters( 'user_registration_get_settings_' . $this->id, $settings );
|
81 |
-
}
|
82 |
|
83 |
public function ur_get_reset_password_email() {
|
84 |
|
85 |
$message = apply_filters( 'user_registration_reset_password_email_message', sprintf( __(
|
86 |
'Someone has requested a password reset for the following account:
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
|
|
|
|
|
|
|
|
|
|
92 |
|
93 |
return $message;
|
94 |
}
|
24 |
$this->description = __( 'Email sent to the user when a user requests for reset password', 'user-registration' );
|
25 |
}
|
26 |
|
27 |
+
/**
|
28 |
+
* Get settings
|
29 |
+
*
|
30 |
+
* @return array
|
31 |
+
*/
|
32 |
+
public function get_settings() {
|
33 |
|
34 |
+
?><h2><?php echo esc_html__('Reset Password Email','user-registration'); ?> <?php ur_back_link( __( 'Return to emails', 'user-registration' ), admin_url( 'admin.php?page=user-registration-settings&tab=email' ) ); ?></h2>
|
35 |
|
36 |
+
<?php
|
37 |
+
$settings = apply_filters(
|
38 |
+
'user_registration_reset_password_email', array(
|
39 |
+
array(
|
40 |
+
'type' => 'title',
|
41 |
+
'desc' => '',
|
42 |
+
'id' => 'reset_password_email',
|
43 |
+
),
|
44 |
+
array(
|
45 |
+
'title' => __( 'Enable this email', 'user-registration' ),
|
46 |
+
'desc' => __( 'Enable this email sent to the user when a user requests for reset password.', 'user-registration' ),
|
47 |
+
'id' => 'user_registration_enable_reset_password_email',
|
48 |
+
'default' => 'yes',
|
49 |
+
'type' => 'checkbox',
|
50 |
+
'autoload' => false,
|
51 |
+
),
|
52 |
+
array(
|
53 |
+
'title' => __( 'Email Subject', 'user-registration' ),
|
54 |
+
'desc' => __( 'The email subject you want to customize.', 'user-registration' ),
|
55 |
+
'id' => 'user_registration_reset_password_email_subject',
|
56 |
+
'type' => 'text',
|
57 |
+
'default' => __('Password Reset Email: {{blog_info}}', 'user-registration'),
|
58 |
+
'css' => 'min-width: 350px;',
|
59 |
+
'desc_tip' => true,
|
60 |
+
),
|
61 |
+
array(
|
62 |
+
'title' => __( 'Email Content', 'user-registration' ),
|
63 |
+
'desc' => __( 'The email content you want to customize.', 'user-registration' ),
|
64 |
+
'id' => 'user_registration_reset_password_email',
|
65 |
+
'type' => 'tinymce',
|
66 |
+
'default' => $this->ur_get_reset_password_email(),
|
67 |
+
'css' => 'min-width: 350px;',
|
68 |
+
'desc_tip' => true,
|
69 |
+
),
|
70 |
+
array(
|
71 |
+
'type' => 'sectionend',
|
72 |
+
'id' => 'reset_password_email',
|
73 |
+
),
|
74 |
+
)
|
75 |
+
);
|
76 |
|
77 |
+
return apply_filters( 'user_registration_get_settings_' . $this->id, $settings );
|
78 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
|
80 |
public function ur_get_reset_password_email() {
|
81 |
|
82 |
$message = apply_filters( 'user_registration_reset_password_email_message', sprintf( __(
|
83 |
'Someone has requested a password reset for the following account:
|
84 |
+
|
85 |
+
SiteName: {{blog_info}}
|
86 |
+
Username: {{username}}
|
87 |
+
|
88 |
+
If this was a mistake, just ignore this email and nothing will happen.
|
89 |
+
|
90 |
+
To reset your password, visit the following address:
|
91 |
+
{{home_url}}/wp-login.php?action=rp&key={{key}}&login={{username}}
|
92 |
+
|
93 |
+
Thank You!', 'user-registration' ) ) );
|
94 |
|
95 |
return $message;
|
96 |
}
|
includes/admin/settings/emails/class-ur-settings-successfully-registered-email.php
CHANGED
@@ -26,77 +26,70 @@ class UR_Settings_Successfully_Registered_Email{
|
|
26 |
$this->description = __( 'Email sent to the user after successful registration', 'user-registration' );
|
27 |
}
|
28 |
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
),
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
),
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
)
|
82 |
-
);
|
83 |
-
|
84 |
-
return apply_filters( 'user_registration_get_settings_' . $this->id, $settings );
|
85 |
-
}
|
86 |
|
87 |
public function ur_get_successfully_registered_email() {
|
88 |
|
89 |
$message = apply_filters( 'user_registration_get_successfully_registered_email', sprintf( __(
|
90 |
|
91 |
'Hi {{username}},
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
<br/>
|
99 |
-
Thank You!', 'user-registration' ) ) );
|
100 |
|
101 |
return $message;
|
102 |
}
|
26 |
$this->description = __( 'Email sent to the user after successful registration', 'user-registration' );
|
27 |
}
|
28 |
|
29 |
+
/**
|
30 |
+
* Get settings
|
31 |
+
*
|
32 |
+
* @return array
|
33 |
+
*/
|
34 |
+
public function get_settings() {
|
35 |
+
|
36 |
+
?><h2><?php echo esc_html__('Successfully Registered Email','user-registration'); ?> <?php ur_back_link( __( 'Return to emails', 'user-registration' ), admin_url( 'admin.php?page=user-registration-settings&tab=email' ) ); ?></h2>
|
37 |
+
|
38 |
+
<?php
|
39 |
+
$settings = apply_filters(
|
40 |
+
'user_registration_successfully_registered_email', array(
|
41 |
+
array(
|
42 |
+
'type' => 'title',
|
43 |
+
'desc' => '',
|
44 |
+
'id' => 'successfully_registered_email',
|
45 |
+
),
|
46 |
+
array(
|
47 |
+
'title' => __( 'Enable this email', 'user-registration' ),
|
48 |
+
'desc' => __( 'Enable this email sent after successful user registration.', 'user-registration' ),
|
49 |
+
'id' => 'user_registration_enable_successfully_registered_email',
|
50 |
+
'default' => 'yes',
|
51 |
+
'type' => 'checkbox',
|
52 |
+
'autoload' => false,
|
53 |
+
),
|
54 |
+
array(
|
55 |
+
'title' => __( 'Email Subject', 'user-registration' ),
|
56 |
+
'desc' => __( 'The email subject you want to customize.', 'user-registration' ),
|
57 |
+
'id' => 'user_registration_successfully_registered_email_subject',
|
58 |
+
'type' => 'text',
|
59 |
+
'default' => __('Congratulations! Registration Complete on {{blog_info}}', 'user-registration'),
|
60 |
+
'css' => 'min-width: 350px;',
|
61 |
+
'desc_tip' => true,
|
62 |
+
),
|
63 |
+
array(
|
64 |
+
'title' => __( 'Email Content', 'user-registration' ),
|
65 |
+
'desc' => __( 'The email content you want to customize.', 'user-registration' ),
|
66 |
+
'id' => 'user_registration_successfully_registered_email',
|
67 |
+
'type' => 'tinymce',
|
68 |
+
'default' => $this->ur_get_successfully_registered_email(),
|
69 |
+
'css' => 'min-width: 350px;',
|
70 |
+
'desc_tip' => true,
|
71 |
+
),
|
72 |
+
array(
|
73 |
+
'type' => 'sectionend',
|
74 |
+
'id' => 'successfully_registered_email',
|
75 |
+
),
|
76 |
+
)
|
77 |
+
);
|
78 |
+
|
79 |
+
return apply_filters( 'user_registration_get_settings_' . $this->id, $settings );
|
80 |
+
}
|
|
|
|
|
|
|
|
|
|
|
81 |
|
82 |
public function ur_get_successfully_registered_email() {
|
83 |
|
84 |
$message = apply_filters( 'user_registration_get_successfully_registered_email', sprintf( __(
|
85 |
|
86 |
'Hi {{username}},
|
87 |
+
|
88 |
+
You have successfully completed user registration on <a href="{{home_url}}">{{blog_info}}</a>.
|
89 |
+
|
90 |
+
Please visit \'<b>My Account</b>\' page to edit your account details and create your user profile on <a href="{{home_url}}">{{blog_info}}</a>.
|
91 |
+
|
92 |
+
Thank You!', 'user-registration' ) ) );
|
|
|
|
|
93 |
|
94 |
return $message;
|
95 |
}
|
includes/class-ur-ajax.php
CHANGED
@@ -23,39 +23,26 @@ class UR_AJAX {
|
|
23 |
/**
|
24 |
* Hooks in ajax handlers
|
25 |
*/
|
26 |
-
|
27 |
private static $field_key_aray = array();
|
28 |
-
|
29 |
private static $is_field_key_pass = true;
|
30 |
-
|
31 |
private static $failed_key_value = array();
|
32 |
|
33 |
public static function init() {
|
34 |
-
|
35 |
self::add_ajax_events();
|
36 |
-
|
37 |
}
|
38 |
|
39 |
/**
|
40 |
* Hook in methods - uses WordPress ajax handlers (admin-ajax)
|
41 |
*/
|
42 |
public static function add_ajax_events() {
|
43 |
-
|
44 |
$ajax_events = array(
|
45 |
-
|
46 |
'user_input_dropped' => true,
|
47 |
-
|
48 |
'form_save_action' => true,
|
49 |
-
|
50 |
'user_form_submit' => true,
|
51 |
-
|
52 |
'rated' => false,
|
53 |
-
|
54 |
-
|
55 |
);
|
56 |
|
57 |
foreach ( $ajax_events as $ajax_event => $nopriv ) {
|
58 |
-
|
59 |
add_action( 'wp_ajax_user_registration_' . $ajax_event, array( __CLASS__, $ajax_event ) );
|
60 |
|
61 |
if ( $nopriv ) {
|
@@ -70,13 +57,10 @@ class UR_AJAX {
|
|
70 |
check_ajax_referer( 'user_registration_form_data_save_nonce', 'security' );
|
71 |
|
72 |
$form_id = isset( $_POST['form_id'] ) ? absint( $_POST['form_id'] ) : 0;
|
73 |
-
|
74 |
$nonce = isset( $_POST['ur_frontend_form_nonce'] ) ? $_POST['ur_frontend_form_nonce'] : '';
|
75 |
-
|
76 |
$flag = wp_verify_nonce( $nonce, 'ur_frontend_form_id-' . $form_id );
|
77 |
|
78 |
if ( $flag != true || is_wp_error( $flag ) ) {
|
79 |
-
|
80 |
wp_send_json_error( array(
|
81 |
'message' => __( 'Nonce error, please reload.', 'user-registration' ),
|
82 |
) );
|
@@ -87,47 +71,35 @@ class UR_AJAX {
|
|
87 |
if ( ! is_user_logged_in() ) {
|
88 |
|
89 |
if ( ! $users_can_register ) {
|
90 |
-
|
91 |
wp_send_json_error( array(
|
92 |
'message' => apply_filters( 'ur_register_pre_form_message', __( 'Only an administrator can add new users.', 'user-registration' ) )
|
93 |
) );
|
94 |
-
|
95 |
}
|
96 |
} else {
|
97 |
|
98 |
$current_user_capability = apply_filters( 'ur_registration_user_capability', 'create_users' );
|
99 |
|
100 |
if ( ! current_user_can( $current_user_capability ) ) {
|
|
|
101 |
|
102 |
$user_ID = get_current_user_id();
|
103 |
-
|
104 |
$user = get_user_by( 'ID', $user_ID );
|
105 |
-
|
106 |
-
global $wp;
|
107 |
-
|
108 |
$current_url = home_url( add_query_arg( array(), $wp->request ) );
|
109 |
-
|
110 |
$display_name = ! empty( $user->data->display_name ) ? $user->data->display_name : $user->data->user_email;
|
111 |
|
112 |
wp_send_json_error( array(
|
113 |
-
|
114 |
'message' => apply_filters( 'ur_register_pre_form_message', '<p class="alert" id="ur_register_pre_form_message">' . sprintf( __( "You are currently logged in as %1s. You don't need another account. %2s", 'user-registration' ), '<a href="#" title="' . $display_name . '">' . $display_name . '</a>', '<a href="' . wp_logout_url( $current_url ) . '" title="' . __( 'Log out of this account.', 'user-registration' ) . '">' . __( 'Logout', 'user-registration' ) . ' »</a>' ) . '</p>', $user_ID )
|
115 |
) );
|
116 |
-
|
117 |
}
|
118 |
}
|
119 |
|
120 |
$form_data = array();
|
121 |
|
122 |
if ( isset( $_POST['form_data'] ) ) {
|
123 |
-
|
124 |
$form_data = json_decode( stripslashes( $_POST['form_data'] ) );
|
125 |
-
|
126 |
}
|
127 |
|
128 |
-
|
129 |
UR_Frontend_Form_Handler::handle_form( $form_data, $form_id );
|
130 |
-
|
131 |
}
|
132 |
|
133 |
/**
|
@@ -142,18 +114,14 @@ class UR_AJAX {
|
|
142 |
$form_field_id = ( isset( $_POST['form_field_id'] ) ) ? $_POST['form_field_id'] : null;
|
143 |
|
144 |
if ( $form_field_id == null || $form_field_id == '' ) {
|
145 |
-
|
146 |
throw new Exception( 'Empty form data' );
|
147 |
}
|
148 |
|
149 |
$class_file_name = str_replace( 'user_registration_', '', $form_field_id );
|
150 |
-
|
151 |
$class_name = ur_load_form_field_class( $class_file_name );
|
152 |
|
153 |
if ( empty( $class_name ) ) {
|
154 |
-
|
155 |
throw new Exception( 'class not exists' );
|
156 |
-
|
157 |
}
|
158 |
|
159 |
$template = $class_name::get_instance()->get_admin_template();
|
@@ -164,11 +132,9 @@ class UR_AJAX {
|
|
164 |
|
165 |
}
|
166 |
catch ( Exception $e ) {
|
167 |
-
|
168 |
wp_send_json_error( array(
|
169 |
'error' => $e->getMessage(),
|
170 |
) );
|
171 |
-
|
172 |
}
|
173 |
}
|
174 |
|
@@ -180,10 +146,11 @@ class UR_AJAX {
|
|
180 |
check_ajax_referer( 'ur_form_save_nonce', 'security' );
|
181 |
|
182 |
if ( ! isset( $_POST['data'] ) || ( isset( $_POST['data'] ) && gettype( $_POST['data'] ) != 'array' ) ) {
|
183 |
-
|
184 |
throw new Exception( __( 'post data not set', 'user-registration' ) );
|
185 |
|
186 |
-
} elseif ( ! isset( $_POST['data']['form_data'] )
|
|
|
|
|
187 |
|
188 |
throw new Exception( __( 'post data not set', 'user-registration' ) );
|
189 |
}
|
@@ -195,66 +162,46 @@ class UR_AJAX {
|
|
195 |
if ( isset( self::$failed_key_value['value'] ) && self::$failed_key_value['value'] != '' ) {
|
196 |
|
197 |
if ( in_array( self::$failed_key_value['value'], self::$field_key_aray ) ) {
|
198 |
-
|
199 |
throw new Exception( sprintf( "Could not save form. Duplicate field name <span style='color:red'>%s</span>", self::$failed_key_value['value'] ) );
|
200 |
-
|
201 |
}
|
202 |
}
|
203 |
|
204 |
if ( self::$is_field_key_pass === false ) {
|
205 |
-
|
206 |
throw new Exception( __( 'Could not save form. Invalid field name. Please check all field name', 'user-registration' ) );
|
207 |
-
|
208 |
}
|
209 |
|
210 |
$required_fields = array(
|
211 |
-
|
212 |
'user_email',
|
213 |
-
|
214 |
'user_pass',
|
215 |
-
|
216 |
);
|
217 |
|
218 |
$containsSearch = count( array_intersect( $required_fields, self::$field_key_aray ) ) == count( $required_fields );
|
219 |
|
220 |
if ( $containsSearch === false ) {
|
221 |
-
|
222 |
throw new Exception( __( 'Could not save form, ' . join( ', ', $required_fields ) . ' fields are required.! ', 'user-registration' ) );
|
223 |
-
|
224 |
}
|
225 |
-
$form_name = sanitize_text_field( $_POST['data']['form_name'] );
|
226 |
|
|
|
227 |
$form_id = sanitize_text_field( $_POST['data']['form_id'] );
|
228 |
|
229 |
$post_data = array(
|
230 |
-
|
231 |
'post_type' => 'user_registration',
|
232 |
-
|
233 |
'post_title' => ur_clean( $form_name ),
|
234 |
-
|
235 |
'post_content' => wp_json_encode( $post_data, JSON_UNESCAPED_UNICODE ),
|
236 |
-
|
237 |
'post_status' => 'publish',
|
238 |
-
|
239 |
'comment_status' => 'closed', // if you prefer
|
240 |
-
|
241 |
'ping_status' => 'closed', // if you prefer
|
242 |
);
|
243 |
|
244 |
if ( $form_id > 0 && is_numeric( $form_id ) ) {
|
245 |
-
|
246 |
$post_data['ID'] = $form_id;
|
247 |
-
|
248 |
}
|
249 |
|
250 |
$post_id = wp_insert_post( wp_slash( $post_data ) );
|
251 |
|
252 |
if ( $post_id > 0 ) {
|
253 |
-
|
254 |
$post_data_setting = isset( $_POST['data']['form_setting_data'] ) ? $_POST['data']['form_setting_data'] : array();
|
255 |
-
|
256 |
ur_update_form_settings( $post_data_setting, $post_id );
|
257 |
-
|
258 |
}
|
259 |
|
260 |
wp_send_json_success( array(
|
@@ -264,7 +211,6 @@ class UR_AJAX {
|
|
264 |
|
265 |
}
|
266 |
catch ( Exception $e ) {
|
267 |
-
|
268 |
wp_send_json_error( array(
|
269 |
'message' => $e->getMessage(),
|
270 |
) );
|
@@ -278,16 +224,13 @@ class UR_AJAX {
|
|
278 |
$field_regex = "/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/";
|
279 |
|
280 |
if ( preg_match( $field_regex, $value, $match ) ) :
|
281 |
-
|
282 |
if ( $match !== null && count( $match ) == 1 && $match[0] === $value ) {
|
283 |
-
|
284 |
return true;
|
285 |
}
|
286 |
|
287 |
endif;
|
288 |
|
289 |
return false;
|
290 |
-
|
291 |
}
|
292 |
|
293 |
public static function sweep_array( &$array ) {
|
@@ -295,19 +238,15 @@ class UR_AJAX {
|
|
295 |
foreach ( $array as $key => &$value ) {
|
296 |
|
297 |
if ( is_array( $value ) || gettype( $value ) == 'object' ) {
|
298 |
-
|
299 |
self::sweep_array( $value );
|
300 |
|
301 |
} else {
|
302 |
|
303 |
if ( $key == 'field_name' ) {
|
304 |
-
|
305 |
$regex_status = self::is_regex_pass( $value );
|
306 |
|
307 |
if ( ! $regex_status || in_array( $value, self::$field_key_aray ) ) {
|
308 |
-
|
309 |
self::$is_field_key_pass = false;
|
310 |
-
|
311 |
self::$failed_key_value = array(
|
312 |
'key' => $key,
|
313 |
'value' => $value,
|
@@ -318,7 +257,6 @@ class UR_AJAX {
|
|
318 |
array_push( self::$field_key_aray, $value );
|
319 |
}
|
320 |
if( $key === 'description' ) {
|
321 |
-
|
322 |
$value = str_replace('"', "'", $value); //TODO:: use wp_kses to allow certain html
|
323 |
|
324 |
} elseif( $key == 'html') {
|
23 |
/**
|
24 |
* Hooks in ajax handlers
|
25 |
*/
|
|
|
26 |
private static $field_key_aray = array();
|
|
|
27 |
private static $is_field_key_pass = true;
|
|
|
28 |
private static $failed_key_value = array();
|
29 |
|
30 |
public static function init() {
|
|
|
31 |
self::add_ajax_events();
|
|
|
32 |
}
|
33 |
|
34 |
/**
|
35 |
* Hook in methods - uses WordPress ajax handlers (admin-ajax)
|
36 |
*/
|
37 |
public static function add_ajax_events() {
|
|
|
38 |
$ajax_events = array(
|
|
|
39 |
'user_input_dropped' => true,
|
|
|
40 |
'form_save_action' => true,
|
|
|
41 |
'user_form_submit' => true,
|
|
|
42 |
'rated' => false,
|
|
|
|
|
43 |
);
|
44 |
|
45 |
foreach ( $ajax_events as $ajax_event => $nopriv ) {
|
|
|
46 |
add_action( 'wp_ajax_user_registration_' . $ajax_event, array( __CLASS__, $ajax_event ) );
|
47 |
|
48 |
if ( $nopriv ) {
|
57 |
check_ajax_referer( 'user_registration_form_data_save_nonce', 'security' );
|
58 |
|
59 |
$form_id = isset( $_POST['form_id'] ) ? absint( $_POST['form_id'] ) : 0;
|
|
|
60 |
$nonce = isset( $_POST['ur_frontend_form_nonce'] ) ? $_POST['ur_frontend_form_nonce'] : '';
|
|
|
61 |
$flag = wp_verify_nonce( $nonce, 'ur_frontend_form_id-' . $form_id );
|
62 |
|
63 |
if ( $flag != true || is_wp_error( $flag ) ) {
|
|
|
64 |
wp_send_json_error( array(
|
65 |
'message' => __( 'Nonce error, please reload.', 'user-registration' ),
|
66 |
) );
|
71 |
if ( ! is_user_logged_in() ) {
|
72 |
|
73 |
if ( ! $users_can_register ) {
|
|
|
74 |
wp_send_json_error( array(
|
75 |
'message' => apply_filters( 'ur_register_pre_form_message', __( 'Only an administrator can add new users.', 'user-registration' ) )
|
76 |
) );
|
|
|
77 |
}
|
78 |
} else {
|
79 |
|
80 |
$current_user_capability = apply_filters( 'ur_registration_user_capability', 'create_users' );
|
81 |
|
82 |
if ( ! current_user_can( $current_user_capability ) ) {
|
83 |
+
global $wp;
|
84 |
|
85 |
$user_ID = get_current_user_id();
|
|
|
86 |
$user = get_user_by( 'ID', $user_ID );
|
|
|
|
|
|
|
87 |
$current_url = home_url( add_query_arg( array(), $wp->request ) );
|
|
|
88 |
$display_name = ! empty( $user->data->display_name ) ? $user->data->display_name : $user->data->user_email;
|
89 |
|
90 |
wp_send_json_error( array(
|
|
|
91 |
'message' => apply_filters( 'ur_register_pre_form_message', '<p class="alert" id="ur_register_pre_form_message">' . sprintf( __( "You are currently logged in as %1s. You don't need another account. %2s", 'user-registration' ), '<a href="#" title="' . $display_name . '">' . $display_name . '</a>', '<a href="' . wp_logout_url( $current_url ) . '" title="' . __( 'Log out of this account.', 'user-registration' ) . '">' . __( 'Logout', 'user-registration' ) . ' »</a>' ) . '</p>', $user_ID )
|
92 |
) );
|
|
|
93 |
}
|
94 |
}
|
95 |
|
96 |
$form_data = array();
|
97 |
|
98 |
if ( isset( $_POST['form_data'] ) ) {
|
|
|
99 |
$form_data = json_decode( stripslashes( $_POST['form_data'] ) );
|
|
|
100 |
}
|
101 |
|
|
|
102 |
UR_Frontend_Form_Handler::handle_form( $form_data, $form_id );
|
|
|
103 |
}
|
104 |
|
105 |
/**
|
114 |
$form_field_id = ( isset( $_POST['form_field_id'] ) ) ? $_POST['form_field_id'] : null;
|
115 |
|
116 |
if ( $form_field_id == null || $form_field_id == '' ) {
|
|
|
117 |
throw new Exception( 'Empty form data' );
|
118 |
}
|
119 |
|
120 |
$class_file_name = str_replace( 'user_registration_', '', $form_field_id );
|
|
|
121 |
$class_name = ur_load_form_field_class( $class_file_name );
|
122 |
|
123 |
if ( empty( $class_name ) ) {
|
|
|
124 |
throw new Exception( 'class not exists' );
|
|
|
125 |
}
|
126 |
|
127 |
$template = $class_name::get_instance()->get_admin_template();
|
132 |
|
133 |
}
|
134 |
catch ( Exception $e ) {
|
|
|
135 |
wp_send_json_error( array(
|
136 |
'error' => $e->getMessage(),
|
137 |
) );
|
|
|
138 |
}
|
139 |
}
|
140 |
|
146 |
check_ajax_referer( 'ur_form_save_nonce', 'security' );
|
147 |
|
148 |
if ( ! isset( $_POST['data'] ) || ( isset( $_POST['data'] ) && gettype( $_POST['data'] ) != 'array' ) ) {
|
|
|
149 |
throw new Exception( __( 'post data not set', 'user-registration' ) );
|
150 |
|
151 |
+
} elseif ( ! isset( $_POST['data']['form_data'] )
|
152 |
+
|| ( isset( $_POST['data']['form_data'] )
|
153 |
+
&& gettype( $_POST['data']['form_data'] ) != 'string' ) ) {
|
154 |
|
155 |
throw new Exception( __( 'post data not set', 'user-registration' ) );
|
156 |
}
|
162 |
if ( isset( self::$failed_key_value['value'] ) && self::$failed_key_value['value'] != '' ) {
|
163 |
|
164 |
if ( in_array( self::$failed_key_value['value'], self::$field_key_aray ) ) {
|
|
|
165 |
throw new Exception( sprintf( "Could not save form. Duplicate field name <span style='color:red'>%s</span>", self::$failed_key_value['value'] ) );
|
|
|
166 |
}
|
167 |
}
|
168 |
|
169 |
if ( self::$is_field_key_pass === false ) {
|
|
|
170 |
throw new Exception( __( 'Could not save form. Invalid field name. Please check all field name', 'user-registration' ) );
|
|
|
171 |
}
|
172 |
|
173 |
$required_fields = array(
|
|
|
174 |
'user_email',
|
|
|
175 |
'user_pass',
|
|
|
176 |
);
|
177 |
|
178 |
$containsSearch = count( array_intersect( $required_fields, self::$field_key_aray ) ) == count( $required_fields );
|
179 |
|
180 |
if ( $containsSearch === false ) {
|
|
|
181 |
throw new Exception( __( 'Could not save form, ' . join( ', ', $required_fields ) . ' fields are required.! ', 'user-registration' ) );
|
|
|
182 |
}
|
|
|
183 |
|
184 |
+
$form_name = sanitize_text_field( $_POST['data']['form_name'] );
|
185 |
$form_id = sanitize_text_field( $_POST['data']['form_id'] );
|
186 |
|
187 |
$post_data = array(
|
|
|
188 |
'post_type' => 'user_registration',
|
|
|
189 |
'post_title' => ur_clean( $form_name ),
|
|
|
190 |
'post_content' => wp_json_encode( $post_data, JSON_UNESCAPED_UNICODE ),
|
|
|
191 |
'post_status' => 'publish',
|
|
|
192 |
'comment_status' => 'closed', // if you prefer
|
|
|
193 |
'ping_status' => 'closed', // if you prefer
|
194 |
);
|
195 |
|
196 |
if ( $form_id > 0 && is_numeric( $form_id ) ) {
|
|
|
197 |
$post_data['ID'] = $form_id;
|
|
|
198 |
}
|
199 |
|
200 |
$post_id = wp_insert_post( wp_slash( $post_data ) );
|
201 |
|
202 |
if ( $post_id > 0 ) {
|
|
|
203 |
$post_data_setting = isset( $_POST['data']['form_setting_data'] ) ? $_POST['data']['form_setting_data'] : array();
|
|
|
204 |
ur_update_form_settings( $post_data_setting, $post_id );
|
|
|
205 |
}
|
206 |
|
207 |
wp_send_json_success( array(
|
211 |
|
212 |
}
|
213 |
catch ( Exception $e ) {
|
|
|
214 |
wp_send_json_error( array(
|
215 |
'message' => $e->getMessage(),
|
216 |
) );
|
224 |
$field_regex = "/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/";
|
225 |
|
226 |
if ( preg_match( $field_regex, $value, $match ) ) :
|
|
|
227 |
if ( $match !== null && count( $match ) == 1 && $match[0] === $value ) {
|
|
|
228 |
return true;
|
229 |
}
|
230 |
|
231 |
endif;
|
232 |
|
233 |
return false;
|
|
|
234 |
}
|
235 |
|
236 |
public static function sweep_array( &$array ) {
|
238 |
foreach ( $array as $key => &$value ) {
|
239 |
|
240 |
if ( is_array( $value ) || gettype( $value ) == 'object' ) {
|
|
|
241 |
self::sweep_array( $value );
|
242 |
|
243 |
} else {
|
244 |
|
245 |
if ( $key == 'field_name' ) {
|
|
|
246 |
$regex_status = self::is_regex_pass( $value );
|
247 |
|
248 |
if ( ! $regex_status || in_array( $value, self::$field_key_aray ) ) {
|
|
|
249 |
self::$is_field_key_pass = false;
|
|
|
250 |
self::$failed_key_value = array(
|
251 |
'key' => $key,
|
252 |
'value' => $value,
|
257 |
array_push( self::$field_key_aray, $value );
|
258 |
}
|
259 |
if( $key === 'description' ) {
|
|
|
260 |
$value = str_replace('"', "'", $value); //TODO:: use wp_kses to allow certain html
|
261 |
|
262 |
} elseif( $key == 'html') {
|
includes/class-ur-email-confirmation.php
CHANGED
@@ -162,17 +162,13 @@ class UR_Email_Confirmation {
|
|
162 |
|
163 |
if( ! isset( $_GET['ur_token'] ) ) {
|
164 |
return;
|
165 |
-
}
|
166 |
-
else
|
167 |
-
{
|
168 |
-
$output = str_split( $_GET['ur_token'], 50 );
|
169 |
|
|
|
170 |
$user_id = $this->crypt_the_string( $output[1], 'd');
|
171 |
-
|
172 |
$user_token = get_user_meta( $user_id, 'ur_confirm_email_token', true );
|
173 |
|
174 |
-
if( $user_token == $_GET['ur_token'] )
|
175 |
-
{
|
176 |
$user_reg_successful = true;
|
177 |
|
178 |
update_user_meta( $user_id, 'ur_confirm_email', 1 );
|
@@ -180,12 +176,9 @@ class UR_Email_Confirmation {
|
|
180 |
|
181 |
add_filter('login_message', array( $this,'custom_registration_message' ) );
|
182 |
add_filter('user_registration_login_form_before_notice', array( $this,'custom_registration_message' ) );
|
183 |
-
}
|
184 |
-
else
|
185 |
-
{
|
186 |
add_filter('login_message', array( $this,'custom_registration_error_message' ) );
|
187 |
add_filter('user_registration_login_form_before_notice', array( $this,'custom_registration_error_message' ) );
|
188 |
-
;
|
189 |
}
|
190 |
}
|
191 |
|
@@ -242,15 +235,14 @@ class UR_Email_Confirmation {
|
|
242 |
}
|
243 |
}
|
244 |
|
245 |
-
public function check_email_status( WP_User $user )
|
246 |
-
|
247 |
$email_status = get_user_meta($user->ID, 'ur_confirm_email', true);
|
248 |
|
249 |
do_action( 'ur_user_before_check_email_status_on_login', $email_status, $user );
|
250 |
|
251 |
-
if( $email_status === '0' )
|
252 |
-
|
253 |
-
$message = '<strong>' . __( 'ERROR:', 'user-registration' ) . '</strong> ' . __( 'Your account is still pending approval. Verifiy your email by clicking on the link sent to your email. <a id="resend-email" href="?ur_resend_id='. $this->crypt_the_string( $user->ID, 'e' ) .'&ur_resend_token=true">Resend Verification Link</a>', 'user-registration' );
|
254 |
|
255 |
return new WP_Error( 'user_email_not_verified', $message );
|
256 |
}
|
@@ -272,7 +264,6 @@ class UR_Email_Confirmation {
|
|
272 |
$email_status = get_user_meta($user_id, 'ur_confirm_email', true);
|
273 |
|
274 |
if ( $email_status === '0' ) {
|
275 |
-
|
276 |
$error_message = __( 'Email not verified! Verifiy your email by clicking on the link sent to your email.', 'user-registration' );
|
277 |
$result = new WP_Error( 'user_email_not_verified', $error_message );
|
278 |
}
|
162 |
|
163 |
if( ! isset( $_GET['ur_token'] ) ) {
|
164 |
return;
|
165 |
+
} else {
|
|
|
|
|
|
|
166 |
|
167 |
+
$output = str_split( $_GET['ur_token'], 50 );
|
168 |
$user_id = $this->crypt_the_string( $output[1], 'd');
|
|
|
169 |
$user_token = get_user_meta( $user_id, 'ur_confirm_email_token', true );
|
170 |
|
171 |
+
if( $user_token == $_GET['ur_token'] ) {
|
|
|
172 |
$user_reg_successful = true;
|
173 |
|
174 |
update_user_meta( $user_id, 'ur_confirm_email', 1 );
|
176 |
|
177 |
add_filter('login_message', array( $this,'custom_registration_message' ) );
|
178 |
add_filter('user_registration_login_form_before_notice', array( $this,'custom_registration_message' ) );
|
179 |
+
} else {
|
|
|
|
|
180 |
add_filter('login_message', array( $this,'custom_registration_error_message' ) );
|
181 |
add_filter('user_registration_login_form_before_notice', array( $this,'custom_registration_error_message' ) );
|
|
|
182 |
}
|
183 |
}
|
184 |
|
235 |
}
|
236 |
}
|
237 |
|
238 |
+
public function check_email_status( WP_User $user ) {
|
239 |
+
|
240 |
$email_status = get_user_meta($user->ID, 'ur_confirm_email', true);
|
241 |
|
242 |
do_action( 'ur_user_before_check_email_status_on_login', $email_status, $user );
|
243 |
|
244 |
+
if( $email_status === '0' ) {
|
245 |
+
$message = '<strong>' . __( 'ERROR:', 'user-registration' ) . '</strong> ' . sprintf( __( 'Your account is still pending approval. Verifiy your email by clicking on the link sent to your email. %s', 'user-registration' ), '<a id="resend-email" href="href="?ur_resend_id='. $this->crypt_the_string( $user->ID, 'e' ) .'&ur_resend_token=true">'. __( 'Resend Verification Link', 'user-registration' ). '</a>' );
|
|
|
246 |
|
247 |
return new WP_Error( 'user_email_not_verified', $message );
|
248 |
}
|
264 |
$email_status = get_user_meta($user_id, 'ur_confirm_email', true);
|
265 |
|
266 |
if ( $email_status === '0' ) {
|
|
|
267 |
$error_message = __( 'Email not verified! Verifiy your email by clicking on the link sent to your email.', 'user-registration' );
|
268 |
$result = new WP_Error( 'user_email_not_verified', $error_message );
|
269 |
}
|
includes/class-ur-frontend-scripts.php
CHANGED
@@ -174,6 +174,11 @@ class UR_Frontend_Scripts {
|
|
174 |
private static function register_scripts() {
|
175 |
$suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
|
176 |
$register_scripts = array(
|
|
|
|
|
|
|
|
|
|
|
177 |
'ur-jquery-validate' => array(
|
178 |
'src' => self::get_asset_url( 'assets/js/frontend/jquery.validate' . $suffix . '.js' ),
|
179 |
'deps' => array( 'jquery' ),
|
@@ -198,6 +203,7 @@ class UR_Frontend_Scripts {
|
|
198 |
'src' => 'https://www.google.com/recaptcha/api.js?onload=onloadURCallback&render=explicit',
|
199 |
'deps' => array(),
|
200 |
'version' => '2.0.0',
|
|
|
201 |
),
|
202 |
);
|
203 |
foreach ( $register_scripts as $name => $props ) {
|
@@ -236,8 +242,9 @@ class UR_Frontend_Scripts {
|
|
236 |
self::register_styles();
|
237 |
|
238 |
if ( is_ur_account_page() || ur_post_content_has_shortcode( 'user_registration_form' ) ) {
|
239 |
-
self::enqueue_script( 'user-registration' );
|
240 |
self::enqueue_script('ur-jquery-validate');
|
|
|
|
|
241 |
}
|
242 |
|
243 |
if ( is_ur_lost_password_page() ) {
|
174 |
private static function register_scripts() {
|
175 |
$suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
|
176 |
$register_scripts = array(
|
177 |
+
'ur-inputmask' => array(
|
178 |
+
'src' => self::get_asset_url( 'assets/js/inputmask/jquery.inputmask.bundle' . $suffix . '.js' ),
|
179 |
+
'deps' => array( 'jquery' ),
|
180 |
+
'version' => '4.0.0-beta.58',
|
181 |
+
),
|
182 |
'ur-jquery-validate' => array(
|
183 |
'src' => self::get_asset_url( 'assets/js/frontend/jquery.validate' . $suffix . '.js' ),
|
184 |
'deps' => array( 'jquery' ),
|
203 |
'src' => 'https://www.google.com/recaptcha/api.js?onload=onloadURCallback&render=explicit',
|
204 |
'deps' => array(),
|
205 |
'version' => '2.0.0',
|
206 |
+
|
207 |
),
|
208 |
);
|
209 |
foreach ( $register_scripts as $name => $props ) {
|
242 |
self::register_styles();
|
243 |
|
244 |
if ( is_ur_account_page() || ur_post_content_has_shortcode( 'user_registration_form' ) ) {
|
|
|
245 |
self::enqueue_script('ur-jquery-validate');
|
246 |
+
self::enqueue_script( 'ur-inputmask' );
|
247 |
+
self::enqueue_script( 'user-registration' );
|
248 |
}
|
249 |
|
250 |
if ( is_ur_lost_password_page() ) {
|
includes/class-ur-shortcodes.php
CHANGED
@@ -22,8 +22,6 @@ class UR_Shortcodes {
|
|
22 |
* Init Shortcodes.
|
23 |
*/
|
24 |
public static function init() {
|
25 |
-
|
26 |
-
|
27 |
$shortcodes = array(
|
28 |
'user_registration_form' => __CLASS__ . '::form', // change it to user_registration_form ;)
|
29 |
'user_registration_my_account' => __CLASS__ . '::my_account',
|
@@ -77,8 +75,14 @@ class UR_Shortcodes {
|
|
77 |
) ));
|
78 |
}
|
79 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
80 |
public static function login( $atts ) {
|
81 |
-
|
82 |
return self::shortcode_wrapper( array( 'UR_Shortcode_Login', 'output' ), $atts,apply_filters('user_registration_login_shortcode',array(
|
83 |
'class' => 'user-registration',
|
84 |
'before' => null,
|
@@ -88,18 +92,17 @@ class UR_Shortcodes {
|
|
88 |
|
89 |
/**
|
90 |
* User Registration form shortcode.
|
|
|
91 |
*/
|
92 |
public static function form( $atts ) {
|
93 |
-
if ( empty( $atts ) ) {
|
94 |
return '';
|
95 |
}
|
96 |
|
97 |
$users_can_register = apply_filters( 'ur_register_setting_override', get_option( 'users_can_register' ) );
|
98 |
|
99 |
if ( ! is_user_logged_in() ) {
|
100 |
-
|
101 |
if ( ! $users_can_register ) {
|
102 |
-
|
103 |
return apply_filters( 'ur_register_pre_form_message', '<p class="alert" id="ur_register_pre_form_message">' . __( 'Only an administrator can add new users.', 'user-registration' ) . '</p>' );
|
104 |
}
|
105 |
} else {
|
@@ -119,14 +122,7 @@ class UR_Shortcodes {
|
|
119 |
$display_name = ! empty( $user->data->display_name ) ? $user->data->display_name : $user->data->user_email;
|
120 |
|
121 |
return apply_filters( 'ur_register_pre_form_message', '<p class="alert" id="ur_register_pre_form_message">' . sprintf( __( "You are currently logged in as %1s. You don't need another account. %2s", 'user-registration' ), '<a href="#" title="' . $display_name . '">' . $display_name . '</a>', '<a href="' . wp_logout_url( $current_url ) . '" title="' . __( 'Log out of this account.', 'user-registration' ) . '">' . __( 'Logout', 'user-registration' ) . ' »</a>' ) . '</p>', $user_ID );
|
122 |
-
|
123 |
}
|
124 |
-
|
125 |
-
}
|
126 |
-
|
127 |
-
|
128 |
-
if ( ! isset( $atts['id'] ) ) {
|
129 |
-
return '';
|
130 |
}
|
131 |
|
132 |
$atts = shortcode_atts( array(
|
@@ -134,7 +130,6 @@ class UR_Shortcodes {
|
|
134 |
), $atts, 'user_registration_form' );
|
135 |
|
136 |
ob_start();
|
137 |
-
|
138 |
self::render_form( $atts['id'] );
|
139 |
|
140 |
return ob_get_clean();
|
22 |
* Init Shortcodes.
|
23 |
*/
|
24 |
public static function init() {
|
|
|
|
|
25 |
$shortcodes = array(
|
26 |
'user_registration_form' => __CLASS__ . '::form', // change it to user_registration_form ;)
|
27 |
'user_registration_my_account' => __CLASS__ . '::my_account',
|
75 |
) ));
|
76 |
}
|
77 |
|
78 |
+
/**
|
79 |
+
* My account page shortcode.
|
80 |
+
*
|
81 |
+
* @param mixed $atts
|
82 |
+
*
|
83 |
+
* @return string
|
84 |
+
*/
|
85 |
public static function login( $atts ) {
|
|
|
86 |
return self::shortcode_wrapper( array( 'UR_Shortcode_Login', 'output' ), $atts,apply_filters('user_registration_login_shortcode',array(
|
87 |
'class' => 'user-registration',
|
88 |
'before' => null,
|
92 |
|
93 |
/**
|
94 |
* User Registration form shortcode.
|
95 |
+
* @param mixed $atts
|
96 |
*/
|
97 |
public static function form( $atts ) {
|
98 |
+
if ( empty( $atts ) || ! isset( $atts['id'] ) ) {
|
99 |
return '';
|
100 |
}
|
101 |
|
102 |
$users_can_register = apply_filters( 'ur_register_setting_override', get_option( 'users_can_register' ) );
|
103 |
|
104 |
if ( ! is_user_logged_in() ) {
|
|
|
105 |
if ( ! $users_can_register ) {
|
|
|
106 |
return apply_filters( 'ur_register_pre_form_message', '<p class="alert" id="ur_register_pre_form_message">' . __( 'Only an administrator can add new users.', 'user-registration' ) . '</p>' );
|
107 |
}
|
108 |
} else {
|
122 |
$display_name = ! empty( $user->data->display_name ) ? $user->data->display_name : $user->data->user_email;
|
123 |
|
124 |
return apply_filters( 'ur_register_pre_form_message', '<p class="alert" id="ur_register_pre_form_message">' . sprintf( __( "You are currently logged in as %1s. You don't need another account. %2s", 'user-registration' ), '<a href="#" title="' . $display_name . '">' . $display_name . '</a>', '<a href="' . wp_logout_url( $current_url ) . '" title="' . __( 'Log out of this account.', 'user-registration' ) . '">' . __( 'Logout', 'user-registration' ) . ' »</a>' ) . '</p>', $user_ID );
|
|
|
125 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
126 |
}
|
127 |
|
128 |
$atts = shortcode_atts( array(
|
130 |
), $atts, 'user_registration_form' );
|
131 |
|
132 |
ob_start();
|
|
|
133 |
self::render_form( $atts['id'] );
|
134 |
|
135 |
return ob_get_clean();
|
includes/functions-ur-account.php
CHANGED
@@ -14,7 +14,6 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
14 |
exit;
|
15 |
}
|
16 |
|
17 |
-
|
18 |
add_filter( 'login_errors', 'login_error_message' );
|
19 |
|
20 |
//Modify error message on invalid username or password
|
@@ -28,9 +27,9 @@ function login_error_message( $error ) {
|
|
28 |
//check if that's the error you are looking for
|
29 |
$pos = strpos( $error, 'incorrect' );
|
30 |
|
31 |
-
if ( is_int( $pos ) ) {
|
32 |
//its the correct username with incorrect password
|
33 |
-
$error = __(
|
34 |
}
|
35 |
return $error;
|
36 |
}
|
@@ -82,20 +81,19 @@ function ur_get_account_menu_items() {
|
|
82 |
);
|
83 |
|
84 |
$user_id = get_current_user_id();
|
85 |
-
|
86 |
$form_id_array = get_user_meta( $user_id, 'ur_form_id' );
|
87 |
-
|
88 |
$form_id = 0;
|
89 |
|
90 |
if ( isset( $form_id_array[0] ) ) {
|
91 |
-
|
92 |
$form_id = $form_id_array[0];
|
93 |
}
|
|
|
94 |
$profile = user_registration_form_data( $user_id, $form_id );
|
|
|
95 |
if ( count( $profile ) < 1 ) {
|
96 |
-
|
97 |
unset($items['edit-profile']);
|
98 |
}
|
|
|
99 |
// Remove missing endpoints.
|
100 |
foreach ( $endpoints as $endpoint_id => $endpoint ) {
|
101 |
if ( empty( $endpoint ) ) {
|
@@ -103,7 +101,6 @@ function ur_get_account_menu_items() {
|
|
103 |
}
|
104 |
}
|
105 |
|
106 |
-
|
107 |
return apply_filters( 'user_registration_account_menu_items', $items );
|
108 |
}
|
109 |
|
14 |
exit;
|
15 |
}
|
16 |
|
|
|
17 |
add_filter( 'login_errors', 'login_error_message' );
|
18 |
|
19 |
//Modify error message on invalid username or password
|
27 |
//check if that's the error you are looking for
|
28 |
$pos = strpos( $error, 'incorrect' );
|
29 |
|
30 |
+
if ( is_int( $pos ) && isset( $_POST['redirect'] ) && isset( $_POST['username'] ) ) {
|
31 |
//its the correct username with incorrect password
|
32 |
+
$error = sprintf( __( 'The password you entered for username %1s is incorrect. %2s' , 'user-registration' ), $_POST['username'], "<a href='". $_POST['redirect'] . get_option( 'user_registration_myaccount_lost_password_endpoint', 'lost-password' ) ."'>".__('Lost Your Password?','user-registration').'</a>' );
|
33 |
}
|
34 |
return $error;
|
35 |
}
|
81 |
);
|
82 |
|
83 |
$user_id = get_current_user_id();
|
|
|
84 |
$form_id_array = get_user_meta( $user_id, 'ur_form_id' );
|
|
|
85 |
$form_id = 0;
|
86 |
|
87 |
if ( isset( $form_id_array[0] ) ) {
|
|
|
88 |
$form_id = $form_id_array[0];
|
89 |
}
|
90 |
+
|
91 |
$profile = user_registration_form_data( $user_id, $form_id );
|
92 |
+
|
93 |
if ( count( $profile ) < 1 ) {
|
|
|
94 |
unset($items['edit-profile']);
|
95 |
}
|
96 |
+
|
97 |
// Remove missing endpoints.
|
98 |
foreach ( $endpoints as $endpoint_id => $endpoint ) {
|
99 |
if ( empty( $endpoint ) ) {
|
101 |
}
|
102 |
}
|
103 |
|
|
|
104 |
return apply_filters( 'user_registration_account_menu_items', $items );
|
105 |
}
|
106 |
|
includes/functions-ur-core.php
CHANGED
@@ -345,8 +345,6 @@ function ur_get_field_type( $field_key ) {
|
|
345 |
$field_type = 'file';
|
346 |
break;
|
347 |
case 'privacy_policy':
|
348 |
-
$field_type = 'privacy-policy';
|
349 |
-
break;
|
350 |
case 'mailchimp':
|
351 |
case 'checkbox':
|
352 |
$field_type = 'checkbox';
|
345 |
$field_type = 'file';
|
346 |
break;
|
347 |
case 'privacy_policy':
|
|
|
|
|
348 |
case 'mailchimp':
|
349 |
case 'checkbox':
|
350 |
$field_type = 'checkbox';
|
includes/functions-ur-template.php
CHANGED
@@ -17,7 +17,6 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
17 |
/**
|
18 |
* Handle redirects before content is output - hooked into template_redirect so is_page works.
|
19 |
*/
|
20 |
-
|
21 |
function ur_template_redirect() {
|
22 |
global $wp;
|
23 |
|
@@ -46,12 +45,10 @@ function ur_login_template_redirect() {
|
|
46 |
$attributes = shortcode_parse_atts( $matches[3] );
|
47 |
|
48 |
$redirect_url = isset( $attributes['redirect_url'] ) ? $attributes['redirect_url'] : '';
|
49 |
-
|
50 |
$redirect_url = trim( $redirect_url, ']' );
|
51 |
$redirect_url = trim( $redirect_url, '"' );
|
52 |
$redirect_url = trim( $redirect_url, "'" );
|
53 |
|
54 |
-
|
55 |
if ( ! empty( $redirect_url ) ) {
|
56 |
wp_redirect( $redirect_url );
|
57 |
}
|
@@ -67,9 +64,7 @@ function ur_login_template_redirect() {
|
|
67 |
*/
|
68 |
function ur_body_class( $classes ) {
|
69 |
$classes = (array) $classes;
|
70 |
-
|
71 |
if ( is_ur_account_page() ) {
|
72 |
-
|
73 |
$classes[] = 'user-registration-account';
|
74 |
$classes[] = 'user-registration-page';
|
75 |
}
|
@@ -188,6 +183,9 @@ if ( ! function_exists( 'user_registration_form_field' ) ) {
|
|
188 |
|
189 |
$field = '<label class="checkbox ' . implode( ' ', $custom_attributes ) . '">';
|
190 |
$field .= $args['label'] . $required . '</label>';
|
|
|
|
|
|
|
191 |
$checkbox_start =0;
|
192 |
foreach ( $choices as $choice_index => $choice ) {
|
193 |
|
@@ -199,18 +197,15 @@ if ( ! function_exists( 'user_registration_form_field' ) ) {
|
|
199 |
$field .= '<label>';
|
200 |
$field .= ' <input 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).'"' . $value . ' /> ';
|
201 |
$field .= trim( $choice ) . ' </label>';
|
202 |
-
|
203 |
-
|
204 |
$checkbox_start++;
|
205 |
}
|
206 |
} else {
|
207 |
$field = '<label class="checkbox ' . implode( ' ', $custom_attributes ) . '">
|
208 |
<input 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 ) . ' /> '
|
209 |
. $args['label'] . $required . '</label>';
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
$field .= '<span class="description">' . $args['description'] . '</span>';
|
214 |
}
|
215 |
break;
|
216 |
|
@@ -235,7 +230,7 @@ if ( ! function_exists( 'user_registration_form_field' ) ) {
|
|
235 |
break;
|
236 |
|
237 |
case 'select' :
|
238 |
-
$options = $field
|
239 |
if ( ! empty( $args['options'] ) ) {
|
240 |
foreach ( $args['options'] as $option_key => $option_text ) {
|
241 |
|
@@ -253,13 +248,9 @@ if ( ! function_exists( 'user_registration_form_field' ) ) {
|
|
253 |
' . $options . '
|
254 |
</select>';
|
255 |
}
|
256 |
-
if ( $args['description'] ) {
|
257 |
-
$field .= '<span class="description">' . $args['description'] . '</span>';
|
258 |
-
}
|
259 |
break;
|
260 |
|
261 |
case 'radio' :
|
262 |
-
|
263 |
$label_id = current( array_keys( $args['options'] ) );
|
264 |
if ( ! empty( $args['options'] ) ) {
|
265 |
foreach ( $args['options'] as $option_key => $option_text ) {
|
@@ -280,10 +271,9 @@ if ( ! function_exists( 'user_registration_form_field' ) ) {
|
|
280 |
}// End switch().
|
281 |
|
282 |
if ( ! empty( $field ) ) {
|
283 |
-
$field_html = '';
|
284 |
|
|
|
285 |
if ( $args['label'] && 'checkbox' != $args['type'] ) {
|
286 |
-
|
287 |
$field_html .= '<label for="' . esc_attr( $label_id ) . '">' . wp_kses( $args['label'], array(
|
288 |
'a' => array(
|
289 |
'href' => array(),
|
@@ -294,7 +284,6 @@ if ( ! function_exists( 'user_registration_form_field' ) ) {
|
|
294 |
}
|
295 |
|
296 |
$field_html .= $field;
|
297 |
-
|
298 |
$container_class = esc_attr( implode( ' ', $args['class'] ) );
|
299 |
$container_id = esc_attr( $args['id'] ) . '_field';
|
300 |
$field = sprintf( $field_container, $container_class, $container_id, $field_html );
|
@@ -346,6 +335,7 @@ if ( ! function_exists( 'user_registration_form_data' ) ) {
|
|
346 |
foreach ( $post_content_grid as $field ) {
|
347 |
$field_name = isset( $field->general_setting->field_name ) ? $field->general_setting->field_name : '';
|
348 |
$field_label = isset( $field->general_setting->label ) ? $field->general_setting->label : '';
|
|
|
349 |
$field_key = isset( $field->field_key ) ? ( $field->field_key ) : '';
|
350 |
$field_type = isset( $field->field_key ) ? ur_get_field_type( $field_key ) : '';
|
351 |
$required = isset( $general_setting->required ) ? $general_setting->required :'';
|
@@ -386,11 +376,10 @@ if ( ! function_exists( 'user_registration_form_data' ) ) {
|
|
386 |
|
387 |
$extra_params['default'] = isset( $all_meta_value[ 'user_registration_' . $field_name ][0] ) ? $all_meta_value[ 'user_registration_' . $field_name ][0] : '';
|
388 |
|
389 |
-
|
390 |
if ( in_array( 'user_registration_' . $field_name, $all_meta_value_keys ) ) {
|
391 |
$fields[ 'user_registration_' . $field_name ] = array(
|
392 |
'label' => __( $field_label, 'user-registration' ),
|
393 |
-
'description' => '',
|
394 |
'type' => $field_type,
|
395 |
'field_key' => $field_key,
|
396 |
'required' => $required,
|
@@ -398,7 +387,7 @@ if ( ! function_exists( 'user_registration_form_data' ) ) {
|
|
398 |
} elseif ( in_array( $field_name, ur_get_user_profile_field_only() ) ) {
|
399 |
$fields[ 'user_registration_' . $field_name ] = array(
|
400 |
'label' => __( $field_label, 'user-registration' ),
|
401 |
-
'description' => '',
|
402 |
'type' => $field_type,
|
403 |
'field_key' => $field_key,
|
404 |
'required' => $required,
|
@@ -408,12 +397,21 @@ if ( ! function_exists( 'user_registration_form_data' ) ) {
|
|
408 |
if ( isset( $fields[ 'user_registration_' . $field_name ] ) && count( $extra_params ) > 0 ) {
|
409 |
$fields[ 'user_registration_' . $field_name ] = array_merge( $fields[ 'user_registration_' . $field_name ], $extra_params );
|
410 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
411 |
}// End if().
|
412 |
}// End foreach().
|
413 |
}// End foreach().
|
414 |
}// End foreach().
|
415 |
|
416 |
-
|
417 |
return $fields;
|
418 |
}
|
419 |
}// End if().
|
@@ -435,7 +433,6 @@ if ( ! function_exists( 'user_registration_account_content' ) ) {
|
|
435 |
|
436 |
if ( has_action( 'user_registration_account_' . $key . '_endpoint' ) ) {
|
437 |
do_action( 'user_registration_account_' . $key . '_endpoint', $value );
|
438 |
-
|
439 |
return;
|
440 |
}
|
441 |
}
|
17 |
/**
|
18 |
* Handle redirects before content is output - hooked into template_redirect so is_page works.
|
19 |
*/
|
|
|
20 |
function ur_template_redirect() {
|
21 |
global $wp;
|
22 |
|
45 |
$attributes = shortcode_parse_atts( $matches[3] );
|
46 |
|
47 |
$redirect_url = isset( $attributes['redirect_url'] ) ? $attributes['redirect_url'] : '';
|
|
|
48 |
$redirect_url = trim( $redirect_url, ']' );
|
49 |
$redirect_url = trim( $redirect_url, '"' );
|
50 |
$redirect_url = trim( $redirect_url, "'" );
|
51 |
|
|
|
52 |
if ( ! empty( $redirect_url ) ) {
|
53 |
wp_redirect( $redirect_url );
|
54 |
}
|
64 |
*/
|
65 |
function ur_body_class( $classes ) {
|
66 |
$classes = (array) $classes;
|
|
|
67 |
if ( is_ur_account_page() ) {
|
|
|
68 |
$classes[] = 'user-registration-account';
|
69 |
$classes[] = 'user-registration-page';
|
70 |
}
|
183 |
|
184 |
$field = '<label class="checkbox ' . implode( ' ', $custom_attributes ) . '">';
|
185 |
$field .= $args['label'] . $required . '</label>';
|
186 |
+
if ( $args['description'] ) {
|
187 |
+
$field .= '<span class="description">' . $args['description'] . '</span>';
|
188 |
+
}
|
189 |
$checkbox_start =0;
|
190 |
foreach ( $choices as $choice_index => $choice ) {
|
191 |
|
197 |
$field .= '<label>';
|
198 |
$field .= ' <input 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).'"' . $value . ' /> ';
|
199 |
$field .= trim( $choice ) . ' </label>';
|
|
|
|
|
200 |
$checkbox_start++;
|
201 |
}
|
202 |
} else {
|
203 |
$field = '<label class="checkbox ' . implode( ' ', $custom_attributes ) . '">
|
204 |
<input 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 ) . ' /> '
|
205 |
. $args['label'] . $required . '</label>';
|
206 |
+
if ( $args['description'] ) {
|
207 |
+
$field .= '<span class="description">' . $args['description'] . '</span>';
|
208 |
+
}
|
|
|
209 |
}
|
210 |
break;
|
211 |
|
230 |
break;
|
231 |
|
232 |
case 'select' :
|
233 |
+
$options = $field .= '';
|
234 |
if ( ! empty( $args['options'] ) ) {
|
235 |
foreach ( $args['options'] as $option_key => $option_text ) {
|
236 |
|
248 |
' . $options . '
|
249 |
</select>';
|
250 |
}
|
|
|
|
|
|
|
251 |
break;
|
252 |
|
253 |
case 'radio' :
|
|
|
254 |
$label_id = current( array_keys( $args['options'] ) );
|
255 |
if ( ! empty( $args['options'] ) ) {
|
256 |
foreach ( $args['options'] as $option_key => $option_text ) {
|
271 |
}// End switch().
|
272 |
|
273 |
if ( ! empty( $field ) ) {
|
|
|
274 |
|
275 |
+
$field_html = '';
|
276 |
if ( $args['label'] && 'checkbox' != $args['type'] ) {
|
|
|
277 |
$field_html .= '<label for="' . esc_attr( $label_id ) . '">' . wp_kses( $args['label'], array(
|
278 |
'a' => array(
|
279 |
'href' => array(),
|
284 |
}
|
285 |
|
286 |
$field_html .= $field;
|
|
|
287 |
$container_class = esc_attr( implode( ' ', $args['class'] ) );
|
288 |
$container_id = esc_attr( $args['id'] ) . '_field';
|
289 |
$field = sprintf( $field_container, $container_class, $container_id, $field_html );
|
335 |
foreach ( $post_content_grid as $field ) {
|
336 |
$field_name = isset( $field->general_setting->field_name ) ? $field->general_setting->field_name : '';
|
337 |
$field_label = isset( $field->general_setting->label ) ? $field->general_setting->label : '';
|
338 |
+
$field_description = isset( $field->general_setting->description ) ? $field->general_setting->description : '';
|
339 |
$field_key = isset( $field->field_key ) ? ( $field->field_key ) : '';
|
340 |
$field_type = isset( $field->field_key ) ? ur_get_field_type( $field_key ) : '';
|
341 |
$required = isset( $general_setting->required ) ? $general_setting->required :'';
|
376 |
|
377 |
$extra_params['default'] = isset( $all_meta_value[ 'user_registration_' . $field_name ][0] ) ? $all_meta_value[ 'user_registration_' . $field_name ][0] : '';
|
378 |
|
|
|
379 |
if ( in_array( 'user_registration_' . $field_name, $all_meta_value_keys ) ) {
|
380 |
$fields[ 'user_registration_' . $field_name ] = array(
|
381 |
'label' => __( $field_label, 'user-registration' ),
|
382 |
+
'description' => __( $field_description, 'user-registration' ),
|
383 |
'type' => $field_type,
|
384 |
'field_key' => $field_key,
|
385 |
'required' => $required,
|
387 |
} elseif ( in_array( $field_name, ur_get_user_profile_field_only() ) ) {
|
388 |
$fields[ 'user_registration_' . $field_name ] = array(
|
389 |
'label' => __( $field_label, 'user-registration' ),
|
390 |
+
'description' => __( $field_description, 'user-registration' ),
|
391 |
'type' => $field_type,
|
392 |
'field_key' => $field_key,
|
393 |
'required' => $required,
|
397 |
if ( isset( $fields[ 'user_registration_' . $field_name ] ) && count( $extra_params ) > 0 ) {
|
398 |
$fields[ 'user_registration_' . $field_name ] = array_merge( $fields[ 'user_registration_' . $field_name ], $extra_params );
|
399 |
}
|
400 |
+
$filter_data = array(
|
401 |
+
'fields' => $fields,
|
402 |
+
'field' => $field,
|
403 |
+
'field_name' => $field_name
|
404 |
+
);
|
405 |
+
|
406 |
+
$filtered_data_array = apply_filters( 'user_registration_profile_account_filter_' . $field_key, $filter_data );
|
407 |
+
if ( isset( $filtered_data_array['fields'] ) ) {
|
408 |
+
$fields = $filtered_data_array['fields'];
|
409 |
+
}
|
410 |
}// End if().
|
411 |
}// End foreach().
|
412 |
}// End foreach().
|
413 |
}// End foreach().
|
414 |
|
|
|
415 |
return $fields;
|
416 |
}
|
417 |
}// End if().
|
433 |
|
434 |
if ( has_action( 'user_registration_account_' . $key . '_endpoint' ) ) {
|
435 |
do_action( 'user_registration_account_' . $key . '_endpoint', $value );
|
|
|
436 |
return;
|
437 |
}
|
438 |
}
|
includes/shortcodes/class-ur-shortcode-my-account.php
CHANGED
@@ -24,10 +24,9 @@ class UR_Shortcode_My_Account {
|
|
24 |
* Get the shortcode content.
|
25 |
*
|
26 |
* @param array $atts
|
27 |
-
* @return
|
28 |
*/
|
29 |
public static function get( $atts ) {
|
30 |
-
|
31 |
return UR_Shortcodes::shortcode_wrapper( array( __CLASS__, 'output' ), $atts );
|
32 |
}
|
33 |
|
@@ -96,57 +95,38 @@ class UR_Shortcode_My_Account {
|
|
96 |
public static function edit_profile() {
|
97 |
|
98 |
$user_id=get_current_user_id();
|
99 |
-
|
100 |
$form_id_array=get_user_meta($user_id,'ur_form_id');
|
101 |
-
|
102 |
$form_id=0;
|
103 |
|
104 |
-
|
105 |
if( isset($form_id_array[0]) ){
|
106 |
-
|
107 |
$form_id = $form_id_array[0];
|
108 |
}
|
109 |
|
110 |
$profile = user_registration_form_data( $user_id, $form_id );
|
111 |
-
|
112 |
$user_data_obj = get_userdata($user_id);
|
113 |
-
|
114 |
$user_data = $user_data_obj->data;
|
115 |
|
116 |
-
if(count($profile)<1){
|
117 |
return;
|
118 |
}
|
119 |
|
120 |
// Prepare values
|
121 |
foreach ( $profile as $key => $field ) {
|
122 |
-
|
123 |
-
|
124 |
$value = get_user_meta( get_current_user_id(), $key, true );
|
125 |
-
|
126 |
$profile[ $key ]['value'] = apply_filters( 'user_registration_my_account_edit_profile_field_value', $value, $key );
|
127 |
-
|
128 |
$new_key=str_replace('user_registration_','',$key);
|
129 |
|
130 |
-
|
131 |
if(in_array($new_key,ur_get_registered_user_meta_fields())){
|
132 |
-
|
133 |
$value = get_user_meta( get_current_user_id(), (str_replace('user_','',$new_key)), true );
|
134 |
-
|
135 |
$profile[ $key ]['value'] = apply_filters( 'user_registration_my_account_edit_profile_field_value', $value, $key );
|
136 |
-
|
137 |
}elseif(isset($user_data->$new_key) && in_array($new_key,ur_get_user_table_fields())){
|
138 |
-
|
139 |
$profile[ $key ]['value'] = apply_filters( 'user_registration_my_account_edit_profile_field_value', $user_data->$new_key, $key );
|
140 |
|
141 |
}else if(isset($user_data->display_name) && $key==='user_registration_display_name'){
|
142 |
-
|
143 |
$profile[ $key ]['value'] = apply_filters( 'user_registration_my_account_edit_profile_field_value', $user_data->display_name, $key );
|
144 |
-
|
145 |
}
|
146 |
-
|
147 |
}
|
148 |
|
149 |
-
|
150 |
ur_get_template( 'myaccount/form-edit-profile.php', array(
|
151 |
'profile' => apply_filters( 'user_registration_profile_to_edit', $profile ),
|
152 |
) );
|
@@ -168,7 +148,6 @@ class UR_Shortcode_My_Account {
|
|
168 |
/**
|
169 |
* After sending the reset link, don't show the form again.
|
170 |
*/
|
171 |
-
|
172 |
if ( ! empty( $_GET['reset-link-sent'] ) ) {
|
173 |
return ur_get_template( 'myaccount/lost-password-confirmation.php' );
|
174 |
|
@@ -212,10 +191,8 @@ class UR_Shortcode_My_Account {
|
|
212 |
$login = trim( $_POST['user_login'] );
|
213 |
|
214 |
if ( empty( $login ) ) {
|
215 |
-
|
216 |
ur_add_notice( __( 'Enter a username or email address.', 'user-registration' ), 'error' );
|
217 |
return false;
|
218 |
-
|
219 |
} else {
|
220 |
// Check on username first, as customers can use emails as usernames.
|
221 |
$user_data = get_user_by( 'login', $login );
|
@@ -227,7 +204,6 @@ class UR_Shortcode_My_Account {
|
|
227 |
}
|
228 |
|
229 |
$errors = new WP_Error();
|
230 |
-
|
231 |
do_action( 'lostpassword_post', $errors );
|
232 |
|
233 |
if ( $errors->get_error_code() ) {
|
@@ -247,18 +223,14 @@ class UR_Shortcode_My_Account {
|
|
247 |
|
248 |
// Redefining user_login ensures we return the right case in the email.
|
249 |
$user_login = $user_data->user_login;
|
250 |
-
|
251 |
do_action( 'retrieve_password', $user_login );
|
252 |
-
|
253 |
$allow = apply_filters( 'allow_password_reset', true, $user_data->ID );
|
254 |
|
255 |
if ( ! $allow ) {
|
256 |
-
|
257 |
ur_add_notice( __( 'Password reset is not allowed for this user', 'user-registration' ), 'error' );
|
258 |
return false;
|
259 |
|
260 |
} elseif ( is_wp_error( $allow ) ) {
|
261 |
-
|
262 |
ur_add_notice( $allow->get_error_message(), 'error' );
|
263 |
return false;
|
264 |
}
|
@@ -305,11 +277,8 @@ class UR_Shortcode_My_Account {
|
|
305 |
*/
|
306 |
public static function reset_password( $user, $new_pass ) {
|
307 |
do_action( 'password_reset', $user, $new_pass );
|
308 |
-
|
309 |
-
|
310 |
wp_set_password( $new_pass, $user->ID );
|
311 |
self::set_reset_password_cookie();
|
312 |
-
|
313 |
wp_password_change_notification( $user );
|
314 |
}
|
315 |
|
24 |
* Get the shortcode content.
|
25 |
*
|
26 |
* @param array $atts
|
27 |
+
* @return mixed
|
28 |
*/
|
29 |
public static function get( $atts ) {
|
|
|
30 |
return UR_Shortcodes::shortcode_wrapper( array( __CLASS__, 'output' ), $atts );
|
31 |
}
|
32 |
|
95 |
public static function edit_profile() {
|
96 |
|
97 |
$user_id=get_current_user_id();
|
|
|
98 |
$form_id_array=get_user_meta($user_id,'ur_form_id');
|
|
|
99 |
$form_id=0;
|
100 |
|
|
|
101 |
if( isset($form_id_array[0]) ){
|
|
|
102 |
$form_id = $form_id_array[0];
|
103 |
}
|
104 |
|
105 |
$profile = user_registration_form_data( $user_id, $form_id );
|
|
|
106 |
$user_data_obj = get_userdata($user_id);
|
|
|
107 |
$user_data = $user_data_obj->data;
|
108 |
|
109 |
+
if( count( $profile ) < 1 ) {
|
110 |
return;
|
111 |
}
|
112 |
|
113 |
// Prepare values
|
114 |
foreach ( $profile as $key => $field ) {
|
|
|
|
|
115 |
$value = get_user_meta( get_current_user_id(), $key, true );
|
|
|
116 |
$profile[ $key ]['value'] = apply_filters( 'user_registration_my_account_edit_profile_field_value', $value, $key );
|
|
|
117 |
$new_key=str_replace('user_registration_','',$key);
|
118 |
|
|
|
119 |
if(in_array($new_key,ur_get_registered_user_meta_fields())){
|
|
|
120 |
$value = get_user_meta( get_current_user_id(), (str_replace('user_','',$new_key)), true );
|
|
|
121 |
$profile[ $key ]['value'] = apply_filters( 'user_registration_my_account_edit_profile_field_value', $value, $key );
|
|
|
122 |
}elseif(isset($user_data->$new_key) && in_array($new_key,ur_get_user_table_fields())){
|
|
|
123 |
$profile[ $key ]['value'] = apply_filters( 'user_registration_my_account_edit_profile_field_value', $user_data->$new_key, $key );
|
124 |
|
125 |
}else if(isset($user_data->display_name) && $key==='user_registration_display_name'){
|
|
|
126 |
$profile[ $key ]['value'] = apply_filters( 'user_registration_my_account_edit_profile_field_value', $user_data->display_name, $key );
|
|
|
127 |
}
|
|
|
128 |
}
|
129 |
|
|
|
130 |
ur_get_template( 'myaccount/form-edit-profile.php', array(
|
131 |
'profile' => apply_filters( 'user_registration_profile_to_edit', $profile ),
|
132 |
) );
|
148 |
/**
|
149 |
* After sending the reset link, don't show the form again.
|
150 |
*/
|
|
|
151 |
if ( ! empty( $_GET['reset-link-sent'] ) ) {
|
152 |
return ur_get_template( 'myaccount/lost-password-confirmation.php' );
|
153 |
|
191 |
$login = trim( $_POST['user_login'] );
|
192 |
|
193 |
if ( empty( $login ) ) {
|
|
|
194 |
ur_add_notice( __( 'Enter a username or email address.', 'user-registration' ), 'error' );
|
195 |
return false;
|
|
|
196 |
} else {
|
197 |
// Check on username first, as customers can use emails as usernames.
|
198 |
$user_data = get_user_by( 'login', $login );
|
204 |
}
|
205 |
|
206 |
$errors = new WP_Error();
|
|
|
207 |
do_action( 'lostpassword_post', $errors );
|
208 |
|
209 |
if ( $errors->get_error_code() ) {
|
223 |
|
224 |
// Redefining user_login ensures we return the right case in the email.
|
225 |
$user_login = $user_data->user_login;
|
|
|
226 |
do_action( 'retrieve_password', $user_login );
|
|
|
227 |
$allow = apply_filters( 'allow_password_reset', true, $user_data->ID );
|
228 |
|
229 |
if ( ! $allow ) {
|
|
|
230 |
ur_add_notice( __( 'Password reset is not allowed for this user', 'user-registration' ), 'error' );
|
231 |
return false;
|
232 |
|
233 |
} elseif ( is_wp_error( $allow ) ) {
|
|
|
234 |
ur_add_notice( $allow->get_error_message(), 'error' );
|
235 |
return false;
|
236 |
}
|
277 |
*/
|
278 |
public static function reset_password( $user, $new_pass ) {
|
279 |
do_action( 'password_reset', $user, $new_pass );
|
|
|
|
|
280 |
wp_set_password( $new_pass, $user->ID );
|
281 |
self::set_reset_password_cookie();
|
|
|
282 |
wp_password_change_notification( $user );
|
283 |
}
|
284 |
|
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: 2018-06-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -13,11 +13,11 @@ msgstr ""
|
|
13 |
"Language-Team: LANGUAGE <EMAIL@ADDRESS>\n"
|
14 |
"X-Generator: grunt-wp-i18n1.0.1\n"
|
15 |
|
16 |
-
#: includes/abstracts/abstract-ur-form-field.php:
|
17 |
msgid "General Settings"
|
18 |
msgstr ""
|
19 |
|
20 |
-
#: includes/abstracts/abstract-ur-form-field.php:
|
21 |
msgid "Advance Settings"
|
22 |
msgstr ""
|
23 |
|
@@ -100,7 +100,7 @@ msgstr ""
|
|
100 |
|
101 |
#: includes/admin/class-ur-admin-menus.php:313
|
102 |
#: includes/admin/class-ur-admin-user-list-manager.php:180
|
103 |
-
#: includes/class-ur-email-confirmation.php:
|
104 |
msgid "Status"
|
105 |
msgstr ""
|
106 |
|
@@ -156,12 +156,12 @@ msgstr ""
|
|
156 |
msgid "Cheatin’ huh?"
|
157 |
msgstr ""
|
158 |
|
159 |
-
#: includes/admin/class-ur-admin-profile.php:
|
160 |
msgid "User Extra Information %s"
|
161 |
msgstr ""
|
162 |
|
163 |
-
#: includes/admin/class-ur-admin-profile.php:119
|
164 |
#: includes/admin/class-ur-admin-profile.php:130
|
|
|
165 |
#: includes/form/class-ur-form-field-select.php:44
|
166 |
#: includes/form/class-ur-form-field-select.php:51
|
167 |
msgid "Select"
|
@@ -370,15 +370,15 @@ msgstr ""
|
|
370 |
msgid "WordPress User Extra Information"
|
371 |
msgstr ""
|
372 |
|
373 |
-
#: includes/admin/settings/class-ur-settings-email.php:
|
374 |
msgid "Emails"
|
375 |
msgstr ""
|
376 |
|
377 |
-
#: includes/admin/settings/class-ur-settings-email.php:
|
378 |
msgid "General Email Settings"
|
379 |
msgstr ""
|
380 |
|
381 |
-
#: includes/admin/settings/class-ur-settings-email.php:
|
382 |
msgid "Email notifications"
|
383 |
msgstr ""
|
384 |
|
@@ -388,37 +388,37 @@ msgid ""
|
|
388 |
"an email to configure it."
|
389 |
msgstr ""
|
390 |
|
391 |
-
#: includes/admin/settings/class-ur-settings-email.php:
|
392 |
msgid "Email Sender Options"
|
393 |
msgstr ""
|
394 |
|
395 |
-
#: includes/admin/settings/class-ur-settings-email.php:
|
396 |
msgid "\"From\" name"
|
397 |
msgstr ""
|
398 |
|
399 |
-
#: includes/admin/settings/class-ur-settings-email.php:
|
400 |
msgid "How the sender name appears in outgoing user registration emails."
|
401 |
msgstr ""
|
402 |
|
403 |
-
#: includes/admin/settings/class-ur-settings-email.php:
|
404 |
msgid "\"From\" address"
|
405 |
msgstr ""
|
406 |
|
407 |
-
#: includes/admin/settings/class-ur-settings-email.php:
|
408 |
msgid "How the sender email appears in outgoing user registration emails."
|
409 |
msgstr ""
|
410 |
|
411 |
-
#: includes/admin/settings/class-ur-settings-email.php:
|
412 |
#: includes/admin/settings/class-ur-settings-general.php:255
|
413 |
msgid "Email"
|
414 |
msgstr ""
|
415 |
|
416 |
-
#: includes/admin/settings/class-ur-settings-email.php:
|
417 |
-
#: includes/admin/settings/class-ur-settings-email.php:
|
418 |
msgid "Configure"
|
419 |
msgstr ""
|
420 |
|
421 |
-
#: includes/admin/settings/class-ur-settings-email.php:
|
422 |
msgid "Smart Tags Used"
|
423 |
msgstr ""
|
424 |
|
@@ -536,7 +536,7 @@ msgid "Success Messages"
|
|
536 |
msgstr ""
|
537 |
|
538 |
#: includes/admin/settings/class-ur-settings-general.php:203
|
539 |
-
#: includes/functions-ur-core.php:
|
540 |
msgid "Manual login after registration"
|
541 |
msgstr ""
|
542 |
|
@@ -547,12 +547,12 @@ msgid ""
|
|
547 |
msgstr ""
|
548 |
|
549 |
#: includes/admin/settings/class-ur-settings-general.php:209
|
550 |
-
#: includes/class-ur-frontend-scripts.php:
|
551 |
msgid "User successfully registered."
|
552 |
msgstr ""
|
553 |
|
554 |
#: includes/admin/settings/class-ur-settings-general.php:213
|
555 |
-
#: includes/functions-ur-core.php:
|
556 |
msgid "Email confirmation to login"
|
557 |
msgstr ""
|
558 |
|
@@ -563,14 +563,14 @@ msgid ""
|
|
563 |
msgstr ""
|
564 |
|
565 |
#: includes/admin/settings/class-ur-settings-general.php:219
|
566 |
-
#: includes/class-ur-frontend-scripts.php:
|
567 |
msgid ""
|
568 |
"User registered. Verify your email by clicking on the link sent to your "
|
569 |
"email."
|
570 |
msgstr ""
|
571 |
|
572 |
#: includes/admin/settings/class-ur-settings-general.php:223
|
573 |
-
#: includes/functions-ur-core.php:
|
574 |
msgid "Admin approval after registration"
|
575 |
msgstr ""
|
576 |
|
@@ -581,7 +581,7 @@ msgid ""
|
|
581 |
msgstr ""
|
582 |
|
583 |
#: includes/admin/settings/class-ur-settings-general.php:229
|
584 |
-
#: includes/class-ur-frontend-scripts.php:
|
585 |
msgid "User registered. Wait until admin approves your registration."
|
586 |
msgstr ""
|
587 |
|
@@ -590,7 +590,7 @@ msgid "Error Messages"
|
|
590 |
msgstr ""
|
591 |
|
592 |
#: includes/admin/settings/class-ur-settings-general.php:245
|
593 |
-
#: includes/functions-ur-core.php:
|
594 |
msgid "Required"
|
595 |
msgstr ""
|
596 |
|
@@ -599,7 +599,7 @@ msgid "Enter the error message in form submission on required fields."
|
|
599 |
msgstr ""
|
600 |
|
601 |
#: includes/admin/settings/class-ur-settings-general.php:251
|
602 |
-
#: includes/class-ur-frontend-scripts.php:
|
603 |
msgid "This field is required."
|
604 |
msgstr ""
|
605 |
|
@@ -608,7 +608,7 @@ msgid "Enter the error message in form submission on Email."
|
|
608 |
msgstr ""
|
609 |
|
610 |
#: includes/admin/settings/class-ur-settings-general.php:261
|
611 |
-
#: includes/class-ur-frontend-scripts.php:
|
612 |
msgid "Please enter a valid email address."
|
613 |
msgstr ""
|
614 |
|
@@ -621,7 +621,7 @@ msgid "Enter the error message in form submission on website/URL."
|
|
621 |
msgstr ""
|
622 |
|
623 |
#: includes/admin/settings/class-ur-settings-general.php:271
|
624 |
-
#: includes/class-ur-frontend-scripts.php:
|
625 |
msgid "Please enter a valid URL."
|
626 |
msgstr ""
|
627 |
|
@@ -636,7 +636,7 @@ msgid "Enter the error message in form submission on Number."
|
|
636 |
msgstr ""
|
637 |
|
638 |
#: includes/admin/settings/class-ur-settings-general.php:281
|
639 |
-
#: includes/class-ur-frontend-scripts.php:
|
640 |
msgid "Please enter a valid number."
|
641 |
msgstr ""
|
642 |
|
@@ -650,7 +650,7 @@ msgid "Enter the error message in form submission on Confim Password."
|
|
650 |
msgstr ""
|
651 |
|
652 |
#: includes/admin/settings/class-ur-settings-general.php:291
|
653 |
-
#: includes/class-ur-frontend-scripts.php:
|
654 |
msgid "Password and confirm password not matched."
|
655 |
msgstr ""
|
656 |
|
@@ -663,31 +663,31 @@ msgid "Enter the error message in form submission on google recaptcha."
|
|
663 |
msgstr ""
|
664 |
|
665 |
#: includes/admin/settings/class-ur-settings-general.php:301
|
666 |
-
#: includes/class-ur-frontend-scripts.php:
|
667 |
msgid "Captcha code error, please try again."
|
668 |
msgstr ""
|
669 |
|
670 |
-
#: includes/admin/settings/class-ur-settings-integration.php:
|
671 |
msgid "Integration"
|
672 |
msgstr ""
|
673 |
|
674 |
-
#: includes/admin/settings/class-ur-settings-integration.php:
|
675 |
msgid "Google reCaptcha Integation"
|
676 |
msgstr ""
|
677 |
|
678 |
-
#: includes/admin/settings/class-ur-settings-integration.php:
|
679 |
msgid "Site Key"
|
680 |
msgstr ""
|
681 |
|
682 |
-
#: includes/admin/settings/class-ur-settings-integration.php:
|
683 |
msgid "Get site key from google %1$s reCaptcha %2$s."
|
684 |
msgstr ""
|
685 |
|
686 |
-
#: includes/admin/settings/class-ur-settings-integration.php:
|
687 |
msgid "Secret Key"
|
688 |
msgstr ""
|
689 |
|
690 |
-
#: includes/admin/settings/class-ur-settings-integration.php:
|
691 |
msgid "Get secret key from google %1$s reCaptcha %2$s."
|
692 |
msgstr ""
|
693 |
|
@@ -711,90 +711,88 @@ msgstr ""
|
|
711 |
msgid "Return to emails"
|
712 |
msgstr ""
|
713 |
|
714 |
-
#: includes/admin/settings/emails/class-ur-settings-admin-email.php:
|
715 |
-
#: includes/admin/settings/emails/class-ur-settings-awaiting-admin-approval-email.php:
|
716 |
-
#: includes/admin/settings/emails/class-ur-settings-registration-approved-email.php:
|
717 |
-
#: includes/admin/settings/emails/class-ur-settings-registration-denied-email.php:
|
718 |
-
#: includes/admin/settings/emails/class-ur-settings-registration-pending-email.php:
|
719 |
-
#: includes/admin/settings/emails/class-ur-settings-reset-password-email.php:
|
720 |
-
#: includes/admin/settings/emails/class-ur-settings-successfully-registered-email.php:
|
721 |
msgid "Enable this email"
|
722 |
msgstr ""
|
723 |
|
724 |
-
#: includes/admin/settings/emails/class-ur-settings-admin-email.php:
|
725 |
msgid "Enable this email sent to admin after successful user registration."
|
726 |
msgstr ""
|
727 |
|
728 |
-
#: includes/admin/settings/emails/class-ur-settings-admin-email.php:
|
729 |
msgid "Email Receipents"
|
730 |
msgstr ""
|
731 |
|
732 |
-
#: includes/admin/settings/emails/class-ur-settings-admin-email.php:
|
733 |
msgid "Use comma to send emails to multiple receipents."
|
734 |
msgstr ""
|
735 |
|
736 |
-
#: includes/admin/settings/emails/class-ur-settings-admin-email.php:
|
737 |
-
#: includes/admin/settings/emails/class-ur-settings-awaiting-admin-approval-email.php:
|
738 |
#: includes/admin/settings/emails/class-ur-settings-email-confirmation.php:47
|
739 |
-
#: includes/admin/settings/emails/class-ur-settings-registration-approved-email.php:
|
740 |
-
#: includes/admin/settings/emails/class-ur-settings-registration-denied-email.php:
|
741 |
-
#: includes/admin/settings/emails/class-ur-settings-registration-pending-email.php:
|
742 |
-
#: includes/admin/settings/emails/class-ur-settings-reset-password-email.php:
|
743 |
-
#: includes/admin/settings/emails/class-ur-settings-successfully-registered-email.php:
|
744 |
msgid "Email Subject"
|
745 |
msgstr ""
|
746 |
|
747 |
-
#: includes/admin/settings/emails/class-ur-settings-admin-email.php:
|
748 |
-
#: includes/admin/settings/emails/class-ur-settings-awaiting-admin-approval-email.php:
|
749 |
#: includes/admin/settings/emails/class-ur-settings-email-confirmation.php:48
|
750 |
-
#: includes/admin/settings/emails/class-ur-settings-registration-approved-email.php:
|
751 |
-
#: includes/admin/settings/emails/class-ur-settings-registration-denied-email.php:
|
752 |
-
#: includes/admin/settings/emails/class-ur-settings-registration-pending-email.php:
|
753 |
-
#: includes/admin/settings/emails/class-ur-settings-reset-password-email.php:
|
754 |
-
#: includes/admin/settings/emails/class-ur-settings-successfully-registered-email.php:
|
755 |
msgid "The email subject you want to customize."
|
756 |
msgstr ""
|
757 |
|
758 |
-
#: includes/admin/settings/emails/class-ur-settings-admin-email.php:
|
759 |
-
#: includes/class-ur-emailer.php:
|
760 |
msgid "A New User Registered"
|
761 |
msgstr ""
|
762 |
|
763 |
-
#: includes/admin/settings/emails/class-ur-settings-admin-email.php:
|
764 |
-
#: includes/admin/settings/emails/class-ur-settings-awaiting-admin-approval-email.php:
|
765 |
#: includes/admin/settings/emails/class-ur-settings-email-confirmation.php:57
|
766 |
-
#: includes/admin/settings/emails/class-ur-settings-registration-approved-email.php:
|
767 |
-
#: includes/admin/settings/emails/class-ur-settings-registration-denied-email.php:
|
768 |
-
#: includes/admin/settings/emails/class-ur-settings-registration-pending-email.php:
|
769 |
-
#: includes/admin/settings/emails/class-ur-settings-reset-password-email.php:
|
770 |
-
#: includes/admin/settings/emails/class-ur-settings-successfully-registered-email.php:
|
771 |
msgid "Email Content"
|
772 |
msgstr ""
|
773 |
|
774 |
-
#: includes/admin/settings/emails/class-ur-settings-admin-email.php:
|
775 |
-
#: includes/admin/settings/emails/class-ur-settings-awaiting-admin-approval-email.php:
|
776 |
#: includes/admin/settings/emails/class-ur-settings-email-confirmation.php:58
|
777 |
-
#: includes/admin/settings/emails/class-ur-settings-registration-approved-email.php:
|
778 |
-
#: includes/admin/settings/emails/class-ur-settings-registration-denied-email.php:
|
779 |
-
#: includes/admin/settings/emails/class-ur-settings-registration-pending-email.php:
|
780 |
-
#: includes/admin/settings/emails/class-ur-settings-reset-password-email.php:
|
781 |
-
#: includes/admin/settings/emails/class-ur-settings-successfully-registered-email.php:
|
782 |
msgid "The email content you want to customize."
|
783 |
msgstr ""
|
784 |
|
785 |
-
#: includes/admin/settings/emails/class-ur-settings-admin-email.php:
|
786 |
msgid ""
|
787 |
"Hi Admin,\r\n"
|
788 |
-
"\
|
789 |
-
"\t\t\
|
790 |
-
"
|
791 |
-
"\
|
792 |
-
"\t
|
793 |
-
"
|
794 |
-
"
|
795 |
-
"\t
|
796 |
-
"\t <br/>\r\n"
|
797 |
-
"\t\t\t\t\t\tThank You!"
|
798 |
msgstr ""
|
799 |
|
800 |
#: includes/admin/settings/emails/class-ur-settings-awaiting-admin-approval-email.php:25
|
@@ -809,31 +807,28 @@ msgstr ""
|
|
809 |
msgid "Awaiting Admin Approval Email"
|
810 |
msgstr ""
|
811 |
|
812 |
-
#: includes/admin/settings/emails/class-ur-settings-awaiting-admin-approval-email.php:
|
813 |
msgid ""
|
814 |
"Enable this email sent to user notifying the registration is awaiting admin "
|
815 |
"approval."
|
816 |
msgstr ""
|
817 |
|
818 |
-
#: includes/admin/settings/emails/class-ur-settings-awaiting-admin-approval-email.php:
|
819 |
-
#: includes/class-ur-emailer.php:
|
820 |
msgid "Thank you for registration on {{blog_info}}"
|
821 |
msgstr ""
|
822 |
|
823 |
-
#: includes/admin/settings/emails/class-ur-settings-awaiting-admin-approval-email.php:
|
824 |
msgid ""
|
825 |
"Hi {{username}},\r\n"
|
826 |
-
"
|
827 |
-
"
|
828 |
-
" \t\t\t\t\tYou have registered on <a "
|
829 |
"href=\"{{home_url}}\">{{blog_info}}</a>.\r\n"
|
830 |
-
" \t\t\t\t\
|
831 |
-
" \t\t\t\
|
832 |
-
"
|
833 |
-
"
|
834 |
-
" \t\t\t\
|
835 |
-
" \t\t\t\t\t<br/>\r\n"
|
836 |
-
" \t\t\t\t\tThank You!"
|
837 |
msgstr ""
|
838 |
|
839 |
#: includes/admin/settings/emails/class-ur-settings-email-confirmation.php:24
|
@@ -848,25 +843,22 @@ msgid ""
|
|
848 |
msgstr ""
|
849 |
|
850 |
#: includes/admin/settings/emails/class-ur-settings-email-confirmation.php:51
|
851 |
-
#: includes/class-ur-emailer.php:
|
852 |
msgid "Please confirm your registration on {{blog_info}}"
|
853 |
msgstr ""
|
854 |
|
855 |
#: includes/admin/settings/emails/class-ur-settings-email-confirmation.php:79
|
856 |
msgid ""
|
857 |
"Hi {{username}},\r\n"
|
858 |
-
"
|
859 |
-
"
|
860 |
-
" \t\t\t\t\tYou have registered on <a "
|
861 |
"href=\"{{home_url}}\">{{blog_info}}</a>.\r\n"
|
862 |
-
"
|
863 |
-
"
|
864 |
-
" \t\t\t\t\tPlease click on this verification link "
|
865 |
"{{home_url}}/wp-login.php?ur_token={{email_token}} to confirm "
|
866 |
"registration.\r\n"
|
867 |
-
"
|
868 |
-
"
|
869 |
-
" \t\t\t\t\tThank You!"
|
870 |
msgstr ""
|
871 |
|
872 |
#: includes/admin/settings/emails/class-ur-settings-registration-approved-email.php:25
|
@@ -878,31 +870,29 @@ msgstr ""
|
|
878 |
msgid "Email sent to the user notifying the registration is approved by site admin"
|
879 |
msgstr ""
|
880 |
|
881 |
-
#: includes/admin/settings/emails/class-ur-settings-registration-approved-email.php:
|
882 |
-
#: includes/admin/settings/emails/class-ur-settings-registration-denied-email.php:
|
883 |
-
#: includes/admin/settings/emails/class-ur-settings-registration-pending-email.php:
|
884 |
msgid "Enable this email sent to admin after successfull user registration."
|
885 |
msgstr ""
|
886 |
|
887 |
-
#: includes/admin/settings/emails/class-ur-settings-registration-approved-email.php:
|
888 |
-
#: includes/class-ur-emailer.php:
|
889 |
msgid "Congratulations! Registration approved on {{blog_info}}"
|
890 |
msgstr ""
|
891 |
|
892 |
-
#: includes/admin/settings/emails/class-ur-settings-registration-approved-email.php:
|
893 |
msgid ""
|
894 |
"Hi {{username}},\r\n"
|
895 |
-
"
|
896 |
-
"
|
897 |
-
" \t\t\t\t\tYour registration on <a href=\"{{home_url}}\">{{blog_info}}</a> "
|
898 |
"has been approved.\r\n"
|
899 |
-
"
|
900 |
-
"
|
901 |
-
"
|
902 |
"href=\"{{home_url}}\">{{blog_info}}</a>.\r\n"
|
903 |
-
"
|
904 |
-
"
|
905 |
-
" Thank You!"
|
906 |
msgstr ""
|
907 |
|
908 |
#: includes/admin/settings/emails/class-ur-settings-registration-denied-email.php:25
|
@@ -914,26 +904,22 @@ msgstr ""
|
|
914 |
msgid "Email sent to the user notifying the registration is denied by the admin"
|
915 |
msgstr ""
|
916 |
|
917 |
-
#: includes/admin/settings/emails/class-ur-settings-registration-denied-email.php:
|
918 |
-
#: includes/class-ur-emailer.php:
|
919 |
msgid "Sorry! Registration denied on {{blog_info}}"
|
920 |
msgstr ""
|
921 |
|
922 |
-
#: includes/admin/settings/emails/class-ur-settings-registration-denied-email.php:
|
923 |
msgid ""
|
924 |
"Hi {{username}},\r\n"
|
925 |
-
"
|
926 |
-
"
|
927 |
-
" \t\t\t\t\tYou have registered on <a "
|
928 |
"href=\"{{home_url}}\">{{blog_info}}</a>.\r\n"
|
929 |
-
" \t\t\t\t\
|
930 |
-
" \t\t\t\
|
931 |
-
"
|
932 |
-
"
|
933 |
-
" \t\t\t\
|
934 |
-
" \t\t\t\t\t<br/>\r\n"
|
935 |
-
" \t\t\t\t\t<br/>\r\n"
|
936 |
-
" \t\t\t\t\tThank You!"
|
937 |
msgstr ""
|
938 |
|
939 |
#: includes/admin/settings/emails/class-ur-settings-registration-pending-email.php:24
|
@@ -945,26 +931,23 @@ msgstr ""
|
|
945 |
msgid "Email sent to the user notifying the registration is pending"
|
946 |
msgstr ""
|
947 |
|
948 |
-
#: includes/admin/settings/emails/class-ur-settings-registration-pending-email.php:
|
949 |
-
#: includes/class-ur-emailer.php:
|
950 |
msgid "Sorry! Registration changed to pending on {{blog_info}}"
|
951 |
msgstr ""
|
952 |
|
953 |
-
#: includes/admin/settings/emails/class-ur-settings-registration-pending-email.php:
|
954 |
msgid ""
|
955 |
"Hi {{username}},\r\n"
|
956 |
-
"\
|
957 |
-
"
|
958 |
-
"
|
959 |
-
"
|
960 |
-
"\t\t\
|
961 |
-
"\
|
962 |
-
"\t\t\
|
963 |
-
"
|
964 |
-
"\t\t\
|
965 |
-
"\t\t\t\t\t<br/>\r\n"
|
966 |
-
"\t\t\t\t\t<br/>\r\n"
|
967 |
-
"\t\t\t\t\tThank You!"
|
968 |
msgstr ""
|
969 |
|
970 |
#: includes/admin/settings/emails/class-ur-settings-reset-password-email.php:23
|
@@ -976,26 +959,29 @@ msgstr ""
|
|
976 |
msgid "Email sent to the user when a user requests for reset password"
|
977 |
msgstr ""
|
978 |
|
979 |
-
#: includes/admin/settings/emails/class-ur-settings-reset-password-email.php:
|
980 |
msgid "Enable this email sent to the user when a user requests for reset password."
|
981 |
msgstr ""
|
982 |
|
983 |
-
#: includes/admin/settings/emails/class-ur-settings-reset-password-email.php:
|
984 |
-
#: includes/class-ur-emailer.php:
|
985 |
msgid "Password Reset Email: {{blog_info}}"
|
986 |
msgstr ""
|
987 |
|
988 |
-
#: includes/admin/settings/emails/class-ur-settings-reset-password-email.php:
|
989 |
msgid ""
|
990 |
"Someone has requested a password reset for the following account:\r\n"
|
991 |
-
"
|
992 |
-
"{{
|
993 |
-
"
|
994 |
-
"
|
995 |
-
"
|
996 |
-
"
|
997 |
-
"
|
998 |
-
"
|
|
|
|
|
|
|
999 |
msgstr ""
|
1000 |
|
1001 |
#: includes/admin/settings/emails/class-ur-settings-successfully-registered-email.php:25
|
@@ -1007,29 +993,27 @@ msgstr ""
|
|
1007 |
msgid "Email sent to the user after successful registration"
|
1008 |
msgstr ""
|
1009 |
|
1010 |
-
#: includes/admin/settings/emails/class-ur-settings-successfully-registered-email.php:
|
1011 |
msgid "Enable this email sent after successful user registration."
|
1012 |
msgstr ""
|
1013 |
|
1014 |
-
#: includes/admin/settings/emails/class-ur-settings-successfully-registered-email.php:
|
1015 |
-
#: includes/class-ur-emailer.php:
|
1016 |
msgid "Congratulations! Registration Complete on {{blog_info}}"
|
1017 |
msgstr ""
|
1018 |
|
1019 |
-
#: includes/admin/settings/emails/class-ur-settings-successfully-registered-email.php:
|
1020 |
msgid ""
|
1021 |
"Hi {{username}},\r\n"
|
1022 |
-
"\
|
1023 |
-
"
|
1024 |
-
"\t\t\t\t\tYou have successfully completed user registration on <a "
|
1025 |
"href=\"{{home_url}}\">{{blog_info}}</a>.\r\n"
|
1026 |
-
"\
|
1027 |
-
"\t\t\
|
1028 |
-
"
|
1029 |
"href=\"{{home_url}}\">{{blog_info}}</a>.\r\n"
|
1030 |
-
"
|
1031 |
-
"
|
1032 |
-
" Thank You!"
|
1033 |
msgstr ""
|
1034 |
|
1035 |
#: includes/admin/updater/class-ur-addon-updater.php:210
|
@@ -1194,72 +1178,82 @@ msgstr ""
|
|
1194 |
msgid "Taking a while? Click here to run it now."
|
1195 |
msgstr ""
|
1196 |
|
1197 |
-
#: includes/class-ur-ajax.php:
|
1198 |
msgid "Nonce error, please reload."
|
1199 |
msgstr ""
|
1200 |
|
1201 |
-
#: includes/class-ur-ajax.php:
|
1202 |
msgid "Only an administrator can add new users."
|
1203 |
msgstr ""
|
1204 |
|
1205 |
-
#: includes/class-ur-ajax.php:
|
1206 |
msgid "You are currently logged in as %1s. You don't need another account. %2s"
|
1207 |
msgstr ""
|
1208 |
|
1209 |
-
#: includes/class-ur-ajax.php:
|
1210 |
msgid "Log out of this account."
|
1211 |
msgstr ""
|
1212 |
|
1213 |
-
#: includes/class-ur-ajax.php:
|
1214 |
-
#: includes/functions-ur-account.php:
|
1215 |
msgid "Logout"
|
1216 |
msgstr ""
|
1217 |
|
1218 |
-
#: includes/class-ur-ajax.php:
|
1219 |
msgid "post data not set"
|
1220 |
msgstr ""
|
1221 |
|
1222 |
-
#: includes/class-ur-ajax.php:
|
1223 |
msgid "Could not save form. Invalid field name. Please check all field name"
|
1224 |
msgstr ""
|
1225 |
|
1226 |
-
#: includes/class-ur-email-confirmation.php:
|
1227 |
msgid "Verified"
|
1228 |
msgstr ""
|
1229 |
|
1230 |
-
#: includes/class-ur-email-confirmation.php:
|
1231 |
msgid "Pending"
|
1232 |
msgstr ""
|
1233 |
|
1234 |
-
#: includes/class-ur-email-confirmation.php:
|
1235 |
msgid "User successfully registered. Login to continue."
|
1236 |
msgstr ""
|
1237 |
|
1238 |
-
#: includes/class-ur-email-confirmation.php:
|
1239 |
msgid "Token Mismatch!"
|
1240 |
msgstr ""
|
1241 |
|
1242 |
-
#: includes/class-ur-email-confirmation.php:
|
1243 |
msgid "Verification Email Sent!"
|
1244 |
msgstr ""
|
1245 |
|
1246 |
-
#: includes/class-ur-email-confirmation.php:
|
1247 |
msgid "User doesnot exist!"
|
1248 |
msgstr ""
|
1249 |
|
1250 |
-
#: includes/class-ur-email-confirmation.php:
|
1251 |
#: includes/class-ur-user-approval.php:183
|
1252 |
#: includes/class-ur-user-approval.php:188
|
1253 |
msgid "ERROR:"
|
1254 |
msgstr ""
|
1255 |
|
1256 |
-
#: includes/class-ur-email-confirmation.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1257 |
msgid ""
|
1258 |
"Email not verified! Verifiy your email by clicking on the link sent to your "
|
1259 |
"email."
|
1260 |
msgstr ""
|
1261 |
|
1262 |
-
#: includes/class-ur-emailer.php:
|
1263 |
msgid "Chosen Password"
|
1264 |
msgstr ""
|
1265 |
|
@@ -1344,31 +1338,31 @@ msgstr ""
|
|
1344 |
msgid "Passwords do not match."
|
1345 |
msgstr ""
|
1346 |
|
1347 |
-
#: includes/class-ur-frontend-scripts.php:
|
1348 |
msgid "Confirm password"
|
1349 |
msgstr ""
|
1350 |
|
1351 |
-
#: includes/class-ur-frontend-scripts.php:
|
1352 |
msgid "Too short password"
|
1353 |
msgstr ""
|
1354 |
|
1355 |
-
#: includes/class-ur-frontend-scripts.php:
|
1356 |
msgid "Bad password"
|
1357 |
msgstr ""
|
1358 |
|
1359 |
-
#: includes/class-ur-frontend-scripts.php:
|
1360 |
msgid "Good password"
|
1361 |
msgstr ""
|
1362 |
|
1363 |
-
#: includes/class-ur-frontend-scripts.php:
|
1364 |
msgid "Strong password"
|
1365 |
msgstr ""
|
1366 |
|
1367 |
-
#: includes/class-ur-frontend-scripts.php:
|
1368 |
msgid "Password with confirm password not matched."
|
1369 |
msgstr ""
|
1370 |
|
1371 |
-
#: includes/class-ur-frontend-scripts.php:
|
1372 |
msgid ""
|
1373 |
"Hint: The password should be at least seven characters long. To make it "
|
1374 |
"stronger, use upper and lower case letters, numbers and symbols such as ! * "
|
@@ -1516,11 +1510,11 @@ msgstr ""
|
|
1516 |
msgid "Parent registration"
|
1517 |
msgstr ""
|
1518 |
|
1519 |
-
#: includes/class-ur-query.php:73 includes/functions-ur-account.php:
|
1520 |
msgid "Account details"
|
1521 |
msgstr ""
|
1522 |
|
1523 |
-
#: includes/class-ur-query.php:76 includes/functions-ur-account.php:
|
1524 |
msgid "Profile Details"
|
1525 |
msgstr ""
|
1526 |
|
@@ -2736,99 +2730,107 @@ msgstr ""
|
|
2736 |
msgid "Password and confirm password not matched"
|
2737 |
msgstr ""
|
2738 |
|
2739 |
-
#: includes/functions-ur-account.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2740 |
msgid "Dashboard"
|
2741 |
msgstr ""
|
2742 |
|
2743 |
-
#: includes/functions-ur-core.php:
|
2744 |
msgid "Label"
|
2745 |
msgstr ""
|
2746 |
|
2747 |
-
#: includes/functions-ur-core.php:
|
2748 |
msgid "Description"
|
2749 |
msgstr ""
|
2750 |
|
2751 |
-
#: includes/functions-ur-core.php:
|
2752 |
msgid "Field Name"
|
2753 |
msgstr ""
|
2754 |
|
2755 |
-
#: includes/functions-ur-core.php:
|
2756 |
msgid "Placeholder"
|
2757 |
msgstr ""
|
2758 |
|
2759 |
-
#: includes/functions-ur-core.php:
|
2760 |
-
#: includes/functions-ur-core.php:
|
2761 |
msgid "No"
|
2762 |
msgstr ""
|
2763 |
|
2764 |
-
#: includes/functions-ur-core.php:
|
2765 |
-
#: includes/functions-ur-core.php:
|
2766 |
msgid "Yes"
|
2767 |
msgstr ""
|
2768 |
|
2769 |
-
#: includes/functions-ur-core.php:
|
2770 |
msgid "Hide Label"
|
2771 |
msgstr ""
|
2772 |
|
2773 |
-
#: includes/functions-ur-core.php:
|
2774 |
msgid "Default user role"
|
2775 |
msgstr ""
|
2776 |
|
2777 |
-
#: includes/functions-ur-core.php:
|
2778 |
msgid "Enable strong password"
|
2779 |
msgstr ""
|
2780 |
|
2781 |
-
#: includes/functions-ur-core.php:
|
2782 |
msgid "Form submit button label"
|
2783 |
msgstr ""
|
2784 |
|
2785 |
-
#: includes/functions-ur-core.php:
|
2786 |
msgid "Enable %1$s %2$s reCaptcha %3$s support"
|
2787 |
msgstr ""
|
2788 |
|
2789 |
-
#: includes/functions-ur-core.php:
|
2790 |
msgid "Template"
|
2791 |
msgstr ""
|
2792 |
|
2793 |
-
#: includes/functions-ur-core.php:
|
2794 |
msgid "Default"
|
2795 |
msgstr ""
|
2796 |
|
2797 |
-
#: includes/functions-ur-core.php:
|
2798 |
msgid "Bordered"
|
2799 |
msgstr ""
|
2800 |
|
2801 |
-
#: includes/functions-ur-core.php:
|
2802 |
msgid "Flat"
|
2803 |
msgstr ""
|
2804 |
|
2805 |
-
#: includes/functions-ur-core.php:
|
2806 |
msgid "Rounded"
|
2807 |
msgstr ""
|
2808 |
|
2809 |
-
#: includes/functions-ur-core.php:
|
2810 |
msgid "Rounded Edge"
|
2811 |
msgstr ""
|
2812 |
|
2813 |
-
#: includes/functions-ur-core.php:
|
2814 |
msgid "Custom CSS class"
|
2815 |
msgstr ""
|
2816 |
|
2817 |
-
#: includes/functions-ur-core.php:
|
2818 |
msgid "Auto login after registration"
|
2819 |
msgstr ""
|
2820 |
|
2821 |
-
#: includes/functions-ur-core.php:
|
2822 |
msgid ""
|
2823 |
"The class <code>%s</code> provided by user_registration_logging_class "
|
2824 |
"filter must implement <code>UR_Logger_Interface</code>."
|
2825 |
msgstr ""
|
2826 |
|
2827 |
-
#: includes/functions-ur-core.php:
|
2828 |
msgid "Disable emails"
|
2829 |
msgstr ""
|
2830 |
|
2831 |
-
#: includes/functions-ur-core.php:
|
2832 |
msgid "Disable all emails sent after registration."
|
2833 |
msgstr ""
|
2834 |
|
@@ -2839,11 +2841,11 @@ msgstr ""
|
|
2839 |
msgid "This function should not be called before user_registration_init."
|
2840 |
msgstr ""
|
2841 |
|
2842 |
-
#: includes/functions-ur-template.php:
|
2843 |
msgid "required"
|
2844 |
msgstr ""
|
2845 |
|
2846 |
-
#: includes/functions-ur-template.php:
|
2847 |
msgid "Choose an option"
|
2848 |
msgstr ""
|
2849 |
|
@@ -2859,28 +2861,28 @@ msgstr ""
|
|
2859 |
msgid "You are already logged in. <a href=\"%s\">Log out?</a>"
|
2860 |
msgstr ""
|
2861 |
|
2862 |
-
#: includes/shortcodes/class-ur-shortcode-my-account.php:
|
2863 |
msgid "Your password has been reset successfully."
|
2864 |
msgstr ""
|
2865 |
|
2866 |
-
#: includes/shortcodes/class-ur-shortcode-my-account.php:
|
2867 |
msgid "Are you sure you want to log out? <a href=\"%s\">Confirm and log out</a>"
|
2868 |
msgstr ""
|
2869 |
|
2870 |
-
#: includes/shortcodes/class-ur-shortcode-my-account.php:
|
2871 |
msgid "Enter a username or email address."
|
2872 |
msgstr ""
|
2873 |
|
2874 |
-
#: includes/shortcodes/class-ur-shortcode-my-account.php:
|
2875 |
-
#: includes/shortcodes/class-ur-shortcode-my-account.php:
|
2876 |
msgid "Invalid username or email."
|
2877 |
msgstr ""
|
2878 |
|
2879 |
-
#: includes/shortcodes/class-ur-shortcode-my-account.php:
|
2880 |
msgid "Password reset is not allowed for this user"
|
2881 |
msgstr ""
|
2882 |
|
2883 |
-
#: includes/shortcodes/class-ur-shortcode-my-account.php:
|
2884 |
msgid "The email could not be sent. Contact your site administrator. "
|
2885 |
msgstr ""
|
2886 |
|
@@ -2913,7 +2915,7 @@ msgid "Confirm new password"
|
|
2913 |
msgstr ""
|
2914 |
|
2915 |
#: templates/myaccount/form-edit-account.php:68
|
2916 |
-
#: templates/myaccount/form-edit-profile.php:
|
2917 |
msgid "Save changes"
|
2918 |
msgstr ""
|
2919 |
|
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.4.0\n"
|
6 |
"Report-Msgid-Bugs-To: wpeverest@gmail.com\n"
|
7 |
+
"POT-Creation-Date: 2018-06-20 04:14:57+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
13 |
"Language-Team: LANGUAGE <EMAIL@ADDRESS>\n"
|
14 |
"X-Generator: grunt-wp-i18n1.0.1\n"
|
15 |
|
16 |
+
#: includes/abstracts/abstract-ur-form-field.php:286
|
17 |
msgid "General Settings"
|
18 |
msgstr ""
|
19 |
|
20 |
+
#: includes/abstracts/abstract-ur-form-field.php:294
|
21 |
msgid "Advance Settings"
|
22 |
msgstr ""
|
23 |
|
100 |
|
101 |
#: includes/admin/class-ur-admin-menus.php:313
|
102 |
#: includes/admin/class-ur-admin-user-list-manager.php:180
|
103 |
+
#: includes/class-ur-email-confirmation.php:67
|
104 |
msgid "Status"
|
105 |
msgstr ""
|
106 |
|
156 |
msgid "Cheatin’ huh?"
|
157 |
msgstr ""
|
158 |
|
159 |
+
#: includes/admin/class-ur-admin-profile.php:52
|
160 |
msgid "User Extra Information %s"
|
161 |
msgstr ""
|
162 |
|
|
|
163 |
#: includes/admin/class-ur-admin-profile.php:130
|
164 |
+
#: includes/admin/class-ur-admin-profile.php:141
|
165 |
#: includes/form/class-ur-form-field-select.php:44
|
166 |
#: includes/form/class-ur-form-field-select.php:51
|
167 |
msgid "Select"
|
370 |
msgid "WordPress User Extra Information"
|
371 |
msgstr ""
|
372 |
|
373 |
+
#: includes/admin/settings/class-ur-settings-email.php:36
|
374 |
msgid "Emails"
|
375 |
msgstr ""
|
376 |
|
377 |
+
#: includes/admin/settings/class-ur-settings-email.php:69
|
378 |
msgid "General Email Settings"
|
379 |
msgstr ""
|
380 |
|
381 |
+
#: includes/admin/settings/class-ur-settings-email.php:83
|
382 |
msgid "Email notifications"
|
383 |
msgstr ""
|
384 |
|
388 |
"an email to configure it."
|
389 |
msgstr ""
|
390 |
|
391 |
+
#: includes/admin/settings/class-ur-settings-email.php:96
|
392 |
msgid "Email Sender Options"
|
393 |
msgstr ""
|
394 |
|
395 |
+
#: includes/admin/settings/class-ur-settings-email.php:103
|
396 |
msgid "\"From\" name"
|
397 |
msgstr ""
|
398 |
|
399 |
+
#: includes/admin/settings/class-ur-settings-email.php:104
|
400 |
msgid "How the sender name appears in outgoing user registration emails."
|
401 |
msgstr ""
|
402 |
|
403 |
+
#: includes/admin/settings/class-ur-settings-email.php:114
|
404 |
msgid "\"From\" address"
|
405 |
msgstr ""
|
406 |
|
407 |
+
#: includes/admin/settings/class-ur-settings-email.php:115
|
408 |
msgid "How the sender email appears in outgoing user registration emails."
|
409 |
msgstr ""
|
410 |
|
411 |
+
#: includes/admin/settings/class-ur-settings-email.php:149
|
412 |
#: includes/admin/settings/class-ur-settings-general.php:255
|
413 |
msgid "Email"
|
414 |
msgstr ""
|
415 |
|
416 |
+
#: includes/admin/settings/class-ur-settings-email.php:150
|
417 |
+
#: includes/admin/settings/class-ur-settings-email.php:168
|
418 |
msgid "Configure"
|
419 |
msgstr ""
|
420 |
|
421 |
+
#: includes/admin/settings/class-ur-settings-email.php:219
|
422 |
msgid "Smart Tags Used"
|
423 |
msgstr ""
|
424 |
|
536 |
msgstr ""
|
537 |
|
538 |
#: includes/admin/settings/class-ur-settings-general.php:203
|
539 |
+
#: includes/functions-ur-core.php:755
|
540 |
msgid "Manual login after registration"
|
541 |
msgstr ""
|
542 |
|
547 |
msgstr ""
|
548 |
|
549 |
#: includes/admin/settings/class-ur-settings-general.php:209
|
550 |
+
#: includes/class-ur-frontend-scripts.php:312
|
551 |
msgid "User successfully registered."
|
552 |
msgstr ""
|
553 |
|
554 |
#: includes/admin/settings/class-ur-settings-general.php:213
|
555 |
+
#: includes/functions-ur-core.php:756
|
556 |
msgid "Email confirmation to login"
|
557 |
msgstr ""
|
558 |
|
563 |
msgstr ""
|
564 |
|
565 |
#: includes/admin/settings/class-ur-settings-general.php:219
|
566 |
+
#: includes/class-ur-frontend-scripts.php:314
|
567 |
msgid ""
|
568 |
"User registered. Verify your email by clicking on the link sent to your "
|
569 |
"email."
|
570 |
msgstr ""
|
571 |
|
572 |
#: includes/admin/settings/class-ur-settings-general.php:223
|
573 |
+
#: includes/functions-ur-core.php:758
|
574 |
msgid "Admin approval after registration"
|
575 |
msgstr ""
|
576 |
|
581 |
msgstr ""
|
582 |
|
583 |
#: includes/admin/settings/class-ur-settings-general.php:229
|
584 |
+
#: includes/class-ur-frontend-scripts.php:313
|
585 |
msgid "User registered. Wait until admin approves your registration."
|
586 |
msgstr ""
|
587 |
|
590 |
msgstr ""
|
591 |
|
592 |
#: includes/admin/settings/class-ur-settings-general.php:245
|
593 |
+
#: includes/functions-ur-core.php:557
|
594 |
msgid "Required"
|
595 |
msgstr ""
|
596 |
|
599 |
msgstr ""
|
600 |
|
601 |
#: includes/admin/settings/class-ur-settings-general.php:251
|
602 |
+
#: includes/class-ur-frontend-scripts.php:306
|
603 |
msgid "This field is required."
|
604 |
msgstr ""
|
605 |
|
608 |
msgstr ""
|
609 |
|
610 |
#: includes/admin/settings/class-ur-settings-general.php:261
|
611 |
+
#: includes/class-ur-frontend-scripts.php:307
|
612 |
msgid "Please enter a valid email address."
|
613 |
msgstr ""
|
614 |
|
621 |
msgstr ""
|
622 |
|
623 |
#: includes/admin/settings/class-ur-settings-general.php:271
|
624 |
+
#: includes/class-ur-frontend-scripts.php:308
|
625 |
msgid "Please enter a valid URL."
|
626 |
msgstr ""
|
627 |
|
636 |
msgstr ""
|
637 |
|
638 |
#: includes/admin/settings/class-ur-settings-general.php:281
|
639 |
+
#: includes/class-ur-frontend-scripts.php:309
|
640 |
msgid "Please enter a valid number."
|
641 |
msgstr ""
|
642 |
|
650 |
msgstr ""
|
651 |
|
652 |
#: includes/admin/settings/class-ur-settings-general.php:291
|
653 |
+
#: includes/class-ur-frontend-scripts.php:310
|
654 |
msgid "Password and confirm password not matched."
|
655 |
msgstr ""
|
656 |
|
663 |
msgstr ""
|
664 |
|
665 |
#: includes/admin/settings/class-ur-settings-general.php:301
|
666 |
+
#: includes/class-ur-frontend-scripts.php:315
|
667 |
msgid "Captcha code error, please try again."
|
668 |
msgstr ""
|
669 |
|
670 |
+
#: includes/admin/settings/class-ur-settings-integration.php:29
|
671 |
msgid "Integration"
|
672 |
msgstr ""
|
673 |
|
674 |
+
#: includes/admin/settings/class-ur-settings-integration.php:46
|
675 |
msgid "Google reCaptcha Integation"
|
676 |
msgstr ""
|
677 |
|
678 |
+
#: includes/admin/settings/class-ur-settings-integration.php:52
|
679 |
msgid "Site Key"
|
680 |
msgstr ""
|
681 |
|
682 |
+
#: includes/admin/settings/class-ur-settings-integration.php:53
|
683 |
msgid "Get site key from google %1$s reCaptcha %2$s."
|
684 |
msgstr ""
|
685 |
|
686 |
+
#: includes/admin/settings/class-ur-settings-integration.php:62
|
687 |
msgid "Secret Key"
|
688 |
msgstr ""
|
689 |
|
690 |
+
#: includes/admin/settings/class-ur-settings-integration.php:63
|
691 |
msgid "Get secret key from google %1$s reCaptcha %2$s."
|
692 |
msgstr ""
|
693 |
|
711 |
msgid "Return to emails"
|
712 |
msgstr ""
|
713 |
|
714 |
+
#: includes/admin/settings/emails/class-ur-settings-admin-email.php:46
|
715 |
+
#: includes/admin/settings/emails/class-ur-settings-awaiting-admin-approval-email.php:47
|
716 |
+
#: includes/admin/settings/emails/class-ur-settings-registration-approved-email.php:47
|
717 |
+
#: includes/admin/settings/emails/class-ur-settings-registration-denied-email.php:47
|
718 |
+
#: includes/admin/settings/emails/class-ur-settings-registration-pending-email.php:46
|
719 |
+
#: includes/admin/settings/emails/class-ur-settings-reset-password-email.php:45
|
720 |
+
#: includes/admin/settings/emails/class-ur-settings-successfully-registered-email.php:47
|
721 |
msgid "Enable this email"
|
722 |
msgstr ""
|
723 |
|
724 |
+
#: includes/admin/settings/emails/class-ur-settings-admin-email.php:47
|
725 |
msgid "Enable this email sent to admin after successful user registration."
|
726 |
msgstr ""
|
727 |
|
728 |
+
#: includes/admin/settings/emails/class-ur-settings-admin-email.php:54
|
729 |
msgid "Email Receipents"
|
730 |
msgstr ""
|
731 |
|
732 |
+
#: includes/admin/settings/emails/class-ur-settings-admin-email.php:55
|
733 |
msgid "Use comma to send emails to multiple receipents."
|
734 |
msgstr ""
|
735 |
|
736 |
+
#: includes/admin/settings/emails/class-ur-settings-admin-email.php:64
|
737 |
+
#: includes/admin/settings/emails/class-ur-settings-awaiting-admin-approval-email.php:55
|
738 |
#: includes/admin/settings/emails/class-ur-settings-email-confirmation.php:47
|
739 |
+
#: includes/admin/settings/emails/class-ur-settings-registration-approved-email.php:55
|
740 |
+
#: includes/admin/settings/emails/class-ur-settings-registration-denied-email.php:55
|
741 |
+
#: includes/admin/settings/emails/class-ur-settings-registration-pending-email.php:55
|
742 |
+
#: includes/admin/settings/emails/class-ur-settings-reset-password-email.php:53
|
743 |
+
#: includes/admin/settings/emails/class-ur-settings-successfully-registered-email.php:55
|
744 |
msgid "Email Subject"
|
745 |
msgstr ""
|
746 |
|
747 |
+
#: includes/admin/settings/emails/class-ur-settings-admin-email.php:65
|
748 |
+
#: includes/admin/settings/emails/class-ur-settings-awaiting-admin-approval-email.php:56
|
749 |
#: includes/admin/settings/emails/class-ur-settings-email-confirmation.php:48
|
750 |
+
#: includes/admin/settings/emails/class-ur-settings-registration-approved-email.php:56
|
751 |
+
#: includes/admin/settings/emails/class-ur-settings-registration-denied-email.php:56
|
752 |
+
#: includes/admin/settings/emails/class-ur-settings-registration-pending-email.php:56
|
753 |
+
#: includes/admin/settings/emails/class-ur-settings-reset-password-email.php:54
|
754 |
+
#: includes/admin/settings/emails/class-ur-settings-successfully-registered-email.php:56
|
755 |
msgid "The email subject you want to customize."
|
756 |
msgstr ""
|
757 |
|
758 |
+
#: includes/admin/settings/emails/class-ur-settings-admin-email.php:68
|
759 |
+
#: includes/class-ur-emailer.php:217
|
760 |
msgid "A New User Registered"
|
761 |
msgstr ""
|
762 |
|
763 |
+
#: includes/admin/settings/emails/class-ur-settings-admin-email.php:73
|
764 |
+
#: includes/admin/settings/emails/class-ur-settings-awaiting-admin-approval-email.php:64
|
765 |
#: includes/admin/settings/emails/class-ur-settings-email-confirmation.php:57
|
766 |
+
#: includes/admin/settings/emails/class-ur-settings-registration-approved-email.php:64
|
767 |
+
#: includes/admin/settings/emails/class-ur-settings-registration-denied-email.php:64
|
768 |
+
#: includes/admin/settings/emails/class-ur-settings-registration-pending-email.php:65
|
769 |
+
#: includes/admin/settings/emails/class-ur-settings-reset-password-email.php:62
|
770 |
+
#: includes/admin/settings/emails/class-ur-settings-successfully-registered-email.php:64
|
771 |
msgid "Email Content"
|
772 |
msgstr ""
|
773 |
|
774 |
+
#: includes/admin/settings/emails/class-ur-settings-admin-email.php:74
|
775 |
+
#: includes/admin/settings/emails/class-ur-settings-awaiting-admin-approval-email.php:65
|
776 |
#: includes/admin/settings/emails/class-ur-settings-email-confirmation.php:58
|
777 |
+
#: includes/admin/settings/emails/class-ur-settings-registration-approved-email.php:65
|
778 |
+
#: includes/admin/settings/emails/class-ur-settings-registration-denied-email.php:65
|
779 |
+
#: includes/admin/settings/emails/class-ur-settings-registration-pending-email.php:66
|
780 |
+
#: includes/admin/settings/emails/class-ur-settings-reset-password-email.php:63
|
781 |
+
#: includes/admin/settings/emails/class-ur-settings-successfully-registered-email.php:65
|
782 |
msgid "The email content you want to customize."
|
783 |
msgstr ""
|
784 |
|
785 |
+
#: includes/admin/settings/emails/class-ur-settings-admin-email.php:92
|
786 |
msgid ""
|
787 |
"Hi Admin,\r\n"
|
788 |
+
"\r\n"
|
789 |
+
"\t\t\tA new user {{username}} - {{email}} has successfully registered to "
|
790 |
+
"your site <a href=\"{{home_url}}\">{{blog_info}}</a>.\r\n"
|
791 |
+
"\r\n"
|
792 |
+
"\t\t\tPlease review the user role and details at '<b>Users</b>' menu in "
|
793 |
+
"your WP dashboard.\r\n"
|
794 |
+
"\r\n"
|
795 |
+
"\t\t\tThank You!"
|
|
|
|
|
796 |
msgstr ""
|
797 |
|
798 |
#: includes/admin/settings/emails/class-ur-settings-awaiting-admin-approval-email.php:25
|
807 |
msgid "Awaiting Admin Approval Email"
|
808 |
msgstr ""
|
809 |
|
810 |
+
#: includes/admin/settings/emails/class-ur-settings-awaiting-admin-approval-email.php:48
|
811 |
msgid ""
|
812 |
"Enable this email sent to user notifying the registration is awaiting admin "
|
813 |
"approval."
|
814 |
msgstr ""
|
815 |
|
816 |
+
#: includes/admin/settings/emails/class-ur-settings-awaiting-admin-approval-email.php:59
|
817 |
+
#: includes/class-ur-emailer.php:161
|
818 |
msgid "Thank you for registration on {{blog_info}}"
|
819 |
msgstr ""
|
820 |
|
821 |
+
#: includes/admin/settings/emails/class-ur-settings-awaiting-admin-approval-email.php:85
|
822 |
msgid ""
|
823 |
"Hi {{username}},\r\n"
|
824 |
+
"\r\n"
|
825 |
+
" \t\t\t\tYou have registered on <a "
|
|
|
826 |
"href=\"{{home_url}}\">{{blog_info}}</a>.\r\n"
|
827 |
+
" \t\t\t\t \r\n"
|
828 |
+
" \t\t\t\tPlease wait until the site admin approves your registration. You "
|
829 |
+
"will be notified after it is approved.\r\n"
|
830 |
+
"\r\n"
|
831 |
+
" \t\t\t\tThank You!"
|
|
|
|
|
832 |
msgstr ""
|
833 |
|
834 |
#: includes/admin/settings/emails/class-ur-settings-email-confirmation.php:24
|
843 |
msgstr ""
|
844 |
|
845 |
#: includes/admin/settings/emails/class-ur-settings-email-confirmation.php:51
|
846 |
+
#: includes/class-ur-emailer.php:148
|
847 |
msgid "Please confirm your registration on {{blog_info}}"
|
848 |
msgstr ""
|
849 |
|
850 |
#: includes/admin/settings/emails/class-ur-settings-email-confirmation.php:79
|
851 |
msgid ""
|
852 |
"Hi {{username}},\r\n"
|
853 |
+
"\r\n"
|
854 |
+
" \t\t\t\tYou have registered on <a "
|
|
|
855 |
"href=\"{{home_url}}\">{{blog_info}}</a>.\r\n"
|
856 |
+
"\r\n"
|
857 |
+
" \t\t\t\tPlease click on this verification link "
|
|
|
858 |
"{{home_url}}/wp-login.php?ur_token={{email_token}} to confirm "
|
859 |
"registration.\r\n"
|
860 |
+
"\r\n"
|
861 |
+
" \t\t\t\tThank You!"
|
|
|
862 |
msgstr ""
|
863 |
|
864 |
#: includes/admin/settings/emails/class-ur-settings-registration-approved-email.php:25
|
870 |
msgid "Email sent to the user notifying the registration is approved by site admin"
|
871 |
msgstr ""
|
872 |
|
873 |
+
#: includes/admin/settings/emails/class-ur-settings-registration-approved-email.php:48
|
874 |
+
#: includes/admin/settings/emails/class-ur-settings-registration-denied-email.php:48
|
875 |
+
#: includes/admin/settings/emails/class-ur-settings-registration-pending-email.php:47
|
876 |
msgid "Enable this email sent to admin after successfull user registration."
|
877 |
msgstr ""
|
878 |
|
879 |
+
#: includes/admin/settings/emails/class-ur-settings-registration-approved-email.php:59
|
880 |
+
#: includes/class-ur-emailer.php:282
|
881 |
msgid "Congratulations! Registration approved on {{blog_info}}"
|
882 |
msgstr ""
|
883 |
|
884 |
+
#: includes/admin/settings/emails/class-ur-settings-registration-approved-email.php:85
|
885 |
msgid ""
|
886 |
"Hi {{username}},\r\n"
|
887 |
+
"\r\n"
|
888 |
+
"\t\t\t\tYour registration on <a href=\"{{home_url}}\">{{blog_info}}</a> "
|
|
|
889 |
"has been approved.\r\n"
|
890 |
+
"\r\n"
|
891 |
+
"\t\t\t\tPlease visit '<b>My Account</b>' page to edit your account details "
|
892 |
+
"and create your user profile on <a "
|
893 |
"href=\"{{home_url}}\">{{blog_info}}</a>.\r\n"
|
894 |
+
"\r\n"
|
895 |
+
"\t\t\t\tThank You!"
|
|
|
896 |
msgstr ""
|
897 |
|
898 |
#: includes/admin/settings/emails/class-ur-settings-registration-denied-email.php:25
|
904 |
msgid "Email sent to the user notifying the registration is denied by the admin"
|
905 |
msgstr ""
|
906 |
|
907 |
+
#: includes/admin/settings/emails/class-ur-settings-registration-denied-email.php:59
|
908 |
+
#: includes/class-ur-emailer.php:175 includes/class-ur-emailer.php:269
|
909 |
msgid "Sorry! Registration denied on {{blog_info}}"
|
910 |
msgstr ""
|
911 |
|
912 |
+
#: includes/admin/settings/emails/class-ur-settings-registration-denied-email.php:85
|
913 |
msgid ""
|
914 |
"Hi {{username}},\r\n"
|
915 |
+
"\r\n"
|
916 |
+
"\t\t\t\tYou have registered on <a "
|
|
|
917 |
"href=\"{{home_url}}\">{{blog_info}}</a>.\r\n"
|
918 |
+
" \t\t\t\t\r\n"
|
919 |
+
" \t\t\t\tUnfortunately your registration is denied. Sorry for the "
|
920 |
+
"inconvenience.\r\n"
|
921 |
+
" \t\t\t\t\r\n"
|
922 |
+
" \t\t\t\tThank You!"
|
|
|
|
|
|
|
923 |
msgstr ""
|
924 |
|
925 |
#: includes/admin/settings/emails/class-ur-settings-registration-pending-email.php:24
|
931 |
msgid "Email sent to the user notifying the registration is pending"
|
932 |
msgstr ""
|
933 |
|
934 |
+
#: includes/admin/settings/emails/class-ur-settings-registration-pending-email.php:59
|
935 |
+
#: includes/class-ur-emailer.php:256
|
936 |
msgid "Sorry! Registration changed to pending on {{blog_info}}"
|
937 |
msgstr ""
|
938 |
|
939 |
+
#: includes/admin/settings/emails/class-ur-settings-registration-pending-email.php:87
|
940 |
msgid ""
|
941 |
"Hi {{username}},\r\n"
|
942 |
+
"\r\n"
|
943 |
+
"\t\t\tYour registration on <a href=\"{{home_url}}\">{{blog_info}}</a> has "
|
944 |
+
"been changed to pending.\r\n"
|
945 |
+
"\r\n"
|
946 |
+
"\t\t\tSorry for the inconvenience.\r\n"
|
947 |
+
"\r\n"
|
948 |
+
"\t\t\tYou will be notified after it is approved.\r\n"
|
949 |
+
"\r\n"
|
950 |
+
"\t\t\tThank You!"
|
|
|
|
|
|
|
951 |
msgstr ""
|
952 |
|
953 |
#: includes/admin/settings/emails/class-ur-settings-reset-password-email.php:23
|
959 |
msgid "Email sent to the user when a user requests for reset password"
|
960 |
msgstr ""
|
961 |
|
962 |
+
#: includes/admin/settings/emails/class-ur-settings-reset-password-email.php:46
|
963 |
msgid "Enable this email sent to the user when a user requests for reset password."
|
964 |
msgstr ""
|
965 |
|
966 |
+
#: includes/admin/settings/emails/class-ur-settings-reset-password-email.php:57
|
967 |
+
#: includes/class-ur-emailer.php:311
|
968 |
msgid "Password Reset Email: {{blog_info}}"
|
969 |
msgstr ""
|
970 |
|
971 |
+
#: includes/admin/settings/emails/class-ur-settings-reset-password-email.php:82
|
972 |
msgid ""
|
973 |
"Someone has requested a password reset for the following account:\r\n"
|
974 |
+
"\r\n"
|
975 |
+
"\t\t\tSiteName: {{blog_info}}\r\n"
|
976 |
+
"\t\t\tUsername: {{username}}\r\n"
|
977 |
+
"\t\t\t\r\n"
|
978 |
+
"\t\t\tIf this was a mistake, just ignore this email and nothing will "
|
979 |
+
"happen.\r\n"
|
980 |
+
"\t\t\t\r\n"
|
981 |
+
"\t\t\tTo reset your password, visit the following address:\r\n"
|
982 |
+
"\t\t\t{{home_url}}/wp-login.php?action=rp&key={{key}}&login={{username}}\r\n"
|
983 |
+
"\r\n"
|
984 |
+
"\t\t\tThank You!"
|
985 |
msgstr ""
|
986 |
|
987 |
#: includes/admin/settings/emails/class-ur-settings-successfully-registered-email.php:25
|
993 |
msgid "Email sent to the user after successful registration"
|
994 |
msgstr ""
|
995 |
|
996 |
+
#: includes/admin/settings/emails/class-ur-settings-successfully-registered-email.php:48
|
997 |
msgid "Enable this email sent after successful user registration."
|
998 |
msgstr ""
|
999 |
|
1000 |
+
#: includes/admin/settings/emails/class-ur-settings-successfully-registered-email.php:59
|
1001 |
+
#: includes/class-ur-emailer.php:187
|
1002 |
msgid "Congratulations! Registration Complete on {{blog_info}}"
|
1003 |
msgstr ""
|
1004 |
|
1005 |
+
#: includes/admin/settings/emails/class-ur-settings-successfully-registered-email.php:84
|
1006 |
msgid ""
|
1007 |
"Hi {{username}},\r\n"
|
1008 |
+
"\r\n"
|
1009 |
+
"\t\t\tYou have successfully completed user registration on <a "
|
|
|
1010 |
"href=\"{{home_url}}\">{{blog_info}}</a>.\r\n"
|
1011 |
+
"\r\n"
|
1012 |
+
"\t\t\tPlease visit '<b>My Account</b>' page to edit your account details "
|
1013 |
+
"and create your user profile on <a "
|
1014 |
"href=\"{{home_url}}\">{{blog_info}}</a>.\r\n"
|
1015 |
+
"\r\n"
|
1016 |
+
"\t\t\tThank You!"
|
|
|
1017 |
msgstr ""
|
1018 |
|
1019 |
#: includes/admin/updater/class-ur-addon-updater.php:210
|
1178 |
msgid "Taking a while? Click here to run it now."
|
1179 |
msgstr ""
|
1180 |
|
1181 |
+
#: includes/class-ur-ajax.php:65
|
1182 |
msgid "Nonce error, please reload."
|
1183 |
msgstr ""
|
1184 |
|
1185 |
+
#: includes/class-ur-ajax.php:75 includes/class-ur-shortcodes.php:106
|
1186 |
msgid "Only an administrator can add new users."
|
1187 |
msgstr ""
|
1188 |
|
1189 |
+
#: includes/class-ur-ajax.php:91 includes/class-ur-shortcodes.php:124
|
1190 |
msgid "You are currently logged in as %1s. You don't need another account. %2s"
|
1191 |
msgstr ""
|
1192 |
|
1193 |
+
#: includes/class-ur-ajax.php:91 includes/class-ur-shortcodes.php:124
|
1194 |
msgid "Log out of this account."
|
1195 |
msgstr ""
|
1196 |
|
1197 |
+
#: includes/class-ur-ajax.php:91 includes/class-ur-shortcodes.php:124
|
1198 |
+
#: includes/functions-ur-account.php:80
|
1199 |
msgid "Logout"
|
1200 |
msgstr ""
|
1201 |
|
1202 |
+
#: includes/class-ur-ajax.php:149 includes/class-ur-ajax.php:155
|
1203 |
msgid "post data not set"
|
1204 |
msgstr ""
|
1205 |
|
1206 |
+
#: includes/class-ur-ajax.php:170
|
1207 |
msgid "Could not save form. Invalid field name. Please check all field name"
|
1208 |
msgstr ""
|
1209 |
|
1210 |
+
#: includes/class-ur-email-confirmation.php:95
|
1211 |
msgid "Verified"
|
1212 |
msgstr ""
|
1213 |
|
1214 |
+
#: includes/class-ur-email-confirmation.php:97
|
1215 |
msgid "Pending"
|
1216 |
msgstr ""
|
1217 |
|
1218 |
+
#: includes/class-ur-email-confirmation.php:116
|
1219 |
msgid "User successfully registered. Login to continue."
|
1220 |
msgstr ""
|
1221 |
|
1222 |
+
#: includes/class-ur-email-confirmation.php:120
|
1223 |
msgid "Token Mismatch!"
|
1224 |
msgstr ""
|
1225 |
|
1226 |
+
#: includes/class-ur-email-confirmation.php:124
|
1227 |
msgid "Verification Email Sent!"
|
1228 |
msgstr ""
|
1229 |
|
1230 |
+
#: includes/class-ur-email-confirmation.php:128
|
1231 |
msgid "User doesnot exist!"
|
1232 |
msgstr ""
|
1233 |
|
1234 |
+
#: includes/class-ur-email-confirmation.php:245
|
1235 |
#: includes/class-ur-user-approval.php:183
|
1236 |
#: includes/class-ur-user-approval.php:188
|
1237 |
msgid "ERROR:"
|
1238 |
msgstr ""
|
1239 |
|
1240 |
+
#: includes/class-ur-email-confirmation.php:245
|
1241 |
+
msgid ""
|
1242 |
+
"Your account is still pending approval. Verifiy your email by clicking on "
|
1243 |
+
"the link sent to your email. %s"
|
1244 |
+
msgstr ""
|
1245 |
+
|
1246 |
+
#: includes/class-ur-email-confirmation.php:245
|
1247 |
+
msgid "Resend Verification Link"
|
1248 |
+
msgstr ""
|
1249 |
+
|
1250 |
+
#: includes/class-ur-email-confirmation.php:267
|
1251 |
msgid ""
|
1252 |
"Email not verified! Verifiy your email by clicking on the link sent to your "
|
1253 |
"email."
|
1254 |
msgstr ""
|
1255 |
|
1256 |
+
#: includes/class-ur-emailer.php:92
|
1257 |
msgid "Chosen Password"
|
1258 |
msgstr ""
|
1259 |
|
1338 |
msgid "Passwords do not match."
|
1339 |
msgstr ""
|
1340 |
|
1341 |
+
#: includes/class-ur-frontend-scripts.php:325
|
1342 |
msgid "Confirm password"
|
1343 |
msgstr ""
|
1344 |
|
1345 |
+
#: includes/class-ur-frontend-scripts.php:327
|
1346 |
msgid "Too short password"
|
1347 |
msgstr ""
|
1348 |
|
1349 |
+
#: includes/class-ur-frontend-scripts.php:328
|
1350 |
msgid "Bad password"
|
1351 |
msgstr ""
|
1352 |
|
1353 |
+
#: includes/class-ur-frontend-scripts.php:329
|
1354 |
msgid "Good password"
|
1355 |
msgstr ""
|
1356 |
|
1357 |
+
#: includes/class-ur-frontend-scripts.php:330
|
1358 |
msgid "Strong password"
|
1359 |
msgstr ""
|
1360 |
|
1361 |
+
#: includes/class-ur-frontend-scripts.php:331
|
1362 |
msgid "Password with confirm password not matched."
|
1363 |
msgstr ""
|
1364 |
|
1365 |
+
#: includes/class-ur-frontend-scripts.php:334
|
1366 |
msgid ""
|
1367 |
"Hint: The password should be at least seven characters long. To make it "
|
1368 |
"stronger, use upper and lower case letters, numbers and symbols such as ! * "
|
1510 |
msgid "Parent registration"
|
1511 |
msgstr ""
|
1512 |
|
1513 |
+
#: includes/class-ur-query.php:73 includes/functions-ur-account.php:79
|
1514 |
msgid "Account details"
|
1515 |
msgstr ""
|
1516 |
|
1517 |
+
#: includes/class-ur-query.php:76 includes/functions-ur-account.php:78
|
1518 |
msgid "Profile Details"
|
1519 |
msgstr ""
|
1520 |
|
2730 |
msgid "Password and confirm password not matched"
|
2731 |
msgstr ""
|
2732 |
|
2733 |
+
#: includes/functions-ur-account.php:32
|
2734 |
+
msgid "The password you entered for username %1s is incorrect. %2s"
|
2735 |
+
msgstr ""
|
2736 |
+
|
2737 |
+
#: includes/functions-ur-account.php:32
|
2738 |
+
msgid "Lost Your Password?"
|
2739 |
+
msgstr ""
|
2740 |
+
|
2741 |
+
#: includes/functions-ur-account.php:77
|
2742 |
msgid "Dashboard"
|
2743 |
msgstr ""
|
2744 |
|
2745 |
+
#: includes/functions-ur-core.php:528 includes/functions-ur-core.php:530
|
2746 |
msgid "Label"
|
2747 |
msgstr ""
|
2748 |
|
2749 |
+
#: includes/functions-ur-core.php:535 includes/functions-ur-core.php:537
|
2750 |
msgid "Description"
|
2751 |
msgstr ""
|
2752 |
|
2753 |
+
#: includes/functions-ur-core.php:542 includes/functions-ur-core.php:544
|
2754 |
msgid "Field Name"
|
2755 |
msgstr ""
|
2756 |
|
2757 |
+
#: includes/functions-ur-core.php:550 includes/functions-ur-core.php:552
|
2758 |
msgid "Placeholder"
|
2759 |
msgstr ""
|
2760 |
|
2761 |
+
#: includes/functions-ur-core.php:562 includes/functions-ur-core.php:573
|
2762 |
+
#: includes/functions-ur-core.php:678 includes/functions-ur-core.php:704
|
2763 |
msgid "No"
|
2764 |
msgstr ""
|
2765 |
|
2766 |
+
#: includes/functions-ur-core.php:563 includes/functions-ur-core.php:574
|
2767 |
+
#: includes/functions-ur-core.php:677 includes/functions-ur-core.php:703
|
2768 |
msgid "Yes"
|
2769 |
msgstr ""
|
2770 |
|
2771 |
+
#: includes/functions-ur-core.php:568
|
2772 |
msgid "Hide Label"
|
2773 |
msgstr ""
|
2774 |
|
2775 |
+
#: includes/functions-ur-core.php:658
|
2776 |
msgid "Default user role"
|
2777 |
msgstr ""
|
2778 |
|
2779 |
+
#: includes/functions-ur-core.php:670
|
2780 |
msgid "Enable strong password"
|
2781 |
msgstr ""
|
2782 |
|
2783 |
+
#: includes/functions-ur-core.php:685
|
2784 |
msgid "Form submit button label"
|
2785 |
msgstr ""
|
2786 |
|
2787 |
+
#: includes/functions-ur-core.php:696
|
2788 |
msgid "Enable %1$s %2$s reCaptcha %3$s support"
|
2789 |
msgstr ""
|
2790 |
|
2791 |
+
#: includes/functions-ur-core.php:712
|
2792 |
msgid "Template"
|
2793 |
msgstr ""
|
2794 |
|
2795 |
+
#: includes/functions-ur-core.php:719
|
2796 |
msgid "Default"
|
2797 |
msgstr ""
|
2798 |
|
2799 |
+
#: includes/functions-ur-core.php:720
|
2800 |
msgid "Bordered"
|
2801 |
msgstr ""
|
2802 |
|
2803 |
+
#: includes/functions-ur-core.php:721
|
2804 |
msgid "Flat"
|
2805 |
msgstr ""
|
2806 |
|
2807 |
+
#: includes/functions-ur-core.php:722
|
2808 |
msgid "Rounded"
|
2809 |
msgstr ""
|
2810 |
|
2811 |
+
#: includes/functions-ur-core.php:723
|
2812 |
msgid "Rounded Edge"
|
2813 |
msgstr ""
|
2814 |
|
2815 |
+
#: includes/functions-ur-core.php:730
|
2816 |
msgid "Custom CSS class"
|
2817 |
msgstr ""
|
2818 |
|
2819 |
+
#: includes/functions-ur-core.php:757
|
2820 |
msgid "Auto login after registration"
|
2821 |
msgstr ""
|
2822 |
|
2823 |
+
#: includes/functions-ur-core.php:966
|
2824 |
msgid ""
|
2825 |
"The class <code>%s</code> provided by user_registration_logging_class "
|
2826 |
"filter must implement <code>UR_Logger_Interface</code>."
|
2827 |
msgstr ""
|
2828 |
|
2829 |
+
#: includes/functions-ur-core.php:1055
|
2830 |
msgid "Disable emails"
|
2831 |
msgstr ""
|
2832 |
|
2833 |
+
#: includes/functions-ur-core.php:1056
|
2834 |
msgid "Disable all emails sent after registration."
|
2835 |
msgstr ""
|
2836 |
|
2841 |
msgid "This function should not be called before user_registration_init."
|
2842 |
msgstr ""
|
2843 |
|
2844 |
+
#: includes/functions-ur-template.php:121
|
2845 |
msgid "required"
|
2846 |
msgstr ""
|
2847 |
|
2848 |
+
#: includes/functions-ur-template.php:240
|
2849 |
msgid "Choose an option"
|
2850 |
msgstr ""
|
2851 |
|
2861 |
msgid "You are already logged in. <a href=\"%s\">Log out?</a>"
|
2862 |
msgstr ""
|
2863 |
|
2864 |
+
#: includes/shortcodes/class-ur-shortcode-my-account.php:51
|
2865 |
msgid "Your password has been reset successfully."
|
2866 |
msgstr ""
|
2867 |
|
2868 |
+
#: includes/shortcodes/class-ur-shortcode-my-account.php:64
|
2869 |
msgid "Are you sure you want to log out? <a href=\"%s\">Confirm and log out</a>"
|
2870 |
msgstr ""
|
2871 |
|
2872 |
+
#: includes/shortcodes/class-ur-shortcode-my-account.php:194
|
2873 |
msgid "Enter a username or email address."
|
2874 |
msgstr ""
|
2875 |
|
2876 |
+
#: includes/shortcodes/class-ur-shortcode-my-account.php:215
|
2877 |
+
#: includes/shortcodes/class-ur-shortcode-my-account.php:220
|
2878 |
msgid "Invalid username or email."
|
2879 |
msgstr ""
|
2880 |
|
2881 |
+
#: includes/shortcodes/class-ur-shortcode-my-account.php:230
|
2882 |
msgid "Password reset is not allowed for this user"
|
2883 |
msgstr ""
|
2884 |
|
2885 |
+
#: includes/shortcodes/class-ur-shortcode-my-account.php:243
|
2886 |
msgid "The email could not be sent. Contact your site administrator. "
|
2887 |
msgstr ""
|
2888 |
|
2915 |
msgstr ""
|
2916 |
|
2917 |
#: templates/myaccount/form-edit-account.php:68
|
2918 |
+
#: templates/myaccount/form-edit-profile.php:41
|
2919 |
msgid "Save changes"
|
2920 |
msgstr ""
|
2921 |
|
package-lock.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
{
|
2 |
"name": "user-registration",
|
3 |
-
"version": "1.4.
|
4 |
"lockfileVersion": 1,
|
5 |
"requires": true,
|
6 |
"dependencies": {
|
1 |
{
|
2 |
"name": "user-registration",
|
3 |
+
"version": "1.4.1",
|
4 |
"lockfileVersion": 1,
|
5 |
"requires": true,
|
6 |
"dependencies": {
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: WPEverest
|
|
3 |
Tags: user registration, registration, profile-builder, user profile, form, registration form, login form, user login, membership
|
4 |
Requires at least: 4.0
|
5 |
Tested up to: 4.9
|
6 |
-
Stable tag: 1.4.
|
7 |
License: GPLv3
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
3 |
Tags: user registration, registration, profile-builder, user profile, form, registration form, login form, user login, membership
|
4 |
Requires at least: 4.0
|
5 |
Tested up to: 4.9
|
6 |
+
Stable tag: 1.4.1
|
7 |
License: GPLv3
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
templates/myaccount/form-edit-profile.php
CHANGED
@@ -26,18 +26,16 @@ do_action( 'user_registration_before_edit_profile_form' ); ?>
|
|
26 |
<form class="user-registration-EditProfileForm edit-profile" action="" method="post">
|
27 |
<div class="ur-form-row">
|
28 |
<div class="ur-form-grid">
|
29 |
-
|
30 |
<div class="user-registration-profile-fields">
|
31 |
-
<?php do_action( 'user_registration_edit_profile_form_start' ); ?>
|
32 |
|
|
|
33 |
<div class="user-registration-profile-fields__field-wrapper">
|
34 |
-
|
|
|
35 |
<?php user_registration_form_field( $key, $field, ! empty( $_POST[ $key ] ) ? ur_clean( $_POST[ $key ] ) : $field['value'] ); ?>
|
36 |
<?php endforeach; ?>
|
37 |
</div>
|
38 |
-
|
39 |
<?php do_action( 'user_registration_edit_profile_form' ); ?>
|
40 |
-
|
41 |
<p>
|
42 |
<?php wp_nonce_field( 'save_profile_details' ); ?>
|
43 |
<input type="submit" class="user-registration-Button button" name="save_account_details" value="<?php esc_attr_e( 'Save changes', 'user-registration' ); ?>" />
|
26 |
<form class="user-registration-EditProfileForm edit-profile" action="" method="post">
|
27 |
<div class="ur-form-row">
|
28 |
<div class="ur-form-grid">
|
|
|
29 |
<div class="user-registration-profile-fields">
|
|
|
30 |
|
31 |
+
<?php do_action( 'user_registration_edit_profile_form_start' ); ?>
|
32 |
<div class="user-registration-profile-fields__field-wrapper">
|
33 |
+
|
34 |
+
<?php foreach ( $profile as $key => $field ) : ?>
|
35 |
<?php user_registration_form_field( $key, $field, ! empty( $_POST[ $key ] ) ? ur_clean( $_POST[ $key ] ) : $field['value'] ); ?>
|
36 |
<?php endforeach; ?>
|
37 |
</div>
|
|
|
38 |
<?php do_action( 'user_registration_edit_profile_form' ); ?>
|
|
|
39 |
<p>
|
40 |
<?php wp_nonce_field( 'save_profile_details' ); ?>
|
41 |
<input type="submit" class="user-registration-Button button" name="save_account_details" value="<?php esc_attr_e( 'Save changes', 'user-registration' ); ?>" />
|
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 and login form builder.
|
6 |
-
* Version: 1.4.
|
7 |
* Author: WPEverest
|
8 |
* Author URI: https://wpeverest.com
|
9 |
* Text Domain: user-registration
|
@@ -30,7 +30,7 @@ final class UserRegistration {
|
|
30 |
* Plugin version.
|
31 |
* @var string
|
32 |
*/
|
33 |
-
public $version = '1.4.
|
34 |
|
35 |
/**
|
36 |
* Session instance.
|
@@ -160,13 +160,11 @@ final class UserRegistration {
|
|
160 |
/**
|
161 |
* Class autoloader.
|
162 |
*/
|
163 |
-
|
164 |
include_once( UR_ABSPATH . 'includes/class-ur-autoloader.php' );
|
165 |
|
166 |
/**
|
167 |
* Interfaces.
|
168 |
*/
|
169 |
-
|
170 |
include_once( UR_ABSPATH . 'includes/interfaces/class-ur-logger-interface.php' );
|
171 |
include_once( UR_ABSPATH . 'includes/interfaces/class-ur-log-handler-interface.php' );
|
172 |
|
3 |
* Plugin Name: User Registration
|
4 |
* Plugin URI: https://wpeverest.com/plugins/user-registration
|
5 |
* Description: Drag and Drop user registration and login form builder.
|
6 |
+
* Version: 1.4.1
|
7 |
* Author: WPEverest
|
8 |
* Author URI: https://wpeverest.com
|
9 |
* Text Domain: user-registration
|
30 |
* Plugin version.
|
31 |
* @var string
|
32 |
*/
|
33 |
+
public $version = '1.4.1';
|
34 |
|
35 |
/**
|
36 |
* Session instance.
|
160 |
/**
|
161 |
* Class autoloader.
|
162 |
*/
|
|
|
163 |
include_once( UR_ABSPATH . 'includes/class-ur-autoloader.php' );
|
164 |
|
165 |
/**
|
166 |
* Interfaces.
|
167 |
*/
|
|
|
168 |
include_once( UR_ABSPATH . 'includes/interfaces/class-ur-logger-interface.php' );
|
169 |
include_once( UR_ABSPATH . 'includes/interfaces/class-ur-log-handler-interface.php' );
|
170 |
|