Version Description
Download this release
Release Info
Developer | Shelob9 |
Plugin | Caldera Forms – More Than Contact Forms |
Version | 1.7.0-b.1 |
Comparing to | |
See all releases |
Code changes from version 1.6.3 to 1.7.0-b.1
- README.md +20 -1
- assets/build/css/admin.min.css +1 -1
- assets/build/css/caldera-forms-front.min.css +1 -1
- assets/build/js/admin.min.js +1 -1
- assets/build/js/edit.min.js +3 -3
- assets/build/js/shortcode-insert.min.js +1 -1
- assets/css/admin.css +7 -0
- assets/css/caldera-forms-front.css +1 -1
- assets/js/admin.js +70 -2
- assets/js/caldera-forms-front.js +1 -1
- assets/js/edit.js +11 -1
- assets/js/entry-viewer-2.js +1 -1
- assets/js/parsley.min.js +1 -1
- assets/js/shortcode-insert.min.js +0 -1
- assets/js/vue.js +1 -1
- caldera-core.php +184 -124
- classes/admin.php +96 -19
- classes/admin/assets.php +26 -4
- classes/admin/factory.php +19 -0
- classes/admin/page.php +170 -0
- classes/admin/privacy.php +1 -1
- classes/api/crud.php +13 -7
- classes/api/entries.php +64 -0
- classes/api/form.php +33 -1
- classes/api/forms.php +126 -6
- classes/api/privacy.php +132 -0
- classes/api/util.php +26 -0
- classes/autoloader.php +0 -1
- classes/core.php +3 -0
- classes/entry/factory.php +33 -0
- classes/entry/fields.php +132 -0
- classes/field/util.php +29 -1
- classes/fields.php +14 -0
- classes/forms.php +59 -0
- classes/gdpr.php +342 -0
- classes/magic/doer.php +4 -3
- classes/query/paginated.php +250 -0
- classes/query/paginates.php +72 -0
- classes/query/pii.php +137 -0
- classes/render/assets.php +8 -4
- clients/blocks/README.md +0 -13
- clients/blocks/build/index.min.js +4297 -1
- clients/blocks/components/FormChooser.js +0 -60
- clients/blocks/components/FormPreview.js +0 -41
- clients/blocks/index.js +0 -88
- clients/blocks/store.js +0 -189
- clients/functions/CalderaFormsButtonPulse.js +0 -59
- clients/functions/README.md +0 -12
- clients/functions/appendAssets.js +0 -58
- clients/functions/bindBaldrickTriggers.js +0 -37
- clients/privacy/build/index.min.js +5223 -0
README.md
CHANGED
@@ -12,6 +12,7 @@ Drag & Drop WordPress Responsive Form Builder
|
|
12 |
## Development
|
13 |
[Contributor Guidleines](https://github.com/CalderaWP/Caldera-Forms/blob/master/CONTRIBUTING.md)
|
14 |
|
|
|
15 |
### Install for development
|
16 |
Requires: git, npm, Grunt.
|
17 |
- Clone repo to plugin directory
|
@@ -25,7 +26,7 @@ To create a build to ship to WordPress.org:
|
|
25 |
`npm run package`
|
26 |
|
27 |
This creates `/build/<version>` where `<version>` is the current version set in `package.json`.
|
28 |
-
### Development
|
29 |
|
30 |
Run watcher for development to auto-compile JavaScript and CSS
|
31 |
|
@@ -52,6 +53,24 @@ This is the old stuff, built with grunt.
|
|
52 |
- `npm run dev:grunt`
|
53 |
* Build for production
|
54 |
- `npm run build:grunt`
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
|
56 |
## Contributing/ Using This Repo, Etc.
|
57 |
* The default branch is "master" that should be the same as WordPress.org.
|
12 |
## Development
|
13 |
[Contributor Guidleines](https://github.com/CalderaWP/Caldera-Forms/blob/master/CONTRIBUTING.md)
|
14 |
|
15 |
+
|
16 |
### Install for development
|
17 |
Requires: git, npm, Grunt.
|
18 |
- Clone repo to plugin directory
|
26 |
`npm run package`
|
27 |
|
28 |
This creates `/build/<version>` where `<version>` is the current version set in `package.json`.
|
29 |
+
### JavaScript Development
|
30 |
|
31 |
Run watcher for development to auto-compile JavaScript and CSS
|
32 |
|
53 |
- `npm run dev:grunt`
|
54 |
* Build for production
|
55 |
- `npm run build:grunt`
|
56 |
+
|
57 |
+
### Test Environment
|
58 |
+
All PHP tests are based off of the WordPress "unit" test suite, and therefore need a full WordPress test environment. The install script in '/bin' is pretty standard and should work with VVV or whatever.
|
59 |
+
|
60 |
+
Alternatively, because this, isn't 2014, you can use the provided Docker environment.
|
61 |
+
#### Requirements
|
62 |
+
* Docker
|
63 |
+
- [Installation documentation](https://docs.docker.com/install/)
|
64 |
+
* Composer
|
65 |
+
- [Installation documentation](https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx)
|
66 |
+
|
67 |
+
#### Commands
|
68 |
+
* `composer wp-install` - Installs Docker-based test environment.
|
69 |
+
* `composer wp-start` - Starts Docker-based test environment.
|
70 |
+
* `composer wp-tests` - Runs phpunit inside of Docker container.
|
71 |
+
* `composer wp-stop` - Stops Docker-based test environment, without destroying containers.
|
72 |
+
* `composer wp-remove` - Stops Docker-based test environment and destroys containers.
|
73 |
+
|
74 |
|
75 |
## Contributing/ Using This Repo, Etc.
|
76 |
* The default branch is "master" that should be the same as WordPress.org.
|
assets/build/css/admin.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
@font-face{font-family:caldera-forms;src:url(fonts/caldera-forms.eot?7moc5h);src:url(fonts/caldera-forms.eot?#iefix7moc5h) format('embedded-opentype'),url(fonts/caldera-forms.woff?7moc5h) format('woff'),url(fonts/caldera-forms.ttf?7moc5h) format('truetype'),url(fonts/caldera-forms.svg?7moc5h#caldera-forms) format('svg');font-weight:400;font-style:normal}[class*=" icn-"],[class^=icn-]{font-family:caldera-forms;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icn-field:before{content:"\e60b"}.icn-right:before{content:"\e60c"}.icn-equalizer:before{content:"\e60d"}.icn-cog:before{content:"\e605"}.icn-check:before{content:"\e606"}.icn-plus:before{content:"\e607"}.icn-radio-checked:before{content:"\e608"}.icn-radio-unchecked:before{content:"\e609"}.icn-code:before{content:"\e60a"}.icn-duplicate:before{content:"\e600"}.icn-folder:before{content:"\e601"}.icn-delete:before{content:"\e602"}.icn-repeat:before{content:"\e603"}.icn-cf:before{content:"\e604"}#wpbody-content>div.error,#wpbody-content>div.updated{margin:50px 27px -50px 2px}.caldera-editor-header-nav.spinner{display:block;margin:10px 0 -6px}.caldera-editor-header-nav>li.caldera-forms-headtext{display:block;padding:12px 0 0;color:#737373}.caldera-editor-header-nav>li.sub-meta-line{padding:9px}.toggle_option_row{margin:4px 0}.toggle_option_row input{display:inline}.caldera-group-panel .add-new-h2,.caldera-mini-list .caldera-group-description,.caldera-mini-list .caldera-group-footer{display:none}.toggle_option_row .dashicons-sort{cursor:all-scroll}.toggle_option_tab,.toggle_processor_event{float:right;margin:0 6px 0 0}.toggle_option_tab .button,.toggle_processor_event .button{border-radius:0;margin-right:-5px}.toggle_option_tab .button:last-child,.toggle_processor_event .button:last-child{border-top-right-radius:3px;border-bottom-right-radius:3px}.toggle_option_tab .button:first-child,.toggle_processor_event .button:first-child{border-top-left-radius:3px;border-bottom-left-radius:3px}.toggle_option_preview .button{border-radius:0;margin-right:-5px}.toggle_option_preview .button:first-child{border-radius:3px 0 0 3px}.toggle_option_preview .button:last-child{border-radius:0 3px 3px 0}.toplevel_page_caldera-forms .wrap{padding-top:35px}.caldera-entry-exporter{float:left;margin-top:-38px}.caldera-group-panel{width:350px;padding:12px 12px 0;float:left;background-color:#fff;border:1px solid #dfdfdf;box-shadow:0 1px 1px rgba(0,0,0,.04);margin:0 10px 10px 0;height:200px}.caldera-group-description{height:75px;margin-right:-12px;overflow:auto;padding:5px 10px 5px 0}.caldera-group-panel .description{color:#AFAFAF;float:right}.caldera-group-panel.new-element{background:rgba(0,0,0,0);border:5px dashed #E0E0E0;border-radius:2px;box-shadow:none;height:192px;width:342px;position:relative;text-align:center}.caldera-group-panel.caldera-mini-list{height:61px;width:250px}.caldera-group-panel.caldera-mini-list.new-element{height:54px}.caldera-group-panel.caldera-mini-list.new-element-form{width:350px;height:200px}.caldera-group-panel.caldera-mini-list.new-element-form .caldera-group-footer{display:block}.caldera-group-panel.new-element .caldera-new-element{display:none}.caldera-group-panel textarea{height:82px;margin:15px 1px 20px;width:100%}select.caldera-type-selector{display:block;float:right;margin-top:1px;width:140px}.caldera-group-panel.new-element .add-new-h2{display:inline-block;margin-top:80px}.caldera-group-panel.caldera-mini-list.new-element .add-new-h2{margin-top:10px}.caldera-group-panel.new-element.new-element-form .add-new-h2{margin-top:80px}.caldera-group-panel .has-error,.caldera-processor-nav.has-error{border-color:red!important}.caldera-group-panel .has-error:focus,.caldera-processor-nav.has-error a,.layout-form-field.has-error .preview-caldera-config-group{box-shadow:0 0 2px rgba(255,0,0,.8)}.caldera-config-group-toggle-options{margin-bottom:20px}.caldera-group-panel h3{border-bottom:1px solid #DFDFDF;font-size:1.2em;font-weight:400;margin:0 -12px;padding:0 12px 12px}.caldera-group-footer{background-color:#F7F7F7;border-top:1px solid #DFDFDF;margin:0 -12px;padding:12px;text-align:right}.caldera-delete-element{display:inline-block;margin-top:6px}.caldera-panel-info{background:#f8f8f8;display:block;list-style:none;margin:0 -12px;padding:6px;border-bottom:1px solid #DFDFDF}.caldera-panel-info>li{display:inline-block;margin:0;padding:0;width:100px;color:#7f7f7f}.caldera-editor-header{background:#FFF;border-bottom:1px solid #DFDFDF;box-shadow:0 1px 1px rgba(0,0,0,.04);clear:both;margin:-10px -20px 0 -22px;padding:0 12px;position:fixed;top:42px;width:100%;z-index:100}.caldera-editor-header.caldera-editor-subnav{background-color:#f0f0f0;top:84px}.caldera-editor-header .button.caldera-header-preview-button,.caldera-editor-header .button.caldera-header-save-button,.caldera-editor-header .caldera-header-email-preview-button,.caldera-header-restore-button,.caldera-header-return-button{float:left;margin:7px 12px 0;position:relative}.caldera-header-restore-button,.caldera-header-return-button{margin:7px 12px 0!important}.caldera-editor-header-nav{list-style:none;margin:0;min-height:38px;float:left}.caldera-editor-header-nav>li{float:left;margin:0;padding:0}.caldera-editor-header-nav li.caldera-element-type-label{background-color:#F8F8F8;color:#8F8F8F;display:inline-block;padding:12px}li.caldera-forms-version{color:#AFAFAF;font-size:.8em;padding:12px 0 10px}li.caldera-editor-logo{font-size:18px;font-weight:300;padding:11px 12px 11px 0}.caldera-editor-header-nav>li a{display:inline-block;padding:12px;text-decoration:none;color:#839e3f}.caldera-editor-header-nav>li.active a{background:#a3be5f;color:#fff}.caldera-editor-header-nav>li.caldera-forms-toolbar-item{padding:6px 6px 6px 12px}.caldera-editor-header-nav>li.caldera-forms-toolbar-item.separator{border-right:1px solid #efefef;height:29px;margin-right:10px;padding:6px 0 6px 12px}.caldera-editor-body .users-settings-input{width:350px}.caldera-editor-body .block-input,.caldera-editor-body .button.block-button{width:100%}.caldera-editor-section{clear:both}.caldera-editor-fields-panel,.caldera-editor-groups-panel{float:left;width:180px;margin-right:15px}.caldera-editor-fields-panel ul,.caldera-editor-groups-panel>ul{margin:6px 0 0;padding:0}.caldera-editor-fields-panel li,.caldera-editor-groups-panel li{border-bottom:1px solid #DFDFDF;margin:0}.icn-right.pull-right{float:right;margin:2px -2px 0 0;display:none}.caldera-group-nav.is-admin span{color:#EF1010}.caldera-field-line.active .icn-right,.caldera-group-nav.active .icn-right{display:block}.caldera-editor-fields-panel a,.caldera-editor-groups-panel a{color:#6F6F6F;display:block;padding:6px;text-decoration:none}.caldera-editor-fields-panel a:hover,.caldera-editor-fields-panel li.active a,.caldera-editor-groups-panel a:hover,.caldera-editor-groups-panel li.active a{background:#E8E8E8}.caldera-editor-fields-panel .button.add-field{width:140px}.caldera-editor-fields-panel .button.icon-button{float:right}.caldera-editor-group-settings{margin-top:5px;padding-top:5px}.caldera-editor-group-settings .block-input{margin:2px 0}.caldera-editor-field-config{float:left;width:350px}.layout-form-field{background:#fff;padding:5px}.layout-form-field .dashicons-admin-page,.layout-form-field .icon-edit{background:#efefef;color:#707070;position:absolute;top:12px;z-index:999}.layout-form-field .control-label{padding:0 0 5px;display:block}.layout-form-field .field_preview{min-height:38px;border:1px solid transparent}.preview-caldera-config-group{padding:6px}.preview-field-config{width:100%}.layout-form-field .icon-edit{border-radius:4px;border:1px solid #bfbfbf;padding:5px;right:12px}.layout-form-field .dashicons-admin-page{border:1px solid #bfbfbf;border-radius:4px;font-size:16px;height:25px;line-height:25px;padding:0;right:40px;width:25px}.layout-form-field .dashicons-admin-page:hover,.layout-form-field .icon-edit:hover{background:#fcfcfc;color:#505050}.layout-form-field.ui-sortable-helper{border-radius:3px;box-shadow:0 2px 8px rgba(0,0,0,.2)}.field_preview .help-block{display:block;margin:5px 0;font-style:italic;color:#8f8f8f}.field-edit-open .field_preview{background:#eff5f5;border:1px solid #40a4cf;border-radius:3px}.layout-new-form-field .field_preview{display:none}.has-error .field_preview{border:1px solid red}textarea.block-input.field-config{height:100px;width:100%}.block-input.field-config{width:100%;line-height:20px}.field-config.field-checkbox{margin-top:4px}#new_form_baldrickModalBody .new-form-name.block-input.field-config{background-color:#fff;border-color:#779233;box-shadow:0 1px 4px rgba(0,0,0,.4) inset;color:#333;margin-top:17px;padding:7px}#new_form_baldrickModalBody .new-form-name.block-input.field-config.has-error{border-color:red}h3.caldera-editor-field-title{border-bottom:1px solid #CFCFCF;font-size:18px;font-weight:400;margin:0 0 6px;padding:5px 0 12px;color:#3f3f3f}.caldera-editor-body.caldera-config-editor-panel.caldera-config-has-side{margin-right:420px}.caldera-config-editor-main-panel{float:left;width:100%}.caldera-config-editor-side-panel{bottom:30px;overflow-y:scroll;padding-right:15px;position:fixed;right:0;top:172px;width:400px}.caldera-config-editor-panel-group{border-bottom:1px solid #DFDFDF;margin-bottom:30px;padding-bottom:20px}.caldera-config-editor-panel .add-new-h2,.caldera-config-editor-panel .add-new-h2:active{font-size:10px;margin:4px 10px}.add-new-h2.caldera-add-page,.add-new-h2.caldera-add-page:active{margin-left:0}.caldera-config-group label{display:block;margin:4px 0 0}.caldera-config-group legend,.caldera-config-group>label,.caldera-config-group>legend{float:left;margin:-2px 0 0 -140px;padding:6px 0;width:110px}.form-extend-page-wrap.spinner{float:none}.form-extend-page-wrap .caldera-config-group>label,.form-extend-page-wrap .caldera-config-group>legend{margin-left:-340px;width:330px}.caldera-config-group .field-key{float:left;margin:1px 0 0 -140px;width:120px}.caldera-config-group.caldera-config-group-full>label{margin:0}.caldera-config-group{clear:both;margin:0 5px 0 140px}.form-extend-page-wrap .caldera-config-group{margin-left:340px}.caldera-config-group.caldera-config-group-full{margin-left:0}.caldera-config-field{display:inline-block;margin-bottom:12px;width:100%;position:relative}.magic-tags-autocomplete{background-color:#fff;border:1px solid #ddd;box-shadow:0 1px 2px rgba(0,0,0,.07);box-sizing:border-box;margin:1px;max-height:160px;overflow:auto;padding:0;position:absolute;top:auto;width:100%;z-index:999999}.toggle_option_row .magic-tags-autocomplete{width:279px}.magic-tags-autocomplete>ul{margin:0;padding:0}.magic-tags-autocomplete>ul>li{border-bottom:1px solid #dfdfdf;margin:0;padding:5px 6px 6px 12px;white-space:nowrap}.magic-tags-autocomplete>ul>li.header{border-bottom:1px solid #dfdfdf;font-style:italic;font-weight:700;margin:0;padding:5px 6px 6px}.magic-tags-autocomplete>ul>li.tag{cursor:pointer}.magic-tags-autocomplete>ul>li.tag:hover{background:#f5f5f5}.magic-tags-autocomplete>ul>li.tag>strong{color:#df2020}.caldera-config-field-break{clear:both;display:block;margin-bottom:6px}.caldera-editor-body{min-height:400px;padding-top:95px;position:relative}.caldera-code-editor-panel{padding-top:90px}.caldera-editor-body .new-field-input,.caldera-editor-body .new-group-input{margin-top:10px}.caldera-editor-body .button.repeat-config-button{margin-top:10px;margin-bottom:5px}.caldera-meta-box{margin-right:15px}.caldera-meta-side{width:280px}.caldera-meta-normal{max-width:700px}.caldera-config-editor-main-panel>h3,.caldera-editor-body>h3{background-color:#F4F4F4;box-shadow:0 1px 1px rgba(0,0,0,.09);color:#636363;font-weight:400;margin:-11px 4px 12px -10px;padding:10px 10px 6px;position:fixed;top:128px;width:100%;z-index:99}.caldera-config-editor-main-panel h3 .layout-new-form-field{margin-top:-3px}.ui-draggable-dragging{z-index:100}.button.button-small.layout-new-form-field.ui-draggable.ui-draggable-dragging{z-index:999999}.button.button-small.layout-new-form-field.ui-draggable{cursor:all-scroll}@media screen and (max-width:782px){.caldera-editor-body>h3{top:143px;padding:10px 10px 12px 20px}.add-new-h2.caldera-add-group{padding:4px 8px}}@media screen and (max-width:600px){.caldera-editor-body>h3{top:143px;position:absolute}}.caldera-editor-body .pull-right{float:right}.caldera-editor-body .postbox h3.hndle{cursor:default}input.has-error,input.has-error:focus,select.has-error,select.has-error:focus,textarea.has-error,textarea.has-error:focus{border-color:red;box-shadow:0 0 2px rgba(255,0,0,.8)}a span.error-tag{background:#DF1010;border-radius:3px;color:#FFF;font-weight:700;margin-left:8px;padding:0 5px}#general_settings_baldrickModalBody,#user_profile_baldrickModalBody{padding:0}.form-admin-page-wrap{margin:50px 0 0 430px}.form-extend-page-wrap{margin:100px 0 0}.form-panel-wrap{float:left;margin-left:-430px;width:430px;position:relative}.form-entries-wrap{padding:0 0 0 30px}.form-entries-wrap .caldera-forms-entry-exporter{margin-top:1px}.form-panel.postbox{border-left:6px solid #E5E5E5;float:left;margin-right:20px;padding:6px 5px 5px 12px;min-width:350px;max-width:350px;border-radius:0}.list.form-panel.postbox{float:none;min-width:100%;max-width:100%;width:auto;overflow:auto;box-sizing:border-box}.form-extend-page-wrap .list.form-panel.postbox{-moz-box-sizing:border-box;box-sizing:border-box}.form-panel.postbox h4{cursor:pointer;font-size:1em;height:15px;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.form-panel.postbox h5{color:#8F8F8F;height:12px;margin:4px 0;overflow:hidden;text-overflow:ellipsis;width:100%}.form-panel.postbox .avatar-link{background-color:#FFF;border:3px solid #E5E5E5;border-radius:100%;cursor:pointer;display:block;height:28px;left:-20px;overflow:hidden;position:absolute;top:-18px;width:28px}.form-panel .cf-deleted-row td{opacity:.2}.form-panel .cf-deleted-row .view-entry-btn{display:none}.form-panel .cf-deleted-row td:last-child{opacity:1}.avatar-link .avatar{max-width:100%;max-height:100%}.form-controls{bottom:0;list-style:none;margin:0;position:absolute;right:0}.form-controls>li,.modal-side-tabs>li{display:inline-block;float:left;margin:0}.form-controls>li .form-control,.modal-side-tabs>li .modal-side-tab{background:#F7F7F7;display:block;margin:0;padding:6px 10px;text-decoration:none;color:#8F8F8F}.form-controls>li .form-control:hover,.modal-side-tabs>li .modal-side-tab:hover{background-color:#efefef}.form-controls>li.form-delete{float:right}.form-controls>li.form-delete .form-control{background:rgba(0,0,0,0);color:#DF1010;visibility:hidden}.modal-inside .modal-side-bar,.modal-side-bar .modal-side-tabs{background-color:#DFDFDF;bottom:0;overflow:auto;top:0;position:absolute}.form-panel:hover .form-controls>li.form-delete .form-control{text-decoration:underline;visibility:visible}.caldera-manage-groups-tip{padding:10px 0;text-align:center}.modal-inside{height:100%;margin-left:170px;padding-right:10px;overflow:auto}.modal-inside .modal-side-bar{left:0;width:150px}.user-avatar,.user-avatar img{float:left}.modal-side-bar .modal-side-tabs{margin:0;width:100%;min-height:100px}.modal-side-bar.has-avatar .modal-side-tabs{top:150px}.modal-side-tabs>li .modal-side-tab{background-color:#989898;color:#FFF}.modal-side-tabs>li .modal-side-tab:hover{background-color:#efefef;color:#585858}.modal-side-tabs>li .modal-side-tab.active{background-color:#FFF;color:#585858}.modal-side-bar .modal-side-tabs>li{width:100%}.tab-detail-panel{float:right;width:100%}.user-field-lable{display:inline-block;width:80px;color:#898989}input.disabled-input{background-color:#EFEFEF;box-shadow:none}.tab-detail-panel>h4{font-weight:700;margin:0 0 12px}.tab-detail-panel>h4 small{color:#A9A9A9;font-style:italic;font-weight:400}.tab-detail-panel .caldera-repeater-group{margin-bottom:12px}.avatar-column,.avatar-mini,.avatar-wall{margin:0;cursor:pointer}.caldera-repeater-group-control{background:#F7F7F7;border:1px solid #F4F4F4;clear:both;padding:6px;text-align:right}.caldera-repeater-group:hover .caldera-repeater-group-control.row-actions{visibility:visible}.tab-detail-panel .caldera-repeater-group hr{clear:both}.caldera-modal-body.spinner{background-position:12px 12px;min-height:44px;display:block;float:none;text-align:center;width:100%}#form-entries-viewer.spinner{display:block;visibility:visible;float:left;height:22px;padding:0;width:22px}#form-entries-viewer.spinner div,#form-entries-viewer.spinner p,.popover{display:none}.avatar-wall,.avatar-wall img{width:80px;height:80px}.form-panel.postbox .avatar-link.Administrator{border-color:#B5CF75}.form-panel.postbox.ajax-trigger{cursor:pointer}.form-panel.postbox.ajax-trigger:hover{background-color:#f7f7f7}.avatar-wall{float:left}.avatar-mini,.avatar-mini img{width:40px;height:40px}.avatar-mini{float:left}.avatar-column,.avatar-column img{width:30px;height:30px}.user-name{cursor:pointer}.popover{position:absolute;top:0;left:0;z-index:1010;max-width:276px;padding:1px;text-align:left;background-color:#fff;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.2);border-radius:3px;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.1);box-shadow:0 1px 1px rgba(0,0,0,.1);white-space:normal}.popover.top{margin-top:-10px}.popover.right{margin-left:10px}.popover.bottom{margin-top:10px}.popover.left{margin-left:-10px}.popover-title{margin:0;padding:8px 14px;font-size:14px;font-weight:400;line-height:18px;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-radius:5px 5px 0 0}.popover-content{padding:8px}.popover>.pointer,.popover>.pointer:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.popover>.pointer{border-width:9px}.popover>.pointer:after{border-width:8px;content:""}.popover.bottom>.pointer:after,.popover.left>.pointer:after,.popover.right>.pointer:after,.popover.top>.pointer:after{content:" "}.popover.top>.pointer{left:50%;margin-left:-9px;border-bottom-width:0;border-top-color:#999;border-top-color:rgba(0,0,0,.1);bottom:-9px}.popover.top>.pointer:after{bottom:1px;margin-left:-8px;border-bottom-width:0;border-top-color:#fff}.popover.right>.pointer{top:50%;left:-9px;margin-top:-9px;border-left-width:0;border-right-color:#999;border-right-color:rgba(0,0,0,.1)}.popover.right>.pointer:after{left:1px;bottom:-8px;border-left-width:0;border-right-color:#fff}.popover.bottom>.pointer{left:50%;margin-left:-9px;border-top-width:0;border-bottom-color:#999;border-bottom-color:rgba(0,0,0,.1);top:-9px}.popover.bottom>.pointer:after{top:1px;margin-left:-8px;border-top-width:0;border-bottom-color:#fff}.popover.left>.pointer{top:50%;right:-9px;margin-top:-9px;border-right-width:0;border-left-color:#999;border-left-color:rgba(0,0,0,.1)}.popover.left>.pointer:after{right:1px;border-right-width:0;border-left-color:#fff;bottom:-8px}.image-thumb{margin-left:68px;padding:6px 0 6px 6px}.popover-side-bar{float:left;margin-left:-68px;width:62px}.image-thumb .popover-main-content{margin-right:6px}.popover-main-content select{width:100%}.popover-content.image-thumb .button.popover-button{margin:0 0 3px;width:100%}.popover-content.image-thumb .popover-main-content .button.popover-button{margin:6px 0 0}.tab-detail-panel .button.caldera-add-group{margin-bottom:10px!important}.spinner.loading{display:inline;visibility:visible}.form-panel html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}.form-panel body{margin:0}.form-panel article,.form-panel aside,.form-panel details,.form-panel figcaption,.form-panel figure,.form-panel footer,.form-panel header,.form-panel hgroup,.form-panel main,.form-panel nav,.form-panel section,.form-panel summary{display:block}.form-panel audio,.form-panel canvas,.form-panel progress,.form-panel video{display:inline-block;vertical-align:baseline}.form-panel audio:not([controls]){display:none;height:0}.form-panel [hidden],.form-panel template{display:none}.form-panel a{background:0 0}.form-panel a:active,.form-panel a:hover{outline:0}.form-panel abbr[title]{border-bottom:1px dotted}.form-panel b,.form-panel strong{font-weight:700}.form-panel dfn{font-style:italic}.form-panel h1{font-size:2em;margin:.67em 0}.form-panel mark{background:#ff0;color:#000}.form-panel small{font-size:80%}.form-panel sub,.form-panel sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.form-panel sup{top:-.5em}.form-panel sub{bottom:-.25em}.form-panel img{border:0}.form-panel svg:not(:root){overflow:hidden}.form-panel figure{margin:1em 40px}.form-panel hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}.form-panel pre{overflow:auto}.form-panel code,.form-panel kbd,.form-panel pre,.form-panel samp{font-family:monospace,monospace;font-size:1em}.form-panel button,.form-panel input,.form-panel optgroup,.form-panel select,.form-panel textarea{color:inherit;font:inherit;margin:0}.form-panel button{overflow:visible}.form-panel button,.form-panel select{text-transform:none}.form-panel button,.form-panel html input[type=button],.form-panel input[type=reset],.form-panel input[type=submit]{-webkit-appearance:button;cursor:pointer}.form-panel button[disabled],.form-panel html input[disabled]{cursor:default}.form-panel button::-moz-focus-inner,.form-panel input::-moz-focus-inner{border:0;padding:0}.form-panel input{line-height:normal}.form-panel input[type=checkbox],.form-panel input[type=radio]{box-sizing:border-box;padding:0}.form-panel input[type=number]::-webkit-inner-spin-button,.form-panel input[type=number]::-webkit-outer-spin-button{height:auto}.form-panel input[type=search]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}.form-panel input[type=search]::-webkit-search-cancel-button,.form-panel input[type=search]::-webkit-search-decoration{-webkit-appearance:none}.form-panel fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}.form-panel legend{border:0;padding:0}.form-panel textarea{overflow:auto}.form-panel optgroup{font-weight:700}.form-panel table{border-collapse:collapse;border-spacing:0;max-width:100%;background-color:transparent}.form-panel td,.form-panel th{padding:0}.form-panel th{text-align:left}.form-panel .table{width:100%;margin-bottom:20px}.form-panel .table>tbody>tr>td,.form-panel .table>tbody>tr>th,.form-panel .table>tfoot>tr>td,.form-panel .table>tfoot>tr>th,.form-panel .table>thead>tr>td,.form-panel .table>thead>tr>th{padding:8px;line-height:1.42857143;vertical-align:top;border-top:1px solid #ddd}.form-panel .table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid #ddd}.form-panel .table>caption+thead>tr:first-child>td,.form-panel .table>caption+thead>tr:first-child>th,.form-panel .table>colgroup+thead>tr:first-child>td,.form-panel .table>colgroup+thead>tr:first-child>th,.form-panel .table>thead:first-child>tr:first-child>td,.form-panel .table>thead:first-child>tr:first-child>th{border-top:0}.form-panel .table>tbody+tbody{border-top:2px solid #ddd}.form-panel .table .table{background-color:#fff}.form-panel .table-condensed>tbody>tr>td,.form-panel .table-condensed>tbody>tr>th,.form-panel .table-condensed>tfoot>tr>td,.form-panel .table-condensed>tfoot>tr>th,.form-panel .table-condensed>thead>tr>td,.form-panel .table-condensed>thead>tr>th{padding:5px}.form-panel .table-bordered,.form-panel .table-bordered>tbody>tr>td,.form-panel .table-bordered>tbody>tr>th,.form-panel .table-bordered>tfoot>tr>td,.form-panel .table-bordered>tfoot>tr>th,.form-panel .table-bordered>thead>tr>td,.form-panel .table-bordered>thead>tr>th{border:1px solid #ddd}.form-panel .table-bordered>thead>tr>td,.form-panel .table-bordered>thead>tr>th{border-bottom-width:2px}.form-panel .table-striped>tbody>tr:nth-child(odd)>td,.form-panel .table-striped>tbody>tr:nth-child(odd)>th{background-color:#f9f9f9}.form-panel .table-hover>tbody>tr:hover>td,.form-panel .table-hover>tbody>tr:hover>th,.form-panel .table>tbody>tr.active>td,.form-panel .table>tbody>tr.active>th,.form-panel .table>tbody>tr>td.active,.form-panel .table>tbody>tr>th.active,.form-panel .table>tfoot>tr.active>td,.form-panel .table>tfoot>tr.active>th,.form-panel .table>tfoot>tr>td.active,.form-panel .table>tfoot>tr>th.active,.form-panel .table>thead>tr.active>td,.form-panel .table>thead>tr.active>th,.form-panel .table>thead>tr>td.active,.form-panel .table>thead>tr>th.active{background-color:#f5f5f5}.form-panel table col[class*=col-]{position:static;float:none;display:table-column}.form-panel table td[class*=col-],.form-panel table th[class*=col-]{position:static;float:none;display:table-cell}.form-panel .table-hover>tbody>tr.active:hover>td,.form-panel .table-hover>tbody>tr.active:hover>th,.form-panel .table-hover>tbody>tr>td.active:hover,.form-panel .table-hover>tbody>tr>th.active:hover{background-color:#e8e8e8}.form-panel .table>tbody>tr.success>td,.form-panel .table>tbody>tr.success>th,.form-panel .table>tbody>tr>td.success,.form-panel .table>tbody>tr>th.success,.form-panel .table>tfoot>tr.success>td,.form-panel .table>tfoot>tr.success>th,.form-panel .table>tfoot>tr>td.success,.form-panel .table>tfoot>tr>th.success,.form-panel .table>thead>tr.success>td,.form-panel .table>thead>tr.success>th,.form-panel .table>thead>tr>td.success,.form-panel .table>thead>tr>th.success{background-color:#dff0d8}.form-panel .table-hover>tbody>tr.success:hover>td,.form-panel .table-hover>tbody>tr.success:hover>th,.form-panel .table-hover>tbody>tr>td.success:hover,.form-panel .table-hover>tbody>tr>th.success:hover{background-color:#d0e9c6}.form-panel .table>tbody>tr.info>td,.form-panel .table>tbody>tr.info>th,.form-panel .table>tbody>tr>td.info,.form-panel .table>tbody>tr>th.info,.form-panel .table>tfoot>tr.info>td,.form-panel .table>tfoot>tr.info>th,.form-panel .table>tfoot>tr>td.info,.form-panel .table>tfoot>tr>th.info,.form-panel .table>thead>tr.info>td,.form-panel .table>thead>tr.info>th,.form-panel .table>thead>tr>td.info,.form-panel .table>thead>tr>th.info{background-color:#d9edf7}.form-panel .table-hover>tbody>tr.info:hover>td,.form-panel .table-hover>tbody>tr.info:hover>th,.form-panel .table-hover>tbody>tr>td.info:hover,.form-panel .table-hover>tbody>tr>th.info:hover{background-color:#c4e3f3}.form-panel .table>tbody>tr.warning>td,.form-panel .table>tbody>tr.warning>th,.form-panel .table>tbody>tr>td.warning,.form-panel .table>tbody>tr>th.warning,.form-panel .table>tfoot>tr.warning>td,.form-panel .table>tfoot>tr.warning>th,.form-panel .table>tfoot>tr>td.warning,.form-panel .table>tfoot>tr>th.warning,.form-panel .table>thead>tr.warning>td,.form-panel .table>thead>tr.warning>th,.form-panel .table>thead>tr>td.warning,.form-panel .table>thead>tr>th.warning{background-color:#fcf8e3}.form-panel .table-hover>tbody>tr.warning:hover>td,.form-panel .table-hover>tbody>tr.warning:hover>th,.form-panel .table-hover>tbody>tr>td.warning:hover,.form-panel .table-hover>tbody>tr>th.warning:hover{background-color:#faf2cc}.form-panel .table>tbody>tr.danger>td,.form-panel .table>tbody>tr.danger>th,.form-panel .table>tbody>tr>td.danger,.form-panel .table>tbody>tr>th.danger,.form-panel .table>tfoot>tr.danger>td,.form-panel .table>tfoot>tr.danger>th,.form-panel .table>tfoot>tr>td.danger,.form-panel .table>tfoot>tr>th.danger,.form-panel .table>thead>tr.danger>td,.form-panel .table>thead>tr.danger>th,.form-panel .table>thead>tr>td.danger,.form-panel .table>thead>tr>th.danger{background-color:#f2dede}.form-panel .table-hover>tbody>tr.danger:hover>td,.form-panel .table-hover>tbody>tr.danger:hover>th,.form-panel .table-hover>tbody>tr>td.danger:hover,.form-panel .table-hover>tbody>tr>th.danger:hover{background-color:#ebcccc}@media (max-width:767px){.form-panel .table-responsive{width:100%;margin-bottom:15px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:-ms-autohiding-scrollbar;border:1px solid #ddd;-webkit-overflow-scrolling:touch}.form-panel .table-responsive>.table{margin-bottom:0}.form-panel .table-responsive>.table>tbody>tr>td,.form-panel .table-responsive>.table>tbody>tr>th,.form-panel .table-responsive>.table>tfoot>tr>td,.form-panel .table-responsive>.table>tfoot>tr>th,.form-panel .table-responsive>.table>thead>tr>td,.form-panel .table-responsive>.table>thead>tr>th{white-space:nowrap}.form-panel .table-responsive>.table-bordered{border:0}.form-panel .table-responsive>.table-bordered>tbody>tr>td:first-child,.form-panel .table-responsive>.table-bordered>tbody>tr>th:first-child,.form-panel .table-responsive>.table-bordered>tfoot>tr>td:first-child,.form-panel .table-responsive>.table-bordered>tfoot>tr>th:first-child,.form-panel .table-responsive>.table-bordered>thead>tr>td:first-child,.form-panel .table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.form-panel .table-responsive>.table-bordered>tbody>tr>td:last-child,.form-panel .table-responsive>.table-bordered>tbody>tr>th:last-child,.form-panel .table-responsive>.table-bordered>tfoot>tr>td:last-child,.form-panel .table-responsive>.table-bordered>tfoot>tr>th:last-child,.form-panel .table-responsive>.table-bordered>thead>tr>td:last-child,.form-panel .table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.form-panel .table-responsive>.table-bordered>tbody>tr:last-child>td,.form-panel .table-responsive>.table-bordered>tbody>tr:last-child>th,.form-panel .table-responsive>.table-bordered>tfoot>tr:last-child>td,.form-panel .table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}}#import_form_baldrickModalBody,.cf-form-create,.cf-form-template,.cf-template-column{overflow:hidden}.form-panel .clearfix:after,.form-panel .clearfix:before{content:" ";display:table}.form-panel .clearfix:after{clear:both}.form-panel .center-block{display:block;margin-left:auto;margin-right:auto}.form-panel .pull-right{float:right!important}.form-panel .pull-left{float:left!important}.form-panel .hide{display:none!important}.form-panel .show{display:block!important}.form-panel .invisible{visibility:hidden}.form-panel .text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.form-panel .hidden{display:none!important;visibility:hidden!important}.form-panel .affix{position:fixed}#extend_cf_baldrickModalBody h2,.form-extend-page-wrap h2{font-size:1.1em;margin:0;padding:4px 6px 6px;color:inherit}.view_option_value{color:#afafaf}.entry-line{border-bottom:1px solid #ddd;margin-bottom:4px}.entry-line label{clear:left;float:left;font-weight:700;margin-bottom:3px;margin-right:8px;min-width:130px;text-transform:capitalize}.entry-line>div{display:inline-block;margin-bottom:4px;min-width:355px}.cf-table-viewer p{margin:0 0 4px}td.draft-form{box-shadow:2px 0 0 rgba(175,0,0,.6) inset;background-color:rgba(175,0,0,.09)}td.active-form{box-shadow:2px 0 0 #a3be5f inset}tr.form_entry_row.loading{opacity:.5}.caldera-editor-header .updated_notice_box{background:#fff;border-left:8px solid #afaf00;color:#333;display:inline-block;padding:10px 24px 10px 12px;position:absolute;top:-75px;box-shadow:0 3px 5px rgba(0,0,0,.2);z-index:99999}.cf-notification,.cf-notification-external{left:0;position:absolute;right:0;top:-45px}.tablenav.caldera-table-nav{clear:none;margin:10px 0}.caldera-table-nav .tablenav-pages .current-page{width:45px}.cf-notification-external{padding:0 1px 0 0}.cf-notification{background:#fff;border:1px solid #dfdfdf;border-radius:1px;box-shadow:0 2px 4px rgba(0,0,0,.08);padding:0}.cf-notification-notice{height:20px;overflow:hidden;padding:8px;text-overflow:ellipsis;white-space:nowrap}.cf-notification div.error{margin:1px 0 0!important}.cf-notification .dashicons.dashicons-warning{color:#dd3d36}.cf-notification .dashicons.dashicons-arrow-down,.cf-notification .dashicons.dashicons-arrow-up{cursor:pointer;float:right;padding:8px}.cf-form-template{border:2px dashed #cfcfcf;float:left;height:180px;margin:0 5px 10px;padding:5px;width:162px;border-radius:4px;position:relative}.cf-template-title{padding:2px 2px 0 0}.cf-form-create{background:#a3be5f;border-radius:4px;bottom:-2px;padding:5px;position:absolute;top:-2px;width:362px;z-index:100}.caldera-grid.cf-form-create button.cf-change-template-button,.caldera-grid.cf-form-create button.cf-create-form-button{background-color:#fff;color:#93ae4f;border:1px solid #93ae4f;border-radius:3px;display:inline-block;margin:24px 0;padding:9px;width:174px}.caldera-grid.cf-form-create button.cf-change-template-button:hover,.caldera-grid.cf-form-create button.cf-create-form-button:hover{background-color:#efefef;color:#7e943d}.caldera-grid.cf-form-create button.cf-change-template-button.cf-loading-form{background:#a3be5f;color:#fff}.caldera-grid.cf-form-create button.cf-loading-form .dashicons{display:none}.caldera-grid.cf-form-create button.cf-create-form-button .spinner{display:none;margin:-1px 0;float:none}.caldera-grid.cf-form-create button.cf-loading-form,.caldera-grid.cf-form-create button.cf-loading-form:hover{background:#efefef;border-color:#bfbfbf;color:#7f7f7f;cursor:default}.caldera-grid.cf-form-create button.cf-loading-form .spinner{display:inline-block;visibility:visible}.cf-form-template>input{display:none}.cf-form-template:hover{border:2px dashed #a3be5f;background-color:#efefef}.cf-form-template.selected{background-color:#a3be5f;border:2px dashed #a3be5f;color:#fff}.cf-templates-wrapper{overflow:auto;padding-top:20px}.cf-form-template small{display:block;padding:0 3px}.cf-form-template small.cf-preview-field{border-bottom:1px solid #dfdfdf;font-size:55%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cf-preview-field.cf-preview-button{background:#d1d1d1;border-radius:2px;display:inline-block;margin:5px 3px 0;padding:0 9px;color:#333}.cf-form-template.selected .cf-preview-field.cf-preview-button{background-color:#fff}.cf-form-template small.cf-preview-field.cf-preview-field-html{background:rgba(0,0,0,.1);border:0;height:15px}.switch,.switch .box{border-radius:50px;cursor:pointer}.caldera-settings{float:left;width:270px}.caldera-settings strong{display:block}.caldera-setting{display:block;float:right;height:35px;padding:14px;width:50px}.caldera-settings-group{border-bottom:1px solid #efefef;display:block;margin-bottom:10px;padding-bottom:10px;clear:both}.switch{background:#efefef;box-shadow:0 0 3px rgba(0,0,0,.14) inset;height:20px;overflow:hidden;width:42px;transition:background-color 1s ease 0s;position:relative}.box-wrapper{height:21px;position:absolute;width:100%}.switch.active{background:#a3be5f}.switch .box{background:#fff;box-shadow:0 0 4px rgba(0,0,0,.26),0 0 1px #333 inset;height:20px;width:50%;transition:margin .5s ease 0s}.switch.active .box{margin-left:50%}.switch.load .box{background-color:#a6a6a6}.switch.load .box .spinner{margin:0;opacity:.51;visibility:visible}input.cf-shortcode-preview{background:#efefef;border:none;box-shadow:none;display:none;font-size:13px;padding:2px;vertical-align:top;width:260px}@media screen and (max-width:782px){.caldera-editor-header-nav>li.caldera-forms-toolbar-item.separator,li.caldera-forms-version{display:none}.caldera-editor-header{height:47px;margin:-10px;overflow:hidden;padding-top:0;top:57px}.caldera-entry-exporter{margin-top:-30px}.caldera-forms-toolbar-item .button.cf-general-settings{padding:6px 8px}#form-entries-viewer{padding-top:12px}.cf-tools-row{white-space:nowrap}}.caldera-table-nav .tablenav-pages{text-align:right;float:right;width:auto}@media screen and (max-width:600px){.caldera-editor-logo>span.dashicons-cf-logo{font-size:31px;line-height:22px}.caldera-forms-name{display:none}.caldera-editor-header{position:absolute}.tablenav.caldera-table-nav{clear:none;margin:0;text-align:center}.caldera-table-nav .tablenav-pages{text-align:center;width:100%}}@media screen and (max-width:570px){.cf-tools-row{display:block;width:100%;margin-bottom:10px}.cf-tools-row-second{margin-left:50px}}@media screen and (max-width:450px){.form-panel-wrap{width:290px}.screen-per-page{display:block;margin:0 auto 10px;width:68px}}.caldera-config-group p.description{margin:0 0 24px}@media screen and (max-width:1000px){#caldera-forms-clippy{display:none;visibility:hidden}}@media screen and (min-width:1000px){#caldera-forms-clippy{display:block;visibility:visible}.caldera-forms-clippy-zone{width:100%;max-width:400px;min-width:200px;background-position-x:105%;background-repeat:no-repeat;margin-bottom:20px}.caldera-forms-clippy-zone-inner-wrap{margin-left:25px;border-right:35px solid #f9f9f9;background-color:#f9f9f9;opacity:.9}.caldera-forms-clippy{opacity:1;padding:8px;border:0;border-radius:4px;width:100%}.caldera-forms-clippy a.btn,.caldera-forms-clippy h2{text-align:center}.caldera-forms-clippy a.btn{width:100%;padding-right:4px}.caldera-forms-clippy .btn-green:hover,.caldera-forms-clippy .caldera-grid button:hover,.caldera-forms-clippy .caldera-grid html input[type=button]:hover,.caldera-forms-clippy .caldera-grid input[type=reset]:hover,.caldera-forms-clippy .caldera-grid input[type=submit]:hover{background:#ff7e30}.caldera-forms-clippy .btn{-moz-appearance:none;-webkit-appearance:none;-ms-appearance:none;appearance:none;-moz-transition:background-color .2s ease-in-out,color .2s ease-in-out,box-shadow .2s ease-in-out;-webkit-transition:background-color .2s ease-in-out,color .2s ease-in-out,box-shadow .2s ease-in-out;-ms-transition:background-color .2s ease-in-out,color .2s ease-in-out,box-shadow .2s ease-in-out;transition:background-color .2s ease-in-out,color .2s ease-in-out,box-shadow .2s ease-in-out;background-color:transparent;border-radius:4px;border:0;box-shadow:inset 0 0 0 2px #fff;color:#fff;cursor:pointer;display:inline-block;font-size:.8em;font-weight:900;height:3.5em;letter-spacing:.35em;line-height:3.45em;overflow:hidden;padding:0 1.25em 0 1.6em;text-align:center;text-decoration:none;text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap}.caldera-forms-clippy .btn.btn-sm{font-size:.6em}.caldera-forms-clippy .diff-btn li{padding:1em 0 0}.caldera-forms-clippy a.btn,.caldera-forms-clippy a.btn.btn-green{background-color:#a3bf61}.caldera-forms-clippy a.btn.btn-orange{background-color:#ff7e30}.caldera-forms-clippy a.btn.btn-grey{background-color:#3a3a3c}.caldera-forms-clippy .btn:active:focus,.caldera-forms-clippy .btn:focus,.caldera-forms-clippy a:focus,.caldera-forms-clippy button:focus,.caldera-forms-clippy input[type=checkbox]:focus,.caldera-forms-clippy input[type=radio]:focus,.caldera-forms-clippy input[type=file]:focus{outline:0}.caldera-forms-clippy a.btn:hover{background-color:#ff7e30}.caldera-forms-clippy a.btn.btn-orange:hover{background-color:#a3bf61}}.caldera-config-group p.description.help-block{margin-top:-12px;margin-bottom:12px}li.caldera-editor-logo{background-image:url(../images/caldera-globe-logo-sm.png);background-repeat:no-repeat;background-position-y:10%;background-size:40px}.caldera-forms-name{margin-left:44px}img.form-modal-lgo.form-modal-lgo-svg{opacity:.4}span.cf-form-shortcode-preview{background:#fff;font-size:1em;color:#000;border:1px solid #a3bf61;cursor:pointer;display:block;padding:2px;border-radius:2px}span.cf-form-shortcode-preview:hover{color:#fff;background-color:#ff7e30}span.cf-form-name-preview{font-weight:700}a.disabled{color:#8e8e8e}button.button.button-small.toggle-remove-option{width:100%}.option-setting input{width:70%!important;float:left;display:inline}label.option-setting-label{display:inline;width:50%;float:left}.toggle_option_row{border:1px solid #cfcfcf;border-radius:4px;padding:2px}li.caldera-forms-toolbar-item.success{background:#ff7e30;color:#fff;font-weight:500;margin-top:4px;border-radius:2px;text-align:center}.caldera-editor-header{height:50px!important}.cf-alert{display:inline-block;padding:4px;border-radius:4px}.cf-alert-success{background:#a3bf61;color:#fff}.cf-alert-error{background:red;color:#fff}.cf-alert-wrap{margin-top:-5px}.cf-alert p{padding:0}#cf-pro-save{width:50%}.caldera-config-field .cf-alert.cf-alert-error p{margin:0}[v-cloak]{display:none;visibility:hidden}.cf-show{visibility:visible;display:inline-block;-webkit-animation:fadein .5s 1;animation:fadein .5s 1}.cf-hide{visibility:hidden;display:none;-webkit-animation:fadeout .5s 1;animation:fadeout .5s 1}
|
1 |
+
@font-face{font-family:caldera-forms;src:url(fonts/caldera-forms.eot?7moc5h);src:url(fonts/caldera-forms.eot?#iefix7moc5h) format('embedded-opentype'),url(fonts/caldera-forms.woff?7moc5h) format('woff'),url(fonts/caldera-forms.ttf?7moc5h) format('truetype'),url(fonts/caldera-forms.svg?7moc5h#caldera-forms) format('svg');font-weight:400;font-style:normal}[class*=" icn-"],[class^=icn-]{font-family:caldera-forms;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icn-field:before{content:"\e60b"}.icn-right:before{content:"\e60c"}.icn-equalizer:before{content:"\e60d"}.icn-cog:before{content:"\e605"}.icn-check:before{content:"\e606"}.icn-plus:before{content:"\e607"}.icn-radio-checked:before{content:"\e608"}.icn-radio-unchecked:before{content:"\e609"}.icn-code:before{content:"\e60a"}.icn-duplicate:before{content:"\e600"}.icn-folder:before{content:"\e601"}.icn-delete:before{content:"\e602"}.icn-repeat:before{content:"\e603"}.icn-cf:before{content:"\e604"}#wpbody-content>div.error,#wpbody-content>div.updated{margin:50px 27px -50px 2px}.caldera-editor-header-nav.spinner{display:block;margin:10px 0 -6px}.caldera-editor-header-nav>li.caldera-forms-headtext{display:block;padding:12px 0 0;color:#737373}.caldera-editor-header-nav>li.sub-meta-line{padding:9px}.toggle_option_row{margin:4px 0}.toggle_option_row input{display:inline}.caldera-group-panel .add-new-h2,.caldera-mini-list .caldera-group-description,.caldera-mini-list .caldera-group-footer{display:none}.toggle_option_row .dashicons-sort{cursor:all-scroll}.toggle_option_tab,.toggle_processor_event{float:right;margin:0 6px 0 0}.toggle_option_tab .button,.toggle_processor_event .button{border-radius:0;margin-right:-5px}.toggle_option_tab .button:last-child,.toggle_processor_event .button:last-child{border-top-right-radius:3px;border-bottom-right-radius:3px}.toggle_option_tab .button:first-child,.toggle_processor_event .button:first-child{border-top-left-radius:3px;border-bottom-left-radius:3px}.toggle_option_preview .button{border-radius:0;margin-right:-5px}.toggle_option_preview .button:first-child{border-radius:3px 0 0 3px}.toggle_option_preview .button:last-child{border-radius:0 3px 3px 0}.toplevel_page_caldera-forms .wrap{padding-top:35px}.caldera-entry-exporter{float:left;margin-top:-38px}.caldera-group-panel{width:350px;padding:12px 12px 0;float:left;background-color:#fff;border:1px solid #dfdfdf;box-shadow:0 1px 1px rgba(0,0,0,.04);margin:0 10px 10px 0;height:200px}.caldera-group-description{height:75px;margin-right:-12px;overflow:auto;padding:5px 10px 5px 0}.caldera-group-panel .description{color:#AFAFAF;float:right}.caldera-group-panel.new-element{background:rgba(0,0,0,0);border:5px dashed #E0E0E0;border-radius:2px;box-shadow:none;height:192px;width:342px;position:relative;text-align:center}.caldera-group-panel.caldera-mini-list{height:61px;width:250px}.caldera-group-panel.caldera-mini-list.new-element{height:54px}.caldera-group-panel.caldera-mini-list.new-element-form{width:350px;height:200px}.caldera-group-panel.caldera-mini-list.new-element-form .caldera-group-footer{display:block}.caldera-group-panel.new-element .caldera-new-element{display:none}.caldera-group-panel textarea{height:82px;margin:15px 1px 20px;width:100%}select.caldera-type-selector{display:block;float:right;margin-top:1px;width:140px}.caldera-group-panel.new-element .add-new-h2{display:inline-block;margin-top:80px}.caldera-group-panel.caldera-mini-list.new-element .add-new-h2{margin-top:10px}.caldera-group-panel.new-element.new-element-form .add-new-h2{margin-top:80px}.caldera-group-panel .has-error,.caldera-processor-nav.has-error{border-color:red!important}.caldera-group-panel .has-error:focus,.caldera-processor-nav.has-error a,.layout-form-field.has-error .preview-caldera-config-group{box-shadow:0 0 2px rgba(255,0,0,.8)}.caldera-config-group-toggle-options{margin-bottom:20px}.caldera-group-panel h3{border-bottom:1px solid #DFDFDF;font-size:1.2em;font-weight:400;margin:0 -12px;padding:0 12px 12px}.caldera-group-footer{background-color:#F7F7F7;border-top:1px solid #DFDFDF;margin:0 -12px;padding:12px;text-align:right}.caldera-delete-element{display:inline-block;margin-top:6px}.caldera-panel-info{background:#f8f8f8;display:block;list-style:none;margin:0 -12px;padding:6px;border-bottom:1px solid #DFDFDF}.caldera-panel-info>li{display:inline-block;margin:0;padding:0;width:100px;color:#7f7f7f}.caldera-editor-header{background:#FFF;border-bottom:1px solid #DFDFDF;box-shadow:0 1px 1px rgba(0,0,0,.04);clear:both;margin:-10px -20px 0 -22px;padding:0 12px;position:fixed;top:42px;width:100%;z-index:100}.caldera-editor-header.caldera-editor-subnav{background-color:#f0f0f0;top:84px}.caldera-editor-header .button.caldera-header-preview-button,.caldera-editor-header .button.caldera-header-save-button,.caldera-editor-header .caldera-header-email-preview-button,.caldera-header-restore-button,.caldera-header-return-button{float:left;margin:7px 12px 0;position:relative}.caldera-header-restore-button,.caldera-header-return-button{margin:7px 12px 0!important}.caldera-editor-header-nav{list-style:none;margin:0;min-height:38px;float:left}.caldera-editor-header-nav>li{float:left;margin:0;padding:0}.caldera-editor-header-nav li.caldera-element-type-label{background-color:#F8F8F8;color:#8F8F8F;display:inline-block;padding:12px}li.caldera-forms-version{color:#AFAFAF;font-size:.8em;padding:12px 0 10px}li.caldera-editor-logo{font-size:18px;font-weight:300;padding:11px 12px 11px 0}.caldera-editor-header-nav>li a{display:inline-block;padding:12px;text-decoration:none;color:#839e3f}.caldera-editor-header-nav>li.active a{background:#a3be5f;color:#fff}.caldera-editor-header-nav>li.caldera-forms-toolbar-item{padding:6px 6px 6px 12px}.caldera-editor-header-nav>li.caldera-forms-toolbar-item.separator{border-right:1px solid #efefef;height:29px;margin-right:10px;padding:6px 0 6px 12px}.caldera-editor-body .users-settings-input{width:350px}.caldera-editor-body .block-input,.caldera-editor-body .button.block-button{width:100%}.caldera-editor-section{clear:both}.caldera-editor-fields-panel,.caldera-editor-groups-panel{float:left;width:180px;margin-right:15px}.caldera-editor-fields-panel ul,.caldera-editor-groups-panel>ul{margin:6px 0 0;padding:0}.caldera-editor-fields-panel li,.caldera-editor-groups-panel li{border-bottom:1px solid #DFDFDF;margin:0}.icn-right.pull-right{float:right;margin:2px -2px 0 0;display:none}.caldera-group-nav.is-admin span{color:#EF1010}.caldera-field-line.active .icn-right,.caldera-group-nav.active .icn-right{display:block}.caldera-editor-fields-panel a,.caldera-editor-groups-panel a{color:#6F6F6F;display:block;padding:6px;text-decoration:none}.caldera-editor-fields-panel a:hover,.caldera-editor-fields-panel li.active a,.caldera-editor-groups-panel a:hover,.caldera-editor-groups-panel li.active a{background:#E8E8E8}.caldera-editor-fields-panel .button.add-field{width:140px}.caldera-editor-fields-panel .button.icon-button{float:right}.caldera-editor-group-settings{margin-top:5px;padding-top:5px}.caldera-editor-group-settings .block-input{margin:2px 0}.caldera-editor-field-config{float:left;width:350px}.layout-form-field{background:#fff;padding:5px}.layout-form-field .dashicons-admin-page,.layout-form-field .icon-edit{background:#efefef;color:#707070;position:absolute;top:12px;z-index:999}.layout-form-field .control-label{padding:0 0 5px;display:block}.layout-form-field .field_preview{min-height:38px;border:1px solid transparent}.preview-caldera-config-group{padding:6px}.preview-field-config{width:100%}.layout-form-field .icon-edit{border-radius:4px;border:1px solid #bfbfbf;padding:5px;right:12px}.layout-form-field .dashicons-admin-page{border:1px solid #bfbfbf;border-radius:4px;font-size:16px;height:25px;line-height:25px;padding:0;right:40px;width:25px}.layout-form-field .dashicons-admin-page:hover,.layout-form-field .icon-edit:hover{background:#fcfcfc;color:#505050}.layout-form-field.ui-sortable-helper{border-radius:3px;box-shadow:0 2px 8px rgba(0,0,0,.2)}.field_preview .help-block{display:block;margin:5px 0;font-style:italic;color:#8f8f8f}.field-edit-open .field_preview{background:#eff5f5;border:1px solid #40a4cf;border-radius:3px}.layout-new-form-field .field_preview{display:none}.has-error .field_preview{border:1px solid red}textarea.block-input.field-config{height:100px;width:100%}.block-input.field-config{width:100%;line-height:20px}.field-config.field-checkbox{margin-top:4px}#new_form_baldrickModalBody .new-form-name.block-input.field-config{background-color:#fff;border-color:#779233;box-shadow:0 1px 4px rgba(0,0,0,.4) inset;color:#333;margin-top:17px;padding:7px}#new_form_baldrickModalBody .new-form-name.block-input.field-config.has-error{border-color:red}h3.caldera-editor-field-title{border-bottom:1px solid #CFCFCF;font-size:18px;font-weight:400;margin:0 0 6px;padding:5px 0 12px;color:#3f3f3f}.caldera-editor-body.caldera-config-editor-panel.caldera-config-has-side{margin-right:420px}.caldera-config-editor-main-panel{float:left;width:100%}.caldera-config-editor-side-panel{bottom:30px;overflow-y:scroll;padding-right:15px;position:fixed;right:0;top:172px;width:400px}.caldera-config-editor-panel-group{border-bottom:1px solid #DFDFDF;margin-bottom:30px;padding-bottom:20px}.caldera-config-editor-panel .add-new-h2,.caldera-config-editor-panel .add-new-h2:active{font-size:10px;margin:4px 10px}.add-new-h2.caldera-add-page,.add-new-h2.caldera-add-page:active{margin-left:0}.caldera-config-group label{display:block;margin:4px 0 0}.caldera-config-group legend,.caldera-config-group>label,.caldera-config-group>legend{float:left;margin:-2px 0 0 -140px;padding:6px 0;width:110px}.form-extend-page-wrap.spinner{float:none}.form-extend-page-wrap .caldera-config-group>label,.form-extend-page-wrap .caldera-config-group>legend{margin-left:-340px;width:330px}.caldera-config-group .field-key{float:left;margin:1px 0 0 -140px;width:120px}.caldera-config-group.caldera-config-group-full>label{margin:0}.caldera-config-group{clear:both;margin:0 5px 0 140px}.form-extend-page-wrap .caldera-config-group{margin-left:340px}.caldera-config-group.caldera-config-group-full{margin-left:0}.caldera-config-field{display:inline-block;margin-bottom:12px;width:100%;position:relative}.magic-tags-autocomplete{background-color:#fff;border:1px solid #ddd;box-shadow:0 1px 2px rgba(0,0,0,.07);box-sizing:border-box;margin:1px;max-height:160px;overflow:auto;padding:0;position:absolute;top:auto;width:100%;z-index:999999}.toggle_option_row .magic-tags-autocomplete{width:279px}.magic-tags-autocomplete>ul{margin:0;padding:0}.magic-tags-autocomplete>ul>li{border-bottom:1px solid #dfdfdf;margin:0;padding:5px 6px 6px 12px;white-space:nowrap}.magic-tags-autocomplete>ul>li.header{border-bottom:1px solid #dfdfdf;font-style:italic;font-weight:700;margin:0;padding:5px 6px 6px}.magic-tags-autocomplete>ul>li.tag{cursor:pointer}.magic-tags-autocomplete>ul>li.tag:hover{background:#f5f5f5}.magic-tags-autocomplete>ul>li.tag>strong{color:#df2020}.caldera-config-field-break{clear:both;display:block;margin-bottom:6px}.caldera-editor-body{min-height:400px;padding-top:95px;position:relative}.caldera-code-editor-panel{padding-top:90px}.caldera-editor-body .new-field-input,.caldera-editor-body .new-group-input{margin-top:10px}.caldera-editor-body .button.repeat-config-button{margin-top:10px;margin-bottom:5px}.caldera-meta-box{margin-right:15px}.caldera-meta-side{width:280px}.caldera-meta-normal{max-width:700px}.caldera-config-editor-main-panel>h3,.caldera-editor-body>h3{background-color:#F4F4F4;box-shadow:0 1px 1px rgba(0,0,0,.09);color:#636363;font-weight:400;margin:-11px 4px 12px -10px;padding:10px 10px 6px;position:fixed;top:128px;width:100%;z-index:99}.caldera-config-editor-main-panel h3 .layout-new-form-field{margin-top:-3px}.ui-draggable-dragging{z-index:100}.button.button-small.layout-new-form-field.ui-draggable.ui-draggable-dragging{z-index:999999}.button.button-small.layout-new-form-field.ui-draggable{cursor:all-scroll}@media screen and (max-width:782px){.caldera-editor-body>h3{top:143px;padding:10px 10px 12px 20px}.add-new-h2.caldera-add-group{padding:4px 8px}}@media screen and (max-width:600px){.caldera-editor-body>h3{top:143px;position:absolute}}.caldera-editor-body .pull-right{float:right}.caldera-editor-body .postbox h3.hndle{cursor:default}input.has-error,input.has-error:focus,select.has-error,select.has-error:focus,textarea.has-error,textarea.has-error:focus{border-color:red;box-shadow:0 0 2px rgba(255,0,0,.8)}a span.error-tag{background:#DF1010;border-radius:3px;color:#FFF;font-weight:700;margin-left:8px;padding:0 5px}#general_settings_baldrickModalBody,#user_profile_baldrickModalBody{padding:0}.form-admin-page-wrap{margin:50px 0 0 430px}.form-extend-page-wrap{margin:100px 0 0}.form-panel-wrap{float:left;margin-left:-430px;width:430px;position:relative}.form-entries-wrap{padding:0 0 0 30px}.form-entries-wrap .caldera-forms-entry-exporter{margin-top:1px}.form-panel.postbox{border-left:6px solid #E5E5E5;float:left;margin-right:20px;padding:6px 5px 5px 12px;min-width:350px;max-width:350px;border-radius:0}.list.form-panel.postbox{float:none;min-width:100%;max-width:100%;width:auto;overflow:auto;box-sizing:border-box}.form-extend-page-wrap .list.form-panel.postbox{-moz-box-sizing:border-box;box-sizing:border-box}.form-panel.postbox h4{cursor:pointer;font-size:1em;height:15px;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.form-panel.postbox h5{color:#8F8F8F;height:12px;margin:4px 0;overflow:hidden;text-overflow:ellipsis;width:100%}.form-panel.postbox .avatar-link{background-color:#FFF;border:3px solid #E5E5E5;border-radius:100%;cursor:pointer;display:block;height:28px;left:-20px;overflow:hidden;position:absolute;top:-18px;width:28px}.form-panel .cf-deleted-row td{opacity:.2}.form-panel .cf-deleted-row .view-entry-btn{display:none}.form-panel .cf-deleted-row td:last-child{opacity:1}.avatar-link .avatar{max-width:100%;max-height:100%}.form-controls{bottom:0;list-style:none;margin:0;position:absolute;right:0}.form-controls>li,.modal-side-tabs>li{display:inline-block;float:left;margin:0}.form-controls>li .form-control,.modal-side-tabs>li .modal-side-tab{background:#F7F7F7;display:block;margin:0;padding:6px 10px;text-decoration:none;color:#8F8F8F}.form-controls>li .form-control:hover,.modal-side-tabs>li .modal-side-tab:hover{background-color:#efefef}.form-controls>li.form-delete{float:right}.form-controls>li.form-delete .form-control{background:rgba(0,0,0,0);color:#DF1010;visibility:hidden}.modal-inside .modal-side-bar,.modal-side-bar .modal-side-tabs{background-color:#DFDFDF;bottom:0;overflow:auto;top:0;position:absolute}.form-panel:hover .form-controls>li.form-delete .form-control{text-decoration:underline;visibility:visible}.caldera-manage-groups-tip{padding:10px 0;text-align:center}.modal-inside{height:100%;margin-left:170px;padding-right:10px;overflow:auto}.modal-inside .modal-side-bar{left:0;width:150px}.user-avatar,.user-avatar img{float:left}.modal-side-bar .modal-side-tabs{margin:0;width:100%;min-height:100px}.modal-side-bar.has-avatar .modal-side-tabs{top:150px}.modal-side-tabs>li .modal-side-tab{background-color:#989898;color:#FFF}.modal-side-tabs>li .modal-side-tab:hover{background-color:#efefef;color:#585858}.modal-side-tabs>li .modal-side-tab.active{background-color:#FFF;color:#585858}.modal-side-bar .modal-side-tabs>li{width:100%}.tab-detail-panel{float:right;width:100%}.user-field-lable{display:inline-block;width:80px;color:#898989}input.disabled-input{background-color:#EFEFEF;box-shadow:none}.tab-detail-panel>h4{font-weight:700;margin:0 0 12px}.tab-detail-panel>h4 small{color:#A9A9A9;font-style:italic;font-weight:400}.tab-detail-panel .caldera-repeater-group{margin-bottom:12px}.avatar-column,.avatar-mini,.avatar-wall{margin:0;cursor:pointer}.caldera-repeater-group-control{background:#F7F7F7;border:1px solid #F4F4F4;clear:both;padding:6px;text-align:right}.caldera-repeater-group:hover .caldera-repeater-group-control.row-actions{visibility:visible}.tab-detail-panel .caldera-repeater-group hr{clear:both}.caldera-modal-body.spinner{background-position:12px 12px;min-height:44px;display:block;float:none;text-align:center;width:100%}#form-entries-viewer.spinner{display:block;visibility:visible;float:left;height:22px;padding:0;width:22px}#form-entries-viewer.spinner div,#form-entries-viewer.spinner p,.popover{display:none}.avatar-wall,.avatar-wall img{width:80px;height:80px}.form-panel.postbox .avatar-link.Administrator{border-color:#B5CF75}.form-panel.postbox.ajax-trigger{cursor:pointer}.form-panel.postbox.ajax-trigger:hover{background-color:#f7f7f7}.avatar-wall{float:left}.avatar-mini,.avatar-mini img{width:40px;height:40px}.avatar-mini{float:left}.avatar-column,.avatar-column img{width:30px;height:30px}.user-name{cursor:pointer}.popover{position:absolute;top:0;left:0;z-index:1010;max-width:276px;padding:1px;text-align:left;background-color:#fff;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.2);border-radius:3px;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.1);box-shadow:0 1px 1px rgba(0,0,0,.1);white-space:normal}.popover.top{margin-top:-10px}.popover.right{margin-left:10px}.popover.bottom{margin-top:10px}.popover.left{margin-left:-10px}.popover-title{margin:0;padding:8px 14px;font-size:14px;font-weight:400;line-height:18px;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-radius:5px 5px 0 0}.popover-content{padding:8px}.popover>.pointer,.popover>.pointer:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.popover>.pointer{border-width:9px}.popover>.pointer:after{border-width:8px;content:""}.popover.bottom>.pointer:after,.popover.left>.pointer:after,.popover.right>.pointer:after,.popover.top>.pointer:after{content:" "}.popover.top>.pointer{left:50%;margin-left:-9px;border-bottom-width:0;border-top-color:#999;border-top-color:rgba(0,0,0,.1);bottom:-9px}.popover.top>.pointer:after{bottom:1px;margin-left:-8px;border-bottom-width:0;border-top-color:#fff}.popover.right>.pointer{top:50%;left:-9px;margin-top:-9px;border-left-width:0;border-right-color:#999;border-right-color:rgba(0,0,0,.1)}.popover.right>.pointer:after{left:1px;bottom:-8px;border-left-width:0;border-right-color:#fff}.popover.bottom>.pointer{left:50%;margin-left:-9px;border-top-width:0;border-bottom-color:#999;border-bottom-color:rgba(0,0,0,.1);top:-9px}.popover.bottom>.pointer:after{top:1px;margin-left:-8px;border-top-width:0;border-bottom-color:#fff}.popover.left>.pointer{top:50%;right:-9px;margin-top:-9px;border-right-width:0;border-left-color:#999;border-left-color:rgba(0,0,0,.1)}.popover.left>.pointer:after{right:1px;border-right-width:0;border-left-color:#fff;bottom:-8px}.image-thumb{margin-left:68px;padding:6px 0 6px 6px}.popover-side-bar{float:left;margin-left:-68px;width:62px}.image-thumb .popover-main-content{margin-right:6px}.popover-main-content select{width:100%}.popover-content.image-thumb .button.popover-button{margin:0 0 3px;width:100%}.popover-content.image-thumb .popover-main-content .button.popover-button{margin:6px 0 0}.tab-detail-panel .button.caldera-add-group{margin-bottom:10px!important}.spinner.loading{display:inline;visibility:visible}.form-panel html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}.form-panel body{margin:0}.form-panel article,.form-panel aside,.form-panel details,.form-panel figcaption,.form-panel figure,.form-panel footer,.form-panel header,.form-panel hgroup,.form-panel main,.form-panel nav,.form-panel section,.form-panel summary{display:block}.form-panel audio,.form-panel canvas,.form-panel progress,.form-panel video{display:inline-block;vertical-align:baseline}.form-panel audio:not([controls]){display:none;height:0}.form-panel [hidden],.form-panel template{display:none}.form-panel a{background:0 0}.form-panel a:active,.form-panel a:hover{outline:0}.form-panel abbr[title]{border-bottom:1px dotted}.form-panel b,.form-panel strong{font-weight:700}.form-panel dfn{font-style:italic}.form-panel h1{font-size:2em;margin:.67em 0}.form-panel mark{background:#ff0;color:#000}.form-panel small{font-size:80%}.form-panel sub,.form-panel sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.form-panel sup{top:-.5em}.form-panel sub{bottom:-.25em}.form-panel img{border:0}.form-panel svg:not(:root){overflow:hidden}.form-panel figure{margin:1em 40px}.form-panel hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}.form-panel pre{overflow:auto}.form-panel code,.form-panel kbd,.form-panel pre,.form-panel samp{font-family:monospace,monospace;font-size:1em}.form-panel button,.form-panel input,.form-panel optgroup,.form-panel select,.form-panel textarea{color:inherit;font:inherit;margin:0}.form-panel button{overflow:visible}.form-panel button,.form-panel select{text-transform:none}.form-panel button,.form-panel html input[type=button],.form-panel input[type=reset],.form-panel input[type=submit]{-webkit-appearance:button;cursor:pointer}.form-panel button[disabled],.form-panel html input[disabled]{cursor:default}.form-panel button::-moz-focus-inner,.form-panel input::-moz-focus-inner{border:0;padding:0}.form-panel input{line-height:normal}.form-panel input[type=checkbox],.form-panel input[type=radio]{box-sizing:border-box;padding:0}.form-panel input[type=number]::-webkit-inner-spin-button,.form-panel input[type=number]::-webkit-outer-spin-button{height:auto}.form-panel input[type=search]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}.form-panel input[type=search]::-webkit-search-cancel-button,.form-panel input[type=search]::-webkit-search-decoration{-webkit-appearance:none}.form-panel fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}.form-panel legend{border:0;padding:0}.form-panel textarea{overflow:auto}.form-panel optgroup{font-weight:700}.form-panel table{border-collapse:collapse;border-spacing:0;max-width:100%;background-color:transparent}.form-panel td,.form-panel th{padding:0}.form-panel th{text-align:left}.form-panel .table{width:100%;margin-bottom:20px}.form-panel .table>tbody>tr>td,.form-panel .table>tbody>tr>th,.form-panel .table>tfoot>tr>td,.form-panel .table>tfoot>tr>th,.form-panel .table>thead>tr>td,.form-panel .table>thead>tr>th{padding:8px;line-height:1.42857143;vertical-align:top;border-top:1px solid #ddd}.form-panel .table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid #ddd}.form-panel .table>caption+thead>tr:first-child>td,.form-panel .table>caption+thead>tr:first-child>th,.form-panel .table>colgroup+thead>tr:first-child>td,.form-panel .table>colgroup+thead>tr:first-child>th,.form-panel .table>thead:first-child>tr:first-child>td,.form-panel .table>thead:first-child>tr:first-child>th{border-top:0}.form-panel .table>tbody+tbody{border-top:2px solid #ddd}.form-panel .table .table{background-color:#fff}.form-panel .table-condensed>tbody>tr>td,.form-panel .table-condensed>tbody>tr>th,.form-panel .table-condensed>tfoot>tr>td,.form-panel .table-condensed>tfoot>tr>th,.form-panel .table-condensed>thead>tr>td,.form-panel .table-condensed>thead>tr>th{padding:5px}.form-panel .table-bordered,.form-panel .table-bordered>tbody>tr>td,.form-panel .table-bordered>tbody>tr>th,.form-panel .table-bordered>tfoot>tr>td,.form-panel .table-bordered>tfoot>tr>th,.form-panel .table-bordered>thead>tr>td,.form-panel .table-bordered>thead>tr>th{border:1px solid #ddd}.form-panel .table-bordered>thead>tr>td,.form-panel .table-bordered>thead>tr>th{border-bottom-width:2px}.form-panel .table-striped>tbody>tr:nth-child(odd)>td,.form-panel .table-striped>tbody>tr:nth-child(odd)>th{background-color:#f9f9f9}.form-panel .table-hover>tbody>tr:hover>td,.form-panel .table-hover>tbody>tr:hover>th,.form-panel .table>tbody>tr.active>td,.form-panel .table>tbody>tr.active>th,.form-panel .table>tbody>tr>td.active,.form-panel .table>tbody>tr>th.active,.form-panel .table>tfoot>tr.active>td,.form-panel .table>tfoot>tr.active>th,.form-panel .table>tfoot>tr>td.active,.form-panel .table>tfoot>tr>th.active,.form-panel .table>thead>tr.active>td,.form-panel .table>thead>tr.active>th,.form-panel .table>thead>tr>td.active,.form-panel .table>thead>tr>th.active{background-color:#f5f5f5}.form-panel table col[class*=col-]{position:static;float:none;display:table-column}.form-panel table td[class*=col-],.form-panel table th[class*=col-]{position:static;float:none;display:table-cell}.form-panel .table-hover>tbody>tr.active:hover>td,.form-panel .table-hover>tbody>tr.active:hover>th,.form-panel .table-hover>tbody>tr>td.active:hover,.form-panel .table-hover>tbody>tr>th.active:hover{background-color:#e8e8e8}.form-panel .table>tbody>tr.success>td,.form-panel .table>tbody>tr.success>th,.form-panel .table>tbody>tr>td.success,.form-panel .table>tbody>tr>th.success,.form-panel .table>tfoot>tr.success>td,.form-panel .table>tfoot>tr.success>th,.form-panel .table>tfoot>tr>td.success,.form-panel .table>tfoot>tr>th.success,.form-panel .table>thead>tr.success>td,.form-panel .table>thead>tr.success>th,.form-panel .table>thead>tr>td.success,.form-panel .table>thead>tr>th.success{background-color:#dff0d8}.form-panel .table-hover>tbody>tr.success:hover>td,.form-panel .table-hover>tbody>tr.success:hover>th,.form-panel .table-hover>tbody>tr>td.success:hover,.form-panel .table-hover>tbody>tr>th.success:hover{background-color:#d0e9c6}.form-panel .table>tbody>tr.info>td,.form-panel .table>tbody>tr.info>th,.form-panel .table>tbody>tr>td.info,.form-panel .table>tbody>tr>th.info,.form-panel .table>tfoot>tr.info>td,.form-panel .table>tfoot>tr.info>th,.form-panel .table>tfoot>tr>td.info,.form-panel .table>tfoot>tr>th.info,.form-panel .table>thead>tr.info>td,.form-panel .table>thead>tr.info>th,.form-panel .table>thead>tr>td.info,.form-panel .table>thead>tr>th.info{background-color:#d9edf7}.form-panel .table-hover>tbody>tr.info:hover>td,.form-panel .table-hover>tbody>tr.info:hover>th,.form-panel .table-hover>tbody>tr>td.info:hover,.form-panel .table-hover>tbody>tr>th.info:hover{background-color:#c4e3f3}.form-panel .table>tbody>tr.warning>td,.form-panel .table>tbody>tr.warning>th,.form-panel .table>tbody>tr>td.warning,.form-panel .table>tbody>tr>th.warning,.form-panel .table>tfoot>tr.warning>td,.form-panel .table>tfoot>tr.warning>th,.form-panel .table>tfoot>tr>td.warning,.form-panel .table>tfoot>tr>th.warning,.form-panel .table>thead>tr.warning>td,.form-panel .table>thead>tr.warning>th,.form-panel .table>thead>tr>td.warning,.form-panel .table>thead>tr>th.warning{background-color:#fcf8e3}.form-panel .table-hover>tbody>tr.warning:hover>td,.form-panel .table-hover>tbody>tr.warning:hover>th,.form-panel .table-hover>tbody>tr>td.warning:hover,.form-panel .table-hover>tbody>tr>th.warning:hover{background-color:#faf2cc}.form-panel .table>tbody>tr.danger>td,.form-panel .table>tbody>tr.danger>th,.form-panel .table>tbody>tr>td.danger,.form-panel .table>tbody>tr>th.danger,.form-panel .table>tfoot>tr.danger>td,.form-panel .table>tfoot>tr.danger>th,.form-panel .table>tfoot>tr>td.danger,.form-panel .table>tfoot>tr>th.danger,.form-panel .table>thead>tr.danger>td,.form-panel .table>thead>tr.danger>th,.form-panel .table>thead>tr>td.danger,.form-panel .table>thead>tr>th.danger{background-color:#f2dede}.form-panel .table-hover>tbody>tr.danger:hover>td,.form-panel .table-hover>tbody>tr.danger:hover>th,.form-panel .table-hover>tbody>tr>td.danger:hover,.form-panel .table-hover>tbody>tr>th.danger:hover{background-color:#ebcccc}@media (max-width:767px){.form-panel .table-responsive{width:100%;margin-bottom:15px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:-ms-autohiding-scrollbar;border:1px solid #ddd;-webkit-overflow-scrolling:touch}.form-panel .table-responsive>.table{margin-bottom:0}.form-panel .table-responsive>.table>tbody>tr>td,.form-panel .table-responsive>.table>tbody>tr>th,.form-panel .table-responsive>.table>tfoot>tr>td,.form-panel .table-responsive>.table>tfoot>tr>th,.form-panel .table-responsive>.table>thead>tr>td,.form-panel .table-responsive>.table>thead>tr>th{white-space:nowrap}.form-panel .table-responsive>.table-bordered{border:0}.form-panel .table-responsive>.table-bordered>tbody>tr>td:first-child,.form-panel .table-responsive>.table-bordered>tbody>tr>th:first-child,.form-panel .table-responsive>.table-bordered>tfoot>tr>td:first-child,.form-panel .table-responsive>.table-bordered>tfoot>tr>th:first-child,.form-panel .table-responsive>.table-bordered>thead>tr>td:first-child,.form-panel .table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.form-panel .table-responsive>.table-bordered>tbody>tr>td:last-child,.form-panel .table-responsive>.table-bordered>tbody>tr>th:last-child,.form-panel .table-responsive>.table-bordered>tfoot>tr>td:last-child,.form-panel .table-responsive>.table-bordered>tfoot>tr>th:last-child,.form-panel .table-responsive>.table-bordered>thead>tr>td:last-child,.form-panel .table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.form-panel .table-responsive>.table-bordered>tbody>tr:last-child>td,.form-panel .table-responsive>.table-bordered>tbody>tr:last-child>th,.form-panel .table-responsive>.table-bordered>tfoot>tr:last-child>td,.form-panel .table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}}#import_form_baldrickModalBody,.cf-form-create,.cf-form-template,.cf-template-column{overflow:hidden}.form-panel .clearfix:after,.form-panel .clearfix:before{content:" ";display:table}.form-panel .clearfix:after{clear:both}.form-panel .center-block{display:block;margin-left:auto;margin-right:auto}.form-panel .pull-right{float:right!important}.form-panel .pull-left{float:left!important}.form-panel .hide{display:none!important}.form-panel .show{display:block!important}.form-panel .invisible{visibility:hidden}.form-panel .text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.form-panel .hidden{display:none!important;visibility:hidden!important}.form-panel .affix{position:fixed}#extend_cf_baldrickModalBody h2,.form-extend-page-wrap h2{font-size:1.1em;margin:0;padding:4px 6px 6px;color:inherit}.view_option_value{color:#afafaf}.entry-line{border-bottom:1px solid #ddd;margin-bottom:4px}.entry-line label{clear:left;float:left;font-weight:700;margin-bottom:3px;margin-right:8px;min-width:130px;text-transform:capitalize}.entry-line>div{display:inline-block;margin-bottom:4px;min-width:355px}.cf-table-viewer p{margin:0 0 4px}td.draft-form{box-shadow:2px 0 0 rgba(175,0,0,.6) inset;background-color:rgba(175,0,0,.09)}td.active-form{box-shadow:2px 0 0 #a3be5f inset}tr.form_entry_row.loading{opacity:.5}.caldera-editor-header .updated_notice_box{background:#fff;border-left:8px solid #afaf00;color:#333;display:inline-block;padding:10px 24px 10px 12px;position:absolute;top:-75px;box-shadow:0 3px 5px rgba(0,0,0,.2);z-index:99999}.cf-notification,.cf-notification-external{left:0;position:absolute;right:0;top:-45px}.tablenav.caldera-table-nav{clear:none;margin:10px 0}.caldera-table-nav .tablenav-pages .current-page{width:45px}.cf-notification-external{padding:0 1px 0 0}.cf-notification{background:#fff;border:1px solid #dfdfdf;border-radius:1px;box-shadow:0 2px 4px rgba(0,0,0,.08);padding:0}.cf-notification-notice{height:20px;overflow:hidden;padding:8px;text-overflow:ellipsis;white-space:nowrap}.cf-notification div.error{margin:1px 0 0!important}.cf-notification .dashicons.dashicons-warning{color:#dd3d36}.cf-notification .dashicons.dashicons-arrow-down,.cf-notification .dashicons.dashicons-arrow-up{cursor:pointer;float:right;padding:8px}.cf-form-template{border:2px dashed #cfcfcf;float:left;height:180px;margin:0 5px 10px;padding:5px;width:162px;border-radius:4px;position:relative}.cf-template-title{padding:2px 2px 0 0}.cf-form-create{background:#a3be5f;border-radius:4px;bottom:-2px;padding:5px;position:absolute;top:-2px;width:362px;z-index:100}.caldera-grid.cf-form-create button.cf-change-template-button,.caldera-grid.cf-form-create button.cf-create-form-button{background-color:#fff;color:#93ae4f;border:1px solid #93ae4f;border-radius:3px;display:inline-block;margin:24px 0;padding:9px;width:174px}.caldera-grid.cf-form-create button.cf-change-template-button:hover,.caldera-grid.cf-form-create button.cf-create-form-button:hover{background-color:#efefef;color:#7e943d}.caldera-grid.cf-form-create button.cf-change-template-button.cf-loading-form{background:#a3be5f;color:#fff}.caldera-grid.cf-form-create button.cf-loading-form .dashicons{display:none}.caldera-grid.cf-form-create button.cf-create-form-button .spinner{display:none;margin:-1px 0;float:none}.caldera-grid.cf-form-create button.cf-loading-form,.caldera-grid.cf-form-create button.cf-loading-form:hover{background:#efefef;border-color:#bfbfbf;color:#7f7f7f;cursor:default}.caldera-grid.cf-form-create button.cf-loading-form .spinner{display:inline-block;visibility:visible}.cf-form-template>input{display:none}.cf-form-template:hover{border:2px dashed #a3be5f;background-color:#efefef}.cf-form-template.selected{background-color:#a3be5f;border:2px dashed #a3be5f;color:#fff}.cf-templates-wrapper{overflow:auto;padding-top:20px}.cf-form-template small{display:block;padding:0 3px}.cf-form-template small.cf-preview-field{border-bottom:1px solid #dfdfdf;font-size:55%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cf-preview-field.cf-preview-button{background:#d1d1d1;border-radius:2px;display:inline-block;margin:5px 3px 0;padding:0 9px;color:#333}.cf-form-template.selected .cf-preview-field.cf-preview-button{background-color:#fff}.cf-form-template small.cf-preview-field.cf-preview-field-html{background:rgba(0,0,0,.1);border:0;height:15px}.switch,.switch .box{border-radius:50px;cursor:pointer}.caldera-settings{float:left;width:270px}.caldera-settings strong{display:block}.caldera-setting{display:block;float:right;height:35px;padding:14px;width:50px}.caldera-settings-group{border-bottom:1px solid #efefef;display:block;margin-bottom:10px;padding-bottom:10px;clear:both}.switch{background:#efefef;box-shadow:0 0 3px rgba(0,0,0,.14) inset;height:20px;overflow:hidden;width:42px;transition:background-color 1s ease 0s;position:relative}.box-wrapper{height:21px;position:absolute;width:100%}.switch.active{background:#a3be5f}.switch .box{background:#fff;box-shadow:0 0 4px rgba(0,0,0,.26),0 0 1px #333 inset;height:20px;width:50%;transition:margin .5s ease 0s}.switch.active .box{margin-left:50%}.switch.load .box{background-color:#a6a6a6}.switch.load .box .spinner{margin:0;opacity:.51;visibility:visible}input.cf-shortcode-preview{background:#efefef;border:none;box-shadow:none;display:none;font-size:13px;padding:2px;vertical-align:top;width:260px}@media screen and (max-width:782px){.caldera-editor-header-nav>li.caldera-forms-toolbar-item.separator,li.caldera-forms-version{display:none}.caldera-editor-header{height:47px;margin:-10px;overflow:hidden;padding-top:0;top:57px}.caldera-entry-exporter{margin-top:-30px}.caldera-forms-toolbar-item .button.cf-general-settings{padding:6px 8px}#form-entries-viewer{padding-top:12px}.cf-tools-row{white-space:nowrap}}.caldera-table-nav .tablenav-pages{text-align:right;float:right;width:auto}@media screen and (max-width:600px){.caldera-editor-logo>span.dashicons-cf-logo{font-size:31px;line-height:22px}.caldera-forms-name{display:none}.caldera-editor-header{position:absolute}.tablenav.caldera-table-nav{clear:none;margin:0;text-align:center}.caldera-table-nav .tablenav-pages{text-align:center;width:100%}}@media screen and (max-width:570px){.cf-tools-row{display:block;width:100%;margin-bottom:10px}.cf-tools-row-second{margin-left:50px}}@media screen and (max-width:450px){.form-panel-wrap{width:290px}.screen-per-page{display:block;margin:0 auto 10px;width:68px}}.caldera-config-group p.description{margin:0 0 24px}@media screen and (max-width:1000px){#caldera-forms-clippy{display:none;visibility:hidden}}@media screen and (min-width:1000px){#caldera-forms-clippy{display:block;visibility:visible}.caldera-forms-clippy-zone{width:100%;max-width:400px;min-width:200px;background-position-x:105%;background-repeat:no-repeat;margin-bottom:20px}.caldera-forms-clippy-zone-inner-wrap{margin-left:25px;border-right:35px solid #f9f9f9;background-color:#f9f9f9;opacity:.9}.caldera-forms-clippy{opacity:1;padding:8px;border:0;border-radius:4px;width:100%}.caldera-forms-clippy a.btn,.caldera-forms-clippy h2{text-align:center}.caldera-forms-clippy a.btn{width:100%;padding-right:4px}.caldera-forms-clippy .btn-green:hover,.caldera-forms-clippy .caldera-grid button:hover,.caldera-forms-clippy .caldera-grid html input[type=button]:hover,.caldera-forms-clippy .caldera-grid input[type=reset]:hover,.caldera-forms-clippy .caldera-grid input[type=submit]:hover{background:#ff7e30}.caldera-forms-clippy .btn{-moz-appearance:none;-webkit-appearance:none;-ms-appearance:none;appearance:none;-moz-transition:background-color .2s ease-in-out,color .2s ease-in-out,box-shadow .2s ease-in-out;-webkit-transition:background-color .2s ease-in-out,color .2s ease-in-out,box-shadow .2s ease-in-out;-ms-transition:background-color .2s ease-in-out,color .2s ease-in-out,box-shadow .2s ease-in-out;transition:background-color .2s ease-in-out,color .2s ease-in-out,box-shadow .2s ease-in-out;background-color:transparent;border-radius:4px;border:0;box-shadow:inset 0 0 0 2px #fff;color:#fff;cursor:pointer;display:inline-block;font-size:.8em;font-weight:900;height:3.5em;letter-spacing:.35em;line-height:3.45em;overflow:hidden;padding:0 1.25em 0 1.6em;text-align:center;text-decoration:none;text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap}.caldera-forms-clippy .btn.btn-sm{font-size:.6em}.caldera-forms-clippy .diff-btn li{padding:1em 0 0}.caldera-forms-clippy a.btn,.caldera-forms-clippy a.btn.btn-green{background-color:#a3bf61}.caldera-forms-clippy a.btn.btn-orange{background-color:#ff7e30}.caldera-forms-clippy a.btn.btn-grey{background-color:#3a3a3c}.caldera-forms-clippy .btn:active:focus,.caldera-forms-clippy .btn:focus,.caldera-forms-clippy a:focus,.caldera-forms-clippy button:focus,.caldera-forms-clippy input[type=checkbox]:focus,.caldera-forms-clippy input[type=radio]:focus,.caldera-forms-clippy input[type=file]:focus{outline:0}.caldera-forms-clippy a.btn:hover{background-color:#ff7e30}.caldera-forms-clippy a.btn.btn-orange:hover{background-color:#a3bf61}}.caldera-config-group p.description.help-block{margin-top:-12px;margin-bottom:12px}li.caldera-editor-logo{background-image:url(../images/caldera-globe-logo-sm.png);background-repeat:no-repeat;background-position-y:10%;background-size:40px}.caldera-forms-name{margin-left:44px}img.form-modal-lgo.form-modal-lgo-svg{opacity:.4}span.cf-form-shortcode-preview{background:#fff;font-size:1em;color:#000;border:1px solid #a3bf61;cursor:pointer;display:block;padding:2px;border-radius:2px}span.cf-form-shortcode-preview:hover{color:#fff;background-color:#ff7e30}span.cf-form-name-preview{font-weight:700}a.disabled{color:#8e8e8e}button.button.button-small.toggle-remove-option{width:100%}.option-setting input{width:70%!important;float:left;display:inline}label.option-setting-label{display:inline;width:50%;float:left}.toggle_option_row{border:1px solid #cfcfcf;border-radius:4px;padding:2px}li.caldera-forms-toolbar-item.success{background:#ff7e30;color:#fff;font-weight:500;margin-top:4px;border-radius:2px;text-align:center}.caldera-editor-header{height:50px!important}.cf-alert{display:inline-block;padding:4px;border-radius:4px}.cf-alert-success{background:#a3bf61;color:#fff}.cf-alert-error{background:red;color:#fff}.cf-alert-wrap{margin-top:-5px}.cf-alert p{padding:0}#cf-pro-save{width:50%}.caldera-config-field .cf-alert.cf-alert-error p{margin:0}[v-cloak]{display:none;visibility:hidden}.cf-show{visibility:visible;display:inline-block;-webkit-animation:fadein .5s 1;animation:fadein .5s 1}.cf-hide{visibility:hidden;display:none;-webkit-animation:fadeout .5s 1;animation:fadeout .5s 1}.caldera-forms-deleted{color:#a3be5f}.caldera-forms-not-deleted{color:red}
|
assets/build/css/caldera-forms-front.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
/*! GENERATED SOURCE FILE caldera-forms - v1.6.3 - 2018-05-15 */.caldera-grid html,.cf-toggle-switch html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}.caldera-grid .sr-only,.caldera-grid svg:not(:root),.cf-toggle-switch svg:not(:root){overflow:hidden}.caldera-grid .btn,.cfdatepicker table{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.caldera-grid button,.caldera-grid select,.cf-toggle-switch button,.cf-toggle-switch select{text-transform:none}@media (min-width:768px){.caldera-grid .container{width:750px}}@media (min-width:992px){.caldera-grid .container{width:970px}}@media (min-width:1200px){.caldera-grid .container{width:1170px}}.caldera-grid article,.caldera-grid aside,.caldera-grid details,.caldera-grid figcaption,.caldera-grid figure,.caldera-grid footer,.caldera-grid header,.caldera-grid hgroup,.caldera-grid main,.caldera-grid nav,.caldera-grid section,.caldera-grid summary{display:block}.caldera-grid a{background:0 0;text-decoration:none}.caldera-grid img{vertical-align:middle}.caldera-grid *,.caldera-grid :after,.caldera-grid :before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.caldera-grid html{font-size:62.5%;-webkit-tap-highlight-color:transparent}.caldera-grid body{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:1.42857143;color:#333;background-color:#fff}.caldera-grid button,.caldera-grid input,.caldera-grid select,.caldera-grid textarea{font-family:inherit;font-size:inherit;line-height:inherit}.caldera-grid a:focus,.caldera-grid a:hover{color:#2a6496;text-decoration:underline}.caldera-grid a:focus{outline:dotted thin;outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px}.caldera-grid .img-responsive{display:block;max-width:100%;height:auto}.caldera-grid .img-rounded{border-radius:6px}.caldera-grid .img-thumbnail{padding:4px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out;display:inline-block;max-width:100%;height:auto}.caldera-grid .img-circle{border-radius:50%}.caldera-grid hr{margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}.caldera-grid .sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;clip:rect(0,0,0,0);border:0}.caldera-grid .container,.caldera-grid .container-fluid{margin-right:auto;margin-left:auto;padding-left:7.5px;padding-right:7.5px}@media (min-width:768px){.caldera-grid .container{width:735px}}@media (min-width:992px){.caldera-grid .container{width:955px}}@media (min-width:1200px){.caldera-grid .container{width:1155px}}.caldera-grid .row{margin-left:-7.5px;margin-right:-7.5px;max-width:100%}.caldera-grid .col-lg-1,.caldera-grid .col-lg-10,.caldera-grid .col-lg-11,.caldera-grid .col-lg-12,.caldera-grid .col-lg-2,.caldera-grid .col-lg-3,.caldera-grid .col-lg-4,.caldera-grid .col-lg-5,.caldera-grid .col-lg-6,.caldera-grid .col-lg-7,.caldera-grid .col-lg-8,.caldera-grid .col-lg-9,.caldera-grid .col-md-1,.caldera-grid .col-md-10,.caldera-grid .col-md-11,.caldera-grid .col-md-12,.caldera-grid .col-md-2,.caldera-grid .col-md-3,.caldera-grid .col-md-4,.caldera-grid .col-md-5,.caldera-grid .col-md-6,.caldera-grid .col-md-7,.caldera-grid .col-md-8,.caldera-grid .col-md-9,.caldera-grid .col-sm-1,.caldera-grid .col-sm-10,.caldera-grid .col-sm-11,.caldera-grid .col-sm-12,.caldera-grid .col-sm-2,.caldera-grid .col-sm-3,.caldera-grid .col-sm-4,.caldera-grid .col-sm-5,.caldera-grid .col-sm-6,.caldera-grid .col-sm-7,.caldera-grid .col-sm-8,.caldera-grid .col-sm-9,.caldera-grid .col-xs-1,.caldera-grid .col-xs-10,.caldera-grid .col-xs-11,.caldera-grid .col-xs-12,.caldera-grid .col-xs-2,.caldera-grid .col-xs-3,.caldera-grid .col-xs-4,.caldera-grid .col-xs-5,.caldera-grid .col-xs-6,.caldera-grid .col-xs-7,.caldera-grid .col-xs-8,.caldera-grid .col-xs-9{position:relative;padding-left:7.5px;padding-right:7.5px}.caldera-grid .col-xs-1,.caldera-grid .col-xs-10,.caldera-grid .col-xs-11,.caldera-grid .col-xs-12,.caldera-grid .col-xs-2,.caldera-grid .col-xs-3,.caldera-grid .col-xs-4,.caldera-grid .col-xs-5,.caldera-grid .col-xs-6,.caldera-grid .col-xs-7,.caldera-grid .col-xs-8,.caldera-grid .col-xs-9{float:left}.caldera-grid .col-xs-12{width:100%}.caldera-grid .col-xs-11{width:91.66666667%}.caldera-grid .col-xs-10{width:83.33333333%}.caldera-grid .col-xs-9{width:75%}.caldera-grid .col-xs-8{width:66.66666667%}.caldera-grid .col-xs-7{width:58.33333333%}.caldera-grid .col-xs-6{width:50%}.caldera-grid .col-xs-5{width:41.66666667%}.caldera-grid .col-xs-4{width:33.33333333%}.caldera-grid .col-xs-3{width:25%}.caldera-grid .col-xs-2{width:16.66666667%}.caldera-grid .col-xs-1{width:8.33333333%}.caldera-grid .col-xs-pull-12{right:100%}.caldera-grid .col-xs-pull-11{right:91.66666667%}.caldera-grid .col-xs-pull-10{right:83.33333333%}.caldera-grid .col-xs-pull-9{right:75%}.caldera-grid .col-xs-pull-8{right:66.66666667%}.caldera-grid .col-xs-pull-7{right:58.33333333%}.caldera-grid .col-xs-pull-6{right:50%}.caldera-grid .col-xs-pull-5{right:41.66666667%}.caldera-grid .col-xs-pull-4{right:33.33333333%}.caldera-grid .col-xs-pull-3{right:25%}.caldera-grid .col-xs-pull-2{right:16.66666667%}.caldera-grid .col-xs-pull-1{right:8.33333333%}.caldera-grid .col-xs-pull-0{right:0}.caldera-grid .col-xs-push-12{left:100%}.caldera-grid .col-xs-push-11{left:91.66666667%}.caldera-grid .col-xs-push-10{left:83.33333333%}.caldera-grid .col-xs-push-9{left:75%}.caldera-grid .col-xs-push-8{left:66.66666667%}.caldera-grid .col-xs-push-7{left:58.33333333%}.caldera-grid .col-xs-push-6{left:50%}.caldera-grid .col-xs-push-5{left:41.66666667%}.caldera-grid .col-xs-push-4{left:33.33333333%}.caldera-grid .col-xs-push-3{left:25%}.caldera-grid .col-xs-push-2{left:16.66666667%}.caldera-grid .col-xs-push-1{left:8.33333333%}.caldera-grid .col-xs-push-0{left:0}.caldera-grid .col-xs-offset-12{margin-left:100%}.caldera-grid .col-xs-offset-11{margin-left:91.66666667%}.caldera-grid .col-xs-offset-10{margin-left:83.33333333%}.caldera-grid .col-xs-offset-9{margin-left:75%}.caldera-grid .col-xs-offset-8{margin-left:66.66666667%}.caldera-grid .col-xs-offset-7{margin-left:58.33333333%}.caldera-grid .col-xs-offset-6{margin-left:50%}.caldera-grid .col-xs-offset-5{margin-left:41.66666667%}.caldera-grid .col-xs-offset-4{margin-left:33.33333333%}.caldera-grid .col-xs-offset-3{margin-left:25%}.caldera-grid .col-xs-offset-2{margin-left:16.66666667%}.caldera-grid .col-xs-offset-1{margin-left:8.33333333%}.caldera-grid .col-xs-offset-0{margin-left:0}@media (min-width:768px){.caldera-grid .col-sm-1,.caldera-grid .col-sm-10,.caldera-grid .col-sm-11,.caldera-grid .col-sm-12,.caldera-grid .col-sm-2,.caldera-grid .col-sm-3,.caldera-grid .col-sm-4,.caldera-grid .col-sm-5,.caldera-grid .col-sm-6,.caldera-grid .col-sm-7,.caldera-grid .col-sm-8,.caldera-grid .col-sm-9{float:left}.caldera-grid .col-sm-12{width:100%}.caldera-grid .col-sm-11{width:91.66666667%}.caldera-grid .col-sm-10{width:83.33333333%}.caldera-grid .col-sm-9{width:75%}.caldera-grid .col-sm-8{width:66.66666667%}.caldera-grid .col-sm-7{width:58.33333333%}.caldera-grid .col-sm-6{width:50%}.caldera-grid .col-sm-5{width:41.66666667%}.caldera-grid .col-sm-4{width:33.33333333%}.caldera-grid .col-sm-3{width:25%}.caldera-grid .col-sm-2{width:16.66666667%}.caldera-grid .col-sm-1{width:8.33333333%}.caldera-grid .col-sm-pull-12{right:100%}.caldera-grid .col-sm-pull-11{right:91.66666667%}.caldera-grid .col-sm-pull-10{right:83.33333333%}.caldera-grid .col-sm-pull-9{right:75%}.caldera-grid .col-sm-pull-8{right:66.66666667%}.caldera-grid .col-sm-pull-7{right:58.33333333%}.caldera-grid .col-sm-pull-6{right:50%}.caldera-grid .col-sm-pull-5{right:41.66666667%}.caldera-grid .col-sm-pull-4{right:33.33333333%}.caldera-grid .col-sm-pull-3{right:25%}.caldera-grid .col-sm-pull-2{right:16.66666667%}.caldera-grid .col-sm-pull-1{right:8.33333333%}.caldera-grid .col-sm-pull-0{right:0}.caldera-grid .col-sm-push-12{left:100%}.caldera-grid .col-sm-push-11{left:91.66666667%}.caldera-grid .col-sm-push-10{left:83.33333333%}.caldera-grid .col-sm-push-9{left:75%}.caldera-grid .col-sm-push-8{left:66.66666667%}.caldera-grid .col-sm-push-7{left:58.33333333%}.caldera-grid .col-sm-push-6{left:50%}.caldera-grid .col-sm-push-5{left:41.66666667%}.caldera-grid .col-sm-push-4{left:33.33333333%}.caldera-grid .col-sm-push-3{left:25%}.caldera-grid .col-sm-push-2{left:16.66666667%}.caldera-grid .col-sm-push-1{left:8.33333333%}.caldera-grid .col-sm-push-0{left:0}.caldera-grid .col-sm-offset-12{margin-left:100%}.caldera-grid .col-sm-offset-11{margin-left:91.66666667%}.caldera-grid .col-sm-offset-10{margin-left:83.33333333%}.caldera-grid .col-sm-offset-9{margin-left:75%}.caldera-grid .col-sm-offset-8{margin-left:66.66666667%}.caldera-grid .col-sm-offset-7{margin-left:58.33333333%}.caldera-grid .col-sm-offset-6{margin-left:50%}.caldera-grid .col-sm-offset-5{margin-left:41.66666667%}.caldera-grid .col-sm-offset-4{margin-left:33.33333333%}.caldera-grid .col-sm-offset-3{margin-left:25%}.caldera-grid .col-sm-offset-2{margin-left:16.66666667%}.caldera-grid .col-sm-offset-1{margin-left:8.33333333%}.caldera-grid .col-sm-offset-0{margin-left:0}}@media (min-width:992px){.caldera-grid .col-md-1,.caldera-grid .col-md-10,.caldera-grid .col-md-11,.caldera-grid .col-md-12,.caldera-grid .col-md-2,.caldera-grid .col-md-3,.caldera-grid .col-md-4,.caldera-grid .col-md-5,.caldera-grid .col-md-6,.caldera-grid .col-md-7,.caldera-grid .col-md-8,.caldera-grid .col-md-9{float:left}.caldera-grid .col-md-12{width:100%}.caldera-grid .col-md-11{width:91.66666667%}.caldera-grid .col-md-10{width:83.33333333%}.caldera-grid .col-md-9{width:75%}.caldera-grid .col-md-8{width:66.66666667%}.caldera-grid .col-md-7{width:58.33333333%}.caldera-grid .col-md-6{width:50%}.caldera-grid .col-md-5{width:41.66666667%}.caldera-grid .col-md-4{width:33.33333333%}.caldera-grid .col-md-3{width:25%}.caldera-grid .col-md-2{width:16.66666667%}.caldera-grid .col-md-1{width:8.33333333%}.caldera-grid .col-md-pull-12{right:100%}.caldera-grid .col-md-pull-11{right:91.66666667%}.caldera-grid .col-md-pull-10{right:83.33333333%}.caldera-grid .col-md-pull-9{right:75%}.caldera-grid .col-md-pull-8{right:66.66666667%}.caldera-grid .col-md-pull-7{right:58.33333333%}.caldera-grid .col-md-pull-6{right:50%}.caldera-grid .col-md-pull-5{right:41.66666667%}.caldera-grid .col-md-pull-4{right:33.33333333%}.caldera-grid .col-md-pull-3{right:25%}.caldera-grid .col-md-pull-2{right:16.66666667%}.caldera-grid .col-md-pull-1{right:8.33333333%}.caldera-grid .col-md-pull-0{right:0}.caldera-grid .col-md-push-12{left:100%}.caldera-grid .col-md-push-11{left:91.66666667%}.caldera-grid .col-md-push-10{left:83.33333333%}.caldera-grid .col-md-push-9{left:75%}.caldera-grid .col-md-push-8{left:66.66666667%}.caldera-grid .col-md-push-7{left:58.33333333%}.caldera-grid .col-md-push-6{left:50%}.caldera-grid .col-md-push-5{left:41.66666667%}.caldera-grid .col-md-push-4{left:33.33333333%}.caldera-grid .col-md-push-3{left:25%}.caldera-grid .col-md-push-2{left:16.66666667%}.caldera-grid .col-md-push-1{left:8.33333333%}.caldera-grid .col-md-push-0{left:0}.caldera-grid .col-md-offset-12{margin-left:100%}.caldera-grid .col-md-offset-11{margin-left:91.66666667%}.caldera-grid .col-md-offset-10{margin-left:83.33333333%}.caldera-grid .col-md-offset-9{margin-left:75%}.caldera-grid .col-md-offset-8{margin-left:66.66666667%}.caldera-grid .col-md-offset-7{margin-left:58.33333333%}.caldera-grid .col-md-offset-6{margin-left:50%}.caldera-grid .col-md-offset-5{margin-left:41.66666667%}.caldera-grid .col-md-offset-4{margin-left:33.33333333%}.caldera-grid .col-md-offset-3{margin-left:25%}.caldera-grid .col-md-offset-2{margin-left:16.66666667%}.caldera-grid .col-md-offset-1{margin-left:8.33333333%}.caldera-grid .col-md-offset-0{margin-left:0}}@-ms-viewport{width:device-width}@media (min-width:1200px){.caldera-grid .col-lg-1,.caldera-grid .col-lg-10,.caldera-grid .col-lg-11,.caldera-grid .col-lg-12,.caldera-grid .col-lg-2,.caldera-grid .col-lg-3,.caldera-grid .col-lg-4,.caldera-grid .col-lg-5,.caldera-grid .col-lg-6,.caldera-grid .col-lg-7,.caldera-grid .col-lg-8,.caldera-grid .col-lg-9{float:left}.caldera-grid .col-lg-12{width:100%}.caldera-grid .col-lg-11{width:91.66666667%}.caldera-grid .col-lg-10{width:83.33333333%}.caldera-grid .col-lg-9{width:75%}.caldera-grid .col-lg-8{width:66.66666667%}.caldera-grid .col-lg-7{width:58.33333333%}.caldera-grid .col-lg-6{width:50%}.caldera-grid .col-lg-5{width:41.66666667%}.caldera-grid .col-lg-4{width:33.33333333%}.caldera-grid .col-lg-3{width:25%}.caldera-grid .col-lg-2{width:16.66666667%}.caldera-grid .col-lg-1{width:8.33333333%}.caldera-grid .col-lg-pull-12{right:100%}.caldera-grid .col-lg-pull-11{right:91.66666667%}.caldera-grid .col-lg-pull-10{right:83.33333333%}.caldera-grid .col-lg-pull-9{right:75%}.caldera-grid .col-lg-pull-8{right:66.66666667%}.caldera-grid .col-lg-pull-7{right:58.33333333%}.caldera-grid .col-lg-pull-6{right:50%}.caldera-grid .col-lg-pull-5{right:41.66666667%}.caldera-grid .col-lg-pull-4{right:33.33333333%}.caldera-grid .col-lg-pull-3{right:25%}.caldera-grid .col-lg-pull-2{right:16.66666667%}.caldera-grid .col-lg-pull-1{right:8.33333333%}.caldera-grid .col-lg-pull-0{right:0}.caldera-grid .col-lg-push-12{left:100%}.caldera-grid .col-lg-push-11{left:91.66666667%}.caldera-grid .col-lg-push-10{left:83.33333333%}.caldera-grid .col-lg-push-9{left:75%}.caldera-grid .col-lg-push-8{left:66.66666667%}.caldera-grid .col-lg-push-7{left:58.33333333%}.caldera-grid .col-lg-push-6{left:50%}.caldera-grid .col-lg-push-5{left:41.66666667%}.caldera-grid .col-lg-push-4{left:33.33333333%}.caldera-grid .col-lg-push-3{left:25%}.caldera-grid .col-lg-push-2{left:16.66666667%}.caldera-grid .col-lg-push-1{left:8.33333333%}.caldera-grid .col-lg-push-0{left:0}.caldera-grid .col-lg-offset-12{margin-left:100%}.caldera-grid .col-lg-offset-11{margin-left:91.66666667%}.caldera-grid .col-lg-offset-10{margin-left:83.33333333%}.caldera-grid .col-lg-offset-9{margin-left:75%}.caldera-grid .col-lg-offset-8{margin-left:66.66666667%}.caldera-grid .col-lg-offset-7{margin-left:58.33333333%}.caldera-grid .col-lg-offset-6{margin-left:50%}.caldera-grid .col-lg-offset-5{margin-left:41.66666667%}.caldera-grid .col-lg-offset-4{margin-left:33.33333333%}.caldera-grid .col-lg-offset-3{margin-left:25%}.caldera-grid .col-lg-offset-2{margin-left:16.66666667%}.caldera-grid .col-lg-offset-1{margin-left:8.33333333%}.caldera-grid .col-lg-offset-0{margin-left:0}}.caldera-grid .clearfix:after,.caldera-grid .clearfix:before,.caldera-grid .container-fluid:after,.caldera-grid .container-fluid:before,.caldera-grid .container:after,.caldera-grid .container:before,.caldera-grid .row:after,.caldera-grid .row:before{content:" ";display:table}.caldera-grid .clearfix:after,.caldera-grid .container-fluid:after,.caldera-grid .container:after,.caldera-grid .row:after{clear:both}.caldera-grid .center-block{display:block;margin-left:auto;margin-right:auto}.caldera-grid .pull-right{float:right!important}.caldera-grid .pull-left{float:left!important}.caldera-grid .hide{display:none!important}.caldera-grid .show{display:block!important}.caldera-grid .hidden,.caldera-grid .visible-lg,.caldera-grid .visible-md,.caldera-grid .visible-sm,.caldera-grid .visible-xs{display:none!important}.caldera-grid .invisible{visibility:hidden}.caldera-grid .text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.caldera-grid .alert .alert-link,.caldera-grid b,.caldera-grid strong{font-weight:700}.caldera-grid .hidden{visibility:hidden!important}.caldera-grid .affix{position:fixed}@-ms-viewport{width:device-width}@media (max-width:767px){.caldera-grid .visible-xs{display:block!important}.caldera-grid table.visible-xs{display:table}.caldera-grid tr.visible-xs{display:table-row!important}.caldera-grid td.visible-xs,.caldera-grid th.visible-xs{display:table-cell!important}}@media (min-width:768px) and (max-width:991px){.caldera-grid .visible-sm{display:block!important}.caldera-grid table.visible-sm{display:table}.caldera-grid tr.visible-sm{display:table-row!important}.caldera-grid td.visible-sm,.caldera-grid th.visible-sm{display:table-cell!important}}@media (min-width:992px) and (max-width:1199px){.caldera-grid .visible-md{display:block!important}.caldera-grid table.visible-md{display:table}.caldera-grid tr.visible-md{display:table-row!important}.caldera-grid td.visible-md,.caldera-grid th.visible-md{display:table-cell!important}}@media (min-width:1200px){.caldera-grid .visible-lg{display:block!important}.caldera-grid table.visible-lg{display:table}.caldera-grid tr.visible-lg{display:table-row!important}.caldera-grid td.visible-lg,.caldera-grid th.visible-lg{display:table-cell!important}.caldera-grid .hidden-lg{display:none!important}}@media (max-width:767px){.caldera-grid .hidden-xs{display:none!important}}@media (min-width:768px) and (max-width:991px){.caldera-grid .hidden-sm{display:none!important}}@media (min-width:992px) and (max-width:1199px){.caldera-grid .hidden-md{display:none!important}}.caldera-grid .visible-print{display:none!important}@media print{.caldera-grid .visible-print{display:block!important}.caldera-grid table.visible-print{display:table}.caldera-grid tr.visible-print{display:table-row!important}.caldera-grid td.visible-print,.caldera-grid th.visible-print{display:table-cell!important}.caldera-grid .hidden-print{display:none!important}}input.parsley-success,select.parsley-success,textarea.parsley-success{color:#468847;background-color:#DFF0D8;border:1px solid #D6E9C6}input.parsley-error,select.parsley-error,textarea.parsley-error{color:#B94A48;background-color:#F2DEDE;border:1px solid #EED3D7}.parsley-errors-list{margin:2px 0 3px;padding:0;list-style-type:none;font-size:.9em;line-height:.9em;opacity:0;transition:all .3s ease-in;-o-transition:all .3s ease-in;-moz-transition:all .3s ease-in;-webkit-transition:all .3s ease-in}.parsley-errors-list.filled{opacity:1}.caldera-grid .alert{padding:8px;margin-bottom:18px;border-radius:2px}.caldera-grid .alert-dismissable{padding-right:28px}.caldera-grid .alert-success{background-color:#dff0d8;border-color:#a3d48e;color:#3c763d}.caldera-grid .alert-success hr{border-top-color:#93cd7c}.caldera-grid .alert-success .alert-link{color:#2b542c}.caldera-grid .alert-info{background-color:#d9edf7;border-color:#85c5e5;color:#31708f}.caldera-grid .alert-info hr{border-top-color:#70bbe1}.caldera-grid .alert-info .alert-link{color:#245269}.caldera-grid .alert-warning{background-color:#f9edbe;border-color:#f0c36d;color:#333}.caldera-grid .alert-warning hr{border-top-color:#eeb956}.caldera-grid .alert-warning .alert-link{color:#1a1a1a}.caldera-grid .alert-danger,.caldera-grid .alert-error{background-color:#f2dede;border-color:#d59595;color:#a94442}.caldera-grid .alert-danger hr,.caldera-grid .alert-error hr{border-top-color:#ce8383}.caldera-grid .alert-danger .alert-link,.caldera-grid .alert-error .alert-link{color:#843534}.caldera-grid .alert-danger,.caldera-grid .alert-error,.caldera-grid .alert-info,.caldera-grid .alert-success,.caldera-grid .alert-warning{text-shadow:0 1px 0 rgba(255,255,255,.5)}.caldera-grid .has-error .form-control:focus,.caldera-grid .has-error .form-control:hover{border-color:#dd4b39}.caldera-grid.cf_processing{background:url(../images/loading.gif) center center/30px auto no-repeat rgba(0,0,0,0)}.caldera-grid.cf_processing>*{opacity:.5}.caldera-grid html{font-family:sans-serif}.caldera-grid body{margin:0}.caldera-grid article,.caldera-grid aside,.caldera-grid details,.caldera-grid figcaption,.caldera-grid figure,.caldera-grid footer,.caldera-grid header,.caldera-grid hgroup,.caldera-grid main,.caldera-grid menu,.caldera-grid nav,.caldera-grid section,.caldera-grid summary{display:block}.caldera-grid audio,.caldera-grid canvas,.caldera-grid progress,.caldera-grid video{display:inline-block;vertical-align:baseline}.caldera-grid audio:not([controls]){display:none;height:0}.caldera-grid [hidden],.caldera-grid template{display:none}.caldera-grid a{background-color:transparent}.caldera-grid a:active,.caldera-grid a:hover{outline:0}.caldera-grid abbr[title]{border-bottom:1px dotted}.caldera-grid dfn{font-style:italic}.caldera-grid h1{font-size:2em;margin:.67em 0}.caldera-grid mark{background:#ff0;color:#000}.caldera-grid small{font-size:80%}.caldera-grid sub,.caldera-grid sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.caldera-grid sup{top:-.5em}.caldera-grid sub{bottom:-.25em}.caldera-grid img{border:0}.caldera-grid figure{margin:1em 40px}.caldera-grid hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}.caldera-grid pre{overflow:auto}.caldera-grid code,.caldera-grid kbd,.caldera-grid pre,.caldera-grid samp{font-family:monospace,monospace;font-size:1em}.caldera-grid button,.caldera-grid input,.caldera-grid optgroup,.caldera-grid select,.caldera-grid textarea{font:inherit;margin:0}.caldera-grid button{overflow:visible}.caldera-grid button,.caldera-grid html input[type=button],.caldera-grid input[type=reset],.caldera-grid input[type=submit]{-webkit-appearance:button;cursor:pointer}.caldera-grid button[disabled],.caldera-grid html input[disabled]{cursor:default}.caldera-grid button::-moz-focus-inner,.caldera-grid input::-moz-focus-inner{border:0;padding:0}.caldera-grid input{line-height:normal}.caldera-grid input[type=checkbox],.caldera-grid input[type=radio]{box-sizing:border-box;padding:0}.caldera-grid input[type=number]::-webkit-inner-spin-button,.caldera-grid input[type=number]::-webkit-outer-spin-button{height:auto}.caldera-grid input[type=search]{-webkit-appearance:textfield;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.caldera-grid input[type=search]::-webkit-search-cancel-button,.caldera-grid input[type=search]::-webkit-search-decoration{-webkit-appearance:none}.caldera-grid textarea{overflow:auto}.caldera-grid optgroup{font-weight:700}.caldera-grid table{border-collapse:collapse;border-spacing:0}.caldera-grid td,.caldera-grid th{padding:0}@media print{.caldera-grid *,.caldera-grid :after,.caldera-grid :before{background:0 0!important;color:#000!important;box-shadow:none!important;text-shadow:none!important}.caldera-grid a,.caldera-grid a:visited{text-decoration:underline}.caldera-grid a[href]:after{content:" (" attr(href) ")"}.caldera-grid abbr[title]:after{content:" (" attr(title) ")"}.caldera-grid a[href^="#"]:after,.caldera-grid a[href^="javascript:"]:after{content:""}.caldera-grid blockquote,.caldera-grid pre{border:1px solid #999;page-break-inside:avoid}.caldera-grid thead{display:table-header-group}.caldera-grid img,.caldera-grid tr{page-break-inside:avoid}.caldera-grid img{max-width:100%!important}.caldera-grid h2,.caldera-grid h3,.caldera-grid p{orphans:3;widows:3}.caldera-grid h2,.caldera-grid h3{page-break-after:avoid}.caldera-grid select{background:#fff!important}.caldera-grid .navbar{display:none}.caldera-grid .btn>.caret,.caldera-grid .dropup>.btn>.caret{border-top-color:#000!important}.caldera-grid .label{border:1px solid #000}.caldera-grid .table{border-collapse:collapse!important}.caldera-grid .table td,.caldera-grid .table th{background-color:#fff!important}.caldera-grid .table-bordered td,.caldera-grid .table-bordered th{border:1px solid #ddd!important}}.caldera-grid .btn,.caldera-grid .btn-danger.active,.caldera-grid .btn-danger:active,.caldera-grid .btn-default.active,.caldera-grid .btn-default:active,.caldera-grid .btn-info.active,.caldera-grid .btn-info:active,.caldera-grid .btn-primary.active,.caldera-grid .btn-primary:active,.caldera-grid .btn-success.active,.caldera-grid .btn-success:active,.caldera-grid .btn-warning.active,.caldera-grid .btn-warning:active,.caldera-grid .form-control,.open>.dropdown-toggle.caldera-grid .btn-danger,.open>.dropdown-toggle.caldera-grid .btn-default,.open>.dropdown-toggle.caldera-grid .btn-info,.open>.dropdown-toggle.caldera-grid .btn-primary,.open>.dropdown-toggle.caldera-grid .btn-success,.open>.dropdown-toggle.caldera-grid .btn-warning{background-image:none}.caldera-grid fieldset{padding:0;margin:0;border:0;min-width:0}.caldera-grid legend{display:block;width:100%;padding:0;margin-bottom:20px;font-size:21px;line-height:inherit;color:#333;border:0;border-bottom:1px solid #e5e5e5}.caldera-grid label{display:inline-block;max-width:100%;margin-bottom:5px;font-weight:700}.caldera-grid input[type=checkbox],.caldera-grid input[type=radio]{margin:0;line-height:normal}.caldera-grid .form-control,.caldera-grid output{font-size:14px;line-height:1.42857143;color:#555;display:block}.caldera-grid input[type=file]{display:block}.caldera-grid input[type=range]{display:block;width:100%}.caldera-grid select[multiple],.caldera-grid select[size]{height:auto}.caldera-grid input[type=checkbox]:focus,.caldera-grid input[type=file]:focus,.caldera-grid input[type=radio]:focus{outline:dotted thin;outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px}.caldera-grid input[type=checkbox]{-webkit-appearance:checkbox}.caldera-grid input[type=radio]{-webkit-appearance:radio}.caldera-grid output{padding-top:7px}.caldera-grid .form-control{width:100%;height:34px;padding:6px 12px;background-color:#fff;border:1px solid #ccc;border-radius:2px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;-o-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.caldera-grid .form-control:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.caldera-grid .form-control::-moz-placeholder{color:#999;opacity:1}.caldera-grid .form-control:-ms-input-placeholder{color:#999}.caldera-grid .form-control::-webkit-input-placeholder{color:#999}.caldera-grid .has-success .checkbox,.caldera-grid .has-success .checkbox-inline,.caldera-grid .has-success .control-label,.caldera-grid .has-success .form-control-feedback,.caldera-grid .has-success .help-block,.caldera-grid .has-success .radio,.caldera-grid .has-success .radio-inline,.caldera-grid .has-success.checkbox label,.caldera-grid .has-success.checkbox-inline label,.caldera-grid .has-success.radio label,.caldera-grid .has-success.radio-inline label{color:#3c763d}.caldera-grid .form-control[disabled],.caldera-grid .form-control[readonly],fieldset[disabled] .caldera-grid .form-control{background-color:#eee;opacity:1}.caldera-grid .form-control[disabled],fieldset[disabled] .caldera-grid .form-control{cursor:not-allowed}textarea .caldera-grid .form-control{height:auto}@media screen and (-webkit-min-device-pixel-ratio:0){.caldera-grid input[type=date],.caldera-grid input[type=datetime-local],.caldera-grid input[type=month],.caldera-grid input[type=time]{line-height:34px}.caldera-grid input[type=date].input-sm,.caldera-grid input[type=datetime-local].input-sm,.caldera-grid input[type=month].input-sm,.caldera-grid input[type=time].input-sm,.input-group-sm .caldera-grid input[type=date],.input-group-sm .caldera-grid input[type=datetime-local],.input-group-sm .caldera-grid input[type=month],.input-group-sm .caldera-grid input[type=time]{line-height:30px}.caldera-grid input[type=date].input-lg,.caldera-grid input[type=datetime-local].input-lg,.caldera-grid input[type=month].input-lg,.caldera-grid input[type=time].input-lg,.input-group-lg .caldera-grid input[type=date],.input-group-lg .caldera-grid input[type=datetime-local],.input-group-lg .caldera-grid input[type=month],.input-group-lg .caldera-grid input[type=time]{line-height:46px}}.caldera-grid .form-group{margin-bottom:15px}.caldera-grid .checkbox,.caldera-grid .radio{position:relative;display:block;margin-top:10px;margin-bottom:10px}.caldera-grid .checkbox label,.caldera-grid .radio label{min-height:20px;padding-left:20px;margin-bottom:0;font-weight:400;cursor:pointer}.caldera-grid .checkbox input[type=checkbox],.caldera-grid .checkbox-inline input[type=checkbox],.caldera-grid .radio input[type=radio],.caldera-grid .radio-inline input[type=radio]{margin-left:-20px}.caldera-grid .checkbox+.checkbox,.caldera-grid .radio+.radio{margin-top:-5px}.caldera-grid .checkbox-inline,.caldera-grid .radio-inline{position:relative;display:inline-block;padding-left:20px;margin-bottom:0;vertical-align:middle;font-weight:400;cursor:pointer}.caldera-grid .checkbox-inline+.checkbox-inline,.caldera-grid .radio-inline+.radio-inline{margin-top:0;margin-left:10px}.caldera-grid .checkbox-inline.disabled,.caldera-grid .checkbox.disabled label,.caldera-grid .radio-inline.disabled,.caldera-grid .radio.disabled label,.caldera-grid input[type=checkbox].disabled,.caldera-grid input[type=checkbox][disabled],.caldera-grid input[type=radio].disabled,.caldera-grid input[type=radio][disabled],fieldset[disabled] .caldera-grid .checkbox label,fieldset[disabled] .caldera-grid .checkbox-inline,fieldset[disabled] .caldera-grid .radio label,fieldset[disabled] .caldera-grid .radio-inline,fieldset[disabled] .caldera-grid input[type=checkbox],fieldset[disabled] .caldera-grid input[type=radio]{cursor:not-allowed}.caldera-grid .form-control-static{padding-top:7px;padding-bottom:7px;margin-bottom:0;min-height:34px}.caldera-grid .form-control-static.input-lg,.caldera-grid .form-control-static.input-sm{padding-left:0;padding-right:0}.caldera-grid .input-sm{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:1px}select.caldera-grid .input-sm{height:30px;line-height:30px}select[multiple].caldera-grid .input-sm,textarea.caldera-grid .input-sm{height:auto}.caldera-grid .form-group-sm .form-control{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:1px}select.caldera-grid .form-group-sm .form-control{height:30px;line-height:30px}select[multiple].caldera-grid .form-group-sm .form-control,textarea.caldera-grid .form-group-sm .form-control{height:auto}.caldera-grid .form-group-sm .form-control-static{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;min-height:32px}.caldera-grid .input-lg{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:4px}select.caldera-grid .input-lg{height:46px;line-height:46px}select[multiple].caldera-grid .input-lg,textarea.caldera-grid .input-lg{height:auto}.caldera-grid .form-group-lg .form-control{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:4px}select.caldera-grid .form-group-lg .form-control{height:46px;line-height:46px}select[multiple].caldera-grid .form-group-lg .form-control,textarea.caldera-grid .form-group-lg .form-control{height:auto}.caldera-grid .form-group-lg .form-control-static{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;min-height:38px}.caldera-grid .has-feedback{position:relative}.caldera-grid .has-feedback .form-control{padding-right:42.5px}.caldera-grid .form-control-feedback{position:absolute;top:0;right:0;z-index:2;display:block;width:34px;height:34px;line-height:34px;text-align:center;pointer-events:none}.caldera-grid .input-lg+.form-control-feedback{width:46px;height:46px;line-height:46px}.caldera-grid .input-sm+.form-control-feedback{width:30px;height:30px;line-height:30px}.caldera-grid .has-success .form-control{border-color:#3c763d;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.caldera-grid .has-success .form-control:focus{border-color:#2b542c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168}.caldera-grid .has-success .input-group-addon{color:#3c763d;border-color:#3c763d;background-color:#dff0d8}.caldera-grid .has-warning .checkbox,.caldera-grid .has-warning .checkbox-inline,.caldera-grid .has-warning .control-label,.caldera-grid .has-warning .form-control-feedback,.caldera-grid .has-warning .help-block,.caldera-grid .has-warning .radio,.caldera-grid .has-warning .radio-inline,.caldera-grid .has-warning.checkbox label,.caldera-grid .has-warning.checkbox-inline label,.caldera-grid .has-warning.radio label,.caldera-grid .has-warning.radio-inline label{color:#8a6d3b}.caldera-grid .has-warning .form-control{border-color:#8a6d3b;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.caldera-grid .has-warning .form-control:focus{border-color:#66512c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b}.caldera-grid .has-warning .input-group-addon{color:#8a6d3b;border-color:#8a6d3b;background-color:#fcf8e3}.caldera-grid .has-error .checkbox,.caldera-grid .has-error .checkbox-inline,.caldera-grid .has-error .control-label,.caldera-grid .has-error .form-control-feedback,.caldera-grid .has-error .help-block,.caldera-grid .has-error .radio,.caldera-grid .has-error .radio-inline,.caldera-grid .has-error.checkbox label,.caldera-grid .has-error.checkbox-inline label,.caldera-grid .has-error.radio label,.caldera-grid .has-error.radio-inline label{color:#a94442}.caldera-grid .has-error .form-control{border-color:#a94442;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.caldera-grid .has-error .form-control:focus{border-color:#843534;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483}.caldera-grid .has-error .input-group-addon{color:#a94442;border-color:#a94442;background-color:#f2dede}.caldera-grid .has-feedback label~.form-control-feedback{top:25px}.caldera-grid .has-feedback label.sr-only~.form-control-feedback{top:0}.caldera-grid .help-block{display:block;margin-top:5px;margin-bottom:10px;color:#737373}@media (min-width:768px){.caldera-grid .form-inline .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.caldera-grid .form-inline .form-control{display:inline-block;width:auto;vertical-align:middle}.caldera-grid .form-inline .form-control-static{display:inline-block}.caldera-grid .form-inline .input-group{display:inline-table;vertical-align:middle}.caldera-grid .form-inline .input-group .form-control,.caldera-grid .form-inline .input-group .input-group-addon,.caldera-grid .form-inline .input-group .input-group-btn{width:auto}.caldera-grid .form-inline .input-group>.form-control{width:100%}.caldera-grid .form-inline .control-label{margin-bottom:0;vertical-align:middle}.caldera-grid .form-inline .checkbox,.caldera-grid .form-inline .radio{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.caldera-grid .form-inline .checkbox label,.caldera-grid .form-inline .radio label{padding-left:0}.caldera-grid .form-inline .checkbox input[type=checkbox],.caldera-grid .form-inline .radio input[type=radio]{position:relative;margin-left:0}.caldera-grid .form-inline .has-feedback .form-control-feedback{top:0}.caldera-grid .form-horizontal .control-label{text-align:right;margin-bottom:0;padding-top:7px}}.caldera-grid .form-horizontal .checkbox,.caldera-grid .form-horizontal .checkbox-inline,.caldera-grid .form-horizontal .radio,.caldera-grid .form-horizontal .radio-inline{margin-top:0;margin-bottom:0;padding-top:7px}.caldera-grid .form-horizontal .checkbox,.caldera-grid .form-horizontal .radio{min-height:27px}.caldera-grid .form-horizontal .form-group{margin-left:-15px;margin-right:-15px}.caldera-grid .form-horizontal .has-feedback .form-control-feedback{right:15px}@media (min-width:768px){.caldera-grid .form-horizontal .form-group-lg .control-label{padding-top:14.33px}.caldera-grid .form-horizontal .form-group-sm .control-label{padding-top:6px}}.caldera-grid .btn{display:inline-block;margin-bottom:0;font-weight:400;text-align:center;vertical-align:middle;touch-action:manipulation;cursor:pointer;border:1px solid transparent;white-space:nowrap;padding:6px 12px;font-size:14px;line-height:1.42857143;border-radius:2px;user-select:none}.caldera-grid .btn.active.focus,.caldera-grid .btn.active:focus,.caldera-grid .btn.focus,.caldera-grid .btn:active.focus,.caldera-grid .btn:active:focus,.caldera-grid .btn:focus{outline:dotted thin;outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px}.caldera-grid .btn.focus,.caldera-grid .btn:focus,.caldera-grid .btn:hover{color:#333;text-decoration:none}.caldera-grid .btn.active,.caldera-grid .btn:active{outline:0;background-image:none;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.caldera-grid .btn.disabled,.caldera-grid .btn[disabled],fieldset[disabled] .caldera-grid .btn{cursor:not-allowed;pointer-events:none;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none}.caldera-grid .btn-default{color:#333;background-color:#fff;border-color:#ccc}.caldera-grid .btn-default.active,.caldera-grid .btn-default.focus,.caldera-grid .btn-default:active,.caldera-grid .btn-default:focus,.caldera-grid .btn-default:hover,.open>.dropdown-toggle.caldera-grid .btn-default{color:#333;background-color:#e6e6e6;border-color:#adadad}.caldera-grid .btn-default.disabled,.caldera-grid .btn-default.disabled.active,.caldera-grid .btn-default.disabled.focus,.caldera-grid .btn-default.disabled:active,.caldera-grid .btn-default.disabled:focus,.caldera-grid .btn-default.disabled:hover,.caldera-grid .btn-default[disabled],.caldera-grid .btn-default[disabled].active,.caldera-grid .btn-default[disabled].focus,.caldera-grid .btn-default[disabled]:active,.caldera-grid .btn-default[disabled]:focus,.caldera-grid .btn-default[disabled]:hover,fieldset[disabled] .caldera-grid .btn-default,fieldset[disabled] .caldera-grid .btn-default.active,fieldset[disabled] .caldera-grid .btn-default.focus,fieldset[disabled] .caldera-grid .btn-default:active,fieldset[disabled] .caldera-grid .btn-default:focus,fieldset[disabled] .caldera-grid .btn-default:hover{background-color:#fff;border-color:#ccc}.caldera-grid .btn-default .badge{color:#fff;background-color:#333}.caldera-grid .btn-primary{color:#fff;background-color:#337ab7;border-color:#2e6da4}.caldera-grid .btn-primary.active,.caldera-grid .btn-primary.focus,.caldera-grid .btn-primary:active,.caldera-grid .btn-primary:focus,.caldera-grid .btn-primary:hover,.open>.dropdown-toggle.caldera-grid .btn-primary{color:#fff;background-color:#286090;border-color:#204d74}.caldera-grid .btn-primary.disabled,.caldera-grid .btn-primary.disabled.active,.caldera-grid .btn-primary.disabled.focus,.caldera-grid .btn-primary.disabled:active,.caldera-grid .btn-primary.disabled:focus,.caldera-grid .btn-primary.disabled:hover,.caldera-grid .btn-primary[disabled],.caldera-grid .btn-primary[disabled].active,.caldera-grid .btn-primary[disabled].focus,.caldera-grid .btn-primary[disabled]:active,.caldera-grid .btn-primary[disabled]:focus,.caldera-grid .btn-primary[disabled]:hover,fieldset[disabled] .caldera-grid .btn-primary,fieldset[disabled] .caldera-grid .btn-primary.active,fieldset[disabled] .caldera-grid .btn-primary.focus,fieldset[disabled] .caldera-grid .btn-primary:active,fieldset[disabled] .caldera-grid .btn-primary:focus,fieldset[disabled] .caldera-grid .btn-primary:hover{background-color:#337ab7;border-color:#2e6da4}.caldera-grid .btn-primary .badge{color:#337ab7;background-color:#fff}.caldera-grid .btn-success{color:#fff;background-color:#5cb85c;border-color:#4cae4c}.caldera-grid .btn-success.active,.caldera-grid .btn-success.focus,.caldera-grid .btn-success:active,.caldera-grid .btn-success:focus,.caldera-grid .btn-success:hover,.open>.dropdown-toggle.caldera-grid .btn-success{color:#fff;background-color:#449d44;border-color:#398439}.caldera-grid .btn-success.disabled,.caldera-grid .btn-success.disabled.active,.caldera-grid .btn-success.disabled.focus,.caldera-grid .btn-success.disabled:active,.caldera-grid .btn-success.disabled:focus,.caldera-grid .btn-success.disabled:hover,.caldera-grid .btn-success[disabled],.caldera-grid .btn-success[disabled].active,.caldera-grid .btn-success[disabled].focus,.caldera-grid .btn-success[disabled]:active,.caldera-grid .btn-success[disabled]:focus,.caldera-grid .btn-success[disabled]:hover,fieldset[disabled] .caldera-grid .btn-success,fieldset[disabled] .caldera-grid .btn-success.active,fieldset[disabled] .caldera-grid .btn-success.focus,fieldset[disabled] .caldera-grid .btn-success:active,fieldset[disabled] .caldera-grid .btn-success:focus,fieldset[disabled] .caldera-grid .btn-success:hover{background-color:#5cb85c;border-color:#4cae4c}.caldera-grid .btn-success .badge{color:#5cb85c;background-color:#fff}.caldera-grid .btn-info{color:#fff;background-color:#5bc0de;border-color:#46b8da}.caldera-grid .btn-info.active,.caldera-grid .btn-info.focus,.caldera-grid .btn-info:active,.caldera-grid .btn-info:focus,.caldera-grid .btn-info:hover,.open>.dropdown-toggle.caldera-grid .btn-info{color:#fff;background-color:#31b0d5;border-color:#269abc}.caldera-grid .btn-info.disabled,.caldera-grid .btn-info.disabled.active,.caldera-grid .btn-info.disabled.focus,.caldera-grid .btn-info.disabled:active,.caldera-grid .btn-info.disabled:focus,.caldera-grid .btn-info.disabled:hover,.caldera-grid .btn-info[disabled],.caldera-grid .btn-info[disabled].active,.caldera-grid .btn-info[disabled].focus,.caldera-grid .btn-info[disabled]:active,.caldera-grid .btn-info[disabled]:focus,.caldera-grid .btn-info[disabled]:hover,fieldset[disabled] .caldera-grid .btn-info,fieldset[disabled] .caldera-grid .btn-info.active,fieldset[disabled] .caldera-grid .btn-info.focus,fieldset[disabled] .caldera-grid .btn-info:active,fieldset[disabled] .caldera-grid .btn-info:focus,fieldset[disabled] .caldera-grid .btn-info:hover{background-color:#5bc0de;border-color:#46b8da}.caldera-grid .btn-info .badge{color:#5bc0de;background-color:#fff}.caldera-grid .btn-warning{color:#fff;background-color:#f0ad4e;border-color:#eea236}.caldera-grid .btn-warning.active,.caldera-grid .btn-warning.focus,.caldera-grid .btn-warning:active,.caldera-grid .btn-warning:focus,.caldera-grid .btn-warning:hover,.open>.dropdown-toggle.caldera-grid .btn-warning{color:#fff;background-color:#ec971f;border-color:#d58512}.caldera-grid .btn-warning.disabled,.caldera-grid .btn-warning.disabled.active,.caldera-grid .btn-warning.disabled.focus,.caldera-grid .btn-warning.disabled:active,.caldera-grid .btn-warning.disabled:focus,.caldera-grid .btn-warning.disabled:hover,.caldera-grid .btn-warning[disabled],.caldera-grid .btn-warning[disabled].active,.caldera-grid .btn-warning[disabled].focus,.caldera-grid .btn-warning[disabled]:active,.caldera-grid .btn-warning[disabled]:focus,.caldera-grid .btn-warning[disabled]:hover,fieldset[disabled] .caldera-grid .btn-warning,fieldset[disabled] .caldera-grid .btn-warning.active,fieldset[disabled] .caldera-grid .btn-warning.focus,fieldset[disabled] .caldera-grid .btn-warning:active,fieldset[disabled] .caldera-grid .btn-warning:focus,fieldset[disabled] .caldera-grid .btn-warning:hover{background-color:#f0ad4e;border-color:#eea236}.caldera-grid .btn-warning .badge{color:#f0ad4e;background-color:#fff}.caldera-grid .btn-danger{color:#fff;background-color:#d9534f;border-color:#d43f3a}.caldera-grid .btn-danger.active,.caldera-grid .btn-danger.focus,.caldera-grid .btn-danger:active,.caldera-grid .btn-danger:focus,.caldera-grid .btn-danger:hover,.open>.dropdown-toggle.caldera-grid .btn-danger{color:#fff;background-color:#c9302c;border-color:#ac2925}.caldera-grid .btn-danger.disabled,.caldera-grid .btn-danger.disabled.active,.caldera-grid .btn-danger.disabled.focus,.caldera-grid .btn-danger.disabled:active,.caldera-grid .btn-danger.disabled:focus,.caldera-grid .btn-danger.disabled:hover,.caldera-grid .btn-danger[disabled],.caldera-grid .btn-danger[disabled].active,.caldera-grid .btn-danger[disabled].focus,.caldera-grid .btn-danger[disabled]:active,.caldera-grid .btn-danger[disabled]:focus,.caldera-grid .btn-danger[disabled]:hover,fieldset[disabled] .caldera-grid .btn-danger,fieldset[disabled] .caldera-grid .btn-danger.active,fieldset[disabled] .caldera-grid .btn-danger.focus,fieldset[disabled] .caldera-grid .btn-danger:active,fieldset[disabled] .caldera-grid .btn-danger:focus,fieldset[disabled] .caldera-grid .btn-danger:hover{background-color:#d9534f;border-color:#d43f3a}.caldera-grid .btn-danger .badge{color:#d9534f;background-color:#fff}.caldera-grid .btn-link{color:#337ab7;font-weight:400;border-radius:0}.caldera-grid .btn-link,.caldera-grid .btn-link.active,.caldera-grid .btn-link:active,.caldera-grid .btn-link[disabled],fieldset[disabled] .caldera-grid .btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.caldera-grid .btn-link,.caldera-grid .btn-link:active,.caldera-grid .btn-link:focus,.caldera-grid .btn-link:hover{border-color:transparent}.caldera-grid .btn-link:focus,.caldera-grid .btn-link:hover{color:#23527c;text-decoration:underline;background-color:transparent}.caldera-grid .btn-link[disabled]:focus,.caldera-grid .btn-link[disabled]:hover,fieldset[disabled] .caldera-grid .btn-link:focus,fieldset[disabled] .caldera-grid .btn-link:hover{color:#777;text-decoration:none}.caldera-grid .btn-lg{padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:4px}.caldera-grid .btn-sm,.caldera-grid .btn-xs{font-size:12px;line-height:1.5;border-radius:1px}.caldera-grid .btn-sm{padding:5px 10px}.caldera-grid .btn-xs{padding:1px 5px}.caldera-grid .btn-block{display:block;width:100%}.caldera-grid .btn-block+.btn-block{margin-top:5px}.caldera-grid input[type=button].btn-block,.caldera-grid input[type=reset].btn-block,.caldera-grid input[type=submit].btn-block{width:100%}.caldera-grid textarea.form-control{padding-right:4px;height:auto}.caldera-grid .breadcrumb{padding:6px 12px;margin:0 0 20px;list-style:none;background-color:#f5f5f5;border-radius:4px}.caldera-grid .breadcrumb>li{display:inline-block;margin:0}.caldera-grid .breadcrumb>li+li:before{content:"/\00a0";padding:0 5px;color:#ccc}.caldera-grid .breadcrumb>.active,.caldera-grid .breadcrumb>.active>a{color:#777}.breadcrumb>li.active.error>a,.breadcrumb>li.error>a{color:red}.caldera-grid .cf-credit-card{padding-left:42px;background-image:url(../images/credit-card.svg);background-repeat:no-repeat!important;background-position-x:4px!important;background-position-y:3px!important}.caldera-grid .screen-reader-text{clip:rect(1px,1px,1px,1px);height:1px;overflow:hidden;position:absolute!important;width:1px;word-wrap:normal!important}@font-face{font-family:cf-raty;src:url(fonts/cf-raty.eot?40481674);src:url(fonts/cf-raty.eot?40481674#iefix) format('embedded-opentype'),url(fonts/cf-raty.woff?40481674) format('woff'),url(fonts/cf-raty.ttf?40481674) format('truetype'),url(fonts/cf-raty.svg?40481674#cf-raty) format('svg');font-weight:400;font-style:normal}[class*=" raty-"]:before,[class^=raty-]:before{font-family:cf-raty;font-style:normal;font-weight:400;speak:none;font-size:2em;display:inline-block;text-decoration:inherit;width:1em;text-align:center;font-variant:normal;text-transform:none;line-height:1em}.raty-heart-on:before{content:'\e800'}.raty-heart-off:before{content:'\e801'}.raty-star-on:before{content:'\e802'}.raty-star-off:before{content:'\e803'}.raty-circle-on:before{content:'\e804'}.raty-circle-off:before{content:'\e805'}.raty-dot-off:before{content:'\e806'}.raty-dot-on:before{content:'\e807'}.raty-face-off:before{content:'\e808'}.raty-face-on:before{content:'\e809'}.raty-cancel-off:before{content:'\e80a'}.raty-cancel-on:before{content:'\e80b'}.calculation-group{background:#FFF;box-shadow:0 1px 2px rgba(0,0,0,.05);padding:6px;margin:6px 0}.preview-color-selector{background:#F0F0F0;border:1px solid #E2E2E2;display:inline;margin-left:-1px;padding:3px 12px;box-shadow:0 0 0 2px #fff inset}.miniColors-trigger{border:1px solid #999;-mz-border-radius:0 1px 1px 0;-webkit-border-radius:0 1px 1px 0;display:inline-block;height:24px;margin:0 0 -8px -1px;width:30px}.cf-color-picker .input-group-btn:last-child>.btn,.cf-color-picker .input-group-btn:last-child>.btn-group,.cf-color-picker .input-group-btn>.btn+.btn{margin-left:-1px}.miniColors-selector{background:#FFF;border:1px solid #999;-moz-box-shadow:0 3px 0 -1px rgba(0,0,0,.05);-webkit-box-shadow:0 3px 0 -1px rgba(0,0,0,.05);box-shadow:0 3px 0 -1px rgba(0,0,0,.05);height:162px;padding:5px;position:absolute;width:187px;z-index:999999;margin-top:-1px}.miniColors-colors,.miniColors-hues{top:5px;height:150px;cursor:crosshair;position:absolute}.miniColors-selector.black{background:#000;border-color:#000}.miniColors-colors{left:5px;width:150px;background:url(minicolor-colors.png) right no-repeat}.miniColors-hues{left:160px;width:20px;background:url(minicolor-colors.png) left no-repeat}.miniColors-colorPicker{position:absolute;width:9px;height:9px;border:1px solid #fff;-moz-border-radius:11px;-webkit-border-radius:11px;border-radius:11px}.miniColors-colorPicker-inner{position:absolute;top:0;left:0;width:7px;height:7px;border:1px solid #000;-moz-border-radius:9px;-webkit-border-radius:9px;border-radius:9px}.miniColors-huePicker{position:absolute;left:-3px;width:24px;height:1px;border:1px solid #fff;border-radius:2px;background:#000}.cf-color-picker .form-control::-moz-placeholder{color:#999;opacity:1}.cf-color-picker .form-control:-ms-input-placeholder{color:#999}.cf-color-picker .form-control::-webkit-input-placeholder{color:#999}.cf-color-picker .form-control[disabled],.cf-color-picker .form-control[readonly],.cf-color-picker fieldset[disabled] .form-control{cursor:not-allowed;background-color:#eee;opacity:1}.cf-color-picker .form-group{margin-bottom:15px}.cf-color-picker .input-group{position:relative;display:table;border-collapse:separate;max-width:120px}.cf-color-picker .input-group[class*=col-]{float:none;padding-left:0;padding-right:0}.cf-color-picker .input-group .form-control{position:relative;z-index:2;float:left;width:100%;margin-bottom:0}.cf-color-picker .input-group-lg>.form-control,.cf-color-picker .input-group-lg>.input-group-addon,.cf-color-picker .input-group-lg>.input-group-btn>.btn{height:46px;padding:10px 16px;font-size:18px;line-height:1.33;border-radius:6px}.cf-color-picker .input-group-sm>.form-control,.cf-color-picker .input-group-sm>.input-group-addon,.cf-color-picker .input-group-sm>.input-group-btn>.btn{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.cf-color-picker .input-group .form-control,.cf-color-picker .input-group-addon,.cf-color-picker .input-group-btn{display:table-cell}.cf-color-picker .input-group .form-control:not(:first-child):not(:last-child),.cf-color-picker .input-group-addon:not(:first-child):not(:last-child),.cf-color-picker .input-group-btn:not(:first-child):not(:last-child){border-radius:0}.cf-color-picker .input-group-addon,.cf-color-picker .input-group-btn{width:1%;white-space:nowrap;vertical-align:middle}.cf-color-picker .input-group-addon{padding:6px 12px;font-size:14px;font-weight:400;line-height:1;color:#555;text-align:center;background-color:#eee;border:1px solid #ccc;border-radius:4px}.cf-color-picker .text-hide,.table-striped .cfdatepicker table tr td,.table-striped .cfdatepicker table tr th{background-color:transparent}.cf-color-picker .input-group-addon.input-sm{padding:5px 10px;font-size:12px;border-radius:3px}.cf-color-picker .input-group-addon.input-lg{padding:10px 16px;font-size:18px;border-radius:6px}.cf-color-picker .input-group .form-control:first-child,.cf-color-picker .input-group-addon:first-child,.cf-color-picker .input-group-btn:first-child>.btn,.cf-color-picker .input-group-btn:first-child>.btn-group>.btn,.cf-color-picker .input-group-btn:first-child>.dropdown-toggle,.cf-color-picker .input-group-btn:last-child>.btn-group:not(:last-child)>.btn,.cf-color-picker .input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle){border-bottom-right-radius:0;border-top-right-radius:0}.cf-color-picker .input-group-addon:first-child{border-right:0}.cf-color-picker .input-group .form-control:last-child,.cf-color-picker .input-group-addon:last-child,.cf-color-picker .input-group-btn:first-child>.btn-group:not(:first-child)>.btn,.cf-color-picker .input-group-btn:first-child>.btn:not(:first-child),.cf-color-picker .input-group-btn:last-child>.btn,.cf-color-picker .input-group-btn:last-child>.btn-group>.btn,.cf-color-picker .input-group-btn:last-child>.dropdown-toggle{border-bottom-left-radius:0;border-top-left-radius:0}.cf-color-picker .input-group-addon:last-child{border-left:0}.cf-color-picker .input-group-btn{position:relative;font-size:0;white-space:nowrap}.cf-color-picker .input-group-btn>.btn{position:relative}.cf-color-picker .input-group-btn>.btn:active,.cf-color-picker .input-group-btn>.btn:focus,.cf-color-picker .input-group-btn>.btn:hover{z-index:2}.cf-color-picker .input-group-btn:first-child>.btn,.cf-color-picker .input-group-btn:first-child>.btn-group{margin-right:-1px}.cf-color-picker .clearfix:after,.cf-color-picker .clearfix:before,.cf-color-picker .form-horizontal .form-group:after,.cf-color-picker .form-horizontal .form-group:before{content:" ";display:table}.cf-color-picker .clearfix:after,.cf-color-picker .form-horizontal .form-group:after{clear:both}.cf-color-picker .center-block{display:block;margin-left:auto;margin-right:auto}.cf-color-picker .pull-right{float:right!important}.cf-color-picker .pull-left{float:left!important}.cf-color-picker .hide{display:none!important}.cf-color-picker .show{display:block!important}.cf-color-picker .invisible{visibility:hidden}.cf-color-picker .text-hide{font:0/0 a;color:transparent;text-shadow:none;border:0}.cf-color-picker .hidden{display:none!important;visibility:hidden!important}.cf-color-picker .affix{position:fixed}@-ms-viewport{width:device-width}.cf-color-picker .visible-lg,.cf-color-picker .visible-md,.cf-color-picker .visible-print,.cf-color-picker .visible-sm,.cf-color-picker .visible-xs{display:none!important}@media (max-width:767px){.cf-color-picker .visible-xs{display:block!important}.cf-color-picker table.visible-xs{display:table}.cf-color-picker tr.visible-xs{display:table-row!important}.cf-color-picker td.visible-xs,.cf-color-picker th.visible-xs{display:table-cell!important}}@media (min-width:768px) and (max-width:991px){.cf-color-picker .visible-sm{display:block!important}.cf-color-picker table.visible-sm{display:table}.cf-color-picker tr.visible-sm{display:table-row!important}.cf-color-picker td.visible-sm,.cf-color-picker th.visible-sm{display:table-cell!important}}@media (min-width:992px) and (max-width:1199px){.cf-color-picker .visible-md{display:block!important}.cf-color-picker table.visible-md{display:table}.cf-color-picker tr.visible-md{display:table-row!important}.cf-color-picker td.visible-md,.cf-color-picker th.visible-md{display:table-cell!important}}@media (min-width:1200px){.cf-color-picker .visible-lg{display:block!important}.cf-color-picker table.visible-lg{display:table}.cf-color-picker tr.visible-lg{display:table-row!important}.cf-color-picker td.visible-lg,.cf-color-picker th.visible-lg{display:table-cell!important}.cf-color-picker .hidden-lg{display:none!important}}@media (max-width:767px){.cf-color-picker .hidden-xs{display:none!important}}@media (min-width:768px) and (max-width:991px){.cf-color-picker .hidden-sm{display:none!important}}@media (min-width:992px) and (max-width:1199px){.cf-color-picker .hidden-md{display:none!important}}@media print{.cf-color-picker .visible-print{display:block!important}.cf-color-picker table.visible-print{display:table}.cf-color-picker tr.visible-print{display:table-row!important}.cf-color-picker td.visible-print,.cf-color-picker th.visible-print{display:table-cell!important}.cf-color-picker .hidden-print{display:none!important}}.cfdatepicker-dropdown:after,.cfdatepicker-dropdown:before{content:'';display:inline-block;border-top:0;position:absolute}.cfdatepicker{padding:4px;border-radius:4px;direction:ltr}.cfdatepicker-inline{width:220px}.cfdatepicker.cfdatepicker-rtl{direction:rtl}.cfdatepicker.cfdatepicker-rtl table tr td span{float:right}.cfdatepicker-dropdown{top:0;left:0}.cfdatepicker-dropdown:before{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #ccc;border-bottom-color:rgba(0,0,0,.2)}.cfdatepicker-dropdown:after{border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:6px solid #fff}.cfdatepicker-dropdown.cfdatepicker-orient-left:before{left:6px}.cfdatepicker-dropdown.cfdatepicker-orient-left:after{left:7px}.cfdatepicker-dropdown.cfdatepicker-orient-right:before{right:6px}.cfdatepicker-dropdown.cfdatepicker-orient-right:after{right:7px}.cfdatepicker-dropdown.cfdatepicker-orient-top:before{top:-7px}.cfdatepicker-dropdown.cfdatepicker-orient-top:after{top:-6px}.cfdatepicker-dropdown.cfdatepicker-orient-bottom:before{bottom:-7px;border-bottom:0;border-top:7px solid #999}.cfdatepicker-dropdown.cfdatepicker-orient-bottom:after{bottom:-6px;border-bottom:0;border-top:6px solid #fff}.cfdatepicker>div{display:none}.cfdatepicker.days div.cfdatepicker-days,.cfdatepicker.months div.cfdatepicker-months,.cfdatepicker.years div.cfdatepicker-years{display:block}.cfdatepicker table{border:0;width:auto;margin:0;-webkit-touch-callout:none;-khtml-user-select:none;user-select:none}.cfdatepicker table tr td,.cfdatepicker table tr th{text-align:center;width:10px;height:10px;border-radius:4px;border:none}.cfdatepicker table tr td.day.focused,.cfdatepicker table tr td.day:hover{background:#eee;cursor:pointer}.cfdatepicker table tr td.new,.cfdatepicker table tr td.old{color:#999}.cfdatepicker table tr td.disabled,.cfdatepicker table tr td.disabled:hover{background:0 0;color:#999;cursor:default}.cfdatepicker table tr td.today,.cfdatepicker table tr td.today.disabled,.cfdatepicker table tr td.today.disabled:hover,.cfdatepicker table tr td.today:hover{color:#000;background-color:#ffdb99;border-color:#ffb733}.cfdatepicker table tr td.today.active,.cfdatepicker table tr td.today.disabled.active,.cfdatepicker table tr td.today.disabled:active,.cfdatepicker table tr td.today.disabled:focus,.cfdatepicker table tr td.today.disabled:hover,.cfdatepicker table tr td.today.disabled:hover.active,.cfdatepicker table tr td.today.disabled:hover:active,.cfdatepicker table tr td.today.disabled:hover:focus,.cfdatepicker table tr td.today.disabled:hover:hover,.cfdatepicker table tr td.today:active,.cfdatepicker table tr td.today:focus,.cfdatepicker table tr td.today:hover,.cfdatepicker table tr td.today:hover.active,.cfdatepicker table tr td.today:hover:active,.cfdatepicker table tr td.today:hover:focus,.cfdatepicker table tr td.today:hover:hover,.open .dropdown-toggle.cfdatepicker table tr td.today,.open .dropdown-toggle.cfdatepicker table tr td.today.disabled,.open .dropdown-toggle.cfdatepicker table tr td.today.disabled:hover,.open .dropdown-toggle.cfdatepicker table tr td.today:hover{color:#000;background-color:#ffcd70;border-color:#f59e00}.cfdatepicker table tr td.today.active,.cfdatepicker table tr td.today.disabled.active,.cfdatepicker table tr td.today.disabled:active,.cfdatepicker table tr td.today.disabled:hover.active,.cfdatepicker table tr td.today.disabled:hover:active,.cfdatepicker table tr td.today:active,.cfdatepicker table tr td.today:hover.active,.cfdatepicker table tr td.today:hover:active,.open .dropdown-toggle.cfdatepicker table tr td.today,.open .dropdown-toggle.cfdatepicker table tr td.today.disabled,.open .dropdown-toggle.cfdatepicker table tr td.today.disabled:hover,.open .dropdown-toggle.cfdatepicker table tr td.today:hover{background-image:none}.cfdatepicker table tr td.today.disabled,.cfdatepicker table tr td.today.disabled.active,.cfdatepicker table tr td.today.disabled.disabled,.cfdatepicker table tr td.today.disabled.disabled.active,.cfdatepicker table tr td.today.disabled.disabled:active,.cfdatepicker table tr td.today.disabled.disabled:focus,.cfdatepicker table tr td.today.disabled.disabled:hover,.cfdatepicker table tr td.today.disabled:active,.cfdatepicker table tr td.today.disabled:focus,.cfdatepicker table tr td.today.disabled:hover,.cfdatepicker table tr td.today.disabled:hover.disabled,.cfdatepicker table tr td.today.disabled:hover.disabled.active,.cfdatepicker table tr td.today.disabled:hover.disabled:active,.cfdatepicker table tr td.today.disabled:hover.disabled:focus,.cfdatepicker table tr td.today.disabled:hover.disabled:hover,.cfdatepicker table tr td.today.disabled:hover[disabled],.cfdatepicker table tr td.today.disabled:hover[disabled].active,.cfdatepicker table tr td.today.disabled:hover[disabled]:active,.cfdatepicker table tr td.today.disabled:hover[disabled]:focus,.cfdatepicker table tr td.today.disabled:hover[disabled]:hover,.cfdatepicker table tr td.today.disabled[disabled],.cfdatepicker table tr td.today.disabled[disabled].active,.cfdatepicker table tr td.today.disabled[disabled]:active,.cfdatepicker table tr td.today.disabled[disabled]:focus,.cfdatepicker table tr td.today.disabled[disabled]:hover,.cfdatepicker table tr td.today:hover.disabled,.cfdatepicker table tr td.today:hover.disabled.active,.cfdatepicker table tr td.today:hover.disabled:active,.cfdatepicker table tr td.today:hover.disabled:focus,.cfdatepicker table tr td.today:hover.disabled:hover,.cfdatepicker table tr td.today:hover[disabled],.cfdatepicker table tr td.today:hover[disabled].active,.cfdatepicker table tr td.today:hover[disabled]:active,.cfdatepicker table tr td.today:hover[disabled]:focus,.cfdatepicker table tr td.today:hover[disabled]:hover,.cfdatepicker table tr td.today[disabled],.cfdatepicker table tr td.today[disabled].active,.cfdatepicker table tr td.today[disabled]:active,.cfdatepicker table tr td.today[disabled]:focus,.cfdatepicker table tr td.today[disabled]:hover,fieldset[disabled] .cfdatepicker table tr td.today,fieldset[disabled] .cfdatepicker table tr td.today.active,fieldset[disabled] .cfdatepicker table tr td.today.disabled,fieldset[disabled] .cfdatepicker table tr td.today.disabled.active,fieldset[disabled] .cfdatepicker table tr td.today.disabled:active,fieldset[disabled] .cfdatepicker table tr td.today.disabled:focus,fieldset[disabled] .cfdatepicker table tr td.today.disabled:hover,fieldset[disabled] .cfdatepicker table tr td.today.disabled:hover.active,fieldset[disabled] .cfdatepicker table tr td.today.disabled:hover:active,fieldset[disabled] .cfdatepicker table tr td.today.disabled:hover:focus,fieldset[disabled] .cfdatepicker table tr td.today.disabled:hover:hover,fieldset[disabled] .cfdatepicker table tr td.today:active,fieldset[disabled] .cfdatepicker table tr td.today:focus,fieldset[disabled] .cfdatepicker table tr td.today:hover,fieldset[disabled] .cfdatepicker table tr td.today:hover.active,fieldset[disabled] .cfdatepicker table tr td.today:hover:active,fieldset[disabled] .cfdatepicker table tr td.today:hover:focus,fieldset[disabled] .cfdatepicker table tr td.today:hover:hover{background-color:#ffdb99;border-color:#ffb733}.cfdatepicker table tr td.today:hover:hover{color:#000}.cfdatepicker table tr td.today.active:hover{color:#fff}.cfdatepicker table tr td.range,.cfdatepicker table tr td.range.disabled,.cfdatepicker table tr td.range.disabled:hover,.cfdatepicker table tr td.range:hover{background:#eee;border-radius:0}.cfdatepicker table tr td.active.active,.cfdatepicker table tr td.active.disabled.active,.cfdatepicker table tr td.active.disabled:active,.cfdatepicker table tr td.active.disabled:hover.active,.cfdatepicker table tr td.active.disabled:hover:active,.cfdatepicker table tr td.active:active,.cfdatepicker table tr td.active:hover.active,.cfdatepicker table tr td.active:hover:active,.cfdatepicker table tr td.range.today.active,.cfdatepicker table tr td.range.today.disabled.active,.cfdatepicker table tr td.range.today.disabled:active,.cfdatepicker table tr td.range.today.disabled:hover.active,.cfdatepicker table tr td.range.today.disabled:hover:active,.cfdatepicker table tr td.range.today:active,.cfdatepicker table tr td.range.today:hover.active,.cfdatepicker table tr td.range.today:hover:active,.cfdatepicker table tr td.selected.active,.cfdatepicker table tr td.selected.disabled.active,.cfdatepicker table tr td.selected.disabled:active,.cfdatepicker table tr td.selected.disabled:hover.active,.cfdatepicker table tr td.selected.disabled:hover:active,.cfdatepicker table tr td.selected:active,.cfdatepicker table tr td.selected:hover.active,.cfdatepicker table tr td.selected:hover:active,.open .dropdown-toggle.cfdatepicker table tr td.active,.open .dropdown-toggle.cfdatepicker table tr td.active.disabled,.open .dropdown-toggle.cfdatepicker table tr td.active.disabled:hover,.open .dropdown-toggle.cfdatepicker table tr td.active:hover,.open .dropdown-toggle.cfdatepicker table tr td.range.today,.open .dropdown-toggle.cfdatepicker table tr td.range.today.disabled,.open .dropdown-toggle.cfdatepicker table tr td.range.today.disabled:hover,.open .dropdown-toggle.cfdatepicker table tr td.range.today:hover,.open .dropdown-toggle.cfdatepicker table tr td.selected,.open .dropdown-toggle.cfdatepicker table tr td.selected.disabled,.open .dropdown-toggle.cfdatepicker table tr td.selected.disabled:hover,.open .dropdown-toggle.cfdatepicker table tr td.selected:hover{background-image:none}.cfdatepicker table tr td.range.today,.cfdatepicker table tr td.range.today.disabled,.cfdatepicker table tr td.range.today.disabled:hover,.cfdatepicker table tr td.range.today:hover{color:#000;background-color:#f7ca77;border-color:#f1a417;border-radius:0}.cfdatepicker table tr td.range.today.active,.cfdatepicker table tr td.range.today.disabled.active,.cfdatepicker table tr td.range.today.disabled:active,.cfdatepicker table tr td.range.today.disabled:focus,.cfdatepicker table tr td.range.today.disabled:hover,.cfdatepicker table tr td.range.today.disabled:hover.active,.cfdatepicker table tr td.range.today.disabled:hover:active,.cfdatepicker table tr td.range.today.disabled:hover:focus,.cfdatepicker table tr td.range.today.disabled:hover:hover,.cfdatepicker table tr td.range.today:active,.cfdatepicker table tr td.range.today:focus,.cfdatepicker table tr td.range.today:hover,.cfdatepicker table tr td.range.today:hover.active,.cfdatepicker table tr td.range.today:hover:active,.cfdatepicker table tr td.range.today:hover:focus,.cfdatepicker table tr td.range.today:hover:hover,.open .dropdown-toggle.cfdatepicker table tr td.range.today,.open .dropdown-toggle.cfdatepicker table tr td.range.today.disabled,.open .dropdown-toggle.cfdatepicker table tr td.range.today.disabled:hover,.open .dropdown-toggle.cfdatepicker table tr td.range.today:hover{color:#000;background-color:#f4bb51;border-color:#bf800c}.cfdatepicker table tr td.range.today.disabled,.cfdatepicker table tr td.range.today.disabled.active,.cfdatepicker table tr td.range.today.disabled.disabled,.cfdatepicker table tr td.range.today.disabled.disabled.active,.cfdatepicker table tr td.range.today.disabled.disabled:active,.cfdatepicker table tr td.range.today.disabled.disabled:focus,.cfdatepicker table tr td.range.today.disabled.disabled:hover,.cfdatepicker table tr td.range.today.disabled:active,.cfdatepicker table tr td.range.today.disabled:focus,.cfdatepicker table tr td.range.today.disabled:hover,.cfdatepicker table tr td.range.today.disabled:hover.disabled,.cfdatepicker table tr td.range.today.disabled:hover.disabled.active,.cfdatepicker table tr td.range.today.disabled:hover.disabled:active,.cfdatepicker table tr td.range.today.disabled:hover.disabled:focus,.cfdatepicker table tr td.range.today.disabled:hover.disabled:hover,.cfdatepicker table tr td.range.today.disabled:hover[disabled],.cfdatepicker table tr td.range.today.disabled:hover[disabled].active,.cfdatepicker table tr td.range.today.disabled:hover[disabled]:active,.cfdatepicker table tr td.range.today.disabled:hover[disabled]:focus,.cfdatepicker table tr td.range.today.disabled:hover[disabled]:hover,.cfdatepicker table tr td.range.today.disabled[disabled],.cfdatepicker table tr td.range.today.disabled[disabled].active,.cfdatepicker table tr td.range.today.disabled[disabled]:active,.cfdatepicker table tr td.range.today.disabled[disabled]:focus,.cfdatepicker table tr td.range.today.disabled[disabled]:hover,.cfdatepicker table tr td.range.today:hover.disabled,.cfdatepicker table tr td.range.today:hover.disabled.active,.cfdatepicker table tr td.range.today:hover.disabled:active,.cfdatepicker table tr td.range.today:hover.disabled:focus,.cfdatepicker table tr td.range.today:hover.disabled:hover,.cfdatepicker table tr td.range.today:hover[disabled],.cfdatepicker table tr td.range.today:hover[disabled].active,.cfdatepicker table tr td.range.today:hover[disabled]:active,.cfdatepicker table tr td.range.today:hover[disabled]:focus,.cfdatepicker table tr td.range.today:hover[disabled]:hover,.cfdatepicker table tr td.range.today[disabled],.cfdatepicker table tr td.range.today[disabled].active,.cfdatepicker table tr td.range.today[disabled]:active,.cfdatepicker table tr td.range.today[disabled]:focus,.cfdatepicker table tr td.range.today[disabled]:hover,fieldset[disabled] .cfdatepicker table tr td.range.today,fieldset[disabled] .cfdatepicker table tr td.range.today.active,fieldset[disabled] .cfdatepicker table tr td.range.today.disabled,fieldset[disabled] .cfdatepicker table tr td.range.today.disabled.active,fieldset[disabled] .cfdatepicker table tr td.range.today.disabled:active,fieldset[disabled] .cfdatepicker table tr td.range.today.disabled:focus,fieldset[disabled] .cfdatepicker table tr td.range.today.disabled:hover,fieldset[disabled] .cfdatepicker table tr td.range.today.disabled:hover.active,fieldset[disabled] .cfdatepicker table tr td.range.today.disabled:hover:active,fieldset[disabled] .cfdatepicker table tr td.range.today.disabled:hover:focus,fieldset[disabled] .cfdatepicker table tr td.range.today.disabled:hover:hover,fieldset[disabled] .cfdatepicker table tr td.range.today:active,fieldset[disabled] .cfdatepicker table tr td.range.today:focus,fieldset[disabled] .cfdatepicker table tr td.range.today:hover,fieldset[disabled] .cfdatepicker table tr td.range.today:hover.active,fieldset[disabled] .cfdatepicker table tr td.range.today:hover:active,fieldset[disabled] .cfdatepicker table tr td.range.today:hover:focus,fieldset[disabled] .cfdatepicker table tr td.range.today:hover:hover{background-color:#f7ca77;border-color:#f1a417}.cfdatepicker table tr td.selected,.cfdatepicker table tr td.selected.disabled,.cfdatepicker table tr td.selected.disabled:hover,.cfdatepicker table tr td.selected:hover{color:#fff;background-color:#999;border-color:#555;text-shadow:0 -1px 0 rgba(0,0,0,.25)}.cfdatepicker table tr td.selected.active,.cfdatepicker table tr td.selected.disabled.active,.cfdatepicker table tr td.selected.disabled:active,.cfdatepicker table tr td.selected.disabled:focus,.cfdatepicker table tr td.selected.disabled:hover,.cfdatepicker table tr td.selected.disabled:hover.active,.cfdatepicker table tr td.selected.disabled:hover:active,.cfdatepicker table tr td.selected.disabled:hover:focus,.cfdatepicker table tr td.selected.disabled:hover:hover,.cfdatepicker table tr td.selected:active,.cfdatepicker table tr td.selected:focus,.cfdatepicker table tr td.selected:hover,.cfdatepicker table tr td.selected:hover.active,.cfdatepicker table tr td.selected:hover:active,.cfdatepicker table tr td.selected:hover:focus,.cfdatepicker table tr td.selected:hover:hover,.open .dropdown-toggle.cfdatepicker table tr td.selected,.open .dropdown-toggle.cfdatepicker table tr td.selected.disabled,.open .dropdown-toggle.cfdatepicker table tr td.selected.disabled:hover,.open .dropdown-toggle.cfdatepicker table tr td.selected:hover{color:#fff;background-color:#858585;border-color:#373737}.cfdatepicker table tr td.selected.disabled,.cfdatepicker table tr td.selected.disabled.active,.cfdatepicker table tr td.selected.disabled.disabled,.cfdatepicker table tr td.selected.disabled.disabled.active,.cfdatepicker table tr td.selected.disabled.disabled:active,.cfdatepicker table tr td.selected.disabled.disabled:focus,.cfdatepicker table tr td.selected.disabled.disabled:hover,.cfdatepicker table tr td.selected.disabled:active,.cfdatepicker table tr td.selected.disabled:focus,.cfdatepicker table tr td.selected.disabled:hover,.cfdatepicker table tr td.selected.disabled:hover.disabled,.cfdatepicker table tr td.selected.disabled:hover.disabled.active,.cfdatepicker table tr td.selected.disabled:hover.disabled:active,.cfdatepicker table tr td.selected.disabled:hover.disabled:focus,.cfdatepicker table tr td.selected.disabled:hover.disabled:hover,.cfdatepicker table tr td.selected.disabled:hover[disabled],.cfdatepicker table tr td.selected.disabled:hover[disabled].active,.cfdatepicker table tr td.selected.disabled:hover[disabled]:active,.cfdatepicker table tr td.selected.disabled:hover[disabled]:focus,.cfdatepicker table tr td.selected.disabled:hover[disabled]:hover,.cfdatepicker table tr td.selected.disabled[disabled],.cfdatepicker table tr td.selected.disabled[disabled].active,.cfdatepicker table tr td.selected.disabled[disabled]:active,.cfdatepicker table tr td.selected.disabled[disabled]:focus,.cfdatepicker table tr td.selected.disabled[disabled]:hover,.cfdatepicker table tr td.selected:hover.disabled,.cfdatepicker table tr td.selected:hover.disabled.active,.cfdatepicker table tr td.selected:hover.disabled:active,.cfdatepicker table tr td.selected:hover.disabled:focus,.cfdatepicker table tr td.selected:hover.disabled:hover,.cfdatepicker table tr td.selected:hover[disabled],.cfdatepicker table tr td.selected:hover[disabled].active,.cfdatepicker table tr td.selected:hover[disabled]:active,.cfdatepicker table tr td.selected:hover[disabled]:focus,.cfdatepicker table tr td.selected:hover[disabled]:hover,.cfdatepicker table tr td.selected[disabled],.cfdatepicker table tr td.selected[disabled].active,.cfdatepicker table tr td.selected[disabled]:active,.cfdatepicker table tr td.selected[disabled]:focus,.cfdatepicker table tr td.selected[disabled]:hover,fieldset[disabled] .cfdatepicker table tr td.selected,fieldset[disabled] .cfdatepicker table tr td.selected.active,fieldset[disabled] .cfdatepicker table tr td.selected.disabled,fieldset[disabled] .cfdatepicker table tr td.selected.disabled.active,fieldset[disabled] .cfdatepicker table tr td.selected.disabled:active,fieldset[disabled] .cfdatepicker table tr td.selected.disabled:focus,fieldset[disabled] .cfdatepicker table tr td.selected.disabled:hover,fieldset[disabled] .cfdatepicker table tr td.selected.disabled:hover.active,fieldset[disabled] .cfdatepicker table tr td.selected.disabled:hover:active,fieldset[disabled] .cfdatepicker table tr td.selected.disabled:hover:focus,fieldset[disabled] .cfdatepicker table tr td.selected.disabled:hover:hover,fieldset[disabled] .cfdatepicker table tr td.selected:active,fieldset[disabled] .cfdatepicker table tr td.selected:focus,fieldset[disabled] .cfdatepicker table tr td.selected:hover,fieldset[disabled] .cfdatepicker table tr td.selected:hover.active,fieldset[disabled] .cfdatepicker table tr td.selected:hover:active,fieldset[disabled] .cfdatepicker table tr td.selected:hover:focus,fieldset[disabled] .cfdatepicker table tr td.selected:hover:hover{background-color:#999;border-color:#555}.cfdatepicker table tr td.active,.cfdatepicker table tr td.active.disabled,.cfdatepicker table tr td.active.disabled:hover,.cfdatepicker table tr td.active:hover{color:#fff;background-color:#428bca;border-color:#357ebd;text-shadow:0 -1px 0 rgba(0,0,0,.25)}.cfdatepicker table tr td.active.active,.cfdatepicker table tr td.active.disabled.active,.cfdatepicker table tr td.active.disabled:active,.cfdatepicker table tr td.active.disabled:focus,.cfdatepicker table tr td.active.disabled:hover,.cfdatepicker table tr td.active.disabled:hover.active,.cfdatepicker table tr td.active.disabled:hover:active,.cfdatepicker table tr td.active.disabled:hover:focus,.cfdatepicker table tr td.active.disabled:hover:hover,.cfdatepicker table tr td.active:active,.cfdatepicker table tr td.active:focus,.cfdatepicker table tr td.active:hover,.cfdatepicker table tr td.active:hover.active,.cfdatepicker table tr td.active:hover:active,.cfdatepicker table tr td.active:hover:focus,.cfdatepicker table tr td.active:hover:hover,.open .dropdown-toggle.cfdatepicker table tr td.active,.open .dropdown-toggle.cfdatepicker table tr td.active.disabled,.open .dropdown-toggle.cfdatepicker table tr td.active.disabled:hover,.open .dropdown-toggle.cfdatepicker table tr td.active:hover{color:#fff;background-color:#3276b1;border-color:#285e8e}.cfdatepicker table tr td.active.disabled,.cfdatepicker table tr td.active.disabled.active,.cfdatepicker table tr td.active.disabled.disabled,.cfdatepicker table tr td.active.disabled.disabled.active,.cfdatepicker table tr td.active.disabled.disabled:active,.cfdatepicker table tr td.active.disabled.disabled:focus,.cfdatepicker table tr td.active.disabled.disabled:hover,.cfdatepicker table tr td.active.disabled:active,.cfdatepicker table tr td.active.disabled:focus,.cfdatepicker table tr td.active.disabled:hover,.cfdatepicker table tr td.active.disabled:hover.disabled,.cfdatepicker table tr td.active.disabled:hover.disabled.active,.cfdatepicker table tr td.active.disabled:hover.disabled:active,.cfdatepicker table tr td.active.disabled:hover.disabled:focus,.cfdatepicker table tr td.active.disabled:hover.disabled:hover,.cfdatepicker table tr td.active.disabled:hover[disabled],.cfdatepicker table tr td.active.disabled:hover[disabled].active,.cfdatepicker table tr td.active.disabled:hover[disabled]:active,.cfdatepicker table tr td.active.disabled:hover[disabled]:focus,.cfdatepicker table tr td.active.disabled:hover[disabled]:hover,.cfdatepicker table tr td.active.disabled[disabled],.cfdatepicker table tr td.active.disabled[disabled].active,.cfdatepicker table tr td.active.disabled[disabled]:active,.cfdatepicker table tr td.active.disabled[disabled]:focus,.cfdatepicker table tr td.active.disabled[disabled]:hover,.cfdatepicker table tr td.active:hover.disabled,.cfdatepicker table tr td.active:hover.disabled.active,.cfdatepicker table tr td.active:hover.disabled:active,.cfdatepicker table tr td.active:hover.disabled:focus,.cfdatepicker table tr td.active:hover.disabled:hover,.cfdatepicker table tr td.active:hover[disabled],.cfdatepicker table tr td.active:hover[disabled].active,.cfdatepicker table tr td.active:hover[disabled]:active,.cfdatepicker table tr td.active:hover[disabled]:focus,.cfdatepicker table tr td.active:hover[disabled]:hover,.cfdatepicker table tr td.active[disabled],.cfdatepicker table tr td.active[disabled].active,.cfdatepicker table tr td.active[disabled]:active,.cfdatepicker table tr td.active[disabled]:focus,.cfdatepicker table tr td.active[disabled]:hover,fieldset[disabled] .cfdatepicker table tr td.active,fieldset[disabled] .cfdatepicker table tr td.active.active,fieldset[disabled] .cfdatepicker table tr td.active.disabled,fieldset[disabled] .cfdatepicker table tr td.active.disabled.active,fieldset[disabled] .cfdatepicker table tr td.active.disabled:active,fieldset[disabled] .cfdatepicker table tr td.active.disabled:focus,fieldset[disabled] .cfdatepicker table tr td.active.disabled:hover,fieldset[disabled] .cfdatepicker table tr td.active.disabled:hover.active,fieldset[disabled] .cfdatepicker table tr td.active.disabled:hover:active,fieldset[disabled] .cfdatepicker table tr td.active.disabled:hover:focus,fieldset[disabled] .cfdatepicker table tr td.active.disabled:hover:hover,fieldset[disabled] .cfdatepicker table tr td.active:active,fieldset[disabled] .cfdatepicker table tr td.active:focus,fieldset[disabled] .cfdatepicker table tr td.active:hover,fieldset[disabled] .cfdatepicker table tr td.active:hover.active,fieldset[disabled] .cfdatepicker table tr td.active:hover:active,fieldset[disabled] .cfdatepicker table tr td.active:hover:focus,fieldset[disabled] .cfdatepicker table tr td.active:hover:hover{background-color:#428bca;border-color:#357ebd}.cfdatepicker table tr td span{display:block;width:23%;height:54px;line-height:54px;float:left;margin:1%;cursor:pointer;border-radius:4px}.cfdatepicker table tr td span:hover{background:#eee}.cfdatepicker table tr td span.disabled,.cfdatepicker table tr td span.disabled:hover{background:0 0;color:#999;cursor:default}.cfdatepicker table tr td span.active,.cfdatepicker table tr td span.active.disabled,.cfdatepicker table tr td span.active.disabled:hover,.cfdatepicker table tr td span.active:hover{color:#fff;background-color:#428bca;border-color:#357ebd;text-shadow:0 -1px 0 rgba(0,0,0,.25)}.cfdatepicker table tr td span.active.active,.cfdatepicker table tr td span.active.disabled.active,.cfdatepicker table tr td span.active.disabled:active,.cfdatepicker table tr td span.active.disabled:focus,.cfdatepicker table tr td span.active.disabled:hover,.cfdatepicker table tr td span.active.disabled:hover.active,.cfdatepicker table tr td span.active.disabled:hover:active,.cfdatepicker table tr td span.active.disabled:hover:focus,.cfdatepicker table tr td span.active.disabled:hover:hover,.cfdatepicker table tr td span.active:active,.cfdatepicker table tr td span.active:focus,.cfdatepicker table tr td span.active:hover,.cfdatepicker table tr td span.active:hover.active,.cfdatepicker table tr td span.active:hover:active,.cfdatepicker table tr td span.active:hover:focus,.cfdatepicker table tr td span.active:hover:hover,.open .dropdown-toggle.cfdatepicker table tr td span.active,.open .dropdown-toggle.cfdatepicker table tr td span.active.disabled,.open .dropdown-toggle.cfdatepicker table tr td span.active.disabled:hover,.open .dropdown-toggle.cfdatepicker table tr td span.active:hover{color:#fff;background-color:#3276b1;border-color:#285e8e}.cfdatepicker table tr td span.active.active,.cfdatepicker table tr td span.active.disabled.active,.cfdatepicker table tr td span.active.disabled:active,.cfdatepicker table tr td span.active.disabled:hover.active,.cfdatepicker table tr td span.active.disabled:hover:active,.cfdatepicker table tr td span.active:active,.cfdatepicker table tr td span.active:hover.active,.cfdatepicker table tr td span.active:hover:active,.open .dropdown-toggle.cfdatepicker table tr td span.active,.open .dropdown-toggle.cfdatepicker table tr td span.active.disabled,.open .dropdown-toggle.cfdatepicker table tr td span.active.disabled:hover,.open .dropdown-toggle.cfdatepicker table tr td span.active:hover{background-image:none}.cfdatepicker table tr td span.active.disabled,.cfdatepicker table tr td span.active.disabled.active,.cfdatepicker table tr td span.active.disabled.disabled,.cfdatepicker table tr td span.active.disabled.disabled.active,.cfdatepicker table tr td span.active.disabled.disabled:active,.cfdatepicker table tr td span.active.disabled.disabled:focus,.cfdatepicker table tr td span.active.disabled.disabled:hover,.cfdatepicker table tr td span.active.disabled:active,.cfdatepicker table tr td span.active.disabled:focus,.cfdatepicker table tr td span.active.disabled:hover,.cfdatepicker table tr td span.active.disabled:hover.disabled,.cfdatepicker table tr td span.active.disabled:hover.disabled.active,.cfdatepicker table tr td span.active.disabled:hover.disabled:active,.cfdatepicker table tr td span.active.disabled:hover.disabled:focus,.cfdatepicker table tr td span.active.disabled:hover.disabled:hover,.cfdatepicker table tr td span.active.disabled:hover[disabled],.cfdatepicker table tr td span.active.disabled:hover[disabled].active,.cfdatepicker table tr td span.active.disabled:hover[disabled]:active,.cfdatepicker table tr td span.active.disabled:hover[disabled]:focus,.cfdatepicker table tr td span.active.disabled:hover[disabled]:hover,.cfdatepicker table tr td span.active.disabled[disabled],.cfdatepicker table tr td span.active.disabled[disabled].active,.cfdatepicker table tr td span.active.disabled[disabled]:active,.cfdatepicker table tr td span.active.disabled[disabled]:focus,.cfdatepicker table tr td span.active.disabled[disabled]:hover,.cfdatepicker table tr td span.active:hover.disabled,.cfdatepicker table tr td span.active:hover.disabled.active,.cfdatepicker table tr td span.active:hover.disabled:active,.cfdatepicker table tr td span.active:hover.disabled:focus,.cfdatepicker table tr td span.active:hover.disabled:hover,.cfdatepicker table tr td span.active:hover[disabled],.cfdatepicker table tr td span.active:hover[disabled].active,.cfdatepicker table tr td span.active:hover[disabled]:active,.cfdatepicker table tr td span.active:hover[disabled]:focus,.cfdatepicker table tr td span.active:hover[disabled]:hover,.cfdatepicker table tr td span.active[disabled],.cfdatepicker table tr td span.active[disabled].active,.cfdatepicker table tr td span.active[disabled]:active,.cfdatepicker table tr td span.active[disabled]:focus,.cfdatepicker table tr td span.active[disabled]:hover,fieldset[disabled] .cfdatepicker table tr td span.active,fieldset[disabled] .cfdatepicker table tr td span.active.active,fieldset[disabled] .cfdatepicker table tr td span.active.disabled,fieldset[disabled] .cfdatepicker table tr td span.active.disabled.active,fieldset[disabled] .cfdatepicker table tr td span.active.disabled:active,fieldset[disabled] .cfdatepicker table tr td span.active.disabled:focus,fieldset[disabled] .cfdatepicker table tr td span.active.disabled:hover,fieldset[disabled] .cfdatepicker table tr td span.active.disabled:hover.active,fieldset[disabled] .cfdatepicker table tr td span.active.disabled:hover:active,fieldset[disabled] .cfdatepicker table tr td span.active.disabled:hover:focus,fieldset[disabled] .cfdatepicker table tr td span.active.disabled:hover:hover,fieldset[disabled] .cfdatepicker table tr td span.active:active,fieldset[disabled] .cfdatepicker table tr td span.active:focus,fieldset[disabled] .cfdatepicker table tr td span.active:hover,fieldset[disabled] .cfdatepicker table tr td span.active:hover.active,fieldset[disabled] .cfdatepicker table tr td span.active:hover:active,fieldset[disabled] .cfdatepicker table tr td span.active:hover:focus,fieldset[disabled] .cfdatepicker table tr td span.active:hover:hover{background-color:#428bca;border-color:#357ebd}.cfdatepicker table tr td span.new,.cfdatepicker table tr td span.old{color:#999}.cfdatepicker th.cfdatepicker-switch{width:145px}.cfdatepicker tfoot tr th,.cfdatepicker thead tr:first-child th{cursor:pointer}.cfdatepicker tfoot tr th:hover,.cfdatepicker thead tr:first-child th:hover{background:#eee}.cfdatepicker .cw{font-size:10px;width:12px;padding:0 2px 0 5px;vertical-align:middle}.cfdatepicker thead tr:first-child th.cw{cursor:default;background-color:transparent}.input-group.date .input-group-addon i{cursor:pointer;width:16px;height:16px}.input-daterange input{text-align:center}.input-daterange input:first-child{border-radius:3px 0 0 3px}.input-daterange input:last-child{border-radius:0 3px 3px 0}.input-daterange .input-group-addon{width:auto;min-width:16px;padding:4px 5px;font-weight:400;line-height:1.42857143;text-align:center;text-shadow:0 1px 0 #fff;vertical-align:middle;background-color:#eee;border:solid #ccc;border-width:1px 0;margin-left:-5px;margin-right:-5px}.cfdatepicker.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;float:left;display:none;min-width:160px;list-style:none;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,.2);border-radius:5px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,.2);-moz-box-shadow:0 5px 10px rgba(0,0,0,.2);box-shadow:0 5px 10px rgba(0,0,0,.2);-webkit-background-clip:padding-box;-moz-background-clip:padding;background-clip:padding-box;color:#333;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px;line-height:1.42857143}.cfdatepicker.dropdown-menu td,.cfdatepicker.dropdown-menu th{padding:4px 5px}.image-thumb{margin-left:63px;padding:6px 0 6px 6px}.image-picker-content.image-thumb-lrg{margin-bottom:6px}.image-picker-side-bar{float:left;margin-left:-68px;width:62px;max-width:100%}.image-thumb-lrg .image-picker-side-bar{background:#F6F6F6;border:1px solid #DFDFDF;float:none;margin:0 0 6px;padding:6px 6px 2px;text-align:center;width:auto}.image-picker-side-bar>img{border:1px solid #DFDFDF;width:62px}.image-thumb-lrg .image-picker-side-bar>img{-moz-box-sizing:border-box;box-sizing:border-box;max-width:100%;text-align:center;width:auto}.image-thumb .image-picker-main-content{margin-right:6px}.button.image-picker-button{margin:7px 0 0;width:110px;display:inline-block}.button.button-primary.image-picker-button{float:right;margin-left:6px;width:80px}.image-picker-main-content select{width:100%}.image-picker-sizer:disabled{opacity:.7;box-shadow:none;color:#A1A1A1}.button-primary.image-picker-button.image-picker-button-solo,.button.image-picker-button.image-picker-button-solo{width:170px;margin-top:0}.button-primary.image-picker-button.image-picker-button-solo{margin-top:7px;margin-left:0;float:none}.image-thumb-lrg .button.image-picker-button.cu-image-picker.image-picker-button-solo{width:120px}.image-thumb-lrg .button.button-primary.image-picker-button.cu-image-remover.image-picker-button-solo{float:right;margin:0 0 0 6px;width:auto}.cf-toggle-switch .btn-group>.btn-group,.cf-toggle-switch .btn-toolbar .btn-group,.cf-toggle-switch .btn-toolbar .input-group{float:left}.image-thumb-lrg .button.button-primary.image-picker-button.cu-image-remover{width:45%}input.cu-image-picker-file-select[type=file]{display:none}.rangeslider,.rangeslider__fill{background:#e6e6e6;display:block;height:8px;width:100%;-webkit-border-radius:10px;-moz-border-radius:10px;-ms-border-radius:10px;-o-border-radius:10px;border-radius:10px}.rangeslider__handle,.toggle_option_row input{display:inline-block}.rangeslider{position:relative}.rangeslider--disabled{filter:alpha(Opacity=40);opacity:.4}.rangeslider__fill{background:#0f0;position:absolute;top:0}.rangeslider__handle{background:#fff;border:1px solid #ccc;cursor:pointer;width:18px;height:18px;position:absolute;top:-5px;-webkit-border-radius:50%;-moz-border-radius:50%;-ms-border-radius:50%;-o-border-radius:50%;border-radius:50%}input[type=range]:focus+.rangeslider .rangeslider__handle{-webkit-box-shadow:0 0 3px rgba(100,100,100,.9);-moz-box-shadow:0 0 3px rgba(100,100,100,.9);box-shadow:0 0 3px rgba(100,100,100,.9)}.recaptchatable #recaptcha_response_field{height:21px!important}.toggle_option_row{margin:4px 0}.toggle_option_row .dashicons-sort{cursor:move}.toggle_option_row .toggle_label_field,.toggle_option_row .toggle_value_field{width:136px;line-height:20px}.toggle_option_preview .button{border-radius:0;margin-right:-5px}.toggle_option_preview .button:first-child{border-radius:3px 0 0 3px}.toggle_option_preview .button:last-child{border-radius:0 3px 3px 0}.toggle_option_preview.toggle_vertical .button{width:100%}.toggle_option_preview.toggle_vertical .button:first-child{border-radius:3px 3px 0 0}.toggle_option_preview.toggle_vertical .button:last-child{border-radius:0 0 3px 3px}.cf-toggle-switch html{font-family:sans-serif}.cf-toggle-switch body{margin:0}.cf-toggle-switch article,.cf-toggle-switch aside,.cf-toggle-switch details,.cf-toggle-switch figcaption,.cf-toggle-switch figure,.cf-toggle-switch footer,.cf-toggle-switch header,.cf-toggle-switch hgroup,.cf-toggle-switch main,.cf-toggle-switch nav,.cf-toggle-switch section,.cf-toggle-switch summary{display:block}.cf-toggle-switch audio,.cf-toggle-switch canvas,.cf-toggle-switch progress,.cf-toggle-switch video{display:inline-block;vertical-align:baseline}.cf-toggle-switch audio:not([controls]){display:none;height:0}.cf-toggle-switch [hidden],.cf-toggle-switch template{display:none}.cf-toggle-switch a{background:0 0}.cf-toggle-switch a:active,.cf-toggle-switch a:hover{outline:0}.cf-toggle-switch abbr[title]{border-bottom:1px dotted}.cf-toggle-switch b,.cf-toggle-switch strong{font-weight:700}.cf-toggle-switch dfn{font-style:italic}.cf-toggle-switch h1{font-size:2em;margin:.67em 0}.cf-toggle-switch mark{background:#ff0;color:#000}.cf-toggle-switch .btn,.cf-toggle-switch .btn-danger.active,.cf-toggle-switch .btn-danger:active,.cf-toggle-switch .btn-default.active,.cf-toggle-switch .btn-default:active,.cf-toggle-switch .btn-info.active,.cf-toggle-switch .btn-info:active,.cf-toggle-switch .btn-primary.active,.cf-toggle-switch .btn-primary:active,.cf-toggle-switch .btn-success.active,.cf-toggle-switch .btn-success:active,.cf-toggle-switch .btn-warning.active,.cf-toggle-switch .btn-warning:active,.cf-toggle-switch .open .dropdown-toggle.btn-danger,.cf-toggle-switch .open .dropdown-toggle.btn-default,.cf-toggle-switch .open .dropdown-toggle.btn-info,.cf-toggle-switch .open .dropdown-toggle.btn-primary,.cf-toggle-switch .open .dropdown-toggle.btn-success,.cf-toggle-switch .open .dropdown-toggle.btn-warning{background-image:none}.cf-toggle-switch small{font-size:80%}.cf-toggle-switch sub,.cf-toggle-switch sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.cf-toggle-switch sup{top:-.5em}.cf-toggle-switch sub{bottom:-.25em}.cf-toggle-switch img{border:0}.cf-toggle-switch figure{margin:1em 40px}.cf-toggle-switch hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}.cf-toggle-switch pre{overflow:auto}.cf-toggle-switch code,.cf-toggle-switch kbd,.cf-toggle-switch pre,.cf-toggle-switch samp{font-family:monospace,monospace;font-size:1em}.cf-toggle-switch button,.cf-toggle-switch input,.cf-toggle-switch optgroup,.cf-toggle-switch select,.cf-toggle-switch textarea{color:inherit;font:inherit;margin:0}.cf-toggle-switch button{overflow:visible}.cf-toggle-switch button,.cf-toggle-switch html input[type=button],.cf-toggle-switch input[type=reset],.cf-toggle-switch input[type=submit]{-webkit-appearance:button;cursor:pointer}.cf-toggle-switch button[disabled],.cf-toggle-switch html input[disabled]{cursor:default}.cf-toggle-switch button::-moz-focus-inner,.cf-toggle-switch input::-moz-focus-inner{border:0;padding:0}.cf-toggle-switch input{line-height:normal}.cf-toggle-switch input[type=checkbox],.cf-toggle-switch input[type=radio]{box-sizing:border-box;padding:0}.cf-toggle-switch input[type=number]::-webkit-inner-spin-button,.cf-toggle-switch input[type=number]::-webkit-outer-spin-button{height:auto}.cf-toggle-switch input[type=search]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}.cf-toggle-switch input[type=search]::-webkit-search-cancel-button,.cf-toggle-switch input[type=search]::-webkit-search-decoration{-webkit-appearance:none}.cf-toggle-switch fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}.cf-toggle-switch legend{border:0;padding:0}.cf-toggle-switch textarea{overflow:auto}.cf-toggle-switch optgroup{font-weight:700}.cf-toggle-switch table{border-collapse:collapse;border-spacing:0}.cf-toggle-switch td,.cf-toggle-switch th{padding:0}.cf-toggle-switch .btn{display:inline-block;margin-bottom:0;font-weight:400;text-align:center;vertical-align:middle;cursor:pointer;border:1px solid transparent;white-space:nowrap;padding:6px 12px;font-size:14px;line-height:1.42857143;border-radius:4px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.cf-toggle-switch .btn.active:focus,.cf-toggle-switch .btn:active:focus,.cf-toggle-switch .btn:focus{outline:dotted thin;outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px}.cf-toggle-switch .btn-group .dropdown-toggle:active,.cf-toggle-switch .btn-group-vertical>.btn:focus,.cf-toggle-switch .btn-group.open .dropdown-toggle,.cf-toggle-switch .btn-group>.btn:focus{outline:0}.cf-toggle-switch .btn:focus,.cf-toggle-switch .btn:hover{color:#333;text-decoration:none}.cf-toggle-switch .btn.active,.cf-toggle-switch .btn:active{outline:0;background-image:none;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.cf-toggle-switch .btn.disabled,.cf-toggle-switch .btn[disabled],.cf-toggle-switch fieldset[disabled] .btn{cursor:not-allowed;pointer-events:none;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none}.cf-toggle-switch .btn-default{color:#333;background-color:#fff;border-color:#ccc}.cf-toggle-switch .btn-default.active,.cf-toggle-switch .btn-default:active,.cf-toggle-switch .btn-default:focus,.cf-toggle-switch .btn-default:hover,.cf-toggle-switch .open .dropdown-toggle.btn-default{color:#333;background-color:#ebebeb;border-color:#adadad}.cf-toggle-switch .btn-default.disabled,.cf-toggle-switch .btn-default.disabled.active,.cf-toggle-switch .btn-default.disabled:active,.cf-toggle-switch .btn-default.disabled:focus,.cf-toggle-switch .btn-default.disabled:hover,.cf-toggle-switch .btn-default[disabled],.cf-toggle-switch .btn-default[disabled].active,.cf-toggle-switch .btn-default[disabled]:active,.cf-toggle-switch .btn-default[disabled]:focus,.cf-toggle-switch .btn-default[disabled]:hover,.cf-toggle-switch fieldset[disabled] .btn-default,.cf-toggle-switch fieldset[disabled] .btn-default.active,.cf-toggle-switch fieldset[disabled] .btn-default:active,.cf-toggle-switch fieldset[disabled] .btn-default:focus,.cf-toggle-switch fieldset[disabled] .btn-default:hover{background-color:#fff;border-color:#ccc}.cf-toggle-switch .btn-default .badge{color:#fff;background-color:#333}.cf-toggle-switch .btn-primary{color:#fff;background-color:#428bca;border-color:#357ebd}.cf-toggle-switch .btn-primary.active,.cf-toggle-switch .btn-primary:active,.cf-toggle-switch .btn-primary:focus,.cf-toggle-switch .btn-primary:hover,.cf-toggle-switch .open .dropdown-toggle.btn-primary{color:#fff;background-color:#3276b1;border-color:#285e8e}.cf-toggle-switch .btn-primary.disabled,.cf-toggle-switch .btn-primary.disabled.active,.cf-toggle-switch .btn-primary.disabled:active,.cf-toggle-switch .btn-primary.disabled:focus,.cf-toggle-switch .btn-primary.disabled:hover,.cf-toggle-switch .btn-primary[disabled],.cf-toggle-switch .btn-primary[disabled].active,.cf-toggle-switch .btn-primary[disabled]:active,.cf-toggle-switch .btn-primary[disabled]:focus,.cf-toggle-switch .btn-primary[disabled]:hover,.cf-toggle-switch fieldset[disabled] .btn-primary,.cf-toggle-switch fieldset[disabled] .btn-primary.active,.cf-toggle-switch fieldset[disabled] .btn-primary:active,.cf-toggle-switch fieldset[disabled] .btn-primary:focus,.cf-toggle-switch fieldset[disabled] .btn-primary:hover{background-color:#428bca;border-color:#357ebd}.cf-toggle-switch .btn-primary .badge{color:#428bca;background-color:#fff}.cf-toggle-switch .btn-success{color:#fff;background-color:#5cb85c;border-color:#4cae4c}.cf-toggle-switch .btn-success.active,.cf-toggle-switch .btn-success:active,.cf-toggle-switch .btn-success:focus,.cf-toggle-switch .btn-success:hover,.cf-toggle-switch .open .dropdown-toggle.btn-success{color:#fff;background-color:#47a447;border-color:#398439}.cf-toggle-switch .btn-success.disabled,.cf-toggle-switch .btn-success.disabled.active,.cf-toggle-switch .btn-success.disabled:active,.cf-toggle-switch .btn-success.disabled:focus,.cf-toggle-switch .btn-success.disabled:hover,.cf-toggle-switch .btn-success[disabled],.cf-toggle-switch .btn-success[disabled].active,.cf-toggle-switch .btn-success[disabled]:active,.cf-toggle-switch .btn-success[disabled]:focus,.cf-toggle-switch .btn-success[disabled]:hover,.cf-toggle-switch fieldset[disabled] .btn-success,.cf-toggle-switch fieldset[disabled] .btn-success.active,.cf-toggle-switch fieldset[disabled] .btn-success:active,.cf-toggle-switch fieldset[disabled] .btn-success:focus,.cf-toggle-switch fieldset[disabled] .btn-success:hover{background-color:#5cb85c;border-color:#4cae4c}.cf-toggle-switch .btn-success .badge{color:#5cb85c;background-color:#fff}.cf-toggle-switch .btn-info{color:#fff;background-color:#5bc0de;border-color:#46b8da}.cf-toggle-switch .btn-info.active,.cf-toggle-switch .btn-info:active,.cf-toggle-switch .btn-info:focus,.cf-toggle-switch .btn-info:hover,.cf-toggle-switch .open .dropdown-toggle.btn-info{color:#fff;background-color:#39b3d7;border-color:#269abc}.cf-toggle-switch .btn-info.disabled,.cf-toggle-switch .btn-info.disabled.active,.cf-toggle-switch .btn-info.disabled:active,.cf-toggle-switch .btn-info.disabled:focus,.cf-toggle-switch .btn-info.disabled:hover,.cf-toggle-switch .btn-info[disabled],.cf-toggle-switch .btn-info[disabled].active,.cf-toggle-switch .btn-info[disabled]:active,.cf-toggle-switch .btn-info[disabled]:focus,.cf-toggle-switch .btn-info[disabled]:hover,.cf-toggle-switch fieldset[disabled] .btn-info,.cf-toggle-switch fieldset[disabled] .btn-info.active,.cf-toggle-switch fieldset[disabled] .btn-info:active,.cf-toggle-switch fieldset[disabled] .btn-info:focus,.cf-toggle-switch fieldset[disabled] .btn-info:hover{background-color:#5bc0de;border-color:#46b8da}.cf-toggle-switch .btn-info .badge{color:#5bc0de;background-color:#fff}.cf-toggle-switch .btn-warning{color:#fff;background-color:#f0ad4e;border-color:#eea236}.cf-toggle-switch .btn-warning.active,.cf-toggle-switch .btn-warning:active,.cf-toggle-switch .btn-warning:focus,.cf-toggle-switch .btn-warning:hover,.cf-toggle-switch .open .dropdown-toggle.btn-warning{color:#fff;background-color:#ed9c28;border-color:#d58512}.cf-toggle-switch .btn-warning.disabled,.cf-toggle-switch .btn-warning.disabled.active,.cf-toggle-switch .btn-warning.disabled:active,.cf-toggle-switch .btn-warning.disabled:focus,.cf-toggle-switch .btn-warning.disabled:hover,.cf-toggle-switch .btn-warning[disabled],.cf-toggle-switch .btn-warning[disabled].active,.cf-toggle-switch .btn-warning[disabled]:active,.cf-toggle-switch .btn-warning[disabled]:focus,.cf-toggle-switch .btn-warning[disabled]:hover,.cf-toggle-switch fieldset[disabled] .btn-warning,.cf-toggle-switch fieldset[disabled] .btn-warning.active,.cf-toggle-switch fieldset[disabled] .btn-warning:active,.cf-toggle-switch fieldset[disabled] .btn-warning:focus,.cf-toggle-switch fieldset[disabled] .btn-warning:hover{background-color:#f0ad4e;border-color:#eea236}.cf-toggle-switch .btn-warning .badge{color:#f0ad4e;background-color:#fff}.cf-toggle-switch .btn-danger{color:#fff;background-color:#d9534f;border-color:#d43f3a}.cf-toggle-switch .btn-danger.active,.cf-toggle-switch .btn-danger:active,.cf-toggle-switch .btn-danger:focus,.cf-toggle-switch .btn-danger:hover,.cf-toggle-switch .open .dropdown-toggle.btn-danger{color:#fff;background-color:#d2322d;border-color:#ac2925}.cf-toggle-switch .btn-danger.disabled,.cf-toggle-switch .btn-danger.disabled.active,.cf-toggle-switch .btn-danger.disabled:active,.cf-toggle-switch .btn-danger.disabled:focus,.cf-toggle-switch .btn-danger.disabled:hover,.cf-toggle-switch .btn-danger[disabled],.cf-toggle-switch .btn-danger[disabled].active,.cf-toggle-switch .btn-danger[disabled]:active,.cf-toggle-switch .btn-danger[disabled]:focus,.cf-toggle-switch .btn-danger[disabled]:hover,.cf-toggle-switch fieldset[disabled] .btn-danger,.cf-toggle-switch fieldset[disabled] .btn-danger.active,.cf-toggle-switch fieldset[disabled] .btn-danger:active,.cf-toggle-switch fieldset[disabled] .btn-danger:focus,.cf-toggle-switch fieldset[disabled] .btn-danger:hover{background-color:#d9534f;border-color:#d43f3a}.cf-toggle-switch .btn-danger .badge{color:#d9534f;background-color:#fff}.cf-toggle-switch .btn-link{color:#428bca;font-weight:400;cursor:pointer;border-radius:0}.cf-toggle-switch .btn-link,.cf-toggle-switch .btn-link:active,.cf-toggle-switch .btn-link[disabled],.cf-toggle-switch fieldset[disabled] .btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.cf-toggle-switch .btn-link,.cf-toggle-switch .btn-link:active,.cf-toggle-switch .btn-link:focus,.cf-toggle-switch .btn-link:hover{border-color:transparent}.cf-toggle-switch .btn-link:focus,.cf-toggle-switch .btn-link:hover{color:#2a6496;text-decoration:underline;background-color:transparent}.cf-toggle-switch .btn-link[disabled]:focus,.cf-toggle-switch .btn-link[disabled]:hover,.cf-toggle-switch fieldset[disabled] .btn-link:focus,.cf-toggle-switch fieldset[disabled] .btn-link:hover{color:#999;text-decoration:none}.cf-toggle-switch .btn-group-lg>.btn,.cf-toggle-switch .btn-lg{padding:10px 16px;font-size:18px;line-height:1.33;border-radius:6px}.cf-toggle-switch .btn-group-sm>.btn,.cf-toggle-switch .btn-sm{padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.cf-toggle-switch .btn-group-xs>.btn,.cf-toggle-switch .btn-xs{padding:1px 5px;font-size:12px;line-height:1.5;border-radius:3px}.cf-toggle-switch .btn-group-vertical>.btn:not(:first-child):not(:last-child),.cf-toggle-switch .btn-group>.btn-group:not(:first-child):not(:last-child)>.btn,.cf-toggle-switch .btn-group>.btn:not(:first-child):not(:last-child):not(.dropdown-toggle){border-radius:0}.cf-toggle-switch .btn-block{display:block;width:100%;padding-left:0;padding-right:0}.cf-toggle-switch .btn-block+.btn-block{margin-top:5px}.cf-toggle-switch input[type=button].btn-block,.cf-toggle-switch input[type=reset].btn-block,.cf-toggle-switch input[type=submit].btn-block{width:100%}.cf-toggle-switch .btn-group,.cf-toggle-switch .btn-group-vertical{position:relative;display:inline-block;vertical-align:middle}.cf-toggle-switch .btn-group-vertical>.btn,.cf-toggle-switch .btn-group>.btn{position:relative;float:left}.cf-toggle-switch .btn-group-vertical>.btn.active,.cf-toggle-switch .btn-group-vertical>.btn:active,.cf-toggle-switch .btn-group-vertical>.btn:focus,.cf-toggle-switch .btn-group-vertical>.btn:hover,.cf-toggle-switch .btn-group>.btn.active,.cf-toggle-switch .btn-group>.btn:active,.cf-toggle-switch .btn-group>.btn:focus,.cf-toggle-switch .btn-group>.btn:hover{z-index:2}.cf-toggle-switch .btn-group .btn+.btn,.cf-toggle-switch .btn-group .btn+.btn-group,.cf-toggle-switch .btn-group .btn-group+.btn,.cf-toggle-switch .btn-group .btn-group+.btn-group{margin-left:-1px}.cf-toggle-switch .btn-toolbar{margin-left:-5px}.cf-toggle-switch .btn-toolbar>.btn,.cf-toggle-switch .btn-toolbar>.btn-group,.cf-toggle-switch .btn-toolbar>.input-group{margin-left:5px}.cf-toggle-switch .btn .caret,.cf-toggle-switch .btn-group>.btn:first-child{margin-left:0}.cf-toggle-switch .btn-group>.btn:first-child:not(:last-child):not(.dropdown-toggle){border-bottom-right-radius:0;border-top-right-radius:0}.cf-toggle-switch .btn-group>.btn:last-child:not(:first-child),.cf-toggle-switch .btn-group>.dropdown-toggle:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.cf-toggle-switch .btn-group>.btn-group:first-child>.btn:last-child,.cf-toggle-switch .btn-group>.btn-group:first-child>.dropdown-toggle{border-bottom-right-radius:0;border-top-right-radius:0}.cf-toggle-switch .btn-group>.btn-group:last-child>.btn:first-child{border-bottom-left-radius:0;border-top-left-radius:0}.cf-toggle-switch .btn-group>.btn+.dropdown-toggle{padding-left:8px;padding-right:8px}.cf-toggle-switch .btn-group>.btn-lg+.dropdown-toggle{padding-left:12px;padding-right:12px}.cf-toggle-switch .btn-group.open .dropdown-toggle{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.cf-toggle-switch .btn-group.open .dropdown-toggle.btn-link{-webkit-box-shadow:none;box-shadow:none}.cf-toggle-switch .btn-lg .caret{border-width:5px 5px 0}.cf-toggle-switch .dropup .btn-lg .caret{border-width:0 5px 5px}.cf-toggle-switch .btn-group-vertical>.btn,.cf-toggle-switch .btn-group-vertical>.btn-group,.cf-toggle-switch .btn-group-vertical>.btn-group>.btn{display:block;float:none;width:100%;max-width:100%}.cf-toggle-switch .btn-group-vertical>.btn-group>.btn{float:none}.cf-toggle-switch .btn-group-vertical>.btn+.btn,.cf-toggle-switch .btn-group-vertical>.btn+.btn-group,.cf-toggle-switch .btn-group-vertical>.btn-group+.btn,.cf-toggle-switch .btn-group-vertical>.btn-group+.btn-group{margin-top:-1px;margin-left:0}.cf-toggle-switch .btn-group-vertical>.btn:first-child:not(:last-child){border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.cf-toggle-switch .btn-group-vertical>.btn:last-child:not(:first-child){border-bottom-left-radius:4px;border-top-right-radius:0;border-top-left-radius:0}.cf-toggle-switch .btn-group-vertical>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.cf-toggle-switch .btn-group-vertical>.btn-group:first-child:not(:last-child)>.btn:last-child,.cf-toggle-switch .btn-group-vertical>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-bottom-right-radius:0;border-bottom-left-radius:0}.cf-toggle-switch .btn-group-vertical>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-right-radius:0;border-top-left-radius:0}.cf-toggle-switch .btn-group-justified{display:table;width:100%;table-layout:fixed;border-collapse:separate}.cf-toggle-switch .btn-group-justified>.btn,.cf-toggle-switch .btn-group-justified>.btn-group{float:none;display:table-cell;width:1%}.cf-toggle-switch .btn-group-justified>.btn-group .btn{width:100%}.cf-toggle-switch [data-toggle=buttons]>.btn>input[type=checkbox],.cf-toggle-switch [data-toggle=buttons]>.btn>input[type=radio]{display:none}.cf-toggle-switch .btn-group-vertical>.btn-group:after,.cf-toggle-switch .btn-group-vertical>.btn-group:before,.cf-toggle-switch .btn-toolbar:after,.cf-toggle-switch .btn-toolbar:before,.cf-toggle-switch .clearfix:after,.cf-toggle-switch .clearfix:before{content:" ";display:table}.cf-toggle-switch .btn-group-vertical>.btn-group:after,.cf-toggle-switch .btn-toolbar:after,.cf-toggle-switch .clearfix:after{clear:both}.cf-toggle-switch .center-block{display:block;margin-left:auto;margin-right:auto}.cf-toggle-switch .pull-right{float:right!important}.cf-toggle-switch .pull-left{float:left!important}.cf-toggle-switch .hide{display:none!important}.cf-toggle-switch .show{display:block!important}.cf-toggle-switch .invisible{visibility:hidden}.cf-toggle-switch .text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.cf-toggle-switch .hidden{display:none!important;visibility:hidden!important}.cf-toggle-switch .affix{position:fixed}@-ms-viewport{width:device-width}.cf-toggle-switch .visible-lg,.cf-toggle-switch .visible-md,.cf-toggle-switch .visible-print,.cf-toggle-switch .visible-sm,.cf-toggle-switch .visible-xs{display:none!important}@media (max-width:767px){.cf-toggle-switch .visible-xs{display:block!important}.cf-toggle-switch table.visible-xs{display:table}.cf-toggle-switch tr.visible-xs{display:table-row!important}.cf-toggle-switch td.visible-xs,.cf-toggle-switch th.visible-xs{display:table-cell!important}}@media (min-width:768px) and (max-width:991px){.cf-toggle-switch .visible-sm{display:block!important}.cf-toggle-switch table.visible-sm{display:table}.cf-toggle-switch tr.visible-sm{display:table-row!important}.cf-toggle-switch td.visible-sm,.cf-toggle-switch th.visible-sm{display:table-cell!important}}@media (min-width:992px) and (max-width:1199px){.cf-toggle-switch .visible-md{display:block!important}.cf-toggle-switch table.visible-md{display:table}.cf-toggle-switch tr.visible-md{display:table-row!important}.cf-toggle-switch td.visible-md,.cf-toggle-switch th.visible-md{display:table-cell!important}}@media (min-width:1200px){.cf-toggle-switch .visible-lg{display:block!important}.cf-toggle-switch table.visible-lg{display:table}.cf-toggle-switch tr.visible-lg{display:table-row!important}.cf-toggle-switch td.visible-lg,.cf-toggle-switch th.visible-lg{display:table-cell!important}.cf-toggle-switch .hidden-lg{display:none!important}}@media (max-width:767px){.cf-toggle-switch .hidden-xs{display:none!important}}@media (min-width:768px) and (max-width:991px){.cf-toggle-switch .hidden-sm{display:none!important}}@media (min-width:992px) and (max-width:1199px){.cf-toggle-switch .hidden-md{display:none!important}}@media print{.cf-toggle-switch .visible-print{display:block!important}.cf-toggle-switch table.visible-print{display:table}.cf-toggle-switch tr.visible-print{display:table-row!important}.cf-toggle-switch td.visible-print,.cf-toggle-switch th.visible-print{display:table-cell!important}.cf-toggle-switch .hidden-print{display:none!important}}.cf-toggle-group-buttons{width:100%;clear:both}input.form-control.parsley-success,select.form-control.parsley-success,textarea.form-control.parsley-success{color:#468847;background-color:#DFF0D8;border-color:#D6E9C6}input.form-control.parsley-error,select.form-control.parsley-error,textarea.form-control.parsley-error{color:#B94A48;background-color:#F2DEDE;border-color:#EED3D7}.form-control.parsley-errors-list{margin:2px 0 3px;padding:0;list-style-type:none;font-size:.9em;line-height:.9em;opacity:0;color:#468847;transition:all .3s ease-in;-o-transition:all .3s ease-in;-moz-transition:all .3s ease-in;-webkit-transition:all .3s ease-in}.form-control.parsley-errors-list.filled{opacity:1}.breadcrumb a.has-error{color:red}.form-group .parsley-errors-list.filled,.form-group .parsley-errors-list.filled .parsley-type{list-style:none}.caldera-grid .cf-multi-uploader-list>ul{list-style:none;margin:0 0 12px;padding:0}.caldera-grid .cf-multi-uploader-list>ul>li{margin:0;padding:0 0 22px;position:relative;clear:both}.caldera-grid .cf-multi-uploader-list>ul>li .file-name{display:inline-block;font-weight:700;left:16px;right:0;overflow:hidden;position:absolute;text-overflow:ellipsis;white-space:nowrap}.caldera-grid .cf-multi-uploader-list>ul>li .file-name.file-uploaded{left:0}.caldera-grid .cf-multi-uploader-list>ul>li .file-size{float:right}.caldera-grid .cf-multi-uploader-list>ul>li .file-type{float:left}.caldera-grid .cf-multi-uploader-list>ul>li .file-error{clear:both;display:block}.caldera-grid .cf-multi-uploader-list>ul>li .cf-file-remove{color:#cf0000;text-decoration:none;border:0}.caldera-grid .cf-multi-uploader-list>ul>li.has-error .bar{background-color:#cf0000!important}.caldera-grid .cf-multi-uploader-list>ul>li.has-error{color:#cf0000}.has-error.cf-toggle-switch .cf-toggle-group-buttons>a{background-color:#f2dede;border-color:#dd4b39}.cfdatepicker{z-index:10011!important}
|
1 |
+
/*! GENERATED SOURCE FILE caldera-forms - v1.7.0-b.1 - 2018-05-24 */.caldera-grid html,.cf-toggle-switch html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}.caldera-grid .sr-only,.caldera-grid svg:not(:root),.cf-toggle-switch svg:not(:root){overflow:hidden}.caldera-grid .btn,.cfdatepicker table{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.caldera-grid button,.caldera-grid select,.cf-toggle-switch button,.cf-toggle-switch select{text-transform:none}@media (min-width:768px){.caldera-grid .container{width:750px}}@media (min-width:992px){.caldera-grid .container{width:970px}}@media (min-width:1200px){.caldera-grid .container{width:1170px}}.caldera-grid article,.caldera-grid aside,.caldera-grid details,.caldera-grid figcaption,.caldera-grid figure,.caldera-grid footer,.caldera-grid header,.caldera-grid hgroup,.caldera-grid main,.caldera-grid nav,.caldera-grid section,.caldera-grid summary{display:block}.caldera-grid a{background:0 0;text-decoration:none}.caldera-grid img{vertical-align:middle}.caldera-grid *,.caldera-grid :after,.caldera-grid :before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.caldera-grid html{font-size:62.5%;-webkit-tap-highlight-color:transparent}.caldera-grid body{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:1.42857143;color:#333;background-color:#fff}.caldera-grid button,.caldera-grid input,.caldera-grid select,.caldera-grid textarea{font-family:inherit;font-size:inherit;line-height:inherit}.caldera-grid a:focus,.caldera-grid a:hover{color:#2a6496;text-decoration:underline}.caldera-grid a:focus{outline:dotted thin;outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px}.caldera-grid .img-responsive{display:block;max-width:100%;height:auto}.caldera-grid .img-rounded{border-radius:6px}.caldera-grid .img-thumbnail{padding:4px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out;display:inline-block;max-width:100%;height:auto}.caldera-grid .img-circle{border-radius:50%}.caldera-grid hr{margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}.caldera-grid .sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;clip:rect(0,0,0,0);border:0}.caldera-grid .container,.caldera-grid .container-fluid{margin-right:auto;margin-left:auto;padding-left:7.5px;padding-right:7.5px}@media (min-width:768px){.caldera-grid .container{width:735px}}@media (min-width:992px){.caldera-grid .container{width:955px}}@media (min-width:1200px){.caldera-grid .container{width:1155px}}.caldera-grid .row{margin-left:-7.5px;margin-right:-7.5px;max-width:100%}.caldera-grid .col-lg-1,.caldera-grid .col-lg-10,.caldera-grid .col-lg-11,.caldera-grid .col-lg-12,.caldera-grid .col-lg-2,.caldera-grid .col-lg-3,.caldera-grid .col-lg-4,.caldera-grid .col-lg-5,.caldera-grid .col-lg-6,.caldera-grid .col-lg-7,.caldera-grid .col-lg-8,.caldera-grid .col-lg-9,.caldera-grid .col-md-1,.caldera-grid .col-md-10,.caldera-grid .col-md-11,.caldera-grid .col-md-12,.caldera-grid .col-md-2,.caldera-grid .col-md-3,.caldera-grid .col-md-4,.caldera-grid .col-md-5,.caldera-grid .col-md-6,.caldera-grid .col-md-7,.caldera-grid .col-md-8,.caldera-grid .col-md-9,.caldera-grid .col-sm-1,.caldera-grid .col-sm-10,.caldera-grid .col-sm-11,.caldera-grid .col-sm-12,.caldera-grid .col-sm-2,.caldera-grid .col-sm-3,.caldera-grid .col-sm-4,.caldera-grid .col-sm-5,.caldera-grid .col-sm-6,.caldera-grid .col-sm-7,.caldera-grid .col-sm-8,.caldera-grid .col-sm-9,.caldera-grid .col-xs-1,.caldera-grid .col-xs-10,.caldera-grid .col-xs-11,.caldera-grid .col-xs-12,.caldera-grid .col-xs-2,.caldera-grid .col-xs-3,.caldera-grid .col-xs-4,.caldera-grid .col-xs-5,.caldera-grid .col-xs-6,.caldera-grid .col-xs-7,.caldera-grid .col-xs-8,.caldera-grid .col-xs-9{position:relative;padding-left:7.5px;padding-right:7.5px}.caldera-grid .col-xs-1,.caldera-grid .col-xs-10,.caldera-grid .col-xs-11,.caldera-grid .col-xs-12,.caldera-grid .col-xs-2,.caldera-grid .col-xs-3,.caldera-grid .col-xs-4,.caldera-grid .col-xs-5,.caldera-grid .col-xs-6,.caldera-grid .col-xs-7,.caldera-grid .col-xs-8,.caldera-grid .col-xs-9{float:left}.caldera-grid .col-xs-12{width:100%}.caldera-grid .col-xs-11{width:91.66666667%}.caldera-grid .col-xs-10{width:83.33333333%}.caldera-grid .col-xs-9{width:75%}.caldera-grid .col-xs-8{width:66.66666667%}.caldera-grid .col-xs-7{width:58.33333333%}.caldera-grid .col-xs-6{width:50%}.caldera-grid .col-xs-5{width:41.66666667%}.caldera-grid .col-xs-4{width:33.33333333%}.caldera-grid .col-xs-3{width:25%}.caldera-grid .col-xs-2{width:16.66666667%}.caldera-grid .col-xs-1{width:8.33333333%}.caldera-grid .col-xs-pull-12{right:100%}.caldera-grid .col-xs-pull-11{right:91.66666667%}.caldera-grid .col-xs-pull-10{right:83.33333333%}.caldera-grid .col-xs-pull-9{right:75%}.caldera-grid .col-xs-pull-8{right:66.66666667%}.caldera-grid .col-xs-pull-7{right:58.33333333%}.caldera-grid .col-xs-pull-6{right:50%}.caldera-grid .col-xs-pull-5{right:41.66666667%}.caldera-grid .col-xs-pull-4{right:33.33333333%}.caldera-grid .col-xs-pull-3{right:25%}.caldera-grid .col-xs-pull-2{right:16.66666667%}.caldera-grid .col-xs-pull-1{right:8.33333333%}.caldera-grid .col-xs-pull-0{right:0}.caldera-grid .col-xs-push-12{left:100%}.caldera-grid .col-xs-push-11{left:91.66666667%}.caldera-grid .col-xs-push-10{left:83.33333333%}.caldera-grid .col-xs-push-9{left:75%}.caldera-grid .col-xs-push-8{left:66.66666667%}.caldera-grid .col-xs-push-7{left:58.33333333%}.caldera-grid .col-xs-push-6{left:50%}.caldera-grid .col-xs-push-5{left:41.66666667%}.caldera-grid .col-xs-push-4{left:33.33333333%}.caldera-grid .col-xs-push-3{left:25%}.caldera-grid .col-xs-push-2{left:16.66666667%}.caldera-grid .col-xs-push-1{left:8.33333333%}.caldera-grid .col-xs-push-0{left:0}.caldera-grid .col-xs-offset-12{margin-left:100%}.caldera-grid .col-xs-offset-11{margin-left:91.66666667%}.caldera-grid .col-xs-offset-10{margin-left:83.33333333%}.caldera-grid .col-xs-offset-9{margin-left:75%}.caldera-grid .col-xs-offset-8{margin-left:66.66666667%}.caldera-grid .col-xs-offset-7{margin-left:58.33333333%}.caldera-grid .col-xs-offset-6{margin-left:50%}.caldera-grid .col-xs-offset-5{margin-left:41.66666667%}.caldera-grid .col-xs-offset-4{margin-left:33.33333333%}.caldera-grid .col-xs-offset-3{margin-left:25%}.caldera-grid .col-xs-offset-2{margin-left:16.66666667%}.caldera-grid .col-xs-offset-1{margin-left:8.33333333%}.caldera-grid .col-xs-offset-0{margin-left:0}@media (min-width:768px){.caldera-grid .col-sm-1,.caldera-grid .col-sm-10,.caldera-grid .col-sm-11,.caldera-grid .col-sm-12,.caldera-grid .col-sm-2,.caldera-grid .col-sm-3,.caldera-grid .col-sm-4,.caldera-grid .col-sm-5,.caldera-grid .col-sm-6,.caldera-grid .col-sm-7,.caldera-grid .col-sm-8,.caldera-grid .col-sm-9{float:left}.caldera-grid .col-sm-12{width:100%}.caldera-grid .col-sm-11{width:91.66666667%}.caldera-grid .col-sm-10{width:83.33333333%}.caldera-grid .col-sm-9{width:75%}.caldera-grid .col-sm-8{width:66.66666667%}.caldera-grid .col-sm-7{width:58.33333333%}.caldera-grid .col-sm-6{width:50%}.caldera-grid .col-sm-5{width:41.66666667%}.caldera-grid .col-sm-4{width:33.33333333%}.caldera-grid .col-sm-3{width:25%}.caldera-grid .col-sm-2{width:16.66666667%}.caldera-grid .col-sm-1{width:8.33333333%}.caldera-grid .col-sm-pull-12{right:100%}.caldera-grid .col-sm-pull-11{right:91.66666667%}.caldera-grid .col-sm-pull-10{right:83.33333333%}.caldera-grid .col-sm-pull-9{right:75%}.caldera-grid .col-sm-pull-8{right:66.66666667%}.caldera-grid .col-sm-pull-7{right:58.33333333%}.caldera-grid .col-sm-pull-6{right:50%}.caldera-grid .col-sm-pull-5{right:41.66666667%}.caldera-grid .col-sm-pull-4{right:33.33333333%}.caldera-grid .col-sm-pull-3{right:25%}.caldera-grid .col-sm-pull-2{right:16.66666667%}.caldera-grid .col-sm-pull-1{right:8.33333333%}.caldera-grid .col-sm-pull-0{right:0}.caldera-grid .col-sm-push-12{left:100%}.caldera-grid .col-sm-push-11{left:91.66666667%}.caldera-grid .col-sm-push-10{left:83.33333333%}.caldera-grid .col-sm-push-9{left:75%}.caldera-grid .col-sm-push-8{left:66.66666667%}.caldera-grid .col-sm-push-7{left:58.33333333%}.caldera-grid .col-sm-push-6{left:50%}.caldera-grid .col-sm-push-5{left:41.66666667%}.caldera-grid .col-sm-push-4{left:33.33333333%}.caldera-grid .col-sm-push-3{left:25%}.caldera-grid .col-sm-push-2{left:16.66666667%}.caldera-grid .col-sm-push-1{left:8.33333333%}.caldera-grid .col-sm-push-0{left:0}.caldera-grid .col-sm-offset-12{margin-left:100%}.caldera-grid .col-sm-offset-11{margin-left:91.66666667%}.caldera-grid .col-sm-offset-10{margin-left:83.33333333%}.caldera-grid .col-sm-offset-9{margin-left:75%}.caldera-grid .col-sm-offset-8{margin-left:66.66666667%}.caldera-grid .col-sm-offset-7{margin-left:58.33333333%}.caldera-grid .col-sm-offset-6{margin-left:50%}.caldera-grid .col-sm-offset-5{margin-left:41.66666667%}.caldera-grid .col-sm-offset-4{margin-left:33.33333333%}.caldera-grid .col-sm-offset-3{margin-left:25%}.caldera-grid .col-sm-offset-2{margin-left:16.66666667%}.caldera-grid .col-sm-offset-1{margin-left:8.33333333%}.caldera-grid .col-sm-offset-0{margin-left:0}}@media (min-width:992px){.caldera-grid .col-md-1,.caldera-grid .col-md-10,.caldera-grid .col-md-11,.caldera-grid .col-md-12,.caldera-grid .col-md-2,.caldera-grid .col-md-3,.caldera-grid .col-md-4,.caldera-grid .col-md-5,.caldera-grid .col-md-6,.caldera-grid .col-md-7,.caldera-grid .col-md-8,.caldera-grid .col-md-9{float:left}.caldera-grid .col-md-12{width:100%}.caldera-grid .col-md-11{width:91.66666667%}.caldera-grid .col-md-10{width:83.33333333%}.caldera-grid .col-md-9{width:75%}.caldera-grid .col-md-8{width:66.66666667%}.caldera-grid .col-md-7{width:58.33333333%}.caldera-grid .col-md-6{width:50%}.caldera-grid .col-md-5{width:41.66666667%}.caldera-grid .col-md-4{width:33.33333333%}.caldera-grid .col-md-3{width:25%}.caldera-grid .col-md-2{width:16.66666667%}.caldera-grid .col-md-1{width:8.33333333%}.caldera-grid .col-md-pull-12{right:100%}.caldera-grid .col-md-pull-11{right:91.66666667%}.caldera-grid .col-md-pull-10{right:83.33333333%}.caldera-grid .col-md-pull-9{right:75%}.caldera-grid .col-md-pull-8{right:66.66666667%}.caldera-grid .col-md-pull-7{right:58.33333333%}.caldera-grid .col-md-pull-6{right:50%}.caldera-grid .col-md-pull-5{right:41.66666667%}.caldera-grid .col-md-pull-4{right:33.33333333%}.caldera-grid .col-md-pull-3{right:25%}.caldera-grid .col-md-pull-2{right:16.66666667%}.caldera-grid .col-md-pull-1{right:8.33333333%}.caldera-grid .col-md-pull-0{right:0}.caldera-grid .col-md-push-12{left:100%}.caldera-grid .col-md-push-11{left:91.66666667%}.caldera-grid .col-md-push-10{left:83.33333333%}.caldera-grid .col-md-push-9{left:75%}.caldera-grid .col-md-push-8{left:66.66666667%}.caldera-grid .col-md-push-7{left:58.33333333%}.caldera-grid .col-md-push-6{left:50%}.caldera-grid .col-md-push-5{left:41.66666667%}.caldera-grid .col-md-push-4{left:33.33333333%}.caldera-grid .col-md-push-3{left:25%}.caldera-grid .col-md-push-2{left:16.66666667%}.caldera-grid .col-md-push-1{left:8.33333333%}.caldera-grid .col-md-push-0{left:0}.caldera-grid .col-md-offset-12{margin-left:100%}.caldera-grid .col-md-offset-11{margin-left:91.66666667%}.caldera-grid .col-md-offset-10{margin-left:83.33333333%}.caldera-grid .col-md-offset-9{margin-left:75%}.caldera-grid .col-md-offset-8{margin-left:66.66666667%}.caldera-grid .col-md-offset-7{margin-left:58.33333333%}.caldera-grid .col-md-offset-6{margin-left:50%}.caldera-grid .col-md-offset-5{margin-left:41.66666667%}.caldera-grid .col-md-offset-4{margin-left:33.33333333%}.caldera-grid .col-md-offset-3{margin-left:25%}.caldera-grid .col-md-offset-2{margin-left:16.66666667%}.caldera-grid .col-md-offset-1{margin-left:8.33333333%}.caldera-grid .col-md-offset-0{margin-left:0}}@-ms-viewport{width:device-width}@media (min-width:1200px){.caldera-grid .col-lg-1,.caldera-grid .col-lg-10,.caldera-grid .col-lg-11,.caldera-grid .col-lg-12,.caldera-grid .col-lg-2,.caldera-grid .col-lg-3,.caldera-grid .col-lg-4,.caldera-grid .col-lg-5,.caldera-grid .col-lg-6,.caldera-grid .col-lg-7,.caldera-grid .col-lg-8,.caldera-grid .col-lg-9{float:left}.caldera-grid .col-lg-12{width:100%}.caldera-grid .col-lg-11{width:91.66666667%}.caldera-grid .col-lg-10{width:83.33333333%}.caldera-grid .col-lg-9{width:75%}.caldera-grid .col-lg-8{width:66.66666667%}.caldera-grid .col-lg-7{width:58.33333333%}.caldera-grid .col-lg-6{width:50%}.caldera-grid .col-lg-5{width:41.66666667%}.caldera-grid .col-lg-4{width:33.33333333%}.caldera-grid .col-lg-3{width:25%}.caldera-grid .col-lg-2{width:16.66666667%}.caldera-grid .col-lg-1{width:8.33333333%}.caldera-grid .col-lg-pull-12{right:100%}.caldera-grid .col-lg-pull-11{right:91.66666667%}.caldera-grid .col-lg-pull-10{right:83.33333333%}.caldera-grid .col-lg-pull-9{right:75%}.caldera-grid .col-lg-pull-8{right:66.66666667%}.caldera-grid .col-lg-pull-7{right:58.33333333%}.caldera-grid .col-lg-pull-6{right:50%}.caldera-grid .col-lg-pull-5{right:41.66666667%}.caldera-grid .col-lg-pull-4{right:33.33333333%}.caldera-grid .col-lg-pull-3{right:25%}.caldera-grid .col-lg-pull-2{right:16.66666667%}.caldera-grid .col-lg-pull-1{right:8.33333333%}.caldera-grid .col-lg-pull-0{right:0}.caldera-grid .col-lg-push-12{left:100%}.caldera-grid .col-lg-push-11{left:91.66666667%}.caldera-grid .col-lg-push-10{left:83.33333333%}.caldera-grid .col-lg-push-9{left:75%}.caldera-grid .col-lg-push-8{left:66.66666667%}.caldera-grid .col-lg-push-7{left:58.33333333%}.caldera-grid .col-lg-push-6{left:50%}.caldera-grid .col-lg-push-5{left:41.66666667%}.caldera-grid .col-lg-push-4{left:33.33333333%}.caldera-grid .col-lg-push-3{left:25%}.caldera-grid .col-lg-push-2{left:16.66666667%}.caldera-grid .col-lg-push-1{left:8.33333333%}.caldera-grid .col-lg-push-0{left:0}.caldera-grid .col-lg-offset-12{margin-left:100%}.caldera-grid .col-lg-offset-11{margin-left:91.66666667%}.caldera-grid .col-lg-offset-10{margin-left:83.33333333%}.caldera-grid .col-lg-offset-9{margin-left:75%}.caldera-grid .col-lg-offset-8{margin-left:66.66666667%}.caldera-grid .col-lg-offset-7{margin-left:58.33333333%}.caldera-grid .col-lg-offset-6{margin-left:50%}.caldera-grid .col-lg-offset-5{margin-left:41.66666667%}.caldera-grid .col-lg-offset-4{margin-left:33.33333333%}.caldera-grid .col-lg-offset-3{margin-left:25%}.caldera-grid .col-lg-offset-2{margin-left:16.66666667%}.caldera-grid .col-lg-offset-1{margin-left:8.33333333%}.caldera-grid .col-lg-offset-0{margin-left:0}}.caldera-grid .clearfix:after,.caldera-grid .clearfix:before,.caldera-grid .container-fluid:after,.caldera-grid .container-fluid:before,.caldera-grid .container:after,.caldera-grid .container:before,.caldera-grid .row:after,.caldera-grid .row:before{content:" ";display:table}.caldera-grid .clearfix:after,.caldera-grid .container-fluid:after,.caldera-grid .container:after,.caldera-grid .row:after{clear:both}.caldera-grid .center-block{display:block;margin-left:auto;margin-right:auto}.caldera-grid .pull-right{float:right!important}.caldera-grid .pull-left{float:left!important}.caldera-grid .hide{display:none!important}.caldera-grid .show{display:block!important}.caldera-grid .hidden,.caldera-grid .visible-lg,.caldera-grid .visible-md,.caldera-grid .visible-sm,.caldera-grid .visible-xs{display:none!important}.caldera-grid .invisible{visibility:hidden}.caldera-grid .text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.caldera-grid .alert .alert-link,.caldera-grid b,.caldera-grid strong{font-weight:700}.caldera-grid .hidden{visibility:hidden!important}.caldera-grid .affix{position:fixed}@-ms-viewport{width:device-width}@media (max-width:767px){.caldera-grid .visible-xs{display:block!important}.caldera-grid table.visible-xs{display:table}.caldera-grid tr.visible-xs{display:table-row!important}.caldera-grid td.visible-xs,.caldera-grid th.visible-xs{display:table-cell!important}}@media (min-width:768px) and (max-width:991px){.caldera-grid .visible-sm{display:block!important}.caldera-grid table.visible-sm{display:table}.caldera-grid tr.visible-sm{display:table-row!important}.caldera-grid td.visible-sm,.caldera-grid th.visible-sm{display:table-cell!important}}@media (min-width:992px) and (max-width:1199px){.caldera-grid .visible-md{display:block!important}.caldera-grid table.visible-md{display:table}.caldera-grid tr.visible-md{display:table-row!important}.caldera-grid td.visible-md,.caldera-grid th.visible-md{display:table-cell!important}}@media (min-width:1200px){.caldera-grid .visible-lg{display:block!important}.caldera-grid table.visible-lg{display:table}.caldera-grid tr.visible-lg{display:table-row!important}.caldera-grid td.visible-lg,.caldera-grid th.visible-lg{display:table-cell!important}.caldera-grid .hidden-lg{display:none!important}}@media (max-width:767px){.caldera-grid .hidden-xs{display:none!important}}@media (min-width:768px) and (max-width:991px){.caldera-grid .hidden-sm{display:none!important}}@media (min-width:992px) and (max-width:1199px){.caldera-grid .hidden-md{display:none!important}}.caldera-grid .visible-print{display:none!important}@media print{.caldera-grid .visible-print{display:block!important}.caldera-grid table.visible-print{display:table}.caldera-grid tr.visible-print{display:table-row!important}.caldera-grid td.visible-print,.caldera-grid th.visible-print{display:table-cell!important}.caldera-grid .hidden-print{display:none!important}}input.parsley-success,select.parsley-success,textarea.parsley-success{color:#468847;background-color:#DFF0D8;border:1px solid #D6E9C6}input.parsley-error,select.parsley-error,textarea.parsley-error{color:#B94A48;background-color:#F2DEDE;border:1px solid #EED3D7}.parsley-errors-list{margin:2px 0 3px;padding:0;list-style-type:none;font-size:.9em;line-height:.9em;opacity:0;transition:all .3s ease-in;-o-transition:all .3s ease-in;-moz-transition:all .3s ease-in;-webkit-transition:all .3s ease-in}.parsley-errors-list.filled{opacity:1}.caldera-grid .alert{padding:8px;margin-bottom:18px;border-radius:2px}.caldera-grid .alert-dismissable{padding-right:28px}.caldera-grid .alert-success{background-color:#dff0d8;border-color:#a3d48e;color:#3c763d}.caldera-grid .alert-success hr{border-top-color:#93cd7c}.caldera-grid .alert-success .alert-link{color:#2b542c}.caldera-grid .alert-info{background-color:#d9edf7;border-color:#85c5e5;color:#31708f}.caldera-grid .alert-info hr{border-top-color:#70bbe1}.caldera-grid .alert-info .alert-link{color:#245269}.caldera-grid .alert-warning{background-color:#f9edbe;border-color:#f0c36d;color:#333}.caldera-grid .alert-warning hr{border-top-color:#eeb956}.caldera-grid .alert-warning .alert-link{color:#1a1a1a}.caldera-grid .alert-danger,.caldera-grid .alert-error{background-color:#f2dede;border-color:#d59595;color:#a94442}.caldera-grid .alert-danger hr,.caldera-grid .alert-error hr{border-top-color:#ce8383}.caldera-grid .alert-danger .alert-link,.caldera-grid .alert-error .alert-link{color:#843534}.caldera-grid .alert-danger,.caldera-grid .alert-error,.caldera-grid .alert-info,.caldera-grid .alert-success,.caldera-grid .alert-warning{text-shadow:0 1px 0 rgba(255,255,255,.5)}.caldera-grid .has-error .form-control:focus,.caldera-grid .has-error .form-control:hover{border-color:#dd4b39}.caldera-grid.cf_processing{background:url(../images/loading.gif) center center/30px auto no-repeat rgba(0,0,0,0)}.caldera-grid.cf_processing>*{opacity:.5}.caldera-grid html{font-family:sans-serif}.caldera-grid body{margin:0}.caldera-grid article,.caldera-grid aside,.caldera-grid details,.caldera-grid figcaption,.caldera-grid figure,.caldera-grid footer,.caldera-grid header,.caldera-grid hgroup,.caldera-grid main,.caldera-grid menu,.caldera-grid nav,.caldera-grid section,.caldera-grid summary{display:block}.caldera-grid audio,.caldera-grid canvas,.caldera-grid progress,.caldera-grid video{display:inline-block;vertical-align:baseline}.caldera-grid audio:not([controls]){display:none;height:0}.caldera-grid [hidden],.caldera-grid template{display:none}.caldera-grid a{background-color:transparent}.caldera-grid a:active,.caldera-grid a:hover{outline:0}.caldera-grid abbr[title]{border-bottom:1px dotted}.caldera-grid dfn{font-style:italic}.caldera-grid h1{font-size:2em;margin:.67em 0}.caldera-grid mark{background:#ff0;color:#000}.caldera-grid small{font-size:80%}.caldera-grid sub,.caldera-grid sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.caldera-grid sup{top:-.5em}.caldera-grid sub{bottom:-.25em}.caldera-grid img{border:0}.caldera-grid figure{margin:1em 40px}.caldera-grid hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}.caldera-grid pre{overflow:auto}.caldera-grid code,.caldera-grid kbd,.caldera-grid pre,.caldera-grid samp{font-family:monospace,monospace;font-size:1em}.caldera-grid button,.caldera-grid input,.caldera-grid optgroup,.caldera-grid select,.caldera-grid textarea{font:inherit;margin:0}.caldera-grid button{overflow:visible}.caldera-grid button,.caldera-grid html input[type=button],.caldera-grid input[type=reset],.caldera-grid input[type=submit]{-webkit-appearance:button;cursor:pointer}.caldera-grid button[disabled],.caldera-grid html input[disabled]{cursor:default}.caldera-grid button::-moz-focus-inner,.caldera-grid input::-moz-focus-inner{border:0;padding:0}.caldera-grid input{line-height:normal}.caldera-grid input[type=checkbox],.caldera-grid input[type=radio]{box-sizing:border-box;padding:0}.caldera-grid input[type=number]::-webkit-inner-spin-button,.caldera-grid input[type=number]::-webkit-outer-spin-button{height:auto}.caldera-grid input[type=search]{-webkit-appearance:textfield;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.caldera-grid input[type=search]::-webkit-search-cancel-button,.caldera-grid input[type=search]::-webkit-search-decoration{-webkit-appearance:none}.caldera-grid textarea{overflow:auto}.caldera-grid optgroup{font-weight:700}.caldera-grid table{border-collapse:collapse;border-spacing:0}.caldera-grid td,.caldera-grid th{padding:0}@media print{.caldera-grid *,.caldera-grid :after,.caldera-grid :before{background:0 0!important;color:#000!important;box-shadow:none!important;text-shadow:none!important}.caldera-grid a,.caldera-grid a:visited{text-decoration:underline}.caldera-grid a[href]:after{content:" (" attr(href) ")"}.caldera-grid abbr[title]:after{content:" (" attr(title) ")"}.caldera-grid a[href^="#"]:after,.caldera-grid a[href^="javascript:"]:after{content:""}.caldera-grid blockquote,.caldera-grid pre{border:1px solid #999;page-break-inside:avoid}.caldera-grid thead{display:table-header-group}.caldera-grid img,.caldera-grid tr{page-break-inside:avoid}.caldera-grid img{max-width:100%!important}.caldera-grid h2,.caldera-grid h3,.caldera-grid p{orphans:3;widows:3}.caldera-grid h2,.caldera-grid h3{page-break-after:avoid}.caldera-grid select{background:#fff!important}.caldera-grid .navbar{display:none}.caldera-grid .btn>.caret,.caldera-grid .dropup>.btn>.caret{border-top-color:#000!important}.caldera-grid .label{border:1px solid #000}.caldera-grid .table{border-collapse:collapse!important}.caldera-grid .table td,.caldera-grid .table th{background-color:#fff!important}.caldera-grid .table-bordered td,.caldera-grid .table-bordered th{border:1px solid #ddd!important}}.caldera-grid .btn,.caldera-grid .btn-danger.active,.caldera-grid .btn-danger:active,.caldera-grid .btn-default.active,.caldera-grid .btn-default:active,.caldera-grid .btn-info.active,.caldera-grid .btn-info:active,.caldera-grid .btn-primary.active,.caldera-grid .btn-primary:active,.caldera-grid .btn-success.active,.caldera-grid .btn-success:active,.caldera-grid .btn-warning.active,.caldera-grid .btn-warning:active,.caldera-grid .form-control,.open>.dropdown-toggle.caldera-grid .btn-danger,.open>.dropdown-toggle.caldera-grid .btn-default,.open>.dropdown-toggle.caldera-grid .btn-info,.open>.dropdown-toggle.caldera-grid .btn-primary,.open>.dropdown-toggle.caldera-grid .btn-success,.open>.dropdown-toggle.caldera-grid .btn-warning{background-image:none}.caldera-grid fieldset{padding:0;margin:0;border:0;min-width:0}.caldera-grid legend{display:block;width:100%;padding:0;margin-bottom:20px;font-size:21px;line-height:inherit;color:#333;border:0;border-bottom:1px solid #e5e5e5}.caldera-grid label{display:inline-block;max-width:100%;margin-bottom:5px;font-weight:700}.caldera-grid input[type=checkbox],.caldera-grid input[type=radio]{margin:0;line-height:normal}.caldera-grid .form-control,.caldera-grid output{font-size:14px;line-height:1.42857143;color:#555;display:block}.caldera-grid input[type=file]{display:block}.caldera-grid input[type=range]{display:block;width:100%}.caldera-grid select[multiple],.caldera-grid select[size]{height:auto}.caldera-grid input[type=checkbox]:focus,.caldera-grid input[type=file]:focus,.caldera-grid input[type=radio]:focus{outline:dotted thin;outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px}.caldera-grid input[type=checkbox]{-webkit-appearance:checkbox}.caldera-grid input[type=radio]{-webkit-appearance:radio}.caldera-grid output{padding-top:7px}.caldera-grid .form-control{width:100%;height:34px;padding:6px 12px;background-color:#fff;border:1px solid #ccc;border-radius:2px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;-o-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.caldera-grid .form-control:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.caldera-grid .form-control::-moz-placeholder{color:#999;opacity:1}.caldera-grid .form-control:-ms-input-placeholder{color:#999}.caldera-grid .form-control::-webkit-input-placeholder{color:#999}.caldera-grid .has-success .checkbox,.caldera-grid .has-success .checkbox-inline,.caldera-grid .has-success .control-label,.caldera-grid .has-success .form-control-feedback,.caldera-grid .has-success .help-block,.caldera-grid .has-success .radio,.caldera-grid .has-success .radio-inline,.caldera-grid .has-success.checkbox label,.caldera-grid .has-success.checkbox-inline label,.caldera-grid .has-success.radio label,.caldera-grid .has-success.radio-inline label{color:#3c763d}.caldera-grid .form-control[disabled],.caldera-grid .form-control[readonly],fieldset[disabled] .caldera-grid .form-control{background-color:#eee;opacity:1}.caldera-grid .form-control[disabled],fieldset[disabled] .caldera-grid .form-control{cursor:not-allowed}textarea .caldera-grid .form-control{height:auto}@media screen and (-webkit-min-device-pixel-ratio:0){.caldera-grid input[type=date],.caldera-grid input[type=datetime-local],.caldera-grid input[type=month],.caldera-grid input[type=time]{line-height:34px}.caldera-grid input[type=date].input-sm,.caldera-grid input[type=datetime-local].input-sm,.caldera-grid input[type=month].input-sm,.caldera-grid input[type=time].input-sm,.input-group-sm .caldera-grid input[type=date],.input-group-sm .caldera-grid input[type=datetime-local],.input-group-sm .caldera-grid input[type=month],.input-group-sm .caldera-grid input[type=time]{line-height:30px}.caldera-grid input[type=date].input-lg,.caldera-grid input[type=datetime-local].input-lg,.caldera-grid input[type=month].input-lg,.caldera-grid input[type=time].input-lg,.input-group-lg .caldera-grid input[type=date],.input-group-lg .caldera-grid input[type=datetime-local],.input-group-lg .caldera-grid input[type=month],.input-group-lg .caldera-grid input[type=time]{line-height:46px}}.caldera-grid .form-group{margin-bottom:15px}.caldera-grid .checkbox,.caldera-grid .radio{position:relative;display:block;margin-top:10px;margin-bottom:10px}.caldera-grid .checkbox label,.caldera-grid .radio label{min-height:20px;padding-left:20px;margin-bottom:0;font-weight:400;cursor:pointer}.caldera-grid .checkbox input[type=checkbox],.caldera-grid .checkbox-inline input[type=checkbox],.caldera-grid .radio input[type=radio],.caldera-grid .radio-inline input[type=radio]{margin-left:-20px}.caldera-grid .checkbox+.checkbox,.caldera-grid .radio+.radio{margin-top:-5px}.caldera-grid .checkbox-inline,.caldera-grid .radio-inline{position:relative;display:inline-block;padding-left:20px;margin-bottom:0;vertical-align:middle;font-weight:400;cursor:pointer}.caldera-grid .checkbox-inline+.checkbox-inline,.caldera-grid .radio-inline+.radio-inline{margin-top:0;margin-left:10px}.caldera-grid .checkbox-inline.disabled,.caldera-grid .checkbox.disabled label,.caldera-grid .radio-inline.disabled,.caldera-grid .radio.disabled label,.caldera-grid input[type=checkbox].disabled,.caldera-grid input[type=checkbox][disabled],.caldera-grid input[type=radio].disabled,.caldera-grid input[type=radio][disabled],fieldset[disabled] .caldera-grid .checkbox label,fieldset[disabled] .caldera-grid .checkbox-inline,fieldset[disabled] .caldera-grid .radio label,fieldset[disabled] .caldera-grid .radio-inline,fieldset[disabled] .caldera-grid input[type=checkbox],fieldset[disabled] .caldera-grid input[type=radio]{cursor:not-allowed}.caldera-grid .form-control-static{padding-top:7px;padding-bottom:7px;margin-bottom:0;min-height:34px}.caldera-grid .form-control-static.input-lg,.caldera-grid .form-control-static.input-sm{padding-left:0;padding-right:0}.caldera-grid .input-sm{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:1px}select.caldera-grid .input-sm{height:30px;line-height:30px}select[multiple].caldera-grid .input-sm,textarea.caldera-grid .input-sm{height:auto}.caldera-grid .form-group-sm .form-control{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:1px}select.caldera-grid .form-group-sm .form-control{height:30px;line-height:30px}select[multiple].caldera-grid .form-group-sm .form-control,textarea.caldera-grid .form-group-sm .form-control{height:auto}.caldera-grid .form-group-sm .form-control-static{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;min-height:32px}.caldera-grid .input-lg{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:4px}select.caldera-grid .input-lg{height:46px;line-height:46px}select[multiple].caldera-grid .input-lg,textarea.caldera-grid .input-lg{height:auto}.caldera-grid .form-group-lg .form-control{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:4px}select.caldera-grid .form-group-lg .form-control{height:46px;line-height:46px}select[multiple].caldera-grid .form-group-lg .form-control,textarea.caldera-grid .form-group-lg .form-control{height:auto}.caldera-grid .form-group-lg .form-control-static{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;min-height:38px}.caldera-grid .has-feedback{position:relative}.caldera-grid .has-feedback .form-control{padding-right:42.5px}.caldera-grid .form-control-feedback{position:absolute;top:0;right:0;z-index:2;display:block;width:34px;height:34px;line-height:34px;text-align:center;pointer-events:none}.caldera-grid .input-lg+.form-control-feedback{width:46px;height:46px;line-height:46px}.caldera-grid .input-sm+.form-control-feedback{width:30px;height:30px;line-height:30px}.caldera-grid .has-success .form-control{border-color:#3c763d;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.caldera-grid .has-success .form-control:focus{border-color:#2b542c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168}.caldera-grid .has-success .input-group-addon{color:#3c763d;border-color:#3c763d;background-color:#dff0d8}.caldera-grid .has-warning .checkbox,.caldera-grid .has-warning .checkbox-inline,.caldera-grid .has-warning .control-label,.caldera-grid .has-warning .form-control-feedback,.caldera-grid .has-warning .help-block,.caldera-grid .has-warning .radio,.caldera-grid .has-warning .radio-inline,.caldera-grid .has-warning.checkbox label,.caldera-grid .has-warning.checkbox-inline label,.caldera-grid .has-warning.radio label,.caldera-grid .has-warning.radio-inline label{color:#8a6d3b}.caldera-grid .has-warning .form-control{border-color:#8a6d3b;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.caldera-grid .has-warning .form-control:focus{border-color:#66512c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b}.caldera-grid .has-warning .input-group-addon{color:#8a6d3b;border-color:#8a6d3b;background-color:#fcf8e3}.caldera-grid .has-error .checkbox,.caldera-grid .has-error .checkbox-inline,.caldera-grid .has-error .control-label,.caldera-grid .has-error .form-control-feedback,.caldera-grid .has-error .help-block,.caldera-grid .has-error .radio,.caldera-grid .has-error .radio-inline,.caldera-grid .has-error.checkbox label,.caldera-grid .has-error.checkbox-inline label,.caldera-grid .has-error.radio label,.caldera-grid .has-error.radio-inline label{color:#a94442}.caldera-grid .has-error .form-control{border-color:#a94442;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.caldera-grid .has-error .form-control:focus{border-color:#843534;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483}.caldera-grid .has-error .input-group-addon{color:#a94442;border-color:#a94442;background-color:#f2dede}.caldera-grid .has-feedback label~.form-control-feedback{top:25px}.caldera-grid .has-feedback label.sr-only~.form-control-feedback{top:0}.caldera-grid .help-block{display:block;margin-top:5px;margin-bottom:10px;color:#737373}@media (min-width:768px){.caldera-grid .form-inline .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.caldera-grid .form-inline .form-control{display:inline-block;width:auto;vertical-align:middle}.caldera-grid .form-inline .form-control-static{display:inline-block}.caldera-grid .form-inline .input-group{display:inline-table;vertical-align:middle}.caldera-grid .form-inline .input-group .form-control,.caldera-grid .form-inline .input-group .input-group-addon,.caldera-grid .form-inline .input-group .input-group-btn{width:auto}.caldera-grid .form-inline .input-group>.form-control{width:100%}.caldera-grid .form-inline .control-label{margin-bottom:0;vertical-align:middle}.caldera-grid .form-inline .checkbox,.caldera-grid .form-inline .radio{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.caldera-grid .form-inline .checkbox label,.caldera-grid .form-inline .radio label{padding-left:0}.caldera-grid .form-inline .checkbox input[type=checkbox],.caldera-grid .form-inline .radio input[type=radio]{position:relative;margin-left:0}.caldera-grid .form-inline .has-feedback .form-control-feedback{top:0}.caldera-grid .form-horizontal .control-label{text-align:right;margin-bottom:0;padding-top:7px}}.caldera-grid .form-horizontal .checkbox,.caldera-grid .form-horizontal .checkbox-inline,.caldera-grid .form-horizontal .radio,.caldera-grid .form-horizontal .radio-inline{margin-top:0;margin-bottom:0;padding-top:7px}.caldera-grid .form-horizontal .checkbox,.caldera-grid .form-horizontal .radio{min-height:27px}.caldera-grid .form-horizontal .form-group{margin-left:-15px;margin-right:-15px}.caldera-grid .form-horizontal .has-feedback .form-control-feedback{right:15px}@media (min-width:768px){.caldera-grid .form-horizontal .form-group-lg .control-label{padding-top:14.33px}.caldera-grid .form-horizontal .form-group-sm .control-label{padding-top:6px}}.caldera-grid .btn{display:inline-block;margin-bottom:0;font-weight:400;text-align:center;vertical-align:middle;touch-action:manipulation;cursor:pointer;border:1px solid transparent;white-space:nowrap;padding:6px 12px;font-size:14px;line-height:1.42857143;border-radius:2px;user-select:none}.caldera-grid .btn.active.focus,.caldera-grid .btn.active:focus,.caldera-grid .btn.focus,.caldera-grid .btn:active.focus,.caldera-grid .btn:active:focus,.caldera-grid .btn:focus{outline:dotted thin;outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px}.caldera-grid .btn.focus,.caldera-grid .btn:focus,.caldera-grid .btn:hover{color:#333;text-decoration:none}.caldera-grid .btn.active,.caldera-grid .btn:active{outline:0;background-image:none;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.caldera-grid .btn.disabled,.caldera-grid .btn[disabled],fieldset[disabled] .caldera-grid .btn{cursor:not-allowed;pointer-events:none;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none}.caldera-grid .btn-default{color:#333;background-color:#fff;border-color:#ccc}.caldera-grid .btn-default.active,.caldera-grid .btn-default.focus,.caldera-grid .btn-default:active,.caldera-grid .btn-default:focus,.caldera-grid .btn-default:hover,.open>.dropdown-toggle.caldera-grid .btn-default{color:#333;background-color:#e6e6e6;border-color:#adadad}.caldera-grid .btn-default.disabled,.caldera-grid .btn-default.disabled.active,.caldera-grid .btn-default.disabled.focus,.caldera-grid .btn-default.disabled:active,.caldera-grid .btn-default.disabled:focus,.caldera-grid .btn-default.disabled:hover,.caldera-grid .btn-default[disabled],.caldera-grid .btn-default[disabled].active,.caldera-grid .btn-default[disabled].focus,.caldera-grid .btn-default[disabled]:active,.caldera-grid .btn-default[disabled]:focus,.caldera-grid .btn-default[disabled]:hover,fieldset[disabled] .caldera-grid .btn-default,fieldset[disabled] .caldera-grid .btn-default.active,fieldset[disabled] .caldera-grid .btn-default.focus,fieldset[disabled] .caldera-grid .btn-default:active,fieldset[disabled] .caldera-grid .btn-default:focus,fieldset[disabled] .caldera-grid .btn-default:hover{background-color:#fff;border-color:#ccc}.caldera-grid .btn-default .badge{color:#fff;background-color:#333}.caldera-grid .btn-primary{color:#fff;background-color:#337ab7;border-color:#2e6da4}.caldera-grid .btn-primary.active,.caldera-grid .btn-primary.focus,.caldera-grid .btn-primary:active,.caldera-grid .btn-primary:focus,.caldera-grid .btn-primary:hover,.open>.dropdown-toggle.caldera-grid .btn-primary{color:#fff;background-color:#286090;border-color:#204d74}.caldera-grid .btn-primary.disabled,.caldera-grid .btn-primary.disabled.active,.caldera-grid .btn-primary.disabled.focus,.caldera-grid .btn-primary.disabled:active,.caldera-grid .btn-primary.disabled:focus,.caldera-grid .btn-primary.disabled:hover,.caldera-grid .btn-primary[disabled],.caldera-grid .btn-primary[disabled].active,.caldera-grid .btn-primary[disabled].focus,.caldera-grid .btn-primary[disabled]:active,.caldera-grid .btn-primary[disabled]:focus,.caldera-grid .btn-primary[disabled]:hover,fieldset[disabled] .caldera-grid .btn-primary,fieldset[disabled] .caldera-grid .btn-primary.active,fieldset[disabled] .caldera-grid .btn-primary.focus,fieldset[disabled] .caldera-grid .btn-primary:active,fieldset[disabled] .caldera-grid .btn-primary:focus,fieldset[disabled] .caldera-grid .btn-primary:hover{background-color:#337ab7;border-color:#2e6da4}.caldera-grid .btn-primary .badge{color:#337ab7;background-color:#fff}.caldera-grid .btn-success{color:#fff;background-color:#5cb85c;border-color:#4cae4c}.caldera-grid .btn-success.active,.caldera-grid .btn-success.focus,.caldera-grid .btn-success:active,.caldera-grid .btn-success:focus,.caldera-grid .btn-success:hover,.open>.dropdown-toggle.caldera-grid .btn-success{color:#fff;background-color:#449d44;border-color:#398439}.caldera-grid .btn-success.disabled,.caldera-grid .btn-success.disabled.active,.caldera-grid .btn-success.disabled.focus,.caldera-grid .btn-success.disabled:active,.caldera-grid .btn-success.disabled:focus,.caldera-grid .btn-success.disabled:hover,.caldera-grid .btn-success[disabled],.caldera-grid .btn-success[disabled].active,.caldera-grid .btn-success[disabled].focus,.caldera-grid .btn-success[disabled]:active,.caldera-grid .btn-success[disabled]:focus,.caldera-grid .btn-success[disabled]:hover,fieldset[disabled] .caldera-grid .btn-success,fieldset[disabled] .caldera-grid .btn-success.active,fieldset[disabled] .caldera-grid .btn-success.focus,fieldset[disabled] .caldera-grid .btn-success:active,fieldset[disabled] .caldera-grid .btn-success:focus,fieldset[disabled] .caldera-grid .btn-success:hover{background-color:#5cb85c;border-color:#4cae4c}.caldera-grid .btn-success .badge{color:#5cb85c;background-color:#fff}.caldera-grid .btn-info{color:#fff;background-color:#5bc0de;border-color:#46b8da}.caldera-grid .btn-info.active,.caldera-grid .btn-info.focus,.caldera-grid .btn-info:active,.caldera-grid .btn-info:focus,.caldera-grid .btn-info:hover,.open>.dropdown-toggle.caldera-grid .btn-info{color:#fff;background-color:#31b0d5;border-color:#269abc}.caldera-grid .btn-info.disabled,.caldera-grid .btn-info.disabled.active,.caldera-grid .btn-info.disabled.focus,.caldera-grid .btn-info.disabled:active,.caldera-grid .btn-info.disabled:focus,.caldera-grid .btn-info.disabled:hover,.caldera-grid .btn-info[disabled],.caldera-grid .btn-info[disabled].active,.caldera-grid .btn-info[disabled].focus,.caldera-grid .btn-info[disabled]:active,.caldera-grid .btn-info[disabled]:focus,.caldera-grid .btn-info[disabled]:hover,fieldset[disabled] .caldera-grid .btn-info,fieldset[disabled] .caldera-grid .btn-info.active,fieldset[disabled] .caldera-grid .btn-info.focus,fieldset[disabled] .caldera-grid .btn-info:active,fieldset[disabled] .caldera-grid .btn-info:focus,fieldset[disabled] .caldera-grid .btn-info:hover{background-color:#5bc0de;border-color:#46b8da}.caldera-grid .btn-info .badge{color:#5bc0de;background-color:#fff}.caldera-grid .btn-warning{color:#fff;background-color:#f0ad4e;border-color:#eea236}.caldera-grid .btn-warning.active,.caldera-grid .btn-warning.focus,.caldera-grid .btn-warning:active,.caldera-grid .btn-warning:focus,.caldera-grid .btn-warning:hover,.open>.dropdown-toggle.caldera-grid .btn-warning{color:#fff;background-color:#ec971f;border-color:#d58512}.caldera-grid .btn-warning.disabled,.caldera-grid .btn-warning.disabled.active,.caldera-grid .btn-warning.disabled.focus,.caldera-grid .btn-warning.disabled:active,.caldera-grid .btn-warning.disabled:focus,.caldera-grid .btn-warning.disabled:hover,.caldera-grid .btn-warning[disabled],.caldera-grid .btn-warning[disabled].active,.caldera-grid .btn-warning[disabled].focus,.caldera-grid .btn-warning[disabled]:active,.caldera-grid .btn-warning[disabled]:focus,.caldera-grid .btn-warning[disabled]:hover,fieldset[disabled] .caldera-grid .btn-warning,fieldset[disabled] .caldera-grid .btn-warning.active,fieldset[disabled] .caldera-grid .btn-warning.focus,fieldset[disabled] .caldera-grid .btn-warning:active,fieldset[disabled] .caldera-grid .btn-warning:focus,fieldset[disabled] .caldera-grid .btn-warning:hover{background-color:#f0ad4e;border-color:#eea236}.caldera-grid .btn-warning .badge{color:#f0ad4e;background-color:#fff}.caldera-grid .btn-danger{color:#fff;background-color:#d9534f;border-color:#d43f3a}.caldera-grid .btn-danger.active,.caldera-grid .btn-danger.focus,.caldera-grid .btn-danger:active,.caldera-grid .btn-danger:focus,.caldera-grid .btn-danger:hover,.open>.dropdown-toggle.caldera-grid .btn-danger{color:#fff;background-color:#c9302c;border-color:#ac2925}.caldera-grid .btn-danger.disabled,.caldera-grid .btn-danger.disabled.active,.caldera-grid .btn-danger.disabled.focus,.caldera-grid .btn-danger.disabled:active,.caldera-grid .btn-danger.disabled:focus,.caldera-grid .btn-danger.disabled:hover,.caldera-grid .btn-danger[disabled],.caldera-grid .btn-danger[disabled].active,.caldera-grid .btn-danger[disabled].focus,.caldera-grid .btn-danger[disabled]:active,.caldera-grid .btn-danger[disabled]:focus,.caldera-grid .btn-danger[disabled]:hover,fieldset[disabled] .caldera-grid .btn-danger,fieldset[disabled] .caldera-grid .btn-danger.active,fieldset[disabled] .caldera-grid .btn-danger.focus,fieldset[disabled] .caldera-grid .btn-danger:active,fieldset[disabled] .caldera-grid .btn-danger:focus,fieldset[disabled] .caldera-grid .btn-danger:hover{background-color:#d9534f;border-color:#d43f3a}.caldera-grid .btn-danger .badge{color:#d9534f;background-color:#fff}.caldera-grid .btn-link{color:#337ab7;font-weight:400;border-radius:0}.caldera-grid .btn-link,.caldera-grid .btn-link.active,.caldera-grid .btn-link:active,.caldera-grid .btn-link[disabled],fieldset[disabled] .caldera-grid .btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.caldera-grid .btn-link,.caldera-grid .btn-link:active,.caldera-grid .btn-link:focus,.caldera-grid .btn-link:hover{border-color:transparent}.caldera-grid .btn-link:focus,.caldera-grid .btn-link:hover{color:#23527c;text-decoration:underline;background-color:transparent}.caldera-grid .btn-link[disabled]:focus,.caldera-grid .btn-link[disabled]:hover,fieldset[disabled] .caldera-grid .btn-link:focus,fieldset[disabled] .caldera-grid .btn-link:hover{color:#777;text-decoration:none}.caldera-grid .btn-lg{padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:4px}.caldera-grid .btn-sm,.caldera-grid .btn-xs{font-size:12px;line-height:1.5;border-radius:1px}.caldera-grid .btn-sm{padding:5px 10px}.caldera-grid .btn-xs{padding:1px 5px}.caldera-grid .btn-block{display:block;width:100%}.caldera-grid .btn-block+.btn-block{margin-top:5px}.caldera-grid input[type=button].btn-block,.caldera-grid input[type=reset].btn-block,.caldera-grid input[type=submit].btn-block{width:100%}.caldera-grid textarea.form-control{padding-right:4px;height:auto}.caldera-grid .breadcrumb{padding:6px 12px;margin:0 0 20px;list-style:none;background-color:#f5f5f5;border-radius:4px}.caldera-grid .breadcrumb>li{display:inline-block;margin:0}.caldera-grid .breadcrumb>li+li:before{content:"/\00a0";padding:0 5px;color:#ccc}.caldera-grid .breadcrumb>.active,.caldera-grid .breadcrumb>.active>a{color:#777}.breadcrumb>li.active.error>a,.breadcrumb>li.error>a{color:red}.caldera-grid .cf-credit-card{padding-left:42px;background-image:url(../images/credit-card.svg);background-repeat:no-repeat!important;background-position-x:4px!important;background-position-y:3px!important}.caldera-grid .screen-reader-text{clip:rect(1px,1px,1px,1px);height:1px;overflow:hidden;position:absolute!important;width:1px;word-wrap:normal!important}@font-face{font-family:cf-raty;src:url(fonts/cf-raty.eot?40481674);src:url(fonts/cf-raty.eot?40481674#iefix) format('embedded-opentype'),url(fonts/cf-raty.woff?40481674) format('woff'),url(fonts/cf-raty.ttf?40481674) format('truetype'),url(fonts/cf-raty.svg?40481674#cf-raty) format('svg');font-weight:400;font-style:normal}[class*=" raty-"]:before,[class^=raty-]:before{font-family:cf-raty;font-style:normal;font-weight:400;speak:none;font-size:2em;display:inline-block;text-decoration:inherit;width:1em;text-align:center;font-variant:normal;text-transform:none;line-height:1em}.raty-heart-on:before{content:'\e800'}.raty-heart-off:before{content:'\e801'}.raty-star-on:before{content:'\e802'}.raty-star-off:before{content:'\e803'}.raty-circle-on:before{content:'\e804'}.raty-circle-off:before{content:'\e805'}.raty-dot-off:before{content:'\e806'}.raty-dot-on:before{content:'\e807'}.raty-face-off:before{content:'\e808'}.raty-face-on:before{content:'\e809'}.raty-cancel-off:before{content:'\e80a'}.raty-cancel-on:before{content:'\e80b'}.calculation-group{background:#FFF;box-shadow:0 1px 2px rgba(0,0,0,.05);padding:6px;margin:6px 0}.preview-color-selector{background:#F0F0F0;border:1px solid #E2E2E2;display:inline;margin-left:-1px;padding:3px 12px;box-shadow:0 0 0 2px #fff inset}.miniColors-trigger{border:1px solid #999;-mz-border-radius:0 1px 1px 0;-webkit-border-radius:0 1px 1px 0;display:inline-block;height:24px;margin:0 0 -8px -1px;width:30px}.cf-color-picker .input-group-btn:last-child>.btn,.cf-color-picker .input-group-btn:last-child>.btn-group,.cf-color-picker .input-group-btn>.btn+.btn{margin-left:-1px}.miniColors-selector{background:#FFF;border:1px solid #999;-moz-box-shadow:0 3px 0 -1px rgba(0,0,0,.05);-webkit-box-shadow:0 3px 0 -1px rgba(0,0,0,.05);box-shadow:0 3px 0 -1px rgba(0,0,0,.05);height:162px;padding:5px;position:absolute;width:187px;z-index:999999;margin-top:-1px}.miniColors-colors,.miniColors-hues{top:5px;height:150px;cursor:crosshair;position:absolute}.miniColors-selector.black{background:#000;border-color:#000}.miniColors-colors{left:5px;width:150px;background:url(minicolor-colors.png) right no-repeat}.miniColors-hues{left:160px;width:20px;background:url(minicolor-colors.png) left no-repeat}.miniColors-colorPicker{position:absolute;width:9px;height:9px;border:1px solid #fff;-moz-border-radius:11px;-webkit-border-radius:11px;border-radius:11px}.miniColors-colorPicker-inner{position:absolute;top:0;left:0;width:7px;height:7px;border:1px solid #000;-moz-border-radius:9px;-webkit-border-radius:9px;border-radius:9px}.miniColors-huePicker{position:absolute;left:-3px;width:24px;height:1px;border:1px solid #fff;border-radius:2px;background:#000}.cf-color-picker .form-control::-moz-placeholder{color:#999;opacity:1}.cf-color-picker .form-control:-ms-input-placeholder{color:#999}.cf-color-picker .form-control::-webkit-input-placeholder{color:#999}.cf-color-picker .form-control[disabled],.cf-color-picker .form-control[readonly],.cf-color-picker fieldset[disabled] .form-control{cursor:not-allowed;background-color:#eee;opacity:1}.cf-color-picker .form-group{margin-bottom:15px}.cf-color-picker .input-group{position:relative;display:table;border-collapse:separate;max-width:120px}.cf-color-picker .input-group[class*=col-]{float:none;padding-left:0;padding-right:0}.cf-color-picker .input-group .form-control{position:relative;z-index:2;float:left;width:100%;margin-bottom:0}.cf-color-picker .input-group-lg>.form-control,.cf-color-picker .input-group-lg>.input-group-addon,.cf-color-picker .input-group-lg>.input-group-btn>.btn{height:46px;padding:10px 16px;font-size:18px;line-height:1.33;border-radius:6px}.cf-color-picker .input-group-sm>.form-control,.cf-color-picker .input-group-sm>.input-group-addon,.cf-color-picker .input-group-sm>.input-group-btn>.btn{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.cf-color-picker .input-group .form-control,.cf-color-picker .input-group-addon,.cf-color-picker .input-group-btn{display:table-cell}.cf-color-picker .input-group .form-control:not(:first-child):not(:last-child),.cf-color-picker .input-group-addon:not(:first-child):not(:last-child),.cf-color-picker .input-group-btn:not(:first-child):not(:last-child){border-radius:0}.cf-color-picker .input-group-addon,.cf-color-picker .input-group-btn{width:1%;white-space:nowrap;vertical-align:middle}.cf-color-picker .input-group-addon{padding:6px 12px;font-size:14px;font-weight:400;line-height:1;color:#555;text-align:center;background-color:#eee;border:1px solid #ccc;border-radius:4px}.cf-color-picker .text-hide,.table-striped .cfdatepicker table tr td,.table-striped .cfdatepicker table tr th{background-color:transparent}.cf-color-picker .input-group-addon.input-sm{padding:5px 10px;font-size:12px;border-radius:3px}.cf-color-picker .input-group-addon.input-lg{padding:10px 16px;font-size:18px;border-radius:6px}.cf-color-picker .input-group .form-control:first-child,.cf-color-picker .input-group-addon:first-child,.cf-color-picker .input-group-btn:first-child>.btn,.cf-color-picker .input-group-btn:first-child>.btn-group>.btn,.cf-color-picker .input-group-btn:first-child>.dropdown-toggle,.cf-color-picker .input-group-btn:last-child>.btn-group:not(:last-child)>.btn,.cf-color-picker .input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle){border-bottom-right-radius:0;border-top-right-radius:0}.cf-color-picker .input-group-addon:first-child{border-right:0}.cf-color-picker .input-group .form-control:last-child,.cf-color-picker .input-group-addon:last-child,.cf-color-picker .input-group-btn:first-child>.btn-group:not(:first-child)>.btn,.cf-color-picker .input-group-btn:first-child>.btn:not(:first-child),.cf-color-picker .input-group-btn:last-child>.btn,.cf-color-picker .input-group-btn:last-child>.btn-group>.btn,.cf-color-picker .input-group-btn:last-child>.dropdown-toggle{border-bottom-left-radius:0;border-top-left-radius:0}.cf-color-picker .input-group-addon:last-child{border-left:0}.cf-color-picker .input-group-btn{position:relative;font-size:0;white-space:nowrap}.cf-color-picker .input-group-btn>.btn{position:relative}.cf-color-picker .input-group-btn>.btn:active,.cf-color-picker .input-group-btn>.btn:focus,.cf-color-picker .input-group-btn>.btn:hover{z-index:2}.cf-color-picker .input-group-btn:first-child>.btn,.cf-color-picker .input-group-btn:first-child>.btn-group{margin-right:-1px}.cf-color-picker .clearfix:after,.cf-color-picker .clearfix:before,.cf-color-picker .form-horizontal .form-group:after,.cf-color-picker .form-horizontal .form-group:before{content:" ";display:table}.cf-color-picker .clearfix:after,.cf-color-picker .form-horizontal .form-group:after{clear:both}.cf-color-picker .center-block{display:block;margin-left:auto;margin-right:auto}.cf-color-picker .pull-right{float:right!important}.cf-color-picker .pull-left{float:left!important}.cf-color-picker .hide{display:none!important}.cf-color-picker .show{display:block!important}.cf-color-picker .invisible{visibility:hidden}.cf-color-picker .text-hide{font:0/0 a;color:transparent;text-shadow:none;border:0}.cf-color-picker .hidden{display:none!important;visibility:hidden!important}.cf-color-picker .affix{position:fixed}@-ms-viewport{width:device-width}.cf-color-picker .visible-lg,.cf-color-picker .visible-md,.cf-color-picker .visible-print,.cf-color-picker .visible-sm,.cf-color-picker .visible-xs{display:none!important}@media (max-width:767px){.cf-color-picker .visible-xs{display:block!important}.cf-color-picker table.visible-xs{display:table}.cf-color-picker tr.visible-xs{display:table-row!important}.cf-color-picker td.visible-xs,.cf-color-picker th.visible-xs{display:table-cell!important}}@media (min-width:768px) and (max-width:991px){.cf-color-picker .visible-sm{display:block!important}.cf-color-picker table.visible-sm{display:table}.cf-color-picker tr.visible-sm{display:table-row!important}.cf-color-picker td.visible-sm,.cf-color-picker th.visible-sm{display:table-cell!important}}@media (min-width:992px) and (max-width:1199px){.cf-color-picker .visible-md{display:block!important}.cf-color-picker table.visible-md{display:table}.cf-color-picker tr.visible-md{display:table-row!important}.cf-color-picker td.visible-md,.cf-color-picker th.visible-md{display:table-cell!important}}@media (min-width:1200px){.cf-color-picker .visible-lg{display:block!important}.cf-color-picker table.visible-lg{display:table}.cf-color-picker tr.visible-lg{display:table-row!important}.cf-color-picker td.visible-lg,.cf-color-picker th.visible-lg{display:table-cell!important}.cf-color-picker .hidden-lg{display:none!important}}@media (max-width:767px){.cf-color-picker .hidden-xs{display:none!important}}@media (min-width:768px) and (max-width:991px){.cf-color-picker .hidden-sm{display:none!important}}@media (min-width:992px) and (max-width:1199px){.cf-color-picker .hidden-md{display:none!important}}@media print{.cf-color-picker .visible-print{display:block!important}.cf-color-picker table.visible-print{display:table}.cf-color-picker tr.visible-print{display:table-row!important}.cf-color-picker td.visible-print,.cf-color-picker th.visible-print{display:table-cell!important}.cf-color-picker .hidden-print{display:none!important}}.cfdatepicker-dropdown:after,.cfdatepicker-dropdown:before{content:'';display:inline-block;border-top:0;position:absolute}.cfdatepicker{padding:4px;border-radius:4px;direction:ltr}.cfdatepicker-inline{width:220px}.cfdatepicker.cfdatepicker-rtl{direction:rtl}.cfdatepicker.cfdatepicker-rtl table tr td span{float:right}.cfdatepicker-dropdown{top:0;left:0}.cfdatepicker-dropdown:before{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #ccc;border-bottom-color:rgba(0,0,0,.2)}.cfdatepicker-dropdown:after{border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:6px solid #fff}.cfdatepicker-dropdown.cfdatepicker-orient-left:before{left:6px}.cfdatepicker-dropdown.cfdatepicker-orient-left:after{left:7px}.cfdatepicker-dropdown.cfdatepicker-orient-right:before{right:6px}.cfdatepicker-dropdown.cfdatepicker-orient-right:after{right:7px}.cfdatepicker-dropdown.cfdatepicker-orient-top:before{top:-7px}.cfdatepicker-dropdown.cfdatepicker-orient-top:after{top:-6px}.cfdatepicker-dropdown.cfdatepicker-orient-bottom:before{bottom:-7px;border-bottom:0;border-top:7px solid #999}.cfdatepicker-dropdown.cfdatepicker-orient-bottom:after{bottom:-6px;border-bottom:0;border-top:6px solid #fff}.cfdatepicker>div{display:none}.cfdatepicker.days div.cfdatepicker-days,.cfdatepicker.months div.cfdatepicker-months,.cfdatepicker.years div.cfdatepicker-years{display:block}.cfdatepicker table{border:0;width:auto;margin:0;-webkit-touch-callout:none;-khtml-user-select:none;user-select:none}.cfdatepicker table tr td,.cfdatepicker table tr th{text-align:center;width:10px;height:10px;border-radius:4px;border:none}.cfdatepicker table tr td.day.focused,.cfdatepicker table tr td.day:hover{background:#eee;cursor:pointer}.cfdatepicker table tr td.new,.cfdatepicker table tr td.old{color:#999}.cfdatepicker table tr td.disabled,.cfdatepicker table tr td.disabled:hover{background:0 0;color:#999;cursor:default}.cfdatepicker table tr td.today,.cfdatepicker table tr td.today.disabled,.cfdatepicker table tr td.today.disabled:hover,.cfdatepicker table tr td.today:hover{color:#000;background-color:#ffdb99;border-color:#ffb733}.cfdatepicker table tr td.today.active,.cfdatepicker table tr td.today.disabled.active,.cfdatepicker table tr td.today.disabled:active,.cfdatepicker table tr td.today.disabled:focus,.cfdatepicker table tr td.today.disabled:hover,.cfdatepicker table tr td.today.disabled:hover.active,.cfdatepicker table tr td.today.disabled:hover:active,.cfdatepicker table tr td.today.disabled:hover:focus,.cfdatepicker table tr td.today.disabled:hover:hover,.cfdatepicker table tr td.today:active,.cfdatepicker table tr td.today:focus,.cfdatepicker table tr td.today:hover,.cfdatepicker table tr td.today:hover.active,.cfdatepicker table tr td.today:hover:active,.cfdatepicker table tr td.today:hover:focus,.cfdatepicker table tr td.today:hover:hover,.open .dropdown-toggle.cfdatepicker table tr td.today,.open .dropdown-toggle.cfdatepicker table tr td.today.disabled,.open .dropdown-toggle.cfdatepicker table tr td.today.disabled:hover,.open .dropdown-toggle.cfdatepicker table tr td.today:hover{color:#000;background-color:#ffcd70;border-color:#f59e00}.cfdatepicker table tr td.today.active,.cfdatepicker table tr td.today.disabled.active,.cfdatepicker table tr td.today.disabled:active,.cfdatepicker table tr td.today.disabled:hover.active,.cfdatepicker table tr td.today.disabled:hover:active,.cfdatepicker table tr td.today:active,.cfdatepicker table tr td.today:hover.active,.cfdatepicker table tr td.today:hover:active,.open .dropdown-toggle.cfdatepicker table tr td.today,.open .dropdown-toggle.cfdatepicker table tr td.today.disabled,.open .dropdown-toggle.cfdatepicker table tr td.today.disabled:hover,.open .dropdown-toggle.cfdatepicker table tr td.today:hover{background-image:none}.cfdatepicker table tr td.today.disabled,.cfdatepicker table tr td.today.disabled.active,.cfdatepicker table tr td.today.disabled.disabled,.cfdatepicker table tr td.today.disabled.disabled.active,.cfdatepicker table tr td.today.disabled.disabled:active,.cfdatepicker table tr td.today.disabled.disabled:focus,.cfdatepicker table tr td.today.disabled.disabled:hover,.cfdatepicker table tr td.today.disabled:active,.cfdatepicker table tr td.today.disabled:focus,.cfdatepicker table tr td.today.disabled:hover,.cfdatepicker table tr td.today.disabled:hover.disabled,.cfdatepicker table tr td.today.disabled:hover.disabled.active,.cfdatepicker table tr td.today.disabled:hover.disabled:active,.cfdatepicker table tr td.today.disabled:hover.disabled:focus,.cfdatepicker table tr td.today.disabled:hover.disabled:hover,.cfdatepicker table tr td.today.disabled:hover[disabled],.cfdatepicker table tr td.today.disabled:hover[disabled].active,.cfdatepicker table tr td.today.disabled:hover[disabled]:active,.cfdatepicker table tr td.today.disabled:hover[disabled]:focus,.cfdatepicker table tr td.today.disabled:hover[disabled]:hover,.cfdatepicker table tr td.today.disabled[disabled],.cfdatepicker table tr td.today.disabled[disabled].active,.cfdatepicker table tr td.today.disabled[disabled]:active,.cfdatepicker table tr td.today.disabled[disabled]:focus,.cfdatepicker table tr td.today.disabled[disabled]:hover,.cfdatepicker table tr td.today:hover.disabled,.cfdatepicker table tr td.today:hover.disabled.active,.cfdatepicker table tr td.today:hover.disabled:active,.cfdatepicker table tr td.today:hover.disabled:focus,.cfdatepicker table tr td.today:hover.disabled:hover,.cfdatepicker table tr td.today:hover[disabled],.cfdatepicker table tr td.today:hover[disabled].active,.cfdatepicker table tr td.today:hover[disabled]:active,.cfdatepicker table tr td.today:hover[disabled]:focus,.cfdatepicker table tr td.today:hover[disabled]:hover,.cfdatepicker table tr td.today[disabled],.cfdatepicker table tr td.today[disabled].active,.cfdatepicker table tr td.today[disabled]:active,.cfdatepicker table tr td.today[disabled]:focus,.cfdatepicker table tr td.today[disabled]:hover,fieldset[disabled] .cfdatepicker table tr td.today,fieldset[disabled] .cfdatepicker table tr td.today.active,fieldset[disabled] .cfdatepicker table tr td.today.disabled,fieldset[disabled] .cfdatepicker table tr td.today.disabled.active,fieldset[disabled] .cfdatepicker table tr td.today.disabled:active,fieldset[disabled] .cfdatepicker table tr td.today.disabled:focus,fieldset[disabled] .cfdatepicker table tr td.today.disabled:hover,fieldset[disabled] .cfdatepicker table tr td.today.disabled:hover.active,fieldset[disabled] .cfdatepicker table tr td.today.disabled:hover:active,fieldset[disabled] .cfdatepicker table tr td.today.disabled:hover:focus,fieldset[disabled] .cfdatepicker table tr td.today.disabled:hover:hover,fieldset[disabled] .cfdatepicker table tr td.today:active,fieldset[disabled] .cfdatepicker table tr td.today:focus,fieldset[disabled] .cfdatepicker table tr td.today:hover,fieldset[disabled] .cfdatepicker table tr td.today:hover.active,fieldset[disabled] .cfdatepicker table tr td.today:hover:active,fieldset[disabled] .cfdatepicker table tr td.today:hover:focus,fieldset[disabled] .cfdatepicker table tr td.today:hover:hover{background-color:#ffdb99;border-color:#ffb733}.cfdatepicker table tr td.today:hover:hover{color:#000}.cfdatepicker table tr td.today.active:hover{color:#fff}.cfdatepicker table tr td.range,.cfdatepicker table tr td.range.disabled,.cfdatepicker table tr td.range.disabled:hover,.cfdatepicker table tr td.range:hover{background:#eee;border-radius:0}.cfdatepicker table tr td.active.active,.cfdatepicker table tr td.active.disabled.active,.cfdatepicker table tr td.active.disabled:active,.cfdatepicker table tr td.active.disabled:hover.active,.cfdatepicker table tr td.active.disabled:hover:active,.cfdatepicker table tr td.active:active,.cfdatepicker table tr td.active:hover.active,.cfdatepicker table tr td.active:hover:active,.cfdatepicker table tr td.range.today.active,.cfdatepicker table tr td.range.today.disabled.active,.cfdatepicker table tr td.range.today.disabled:active,.cfdatepicker table tr td.range.today.disabled:hover.active,.cfdatepicker table tr td.range.today.disabled:hover:active,.cfdatepicker table tr td.range.today:active,.cfdatepicker table tr td.range.today:hover.active,.cfdatepicker table tr td.range.today:hover:active,.cfdatepicker table tr td.selected.active,.cfdatepicker table tr td.selected.disabled.active,.cfdatepicker table tr td.selected.disabled:active,.cfdatepicker table tr td.selected.disabled:hover.active,.cfdatepicker table tr td.selected.disabled:hover:active,.cfdatepicker table tr td.selected:active,.cfdatepicker table tr td.selected:hover.active,.cfdatepicker table tr td.selected:hover:active,.open .dropdown-toggle.cfdatepicker table tr td.active,.open .dropdown-toggle.cfdatepicker table tr td.active.disabled,.open .dropdown-toggle.cfdatepicker table tr td.active.disabled:hover,.open .dropdown-toggle.cfdatepicker table tr td.active:hover,.open .dropdown-toggle.cfdatepicker table tr td.range.today,.open .dropdown-toggle.cfdatepicker table tr td.range.today.disabled,.open .dropdown-toggle.cfdatepicker table tr td.range.today.disabled:hover,.open .dropdown-toggle.cfdatepicker table tr td.range.today:hover,.open .dropdown-toggle.cfdatepicker table tr td.selected,.open .dropdown-toggle.cfdatepicker table tr td.selected.disabled,.open .dropdown-toggle.cfdatepicker table tr td.selected.disabled:hover,.open .dropdown-toggle.cfdatepicker table tr td.selected:hover{background-image:none}.cfdatepicker table tr td.range.today,.cfdatepicker table tr td.range.today.disabled,.cfdatepicker table tr td.range.today.disabled:hover,.cfdatepicker table tr td.range.today:hover{color:#000;background-color:#f7ca77;border-color:#f1a417;border-radius:0}.cfdatepicker table tr td.range.today.active,.cfdatepicker table tr td.range.today.disabled.active,.cfdatepicker table tr td.range.today.disabled:active,.cfdatepicker table tr td.range.today.disabled:focus,.cfdatepicker table tr td.range.today.disabled:hover,.cfdatepicker table tr td.range.today.disabled:hover.active,.cfdatepicker table tr td.range.today.disabled:hover:active,.cfdatepicker table tr td.range.today.disabled:hover:focus,.cfdatepicker table tr td.range.today.disabled:hover:hover,.cfdatepicker table tr td.range.today:active,.cfdatepicker table tr td.range.today:focus,.cfdatepicker table tr td.range.today:hover,.cfdatepicker table tr td.range.today:hover.active,.cfdatepicker table tr td.range.today:hover:active,.cfdatepicker table tr td.range.today:hover:focus,.cfdatepicker table tr td.range.today:hover:hover,.open .dropdown-toggle.cfdatepicker table tr td.range.today,.open .dropdown-toggle.cfdatepicker table tr td.range.today.disabled,.open .dropdown-toggle.cfdatepicker table tr td.range.today.disabled:hover,.open .dropdown-toggle.cfdatepicker table tr td.range.today:hover{color:#000;background-color:#f4bb51;border-color:#bf800c}.cfdatepicker table tr td.range.today.disabled,.cfdatepicker table tr td.range.today.disabled.active,.cfdatepicker table tr td.range.today.disabled.disabled,.cfdatepicker table tr td.range.today.disabled.disabled.active,.cfdatepicker table tr td.range.today.disabled.disabled:active,.cfdatepicker table tr td.range.today.disabled.disabled:focus,.cfdatepicker table tr td.range.today.disabled.disabled:hover,.cfdatepicker table tr td.range.today.disabled:active,.cfdatepicker table tr td.range.today.disabled:focus,.cfdatepicker table tr td.range.today.disabled:hover,.cfdatepicker table tr td.range.today.disabled:hover.disabled,.cfdatepicker table tr td.range.today.disabled:hover.disabled.active,.cfdatepicker table tr td.range.today.disabled:hover.disabled:active,.cfdatepicker table tr td.range.today.disabled:hover.disabled:focus,.cfdatepicker table tr td.range.today.disabled:hover.disabled:hover,.cfdatepicker table tr td.range.today.disabled:hover[disabled],.cfdatepicker table tr td.range.today.disabled:hover[disabled].active,.cfdatepicker table tr td.range.today.disabled:hover[disabled]:active,.cfdatepicker table tr td.range.today.disabled:hover[disabled]:focus,.cfdatepicker table tr td.range.today.disabled:hover[disabled]:hover,.cfdatepicker table tr td.range.today.disabled[disabled],.cfdatepicker table tr td.range.today.disabled[disabled].active,.cfdatepicker table tr td.range.today.disabled[disabled]:active,.cfdatepicker table tr td.range.today.disabled[disabled]:focus,.cfdatepicker table tr td.range.today.disabled[disabled]:hover,.cfdatepicker table tr td.range.today:hover.disabled,.cfdatepicker table tr td.range.today:hover.disabled.active,.cfdatepicker table tr td.range.today:hover.disabled:active,.cfdatepicker table tr td.range.today:hover.disabled:focus,.cfdatepicker table tr td.range.today:hover.disabled:hover,.cfdatepicker table tr td.range.today:hover[disabled],.cfdatepicker table tr td.range.today:hover[disabled].active,.cfdatepicker table tr td.range.today:hover[disabled]:active,.cfdatepicker table tr td.range.today:hover[disabled]:focus,.cfdatepicker table tr td.range.today:hover[disabled]:hover,.cfdatepicker table tr td.range.today[disabled],.cfdatepicker table tr td.range.today[disabled].active,.cfdatepicker table tr td.range.today[disabled]:active,.cfdatepicker table tr td.range.today[disabled]:focus,.cfdatepicker table tr td.range.today[disabled]:hover,fieldset[disabled] .cfdatepicker table tr td.range.today,fieldset[disabled] .cfdatepicker table tr td.range.today.active,fieldset[disabled] .cfdatepicker table tr td.range.today.disabled,fieldset[disabled] .cfdatepicker table tr td.range.today.disabled.active,fieldset[disabled] .cfdatepicker table tr td.range.today.disabled:active,fieldset[disabled] .cfdatepicker table tr td.range.today.disabled:focus,fieldset[disabled] .cfdatepicker table tr td.range.today.disabled:hover,fieldset[disabled] .cfdatepicker table tr td.range.today.disabled:hover.active,fieldset[disabled] .cfdatepicker table tr td.range.today.disabled:hover:active,fieldset[disabled] .cfdatepicker table tr td.range.today.disabled:hover:focus,fieldset[disabled] .cfdatepicker table tr td.range.today.disabled:hover:hover,fieldset[disabled] .cfdatepicker table tr td.range.today:active,fieldset[disabled] .cfdatepicker table tr td.range.today:focus,fieldset[disabled] .cfdatepicker table tr td.range.today:hover,fieldset[disabled] .cfdatepicker table tr td.range.today:hover.active,fieldset[disabled] .cfdatepicker table tr td.range.today:hover:active,fieldset[disabled] .cfdatepicker table tr td.range.today:hover:focus,fieldset[disabled] .cfdatepicker table tr td.range.today:hover:hover{background-color:#f7ca77;border-color:#f1a417}.cfdatepicker table tr td.selected,.cfdatepicker table tr td.selected.disabled,.cfdatepicker table tr td.selected.disabled:hover,.cfdatepicker table tr td.selected:hover{color:#fff;background-color:#999;border-color:#555;text-shadow:0 -1px 0 rgba(0,0,0,.25)}.cfdatepicker table tr td.selected.active,.cfdatepicker table tr td.selected.disabled.active,.cfdatepicker table tr td.selected.disabled:active,.cfdatepicker table tr td.selected.disabled:focus,.cfdatepicker table tr td.selected.disabled:hover,.cfdatepicker table tr td.selected.disabled:hover.active,.cfdatepicker table tr td.selected.disabled:hover:active,.cfdatepicker table tr td.selected.disabled:hover:focus,.cfdatepicker table tr td.selected.disabled:hover:hover,.cfdatepicker table tr td.selected:active,.cfdatepicker table tr td.selected:focus,.cfdatepicker table tr td.selected:hover,.cfdatepicker table tr td.selected:hover.active,.cfdatepicker table tr td.selected:hover:active,.cfdatepicker table tr td.selected:hover:focus,.cfdatepicker table tr td.selected:hover:hover,.open .dropdown-toggle.cfdatepicker table tr td.selected,.open .dropdown-toggle.cfdatepicker table tr td.selected.disabled,.open .dropdown-toggle.cfdatepicker table tr td.selected.disabled:hover,.open .dropdown-toggle.cfdatepicker table tr td.selected:hover{color:#fff;background-color:#858585;border-color:#373737}.cfdatepicker table tr td.selected.disabled,.cfdatepicker table tr td.selected.disabled.active,.cfdatepicker table tr td.selected.disabled.disabled,.cfdatepicker table tr td.selected.disabled.disabled.active,.cfdatepicker table tr td.selected.disabled.disabled:active,.cfdatepicker table tr td.selected.disabled.disabled:focus,.cfdatepicker table tr td.selected.disabled.disabled:hover,.cfdatepicker table tr td.selected.disabled:active,.cfdatepicker table tr td.selected.disabled:focus,.cfdatepicker table tr td.selected.disabled:hover,.cfdatepicker table tr td.selected.disabled:hover.disabled,.cfdatepicker table tr td.selected.disabled:hover.disabled.active,.cfdatepicker table tr td.selected.disabled:hover.disabled:active,.cfdatepicker table tr td.selected.disabled:hover.disabled:focus,.cfdatepicker table tr td.selected.disabled:hover.disabled:hover,.cfdatepicker table tr td.selected.disabled:hover[disabled],.cfdatepicker table tr td.selected.disabled:hover[disabled].active,.cfdatepicker table tr td.selected.disabled:hover[disabled]:active,.cfdatepicker table tr td.selected.disabled:hover[disabled]:focus,.cfdatepicker table tr td.selected.disabled:hover[disabled]:hover,.cfdatepicker table tr td.selected.disabled[disabled],.cfdatepicker table tr td.selected.disabled[disabled].active,.cfdatepicker table tr td.selected.disabled[disabled]:active,.cfdatepicker table tr td.selected.disabled[disabled]:focus,.cfdatepicker table tr td.selected.disabled[disabled]:hover,.cfdatepicker table tr td.selected:hover.disabled,.cfdatepicker table tr td.selected:hover.disabled.active,.cfdatepicker table tr td.selected:hover.disabled:active,.cfdatepicker table tr td.selected:hover.disabled:focus,.cfdatepicker table tr td.selected:hover.disabled:hover,.cfdatepicker table tr td.selected:hover[disabled],.cfdatepicker table tr td.selected:hover[disabled].active,.cfdatepicker table tr td.selected:hover[disabled]:active,.cfdatepicker table tr td.selected:hover[disabled]:focus,.cfdatepicker table tr td.selected:hover[disabled]:hover,.cfdatepicker table tr td.selected[disabled],.cfdatepicker table tr td.selected[disabled].active,.cfdatepicker table tr td.selected[disabled]:active,.cfdatepicker table tr td.selected[disabled]:focus,.cfdatepicker table tr td.selected[disabled]:hover,fieldset[disabled] .cfdatepicker table tr td.selected,fieldset[disabled] .cfdatepicker table tr td.selected.active,fieldset[disabled] .cfdatepicker table tr td.selected.disabled,fieldset[disabled] .cfdatepicker table tr td.selected.disabled.active,fieldset[disabled] .cfdatepicker table tr td.selected.disabled:active,fieldset[disabled] .cfdatepicker table tr td.selected.disabled:focus,fieldset[disabled] .cfdatepicker table tr td.selected.disabled:hover,fieldset[disabled] .cfdatepicker table tr td.selected.disabled:hover.active,fieldset[disabled] .cfdatepicker table tr td.selected.disabled:hover:active,fieldset[disabled] .cfdatepicker table tr td.selected.disabled:hover:focus,fieldset[disabled] .cfdatepicker table tr td.selected.disabled:hover:hover,fieldset[disabled] .cfdatepicker table tr td.selected:active,fieldset[disabled] .cfdatepicker table tr td.selected:focus,fieldset[disabled] .cfdatepicker table tr td.selected:hover,fieldset[disabled] .cfdatepicker table tr td.selected:hover.active,fieldset[disabled] .cfdatepicker table tr td.selected:hover:active,fieldset[disabled] .cfdatepicker table tr td.selected:hover:focus,fieldset[disabled] .cfdatepicker table tr td.selected:hover:hover{background-color:#999;border-color:#555}.cfdatepicker table tr td.active,.cfdatepicker table tr td.active.disabled,.cfdatepicker table tr td.active.disabled:hover,.cfdatepicker table tr td.active:hover{color:#fff;background-color:#428bca;border-color:#357ebd;text-shadow:0 -1px 0 rgba(0,0,0,.25)}.cfdatepicker table tr td.active.active,.cfdatepicker table tr td.active.disabled.active,.cfdatepicker table tr td.active.disabled:active,.cfdatepicker table tr td.active.disabled:focus,.cfdatepicker table tr td.active.disabled:hover,.cfdatepicker table tr td.active.disabled:hover.active,.cfdatepicker table tr td.active.disabled:hover:active,.cfdatepicker table tr td.active.disabled:hover:focus,.cfdatepicker table tr td.active.disabled:hover:hover,.cfdatepicker table tr td.active:active,.cfdatepicker table tr td.active:focus,.cfdatepicker table tr td.active:hover,.cfdatepicker table tr td.active:hover.active,.cfdatepicker table tr td.active:hover:active,.cfdatepicker table tr td.active:hover:focus,.cfdatepicker table tr td.active:hover:hover,.open .dropdown-toggle.cfdatepicker table tr td.active,.open .dropdown-toggle.cfdatepicker table tr td.active.disabled,.open .dropdown-toggle.cfdatepicker table tr td.active.disabled:hover,.open .dropdown-toggle.cfdatepicker table tr td.active:hover{color:#fff;background-color:#3276b1;border-color:#285e8e}.cfdatepicker table tr td.active.disabled,.cfdatepicker table tr td.active.disabled.active,.cfdatepicker table tr td.active.disabled.disabled,.cfdatepicker table tr td.active.disabled.disabled.active,.cfdatepicker table tr td.active.disabled.disabled:active,.cfdatepicker table tr td.active.disabled.disabled:focus,.cfdatepicker table tr td.active.disabled.disabled:hover,.cfdatepicker table tr td.active.disabled:active,.cfdatepicker table tr td.active.disabled:focus,.cfdatepicker table tr td.active.disabled:hover,.cfdatepicker table tr td.active.disabled:hover.disabled,.cfdatepicker table tr td.active.disabled:hover.disabled.active,.cfdatepicker table tr td.active.disabled:hover.disabled:active,.cfdatepicker table tr td.active.disabled:hover.disabled:focus,.cfdatepicker table tr td.active.disabled:hover.disabled:hover,.cfdatepicker table tr td.active.disabled:hover[disabled],.cfdatepicker table tr td.active.disabled:hover[disabled].active,.cfdatepicker table tr td.active.disabled:hover[disabled]:active,.cfdatepicker table tr td.active.disabled:hover[disabled]:focus,.cfdatepicker table tr td.active.disabled:hover[disabled]:hover,.cfdatepicker table tr td.active.disabled[disabled],.cfdatepicker table tr td.active.disabled[disabled].active,.cfdatepicker table tr td.active.disabled[disabled]:active,.cfdatepicker table tr td.active.disabled[disabled]:focus,.cfdatepicker table tr td.active.disabled[disabled]:hover,.cfdatepicker table tr td.active:hover.disabled,.cfdatepicker table tr td.active:hover.disabled.active,.cfdatepicker table tr td.active:hover.disabled:active,.cfdatepicker table tr td.active:hover.disabled:focus,.cfdatepicker table tr td.active:hover.disabled:hover,.cfdatepicker table tr td.active:hover[disabled],.cfdatepicker table tr td.active:hover[disabled].active,.cfdatepicker table tr td.active:hover[disabled]:active,.cfdatepicker table tr td.active:hover[disabled]:focus,.cfdatepicker table tr td.active:hover[disabled]:hover,.cfdatepicker table tr td.active[disabled],.cfdatepicker table tr td.active[disabled].active,.cfdatepicker table tr td.active[disabled]:active,.cfdatepicker table tr td.active[disabled]:focus,.cfdatepicker table tr td.active[disabled]:hover,fieldset[disabled] .cfdatepicker table tr td.active,fieldset[disabled] .cfdatepicker table tr td.active.active,fieldset[disabled] .cfdatepicker table tr td.active.disabled,fieldset[disabled] .cfdatepicker table tr td.active.disabled.active,fieldset[disabled] .cfdatepicker table tr td.active.disabled:active,fieldset[disabled] .cfdatepicker table tr td.active.disabled:focus,fieldset[disabled] .cfdatepicker table tr td.active.disabled:hover,fieldset[disabled] .cfdatepicker table tr td.active.disabled:hover.active,fieldset[disabled] .cfdatepicker table tr td.active.disabled:hover:active,fieldset[disabled] .cfdatepicker table tr td.active.disabled:hover:focus,fieldset[disabled] .cfdatepicker table tr td.active.disabled:hover:hover,fieldset[disabled] .cfdatepicker table tr td.active:active,fieldset[disabled] .cfdatepicker table tr td.active:focus,fieldset[disabled] .cfdatepicker table tr td.active:hover,fieldset[disabled] .cfdatepicker table tr td.active:hover.active,fieldset[disabled] .cfdatepicker table tr td.active:hover:active,fieldset[disabled] .cfdatepicker table tr td.active:hover:focus,fieldset[disabled] .cfdatepicker table tr td.active:hover:hover{background-color:#428bca;border-color:#357ebd}.cfdatepicker table tr td span{display:block;width:23%;height:54px;line-height:54px;float:left;margin:1%;cursor:pointer;border-radius:4px}.cfdatepicker table tr td span:hover{background:#eee}.cfdatepicker table tr td span.disabled,.cfdatepicker table tr td span.disabled:hover{background:0 0;color:#999;cursor:default}.cfdatepicker table tr td span.active,.cfdatepicker table tr td span.active.disabled,.cfdatepicker table tr td span.active.disabled:hover,.cfdatepicker table tr td span.active:hover{color:#fff;background-color:#428bca;border-color:#357ebd;text-shadow:0 -1px 0 rgba(0,0,0,.25)}.cfdatepicker table tr td span.active.active,.cfdatepicker table tr td span.active.disabled.active,.cfdatepicker table tr td span.active.disabled:active,.cfdatepicker table tr td span.active.disabled:focus,.cfdatepicker table tr td span.active.disabled:hover,.cfdatepicker table tr td span.active.disabled:hover.active,.cfdatepicker table tr td span.active.disabled:hover:active,.cfdatepicker table tr td span.active.disabled:hover:focus,.cfdatepicker table tr td span.active.disabled:hover:hover,.cfdatepicker table tr td span.active:active,.cfdatepicker table tr td span.active:focus,.cfdatepicker table tr td span.active:hover,.cfdatepicker table tr td span.active:hover.active,.cfdatepicker table tr td span.active:hover:active,.cfdatepicker table tr td span.active:hover:focus,.cfdatepicker table tr td span.active:hover:hover,.open .dropdown-toggle.cfdatepicker table tr td span.active,.open .dropdown-toggle.cfdatepicker table tr td span.active.disabled,.open .dropdown-toggle.cfdatepicker table tr td span.active.disabled:hover,.open .dropdown-toggle.cfdatepicker table tr td span.active:hover{color:#fff;background-color:#3276b1;border-color:#285e8e}.cfdatepicker table tr td span.active.active,.cfdatepicker table tr td span.active.disabled.active,.cfdatepicker table tr td span.active.disabled:active,.cfdatepicker table tr td span.active.disabled:hover.active,.cfdatepicker table tr td span.active.disabled:hover:active,.cfdatepicker table tr td span.active:active,.cfdatepicker table tr td span.active:hover.active,.cfdatepicker table tr td span.active:hover:active,.open .dropdown-toggle.cfdatepicker table tr td span.active,.open .dropdown-toggle.cfdatepicker table tr td span.active.disabled,.open .dropdown-toggle.cfdatepicker table tr td span.active.disabled:hover,.open .dropdown-toggle.cfdatepicker table tr td span.active:hover{background-image:none}.cfdatepicker table tr td span.active.disabled,.cfdatepicker table tr td span.active.disabled.active,.cfdatepicker table tr td span.active.disabled.disabled,.cfdatepicker table tr td span.active.disabled.disabled.active,.cfdatepicker table tr td span.active.disabled.disabled:active,.cfdatepicker table tr td span.active.disabled.disabled:focus,.cfdatepicker table tr td span.active.disabled.disabled:hover,.cfdatepicker table tr td span.active.disabled:active,.cfdatepicker table tr td span.active.disabled:focus,.cfdatepicker table tr td span.active.disabled:hover,.cfdatepicker table tr td span.active.disabled:hover.disabled,.cfdatepicker table tr td span.active.disabled:hover.disabled.active,.cfdatepicker table tr td span.active.disabled:hover.disabled:active,.cfdatepicker table tr td span.active.disabled:hover.disabled:focus,.cfdatepicker table tr td span.active.disabled:hover.disabled:hover,.cfdatepicker table tr td span.active.disabled:hover[disabled],.cfdatepicker table tr td span.active.disabled:hover[disabled].active,.cfdatepicker table tr td span.active.disabled:hover[disabled]:active,.cfdatepicker table tr td span.active.disabled:hover[disabled]:focus,.cfdatepicker table tr td span.active.disabled:hover[disabled]:hover,.cfdatepicker table tr td span.active.disabled[disabled],.cfdatepicker table tr td span.active.disabled[disabled].active,.cfdatepicker table tr td span.active.disabled[disabled]:active,.cfdatepicker table tr td span.active.disabled[disabled]:focus,.cfdatepicker table tr td span.active.disabled[disabled]:hover,.cfdatepicker table tr td span.active:hover.disabled,.cfdatepicker table tr td span.active:hover.disabled.active,.cfdatepicker table tr td span.active:hover.disabled:active,.cfdatepicker table tr td span.active:hover.disabled:focus,.cfdatepicker table tr td span.active:hover.disabled:hover,.cfdatepicker table tr td span.active:hover[disabled],.cfdatepicker table tr td span.active:hover[disabled].active,.cfdatepicker table tr td span.active:hover[disabled]:active,.cfdatepicker table tr td span.active:hover[disabled]:focus,.cfdatepicker table tr td span.active:hover[disabled]:hover,.cfdatepicker table tr td span.active[disabled],.cfdatepicker table tr td span.active[disabled].active,.cfdatepicker table tr td span.active[disabled]:active,.cfdatepicker table tr td span.active[disabled]:focus,.cfdatepicker table tr td span.active[disabled]:hover,fieldset[disabled] .cfdatepicker table tr td span.active,fieldset[disabled] .cfdatepicker table tr td span.active.active,fieldset[disabled] .cfdatepicker table tr td span.active.disabled,fieldset[disabled] .cfdatepicker table tr td span.active.disabled.active,fieldset[disabled] .cfdatepicker table tr td span.active.disabled:active,fieldset[disabled] .cfdatepicker table tr td span.active.disabled:focus,fieldset[disabled] .cfdatepicker table tr td span.active.disabled:hover,fieldset[disabled] .cfdatepicker table tr td span.active.disabled:hover.active,fieldset[disabled] .cfdatepicker table tr td span.active.disabled:hover:active,fieldset[disabled] .cfdatepicker table tr td span.active.disabled:hover:focus,fieldset[disabled] .cfdatepicker table tr td span.active.disabled:hover:hover,fieldset[disabled] .cfdatepicker table tr td span.active:active,fieldset[disabled] .cfdatepicker table tr td span.active:focus,fieldset[disabled] .cfdatepicker table tr td span.active:hover,fieldset[disabled] .cfdatepicker table tr td span.active:hover.active,fieldset[disabled] .cfdatepicker table tr td span.active:hover:active,fieldset[disabled] .cfdatepicker table tr td span.active:hover:focus,fieldset[disabled] .cfdatepicker table tr td span.active:hover:hover{background-color:#428bca;border-color:#357ebd}.cfdatepicker table tr td span.new,.cfdatepicker table tr td span.old{color:#999}.cfdatepicker th.cfdatepicker-switch{width:145px}.cfdatepicker tfoot tr th,.cfdatepicker thead tr:first-child th{cursor:pointer}.cfdatepicker tfoot tr th:hover,.cfdatepicker thead tr:first-child th:hover{background:#eee}.cfdatepicker .cw{font-size:10px;width:12px;padding:0 2px 0 5px;vertical-align:middle}.cfdatepicker thead tr:first-child th.cw{cursor:default;background-color:transparent}.input-group.date .input-group-addon i{cursor:pointer;width:16px;height:16px}.input-daterange input{text-align:center}.input-daterange input:first-child{border-radius:3px 0 0 3px}.input-daterange input:last-child{border-radius:0 3px 3px 0}.input-daterange .input-group-addon{width:auto;min-width:16px;padding:4px 5px;font-weight:400;line-height:1.42857143;text-align:center;text-shadow:0 1px 0 #fff;vertical-align:middle;background-color:#eee;border:solid #ccc;border-width:1px 0;margin-left:-5px;margin-right:-5px}.cfdatepicker.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;float:left;display:none;min-width:160px;list-style:none;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,.2);border-radius:5px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,.2);-moz-box-shadow:0 5px 10px rgba(0,0,0,.2);box-shadow:0 5px 10px rgba(0,0,0,.2);-webkit-background-clip:padding-box;-moz-background-clip:padding;background-clip:padding-box;color:#333;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px;line-height:1.42857143}.cfdatepicker.dropdown-menu td,.cfdatepicker.dropdown-menu th{padding:4px 5px}.image-thumb{margin-left:63px;padding:6px 0 6px 6px}.image-picker-content.image-thumb-lrg{margin-bottom:6px}.image-picker-side-bar{float:left;margin-left:-68px;width:62px;max-width:100%}.image-thumb-lrg .image-picker-side-bar{background:#F6F6F6;border:1px solid #DFDFDF;float:none;margin:0 0 6px;padding:6px 6px 2px;text-align:center;width:auto}.image-picker-side-bar>img{border:1px solid #DFDFDF;width:62px}.image-thumb-lrg .image-picker-side-bar>img{-moz-box-sizing:border-box;box-sizing:border-box;max-width:100%;text-align:center;width:auto}.image-thumb .image-picker-main-content{margin-right:6px}.button.image-picker-button{margin:7px 0 0;width:110px;display:inline-block}.button.button-primary.image-picker-button{float:right;margin-left:6px;width:80px}.image-picker-main-content select{width:100%}.image-picker-sizer:disabled{opacity:.7;box-shadow:none;color:#A1A1A1}.button-primary.image-picker-button.image-picker-button-solo,.button.image-picker-button.image-picker-button-solo{width:170px;margin-top:0}.button-primary.image-picker-button.image-picker-button-solo{margin-top:7px;margin-left:0;float:none}.image-thumb-lrg .button.image-picker-button.cu-image-picker.image-picker-button-solo{width:120px}.image-thumb-lrg .button.button-primary.image-picker-button.cu-image-remover.image-picker-button-solo{float:right;margin:0 0 0 6px;width:auto}.cf-toggle-switch .btn-group>.btn-group,.cf-toggle-switch .btn-toolbar .btn-group,.cf-toggle-switch .btn-toolbar .input-group{float:left}.image-thumb-lrg .button.button-primary.image-picker-button.cu-image-remover{width:45%}input.cu-image-picker-file-select[type=file]{display:none}.rangeslider,.rangeslider__fill{background:#e6e6e6;display:block;height:8px;width:100%;-webkit-border-radius:10px;-moz-border-radius:10px;-ms-border-radius:10px;-o-border-radius:10px;border-radius:10px}.rangeslider__handle,.toggle_option_row input{display:inline-block}.rangeslider{position:relative}.rangeslider--disabled{filter:alpha(Opacity=40);opacity:.4}.rangeslider__fill{background:#0f0;position:absolute;top:0}.rangeslider__handle{background:#fff;border:1px solid #ccc;cursor:pointer;width:18px;height:18px;position:absolute;top:-5px;-webkit-border-radius:50%;-moz-border-radius:50%;-ms-border-radius:50%;-o-border-radius:50%;border-radius:50%}input[type=range]:focus+.rangeslider .rangeslider__handle{-webkit-box-shadow:0 0 3px rgba(100,100,100,.9);-moz-box-shadow:0 0 3px rgba(100,100,100,.9);box-shadow:0 0 3px rgba(100,100,100,.9)}.recaptchatable #recaptcha_response_field{height:21px!important}.toggle_option_row{margin:4px 0}.toggle_option_row .dashicons-sort{cursor:move}.toggle_option_row .toggle_label_field,.toggle_option_row .toggle_value_field{width:136px;line-height:20px}.toggle_option_preview .button{border-radius:0;margin-right:-5px}.toggle_option_preview .button:first-child{border-radius:3px 0 0 3px}.toggle_option_preview .button:last-child{border-radius:0 3px 3px 0}.toggle_option_preview.toggle_vertical .button{width:100%}.toggle_option_preview.toggle_vertical .button:first-child{border-radius:3px 3px 0 0}.toggle_option_preview.toggle_vertical .button:last-child{border-radius:0 0 3px 3px}.cf-toggle-switch html{font-family:sans-serif}.cf-toggle-switch body{margin:0}.cf-toggle-switch article,.cf-toggle-switch aside,.cf-toggle-switch details,.cf-toggle-switch figcaption,.cf-toggle-switch figure,.cf-toggle-switch footer,.cf-toggle-switch header,.cf-toggle-switch hgroup,.cf-toggle-switch main,.cf-toggle-switch nav,.cf-toggle-switch section,.cf-toggle-switch summary{display:block}.cf-toggle-switch audio,.cf-toggle-switch canvas,.cf-toggle-switch progress,.cf-toggle-switch video{display:inline-block;vertical-align:baseline}.cf-toggle-switch audio:not([controls]){display:none;height:0}.cf-toggle-switch [hidden],.cf-toggle-switch template{display:none}.cf-toggle-switch a{background:0 0}.cf-toggle-switch a:active,.cf-toggle-switch a:hover{outline:0}.cf-toggle-switch abbr[title]{border-bottom:1px dotted}.cf-toggle-switch b,.cf-toggle-switch strong{font-weight:700}.cf-toggle-switch dfn{font-style:italic}.cf-toggle-switch h1{font-size:2em;margin:.67em 0}.cf-toggle-switch mark{background:#ff0;color:#000}.cf-toggle-switch .btn,.cf-toggle-switch .btn-danger.active,.cf-toggle-switch .btn-danger:active,.cf-toggle-switch .btn-default.active,.cf-toggle-switch .btn-default:active,.cf-toggle-switch .btn-info.active,.cf-toggle-switch .btn-info:active,.cf-toggle-switch .btn-primary.active,.cf-toggle-switch .btn-primary:active,.cf-toggle-switch .btn-success.active,.cf-toggle-switch .btn-success:active,.cf-toggle-switch .btn-warning.active,.cf-toggle-switch .btn-warning:active,.cf-toggle-switch .open .dropdown-toggle.btn-danger,.cf-toggle-switch .open .dropdown-toggle.btn-default,.cf-toggle-switch .open .dropdown-toggle.btn-info,.cf-toggle-switch .open .dropdown-toggle.btn-primary,.cf-toggle-switch .open .dropdown-toggle.btn-success,.cf-toggle-switch .open .dropdown-toggle.btn-warning{background-image:none}.cf-toggle-switch small{font-size:80%}.cf-toggle-switch sub,.cf-toggle-switch sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.cf-toggle-switch sup{top:-.5em}.cf-toggle-switch sub{bottom:-.25em}.cf-toggle-switch img{border:0}.cf-toggle-switch figure{margin:1em 40px}.cf-toggle-switch hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}.cf-toggle-switch pre{overflow:auto}.cf-toggle-switch code,.cf-toggle-switch kbd,.cf-toggle-switch pre,.cf-toggle-switch samp{font-family:monospace,monospace;font-size:1em}.cf-toggle-switch button,.cf-toggle-switch input,.cf-toggle-switch optgroup,.cf-toggle-switch select,.cf-toggle-switch textarea{color:inherit;font:inherit;margin:0}.cf-toggle-switch button{overflow:visible}.cf-toggle-switch button,.cf-toggle-switch html input[type=button],.cf-toggle-switch input[type=reset],.cf-toggle-switch input[type=submit]{-webkit-appearance:button;cursor:pointer}.cf-toggle-switch button[disabled],.cf-toggle-switch html input[disabled]{cursor:default}.cf-toggle-switch button::-moz-focus-inner,.cf-toggle-switch input::-moz-focus-inner{border:0;padding:0}.cf-toggle-switch input{line-height:normal}.cf-toggle-switch input[type=checkbox],.cf-toggle-switch input[type=radio]{box-sizing:border-box;padding:0}.cf-toggle-switch input[type=number]::-webkit-inner-spin-button,.cf-toggle-switch input[type=number]::-webkit-outer-spin-button{height:auto}.cf-toggle-switch input[type=search]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}.cf-toggle-switch input[type=search]::-webkit-search-cancel-button,.cf-toggle-switch input[type=search]::-webkit-search-decoration{-webkit-appearance:none}.cf-toggle-switch fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}.cf-toggle-switch legend{border:0;padding:0}.cf-toggle-switch textarea{overflow:auto}.cf-toggle-switch optgroup{font-weight:700}.cf-toggle-switch table{border-collapse:collapse;border-spacing:0}.cf-toggle-switch td,.cf-toggle-switch th{padding:0}.cf-toggle-switch .btn{display:inline-block;margin-bottom:0;font-weight:400;text-align:center;vertical-align:middle;cursor:pointer;border:1px solid transparent;white-space:nowrap;padding:6px 12px;font-size:14px;line-height:1.42857143;border-radius:4px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.cf-toggle-switch .btn.active:focus,.cf-toggle-switch .btn:active:focus,.cf-toggle-switch .btn:focus{outline:dotted thin;outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px}.cf-toggle-switch .btn-group .dropdown-toggle:active,.cf-toggle-switch .btn-group-vertical>.btn:focus,.cf-toggle-switch .btn-group.open .dropdown-toggle,.cf-toggle-switch .btn-group>.btn:focus{outline:0}.cf-toggle-switch .btn:focus,.cf-toggle-switch .btn:hover{color:#333;text-decoration:none}.cf-toggle-switch .btn.active,.cf-toggle-switch .btn:active{outline:0;background-image:none;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.cf-toggle-switch .btn.disabled,.cf-toggle-switch .btn[disabled],.cf-toggle-switch fieldset[disabled] .btn{cursor:not-allowed;pointer-events:none;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none}.cf-toggle-switch .btn-default{color:#333;background-color:#fff;border-color:#ccc}.cf-toggle-switch .btn-default.active,.cf-toggle-switch .btn-default:active,.cf-toggle-switch .btn-default:focus,.cf-toggle-switch .btn-default:hover,.cf-toggle-switch .open .dropdown-toggle.btn-default{color:#333;background-color:#ebebeb;border-color:#adadad}.cf-toggle-switch .btn-default.disabled,.cf-toggle-switch .btn-default.disabled.active,.cf-toggle-switch .btn-default.disabled:active,.cf-toggle-switch .btn-default.disabled:focus,.cf-toggle-switch .btn-default.disabled:hover,.cf-toggle-switch .btn-default[disabled],.cf-toggle-switch .btn-default[disabled].active,.cf-toggle-switch .btn-default[disabled]:active,.cf-toggle-switch .btn-default[disabled]:focus,.cf-toggle-switch .btn-default[disabled]:hover,.cf-toggle-switch fieldset[disabled] .btn-default,.cf-toggle-switch fieldset[disabled] .btn-default.active,.cf-toggle-switch fieldset[disabled] .btn-default:active,.cf-toggle-switch fieldset[disabled] .btn-default:focus,.cf-toggle-switch fieldset[disabled] .btn-default:hover{background-color:#fff;border-color:#ccc}.cf-toggle-switch .btn-default .badge{color:#fff;background-color:#333}.cf-toggle-switch .btn-primary{color:#fff;background-color:#428bca;border-color:#357ebd}.cf-toggle-switch .btn-primary.active,.cf-toggle-switch .btn-primary:active,.cf-toggle-switch .btn-primary:focus,.cf-toggle-switch .btn-primary:hover,.cf-toggle-switch .open .dropdown-toggle.btn-primary{color:#fff;background-color:#3276b1;border-color:#285e8e}.cf-toggle-switch .btn-primary.disabled,.cf-toggle-switch .btn-primary.disabled.active,.cf-toggle-switch .btn-primary.disabled:active,.cf-toggle-switch .btn-primary.disabled:focus,.cf-toggle-switch .btn-primary.disabled:hover,.cf-toggle-switch .btn-primary[disabled],.cf-toggle-switch .btn-primary[disabled].active,.cf-toggle-switch .btn-primary[disabled]:active,.cf-toggle-switch .btn-primary[disabled]:focus,.cf-toggle-switch .btn-primary[disabled]:hover,.cf-toggle-switch fieldset[disabled] .btn-primary,.cf-toggle-switch fieldset[disabled] .btn-primary.active,.cf-toggle-switch fieldset[disabled] .btn-primary:active,.cf-toggle-switch fieldset[disabled] .btn-primary:focus,.cf-toggle-switch fieldset[disabled] .btn-primary:hover{background-color:#428bca;border-color:#357ebd}.cf-toggle-switch .btn-primary .badge{color:#428bca;background-color:#fff}.cf-toggle-switch .btn-success{color:#fff;background-color:#5cb85c;border-color:#4cae4c}.cf-toggle-switch .btn-success.active,.cf-toggle-switch .btn-success:active,.cf-toggle-switch .btn-success:focus,.cf-toggle-switch .btn-success:hover,.cf-toggle-switch .open .dropdown-toggle.btn-success{color:#fff;background-color:#47a447;border-color:#398439}.cf-toggle-switch .btn-success.disabled,.cf-toggle-switch .btn-success.disabled.active,.cf-toggle-switch .btn-success.disabled:active,.cf-toggle-switch .btn-success.disabled:focus,.cf-toggle-switch .btn-success.disabled:hover,.cf-toggle-switch .btn-success[disabled],.cf-toggle-switch .btn-success[disabled].active,.cf-toggle-switch .btn-success[disabled]:active,.cf-toggle-switch .btn-success[disabled]:focus,.cf-toggle-switch .btn-success[disabled]:hover,.cf-toggle-switch fieldset[disabled] .btn-success,.cf-toggle-switch fieldset[disabled] .btn-success.active,.cf-toggle-switch fieldset[disabled] .btn-success:active,.cf-toggle-switch fieldset[disabled] .btn-success:focus,.cf-toggle-switch fieldset[disabled] .btn-success:hover{background-color:#5cb85c;border-color:#4cae4c}.cf-toggle-switch .btn-success .badge{color:#5cb85c;background-color:#fff}.cf-toggle-switch .btn-info{color:#fff;background-color:#5bc0de;border-color:#46b8da}.cf-toggle-switch .btn-info.active,.cf-toggle-switch .btn-info:active,.cf-toggle-switch .btn-info:focus,.cf-toggle-switch .btn-info:hover,.cf-toggle-switch .open .dropdown-toggle.btn-info{color:#fff;background-color:#39b3d7;border-color:#269abc}.cf-toggle-switch .btn-info.disabled,.cf-toggle-switch .btn-info.disabled.active,.cf-toggle-switch .btn-info.disabled:active,.cf-toggle-switch .btn-info.disabled:focus,.cf-toggle-switch .btn-info.disabled:hover,.cf-toggle-switch .btn-info[disabled],.cf-toggle-switch .btn-info[disabled].active,.cf-toggle-switch .btn-info[disabled]:active,.cf-toggle-switch .btn-info[disabled]:focus,.cf-toggle-switch .btn-info[disabled]:hover,.cf-toggle-switch fieldset[disabled] .btn-info,.cf-toggle-switch fieldset[disabled] .btn-info.active,.cf-toggle-switch fieldset[disabled] .btn-info:active,.cf-toggle-switch fieldset[disabled] .btn-info:focus,.cf-toggle-switch fieldset[disabled] .btn-info:hover{background-color:#5bc0de;border-color:#46b8da}.cf-toggle-switch .btn-info .badge{color:#5bc0de;background-color:#fff}.cf-toggle-switch .btn-warning{color:#fff;background-color:#f0ad4e;border-color:#eea236}.cf-toggle-switch .btn-warning.active,.cf-toggle-switch .btn-warning:active,.cf-toggle-switch .btn-warning:focus,.cf-toggle-switch .btn-warning:hover,.cf-toggle-switch .open .dropdown-toggle.btn-warning{color:#fff;background-color:#ed9c28;border-color:#d58512}.cf-toggle-switch .btn-warning.disabled,.cf-toggle-switch .btn-warning.disabled.active,.cf-toggle-switch .btn-warning.disabled:active,.cf-toggle-switch .btn-warning.disabled:focus,.cf-toggle-switch .btn-warning.disabled:hover,.cf-toggle-switch .btn-warning[disabled],.cf-toggle-switch .btn-warning[disabled].active,.cf-toggle-switch .btn-warning[disabled]:active,.cf-toggle-switch .btn-warning[disabled]:focus,.cf-toggle-switch .btn-warning[disabled]:hover,.cf-toggle-switch fieldset[disabled] .btn-warning,.cf-toggle-switch fieldset[disabled] .btn-warning.active,.cf-toggle-switch fieldset[disabled] .btn-warning:active,.cf-toggle-switch fieldset[disabled] .btn-warning:focus,.cf-toggle-switch fieldset[disabled] .btn-warning:hover{background-color:#f0ad4e;border-color:#eea236}.cf-toggle-switch .btn-warning .badge{color:#f0ad4e;background-color:#fff}.cf-toggle-switch .btn-danger{color:#fff;background-color:#d9534f;border-color:#d43f3a}.cf-toggle-switch .btn-danger.active,.cf-toggle-switch .btn-danger:active,.cf-toggle-switch .btn-danger:focus,.cf-toggle-switch .btn-danger:hover,.cf-toggle-switch .open .dropdown-toggle.btn-danger{color:#fff;background-color:#d2322d;border-color:#ac2925}.cf-toggle-switch .btn-danger.disabled,.cf-toggle-switch .btn-danger.disabled.active,.cf-toggle-switch .btn-danger.disabled:active,.cf-toggle-switch .btn-danger.disabled:focus,.cf-toggle-switch .btn-danger.disabled:hover,.cf-toggle-switch .btn-danger[disabled],.cf-toggle-switch .btn-danger[disabled].active,.cf-toggle-switch .btn-danger[disabled]:active,.cf-toggle-switch .btn-danger[disabled]:focus,.cf-toggle-switch .btn-danger[disabled]:hover,.cf-toggle-switch fieldset[disabled] .btn-danger,.cf-toggle-switch fieldset[disabled] .btn-danger.active,.cf-toggle-switch fieldset[disabled] .btn-danger:active,.cf-toggle-switch fieldset[disabled] .btn-danger:focus,.cf-toggle-switch fieldset[disabled] .btn-danger:hover{background-color:#d9534f;border-color:#d43f3a}.cf-toggle-switch .btn-danger .badge{color:#d9534f;background-color:#fff}.cf-toggle-switch .btn-link{color:#428bca;font-weight:400;cursor:pointer;border-radius:0}.cf-toggle-switch .btn-link,.cf-toggle-switch .btn-link:active,.cf-toggle-switch .btn-link[disabled],.cf-toggle-switch fieldset[disabled] .btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.cf-toggle-switch .btn-link,.cf-toggle-switch .btn-link:active,.cf-toggle-switch .btn-link:focus,.cf-toggle-switch .btn-link:hover{border-color:transparent}.cf-toggle-switch .btn-link:focus,.cf-toggle-switch .btn-link:hover{color:#2a6496;text-decoration:underline;background-color:transparent}.cf-toggle-switch .btn-link[disabled]:focus,.cf-toggle-switch .btn-link[disabled]:hover,.cf-toggle-switch fieldset[disabled] .btn-link:focus,.cf-toggle-switch fieldset[disabled] .btn-link:hover{color:#999;text-decoration:none}.cf-toggle-switch .btn-group-lg>.btn,.cf-toggle-switch .btn-lg{padding:10px 16px;font-size:18px;line-height:1.33;border-radius:6px}.cf-toggle-switch .btn-group-sm>.btn,.cf-toggle-switch .btn-sm{padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.cf-toggle-switch .btn-group-xs>.btn,.cf-toggle-switch .btn-xs{padding:1px 5px;font-size:12px;line-height:1.5;border-radius:3px}.cf-toggle-switch .btn-group-vertical>.btn:not(:first-child):not(:last-child),.cf-toggle-switch .btn-group>.btn-group:not(:first-child):not(:last-child)>.btn,.cf-toggle-switch .btn-group>.btn:not(:first-child):not(:last-child):not(.dropdown-toggle){border-radius:0}.cf-toggle-switch .btn-block{display:block;width:100%;padding-left:0;padding-right:0}.cf-toggle-switch .btn-block+.btn-block{margin-top:5px}.cf-toggle-switch input[type=button].btn-block,.cf-toggle-switch input[type=reset].btn-block,.cf-toggle-switch input[type=submit].btn-block{width:100%}.cf-toggle-switch .btn-group,.cf-toggle-switch .btn-group-vertical{position:relative;display:inline-block;vertical-align:middle}.cf-toggle-switch .btn-group-vertical>.btn,.cf-toggle-switch .btn-group>.btn{position:relative;float:left}.cf-toggle-switch .btn-group-vertical>.btn.active,.cf-toggle-switch .btn-group-vertical>.btn:active,.cf-toggle-switch .btn-group-vertical>.btn:focus,.cf-toggle-switch .btn-group-vertical>.btn:hover,.cf-toggle-switch .btn-group>.btn.active,.cf-toggle-switch .btn-group>.btn:active,.cf-toggle-switch .btn-group>.btn:focus,.cf-toggle-switch .btn-group>.btn:hover{z-index:2}.cf-toggle-switch .btn-group .btn+.btn,.cf-toggle-switch .btn-group .btn+.btn-group,.cf-toggle-switch .btn-group .btn-group+.btn,.cf-toggle-switch .btn-group .btn-group+.btn-group{margin-left:-1px}.cf-toggle-switch .btn-toolbar{margin-left:-5px}.cf-toggle-switch .btn-toolbar>.btn,.cf-toggle-switch .btn-toolbar>.btn-group,.cf-toggle-switch .btn-toolbar>.input-group{margin-left:5px}.cf-toggle-switch .btn .caret,.cf-toggle-switch .btn-group>.btn:first-child{margin-left:0}.cf-toggle-switch .btn-group>.btn:first-child:not(:last-child):not(.dropdown-toggle){border-bottom-right-radius:0;border-top-right-radius:0}.cf-toggle-switch .btn-group>.btn:last-child:not(:first-child),.cf-toggle-switch .btn-group>.dropdown-toggle:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.cf-toggle-switch .btn-group>.btn-group:first-child>.btn:last-child,.cf-toggle-switch .btn-group>.btn-group:first-child>.dropdown-toggle{border-bottom-right-radius:0;border-top-right-radius:0}.cf-toggle-switch .btn-group>.btn-group:last-child>.btn:first-child{border-bottom-left-radius:0;border-top-left-radius:0}.cf-toggle-switch .btn-group>.btn+.dropdown-toggle{padding-left:8px;padding-right:8px}.cf-toggle-switch .btn-group>.btn-lg+.dropdown-toggle{padding-left:12px;padding-right:12px}.cf-toggle-switch .btn-group.open .dropdown-toggle{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.cf-toggle-switch .btn-group.open .dropdown-toggle.btn-link{-webkit-box-shadow:none;box-shadow:none}.cf-toggle-switch .btn-lg .caret{border-width:5px 5px 0}.cf-toggle-switch .dropup .btn-lg .caret{border-width:0 5px 5px}.cf-toggle-switch .btn-group-vertical>.btn,.cf-toggle-switch .btn-group-vertical>.btn-group,.cf-toggle-switch .btn-group-vertical>.btn-group>.btn{display:block;float:none;width:100%;max-width:100%}.cf-toggle-switch .btn-group-vertical>.btn-group>.btn{float:none}.cf-toggle-switch .btn-group-vertical>.btn+.btn,.cf-toggle-switch .btn-group-vertical>.btn+.btn-group,.cf-toggle-switch .btn-group-vertical>.btn-group+.btn,.cf-toggle-switch .btn-group-vertical>.btn-group+.btn-group{margin-top:-1px;margin-left:0}.cf-toggle-switch .btn-group-vertical>.btn:first-child:not(:last-child){border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.cf-toggle-switch .btn-group-vertical>.btn:last-child:not(:first-child){border-bottom-left-radius:4px;border-top-right-radius:0;border-top-left-radius:0}.cf-toggle-switch .btn-group-vertical>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.cf-toggle-switch .btn-group-vertical>.btn-group:first-child:not(:last-child)>.btn:last-child,.cf-toggle-switch .btn-group-vertical>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-bottom-right-radius:0;border-bottom-left-radius:0}.cf-toggle-switch .btn-group-vertical>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-right-radius:0;border-top-left-radius:0}.cf-toggle-switch .btn-group-justified{display:table;width:100%;table-layout:fixed;border-collapse:separate}.cf-toggle-switch .btn-group-justified>.btn,.cf-toggle-switch .btn-group-justified>.btn-group{float:none;display:table-cell;width:1%}.cf-toggle-switch .btn-group-justified>.btn-group .btn{width:100%}.cf-toggle-switch [data-toggle=buttons]>.btn>input[type=checkbox],.cf-toggle-switch [data-toggle=buttons]>.btn>input[type=radio]{display:none}.cf-toggle-switch .btn-group-vertical>.btn-group:after,.cf-toggle-switch .btn-group-vertical>.btn-group:before,.cf-toggle-switch .btn-toolbar:after,.cf-toggle-switch .btn-toolbar:before,.cf-toggle-switch .clearfix:after,.cf-toggle-switch .clearfix:before{content:" ";display:table}.cf-toggle-switch .btn-group-vertical>.btn-group:after,.cf-toggle-switch .btn-toolbar:after,.cf-toggle-switch .clearfix:after{clear:both}.cf-toggle-switch .center-block{display:block;margin-left:auto;margin-right:auto}.cf-toggle-switch .pull-right{float:right!important}.cf-toggle-switch .pull-left{float:left!important}.cf-toggle-switch .hide{display:none!important}.cf-toggle-switch .show{display:block!important}.cf-toggle-switch .invisible{visibility:hidden}.cf-toggle-switch .text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.cf-toggle-switch .hidden{display:none!important;visibility:hidden!important}.cf-toggle-switch .affix{position:fixed}@-ms-viewport{width:device-width}.cf-toggle-switch .visible-lg,.cf-toggle-switch .visible-md,.cf-toggle-switch .visible-print,.cf-toggle-switch .visible-sm,.cf-toggle-switch .visible-xs{display:none!important}@media (max-width:767px){.cf-toggle-switch .visible-xs{display:block!important}.cf-toggle-switch table.visible-xs{display:table}.cf-toggle-switch tr.visible-xs{display:table-row!important}.cf-toggle-switch td.visible-xs,.cf-toggle-switch th.visible-xs{display:table-cell!important}}@media (min-width:768px) and (max-width:991px){.cf-toggle-switch .visible-sm{display:block!important}.cf-toggle-switch table.visible-sm{display:table}.cf-toggle-switch tr.visible-sm{display:table-row!important}.cf-toggle-switch td.visible-sm,.cf-toggle-switch th.visible-sm{display:table-cell!important}}@media (min-width:992px) and (max-width:1199px){.cf-toggle-switch .visible-md{display:block!important}.cf-toggle-switch table.visible-md{display:table}.cf-toggle-switch tr.visible-md{display:table-row!important}.cf-toggle-switch td.visible-md,.cf-toggle-switch th.visible-md{display:table-cell!important}}@media (min-width:1200px){.cf-toggle-switch .visible-lg{display:block!important}.cf-toggle-switch table.visible-lg{display:table}.cf-toggle-switch tr.visible-lg{display:table-row!important}.cf-toggle-switch td.visible-lg,.cf-toggle-switch th.visible-lg{display:table-cell!important}.cf-toggle-switch .hidden-lg{display:none!important}}@media (max-width:767px){.cf-toggle-switch .hidden-xs{display:none!important}}@media (min-width:768px) and (max-width:991px){.cf-toggle-switch .hidden-sm{display:none!important}}@media (min-width:992px) and (max-width:1199px){.cf-toggle-switch .hidden-md{display:none!important}}@media print{.cf-toggle-switch .visible-print{display:block!important}.cf-toggle-switch table.visible-print{display:table}.cf-toggle-switch tr.visible-print{display:table-row!important}.cf-toggle-switch td.visible-print,.cf-toggle-switch th.visible-print{display:table-cell!important}.cf-toggle-switch .hidden-print{display:none!important}}.cf-toggle-group-buttons{width:100%;clear:both}input.form-control.parsley-success,select.form-control.parsley-success,textarea.form-control.parsley-success{color:#468847;background-color:#DFF0D8;border-color:#D6E9C6}input.form-control.parsley-error,select.form-control.parsley-error,textarea.form-control.parsley-error{color:#B94A48;background-color:#F2DEDE;border-color:#EED3D7}.form-control.parsley-errors-list{margin:2px 0 3px;padding:0;list-style-type:none;font-size:.9em;line-height:.9em;opacity:0;color:#468847;transition:all .3s ease-in;-o-transition:all .3s ease-in;-moz-transition:all .3s ease-in;-webkit-transition:all .3s ease-in}.form-control.parsley-errors-list.filled{opacity:1}.breadcrumb a.has-error{color:red}.form-group .parsley-errors-list.filled,.form-group .parsley-errors-list.filled .parsley-type{list-style:none}.caldera-grid .cf-multi-uploader-list>ul{list-style:none;margin:0 0 12px;padding:0}.caldera-grid .cf-multi-uploader-list>ul>li{margin:0;padding:0 0 22px;position:relative;clear:both}.caldera-grid .cf-multi-uploader-list>ul>li .file-name{display:inline-block;font-weight:700;left:16px;right:0;overflow:hidden;position:absolute;text-overflow:ellipsis;white-space:nowrap}.caldera-grid .cf-multi-uploader-list>ul>li .file-name.file-uploaded{left:0}.caldera-grid .cf-multi-uploader-list>ul>li .file-size{float:right}.caldera-grid .cf-multi-uploader-list>ul>li .file-type{float:left}.caldera-grid .cf-multi-uploader-list>ul>li .file-error{clear:both;display:block}.caldera-grid .cf-multi-uploader-list>ul>li .cf-file-remove{color:#cf0000;text-decoration:none;border:0}.caldera-grid .cf-multi-uploader-list>ul>li.has-error .bar{background-color:#cf0000!important}.caldera-grid .cf-multi-uploader-list>ul>li.has-error{color:#cf0000}.has-error.cf-toggle-switch .cf-toggle-group-buttons>a{background-color:#f2dede;border-color:#dd4b39}.cfdatepicker{z-index:10011!important}
|
assets/build/js/admin.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
function CalderaFormsButtonPulse(a){var b,c,d=!1;b=function(){a.animate({opacity:.25},500,function(){a.animate({opacity:1},500)})},this.startPulse=function(){!1===d&&(c=setInterval(function(){b()},1e3))},this.stopPulse=function(){d=!0,clearInterval(c)}}var baldrickTriggers,loop_loader;jQuery(document).ready(function(a){var b;b="object"==typeof CF_ADMIN?CF_ADMIN.adminAjax:ajaxurl,baldrickTriggers=function(){a(".ajax-trigger").baldrick({request:b,method:"POST",before:function(b,c){var d=a(b),e=a("#cf_toolbar_actions"),f=e.parent().find('[name="_wp_http_referer"]');if(e.length&&f.length&&(d.data("cf_toolbar_actions",e.val()),d.data("_wp_http_referer",f.val())),d.data("trigger")){c.preventDefault();var g=a(d.data("trigger"));return g.trigger(g.data("event")?g.data("event"):"click"),!1}},complete:function(){a(".init_field_type[data-type]").each(function(b,c){var d=a(c);"function"==typeof window[d.data("type")+"_init"]&&window[d.data("type")+"_init"](d.prop("id"),d[0])})}})},loop_loader=function(a,b){return{__id__:Math.round(1e7*Math.random())}},baldrickTriggers(),a("body").on("click",".modal-side-tab",function(b){b.preventDefault();var c=a(this),d=c.closest(".caldera-modal-body"),e=d.find(".tab-detail-panel"),f=a(c.attr("href"));d.find(".modal-side-tab.active").removeClass("active"),c.addClass("active"),e.hide(),f.show()}),a("body").on("click",".caldera-group-remover",function(b){b.preventDefault();var c=a(this),d=c.closest(".caldera-repeater-group");d.slideUp(200,function(){d.remove()})}),a("body").on("click",".form-delete a.form-control",function(b){var c=a(this);confirm(c.data("confirm"))||b.preventDefault()}),a("body").on("keyup change",'[data-format="key"]',function(a){this.value=this.value.replace(/[^a-z0-9]/gi,"-").toLowerCase()}),a("body").on("keyup change",'[data-format="slug"]',function(a){this.value=this.value.replace(/[^a-z0-9]/gi,"_").toLowerCase()}),a(window).on("resize",function(){var b=a("#cf_forms_toggle"),c=a(".form-panel-wrap");window.innerWidth<=1420&&b.is(":visible")&&c.is(":visible")&&b.trigger("click")});var c;void 0!=typeof CF_CLIPPY&&"object"==typeof CF_CLIPPY&&(c=new CalderaFormsAdminClippys2("caldera-forms-clippy",CF_CLIPPY,a),c.init()),a(".cf-entry-viewer-link").on("click",function(){"object"==typeof c&&c.remove()})}),function(a){"use strict";var b=function(a,b){this.init("tooltip",a,b)};b.prototype={constructor:b,init:function(b,c,d){var e,f;this.type=b,this.$element=a(c),this.options=this.getOptions(d),this.enabled=!0,"click"==this.options.trigger?this.$element.on("click."+this.type,this.options.selector,a.proxy(this.toggle,this)):"manual"!=this.options.trigger&&(e="hover"==this.options.trigger?"mouseenter":"focus",f="hover"==this.options.trigger?"mouseleave":"blur",this.$element.on(e+"."+this.type,this.options.selector,a.proxy(this.enter,this)),this.$element.on(f+"."+this.type,this.options.selector,a.proxy(this.leave,this))),this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},getOptions:function(b){return b=a.extend({},a.fn[this.type].defaults,b,this.$element.data()),b.delay&&"number"==typeof b.delay&&(b.delay={show:b.delay,hide:b.delay}),b},enter:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);return c.options.delay&&c.options.delay.show?(clearTimeout(this.timeout),c.hoverState="in",void(this.timeout=setTimeout(function(){"in"==c.hoverState&&c.show()},c.options.delay.show))):c.show()},leave:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);return this.timeout&&clearTimeout(this.timeout),c.options.delay&&c.options.delay.hide?(c.hoverState="out",void(this.timeout=setTimeout(function(){"out"==c.hoverState&&c.hide()},c.options.delay.hide))):c.hide()},show:function(){var a,b,c,d,e,f,g;if(this.hasContent()&&this.enabled){switch(a=this.tip(),this.setContent(),this.options.animation&&a.addClass("fade"),f="function"==typeof this.options.placement?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement,b=/in/.test(f),a.detach().css({top:0,left:0,display:"block"}).insertAfter(this.$element),c=this.getPosition(b),d=a[0].offsetWidth,e=a[0].offsetHeight,b?f.split(" ")[1]:f){case"bottom":g={top:c.top+c.height,left:c.left+c.width/2-d/2};break;case"top":g={top:c.top-e,left:c.left+c.width/2-d/2};break;case"left":g={top:c.top+c.height/2-e/2,left:c.left-d};break;case"right":g={top:c.top+c.height/2-e/2,left:c.left+c.width}}a.offset(g).addClass(f).addClass("in")}},setContent:function(){var a=this.tip(),b=this.getTitle();a.find(".tooltip-inner")[this.options.html?"html":"text"](b),a.removeClass("fade in top bottom left right")},hide:function(){var b=this.tip();return b.removeClass("in"),a.support.transition&&this.$tip.hasClass("fade")?function(){var c=setTimeout(function(){b.off(a.support.transition.end).detach()},500);b.one(a.support.transition.end,function(){clearTimeout(c),b.detach()})}():b.detach(),this},fixTitle:function(){var a=this.$element;(a.attr("title")||"string"!=typeof a.attr("data-original-title"))&&a.attr("data-original-title",a.attr("title")||"").attr("title","")},hasContent:function(){return this.getTitle()},getPosition:function(b){return a.extend({},b?{top:0,left:0}:this.$element.offset(),{width:this.$element[0].offsetWidth,height:this.$element[0].offsetHeight})},getTitle:function(){var a=this.$element,b=this.options;return a.attr("data-original-title")||("function"==typeof b.title?b.title.call(a[0]):b.title)},tip:function(){return this.$tip=this.$tip||a(this.options.template)},validate:function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled},toggle:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);c[c.tip().hasClass("in")?"hide":"show"]()},destroy:function(){this.hide().$element.off("."+this.type).removeData(this.type)}};var c=a.fn.tooltip;a.fn.tooltip=function(c){return this.each(function(){var d=a(this),e=d.data("tooltip"),f="object"==typeof c&&c;e||d.data("tooltip",e=new b(this,f)),"string"==typeof c&&e[c]()})},a.fn.tooltip.Constructor=b,a.fn.tooltip.defaults={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover",title:"",delay:0,html:!1},a.fn.tooltip.noConflict=function(){return a.fn.tooltip=c,this}}(window.jQuery);var baldrickTriggers,loop_loader;jQuery(document).ready(function(a){baldrickTriggers=function(){a(".ajax-trigger").baldrick({request:ajaxurl,method:"POST",before:function(b,c){var d=a(b),e=a("#cf_toolbar_actions"),f=e.parent().find('[name="_wp_http_referer"]');if(e.length&&f.length&&(d.data("cf_toolbar_actions",e.val()),d.data("_wp_http_referer",f.val())),d.data("trigger")){c.preventDefault();var g=a(d.data("trigger"));return g.trigger(g.data("event")?g.data("event"):"click"),!1}},complete:function(){a(".init_field_type[data-type]").each(function(b,c){var d=a(c);"function"==typeof window[d.data("type")+"_init"]&&window[d.data("type")+"_init"](d.prop("id"),d[0])})}})},loop_loader=function(a,b){return{__id__:Math.round(1e7*Math.random())}},baldrickTriggers(),a("body").on("click",".modal-side-tab",function(b){b.preventDefault();var c=a(this),d=c.closest(".caldera-modal-body"),e=d.find(".tab-detail-panel"),f=a(c.attr("href"));d.find(".modal-side-tab.active").removeClass("active"),c.addClass("active"),e.hide(),f.show()}),a("body").on("click",".caldera-group-remover",function(b){b.preventDefault();var c=a(this),d=c.closest(".caldera-repeater-group");d.slideUp(200,function(){d.remove()})}),a("body").on("click",".form-delete a.form-control",function(b){var c=a(this);confirm(c.data("confirm"))||b.preventDefault()}),a("body").on("keyup change",'[data-format="key"]',function(a){this.value=this.value.replace(/[^a-z0-9]/gi,"-").toLowerCase()}),a("body").on("keyup change",'[data-format="slug"]',function(a){this.value=this.value.replace(/[^a-z0-9]/gi,"_").toLowerCase()}),a(window).on("resize",function(){var b=a("#cf_forms_toggle"),c=a(".form-panel-wrap");window.innerWidth<=1420&&b.is(":visible")&&c.is(":visible")&&b.trigger("click")});var b;void 0!=typeof CF_CLIPPY&&"object"==typeof CF_CLIPPY&&(b=new CalderaFormsAdminClippys(a(document.getElementById("caldera-forms-clippy")),CF_CLIPPY,a),b.init()),a(".cf-entry-viewer-link").on("click",function(){"object"==typeof b&&b.remove()})});
|
1 |
+
function CalderaFormsButtonPulse(a){var b,c,d=!1;b=function(){a.animate({opacity:.25},500,function(){a.animate({opacity:1},500)})},this.startPulse=function(){!1===d&&(c=setInterval(function(){b()},1e3))},this.stopPulse=function(){d=!0,clearInterval(c)}}var baldrickTriggers,loop_loader;jQuery(document).ready(function(a){var b;b="object"==typeof CF_ADMIN?CF_ADMIN.adminAjax:ajaxurl,baldrickTriggers=function(){a(".ajax-trigger").baldrick({request:b,method:"POST",before:function(b,c){var d=a(b),e=a("#cf_toolbar_actions"),f=e.parent().find('[name="_wp_http_referer"]');if(e.length&&f.length&&(d.data("cf_toolbar_actions",e.val()),d.data("_wp_http_referer",f.val())),d.data("trigger")){c.preventDefault();var g=a(d.data("trigger"));return g.trigger(g.data("event")?g.data("event"):"click"),!1}},complete:function(){a(".init_field_type[data-type]").each(function(b,c){var d=a(c);"function"==typeof window[d.data("type")+"_init"]&&window[d.data("type")+"_init"](d.prop("id"),d[0])})}})},loop_loader=function(a,b){return{__id__:Math.round(1e7*Math.random())}},baldrickTriggers(),a("body").on("click",".modal-side-tab",function(b){b.preventDefault();var c=a(this),d=c.closest(".caldera-modal-body"),e=d.find(".tab-detail-panel"),f=a(c.attr("href"));d.find(".modal-side-tab.active").removeClass("active"),c.addClass("active"),e.hide(),f.show()}),a("body").on("click",".caldera-group-remover",function(b){b.preventDefault();var c=a(this),d=c.closest(".caldera-repeater-group");d.slideUp(200,function(){d.remove()})}),a("body").on("click",".form-delete a.form-control",function(b){var c=a(this);confirm(c.data("confirm"))||b.preventDefault()}),a("body").on("keyup change",'[data-format="key"]',function(a){this.value=this.value.replace(/[^a-z0-9]/gi,"-").toLowerCase()}),a("body").on("keyup change",'[data-format="slug"]',function(a){this.value=this.value.replace(/[^a-z0-9]/gi,"_").toLowerCase()}),a(window).on("resize",function(){var b=a("#cf_forms_toggle"),c=a(".form-panel-wrap");window.innerWidth<=1420&&b.is(":visible")&&c.is(":visible")&&b.trigger("click")});var c;void 0!=typeof CF_CLIPPY&&"object"==typeof CF_CLIPPY&&(c=new CalderaFormsAdminClippys2("caldera-forms-clippy",CF_CLIPPY,a),c.init()),a(".cf-entry-viewer-link").on("click",function(){"object"==typeof c&&c.remove()}),a("#caldera-forms-delete-all-form-entries").click(function(b){b.preventDefault(),a("#caldera-forms-confirm-delete-all-form-entries").slideToggle("fast")}),a("#caldera-forms-no-confirm-delete-all-form-entries").click(function(b){b.preventDefault(),a("#caldera-forms-confirm-delete-all-form-entries").slideToggle("fast")}),a("#caldera-forms-yes-confirm-delete-all-form-entries").click(function(b){b.preventDefault();var c=CF_ADMIN.rest.delete_entries,d=jQuery("#caldera-forms-delete-entries-spinner");d.css({visibility:"visible",float:"none"}),wp.apiRequest({url:c,method:"GET"}).then(function(b){b.hasOwnProperty("message")&&(!0===b.deleted?(a("#caldera-forms-label-delete-all-entries").append("<div class='caldera-forms-deleted'>"+b.message+"</div>"),setTimeout(function(){a(".caldera-forms-deleted").remove()},5e3),a("#caldera-forms-confirm-delete-all-form-entries").slideToggle("fast")):(a("#caldera-forms-label-delete-all-entries").append("<div class='caldera-forms-not-deleted'>"+b.message+"</div>"),setTimeout(function(){a(".caldera-forms-not-deleted").remove()},5e3),a("#caldera-forms-confirm-delete-all-form-entries").slideToggle("fast"))),d.css({visibility:"hidden",float:"none"})}).fail(function(b){b.responseJSON.hasOwnProperty("message")&&(a("#caldera-forms-label-delete-all-entries").append("<div class='caldera-forms-not-deleted'>"+b.responseJSON.message+"</div>"),setTimeout(function(){a(".caldera-forms-not-deleted").remove()},5e3),a("#caldera-forms-confirm-delete-all-form-entries").slideToggle("fast")),d.css({visibility:"hidden",float:"none"})})})}),function(a){"use strict";var b=function(a,b){this.init("tooltip",a,b)};b.prototype={constructor:b,init:function(b,c,d){var e,f;this.type=b,this.$element=a(c),this.options=this.getOptions(d),this.enabled=!0,"click"==this.options.trigger?this.$element.on("click."+this.type,this.options.selector,a.proxy(this.toggle,this)):"manual"!=this.options.trigger&&(e="hover"==this.options.trigger?"mouseenter":"focus",f="hover"==this.options.trigger?"mouseleave":"blur",this.$element.on(e+"."+this.type,this.options.selector,a.proxy(this.enter,this)),this.$element.on(f+"."+this.type,this.options.selector,a.proxy(this.leave,this))),this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},getOptions:function(b){return b=a.extend({},a.fn[this.type].defaults,b,this.$element.data()),b.delay&&"number"==typeof b.delay&&(b.delay={show:b.delay,hide:b.delay}),b},enter:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);return c.options.delay&&c.options.delay.show?(clearTimeout(this.timeout),c.hoverState="in",void(this.timeout=setTimeout(function(){"in"==c.hoverState&&c.show()},c.options.delay.show))):c.show()},leave:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);return this.timeout&&clearTimeout(this.timeout),c.options.delay&&c.options.delay.hide?(c.hoverState="out",void(this.timeout=setTimeout(function(){"out"==c.hoverState&&c.hide()},c.options.delay.hide))):c.hide()},show:function(){var a,b,c,d,e,f,g;if(this.hasContent()&&this.enabled){switch(a=this.tip(),this.setContent(),this.options.animation&&a.addClass("fade"),f="function"==typeof this.options.placement?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement,b=/in/.test(f),a.detach().css({top:0,left:0,display:"block"}).insertAfter(this.$element),c=this.getPosition(b),d=a[0].offsetWidth,e=a[0].offsetHeight,b?f.split(" ")[1]:f){case"bottom":g={top:c.top+c.height,left:c.left+c.width/2-d/2};break;case"top":g={top:c.top-e,left:c.left+c.width/2-d/2};break;case"left":g={top:c.top+c.height/2-e/2,left:c.left-d};break;case"right":g={top:c.top+c.height/2-e/2,left:c.left+c.width}}a.offset(g).addClass(f).addClass("in")}},setContent:function(){var a=this.tip(),b=this.getTitle();a.find(".tooltip-inner")[this.options.html?"html":"text"](b),a.removeClass("fade in top bottom left right")},hide:function(){var b=this.tip();return b.removeClass("in"),a.support.transition&&this.$tip.hasClass("fade")?function(){var c=setTimeout(function(){b.off(a.support.transition.end).detach()},500);b.one(a.support.transition.end,function(){clearTimeout(c),b.detach()})}():b.detach(),this},fixTitle:function(){var a=this.$element;(a.attr("title")||"string"!=typeof a.attr("data-original-title"))&&a.attr("data-original-title",a.attr("title")||"").attr("title","")},hasContent:function(){return this.getTitle()},getPosition:function(b){return a.extend({},b?{top:0,left:0}:this.$element.offset(),{width:this.$element[0].offsetWidth,height:this.$element[0].offsetHeight})},getTitle:function(){var a=this.$element,b=this.options;return a.attr("data-original-title")||("function"==typeof b.title?b.title.call(a[0]):b.title)},tip:function(){return this.$tip=this.$tip||a(this.options.template)},validate:function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled},toggle:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);c[c.tip().hasClass("in")?"hide":"show"]()},destroy:function(){this.hide().$element.off("."+this.type).removeData(this.type)}};var c=a.fn.tooltip;a.fn.tooltip=function(c){return this.each(function(){var d=a(this),e=d.data("tooltip"),f="object"==typeof c&&c;e||d.data("tooltip",e=new b(this,f)),"string"==typeof c&&e[c]()})},a.fn.tooltip.Constructor=b,a.fn.tooltip.defaults={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover",title:"",delay:0,html:!1},a.fn.tooltip.noConflict=function(){return a.fn.tooltip=c,this}}(window.jQuery);var baldrickTriggers,loop_loader;jQuery(document).ready(function(a){baldrickTriggers=function(){a(".ajax-trigger").baldrick({request:ajaxurl,method:"POST",before:function(b,c){var d=a(b),e=a("#cf_toolbar_actions"),f=e.parent().find('[name="_wp_http_referer"]');if(e.length&&f.length&&(d.data("cf_toolbar_actions",e.val()),d.data("_wp_http_referer",f.val())),d.data("trigger")){c.preventDefault();var g=a(d.data("trigger"));return g.trigger(g.data("event")?g.data("event"):"click"),!1}},complete:function(){a(".init_field_type[data-type]").each(function(b,c){var d=a(c);"function"==typeof window[d.data("type")+"_init"]&&window[d.data("type")+"_init"](d.prop("id"),d[0])})}})},loop_loader=function(a,b){return{__id__:Math.round(1e7*Math.random())}},baldrickTriggers(),a("body").on("click",".modal-side-tab",function(b){b.preventDefault();var c=a(this),d=c.closest(".caldera-modal-body"),e=d.find(".tab-detail-panel"),f=a(c.attr("href"));d.find(".modal-side-tab.active").removeClass("active"),c.addClass("active"),e.hide(),f.show()}),a("body").on("click",".caldera-group-remover",function(b){b.preventDefault();var c=a(this),d=c.closest(".caldera-repeater-group");d.slideUp(200,function(){d.remove()})}),a("body").on("click",".form-delete a.form-control",function(b){var c=a(this);confirm(c.data("confirm"))||b.preventDefault()}),a("body").on("keyup change",'[data-format="key"]',function(a){this.value=this.value.replace(/[^a-z0-9]/gi,"-").toLowerCase()}),a("body").on("keyup change",'[data-format="slug"]',function(a){this.value=this.value.replace(/[^a-z0-9]/gi,"_").toLowerCase()}),a(window).on("resize",function(){var b=a("#cf_forms_toggle"),c=a(".form-panel-wrap");window.innerWidth<=1420&&b.is(":visible")&&c.is(":visible")&&b.trigger("click")});var b;void 0!=typeof CF_CLIPPY&&"object"==typeof CF_CLIPPY&&(b=new CalderaFormsAdminClippys(a(document.getElementById("caldera-forms-clippy")),CF_CLIPPY,a),b.init()),a(".cf-entry-viewer-link").on("click",function(){"object"==typeof b&&b.remove()})});
|
assets/build/js/edit.min.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
function new_conditional_group(a){var b=a.trigger.data("id"),c="cl"+Math.round(18746582734*Math.random());return{group:[{id:"rw"+Math.round(98347598345*Math.random()),type:a.trigger.data("type"),lines:[{id:c}]}],id:b}}function new_conditional_line(a){var b=a.trigger.data("id"),c=a.trigger.data("group"),d=a.trigger.data("type"),e="cl"+Math.round(18746582734*Math.random());return{id:b,type:d,lineid:e,rowid:c,name:"config["+d+"]["+b+"][conditions][group]["+c+"]["+e+"]"}}function build_conditions_config(a){var b=JSON.parse(a.trigger.val());return b.id=a.trigger.data("id"),b}function pre_compile_templates(){for(var a=jQuery(".cf-editor-template"),b=0;b<a.length;b++)compiled_templates[a[b].id]=Handlebars.compile(a[b].innerHTML)}function get_compiled_template(a){return"object"!=typeof compiled_templates&&pre_compile_templates(),compiled_templates[a+"_tmpl"]?compiled_templates[a+"_tmpl"]:compiled_templates.noconfig_field_templ}function setup_field_type(a){return{id:a.trigger.prop("id")}}function check_required_bindings(a){var b,c=(jQuery(".caldera-header-save-button"),jQuery(".layout-form-field")),d=jQuery(".caldera-processor-nav"),e=!0;b=a?jQuery(a):jQuery(".caldera-config-field .required"),b.removeClass("has-error"),c.removeClass("has-error"),d.removeClass("has-error"),jQuery(".error-tag").remove(),required_errors={},b.each(function(a,b){var c=jQuery(b),d=c.closest(".caldera-config-editor-panel");if(b.value.length){if(c.hasClass("field-slug"))for(var f=jQuery(".field-slug").not(c),g=0;g<f.length;g++)if(f[g].value===b.value){var c=jQuery(f[g]);required_errors[d.prop("id")]||(required_errors[d.prop("id")]=0);var h=c.closest(".caldera-editor-field-config-wrapper"),i=c.closest(".caldera-editor-processor-config-wrapper");h.length&&jQuery('.layout-form-field[data-config="'+h.prop("id")+'"]').addClass("has-error"),i.length&&jQuery("."+i.prop("id")).addClass("has-error"),required_errors[d.prop("id")]+=1,c.addClass("has-error"),e=!1;break}if(c.hasClass("toggle_value_field"))for(var j=c.closest(".caldera-config-group").find(".toggle_value_field").not(c),g=0;g<j.length;g++)if(j[g].value===b.value){var c=jQuery(j[g]);required_errors[d.prop("id")]||(required_errors[d.prop("id")]=0);var h=c.closest(".caldera-editor-field-config-wrapper"),i=c.closest(".caldera-editor-processor-config-wrapper");h.length&&jQuery('.layout-form-field[data-config="'+h.prop("id")+'"]').addClass("has-error"),i.length&&jQuery("."+i.prop("id")).addClass("has-error"),required_errors[d.prop("id")]+=1,c.addClass("has-error"),e=!1;break}}else{required_errors[d.prop("id")]||(required_errors[d.prop("id")]=0);var h=c.closest(".caldera-editor-field-config-wrapper"),i=c.closest(".caldera-editor-processor-config-wrapper");h.length&&jQuery('.layout-form-field[data-config="'+h.prop("id")+'"]').addClass("has-error"),i.length&&jQuery("."+i.prop("id")).addClass("has-error"),required_errors[d.prop("id")]+=1,c.addClass("has-error"),e=!1}});for(var f in required_errors)jQuery(".caldera-forms-options-form").find('a[href="#'+f+'"]').append('<span class="error-tag">'+required_errors[f]+"</span>");return jQuery(".caldera-conditional-field-set").trigger("change"),e}function cf_revisions_ui(){var a=CF_ADMIN.rest.revisions,b=document.getElementById("tmpl--revisions");if(null!==b){var c=jQuery("#caldera-forms-revisions-spinner");c.css({visibility:"visible",float:"none"}),jQuery.get(a,function(a){if(a.hasOwnProperty("message"))document.getElementById("caldera-forms-revisions").innerHTML='<p class="notice notice-large notice-info">'+a.message+"</p>";else{var d={revisions:a};revisions=a;var e=b.innerHTML,f=jQuery("#tmpl--revisions").html();e=Handlebars.compile(f),document.getElementById("caldera-forms-revisions").innerHTML=e(d)}c.css({visibility:"hidden",float:"none"}),jQuery("input[type=radio][name=caldera-forms-revision]").change(function(){jQuery("#caldera-forms-revision-go").attr("href",jQuery(this).data("edit")).css({display:"inline-block",visibility:"visible"}).attr("aria-hidden",!1)})}).fail(function(){c.css({visibility:"hidden",float:"none"})})}}function new_conditional_group(a){var b=a.trigger.data("id"),c="cl"+Math.round(18746582734*Math.random());return{group:[{id:"rw"+Math.round(98347598345*Math.random()),type:a.trigger.data("type"),lines:[{id:c}]}],id:b}}function new_conditional_line(a){var b=a.trigger.data("id"),c=a.trigger.data("group"),d=a.trigger.data("type"),e="cl"+Math.round(18746582734*Math.random());return{id:b,type:d,lineid:e,rowid:c,name:"config["+d+"]["+b+"][conditions][group]["+c+"]["+e+"]"}}function build_conditions_config(a){var b=JSON.parse(a.trigger.val());return b.id=a.trigger.data("id"),b}function setup_field_type(a){return{id:a.trigger.prop("id")}}function check_required_bindings(a){var b,c=(jQuery(".caldera-header-save-button"),jQuery(".layout-form-field")),d=jQuery(".caldera-processor-nav"),e=!0;b=a?jQuery(a):jQuery(".caldera-config-field .required"),b.removeClass("has-error"),c.removeClass("has-error"),d.removeClass("has-error"),jQuery(".error-tag").remove(),required_errors={},b.each(function(a,b){var c=jQuery(b),d=c.closest(".caldera-config-editor-panel");if(b.value.length){if(c.hasClass("field-slug"))for(var f=jQuery(".field-slug").not(c),g=0;g<f.length;g++)if(f[g].value===b.value){var c=jQuery(f[g]);required_errors[d.prop("id")]||(required_errors[d.prop("id")]=0);var h=c.closest(".caldera-editor-field-config-wrapper"),i=c.closest(".caldera-editor-processor-config-wrapper");h.length&&jQuery('.layout-form-field[data-config="'+h.prop("id")+'"]').addClass("has-error"),i.length&&jQuery("."+i.prop("id")).addClass("has-error"),required_errors[d.prop("id")]+=1,c.addClass("has-error"),e=!1;break}if(c.hasClass("toggle_value_field"))for(var j=c.closest(".caldera-config-group").find(".toggle_value_field").not(c),g=0;g<j.length;g++)if(j[g].value===b.value){var c=jQuery(j[g]);required_errors[d.prop("id")]||(required_errors[d.prop("id")]=0);var h=c.closest(".caldera-editor-field-config-wrapper"),i=c.closest(".caldera-editor-processor-config-wrapper");h.length&&jQuery('.layout-form-field[data-config="'+h.prop("id")+'"]').addClass("has-error"),i.length&&jQuery("."+i.prop("id")).addClass("has-error"),required_errors[d.prop("id")]+=1,c.addClass("has-error"),e=!1;break}}else{required_errors[d.prop("id")]||(required_errors[d.prop("id")]=0);var h=c.closest(".caldera-editor-field-config-wrapper"),i=c.closest(".caldera-editor-processor-config-wrapper");h.length&&jQuery('.layout-form-field[data-config="'+h.prop("id")+'"]').addClass("has-error"),i.length&&jQuery("."+i.prop("id")).addClass("has-error"),required_errors[d.prop("id")]+=1,c.addClass("has-error"),e=!1}});for(var f in required_errors)jQuery(".caldera-forms-options-form").find('a[href="#'+f+'"]').append('<span class="error-tag">'+required_errors[f]+"</span>");return jQuery(".caldera-conditional-field-set").trigger("change"),e}var cfAdminAJAX;cfAdminAJAX="object"==typeof CF_ADMIN?CF_ADMIN.adminAjax:ajaxurl,jQuery(document).ready(function(a){function b(b){var d=a(b),e=d.val(),f=d.closest(".caldera-editor-field-config-wrapper"),g=f.find(".caldera-config-field-setup"),h=get_compiled_template(e),i=f.find(".field_config_string").val(),j=d.data("type");if(f.find(".caldera-config-group").show(),d.addClass("field-initialized"),i=i.length&&j===d.val()?JSON.parse(i):fieldtype_defaults[d.val()+"_cfg"],i||(i={}),i._id=d.data("field"),i._name="config[fields]["+d.data("field")+"][config]",h=a("<div>").html(h(i)),g.html(h.html()),"function"==typeof window[d.val()+"_init"]&&window[d.val()+"_init"](d.data("field"),g),fieldtype_defaults[d.val()+"_nosupport"]&&(fieldtype_defaults[d.val()+"_nosupport"].indexOf("hide_label")>=0&&f.find(".hide-label-field").hide().find(".field-config").prop("checked",!1),fieldtype_defaults[d.val()+"_nosupport"].indexOf("caption")>=0&&f.find(".caption-field").hide().find(".field-config").val(""),fieldtype_defaults[d.val()+"_nosupport"].indexOf("required")>=0&&f.find(".required-field").hide().find(".field-config").prop("checked",!1),fieldtype_defaults[d.val()+"_nosupport"].indexOf("custom_class")>=0&&f.find(".customclass-field").hide().find(".field-config").val(""),fieldtype_defaults[d.val()+"_nosupport"].indexOf("entry_list")>=0&&f.find(".entrylist-field").hide().find(".field-config").prop("checked",!1)),f.find(".toggle_show_values").trigger("change"),!a(".caldera-select-field-type").not(".field-initialized").length){if(core_form||(core_form=jQuery(".caldera-forms-options-form")),core_form.hasClass("builder-loaded"))c(d.data("field"));else{for(var k=a(".caldera-select-field-type.field-initialized"),l=0;l<k.length;l++)c(a(k[l]).data("field"));core_form.addClass("builder-loaded")}a(".caldera-header-save-button").prop("disabled",!1),rebuild_field_binding(),baldrickTriggers()}a(".color-field").length&&a(".color-field").wpColorPicker({change:function(b){var c=a(this);c.data("ev")&&clearTimeout(c.data("ev")),c.data("ev",setTimeout(function(){c.trigger("record")},200)),c.data("target")&&(a(c.data("target")).css(c.data("style"),c.val()),a(c.data("target")).val(c.val()))}})}function c(b){var c=a("#"+b),d=c.find(".caldera-select-field-type"),e=d.val(),f=a('.layout-form-field[data-config="'+b+'"]'),g=f.find(".field_preview"),h=(a("#preview-"+e+"_tmpl").html(),get_compiled_template("preview-"+e)),i={id:b},j=c.find(".field-config");j.each(function(c,d){for(var e=a(d),f=e.prop("name").split("["+b+"]")[1].substr(1),g=f.substr(0,f.length-1).split("]["),h=e.is(":checkbox,:radio")?e.filter(":checked").val():e.val(),j={},k=g.length-1;k>=0;k--)if(k===g.length-1)j[g[k]]=h;else{var l=j;j={},j[g[k]]=l}a.extend(!0,i,j)}),g.html(h(i)),f.removeClass("button"),a(".preview-field-config").prop("disabled",!0)}function d(b){var c,d=a(".caldera-editor-fields-panel"),e=(a(".caldera-editor-groups-panel"),a(".caldera-group-nav")),f=a('[data-group="'+b+'"]'),g=f.find(".caldera-config-group-name"),h=f.find(".caldera-config-group-slug"),i=f.find(".caldera-config-group-desc"),j=f.find(".caldera-config-group-admin"),k=a(".active-group-name"),l=a(".active-group-slug"),m=a(".active-group-desc"),n=a(".active-group-admin"),o=a(".caldera-editor-fields-list ul"),p=f.find(".caldera-config-group-repeat"),q=a(".repeat-config-button"),r=(a(".caldera-editor-group-settings"),a(".caldera-config-group-remove"));a(".new-group-input").remove(),a(".new-field-input").remove(),e.removeClass("active"),d.show(),o.hide(),o.removeClass("active").find("li.active").removeClass("active"),o.hide(),f.addClass("active"),c=a(".caldera-editor-fields-list ul.active li"),c.length?r.hide():r.show(),a(".caldera-editor-field-config-wrapper").hide(),f.show(),k.val(g.val()),l.val(h.val()),m.val(i.val()),"1"===j.val()?n.prop("checked",!0):n.prop("checked",!1),"1"===p.val()?q.addClass("field-edit-open"):q.removeClass("field-edit-open")}var e=a("#save_indicator");a("#caldera-forms-restore-revision").on("click",function(b){b.preventDefault();var c=a(this);e.addClass("loading"),a.post({url:"admin.php?page=caldera-forms",data:{cf_edit_nonce:a("#cf_edit_nonce").val(),form:c.data("form"),cf_revision:a("#form_db_id_field").val(),restore:!0},success:function(){window.location=c.data("edit-link")}})}),a(".caldera-header-save-button").baldrick({method:"POST",request:"admin.php?page=caldera-forms",before:function(b,c){if(c.preventDefault(),!check_required_bindings())return!1;e.addClass("loading"),"undefined"!=typeof tinyMCE&&tinyMCE.triggerSave();var d=a(".caldera-forms-options-form").formJSON();return d.conditions&&(d.config.conditional_groups={conditions:d.conditions}),a(b).data("cf_edit_nonce",d.cf_edit_nonce),a(b).data("_wp_http_referer",d._wp_http_referer),a(b).data("sender","ajax"),a(document).trigger("cf.presave",{config:d.config}),a(b).data("config",JSON.stringify(d.config)),!0},callback:function(b){if(!1===b.data){var c=a(".updated_notice_box");c.stop().animate({top:0},200,function(){setTimeout(function(){c.stop().animate({top:-75},200)},2e3)}),cf_revisions_ui()}},complete:function(b){a(".wrapper-instance-pane .field-config").prop("sabled",!1)}}),a("body").on("click",".toggle_processor_event input",function(b){var c=a(this),d=c.closest(".wrapper-instance-pane"),e=d.find(".caldera-config-processor-setup"),f=d.find(".caldera-config-processor-notice");c.is(":checked")?(c.parent().addClass("activated"),c.parent().find(".is_active").show().attr("aria-hidden",!1).css("visibility","visible"),c.parent().find(".not_active").hide().attr("aria-hidden",!0).css("visibility","hidden")):(c.parent().removeClass("activated"),c.parent().find(".is_active").hide().attr("aria-hidden",!0).css("visibility","hidden"),c.parent().find(".not_active").show().attr("aria-hidden",!1).css("visibility","visible")),d.find(".toggle_processor_event .activated").length?(e.slideDown(100),f.slideUp(100)):(e.slideUp(100),f.slideDown(100))}),a("body").on("click",".toggle_option_tab > a",function(b){b.preventDefault();var c=a(this),d=a(c.attr("href")),e=c.parent().find("a"),f=c.closest(".caldera-editor-config-wrapper").find(".wrapper-instance-pane");e.removeClass("button-primary"),f.hide(),d.show(),c.addClass("button-primary"),a(".caldera-conditionals-usetype").trigger("change")}),a(".caldera-editor-body").on("change",".caldera-select-field-type",function(a){b(this)}),a(".caldera-editor-body").on("click",".caldera-group-nav a",function(b){b.preventDefault(),d(a(this).attr("href").substr(1))}),a(".caldera-editor-body").on("click",".caldera-editor-fields-list a",function(b){b.preventDefault();var c=a(this),d=a(c.attr("href"));a(".new-group-input").remove(),a(".new-field-input").remove(),a(".caldera-editor-fields-list li.active").removeClass("active"),c.parent().addClass("active"),a(".caldera-editor-field-config-wrapper").hide(),d.show()}),a(".caldera-editor-body").on("click",".group-config-button",function(b){var c=a(this),d=a(".caldera-editor-group-settings"),e=c.closest(".caldera-editor-fields-panel"),f=a(".caldera-config-group-remove");e.find(".caldera-field-line").length?f.hide():f.show(),c.hasClass("field-edit-open")?(d.slideUp(100),c.removeClass("field-edit-open")):(d.slideDown(100),c.addClass("field-edit-open"))}),a(".caldera-editor-body").on("keydown",".field-config",function(b){a(this).is("textarea")||13===b.which&&b.preventDefault()}),a(".caldera-editor-body").on("change",".field-label",function(b){var c=a(this).closest(".caldera-editor-field-config-wrapper").prop("id"),d=a('[data-field="'+c+'"]'),e=a("#"+c+" .caldera-editor-field-title, .layout-form-field.field-edit-open .layout_field_name"),f=a("#"+c+" .field-slug");d.find("a").html('<i class="icn-field"></i> '+this.value),e.text(this.value),"change"===b.type&&f.trigger("change"),rebuild_field_binding()}),a(".caldera-editor-body").on("change",".active-group-name",function(b){b.preventDefault();var c=a(".caldera-group-nav.active"),d=(c.data("group"),c.find(".caldera-config-group-name")),e=c.find("span");"focusout"!==b.type||this.value.length||(this.value="Group "+(parseInt(c.index())+1)),d.val(this.value),e.text(this.value)}),a(".caldera-editor-body").on("change",".active-group-slug",function(b){b.preventDefault();var c=a(".caldera-group-nav.active"),d=(c.data("group"),c.find(".caldera-config-group-name").val()),e=c.find(".caldera-config-group-slug"),f=(c.find("span"),this.value.split(" ").join("_").split("-").join("_").replace(/[^a-z0-9_]/gi,"").toLowerCase());"focusout"!==b.type||this.value.length||(f=d.split(" ").join("_").split("-").join("_").replace(/[^a-z0-9_]/gi,"").toLowerCase()),e.val(f),this.value=f}),a(".caldera-editor-body").on("change",".active-group-desc",function(b){b.preventDefault();var c=a(".caldera-group-nav.active");c.data("group");c.find(".caldera-config-group-desc").val(this.value)}),a(".caldera-editor-body").on("change",".active-group-admin",function(b){b.preventDefault();var c=a(".caldera-group-nav.active"),d=(c.data("group"),c.find(".caldera-config-group-name").val(),c.find(".caldera-config-group-admin"));c.find("span"),this.value.split(" ").join("_").split("-").join("_").replace(/[^a-z0-9_]/gi,"").toLowerCase();a(this).prop("checked")?(d.val(1),c.addClass("is-admin")):(d.val(0),c.removeClass("is-admin"))}),a(".caldera-editor-body").on("click",".repeat-config-button",function(b){b.preventDefault();var c=a(".caldera-group-nav.active"),d=(c.data("group"),c.find("a .group-type")),e=c.find(".caldera-config-group-repeat"),f=a(this);f.hasClass("field-edit-open")?(e.val("0"),d.removeClass("icn-repeat").addClass("icn-folder"),f.removeClass("field-edit-open")):(e.val("1"),d.addClass("icn-repeat").removeClass("icn-folder"),f.addClass("field-edit-open"))}),a(".caldera-editor-body").on("click",".delete-field",function(){var b=a(this),c=b.closest(".caldera-editor-field-config-wrapper").prop("id");confirm(b.data("confirm"))&&(a("#"+c).remove(),a('option[value="'+c+'"]').remove(),a('[data-bind="'+c+'"]').remove(),delete current_form_fields[c],a('[data-config="'+c+'"]').slideUp(200,function(){a(this).remove(),rebuild_field_binding(),a(document).trigger("field.removed")}))}),a(".caldera-editor-body").on("click",".add-new-group,.add-field",function(){var b=a(this);if(a(".new-group-input").remove(),a(".new-field-input").remove(),b.hasClass("add-field")){a('<input type="text" class="new-field-input block-input">').appendTo(a(".caldera-editor-fields-list ul.active")).focus()}else{a('<input type="text" class="new-group-input block-input">').appendTo(a(".caldera-editor-groups-panel")).focus()}}),a(".caldera-editor-body").on("change keypress",".new-group-input",function(b){if("keypress"===b.type){if(13!==b.which)return;b.preventDefault()}var c,e,f=this.value,g=a(this),h=a(".caldera-editor-groups-panel ul"),i=a(".caldera-editor-fields-list");if(f.length){c=Handlebars.compile(a("#caldera_group_line_templ").html()),e={id:f.split(" ").join("_").split("-").join("_").replace(/[^a-z0-9_]/gi,"").toLowerCase(),name:f},h.append(c(e));a('<ul data-group="'+e.id+'">').hide().appendTo(i),g.remove(),d(e.id)}else g.remove()}),a(".caldera-editor-body").on("change keypress",".new-field-input",function(b){if("keypress"===b.type){if(13!==b.which)return;b.preventDefault()}var c,d,e,f=this.value,g=a(this),h=g.parent(),i=a(".caldera-editor-field-config"),j=a(".caldera-config-group-remove");if(f.length){j.hide(),c=Handlebars.compile(a("#caldera_field_line_templ").html()),d=Handlebars.compile(a("#caldera_field_config_wrapper_templ").html()),e={id:f.split(" ").join("_").split("-").join("_").replace(/[^a-z0-9_]/gi,"").toLowerCase(),label:f,slug:f.split(" ").join("_").split("-").join("_").replace(/[^a-z0-9_]/gi,"").toLowerCase(),group:a(".caldera-group-nav.active").data("group")};var k=a(c(e));k.appendTo(h),i.append(d(e)),k.find("a").trigger("click"),g.remove()}else g.remove()}),a(".caldera-editor-body").on("change",".field-slug",function(b){this.value.length?this.value=this.value.split(" ").join("_").split("-").join("_").replace(/[^a-z0-9_]/gi,"").toLowerCase():"change"===b.type&&(this.value=a(this).closest(".caldera-editor-field-config-wrapper").find(".field-label").val().split(" ").join("_").split("-").join("_").replace(/[^a-z0-9_]/gi,"").toLowerCase())}),a(".caldera-editor-body").on("click",".caldera-add-group",function(b){var c=a(this),d=c.data("group"),e=a("#"+d+"_panel_tmpl").html();c.parent().parent().append(e)}),a(".caldera-editor-body").on("click",".caldera-config-group-remove",function(b){var c=a(".active-group-slug").val();a('[data-group="'+c+'"]').hide(0,function(){a(this).remove();var b=a(".caldera-group-nav");b.length?b.first().find("a").trigger("click"):a(".caldera-editor-fields-panel").hide()})}),a("body").on("click",".set-current-field",function(b){b.preventDefault();var c=a(this);a("#"+c.data("field")+"_type").val(c.data("type")).trigger("change"),a("#"+c.data("field")+"_lable").focus(),a("#field_setup_baldrickModalCloser").trigger("click")}),a(".caldera-editor-body").on("change record",".field-config",function(b){var d=a(this),e=d.closest(".caldera-editor-field-config-wrapper");current_form_fields&&(d.prop("id")===e.prop("id")+"_lable"&&(current_form_fields[e.prop("id")].label=this.value),d.prop("id")===e.prop("id")+"_slug"&&(current_form_fields[e.prop("id")].slug=this.value),d.prop("id")===e.prop("id")+"_type"&&(current_form_fields[e.prop("id")].type=this.value),e.length&&c(e.prop("id")))}),a(".caldera-editor-body").on("focus",".caldera-field-bind",function(b){var c=a(this),d=this.value;if(b.type&&"focusin"===b.type)return c.removeClass("bound_field").addClass("reload-binding"),rebind_field_bindings(),void(this.value=d)}),a(".caldera-editor-body").on("change",".caldera-conditional-field-set",function(b){var c,d,e=a(this),f=e.parent().find(".compare-type"),g=e.data("condition"),h=e.data("id"),i="config["+g+"]["+h+"][conditions][group]["+e.data("row")+"]["+e.data("line")+"]",j=e.data("line"),k=a("#"+j+"_value"),l=k.find(".caldera-conditional-value-field").first(),m=[],n=this.value;if("{"!==n.substr(0,1)&&(c=a("#"+n),d=c.find(".field-button-type"),m=c.find(".caldera-config-group-toggle-options")),e.hasClass(".bind_init")&&e.addClass("bound_triggered"),l.length?l.val().length&&k.data("value",l.val()):0===k.val()?k.data("value",0):"0"===k.val()&&k.data("value","0"),f.show(),m.length){var o=m.find(".toggle_option_row"),p='<select name="'+i+'[value]" class="caldera-processor-value-bind caldera-conditional-value-field" data-field="'+n+'" style="max-width: 220px; width: 220px;">';p+='<option value=""></option>',o.each(function(b,c){var d=a(c).find(".toggle_label_field"),e=d.data("option"),f="";k.data("value")&&(k.data("value").toString()!==e&&k.data("value").toString()!==a(c).find(".toggle_value_field").val()||(f=' selected="selected"')),p+='<option value="'+e+'"'+f+">"+d.val()+"</option>"}),p+="</select>"}else d&&"button"==d.val()?(f.val("is").hide(),p='<select name="'+i+'[value]" class="caldera-processor-value-bind caldera-conditional-value-field" data-field="'+n+'" style="max-width: 220px; width: 220px;">',p+='<option value="click" '+("click"===k.data("value")?'selected="selected"':"")+">Click</option>",p+='<option value="dblclick" '+("dblclick"===k.data("value")?'selected="selected"':"")+">Double Click</option>",p+="</select>"):p='<input name="'+i+'[value]" type="text" class="caldera-conditional-value-field magic-tag-enabled" value="'+(k.data("value")?k.data("value"):"")+'" style="max-width: 205px;">';k.html(p),init_magic_tags()}),a(".caldera-editor-body").on("change",".caldera-conditionals-usetype",function(b){var c=a(this);"show"===this.value||"hide"===this.value||"disable"===this.value||"use"===this.value||"not"===this.value?(a("#"+c.data("id")+"_condition_group_add").show(),a("#"+c.data("id")+"_conditional_wrap").show()):(a("#"+c.data("id")+"_condition_group_add").hide(),a("#"+c.data("id")+"_conditional_wrap").hide())}),a(".caldera-editor-body").on("click",".remove-conditional-line",function(b){b.preventDefault();var c=a(this),d=c.closest(".caldera-condition-line"),e=c.closest(".caldera-condition-group");d.remove(),e.find(".caldera-condition-line").length||e.remove()}),a(".caldera-group-nav").first().find("a").trigger("click"),a(".caldera-editor-body").on("change",".toggle_show_values",function(b){var c=a(this),d=c.closest(".caldera-config-group-toggle-options"),e=d.find(".toggle_label_field"),f=d.find(".toggle_value_field, .toggle_calc_value_field"),g=d.find(".option-setting-label-for-value"),h=d.find(".option-setting-label-for-label"),i=(d.find(".option-group-control"),{width:"100%",display:"inline",float:"left"});c.prop("checked")?(f.show().css(i).attr("aria-hidden",!1),e.show().css(i).attr("aria-hidden",!1),g.show().css({display:"inline-block"}),h.css("display","inline")):(f.hide().attr("aria-hidden",!0),g.hide().attr("aria-hidden",!0),e.css("width",245),h.css("display","inline")),e.trigger("toggle.values"),init_magic_tags()}),a(".caldera-editor-body").on("change",".auto-populate-type",function(){a(this).closest(".wrapper-instance-pane").find(".auto-populate-options").trigger("change")}),a(".caldera-editor-body").on("change",".auto-populate-options",function(){var b=a(this),c=b.closest(".wrapper-instance-pane"),d=c.find(".caldera-config-group-toggle-options"),e=c.find(".caldera-config-group-auto-options"),f=e.find(".auto-populate-type");e.find(".auto-populate-type-panel").hide(),b.prop("checked")?(d.hide(),e.show()):(d.show(),e.hide()),e.find(".caldera-config-group-auto-"+f.val()).show()}),a("body").on("change",".pin-toggle-roles",function(){var b=a(this),c=a("#caldera-pin-rules");"1"===b.val()?c.show():c.hide()}),a("body").on("click",".magic-tag-init",function(b){a(this).prev().focus().trigger("init.magic")}),a("body").on("keyup focus select click init.magic",".magic-tag-enabled",function(b){init_magic_tags();var c=a(this),d=c.parent(),e=d.closest(".wrapper-instance-pane").find(".caldera-select-field-type").val()?d.closest(".wrapper-instance-pane").find(".caldera-select-field-type").val():"hidden",f=d.find(".magic-tags-autocomplete"),g=f.find("ul"),h=this.value,i=[],j="",k=this.selectionStart,l=this.selectionEnd;if(f.length&&f.data("focus"))return void b.preventDefault();if(c.data("tag",""),this.selectionEnd>this.selectionStart)j=this.value.substr(this.selectionStart,this.selectionEnd-this.selectionStart);else if(("select"===b.type||"keyup"===b.type)&&40!==b.which&&38!==b.which&&39!==b.which&&37!==b.which){for(k=this.selectionStart;k>0;k--){var m=h.substr(k-1,1);if(" "===m||"\n"===m||("%"===m||"}"===m)&&this.selectionStart===k)break}for(l=this.selectionStart;l<h.length;l++){var m=h.substr(l,1);if(" "===m||"\n"===m||("%"===m||"{"===m)&&this.selectionStart===l)break}j=h.substr(k,l-k)}if("focusout"!==b.type){"init"!==b.type&&j.length<3&&f.length&&f.remove(),f.length||(f=a('<div class="magic-tags-autocomplete"></div>'),g=a("<ul></ul>"),g.appendTo(f),f.insertAfter(c),f.on("mouseenter",function(){a(this).data("focus",!0)}),f.on("mouseleave",function(){a(this).data("focus",!1),setTimeout(function(){f.remove()},200),c.is(":focus")||c.trigger("focusout")})),g.empty();var n="system",o=!1;"hidden"===e||"dropdown"===e||"radio"===e||"toggle_switch"===e||"checkbox"===e?(o=!0,e="text",n="all"):"paragraph"!==e&&"html"!==e||(e="text"),c.data("type")&&(e=c.data("type")),e=e.split(","),e.push("vars");for(var p=0;p<e.length;p++)for(var q in system_values)if(void 0!==system_values[q].tags&&void 0!==system_values[q].tags[e[p]]){if(i=[q],"system"!==q&&"variable"!==q&&"field"!==q){var r=jQuery(".processor-"+q),s=c.closest(".caldera-editor-processor-config-wrapper"),t=s.prop("id");i=[];for(var u=0;u<r.length;u++)if(s.length||!0!==o){if(t===r[u].id)continue;jQuery("li."+r[u].id).index()<jQuery("li."+t).index()&&i.push(r[u].id)}else i.push(r[u].id)}for(var v=0;v<i.length;v++)if("all"===n||n===q||"variable"===q){var w=a('<li class="header">'+system_values[q].type+(v>0?" ["+(v+1)+"]":"")+"</li>"),x=0;w.appendTo(g);for(var y=0;y<system_values[q].tags[e[p]].length;y++)if(!c.data("parent")||"variable:"+c.data("parent")!==system_values[q].tags[e[p]][y]){var z=system_values[q].wrap[0]+system_values[q].tags[e[p]][y]+system_values[q].wrap[1];if(i[v]!==q&&i.length>1&&(z=system_values[q].wrap[0]+system_values[q].tags[e[p]][y]+":"+i[v]+system_values[q].wrap[1]),z.indexOf(j)>=0||"init"===b.type){x+=1;var A=z.replace(j,"<strong>"+j+"</strong>"),B=a('<li class="tag" data-tag="'+z+'">'+A+"</li>");B.on("click",function(){var b=a(this).data("tag");c.val(h.substr(0,k)+b+h.substr(l)).trigger("change").focus(),c[0].selectionStart=k+b.length-(b.indexOf("*")>0?2:0),c[0].selectionEnd=k+b.length-(b.indexOf("*")>0?1:0),l=k=c[0].selectionEnd,h+=b,c.trigger("init.magic")}),B.appendTo(g)}}0===x&&w.remove()}}}g.children().length||f.remove(),"focusout"===b.type&&setTimeout(function(){f.remove()},200)}),pre_compile_templates(),a(".caldera-select-field-type").not(".field-initialized").each(function(a,c){b(c)})});var rebuild_field_binding,rebind_field_bindings,current_form_fields={},required_errors={},add_new_grid_page,add_page_grid,init_magic_tags,core_form,compiled_templates={};init_magic_tags=function(){jQuery(".magic-tag-enabled").each(function(a,b){var c=jQuery(b);if(c.hasClass("magic-tag-init-bound")){var d=c.parent().find(".magic-tag-init");return void(c.is(":visible")?d.show():d.hide())}var e=jQuery('<span class=""></span>'),f=jQuery('<span style="position:relative;display:inline-block; width:100%;"></span>');c.is("input")&&e.css("borderBottom","none"),c.hasClass("caldera-conditional-value-field")&&f.width("auto"),c.wrap(f),e.insertAfter(c),c.addClass("magic-tag-init-bound"),c.is(":visible")?e.show():e.hide()})},rebuild_field_binding=function(){if(core_form||(core_form=jQuery(".caldera-forms-options-form")),core_form.hasClass("builder-loaded")){var a=jQuery(".caldera-editor-field-config-wrapper");system_values.field={tags:{text:[]},type:"Fields",wrap:["%","%"]};for(var b=0;b<a.length;b++){var c=a[b].id,d=jQuery("#"+c+"_lable").val(),e=jQuery("#"+c+"_slug").val(),f=jQuery("#"+c+"_type").val();void 0===system_values.field.tags[f]&&(system_values.field.tags[f]=[]),system_values.field.tags[f].push(e),"text"!==f&&system_values.field.tags.text.push(e),current_form_fields[c]={label:d,slug:e,type:f},jQuery("option.bound-field").trigger("change").each(function(a,b){var c=jQuery(b);0!==c.prop("value").indexOf("{")?c.text(jQuery("#"+c.prop("value")+"_lable").val()+" ["+jQuery("#"+c.prop("value")+"_lable").val()+"]"):c.text(c.prop("value").replace("{","").replace("}",""))}).removeClass("bound-field")}}},rebind_field_bindings=function(){var a,b,c=jQuery(".caldera-field-bind").not(".bound_field");if(c.length){c.addClass("bound_field");for(var d=0;d<c.length;d++){var e=jQuery(c[d]),f=e.val(),g=e.data("default"),h=e.data("exclude"),i=0,j=e.closest(".caldera-editor-processor-config-wrapper"),k=j.prop("id"),l="";if(g&&!e.hasClass("reload-binding")&&(f=g),e.is("select")){e.empty();var m=jQuery('<optgroup label="Fields">');for(var n in current_form_fields)e.data("type")&&e.data("type").split(",").indexOf(current_form_fields[n].type)<0||(e.data("id")!==n&&m.append('<option value="'+n+'"'+(f===n?'selected="selected"':"")+">"+current_form_fields[n].label+" ["+current_form_fields[n].slug+"]</option>"),i+=1);m.appendTo(e),0===i&&e.empty();for(var o in system_values)if(a=[],!(h&&h.split(",").indexOf(o)>=0)){if("system"!==o&&"variable"!==o)for(var p=jQuery(".processor-"+o),q=0;q<p.length;q++)k!==p[q].id&&(a.push(p[q].id),p.length>1&&(b=jQuery("li."+p[q].id+" .processor-line-number"))&&b.html("["+(q+1)+"]"));else a.push("__system__");var r=[];e.data("type")?(r=e.data("type").split(","),r.push("vars")):r=["text","vars"];for(var s=0;s<r.length;s++)if(system_values[o].tags&&system_values[o].tags[r[s]])for(var t=0;t<a.length;t++){jQuery("li."+a[t]).index()>jQuery("li."+k).index()&&"__system__"!==a[t]?e.closest(".caldera-editor-processors-panel-wrap").length&&(l=' disabled="disabled"'):l="";for(var m=jQuery('<optgroup label="'+system_values[o].type+("__system__"!==a[t]?" "+jQuery("li."+a[t]).find(".processor-line-number").html():"")+'"'+l+">"),u=0;u<system_values[o].tags[r[s]].length;u++){var v=system_values[o].tags[r[s]][u];"__system__"!==a[t]&&(v=v.replace(o,a[t])),m.append('<option value="{'+v+'}"'+(f==="{"+v+"}"?'selected="selected"':"")+l+">"+system_values[o].tags[r[s]][u]+"</option>"),i+=1}m.children().length&&m.appendTo(e)}}if(0===i){if(e.empty(),e.data("type")){e.append('<option value="">No '+e.data("type").split(",").join(" or ")+" in form</option>");var w=!0}}else e.prop("disabled",!1);e.hasClass("required")||void 0!==w||e.prepend('<option value=""></option>'),e.val(f)}}init_magic_tags(),jQuery(document).trigger("bound.fields"),jQuery(".caldera-header-save-button").prop("disabled",!1),void 0!=typeof cf_revisions_ui&&cf_revisions_ui()}},jQuery(document).ready(function(a){function b(){var b=a(".layout-grid-panel"),c=0;b.each(function(b,d){var e=a(d),f=e.find(".layout-structure"),g=e.find(".row"),h=[];g.each(function(b,d){var e=a(d),f=e.children().not(".column-merge"),g=[];c+=1,f.each(function(b,d){span=a(d).attr("class").split("-"),g.push(span[2]);var e=a(d).find(".field-location")
|
2 |
-
;e.length&&e.each(function(d,e){a(e).val(c+":"+(b+1)).removeAttr("disabled")})}),h.push(g.join(":"))}),f.val(h.join("|"))})}function c(b,c,e){var f,g,h="fld_"+Math.round(1e7*Math.random()),i=h,j=a("#field_config_panels");b.prop("id","").prop("title",""),f=Handlebars.compile(a("#caldera_field_config_wrapper_templ").html()),g=a.extend({},{id:i,label:"",slug:""},e),g.slug="";f(g);j.append(f(g)),b.removeClass("button-small").removeClass("button").removeClass("button-primary").removeClass("ui-draggable").removeClass("layout-new-form-field").addClass("layout-form-field").attr("data-config",h).css({display:"",opacity:""}),b.find(".layout_field_name").remove(),b.find(".field-location").prop("name","config[layout_grid][fields]["+h+"]"),b.find(".settings-panel").show(),b.appendTo(c),d(),b.find(".icon-edit").trigger("click"),a("#"+h+"_lable").focus().select(),baldrickTriggers(),a(document).trigger("field.added"),e?a("#"+i+"_type").data("type",g.type).trigger("change"):a("#"+h).trigger("field.drop"),rebuild_field_binding()}function d(){a(".toggle-options").sortable({handle:".dashicons-sort"}),a("#grid-pages-panel").sortable({placeholder:"row-drop-helper",handle:".sort-handle",items:".first-row-level",axis:"y",stop:function(){b()}}),a(".layout-column").sortable({connectWith:".layout-column",appendTo:"#grid-pages-panel",helper:"clone",items:".layout-form-field",handle:".drag-handle",cursor:"move",opacity:.7,cursorAt:{left:100,top:15},start:function(a,b){b.helper.css({width:"200px",height:"35px",paddingTop:"20px"})},stop:function(a,c){c.item.removeAttr("style"),b()}}),a("h3 .layout-new-form-field").draggable({helper:"clone",appendTo:"body"}),a(".page-toggle.button").droppable({accept:".layout-form-field",over:function(b,c){a(this).trigger("click"),a(".layout-column").sortable("refresh")}}),a(".layout-column").droppable({greedy:!0,activeClass:"ui-state-dropper",hoverClass:"ui-state-hoverable",accept:".layout-new-form-field",drop:function(b,d){c(d.draggable.clone(),a(this))}}),b()}function e(){if(h){var b=a(".column-fieldinsert");b.length?(b.stop().fadeToggle(700),a(".layout-new-form-field").stop().fadeToggle(700)):cf_clear_puler()}}function f(){a(".caldera-editor-processors-panel ul").sortable({update:function(){rebuild_field_binding()},create:function(){0==a(".caldera-editor-processors-panel ul").children().length&&(j.addClass("button-primary"),i=new CalderaFormsButtonPulse(j),window.setTimeout(function(){i.startPulse()},3e3))}})}function g(b){var c=a(b),d=a("#"+c.val()+"-tmpl").length?a("#"+c.val()+"-tmpl").html():"",e=c.closest(".caldera-editor-processor-config-wrapper"),f=e.find(".caldera-config-processor-setup"),g=Handlebars.compile(d),h=e.find(".processor_config_string").val(),i=c.data("type");h=h.length&&i===c.val()?JSON.parse(h):processor_defaults[c.val()+"_cfg"],h||(h={}),h._id=e.prop("id"),h._name="config[processors]["+e.prop("id")+"][config]",g=a("<div>").html(g(h)),f.html(g.html()),"function"==typeof window[c.val()+"_init"]&&window[c.val()+"_init"](e.prop("id"),f),e.find(".no-conditions").length&&e.find(".toggle_option_tab").remove(),rebuild_field_binding(),baldrickTriggers(),a(".wp-baldrick").baldrick({request:cfAdminAJAX,method:"POST",before:function(b){var c=a(b);c.data("addNode")&&!c.data("request")&&c.data("request","cf_get_default_setting")}})}add_new_grid_page=function(a){return{page_no:"pg_"+Math.round(1e7*Math.random())}},add_page_grid=function(b){var c=a(".page-toggle").length+1,e=a('<button type="button" data-name="Page '+c+'" data-page="'+b.rawData.page_no+'" class="page-toggle button">'+b.params.trigger.data("addtitle")+" "+c+"</button> "),f=a("#page-toggles");e.appendTo(f),f.show(),d(),e.trigger("click"),1===c&&f.hide(),a(document).trigger("add.page")},a(document).on("remove.page add.page load.page",function(b){var c=a(".page-toggle").length,d=a("#tab_pages");c<=1?d.hide():d.show()}),d(),a("#grid-pages-panel").on("click",".column-fieldinsert .dashicons-plus-alt",function(b){var d=a(this).closest(".column-container");c(a("#newfield-tool").clone().css("display",""),d)}),a("#grid-pages-panel").on("click",".column-split",function(b){var c=a(this).parent().parent(),e=c.attr("class").split("-"),f=a("<div>").insertAfter(c),g=Math.ceil(e[2]/2),h=Math.floor(e[2]/2);e[2]=g,c.attr("class",e.join("-")),e[2]=h,f.addClass(e.join("-")).append('<div class="layout-column column-container">'),a(this).remove(),d(),jQuery(".column-tools").remove(),jQuery(".column-merge").remove()}),a("#grid-pages-panel").on("click",".column-remove",function(c){var d=a(this).closest(".row"),e=d.find(".layout-form-field"),f=d.closest(".layout-grid-panel");if(e.length){if(!confirm(a("#row-remove-fields-message").text()))return;e.each(function(b,c){var d=a(c).data("config");a("#"+d).remove(),a('option[value="'+d+'"]').remove(),a('[data-bind="'+d+'"]').remove(),delete current_form_fields[d]})}d.slideUp(200,function(){if(a(this).remove(),b(),rebuild_field_binding(),!f.find(".row").length){f.remove();var c=a("#page-toggles .button-primary"),d=c.prev(),e=c.next();c.remove(),d.length?d.trigger("click"):e.trigger("click")}a(document).trigger("remove.page")}),jQuery(".column-tools").remove(),jQuery(".column-merge").remove()}),a(".caldera-config-editor-main-panel").on("click",".caldera-add-row",function(c){if(c.preventDefault(),!a(".page-active").length)return void a(".caldera-add-page").trigger("click");var e=a('<div style="display:none;" class="first-row-level row"><div class="col-xs-12"><div class="layout-column column-container"></div></div></div>');a(".page-active").append(e),e.slideDown(200),d(),b()}),a("#grid-pages-panel").on("click",".column-join",function(c){var d=a(this).parent().parent().parent(),e=d.prev(),f=e.attr("class").split("-"),g=d.attr("class").split("-");f[2]=parseFloat(f[2])+parseFloat(g[2]),d.find(".layout-column").contents().appendTo(e.find(".layout-column")),e.attr("class",f.join("-")),d.remove(),b(),jQuery(".column-tools").remove(),jQuery(".column-merge").remove()}),a("#grid-pages-panel").on("mouseenter",".row",function(c){var d=jQuery(this);jQuery(".column-tools,.column-merge").remove(),d.children().children().first().append('<div class="column-remove column-tools" data-placement="top" title="'+CF_ADMIN_TOOLTIPS.delete_row+'" ><i class="icon-remove"></i></div>'),d.children().children().last().append('<div class="column-sort column-tools" style="text-align:right;"><i class="dashicons dashicons-menu drag-handle sort-handle"></i></div>'),d.children().children().not(":first").prepend('<div class="column-merge"><div class="column-join column-tools"><i class="icon-join"></i></div></div>');var e=d.parent().parent().parent().width()/12-1;d.children().children().each(function(b,c){var d=a(c),e=d.width()/2-5;d.prepend('<div class="column-fieldinsert column-tools"><i class="dashicons dashicons-plus-alt" data-toggle="tooltip" data-placement="top" title="'+CF_ADMIN_TOOLTIPS.add_field_row+'"></i></div>'),d.parent().hasClass("col-xs-1")||(d.prepend('<div class="column-split column-tools" data-placement="top" title="'+CF_ADMIN_TOOLTIPS.split_row+'"><i class="dashicons dashicons-leftright"></i></div>'),d.find(".column-split").css("left",e))}),jQuery(".column-merge").draggable({axis:"x",helper:"clone",appendTo:d,grid:[e,0],drag:function(c,d){a(this).addClass("dragging"),a(".column-tools").remove(),a(".column-split").remove();var e=a(this).parent().parent(),f=d.helper,g=d.originalPosition.left>f.position().left?"left":"right",h=e.prev(),i=Math.round(e.parent().width()/12-10),j=Math.abs(d.originalPosition.left-f.position().left);if(e.parent().addClass("sizing"),j>=i){var k=h.attr("class").split("-"),l=e.attr("class").split("-");k[2]=parseFloat(k[2]),l[2]=parseFloat(l[2]),"left"===g?(k[2]--,l[2]++,k[2]>0&&k[2]<k[2]+l[2]?(h.attr("class",k.join("-")),e.attr("class",l.join("-")),d.originalPosition.left=f.position().left):a(this).draggable("option","disabled",!0)):(k[2]++,l[2]--,l[2]>0&&l[2]<l[2]+l[2]?(h.attr("class",k.join("-")),e.attr("class",l.join("-")),d.originalPosition.left=f.position().left):a(this).draggable("option","disabled",!0)),b()}},stop:function(){a(this).removeClass("dragging").parent().parent().parent().removeClass("sizing")}})}),a("#grid-pages-panel").on("mouseleave",".row",function(a){jQuery(".column-tools").remove(),jQuery(".column-merge").remove()}),a("#grid-pages-panel").on("click",".layout-form-field .icon-remove",function(){var b=a(this),c=b.parent(),d=a("#"+c.data("config"));c.slideUp(100,function(){a(this).remove()}),d.slideUp(100,function(){a(this).remove()})}),a(document).on("click",".layout-form-field .dashicons-admin-page",function(){var b=a(this),d=b.parent(),e=d.data("config"),f=a("#"+e).formJSON(),g=b.closest(".column-container"),h=d.clone().css("display",""),i={};d.hasClass("field-edit-open")&&(d.removeClass("field-edit-open"),h.removeClass("field-edit-open"),a(".caldera-editor-field-config-wrapper").hide()),f.config.fields[e]&&(i=f.config.fields[e],delete i.ID),c(h,g,i)}),a(document).on("click",".layout-form-field .icon-edit",function(){var b=a(this),c=b.parent(),d=a("#"+c.data("config")+"_type").val();a(".caldera-editor-field-config-wrapper").hide(),c.hasClass("field-edit-open")?c.removeClass("field-edit-open"):(a(".layout-form-field").removeClass("field-edit-open"),c.addClass("field-edit-open"),a("#"+c.data("config")).show()),a(document).trigger("show."+c.data("config")),a(document).trigger("show.fieldedit"),"radio"!==d&&"checkbox"!==d&&"dropdown"!==d&&"toggle_switch"!==d||a("#"+c.data("config")+"_auto").trigger("change")}),a("body").on("click",".layout-modal-edit-closer,.layout-modal-save-action",function(b){b.preventDefault();var c=a(this),d=a(".layout-form-field.edit-open"),e=c.closest(".layout-modal-container");settings=e.find(".settings-panel").first(),a(".edit-open").removeClass("edit-open"),settings.appendTo(d.find(".settings-wrapper")).hide(),e.hide()}),a(".layout-editor-body").on("change",".layout-core-pod-query",function(){a(this).parent().find(".settings-panel-row").remove(),a(".edit-open").find(".drag-handle .set-pod").html(" - "+a(this).val())}),a(".layout-editor-body").on("click",".remove-where",function(){a(this).closest(".settings-panel-row").remove()}),a(".layout-editor-body").on("click",".use-pod-container",function(){var b=a(this),c=b.prev(),d=c.val();if(d.length){a(".edit-open").find(".drag-handle .set-pod").html(" - "+c.val()),b.parent().parent().find(".spinner").css("display","inline-block");var e={action:"pq_loadpod",pod_reference:{pod:d}};a.post(cfAdminAJAX,e,function(c){b.parent().find(".spinner").css("display","none");var d=a("#where-line-tmpl").html(),e="",f=b.closest(".settings-panel").data("container");for(var g in c)e+='<option value="'+c[g]+'">'+c[g]+"</option>";d=d.replace(/{{fields}}/g,e).replace(/{{container_id}}/g,f),b.parent().append(d)})}}),a(".caldera-editor-header").on("click",".column-sort .icon-edit",function(a){}),a(".layout-editor-body").on("tray_loaded",".layout-template-tray",function(){d()}),a(".caldera-editor-header").on("click",".caldera-editor-header-nav a",function(b){b.preventDefault();var c=a(this);a(".caldera-editor-header-nav li").removeClass("active"),a(".caldera-editor-body").hide(),a(c.attr("href")).show(),c.parent().addClass("active"),rebind_field_bindings()}),a("body").on("change",".required",function(){check_required_bindings(this)}),a("body").on("submit",".caldera-forms-options-form",function(b){a(".required.has-error").length&&b.preventDefault()}),a(".caldera-editor-body").on("click",".add-toggle-option",function(b){var c=a(this);if(c.data("bulk"))return a(c.data("bulk")).toggle(),void a(c.data("bulk")).find("textarea").focus();var d=c.closest(".caldera-editor-field-config-wrapper"),e=d.find(".toggle-options"),f=a("#field-option-row-tmpl").html(),g=Handlebars.compile(f),h="opt"+parseInt(1048576*(Math.random()+1)),i={_name:"config[fields]["+d.prop("id")+"][config]",option:{}};if(c.data("options")){for(var j=a(c.data("options")),k=j.val().split("\n"),l=!1,m=0;m<k.length;m++){var n=k[m],o=n,p=o.split("|");p.length>1&&(o=p[0],n=p[1],l=!0),i.option["opt"+parseInt(1048576*(Math.random()+m))]={value:o,calc_value:o,label:n,default:!1}}a(c.data("options")).parent().hide(),j.val(""),!0===l?d.find(".toggle_show_values").prop("checked",!0):d.find(".toggle_show_values").prop("checked",!1),e.empty()}else i.option[h]={value:"",label:"",calc_value:"",default:!1};a(".preset_options").val(""),e.append(g(i)),d.find(".toggle_show_values").trigger("change"),a(".toggle-options").sortable({handle:".dashicons-sort"}),k||e.find(".toggle_label_field").last().focus()}),a(".caldera-editor-body").on("change",".preset_options",function(b){var c=a(this),d=c.val(),e=a(c.data("bulk"));preset_options&&preset_options[d]&&preset_options[d].data&&("object"==typeof preset_options[d].data&&preset_options[d].data.length&&(preset_options[d].data=preset_options[d].data.join("\n")),e.val(preset_options[d].data))}),a(".caldera-editor-body").on("click",".toggle-remove-option",function(b){var c=a(this).closest(".caldera-editor-field-config-wrapper").find(".field-config").first();a(this).parent().remove(),c.trigger("change"),a(document).trigger("option.remove")}),a(".caldera-editor-body").on("click",".page-toggle",function(b){var c=a(this),d=c.parent(),e=d.find(".button");e.removeClass("button-primary"),a(".layout-grid-panel").hide().removeClass("page-active"),a("#"+c.data("page")).show().addClass("page-active"),c.addClass("button-primary"),e.each(function(b,c){a(c).html(d.data("title")+" "+(b+1))}),1===e.length&&d.hide()}),a(".caldera-editor-body").on("blur toggle.values",".toggle_label_field",function(b){var c=a(this),d=a('.toggle_value_field[data-opt="'+c.data("option")+'"]');d.is(":visible")||d.val(c.val())}),a(document).on("change focusout",".toggle_value_field",function(){a(document).trigger("show.fieldedit")}),a(document).on("show.fieldedit option.remove",function(b){a(".toggle_value_field.has-error").removeClass("has-error");for(var c=a("#"+a(".layout-form-field.field-edit-open").data("config")),d=c.find(".toggle_value_field"),e=c.find(".notice"),f=0,g=0;g<d.length;g++){for(var h=(d[g].value,0),i=0;i<d.length;i++)d[g]!==d[i]&&d[g].value===d[i].value&&(a(d[i]).addClass("has-error"),h++);h>0&&(a(d[g]).addClass("has-error"),f++)}f>0?(e.slideDown(),b.preventDefault()):e.slideUp()});var h=!1;focus_initial_field=function(b){var c=a(".layout-grid-panel .icon-edit").first();c.length?c.trigger("click"):(a(".layout-column.column-container").first().trigger("mouseover"),h=setInterval(e,500)),a(document).off("load.page",focus_initial_field)},a(document).on("load.page",focus_initial_field),cf_clear_puler=function(){h&&(clearTimeout(h),a(document).off("mouseover",".layout-new-form-field, .column-fieldinsert",cf_clear_puler)),a(".layout-new-form-field, .column-fieldinsert").fadeIn()},a(document).on("mouseover",".layout-new-form-field, .column-fieldinsert",cf_clear_puler),rebuild_field_binding(),a(document).trigger("load.page");var i,j=a(".new-processor-button");a("body").on("click",".caldera-processor-nav a",function(b){b.preventDefault();var c=a(this);a(".caldera-processor-nav").removeClass("active"),a(".caldera-editor-processor-config-wrapper").hide(),a(c.attr("href")).show(),c.parent().addClass("active")}),a("body").on("click",".add-new-processor",function(b){"object"==typeof i&&(j.removeClass("button-primary"),i.stopPulse());var c=a(this),d=Handlebars.compile(a("#processor-wrapper-tmpl").html());wrap=a(".active-processors-list"),process_conf=a(".caldera-editor-processor-config"),processid=Math.round(1e8*Math.random()),new_templ=Handlebars.compile(a("#processor-line-tmpl").html()),new_proc={id:"fp_"+processid,type:c.data("type")},wrap.append(new_templ(new_proc)),process_conf.append(d(new_proc)),a("#form_processor_baldrickModalCloser").trigger("click"),a(".caldera-processor-nav a").last().trigger("click"),a("#fp_"+processid+"_type").val(c.data("type")).trigger("change"),f(),baldrickTriggers()}),a("body").on("click",".delete-processor",function(b){var c=a(this),d=c.closest(".caldera-editor-processor-config-wrapper");d.data("type");confirm(c.data("confirm"))&&(a("."+d.prop("id")).remove(),d.remove(),a(".caldera-processor-nav a").first().trigger("click"),rebuild_field_binding())}),a("body").on("change",".caldera-select-processor-type",function(b){var c=a(this),d=c.closest(".caldera-editor-processor-config-wrapper"),e=c.find('option[value="'+c.val()+'"]').text(),f=d.find(".caldera-editor-processor-title"),h=a(".caldera-processor-nav.active a");""===e&&(e=f.data("title")),f.html(e),h.html(e+' <span class="processor-line-number"></span>').parent().addClass("processor_type_"+c.val()),g(this),rebuild_field_binding()}),a(document).on("click","#cf-shortcode-preview",function(){a(this).focus().select()}),a(document).on("change",".cf-email-preview-toggle",function(){var b=a(this),c=a(".caldera-header-email-preview-button");b.is(":checked")?c.show().attr("aria-hidden","false").css("visibility","visible"):c.hide().attr("aria-hidden","true").css("visibility","hidden")}),rebuild_field_binding(),a(".caldera-select-processor-type").each(function(a,b){g(b)}),f()}),Handlebars.registerHelper("_field",function(a){var b=this,c="",d="",e="",f=this[a.hash.slug]?' data-default="'+this[a.hash.slug]+'"':"";a.hash.required&&(c=" required"),a.hash.exclude&&(e='data-exclude="'+a.hash.exclude+'"'),a.hash.array&&(d="[]","true"!==a.hash.array&&(f='value="'+a.hash.array+'"')),out="<select "+(a.hash.type?'data-type="'+a.hash.type+'"':"")+f+" "+e+' name="'+this._name+"["+a.hash.slug+"]"+d+'" id="'+this._id+"_"+a.hash.slug+'" class="block-input field-config caldera-field-bind'+c+'">',this[a.hash.slug]?out+='<option class="bound-field" value="'+this[a.hash.slug]+'" class="bound-field"></option>':a.hash.required||(out+='<option value=""></option>');for(var g in current_form_fields){var h="";a.hash.type&¤t_form_fields[g].type!==a.hash.type||(b[a.hash.slug]&&b[a.hash.slug]===g&&(h=' selected="selected"'),out+='<option value="'+g+'"'+h+">"+current_form_fields[g].label+" ["+current_form_fields[g].slug+"]</option>")}return out+="</select>",a.hash.required&&(out+='<input class="field-config" name="'+this._name+'[_required_bounds][]" type="hidden" value="'+a.hash.slug+'">'),out}),Handlebars.registerHelper("console",function(a,b){console.log(this)});var revisions={};jQuery(document).ready(function(a){function b(b){var d=a(b),e=d.closest(".caldera-editor-field-config-wrapper"),f=e.find(".caldera-config-field-setup"),g=compiled_templates[d.val()+"_tmpl"]?compiled_templates[d.val()+"_tmpl"]:compiled_templates.noconfig_field_templ,h=e.find(".field_config_string").val(),i=d.data("type");if(e.find(".caldera-config-group").show(),d.addClass("field-initialized"),h=h.length&&i===d.val()?JSON.parse(h):fieldtype_defaults[d.val()+"_cfg"],h||(h={}),h._id=d.data("field"),h._name="config[fields]["+d.data("field")+"][config]",g=a("<div>").html(g(h)),f.html(g.html()),"function"==typeof window[d.val()+"_init"]&&window[d.val()+"_init"](d.data("field"),f),fieldtype_defaults[d.val()+"_nosupport"]&&(fieldtype_defaults[d.val()+"_nosupport"].indexOf("hide_label")>=0&&e.find(".hide-label-field").hide().find(".field-config").prop("checked",!1),fieldtype_defaults[d.val()+"_nosupport"].indexOf("caption")>=0&&e.find(".caption-field").hide().find(".field-config").val(""),fieldtype_defaults[d.val()+"_nosupport"].indexOf("required")>=0&&e.find(".required-field").hide().find(".field-config").prop("checked",!1),fieldtype_defaults[d.val()+"_nosupport"].indexOf("custom_class")>=0&&e.find(".customclass-field").hide().find(".field-config").val(""),fieldtype_defaults[d.val()+"_nosupport"].indexOf("entry_list")>=0&&e.find(".entrylist-field").hide().find(".field-config").prop("checked",!1)),e.find(".toggle_show_values").trigger("change"),!a(".caldera-select-field-type").not(".field-initialized").length){if(core_form||(core_form=jQuery(".caldera-forms-options-form")),core_form.hasClass("builder-loaded"))c(d.data("field"));else{for(var j=a(".caldera-select-field-type.field-initialized"),k=0;k<j.length;k++)c(a(j[k]).data("field"));core_form.addClass("builder-loaded")}a(".caldera-header-save-button").prop("disabled",!1),rebuild_field_binding(),baldrickTriggers()}a(".color-field").length&&a(".color-field").wpColorPicker({change:function(b){var c=a(this);c.data("ev")&&clearTimeout(c.data("ev")),c.data("ev",setTimeout(function(){c.trigger("record")},200)),c.data("target")&&(a(c.data("target")).css(c.data("style"),c.val()),a(c.data("target")).val(c.val()))}})}function c(b){var c=a("#"+b),d=c.find(".caldera-select-field-type"),e=a('.layout-form-field[data-config="'+b+'"]'),f=e.find(".field_preview"),g=(a("#preview-"+d.val()+"_tmpl").html(),compiled_templates["preview-"+d.val()+"_tmpl"]),h={id:b};c.find(".field-config").each(function(c,d){for(var e=a(d),f=e.prop("name").split("["+b+"]")[1].substr(1),g=f.substr(0,f.length-1).split("]["),i=e.is(":checkbox,:radio")?e.filter(":checked").val():e.val(),j={},k=g.length-1;k>=0;k--)if(k===g.length-1)j[g[k]]=i;else{var l=j;j={},j[g[k]]=l}a.extend(!0,h,j)}),f.html(g(h)),e.removeClass("button"),a(".preview-field-config").prop("disabled",!0)}function d(b){var c,d=a(".caldera-editor-fields-panel"),e=(a(".caldera-editor-groups-panel"),a(".caldera-group-nav")),f=a('[data-group="'+b+'"]'),g=f.find(".caldera-config-group-name"),h=f.find(".caldera-config-group-slug"),i=f.find(".caldera-config-group-desc"),j=f.find(".caldera-config-group-admin"),k=a(".active-group-name"),l=a(".active-group-slug"),m=a(".active-group-desc"),n=a(".active-group-admin"),o=a(".caldera-editor-fields-list ul"),p=f.find(".caldera-config-group-repeat"),q=a(".repeat-config-button"),r=(a(".caldera-editor-group-settings"),a(".caldera-config-group-remove"));a(".new-group-input").remove(),a(".new-field-input").remove(),e.removeClass("active"),d.show(),o.hide(),o.removeClass("active").find("li.active").removeClass("active"),o.hide(),f.addClass("active"),c=a(".caldera-editor-fields-list ul.active li"),c.length?r.hide():r.show(),a(".caldera-editor-field-config-wrapper").hide(),f.show(),k.val(g.val()),l.val(h.val()),m.val(i.val()),"1"===j.val()?n.prop("checked",!0):n.prop("checked",!1),"1"===p.val()?q.addClass("field-edit-open"):q.removeClass("field-edit-open")}a(".caldera-header-save-button").baldrick({method:"POST",request:"admin.php?page=caldera-forms",before:function(b,c){if(c.preventDefault(),!check_required_bindings())return!1;a("#save_indicator").addClass("loading"),"undefined"!=typeof tinyMCE&&tinyMCE.triggerSave();var d=a(".caldera-forms-options-form").formJSON();return d.conditions&&(d.config.conditional_groups={conditions:d.conditions}),a(b).data("cf_edit_nonce",d.cf_edit_nonce),a(b).data("_wp_http_referer",d._wp_http_referer),a(b).data("sender","ajax"),a(b).data("config",JSON.stringify(d.config)),!0},callback:function(b){if(!1===b.data){var c=a(".updated_notice_box");c.stop().animate({top:0},200,function(){setTimeout(function(){c.stop().animate({top:-75},200)},2e3)})}},complete:function(b){a(".wrapper-instance-pane .field-config").prop("disabled",!1)}}),a("body").on("click",".toggle_processor_event input",function(b){var c=a(this),d=c.closest(".wrapper-instance-pane"),e=d.find(".caldera-config-processor-setup"),f=d.find(".caldera-config-processor-notice");c.is(":checked")?(c.parent().addClass("activated"),c.parent().find(".is_active").show().attr("aria-hidden",!1).css("visibility","visible"),c.parent().find(".not_active").hide().attr("aria-hidden",!0).css("visibility","hidden")):(c.parent().removeClass("activated"),c.parent().find(".is_active").hide().attr("aria-hidden",!0).css("visibility","hidden"),c.parent().find(".not_active").show().attr("aria-hidden",!1).css("visibility","visible")),d.find(".toggle_processor_event .activated").length?(e.slideDown(100),f.slideUp(100)):(e.slideUp(100),f.slideDown(100))}),a("body").on("click",".toggle_option_tab > a",function(b){b.preventDefault();var c=a(this),d=a(c.attr("href")),e=c.parent().find("a"),f=c.closest(".caldera-editor-config-wrapper").find(".wrapper-instance-pane");e.removeClass("button-primary"),f.hide(),d.show(),c.addClass("button-primary"),a(".caldera-conditionals-usetype").trigger("change")}),a(".caldera-editor-body").on("change",".caldera-select-field-type",function(a){b(this)}),a(".caldera-editor-body").on("click",".caldera-group-nav a",function(b){b.preventDefault(),d(a(this).attr("href").substr(1))}),a(".caldera-editor-body").on("click",".caldera-editor-fields-list a",function(b){b.preventDefault();var c=a(this),d=a(c.attr("href"));a(".new-group-input").remove(),a(".new-field-input").remove(),a(".caldera-editor-fields-list li.active").removeClass("active"),c.parent().addClass("active"),a(".caldera-editor-field-config-wrapper").hide(),d.show()}),a(".caldera-editor-body").on("click",".group-config-button",function(b){var c=a(this),d=a(".caldera-editor-group-settings"),e=c.closest(".caldera-editor-fields-panel"),f=a(".caldera-config-group-remove");e.find(".caldera-field-line").length?f.hide():f.show(),c.hasClass("field-edit-open")?(d.slideUp(100),c.removeClass("field-edit-open")):(d.slideDown(100),c.addClass("field-edit-open"))}),a(".caldera-editor-body").on("keydown",".field-config",function(b){a(this).is("textarea")||13===b.which&&b.preventDefault()}),a(".caldera-editor-body").on("change",".field-label",function(b){var c=a(this).closest(".caldera-editor-field-config-wrapper").prop("id");field_line=a('[data-field="'+c+'"]'),field_title=a("#"+c+" .caldera-editor-field-title, .layout-form-field.field-edit-open .layout_field_name"),slug=a("#"+c+" .field-slug"),field_line.find("a").html('<i class="icn-field"></i> '+this.value),field_title.text(this.value),"change"===b.type&&slug.trigger("change"),rebuild_field_binding()}),a(".caldera-editor-body").on("change",".active-group-name",function(b){b.preventDefault();var c=a(".caldera-group-nav.active"),d=(c.data("group"),c.find(".caldera-config-group-name")),e=c.find("span");"focusout"!==b.type||this.value.length||(this.value="Group "+(parseInt(c.index())+1)),d.val(this.value),e.text(this.value)}),a(".caldera-editor-body").on("change",".active-group-slug",function(b){b.preventDefault();var c=a(".caldera-group-nav.active"),d=(c.data("group"),c.find(".caldera-config-group-name").val()),e=c.find(".caldera-config-group-slug"),f=(c.find("span"),this.value.split(" ").join("_").split("-").join("_").replace(/[^a-z0-9_]/gi,"").toLowerCase());"focusout"!==b.type||this.value.length||(f=d.split(" ").join("_").split("-").join("_").replace(/[^a-z0-9_]/gi,"").toLowerCase()),e.val(f),this.value=f}),a(".caldera-editor-body").on("change",".active-group-desc",function(b){b.preventDefault();var c=a(".caldera-group-nav.active");(c.data("group"),c.find(".caldera-config-group-desc")).val(this.value)}),a(".caldera-editor-body").on("change",".active-group-admin",function(b){b.preventDefault();var c=a(".caldera-group-nav.active"),d=(c.data("group"),c.find(".caldera-config-group-name").val(),c.find(".caldera-config-group-admin"));c.find("span"),this.value.split(" ").join("_").split("-").join("_").replace(/[^a-z0-9_]/gi,"").toLowerCase(),a(this).prop("checked")?(d.val(1),c.addClass("is-admin")):(d.val(0),c.removeClass("is-admin"))}),a(".caldera-editor-body").on("click",".repeat-config-button",function(b){b.preventDefault();var c=a(".caldera-group-nav.active"),d=(c.data("group"),c.find("a .group-type")),e=c.find(".caldera-config-group-repeat"),f=a(this);f.hasClass("field-edit-open")?(e.val("0"),d.removeClass("icn-repeat").addClass("icn-folder"),f.removeClass("field-edit-open")):(e.val("1"),d.addClass("icn-repeat").removeClass("icn-folder"),f.addClass("field-edit-open"))}),a(".caldera-editor-body").on("click",".delete-field",function(){var b=a(this),c=b.closest(".caldera-editor-field-config-wrapper").prop("id");confirm(b.data("confirm"))&&(a("#"+c).remove(),a('option[value="'+c+'"]').remove(),a('[data-bind="'+c+'"]').remove(),delete current_form_fields[c],a('[data-config="'+c+'"]').slideUp(200,function(){a(this).remove(),rebuild_field_binding(),a(document).trigger("field.removed")}))}),a(".caldera-editor-body").on("click",".add-new-group,.add-field",function(){var b=a(this);if(a(".new-group-input").remove(),a(".new-field-input").remove(),b.hasClass("add-field")){a('<input type="text" class="new-field-input block-input">').appendTo(a(".caldera-editor-fields-list ul.active")).focus()}else{a('<input type="text" class="new-group-input block-input">').appendTo(a(".caldera-editor-groups-panel")).focus()}}),a(".caldera-editor-body").on("change keypress",".new-group-input",function(b){if("keypress"===b.type){if(13!==b.which)return;b.preventDefault()}var c,e,f=this.value,g=a(this),h=a(".caldera-editor-groups-panel ul"),i=a(".caldera-editor-fields-list");if(f.length){c=Handlebars.compile(a("#caldera_group_line_templ").html()),e={id:f.split(" ").join("_").split("-").join("_").replace(/[^a-z0-9_]/gi,"").toLowerCase(),name:f},h.append(c(e));a('<ul data-group="'+e.id+'">').hide().appendTo(i),g.remove(),d(e.id)}else g.remove()}),a(".caldera-editor-body").on("change keypress",".new-field-input",function(b){if("keypress"===b.type){if(13!==b.which)return;b.preventDefault()}var c,d,e,f=this.value,g=a(this),h=g.parent(),i=a(".caldera-editor-field-config"),j=a(".caldera-config-group-remove");if(f.length){j.hide(),c=Handlebars.compile(a("#caldera_field_line_templ").html()),d=Handlebars.compile(a("#caldera_field_config_wrapper_templ").html()),e={id:f.split(" ").join("_").split("-").join("_").replace(/[^a-z0-9_]/gi,"").toLowerCase(),label:f,slug:f.split(" ").join("_").split("-").join("_").replace(/[^a-z0-9_]/gi,"").toLowerCase(),group:a(".caldera-group-nav.active").data("group")};var k=a(c(e));k.appendTo(h),i.append(d(e)),k.find("a").trigger("click"),g.remove()}else g.remove()}),a(".caldera-editor-body").on("change",".field-slug",function(b){this.value.length?this.value=this.value.split(" ").join("_").split("-").join("_").replace(/[^a-z0-9_]/gi,"").toLowerCase():"change"===b.type&&(this.value=a(this).closest(".caldera-editor-field-config-wrapper").find(".field-label").val().split(" ").join("_").split("-").join("_").replace(/[^a-z0-9_]/gi,"").toLowerCase())}),a(".caldera-editor-body").on("click",".caldera-add-group",function(b){var c=a(this),d=c.data("group"),e=a("#"+d+"_panel_tmpl").html();c.parent().parent().append(e)}),a(".caldera-editor-body").on("click",".caldera-config-group-remove",function(b){var c=a(".active-group-slug").val();a('[data-group="'+c+'"]').hide(0,function(){a(this).remove();var b=a(".caldera-group-nav");b.length?b.first().find("a").trigger("click"):a(".caldera-editor-fields-panel").hide()})}),a("body").on("click",".set-current-field",function(b){b.preventDefault();var c=a(this);a("#"+c.data("field")+"_type").val(c.data("type")).trigger("change"),a("#"+c.data("field")+"_lable").focus(),a("#field_setup_baldrickModalCloser").trigger("click")}),a(".caldera-editor-body").on("change record",".field-config",function(b){var d=a(this),e=d.closest(".caldera-editor-field-config-wrapper");current_form_fields&&(d.prop("id")===e.prop("id")+"_lable"&&(current_form_fields[e.prop("id")].label=this.value),d.prop("id")===e.prop("id")+"_slug"&&(current_form_fields[e.prop("id")].slug=this.value),d.prop("id")===e.prop("id")+"_type"&&(current_form_fields[e.prop("id")].type=this.value),e.length&&c(e.prop("id")))}),a(".caldera-editor-body").on("focus",".caldera-field-bind",function(b){var c=a(this),d=this.value;if(b.type&&"focusin"===b.type)return c.removeClass("bound_field").addClass("reload-binding"),rebind_field_bindings(),void(this.value=d)}),a(".caldera-editor-body").on("change",".caldera-conditional-field-set",function(b){var c,d,e=a(this),f=e.parent().find(".compare-type"),g=e.data("condition"),h=e.data("id"),i="config["+g+"]["+h+"][conditions][group]["+e.data("row")+"]["+e.data("line")+"]",j=e.data("line"),k=a("#"+j+"_value"),l=k.find(".caldera-conditional-value-field").first(),m=[],n=this.value;if("{"!==n.substr(0,1)&&(c=a("#"+n),d=c.find(".field-button-type"),
|
3 |
-
m=c.find(".caldera-config-group-toggle-options")),e.hasClass(".bind_init")&&e.addClass("bound_triggered"),l.length&&l.val().length&&k.data("value",l.val()),f.show(),m.length){var o=m.find(".toggle_option_row"),p='<select name="'+i+'[value]" class="caldera-processor-value-bind caldera-conditional-value-field" data-field="'+n+'" style="max-width: 220px; width: 220px;">';p+='<option value=""></option>',o.each(function(b,c){var d=a(c).find(".toggle_label_field"),e=d.data("option"),f="";k.data("value")&&(k.data("value").toString()!==e&&k.data("value").toString()!==a(c).find(".toggle_value_field").val()||(f=' selected="selected"')),p+='<option value="'+e+'"'+f+">"+d.val()+"</option>"}),p+="</select>"}else d&&"button"==d.val()?(f.val("is").hide(),p='<select name="'+i+'[value]" class="caldera-processor-value-bind caldera-conditional-value-field" data-field="'+n+'" style="max-width: 220px; width: 220px;">',p+='<option value="click" '+("click"===k.data("value")?'selected="selected"':"")+">Click</option>",p+='<option value="dblclick" '+("dblclick"===k.data("value")?'selected="selected"':"")+">Double Click</option>",p+="</select>"):p='<input name="'+i+'[value]" type="text" class="caldera-conditional-value-field magic-tag-enabled" value="'+(k.data("value")?k.data("value"):"")+'" style="max-width: 205px;">';k.html(p),init_magic_tags()}),a(".caldera-editor-body").on("change",".caldera-conditionals-usetype",function(b){var c=a(this);"show"===this.value||"hide"===this.value||"disable"===this.value||"use"===this.value||"not"===this.value?(a("#"+c.data("id")+"_condition_group_add").show(),a("#"+c.data("id")+"_conditional_wrap").show()):(a("#"+c.data("id")+"_condition_group_add").hide(),a("#"+c.data("id")+"_conditional_wrap").hide())}),a(".caldera-editor-body").on("click",".remove-conditional-line",function(b){b.preventDefault();var c=a(this),d=c.closest(".caldera-condition-line"),e=c.closest(".caldera-condition-group");d.remove(),e.find(".caldera-condition-line").length||e.remove()}),a(".caldera-group-nav").first().find("a").trigger("click"),a(".caldera-editor-body").on("change",".toggle_show_values",function(b){var c=a(this),d=c.closest(".caldera-config-group-toggle-options");values=d.find(".toggle_value_field"),lables=d.find(".toggle_label_field"),field_lables=d.find(".caldera-config-group-option-labels"),c.prop("checked")?(values.show().parent().show(),values.show().parent().parent().show(),lables.css("width",""),field_lables.show()):(values.hide().parent().hide(),lables.css("width",245),field_lables.hide()),lables.trigger("toggle.values"),init_magic_tags()}),a(".caldera-editor-body").on("change",".auto-populate-type",function(){a(this).closest(".wrapper-instance-pane").find(".auto-populate-options").trigger("change")}),a(".caldera-editor-body").on("change",".auto-populate-options",function(){var b=a(this),c=b.closest(".wrapper-instance-pane"),d=c.find(".caldera-config-group-toggle-options"),e=c.find(".caldera-config-group-auto-options"),f=e.find(".auto-populate-type");e.find(".auto-populate-type-panel").hide(),b.prop("checked")?(d.hide(),e.show()):(d.show(),e.hide()),e.find(".caldera-config-group-auto-"+f.val()).show()}),a("body").on("change",".pin-toggle-roles",function(){var b=a(this),c=a("#caldera-pin-rules");"1"===b.val()?c.show():c.hide()}),a("body").on("click",".magic-tag-init",function(b){a(this).prev().focus().trigger("init.magic")}),a("body").on("keyup focus select click init.magic",".magic-tag-enabled",function(b){init_magic_tags();var c=a(this),d=c.parent(),e=d.closest(".wrapper-instance-pane").find(".caldera-select-field-type").val()?d.closest(".wrapper-instance-pane").find(".caldera-select-field-type").val():"hidden",f=d.find(".magic-tags-autocomplete"),g=f.find("ul"),h=this.value,i=[],j="",k=this.selectionStart,l=this.selectionEnd;if(f.length&&f.data("focus"))return void b.preventDefault();if(c.data("tag",""),this.selectionEnd>this.selectionStart)j=this.value.substr(this.selectionStart,this.selectionEnd-this.selectionStart);else if(("select"===b.type||"keyup"===b.type)&&40!==b.which&&38!==b.which&&39!==b.which&&37!==b.which){for(k=this.selectionStart;k>0;k--){var m=h.substr(k-1,1);if(" "===m||"\n"===m||("%"===m||"}"===m)&&this.selectionStart===k)break}for(l=this.selectionStart;l<h.length;l++){var m=h.substr(l,1);if(" "===m||"\n"===m||("%"===m||"{"===m)&&this.selectionStart===l)break}j=h.substr(k,l-k)}if("focusout"!==b.type){"init"!==b.type&&j.length<3&&f.length&&f.remove(),f.length||(f=a('<div class="magic-tags-autocomplete"></div>'),g=a("<ul></ul>"),g.appendTo(f),f.insertAfter(c),f.on("mouseenter",function(){a(this).data("focus",!0)}),f.on("mouseleave",function(){a(this).data("focus",!1),setTimeout(function(){f.remove()},200),c.is(":focus")||c.trigger("focusout")})),g.empty();var n="system",o=!1;"hidden"===e||"dropdown"===e||"radio"===e||"toggle_switch"===e||"checkbox"===e?(o=!0,e="text",n="all"):"paragraph"!==e&&"html"!==e||(e="text"),c.data("type")&&(e=c.data("type")),e=e.split(","),e.push("vars");for(var p=0;p<e.length;p++)for(var q in system_values)if(void 0!==system_values[q].tags&&void 0!==system_values[q].tags[e[p]]){if(i=[q],"system"!==q&&"variable"!==q&&"field"!==q){var r=jQuery(".processor-"+q),s=c.closest(".caldera-editor-processor-config-wrapper"),t=s.prop("id");i=[];for(var u=0;u<r.length;u++)if(s.length||!0!==o){if(t===r[u].id)continue;jQuery("li."+r[u].id).index()<jQuery("li."+t).index()&&i.push(r[u].id)}else i.push(r[u].id)}for(var v=0;v<i.length;v++)if("all"===n||n===q||"variable"===q){var w=a('<li class="header">'+system_values[q].type+(v>0?" ["+(v+1)+"]":"")+"</li>"),x=0;w.appendTo(g);for(var y=0;y<system_values[q].tags[e[p]].length;y++)if(!c.data("parent")||"variable:"+c.data("parent")!==system_values[q].tags[e[p]][y]){var z=system_values[q].wrap[0]+system_values[q].tags[e[p]][y]+system_values[q].wrap[1];if(i[v]!==q&&i.length>1&&(z=system_values[q].wrap[0]+system_values[q].tags[e[p]][y]+":"+i[v]+system_values[q].wrap[1]),z.indexOf(j)>=0||"init"===b.type){x+=1;var A=z.replace(j,"<strong>"+j+"</strong>"),B=a('<li class="tag" data-tag="'+z+'">'+A+"</li>");B.on("click",function(){var b=a(this).data("tag");c.val(h.substr(0,k)+b+h.substr(l)).trigger("change").focus(),c[0].selectionStart=k+b.length-(b.indexOf("*")>0?2:0),c[0].selectionEnd=k+b.length-(b.indexOf("*")>0?1:0),l=k=c[0].selectionEnd,h+=b,c.trigger("init.magic")}),B.appendTo(g)}}0===x&&w.remove()}}}g.children().length||f.remove(),"focusout"===b.type&&setTimeout(function(){f.remove()},200)});for(var e=a(".cf-editor-template"),f=0;f<e.length;f++)compiled_templates[e[f].id]=Handlebars.compile(e[f].innerHTML);a(".caldera-select-field-type").not(".field-initialized").each(function(a,c){b(c)})});var rebuild_field_binding,rebind_field_bindings,current_form_fields={},required_errors={},add_new_grid_page,add_page_grid,init_magic_tags,core_form,compiled_templates={};init_magic_tags=function(){jQuery(".magic-tag-enabled").each(function(a,b){var c=jQuery(b);if(c.hasClass("magic-tag-init-bound")){var d=c.parent().find(".magic-tag-init");return void(c.is(":visible")?d.show():d.hide())}var e=jQuery('<span class=""></span>'),f=jQuery('<span style="position:relative;display:inline-block; width:100%;"></span>');c.is("input")&&e.css("borderBottom","none"),c.hasClass("caldera-conditional-value-field")&&f.width("auto"),c.wrap(f),e.insertAfter(c),c.addClass("magic-tag-init-bound"),c.is(":visible")?e.show():e.hide()})},rebuild_field_binding=function(){if(core_form||(core_form=jQuery(".caldera-forms-options-form")),core_form.hasClass("builder-loaded")){var a=jQuery(".caldera-editor-field-config-wrapper");system_values.field={tags:{text:[]},type:"Fields",wrap:["%","%"]};for(var b=0;b<a.length;b++){var c=a[b].id,d=jQuery("#"+c+"_lable").val(),e=jQuery("#"+c+"_slug").val(),f=jQuery("#"+c+"_type").val();void 0===system_values.field.tags[f]&&(system_values.field.tags[f]=[]),system_values.field.tags[f].push(e),"text"!==f&&system_values.field.tags.text.push(e),current_form_fields[c]={label:d,slug:e,type:f},jQuery("option.bound-field").trigger("change").each(function(a,b){var c=jQuery(b);0!==c.prop("value").indexOf("{")?c.text(jQuery("#"+c.prop("value")+"_lable").val()+" ["+jQuery("#"+c.prop("value")+"_lable").val()+"]"):c.text(c.prop("value").replace("{","").replace("}",""))}).removeClass("bound-field")}}},rebind_field_bindings=function(){var a,b,c=jQuery(".caldera-field-bind").not(".bound_field");if(c.length){c.addClass("bound_field");for(var d=0;d<c.length;d++){var e=jQuery(c[d]),f=e.val(),g=e.data("default"),h=e.data("exclude"),i=0,j=e.closest(".caldera-editor-processor-config-wrapper"),k=j.prop("id"),l="";if(g&&!e.hasClass("reload-binding")&&(f=g),e.is("select")){e.empty();var m=jQuery('<optgroup label="Fields">');for(var n in current_form_fields)e.data("type")&&e.data("type").split(",").indexOf(current_form_fields[n].type)<0||(e.data("id")!==n&&m.append('<option value="'+n+'"'+(f===n?'selected="selected"':"")+">"+current_form_fields[n].label+" ["+current_form_fields[n].slug+"]</option>"),i+=1);m.appendTo(e),0===i&&e.empty();for(var o in system_values)if(a=[],!(h&&h.split(",").indexOf(o)>=0)){if("system"!==o&&"variable"!==o)for(var p=jQuery(".processor-"+o),q=0;q<p.length;q++)k!==p[q].id&&(a.push(p[q].id),p.length>1&&(b=jQuery("li."+p[q].id+" .processor-line-number"))&&b.html("["+(q+1)+"]"));else a.push("__system__");var r=[];e.data("type")?(r=e.data("type").split(","),r.push("vars")):r=["text","vars"];for(var s=0;s<r.length;s++)if(system_values[o].tags&&system_values[o].tags[r[s]])for(var t=0;t<a.length;t++){jQuery("li."+a[t]).index()>jQuery("li."+k).index()&&"__system__"!==a[t]?e.closest(".caldera-editor-processors-panel-wrap").length&&(l=' disabled="disabled"'):l="";for(var m=jQuery('<optgroup label="'+system_values[o].type+("__system__"!==a[t]?" "+jQuery("li."+a[t]).find(".processor-line-number").html():"")+'"'+l+">"),u=0;u<system_values[o].tags[r[s]].length;u++){var v=system_values[o].tags[r[s]][u];"__system__"!==a[t]&&(v=v.replace(o,a[t])),m.append('<option value="{'+v+'}"'+(f==="{"+v+"}"?'selected="selected"':"")+l+">"+system_values[o].tags[r[s]][u]+"</option>"),i+=1}m.children().length&&m.appendTo(e)}}if(0===i){if(e.empty(),e.data("type")){e.append('<option value="">No '+e.data("type").split(",").join(" or ")+" in form</option>");var w=!0}}else e.prop("disabled",!1);e.hasClass("required")||void 0!==w||e.prepend('<option value=""></option>'),e.val(f)}}init_magic_tags(),jQuery(document).trigger("bound.fields"),jQuery(".caldera-header-save-button").prop("disabled",!1)}},jQuery(document).ready(function(a){function b(){var b=a(".layout-grid-panel"),c=0;b.each(function(b,d){var e=a(d),f=e.find(".layout-structure"),g=e.find(".row"),h=[];g.each(function(b,d){var e=a(d),f=e.children().not(".column-merge"),g=[];c+=1,f.each(function(b,d){span=a(d).attr("class").split("-"),g.push(span[2]);var e=a(d).find(".field-location");e.length&&e.each(function(d,e){a(e).val(c+":"+(b+1)).removeAttr("disabled")})}),h.push(g.join(":"))}),f.val(h.join("|"))})}function c(b,c,e){var f,g,h="fld_"+Math.round(1e7*Math.random()),i=h,j=a("#field_config_panels");b.prop("id","").prop("title",""),f=Handlebars.compile(a("#caldera_field_config_wrapper_templ").html()),g=a.extend({},{id:i,label:"",slug:""},e),g.slug="",j.append(f(g)),b.removeClass("button-small").removeClass("button").removeClass("button-primary").removeClass("ui-draggable").removeClass("layout-new-form-field").addClass("layout-form-field").attr("data-config",h).css({display:"",opacity:""}),b.find(".layout_field_name").remove(),b.find(".field-location").prop("name","config[layout_grid][fields]["+h+"]"),b.find(".settings-panel").show(),b.appendTo(c),d(),b.find(".icon-edit").trigger("click"),a("#"+h+"_lable").focus().select(),baldrickTriggers(),a(document).trigger("field.added"),e?a("#"+i+"_type").data("type",g.type).trigger("change"):a("#"+h).trigger("field.drop"),rebuild_field_binding()}function d(){a(".toggle-options").sortable({handle:".dashicons-sort"}),a("#grid-pages-panel").sortable({placeholder:"row-drop-helper",handle:".sort-handle",items:".first-row-level",axis:"y",stop:function(){b()}}),a(".layout-column").sortable({connectWith:".layout-column",appendTo:"#grid-pages-panel",helper:"clone",items:".layout-form-field",handle:".drag-handle",cursor:"move",opacity:.7,cursorAt:{left:100,top:15},start:function(a,b){b.helper.css({width:"200px",height:"35px",paddingTop:"20px"})},stop:function(a,c){c.item.removeAttr("style"),b()}}),a("h3 .layout-new-form-field").draggable({helper:"clone",appendTo:"body"}),a(".page-toggle.button").droppable({accept:".layout-form-field",over:function(b,c){a(this).trigger("click"),a(".layout-column").sortable("refresh")}}),a(".layout-column").droppable({greedy:!0,activeClass:"ui-state-dropper",hoverClass:"ui-state-hoverable",accept:".layout-new-form-field",drop:function(b,d){c(d.draggable.clone(),a(this))}}),b()}function e(){if(h){var b=a(".column-fieldinsert");b.length?(b.stop().fadeToggle(700),a(".layout-new-form-field").stop().fadeToggle(700)):cf_clear_puler()}}function f(){a(".caldera-editor-processors-panel ul").sortable({update:function(){rebuild_field_binding()}})}function g(b){var c=a(b),d=a("#"+c.val()+"-tmpl").length?a("#"+c.val()+"-tmpl").html():"",e=c.closest(".caldera-editor-processor-config-wrapper"),f=e.find(".caldera-config-processor-setup"),g=Handlebars.compile(d),h=e.find(".processor_config_string").val(),i=c.data("type");h=h.length&&i===c.val()?JSON.parse(h):processor_defaults[c.val()+"_cfg"],h||(h={}),h._id=e.prop("id"),h._name="config[processors]["+e.prop("id")+"][config]",g=a("<div>").html(g(h)),f.html(g.html()),"function"==typeof window[c.val()+"_init"]&&window[c.val()+"_init"](e.prop("id"),f),e.find(".no-conditions").length&&e.find(".toggle_option_tab").remove(),rebuild_field_binding(),baldrickTriggers(),a(".wp-baldrick").baldrick({request:ajaxurl,method:"POST",before:function(b){var c=a(b);c.data("addNode")&&!c.data("request")&&c.data("request","cf_get_default_setting")}})}add_new_grid_page=function(a){return{page_no:"pg_"+Math.round(1e7*Math.random())}},add_page_grid=function(b){var c=a(".page-toggle").length+1,e=a('<button type="button" data-name="Page '+c+'" data-page="'+b.rawData.page_no+'" class="page-toggle button">'+b.params.trigger.data("addtitle")+" "+c+"</button> "),f=a("#page-toggles");e.appendTo(f),f.show(),d(),e.trigger("click"),1===c&&f.hide(),a(document).trigger("add.page")},a(document).on("remove.page add.page load.page",function(b){var c=a(".page-toggle").length,d=a("#tab_pages");c<=1?d.hide():d.show()}),d(),a("#grid-pages-panel").on("click",".column-fieldinsert .dashicons-plus-alt",function(b){var d=a(this).closest(".column-container");c(a("#newfield-tool").clone().css("display",""),d)}),a("#grid-pages-panel").on("click",".column-split",function(b){var c=a(this).parent().parent(),e=c.attr("class").split("-"),f=a("<div>").insertAfter(c),g=Math.ceil(e[2]/2),h=Math.floor(e[2]/2);e[2]=g,c.attr("class",e.join("-")),e[2]=h,f.addClass(e.join("-")).append('<div class="layout-column column-container">'),a(this).remove(),d(),jQuery(".column-tools").remove(),jQuery(".column-merge").remove()}),a("#grid-pages-panel").on("click",".column-remove",function(c){var d=a(this).closest(".row"),e=d.find(".layout-form-field"),f=d.closest(".layout-grid-panel");if(e.length){if(!confirm(a("#row-remove-fields-message").text()))return;e.each(function(b,c){var d=a(c).data("config");a("#"+d).remove(),a('option[value="'+d+'"]').remove(),a('[data-bind="'+d+'"]').remove(),delete current_form_fields[d]})}d.slideUp(200,function(){if(a(this).remove(),b(),rebuild_field_binding(),!f.find(".row").length){f.remove();var c=a("#page-toggles .button-primary"),d=c.prev(),e=c.next();c.remove(),d.length?d.trigger("click"):e.trigger("click")}a(document).trigger("remove.page")}),jQuery(".column-tools").remove(),jQuery(".column-merge").remove()}),a(".caldera-config-editor-main-panel").on("click",".caldera-add-row",function(c){if(c.preventDefault(),!a(".page-active").length)return void a(".caldera-add-page").trigger("click");var e=a('<div style="display:none;" class="first-row-level row"><div class="col-xs-12"><div class="layout-column column-container"></div></div></div>');a(".page-active").append(e),e.slideDown(200),d(),b()}),a("#grid-pages-panel").on("click",".column-join",function(c){var d=a(this).parent().parent().parent(),e=d.prev(),f=e.attr("class").split("-"),g=d.attr("class").split("-");f[2]=parseFloat(f[2])+parseFloat(g[2]),d.find(".layout-column").contents().appendTo(e.find(".layout-column")),e.attr("class",f.join("-")),d.remove(),b(),jQuery(".column-tools").remove(),jQuery(".column-merge").remove()}),a("#grid-pages-panel").on("mouseenter",".row",function(c){var d=jQuery(this);jQuery(".column-tools,.column-merge").remove(),d.children().children().first().append('<div class="column-remove column-tools"><i class="icon-remove"></i></div>'),d.children().children().last().append('<div class="column-sort column-tools" style="text-align:right;"><i class="dashicons dashicons-menu drag-handle sort-handle"></i></div>'),d.children().children().not(":first").prepend('<div class="column-merge"><div class="column-join column-tools"><i class="icon-join"></i></div></div>');var e=d.parent().parent().parent().width()/12-1;d.children().children().each(function(b,c){var d=a(c),e=d.width()/2-5;d.prepend('<div class="column-fieldinsert column-tools"><i class="dashicons dashicons-plus-alt"></i></div>'),d.parent().hasClass("col-xs-1")||(d.prepend('<div class="column-split column-tools"><i class="dashicons dashicons-leftright"></i></div>'),d.find(".column-split").css("left",e))}),jQuery(".column-merge").draggable({axis:"x",helper:"clone",appendTo:d,grid:[e,0],drag:function(c,d){a(this).addClass("dragging"),a(".column-tools").remove(),a(".column-split").remove();var e=a(this).parent().parent(),f=d.helper,g=d.originalPosition.left>f.position().left?"left":"right",h=e.prev(),i=Math.round(e.parent().width()/12-10),j=Math.abs(d.originalPosition.left-f.position().left);if(e.parent().addClass("sizing"),j>=i){var k=h.attr("class").split("-"),l=e.attr("class").split("-");k[2]=parseFloat(k[2]),l[2]=parseFloat(l[2]),"left"===g?(k[2]--,l[2]++,k[2]>0&&k[2]<k[2]+l[2]?(h.attr("class",k.join("-")),e.attr("class",l.join("-")),d.originalPosition.left=f.position().left):a(this).draggable("option","disabled",!0)):(k[2]++,l[2]--,l[2]>0&&l[2]<l[2]+l[2]?(h.attr("class",k.join("-")),e.attr("class",l.join("-")),d.originalPosition.left=f.position().left):a(this).draggable("option","disabled",!0)),b()}},stop:function(){a(this).removeClass("dragging").parent().parent().parent().removeClass("sizing")}})}),a("#grid-pages-panel").on("mouseleave",".row",function(a){jQuery(".column-tools").remove(),jQuery(".column-merge").remove()}),a("#grid-pages-panel").on("click",".layout-form-field .icon-remove",function(){var b=a(this),c=b.parent(),d=a("#"+c.data("config"));c.slideUp(100,function(){a(this).remove()}),d.slideUp(100,function(){a(this).remove()})}),a(document).on("click",".layout-form-field .dashicons-admin-page",function(){var b=a(this),d=b.parent(),e=d.data("config"),f=a("#"+e).formJSON(),g=b.closest(".column-container"),h=d.clone().css("display",""),i={};d.hasClass("field-edit-open")&&(d.removeClass("field-edit-open"),h.removeClass("field-edit-open"),a(".caldera-editor-field-config-wrapper").hide()),f.config.fields[e]&&(i=f.config.fields[e],delete i.ID),c(h,g,i)}),a(document).on("click",".layout-form-field .icon-edit",function(){var b=a(this),c=b.parent(),d=a("#"+c.data("config")+"_type").val();a(".caldera-editor-field-config-wrapper").hide(),c.hasClass("field-edit-open")?c.removeClass("field-edit-open"):(a(".layout-form-field").removeClass("field-edit-open"),c.addClass("field-edit-open"),a("#"+c.data("config")).show()),a(document).trigger("show."+c.data("config")),a(document).trigger("show.fieldedit"),"radio"!==d&&"checkbox"!==d&&"dropdown"!==d&&"toggle_switch"!==d||a("#"+c.data("config")+"_auto").trigger("change")}),a("body").on("click",".layout-modal-edit-closer,.layout-modal-save-action",function(b){b.preventDefault();var c=a(this),d=a(".layout-form-field.edit-open"),e=c.closest(".layout-modal-container");settings=e.find(".settings-panel").first(),a(".edit-open").removeClass("edit-open"),settings.appendTo(d.find(".settings-wrapper")).hide(),e.hide()}),a(".layout-editor-body").on("change",".layout-core-pod-query",function(){a(this).parent().find(".settings-panel-row").remove(),a(".edit-open").find(".drag-handle .set-pod").html(" - "+a(this).val())}),a(".layout-editor-body").on("click",".remove-where",function(){a(this).closest(".settings-panel-row").remove()}),a(".layout-editor-body").on("click",".use-pod-container",function(){var b=a(this),c=b.prev(),d=c.val();if(d.length){a(".edit-open").find(".drag-handle .set-pod").html(" - "+c.val()),b.parent().parent().find(".spinner").css("display","inline-block");var e={action:"pq_loadpod",pod_reference:{pod:d}};a.post(ajaxurl,e,function(c){b.parent().find(".spinner").css("display","none");var d=a("#where-line-tmpl").html(),e="",f=b.closest(".settings-panel").data("container");for(var g in c)e+='<option value="'+c[g]+'">'+c[g]+"</option>";d=d.replace(/{{fields}}/g,e).replace(/{{container_id}}/g,f),b.parent().append(d)})}}),a(".caldera-editor-header").on("click",".column-sort .icon-edit",function(a){}),a(".layout-editor-body").on("tray_loaded",".layout-template-tray",function(){d()}),a(".caldera-editor-header").on("click",".caldera-editor-header-nav a",function(b){b.preventDefault();var c=a(this);a(".caldera-editor-header-nav li").removeClass("active"),a(".caldera-editor-body").hide(),a(c.attr("href")).show(),c.parent().addClass("active"),rebind_field_bindings()}),a("body").on("change",".required",function(){check_required_bindings(this)}),a("body").on("submit",".caldera-forms-options-form",function(b){a(".required.has-error").length&&b.preventDefault()}),a(".caldera-editor-body").on("click",".add-toggle-option",function(b){var c=a(this);if(c.data("bulk"))return a(c.data("bulk")).toggle(),void a(c.data("bulk")).find("textarea").focus();var d=c.closest(".caldera-editor-field-config-wrapper"),e=d.find(".toggle-options"),f=a("#field-option-row-tmpl").html(),g=Handlebars.compile(f),h="opt"+parseInt(1048576*(Math.random()+1)),i={_name:"config[fields]["+d.prop("id")+"][config]",option:{}};if(c.data("options")){for(var j=a(c.data("options")),k=j.val().split("\n"),l=!1,m=0;m<k.length;m++){var n=k[m],o=n,p=o.split("|");p.length>1&&(o=p[0],n=p[1],l=!0),i.option["opt"+parseInt(1048576*(Math.random()+m))]={value:o,label:n,default:!1}}a(c.data("options")).parent().hide(),j.val(""),!0===l?d.find(".toggle_show_values").prop("checked",!0):d.find(".toggle_show_values").prop("checked",!1),e.empty()}else i.option[h]={value:"",label:"",default:!1};a(".preset_options").val(""),e.append(g(i)),d.find(".toggle_show_values").trigger("change"),a(".toggle-options").sortable({handle:".dashicons-sort"}),k||e.find(".toggle_label_field").last().focus()}),a(".caldera-editor-body").on("change",".preset_options",function(b){var c=a(this),d=c.val(),e=a(c.data("bulk"));preset_options&&preset_options[d]&&preset_options[d].data&&("object"==typeof preset_options[d].data&&preset_options[d].data.length&&(preset_options[d].data=preset_options[d].data.join("\n")),e.val(preset_options[d].data))}),a(".caldera-editor-body").on("click",".toggle-remove-option",function(b){var c=a(this).closest(".caldera-editor-field-config-wrapper").find(".field-config").first();a(this).parent().remove(),c.trigger("change"),a(document).trigger("option.remove")}),a(".caldera-editor-body").on("click",".page-toggle",function(b){var c=a(this),d=c.parent(),e=d.find(".button");e.removeClass("button-primary"),a(".layout-grid-panel").hide().removeClass("page-active"),a("#"+c.data("page")).show().addClass("page-active"),c.addClass("button-primary"),e.each(function(b,c){a(c).html(d.data("title")+" "+(b+1))}),1===e.length&&d.hide()}),a(".caldera-editor-body").on("blur toggle.values",".toggle_label_field",function(b){var c=a(this),d=c.prev();d.val().length||d.val(c.val())}),a(document).on("change focusout",".toggle_value_field",function(){a(document).trigger("show.fieldedit")}),a(document).on("show.fieldedit option.remove",function(b){a(".toggle_value_field.has-error").removeClass("has-error");for(var c=a("#"+a(".layout-form-field.field-edit-open").data("config")),d=c.find(".toggle_value_field"),e=c.find(".notice"),f=0,g=0;g<d.length;g++){for(var h=(d[g].value,0),i=0;i<d.length;i++)d[g]!==d[i]&&d[g].value===d[i].value&&(a(d[i]).addClass("has-error"),h++);h>0&&(a(d[g]).addClass("has-error"),f++)}f>0?(e.slideDown(),b.preventDefault()):e.slideUp()});var h=!1;focus_initial_field=function(b){var c=a(".layout-grid-panel .icon-edit").first();c.length?c.trigger("click"):(a(".layout-column.column-container").first().trigger("mouseover"),h=setInterval(e,500)),a(document).off("load.page",focus_initial_field)},a(document).on("load.page",focus_initial_field),cf_clear_puler=function(){h&&(clearTimeout(h),a(document).off("mouseover",".layout-new-form-field, .column-fieldinsert",cf_clear_puler)),a(".layout-new-form-field, .column-fieldinsert").fadeIn()},a(document).on("mouseover",".layout-new-form-field, .column-fieldinsert",cf_clear_puler),rebuild_field_binding(),a(document).trigger("load.page"),a("body").on("click",".caldera-processor-nav a",function(b){b.preventDefault();var c=a(this);a(".caldera-processor-nav").removeClass("active"),a(".caldera-editor-processor-config-wrapper").hide(),a(c.attr("href")).show(),c.parent().addClass("active")}),a("body").on("click",".add-new-processor",function(b){var c=a(this),d=Handlebars.compile(a("#processor-wrapper-tmpl").html());wrap=a(".active-processors-list"),process_conf=a(".caldera-editor-processor-config"),processid=Math.round(1e8*Math.random()),new_templ=Handlebars.compile(a("#processor-line-tmpl").html()),new_proc={id:"fp_"+processid,type:c.data("type")},wrap.append(new_templ(new_proc)),process_conf.append(d(new_proc)),a("#form_processor_baldrickModalCloser").trigger("click"),a(".caldera-processor-nav a").last().trigger("click"),a("#fp_"+processid+"_type").val(c.data("type")).trigger("change"),f(),baldrickTriggers()}),a("body").on("click",".delete-processor",function(b){var c=a(this),d=c.closest(".caldera-editor-processor-config-wrapper");d.data("type"),confirm(c.data("confirm"))&&(a("."+d.prop("id")).remove(),d.remove(),a(".caldera-processor-nav a").first().trigger("click"),rebuild_field_binding())}),a("body").on("change",".caldera-select-processor-type",function(b){var c=a(this),d=c.closest(".caldera-editor-processor-config-wrapper"),e=c.find('option[value="'+c.val()+'"]').text(),f=d.find(".caldera-editor-processor-title"),h=a(".caldera-processor-nav.active a");""===e&&(e=f.data("title")),f.html(e),h.html(e+' <span class="processor-line-number"></span>').parent().addClass("processor_type_"+c.val()),g(this),rebuild_field_binding()}),a(document).on("click","#cf-shortcode-preview",function(){a(this).focus().select()}),a(document).on("change",".cf-email-preview-toggle",function(){var b=a(this),c=a(".caldera-header-email-preview-button");b.is(":checked")?c.show().attr("aria-hidden","false").css("visibility","visible"):c.hide().attr("aria-hidden","true").css("visibility","hidden")}),rebuild_field_binding(),a(".caldera-select-processor-type").each(function(a,b){g(b)}),f()}),Handlebars.registerHelper("_field",function(a){var b=this,c="",d="",e="",f=this[a.hash.slug]?' data-default="'+this[a.hash.slug]+'"':"";a.hash.required&&(c=" required"),a.hash.exclude&&(e='data-exclude="'+a.hash.exclude+'"'),a.hash.array&&(d="[]","true"!==a.hash.array&&(f='value="'+a.hash.array+'"')),out="<select "+(a.hash.type?'data-type="'+a.hash.type+'"':"")+f+" "+e+' name="'+this._name+"["+a.hash.slug+"]"+d+'" id="'+this._id+"_"+a.hash.slug+'" class="block-input field-config caldera-field-bind'+c+'">',this[a.hash.slug]?out+='<option class="bound-field" value="'+this[a.hash.slug]+'" class="bound-field"></option>':a.hash.required||(out+='<option value=""></option>');for(var g in current_form_fields){var h="";a.hash.type&¤t_form_fields[g].type!==a.hash.type||(b[a.hash.slug]&&b[a.hash.slug]===g&&(h=' selected="selected"'),out+='<option value="'+g+'"'+h+">"+current_form_fields[g].label+" ["+current_form_fields[g].slug+"]</option>")}return out+="</select>",a.hash.required&&(out+='<input class="field-config" name="'+this._name+'[_required_bounds][]" type="hidden" value="'+a.hash.slug+'">'),out}),Handlebars.registerHelper("console",function(a,b){console.log(this)});
|
1 |
+
function new_conditional_group(a){var b=a.trigger.data("id"),c="cl"+Math.round(18746582734*Math.random());return{group:[{id:"rw"+Math.round(98347598345*Math.random()),type:a.trigger.data("type"),lines:[{id:c}]}],id:b}}function new_conditional_line(a){var b=a.trigger.data("id"),c=a.trigger.data("group"),d=a.trigger.data("type"),e="cl"+Math.round(18746582734*Math.random());return{id:b,type:d,lineid:e,rowid:c,name:"config["+d+"]["+b+"][conditions][group]["+c+"]["+e+"]"}}function build_conditions_config(a){var b=JSON.parse(a.trigger.val());return b.id=a.trigger.data("id"),b}function pre_compile_templates(){for(var a=jQuery(".cf-editor-template"),b=0;b<a.length;b++)compiled_templates[a[b].id]=Handlebars.compile(a[b].innerHTML)}function get_compiled_template(a){return"object"!=typeof compiled_templates&&pre_compile_templates(),compiled_templates[a+"_tmpl"]?compiled_templates[a+"_tmpl"]:compiled_templates.noconfig_field_templ}function setup_field_type(a){return{id:a.trigger.prop("id")}}function check_required_bindings(a){var b,c=(jQuery(".caldera-header-save-button"),jQuery(".layout-form-field")),d=jQuery(".caldera-processor-nav"),e=!0;b=a?jQuery(a):jQuery(".caldera-config-field .required"),b.removeClass("has-error"),c.removeClass("has-error"),d.removeClass("has-error"),jQuery(".error-tag").remove(),required_errors={},b.each(function(a,b){var c=jQuery(b),d=c.closest(".caldera-config-editor-panel");if(b.value.length){if(c.hasClass("field-slug"))for(var f=jQuery(".field-slug").not(c),g=0;g<f.length;g++)if(f[g].value===b.value){var c=jQuery(f[g]);required_errors[d.prop("id")]||(required_errors[d.prop("id")]=0);var h=c.closest(".caldera-editor-field-config-wrapper"),i=c.closest(".caldera-editor-processor-config-wrapper");h.length&&jQuery('.layout-form-field[data-config="'+h.prop("id")+'"]').addClass("has-error"),i.length&&jQuery("."+i.prop("id")).addClass("has-error"),required_errors[d.prop("id")]+=1,c.addClass("has-error"),e=!1;break}if(c.hasClass("toggle_value_field"))for(var j=c.closest(".caldera-config-group").find(".toggle_value_field").not(c),g=0;g<j.length;g++)if(j[g].value===b.value){var c=jQuery(j[g]);required_errors[d.prop("id")]||(required_errors[d.prop("id")]=0);var h=c.closest(".caldera-editor-field-config-wrapper"),i=c.closest(".caldera-editor-processor-config-wrapper");h.length&&jQuery('.layout-form-field[data-config="'+h.prop("id")+'"]').addClass("has-error"),i.length&&jQuery("."+i.prop("id")).addClass("has-error"),required_errors[d.prop("id")]+=1,c.addClass("has-error"),e=!1;break}}else{required_errors[d.prop("id")]||(required_errors[d.prop("id")]=0);var h=c.closest(".caldera-editor-field-config-wrapper"),i=c.closest(".caldera-editor-processor-config-wrapper");h.length&&jQuery('.layout-form-field[data-config="'+h.prop("id")+'"]').addClass("has-error"),i.length&&jQuery("."+i.prop("id")).addClass("has-error"),required_errors[d.prop("id")]+=1,c.addClass("has-error"),e=!1}});for(var f in required_errors)jQuery(".caldera-forms-options-form").find('a[href="#'+f+'"]').append('<span class="error-tag">'+required_errors[f]+"</span>");return jQuery(".caldera-conditional-field-set").trigger("change"),e}function cf_revisions_ui(){var a=CF_ADMIN.rest.revisions,b=document.getElementById("tmpl--revisions");if(null!==b){var c=jQuery("#caldera-forms-revisions-spinner");c.css({visibility:"visible",float:"none"}),jQuery.get(a,function(a){if(a.hasOwnProperty("message"))document.getElementById("caldera-forms-revisions").innerHTML='<p class="notice notice-large notice-info">'+a.message+"</p>";else{var d={revisions:a};revisions=a;var e=b.innerHTML,f=jQuery("#tmpl--revisions").html();e=Handlebars.compile(f),document.getElementById("caldera-forms-revisions").innerHTML=e(d)}c.css({visibility:"hidden",float:"none"}),jQuery("input[type=radio][name=caldera-forms-revision]").change(function(){jQuery("#caldera-forms-revision-go").attr("href",jQuery(this).data("edit")).css({display:"inline-block",visibility:"visible"}).attr("aria-hidden",!1)})}).fail(function(){c.css({visibility:"hidden",float:"none"})})}}function new_conditional_group(a){var b=a.trigger.data("id"),c="cl"+Math.round(18746582734*Math.random());return{group:[{id:"rw"+Math.round(98347598345*Math.random()),type:a.trigger.data("type"),lines:[{id:c}]}],id:b}}function new_conditional_line(a){var b=a.trigger.data("id"),c=a.trigger.data("group"),d=a.trigger.data("type"),e="cl"+Math.round(18746582734*Math.random());return{id:b,type:d,lineid:e,rowid:c,name:"config["+d+"]["+b+"][conditions][group]["+c+"]["+e+"]"}}function build_conditions_config(a){var b=JSON.parse(a.trigger.val());return b.id=a.trigger.data("id"),b}function setup_field_type(a){return{id:a.trigger.prop("id")}}function check_required_bindings(a){var b,c=(jQuery(".caldera-header-save-button"),jQuery(".layout-form-field")),d=jQuery(".caldera-processor-nav"),e=!0;b=a?jQuery(a):jQuery(".caldera-config-field .required"),b.removeClass("has-error"),c.removeClass("has-error"),d.removeClass("has-error"),jQuery(".error-tag").remove(),required_errors={},b.each(function(a,b){var c=jQuery(b),d=c.closest(".caldera-config-editor-panel");if(b.value.length){if(c.hasClass("field-slug"))for(var f=jQuery(".field-slug").not(c),g=0;g<f.length;g++)if(f[g].value===b.value){var c=jQuery(f[g]);required_errors[d.prop("id")]||(required_errors[d.prop("id")]=0);var h=c.closest(".caldera-editor-field-config-wrapper"),i=c.closest(".caldera-editor-processor-config-wrapper");h.length&&jQuery('.layout-form-field[data-config="'+h.prop("id")+'"]').addClass("has-error"),i.length&&jQuery("."+i.prop("id")).addClass("has-error"),required_errors[d.prop("id")]+=1,c.addClass("has-error"),e=!1;break}if(c.hasClass("toggle_value_field"))for(var j=c.closest(".caldera-config-group").find(".toggle_value_field").not(c),g=0;g<j.length;g++)if(j[g].value===b.value){var c=jQuery(j[g]);required_errors[d.prop("id")]||(required_errors[d.prop("id")]=0);var h=c.closest(".caldera-editor-field-config-wrapper"),i=c.closest(".caldera-editor-processor-config-wrapper");h.length&&jQuery('.layout-form-field[data-config="'+h.prop("id")+'"]').addClass("has-error"),i.length&&jQuery("."+i.prop("id")).addClass("has-error"),required_errors[d.prop("id")]+=1,c.addClass("has-error"),e=!1;break}}else{required_errors[d.prop("id")]||(required_errors[d.prop("id")]=0);var h=c.closest(".caldera-editor-field-config-wrapper"),i=c.closest(".caldera-editor-processor-config-wrapper");h.length&&jQuery('.layout-form-field[data-config="'+h.prop("id")+'"]').addClass("has-error"),i.length&&jQuery("."+i.prop("id")).addClass("has-error"),required_errors[d.prop("id")]+=1,c.addClass("has-error"),e=!1}});for(var f in required_errors)jQuery(".caldera-forms-options-form").find('a[href="#'+f+'"]').append('<span class="error-tag">'+required_errors[f]+"</span>");return jQuery(".caldera-conditional-field-set").trigger("change"),e}var cfAdminAJAX;cfAdminAJAX="object"==typeof CF_ADMIN?CF_ADMIN.adminAjax:ajaxurl,jQuery(document).ready(function(a){function b(b){var d=a(b),e=d.val(),f=d.closest(".caldera-editor-field-config-wrapper"),g=f.find(".caldera-config-field-setup"),h=get_compiled_template(e),i=f.find(".field_config_string").val(),j=d.data("type");if(f.find(".caldera-config-group").show(),d.addClass("field-initialized"),i=i.length&&j===d.val()?JSON.parse(i):fieldtype_defaults[d.val()+"_cfg"],i||(i={}),i._id=d.data("field"),i._name="config[fields]["+d.data("field")+"][config]",h=a("<div>").html(h(i)),g.html(h.html()),"function"==typeof window[d.val()+"_init"]&&window[d.val()+"_init"](d.data("field"),g),fieldtype_defaults[d.val()+"_nosupport"]&&(fieldtype_defaults[d.val()+"_nosupport"].indexOf("hide_label")>=0&&f.find(".hide-label-field").hide().find(".field-config").prop("checked",!1),fieldtype_defaults[d.val()+"_nosupport"].indexOf("caption")>=0&&f.find(".caption-field").hide().find(".field-config").val(""),fieldtype_defaults[d.val()+"_nosupport"].indexOf("required")>=0&&f.find(".required-field").hide().find(".field-config").prop("checked",!1),fieldtype_defaults[d.val()+"_nosupport"].indexOf("custom_class")>=0&&f.find(".customclass-field").hide().find(".field-config").val(""),fieldtype_defaults[d.val()+"_nosupport"].indexOf("entry_list")>=0&&f.find(".entrylist-field").hide().find(".field-config").prop("checked",!1)),f.find(".toggle_show_values").trigger("change"),!a(".caldera-select-field-type").not(".field-initialized").length){if(core_form||(core_form=jQuery(".caldera-forms-options-form")),core_form.hasClass("builder-loaded"))c(d.data("field"));else{for(var k=a(".caldera-select-field-type.field-initialized"),l=0;l<k.length;l++)c(a(k[l]).data("field"));core_form.addClass("builder-loaded")}a(".caldera-header-save-button").prop("disabled",!1),rebuild_field_binding(),baldrickTriggers()}if(a(".color-field").length&&a(".color-field").wpColorPicker({change:function(b){var c=a(this);c.data("ev")&&clearTimeout(c.data("ev")),c.data("ev",setTimeout(function(){c.trigger("record")},200)),c.data("target")&&(a(c.data("target")).css(c.data("style"),c.val()),a(c.data("target")).val(c.val()))}}),["html","section_break"].indexOf(d.val())>=0){var m=f.find(".field-label");m.val()||m.val(d.val()+"__"+f.find(".field-id").val()).trigger("change")}}function c(b){var c=a("#"+b),d=c.find(".caldera-select-field-type"),e=d.val(),f=a('.layout-form-field[data-config="'+b+'"]'),g=f.find(".field_preview"),h=(a("#preview-"+e+"_tmpl").html(),get_compiled_template("preview-"+e)),i={id:b},j=c.find(".field-config");j.each(function(c,d){for(var e=a(d),f=e.prop("name").split("["+b+"]")[1].substr(1),g=f.substr(0,f.length-1).split("]["),h=e.is(":checkbox,:radio")?e.filter(":checked").val():e.val(),j={},k=g.length-1;k>=0;k--)if(k===g.length-1)j[g[k]]=h;else{var l=j;j={},j[g[k]]=l}a.extend(!0,i,j)}),g.html(h(i)),f.removeClass("button"),a(".preview-field-config").prop("disabled",!0)}function d(b){var c,d=a(".caldera-editor-fields-panel"),e=(a(".caldera-editor-groups-panel"),a(".caldera-group-nav")),f=a('[data-group="'+b+'"]'),g=f.find(".caldera-config-group-name"),h=f.find(".caldera-config-group-slug"),i=f.find(".caldera-config-group-desc"),j=f.find(".caldera-config-group-admin"),k=a(".active-group-name"),l=a(".active-group-slug"),m=a(".active-group-desc"),n=a(".active-group-admin"),o=a(".caldera-editor-fields-list ul"),p=f.find(".caldera-config-group-repeat"),q=a(".repeat-config-button"),r=(a(".caldera-editor-group-settings"),a(".caldera-config-group-remove"));a(".new-group-input").remove(),a(".new-field-input").remove(),e.removeClass("active"),d.show(),o.hide(),o.removeClass("active").find("li.active").removeClass("active"),o.hide(),f.addClass("active"),c=a(".caldera-editor-fields-list ul.active li"),c.length?r.hide():r.show(),a(".caldera-editor-field-config-wrapper").hide(),f.show(),k.val(g.val()),l.val(h.val()),m.val(i.val()),"1"===j.val()?n.prop("checked",!0):n.prop("checked",!1),"1"===p.val()?q.addClass("field-edit-open"):q.removeClass("field-edit-open")}var e=a("#save_indicator");a("#caldera-forms-restore-revision").on("click",function(b){b.preventDefault();var c=a(this);e.addClass("loading"),a.post({url:"admin.php?page=caldera-forms",data:{cf_edit_nonce:a("#cf_edit_nonce").val(),form:c.data("form"),cf_revision:a("#form_db_id_field").val(),restore:!0},success:function(){window.location=c.data("edit-link")}})}),a(".caldera-header-save-button").baldrick({method:"POST",request:"admin.php?page=caldera-forms",before:function(b,c){if(c.preventDefault(),!check_required_bindings())return!1;e.addClass("loading"),"undefined"!=typeof tinyMCE&&tinyMCE.triggerSave();var d=a(".caldera-forms-options-form").formJSON();return d.conditions&&(d.config.conditional_groups={conditions:d.conditions}),Object.keys(non_editor_fields).forEach(function(a){d[a]=non_editor_fields[a]}),a(b).data("cf_edit_nonce",d.cf_edit_nonce),a(b).data("_wp_http_referer",d._wp_http_referer),a(b).data("sender","ajax"),a(document).trigger("cf.presave",{config:d.config}),a(b).data("config",JSON.stringify(d.config)),!0},callback:function(b){if(!1===b.data){var c=a(".updated_notice_box");c.stop().animate({top:0},200,function(){setTimeout(function(){c.stop().animate({top:-75},200)},2e3)}),cf_revisions_ui()}},complete:function(b){a(".wrapper-instance-pane .field-config").prop("sabled",!1)}}),a("body").on("click",".toggle_processor_event input",function(b){var c=a(this),d=c.closest(".wrapper-instance-pane"),e=d.find(".caldera-config-processor-setup"),f=d.find(".caldera-config-processor-notice");c.is(":checked")?(c.parent().addClass("activated"),c.parent().find(".is_active").show().attr("aria-hidden",!1).css("visibility","visible"),c.parent().find(".not_active").hide().attr("aria-hidden",!0).css("visibility","hidden")):(c.parent().removeClass("activated"),c.parent().find(".is_active").hide().attr("aria-hidden",!0).css("visibility","hidden"),c.parent().find(".not_active").show().attr("aria-hidden",!1).css("visibility","visible")),d.find(".toggle_processor_event .activated").length?(e.slideDown(100),f.slideUp(100)):(e.slideUp(100),f.slideDown(100))}),a("body").on("click",".toggle_option_tab > a",function(b){b.preventDefault();var c=a(this),d=a(c.attr("href")),e=c.parent().find("a"),f=c.closest(".caldera-editor-config-wrapper").find(".wrapper-instance-pane");e.removeClass("button-primary"),f.hide(),d.show(),c.addClass("button-primary"),a(".caldera-conditionals-usetype").trigger("change")}),a(".caldera-editor-body").on("change",".caldera-select-field-type",function(a){b(this)}),a(".caldera-editor-body").on("click",".caldera-group-nav a",function(b){b.preventDefault(),d(a(this).attr("href").substr(1))}),a(".caldera-editor-body").on("click",".caldera-editor-fields-list a",function(b){b.preventDefault();var c=a(this),d=a(c.attr("href"));a(".new-group-input").remove(),a(".new-field-input").remove(),a(".caldera-editor-fields-list li.active").removeClass("active"),c.parent().addClass("active"),a(".caldera-editor-field-config-wrapper").hide(),d.show()}),a(".caldera-editor-body").on("click",".group-config-button",function(b){var c=a(this),d=a(".caldera-editor-group-settings"),e=c.closest(".caldera-editor-fields-panel"),f=a(".caldera-config-group-remove");e.find(".caldera-field-line").length?f.hide():f.show(),c.hasClass("field-edit-open")?(d.slideUp(100),c.removeClass("field-edit-open")):(d.slideDown(100),c.addClass("field-edit-open"))}),a(".caldera-editor-body").on("keydown",".field-config",function(b){a(this).is("textarea")||13===b.which&&b.preventDefault()}),a(".caldera-editor-body").on("change",".field-label",function(b){var c=a(this).closest(".caldera-editor-field-config-wrapper").prop("id"),d=a('[data-field="'+c+'"]'),e=a("#"+c+" .caldera-editor-field-title, .layout-form-field.field-edit-open .layout_field_name"),f=a("#"+c+" .field-slug");d.find("a").html('<i class="icn-field"></i> '+this.value),e.text(this.value),"change"===b.type&&f.trigger("change"),rebuild_field_binding()}),a(".caldera-editor-body").on("change",".active-group-name",function(b){b.preventDefault();var c=a(".caldera-group-nav.active"),d=(c.data("group"),c.find(".caldera-config-group-name")),e=c.find("span");"focusout"!==b.type||this.value.length||(this.value="Group "+(parseInt(c.index())+1)),d.val(this.value),e.text(this.value)}),a(".caldera-editor-body").on("change",".active-group-slug",function(b){b.preventDefault();var c=a(".caldera-group-nav.active"),d=(c.data("group"),c.find(".caldera-config-group-name").val()),e=c.find(".caldera-config-group-slug"),f=(c.find("span"),this.value.split(" ").join("_").split("-").join("_").replace(/[^a-z0-9_]/gi,"").toLowerCase());"focusout"!==b.type||this.value.length||(f=d.split(" ").join("_").split("-").join("_").replace(/[^a-z0-9_]/gi,"").toLowerCase()),e.val(f),this.value=f}),a(".caldera-editor-body").on("change",".active-group-desc",function(b){b.preventDefault();var c=a(".caldera-group-nav.active");c.data("group");c.find(".caldera-config-group-desc").val(this.value)}),a(".caldera-editor-body").on("change",".active-group-admin",function(b){b.preventDefault();var c=a(".caldera-group-nav.active"),d=(c.data("group"),c.find(".caldera-config-group-name").val(),c.find(".caldera-config-group-admin"));c.find("span"),this.value.split(" ").join("_").split("-").join("_").replace(/[^a-z0-9_]/gi,"").toLowerCase();a(this).prop("checked")?(d.val(1),c.addClass("is-admin")):(d.val(0),c.removeClass("is-admin"))}),a(".caldera-editor-body").on("click",".repeat-config-button",function(b){b.preventDefault();var c=a(".caldera-group-nav.active"),d=(c.data("group"),c.find("a .group-type")),e=c.find(".caldera-config-group-repeat"),f=a(this);f.hasClass("field-edit-open")?(e.val("0"),d.removeClass("icn-repeat").addClass("icn-folder"),f.removeClass("field-edit-open")):(e.val("1"),d.addClass("icn-repeat").removeClass("icn-folder"),f.addClass("field-edit-open"))}),a(".caldera-editor-body").on("click",".delete-field",function(){var b=a(this),c=b.closest(".caldera-editor-field-config-wrapper").prop("id");confirm(b.data("confirm"))&&(a("#"+c).remove(),a('option[value="'+c+'"]').remove(),a('[data-bind="'+c+'"]').remove(),delete current_form_fields[c],a('[data-config="'+c+'"]').slideUp(200,function(){a(this).remove(),rebuild_field_binding(),a(document).trigger("field.removed")}))}),a(".caldera-editor-body").on("click",".add-new-group,.add-field",function(){var b=a(this);if(a(".new-group-input").remove(),a(".new-field-input").remove(),b.hasClass("add-field")){a('<input type="text" class="new-field-input block-input">').appendTo(a(".caldera-editor-fields-list ul.active")).focus()}else{a('<input type="text" class="new-group-input block-input">').appendTo(a(".caldera-editor-groups-panel")).focus()}}),a(".caldera-editor-body").on("change keypress",".new-group-input",function(b){if("keypress"===b.type){if(13!==b.which)return;b.preventDefault()}var c,e,f=this.value,g=a(this),h=a(".caldera-editor-groups-panel ul"),i=a(".caldera-editor-fields-list");if(f.length){c=Handlebars.compile(a("#caldera_group_line_templ").html()),e={id:f.split(" ").join("_").split("-").join("_").replace(/[^a-z0-9_]/gi,"").toLowerCase(),name:f},h.append(c(e));a('<ul data-group="'+e.id+'">').hide().appendTo(i),g.remove(),d(e.id)}else g.remove()}),a(".caldera-editor-body").on("change keypress",".new-field-input",function(b){if("keypress"===b.type){if(13!==b.which)return;b.preventDefault()}var c,d,e,f=this.value,g=a(this),h=g.parent(),i=a(".caldera-editor-field-config"),j=a(".caldera-config-group-remove");if(f.length){j.hide(),c=Handlebars.compile(a("#caldera_field_line_templ").html()),d=Handlebars.compile(a("#caldera_field_config_wrapper_templ").html()),e={id:f.split(" ").join("_").split("-").join("_").replace(/[^a-z0-9_]/gi,"").toLowerCase(),label:f,slug:f.split(" ").join("_").split("-").join("_").replace(/[^a-z0-9_]/gi,"").toLowerCase(),group:a(".caldera-group-nav.active").data("group")};var k=a(c(e));k.appendTo(h),i.append(d(e)),k.find("a").trigger("click"),g.remove()}else g.remove()}),a(".caldera-editor-body").on("change",".field-slug",function(b){this.value.length?this.value=this.value.split(" ").join("_").split("-").join("_").replace(/[^a-z0-9_]/gi,"").toLowerCase():"change"===b.type&&(this.value=a(this).closest(".caldera-editor-field-config-wrapper").find(".field-label").val().split(" ").join("_").split("-").join("_").replace(/[^a-z0-9_]/gi,"").toLowerCase())}),a(".caldera-editor-body").on("click",".caldera-add-group",function(b){var c=a(this),d=c.data("group"),e=a("#"+d+"_panel_tmpl").html();c.parent().parent().append(e)}),a(".caldera-editor-body").on("click",".caldera-config-group-remove",function(b){var c=a(".active-group-slug").val();a('[data-group="'+c+'"]').hide(0,function(){a(this).remove();var b=a(".caldera-group-nav");b.length?b.first().find("a").trigger("click"):a(".caldera-editor-fields-panel").hide()})}),a("body").on("click",".set-current-field",function(b){b.preventDefault();var c=a(this);a("#"+c.data("field")+"_type").val(c.data("type")).trigger("change"),a("#"+c.data("field")+"_lable").focus(),a("#field_setup_baldrickModalCloser").trigger("click")}),a(".caldera-editor-body").on("change record",".field-config",function(b){var d=a(this),e=d.closest(".caldera-editor-field-config-wrapper");current_form_fields&&(d.prop("id")===e.prop("id")+"_lable"&&(current_form_fields[e.prop("id")].label=this.value),d.prop("id")===e.prop("id")+"_slug"&&(current_form_fields[e.prop("id")].slug=this.value),d.prop("id")===e.prop("id")+"_type"&&(current_form_fields[e.prop("id")].type=this.value),e.length&&c(e.prop("id")))}),a(".caldera-editor-body").on("focus",".caldera-field-bind",function(b){var c=a(this),d=this.value;if(b.type&&"focusin"===b.type)return c.removeClass("bound_field").addClass("reload-binding"),rebind_field_bindings(),void(this.value=d)}),a(".caldera-editor-body").on("change",".caldera-conditional-field-set",function(b){var c,d,e=a(this),f=e.parent().find(".compare-type"),g=e.data("condition"),h=e.data("id"),i="config["+g+"]["+h+"][conditions][group]["+e.data("row")+"]["+e.data("line")+"]",j=e.data("line"),k=a("#"+j+"_value"),l=k.find(".caldera-conditional-value-field").first(),m=[],n=this.value;if("{"!==n.substr(0,1)&&(c=a("#"+n),d=c.find(".field-button-type"),m=c.find(".caldera-config-group-toggle-options")),e.hasClass(".bind_init")&&e.addClass("bound_triggered"),l.length?l.val().length&&k.data("value",l.val()):0===k.val()?k.data("value",0):"0"===k.val()&&k.data("value","0"),f.show(),m.length){var o=m.find(".toggle_option_row"),p='<select name="'+i+'[value]" class="caldera-processor-value-bind caldera-conditional-value-field" data-field="'+n+'" style="max-width: 220px; width: 220px;">';p+='<option value=""></option>',o.each(function(b,c){var d=a(c).find(".toggle_label_field"),e=d.data("option"),f="";k.data("value")&&(k.data("value").toString()!==e&&k.data("value").toString()!==a(c).find(".toggle_value_field").val()||(f=' selected="selected"')),p+='<option value="'+e+'"'+f+">"+d.val()+"</option>"}),p+="</select>"}else d&&"button"==d.val()?(f.val("is").hide(),p='<select name="'+i+'[value]" class="caldera-processor-value-bind caldera-conditional-value-field" data-field="'+n+'" style="max-width: 220px; width: 220px;">',p+='<option value="click" '+("click"===k.data("value")?'selected="selected"':"")+">Click</option>",p+='<option value="dblclick" '+("dblclick"===k.data("value")?'selected="selected"':"")+">Double Click</option>",p+="</select>"):p='<input name="'+i+'[value]" type="text" class="caldera-conditional-value-field magic-tag-enabled" value="'+(k.data("value")?k.data("value"):"")+'" style="max-width: 205px;">';k.html(p),init_magic_tags()}),a(".caldera-editor-body").on("change",".caldera-conditionals-usetype",function(b){var c=a(this);"show"===this.value||"hide"===this.value||"disable"===this.value||"use"===this.value||"not"===this.value?(a("#"+c.data("id")+"_condition_group_add").show(),a("#"+c.data("id")+"_conditional_wrap").show()):(a("#"+c.data("id")+"_condition_group_add").hide(),a("#"+c.data("id")+"_conditional_wrap").hide())}),a(".caldera-editor-body").on("click",".remove-conditional-line",function(b){b.preventDefault();var c=a(this),d=c.closest(".caldera-condition-line"),e=c.closest(".caldera-condition-group");d.remove(),e.find(".caldera-condition-line").length||e.remove()}),a(".caldera-group-nav").first().find("a").trigger("click"),a(".caldera-editor-body").on("change",".toggle_show_values",function(b){var c=a(this),d=c.closest(".caldera-config-group-toggle-options"),e=d.find(".toggle_label_field"),f=d.find(".toggle_value_field, .toggle_calc_value_field"),g=d.find(".option-setting-label-for-value"),h=d.find(".option-setting-label-for-label"),i=(d.find(".option-group-control"),{width:"100%",display:"inline",float:"left"});c.prop("checked")?(f.show().css(i).attr("aria-hidden",!1),e.show().css(i).attr("aria-hidden",!1),g.show().css({display:"inline-block"}),h.css("display","inline")):(f.hide().attr("aria-hidden",!0),g.hide().attr("aria-hidden",!0),e.css("width",245),h.css("display","inline")),e.trigger("toggle.values"),init_magic_tags()}),a(".caldera-editor-body").on("change",".auto-populate-type",function(){a(this).closest(".wrapper-instance-pane").find(".auto-populate-options").trigger("change")}),a(".caldera-editor-body").on("change",".auto-populate-options",function(){var b=a(this),c=b.closest(".wrapper-instance-pane"),d=c.find(".caldera-config-group-toggle-options"),e=c.find(".caldera-config-group-auto-options"),f=e.find(".auto-populate-type");e.find(".auto-populate-type-panel").hide(),b.prop("checked")?(d.hide(),e.show()):(d.show(),e.hide()),e.find(".caldera-config-group-auto-"+f.val()).show()}),a("body").on("change",".pin-toggle-roles",function(){var b=a(this),c=a("#caldera-pin-rules");"1"===b.val()?c.show():c.hide()}),a("body").on("click",".magic-tag-init",function(b){a(this).prev().focus().trigger("init.magic")}),a("body").on("keyup focus select click init.magic",".magic-tag-enabled",function(b){init_magic_tags();var c=a(this),d=c.parent(),e=d.closest(".wrapper-instance-pane").find(".caldera-select-field-type").val()?d.closest(".wrapper-instance-pane").find(".caldera-select-field-type").val():"hidden",f=d.find(".magic-tags-autocomplete"),g=f.find("ul"),h=this.value,i=[],j="",k=this.selectionStart,l=this.selectionEnd;if(f.length&&f.data("focus"))return void b.preventDefault();if(c.data("tag",""),this.selectionEnd>this.selectionStart)j=this.value.substr(this.selectionStart,this.selectionEnd-this.selectionStart);else if(("select"===b.type||"keyup"===b.type)&&40!==b.which&&38!==b.which&&39!==b.which&&37!==b.which){for(k=this.selectionStart;k>0;k--){var m=h.substr(k-1,1);if(" "===m||"\n"===m||("%"===m||"}"===m)&&this.selectionStart===k)break}for(l=this.selectionStart;l<h.length;l++){var m=h.substr(l,1);if(" "===m||"\n"===m||("%"===m||"{"===m)&&this.selectionStart===l)break}j=h.substr(k,l-k)}if("focusout"!==b.type){"init"!==b.type&&j.length<3&&f.length&&f.remove(),f.length||(f=a('<div class="magic-tags-autocomplete"></div>'),g=a("<ul></ul>"),g.appendTo(f),f.insertAfter(c),f.on("mouseenter",function(){a(this).data("focus",!0)}),f.on("mouseleave",function(){a(this).data("focus",!1),setTimeout(function(){f.remove()},200),c.is(":focus")||c.trigger("focusout")})),g.empty();var n="system",o=!1;"hidden"===e||"dropdown"===e||"radio"===e||"toggle_switch"===e||"checkbox"===e?(o=!0,e="text",n="all"):"paragraph"!==e&&"html"!==e||(e="text"),c.data("type")&&(e=c.data("type")),e=e.split(","),e.push("vars");for(var p=0;p<e.length;p++)for(var q in system_values)if(void 0!==system_values[q].tags&&void 0!==system_values[q].tags[e[p]]){if(i=[q],"system"!==q&&"variable"!==q&&"field"!==q){var r=jQuery(".processor-"+q),s=c.closest(".caldera-editor-processor-config-wrapper"),t=s.prop("id");i=[];for(var u=0;u<r.length;u++)if(s.length||!0!==o){if(t===r[u].id)continue;jQuery("li."+r[u].id).index()<jQuery("li."+t).index()&&i.push(r[u].id)}else i.push(r[u].id)}for(var v=0;v<i.length;v++)if("all"===n||n===q||"variable"===q){var w=a('<li class="header">'+system_values[q].type+(v>0?" ["+(v+1)+"]":"")+"</li>"),x=0;w.appendTo(g);for(var y=0;y<system_values[q].tags[e[p]].length;y++)if(!c.data("parent")||"variable:"+c.data("parent")!==system_values[q].tags[e[p]][y]){var z=system_values[q].wrap[0]+system_values[q].tags[e[p]][y]+system_values[q].wrap[1];if(i[v]!==q&&i.length>1&&(z=system_values[q].wrap[0]+system_values[q].tags[e[p]][y]+":"+i[v]+system_values[q].wrap[1]),z.indexOf(j)>=0||"init"===b.type){x+=1;var A=z.replace(j,"<strong>"+j+"</strong>"),B=a('<li class="tag" data-tag="'+z+'">'+A+"</li>");B.on("click",function(){var b=a(this).data("tag");c.val(h.substr(0,k)+b+h.substr(l)).trigger("change").focus(),c[0].selectionStart=k+b.length-(b.indexOf("*")>0?2:0),c[0].selectionEnd=k+b.length-(b.indexOf("*")>0?1:0),l=k=c[0].selectionEnd,h+=b,c.trigger("init.magic")}),B.appendTo(g)}}0===x&&w.remove()}}}g.children().length||f.remove(),"focusout"===b.type&&setTimeout(function(){f.remove()},200)}),pre_compile_templates(),a(".caldera-select-field-type").not(".field-initialized").each(function(a,c){b(c)})});var rebuild_field_binding,rebind_field_bindings,current_form_fields={},required_errors={},add_new_grid_page,add_page_grid,init_magic_tags,core_form,compiled_templates={};init_magic_tags=function(){jQuery(".magic-tag-enabled").each(function(a,b){var c=jQuery(b);if(c.hasClass("magic-tag-init-bound")){var d=c.parent().find(".magic-tag-init");return void(c.is(":visible")?d.show():d.hide())}var e=jQuery('<span class=""></span>'),f=jQuery('<span style="position:relative;display:inline-block; width:100%;"></span>');c.is("input")&&e.css("borderBottom","none"),c.hasClass("caldera-conditional-value-field")&&f.width("auto"),c.wrap(f),e.insertAfter(c),c.addClass("magic-tag-init-bound"),c.is(":visible")?e.show():e.hide()})},rebuild_field_binding=function(){if(core_form||(core_form=jQuery(".caldera-forms-options-form")),core_form.hasClass("builder-loaded")){var a=jQuery(".caldera-editor-field-config-wrapper");system_values.field={tags:{text:[]},type:"Fields",wrap:["%","%"]};for(var b=0;b<a.length;b++){var c=a[b].id,d=jQuery("#"+c+"_lable").val(),e=jQuery("#"+c+"_slug").val(),f=jQuery("#"+c+"_type").val();void 0===system_values.field.tags[f]&&(system_values.field.tags[f]=[]),system_values.field.tags[f].push(e),"text"!==f&&system_values.field.tags.text.push(e),current_form_fields[c]={label:d,slug:e,type:f},jQuery("option.bound-field").trigger("change").each(function(a,b){var c=jQuery(b);0!==c.prop("value").indexOf("{")?c.text(jQuery("#"+c.prop("value")+"_lable").val()+" ["+jQuery("#"+c.prop("value")+"_lable").val()+"]"):c.text(c.prop("value").replace("{","").replace("}",""))}).removeClass("bound-field")}}},rebind_field_bindings=function(){var a,b,c=jQuery(".caldera-field-bind").not(".bound_field");if(c.length){c.addClass("bound_field");for(var d=0;d<c.length;d++){var e=jQuery(c[d]),f=e.val(),g=e.data("default"),h=e.data("exclude"),i=0,j=e.closest(".caldera-editor-processor-config-wrapper"),k=j.prop("id"),l="";if(g&&!e.hasClass("reload-binding")&&(f=g),e.is("select")){e.empty();var m=jQuery('<optgroup label="Fields">');for(var n in current_form_fields)e.data("type")&&e.data("type").split(",").indexOf(current_form_fields[n].type)<0||(e.data("id")!==n&&m.append('<option value="'+n+'"'+(f===n?'selected="selected"':"")+">"+current_form_fields[n].label+" ["+current_form_fields[n].slug+"]</option>"),i+=1);m.appendTo(e),0===i&&e.empty();for(var o in system_values)if(a=[],!(h&&h.split(",").indexOf(o)>=0)){if("system"!==o&&"variable"!==o)for(var p=jQuery(".processor-"+o),q=0;q<p.length;q++)k!==p[q].id&&(a.push(p[q].id),p.length>1&&(b=jQuery("li."+p[q].id+" .processor-line-number"))&&b.html("["+(q+1)+"]"));else a.push("__system__");var r=[];e.data("type")?(r=e.data("type").split(","),r.push("vars")):r=["text","vars"];for(var s=0;s<r.length;s++)if(system_values[o].tags&&system_values[o].tags[r[s]])for(var t=0;t<a.length;t++){jQuery("li."+a[t]).index()>jQuery("li."+k).index()&&"__system__"!==a[t]?e.closest(".caldera-editor-processors-panel-wrap").length&&(l=' disabled="disabled"'):l="";for(var m=jQuery('<optgroup label="'+system_values[o].type+("__system__"!==a[t]?" "+jQuery("li."+a[t]).find(".processor-line-number").html():"")+'"'+l+">"),u=0;u<system_values[o].tags[r[s]].length;u++){var v=system_values[o].tags[r[s]][u];"__system__"!==a[t]&&(v=v.replace(o,a[t])),m.append('<option value="{'+v+'}"'+(f==="{"+v+"}"?'selected="selected"':"")+l+">"+system_values[o].tags[r[s]][u]+"</option>"),i+=1}m.children().length&&m.appendTo(e)}}if(0===i){if(e.empty(),e.data("type")){e.append('<option value="">No '+e.data("type").split(",").join(" or ")+" in form</option>");var w=!0}}else e.prop("disabled",!1);e.hasClass("required")||void 0!==w||e.prepend('<option value=""></option>'),e.val(f)}}init_magic_tags(),jQuery(document).trigger("bound.fields"),jQuery(".caldera-header-save-button").prop("disabled",!1),void 0!=typeof cf_revisions_ui&&cf_revisions_ui()}},jQuery(document).ready(function(a){function b(){var b=a(".layout-grid-panel"),c=0;b.each(function(b,d){
|
2 |
+
var e=a(d),f=e.find(".layout-structure"),g=e.find(".row"),h=[];g.each(function(b,d){var e=a(d),f=e.children().not(".column-merge"),g=[];c+=1,f.each(function(b,d){span=a(d).attr("class").split("-"),g.push(span[2]);var e=a(d).find(".field-location");e.length&&e.each(function(d,e){a(e).val(c+":"+(b+1)).removeAttr("disabled")})}),h.push(g.join(":"))}),f.val(h.join("|"))})}function c(b,c,e){var f,g,h="fld_"+Math.round(1e7*Math.random()),i=h,j=a("#field_config_panels");b.prop("id","").prop("title",""),f=Handlebars.compile(a("#caldera_field_config_wrapper_templ").html()),g=a.extend({},{id:i,label:"",slug:""},e),g.slug="";f(g);j.append(f(g)),b.removeClass("button-small").removeClass("button").removeClass("button-primary").removeClass("ui-draggable").removeClass("layout-new-form-field").addClass("layout-form-field").attr("data-config",h).css({display:"",opacity:""}),b.find(".layout_field_name").remove(),b.find(".field-location").prop("name","config[layout_grid][fields]["+h+"]"),b.find(".settings-panel").show(),b.appendTo(c),d(),b.find(".icon-edit").trigger("click"),a("#"+h+"_lable").focus().select(),baldrickTriggers(),a(document).trigger("field.added"),e?a("#"+i+"_type").data("type",g.type).trigger("change"):a("#"+h).trigger("field.drop"),rebuild_field_binding()}function d(){a(".toggle-options").sortable({handle:".dashicons-sort"}),a("#grid-pages-panel").sortable({placeholder:"row-drop-helper",handle:".sort-handle",items:".first-row-level",axis:"y",stop:function(){b()}}),a(".layout-column").sortable({connectWith:".layout-column",appendTo:"#grid-pages-panel",helper:"clone",items:".layout-form-field",handle:".drag-handle",cursor:"move",opacity:.7,cursorAt:{left:100,top:15},start:function(a,b){b.helper.css({width:"200px",height:"35px",paddingTop:"20px"})},stop:function(a,c){c.item.removeAttr("style"),b()}}),a("h3 .layout-new-form-field").draggable({helper:"clone",appendTo:"body"}),a(".page-toggle.button").droppable({accept:".layout-form-field",over:function(b,c){a(this).trigger("click"),a(".layout-column").sortable("refresh")}}),a(".layout-column").droppable({greedy:!0,activeClass:"ui-state-dropper",hoverClass:"ui-state-hoverable",accept:".layout-new-form-field",drop:function(b,d){c(d.draggable.clone(),a(this))}}),b()}function e(){if(h){var b=a(".column-fieldinsert");b.length?(b.stop().fadeToggle(700),a(".layout-new-form-field").stop().fadeToggle(700)):cf_clear_puler()}}function f(){a(".caldera-editor-processors-panel ul").sortable({update:function(){rebuild_field_binding()},create:function(){0==a(".caldera-editor-processors-panel ul").children().length&&(j.addClass("button-primary"),i=new CalderaFormsButtonPulse(j),window.setTimeout(function(){i.startPulse()},3e3))}})}function g(b){var c=a(b),d=a("#"+c.val()+"-tmpl").length?a("#"+c.val()+"-tmpl").html():"",e=c.closest(".caldera-editor-processor-config-wrapper"),f=e.find(".caldera-config-processor-setup"),g=Handlebars.compile(d),h=e.find(".processor_config_string").val(),i=c.data("type");h=h.length&&i===c.val()?JSON.parse(h):processor_defaults[c.val()+"_cfg"],h||(h={}),h._id=e.prop("id"),h._name="config[processors]["+e.prop("id")+"][config]",g=a("<div>").html(g(h)),f.html(g.html()),"function"==typeof window[c.val()+"_init"]&&window[c.val()+"_init"](e.prop("id"),f),e.find(".no-conditions").length&&e.find(".toggle_option_tab").remove(),rebuild_field_binding(),baldrickTriggers(),a(".wp-baldrick").baldrick({request:cfAdminAJAX,method:"POST",before:function(b){var c=a(b);c.data("addNode")&&!c.data("request")&&c.data("request","cf_get_default_setting")}})}add_new_grid_page=function(a){return{page_no:"pg_"+Math.round(1e7*Math.random())}},add_page_grid=function(b){var c=a(".page-toggle").length+1,e=a('<button type="button" data-name="Page '+c+'" data-page="'+b.rawData.page_no+'" class="page-toggle button">'+b.params.trigger.data("addtitle")+" "+c+"</button> "),f=a("#page-toggles");e.appendTo(f),f.show(),d(),e.trigger("click"),1===c&&f.hide(),a(document).trigger("add.page")},a(document).on("remove.page add.page load.page",function(b){var c=a(".page-toggle").length,d=a("#tab_pages");c<=1?d.hide():d.show()}),d(),a("#grid-pages-panel").on("click",".column-fieldinsert .dashicons-plus-alt",function(b){var d=a(this).closest(".column-container");c(a("#newfield-tool").clone().css("display",""),d)}),a("#grid-pages-panel").on("click",".column-split",function(b){var c=a(this).parent().parent(),e=c.attr("class").split("-"),f=a("<div>").insertAfter(c),g=Math.ceil(e[2]/2),h=Math.floor(e[2]/2);e[2]=g,c.attr("class",e.join("-")),e[2]=h,f.addClass(e.join("-")).append('<div class="layout-column column-container">'),a(this).remove(),d(),jQuery(".column-tools").remove(),jQuery(".column-merge").remove()}),a("#grid-pages-panel").on("click",".column-remove",function(c){var d=a(this).closest(".row"),e=d.find(".layout-form-field"),f=d.closest(".layout-grid-panel");if(e.length){if(!confirm(a("#row-remove-fields-message").text()))return;e.each(function(b,c){var d=a(c).data("config");a("#"+d).remove(),a('option[value="'+d+'"]').remove(),a('[data-bind="'+d+'"]').remove(),delete current_form_fields[d]})}d.slideUp(200,function(){if(a(this).remove(),b(),rebuild_field_binding(),!f.find(".row").length){f.remove();var c=a("#page-toggles .button-primary"),d=c.prev(),e=c.next();c.remove(),d.length?d.trigger("click"):e.trigger("click")}a(document).trigger("remove.page")}),jQuery(".column-tools").remove(),jQuery(".column-merge").remove()}),a(".caldera-config-editor-main-panel").on("click",".caldera-add-row",function(c){if(c.preventDefault(),!a(".page-active").length)return void a(".caldera-add-page").trigger("click");var e=a('<div style="display:none;" class="first-row-level row"><div class="col-xs-12"><div class="layout-column column-container"></div></div></div>');a(".page-active").append(e),e.slideDown(200),d(),b()}),a("#grid-pages-panel").on("click",".column-join",function(c){var d=a(this).parent().parent().parent(),e=d.prev(),f=e.attr("class").split("-"),g=d.attr("class").split("-");f[2]=parseFloat(f[2])+parseFloat(g[2]),d.find(".layout-column").contents().appendTo(e.find(".layout-column")),e.attr("class",f.join("-")),d.remove(),b(),jQuery(".column-tools").remove(),jQuery(".column-merge").remove()}),a("#grid-pages-panel").on("mouseenter",".row",function(c){var d=jQuery(this);jQuery(".column-tools,.column-merge").remove(),d.children().children().first().append('<div class="column-remove column-tools" data-placement="top" title="'+CF_ADMIN_TOOLTIPS.delete_row+'" ><i class="icon-remove"></i></div>'),d.children().children().last().append('<div class="column-sort column-tools" style="text-align:right;"><i class="dashicons dashicons-menu drag-handle sort-handle"></i></div>'),d.children().children().not(":first").prepend('<div class="column-merge"><div class="column-join column-tools"><i class="icon-join"></i></div></div>');var e=d.parent().parent().parent().width()/12-1;d.children().children().each(function(b,c){var d=a(c),e=d.width()/2-5;d.prepend('<div class="column-fieldinsert column-tools"><i class="dashicons dashicons-plus-alt" data-toggle="tooltip" data-placement="top" title="'+CF_ADMIN_TOOLTIPS.add_field_row+'"></i></div>'),d.parent().hasClass("col-xs-1")||(d.prepend('<div class="column-split column-tools" data-placement="top" title="'+CF_ADMIN_TOOLTIPS.split_row+'"><i class="dashicons dashicons-leftright"></i></div>'),d.find(".column-split").css("left",e))}),jQuery(".column-merge").draggable({axis:"x",helper:"clone",appendTo:d,grid:[e,0],drag:function(c,d){a(this).addClass("dragging"),a(".column-tools").remove(),a(".column-split").remove();var e=a(this).parent().parent(),f=d.helper,g=d.originalPosition.left>f.position().left?"left":"right",h=e.prev(),i=Math.round(e.parent().width()/12-10),j=Math.abs(d.originalPosition.left-f.position().left);if(e.parent().addClass("sizing"),j>=i){var k=h.attr("class").split("-"),l=e.attr("class").split("-");k[2]=parseFloat(k[2]),l[2]=parseFloat(l[2]),"left"===g?(k[2]--,l[2]++,k[2]>0&&k[2]<k[2]+l[2]?(h.attr("class",k.join("-")),e.attr("class",l.join("-")),d.originalPosition.left=f.position().left):a(this).draggable("option","disabled",!0)):(k[2]++,l[2]--,l[2]>0&&l[2]<l[2]+l[2]?(h.attr("class",k.join("-")),e.attr("class",l.join("-")),d.originalPosition.left=f.position().left):a(this).draggable("option","disabled",!0)),b()}},stop:function(){a(this).removeClass("dragging").parent().parent().parent().removeClass("sizing")}})}),a("#grid-pages-panel").on("mouseleave",".row",function(a){jQuery(".column-tools").remove(),jQuery(".column-merge").remove()}),a("#grid-pages-panel").on("click",".layout-form-field .icon-remove",function(){var b=a(this),c=b.parent(),d=a("#"+c.data("config"));c.slideUp(100,function(){a(this).remove()}),d.slideUp(100,function(){a(this).remove()})}),a(document).on("click",".layout-form-field .dashicons-admin-page",function(){var b=a(this),d=b.parent(),e=d.data("config"),f=a("#"+e).formJSON(),g=b.closest(".column-container"),h=d.clone().css("display",""),i={};d.hasClass("field-edit-open")&&(d.removeClass("field-edit-open"),h.removeClass("field-edit-open"),a(".caldera-editor-field-config-wrapper").hide()),f.config.fields[e]&&(i=f.config.fields[e],delete i.ID),c(h,g,i)}),a(document).on("click",".layout-form-field .icon-edit",function(){var b=a(this),c=b.parent(),d=a("#"+c.data("config")+"_type").val();a(".caldera-editor-field-config-wrapper").hide(),c.hasClass("field-edit-open")?c.removeClass("field-edit-open"):(a(".layout-form-field").removeClass("field-edit-open"),c.addClass("field-edit-open"),a("#"+c.data("config")).show()),a(document).trigger("show."+c.data("config")),a(document).trigger("show.fieldedit"),"radio"!==d&&"checkbox"!==d&&"dropdown"!==d&&"toggle_switch"!==d||a("#"+c.data("config")+"_auto").trigger("change")}),a("body").on("click",".layout-modal-edit-closer,.layout-modal-save-action",function(b){b.preventDefault();var c=a(this),d=a(".layout-form-field.edit-open"),e=c.closest(".layout-modal-container");settings=e.find(".settings-panel").first(),a(".edit-open").removeClass("edit-open"),settings.appendTo(d.find(".settings-wrapper")).hide(),e.hide()}),a(".layout-editor-body").on("change",".layout-core-pod-query",function(){a(this).parent().find(".settings-panel-row").remove(),a(".edit-open").find(".drag-handle .set-pod").html(" - "+a(this).val())}),a(".layout-editor-body").on("click",".remove-where",function(){a(this).closest(".settings-panel-row").remove()}),a(".layout-editor-body").on("click",".use-pod-container",function(){var b=a(this),c=b.prev(),d=c.val();if(d.length){a(".edit-open").find(".drag-handle .set-pod").html(" - "+c.val()),b.parent().parent().find(".spinner").css("display","inline-block");var e={action:"pq_loadpod",pod_reference:{pod:d}};a.post(cfAdminAJAX,e,function(c){b.parent().find(".spinner").css("display","none");var d=a("#where-line-tmpl").html(),e="",f=b.closest(".settings-panel").data("container");for(var g in c)e+='<option value="'+c[g]+'">'+c[g]+"</option>";d=d.replace(/{{fields}}/g,e).replace(/{{container_id}}/g,f),b.parent().append(d)})}}),a(".caldera-editor-header").on("click",".column-sort .icon-edit",function(a){}),a(".layout-editor-body").on("tray_loaded",".layout-template-tray",function(){d()}),a(".caldera-editor-header").on("click",".caldera-editor-header-nav a",function(b){b.preventDefault();var c=a(this);a(".caldera-editor-header-nav li").removeClass("active"),a(".caldera-editor-body").hide(),a(c.attr("href")).show(),c.parent().addClass("active"),rebind_field_bindings()}),a("body").on("change",".required",function(){check_required_bindings(this)}),a("body").on("submit",".caldera-forms-options-form",function(b){a(".required.has-error").length&&b.preventDefault()}),a(".caldera-editor-body").on("click",".add-toggle-option",function(b){var c=a(this);if(c.data("bulk"))return a(c.data("bulk")).toggle(),void a(c.data("bulk")).find("textarea").focus();var d=c.closest(".caldera-editor-field-config-wrapper"),e=d.find(".toggle-options"),f=a("#field-option-row-tmpl").html(),g=Handlebars.compile(f),h="opt"+parseInt(1048576*(Math.random()+1)),i={_name:"config[fields]["+d.prop("id")+"][config]",option:{}};if(c.data("options")){for(var j=a(c.data("options")),k=j.val().split("\n"),l=!1,m=0;m<k.length;m++){var n=k[m],o=n,p=o.split("|");p.length>1&&(o=p[0],n=p[1],l=!0),i.option["opt"+parseInt(1048576*(Math.random()+m))]={value:o,calc_value:o,label:n,default:!1}}a(c.data("options")).parent().hide(),j.val(""),!0===l?d.find(".toggle_show_values").prop("checked",!0):d.find(".toggle_show_values").prop("checked",!1),e.empty()}else i.option[h]={value:"",label:"",calc_value:"",default:!1};a(".preset_options").val(""),e.append(g(i)),d.find(".toggle_show_values").trigger("change"),a(".toggle-options").sortable({handle:".dashicons-sort"}),k||e.find(".toggle_label_field").last().focus()}),a(".caldera-editor-body").on("change",".preset_options",function(b){var c=a(this),d=c.val(),e=a(c.data("bulk"));preset_options&&preset_options[d]&&preset_options[d].data&&("object"==typeof preset_options[d].data&&preset_options[d].data.length&&(preset_options[d].data=preset_options[d].data.join("\n")),e.val(preset_options[d].data))}),a(".caldera-editor-body").on("click",".toggle-remove-option",function(b){var c=a(this).closest(".caldera-editor-field-config-wrapper").find(".field-config").first();a(this).parent().remove(),c.trigger("change"),a(document).trigger("option.remove")}),a(".caldera-editor-body").on("click",".page-toggle",function(b){var c=a(this),d=c.parent(),e=d.find(".button");e.removeClass("button-primary"),a(".layout-grid-panel").hide().removeClass("page-active"),a("#"+c.data("page")).show().addClass("page-active"),c.addClass("button-primary"),e.each(function(b,c){a(c).html(d.data("title")+" "+(b+1))}),1===e.length&&d.hide()}),a(".caldera-editor-body").on("blur toggle.values",".toggle_label_field",function(b){var c=a(this),d=a('.toggle_value_field[data-opt="'+c.data("option")+'"]');d.is(":visible")||d.val(c.val())}),a(document).on("change focusout",".toggle_value_field",function(){a(document).trigger("show.fieldedit")}),a(document).on("show.fieldedit option.remove",function(b){a(".toggle_value_field.has-error").removeClass("has-error");for(var c=a("#"+a(".layout-form-field.field-edit-open").data("config")),d=c.find(".toggle_value_field"),e=c.find(".notice"),f=0,g=0;g<d.length;g++){for(var h=(d[g].value,0),i=0;i<d.length;i++)d[g]!==d[i]&&d[g].value===d[i].value&&(a(d[i]).addClass("has-error"),h++);h>0&&(a(d[g]).addClass("has-error"),f++)}f>0?(e.slideDown(),b.preventDefault()):e.slideUp()});var h=!1;focus_initial_field=function(b){var c=a(".layout-grid-panel .icon-edit").first();c.length?c.trigger("click"):(a(".layout-column.column-container").first().trigger("mouseover"),h=setInterval(e,500)),a(document).off("load.page",focus_initial_field)},a(document).on("load.page",focus_initial_field),cf_clear_puler=function(){h&&(clearTimeout(h),a(document).off("mouseover",".layout-new-form-field, .column-fieldinsert",cf_clear_puler)),a(".layout-new-form-field, .column-fieldinsert").fadeIn()},a(document).on("mouseover",".layout-new-form-field, .column-fieldinsert",cf_clear_puler),rebuild_field_binding(),a(document).trigger("load.page");var i,j=a(".new-processor-button");a("body").on("click",".caldera-processor-nav a",function(b){b.preventDefault();var c=a(this);a(".caldera-processor-nav").removeClass("active"),a(".caldera-editor-processor-config-wrapper").hide(),a(c.attr("href")).show(),c.parent().addClass("active")}),a("body").on("click",".add-new-processor",function(b){"object"==typeof i&&(j.removeClass("button-primary"),i.stopPulse());var c=a(this),d=Handlebars.compile(a("#processor-wrapper-tmpl").html());wrap=a(".active-processors-list"),process_conf=a(".caldera-editor-processor-config"),processid=Math.round(1e8*Math.random()),new_templ=Handlebars.compile(a("#processor-line-tmpl").html()),new_proc={id:"fp_"+processid,type:c.data("type")},wrap.append(new_templ(new_proc)),process_conf.append(d(new_proc)),a("#form_processor_baldrickModalCloser").trigger("click"),a(".caldera-processor-nav a").last().trigger("click"),a("#fp_"+processid+"_type").val(c.data("type")).trigger("change"),f(),baldrickTriggers()}),a("body").on("click",".delete-processor",function(b){var c=a(this),d=c.closest(".caldera-editor-processor-config-wrapper");d.data("type");confirm(c.data("confirm"))&&(a("."+d.prop("id")).remove(),d.remove(),a(".caldera-processor-nav a").first().trigger("click"),rebuild_field_binding())}),a("body").on("change",".caldera-select-processor-type",function(b){var c=a(this),d=c.closest(".caldera-editor-processor-config-wrapper"),e=c.find('option[value="'+c.val()+'"]').text(),f=d.find(".caldera-editor-processor-title"),h=a(".caldera-processor-nav.active a");""===e&&(e=f.data("title")),f.html(e),h.html(e+' <span class="processor-line-number"></span>').parent().addClass("processor_type_"+c.val()),g(this),rebuild_field_binding()}),a(document).on("click","#cf-shortcode-preview",function(){a(this).focus().select()}),a(document).on("change",".cf-email-preview-toggle",function(){var b=a(this),c=a(".caldera-header-email-preview-button");b.is(":checked")?c.show().attr("aria-hidden","false").css("visibility","visible"):c.hide().attr("aria-hidden","true").css("visibility","hidden")}),rebuild_field_binding(),a(".caldera-select-processor-type").each(function(a,b){g(b)}),f()}),Handlebars.registerHelper("_field",function(a){var b=this,c="",d="",e="",f=this[a.hash.slug]?' data-default="'+this[a.hash.slug]+'"':"";a.hash.required&&(c=" required"),a.hash.exclude&&(e='data-exclude="'+a.hash.exclude+'"'),a.hash.array&&(d="[]","true"!==a.hash.array&&(f='value="'+a.hash.array+'"')),out="<select "+(a.hash.type?'data-type="'+a.hash.type+'"':"")+f+" "+e+' name="'+this._name+"["+a.hash.slug+"]"+d+'" id="'+this._id+"_"+a.hash.slug+'" class="block-input field-config caldera-field-bind'+c+'">',this[a.hash.slug]?out+='<option class="bound-field" value="'+this[a.hash.slug]+'" class="bound-field"></option>':a.hash.required||(out+='<option value=""></option>');for(var g in current_form_fields){var h="";a.hash.type&¤t_form_fields[g].type!==a.hash.type||(b[a.hash.slug]&&b[a.hash.slug]===g&&(h=' selected="selected"'),out+='<option value="'+g+'"'+h+">"+current_form_fields[g].label+" ["+current_form_fields[g].slug+"]</option>")}return out+="</select>",a.hash.required&&(out+='<input class="field-config" name="'+this._name+'[_required_bounds][]" type="hidden" value="'+a.hash.slug+'">'),out}),Handlebars.registerHelper("console",function(a,b){console.log(this)});var revisions={};jQuery(document).ready(function(a){function b(b){var d=a(b),e=d.closest(".caldera-editor-field-config-wrapper"),f=e.find(".caldera-config-field-setup"),g=compiled_templates[d.val()+"_tmpl"]?compiled_templates[d.val()+"_tmpl"]:compiled_templates.noconfig_field_templ,h=e.find(".field_config_string").val(),i=d.data("type");if(e.find(".caldera-config-group").show(),d.addClass("field-initialized"),h=h.length&&i===d.val()?JSON.parse(h):fieldtype_defaults[d.val()+"_cfg"],h||(h={}),h._id=d.data("field"),h._name="config[fields]["+d.data("field")+"][config]",g=a("<div>").html(g(h)),f.html(g.html()),"function"==typeof window[d.val()+"_init"]&&window[d.val()+"_init"](d.data("field"),f),fieldtype_defaults[d.val()+"_nosupport"]&&(fieldtype_defaults[d.val()+"_nosupport"].indexOf("hide_label")>=0&&e.find(".hide-label-field").hide().find(".field-config").prop("checked",!1),fieldtype_defaults[d.val()+"_nosupport"].indexOf("caption")>=0&&e.find(".caption-field").hide().find(".field-config").val(""),fieldtype_defaults[d.val()+"_nosupport"].indexOf("required")>=0&&e.find(".required-field").hide().find(".field-config").prop("checked",!1),fieldtype_defaults[d.val()+"_nosupport"].indexOf("custom_class")>=0&&e.find(".customclass-field").hide().find(".field-config").val(""),fieldtype_defaults[d.val()+"_nosupport"].indexOf("entry_list")>=0&&e.find(".entrylist-field").hide().find(".field-config").prop("checked",!1)),e.find(".toggle_show_values").trigger("change"),!a(".caldera-select-field-type").not(".field-initialized").length){if(core_form||(core_form=jQuery(".caldera-forms-options-form")),core_form.hasClass("builder-loaded"))c(d.data("field"));else{for(var j=a(".caldera-select-field-type.field-initialized"),k=0;k<j.length;k++)c(a(j[k]).data("field"));core_form.addClass("builder-loaded")}a(".caldera-header-save-button").prop("disabled",!1),rebuild_field_binding(),baldrickTriggers()}a(".color-field").length&&a(".color-field").wpColorPicker({change:function(b){var c=a(this);c.data("ev")&&clearTimeout(c.data("ev")),c.data("ev",setTimeout(function(){c.trigger("record")},200)),c.data("target")&&(a(c.data("target")).css(c.data("style"),c.val()),a(c.data("target")).val(c.val()))}})}function c(b){var c=a("#"+b),d=c.find(".caldera-select-field-type"),e=a('.layout-form-field[data-config="'+b+'"]'),f=e.find(".field_preview"),g=(a("#preview-"+d.val()+"_tmpl").html(),compiled_templates["preview-"+d.val()+"_tmpl"]),h={id:b};c.find(".field-config").each(function(c,d){for(var e=a(d),f=e.prop("name").split("["+b+"]")[1].substr(1),g=f.substr(0,f.length-1).split("]["),i=e.is(":checkbox,:radio")?e.filter(":checked").val():e.val(),j={},k=g.length-1;k>=0;k--)if(k===g.length-1)j[g[k]]=i;else{var l=j;j={},j[g[k]]=l}a.extend(!0,h,j)}),f.html(g(h)),e.removeClass("button"),a(".preview-field-config").prop("disabled",!0)}function d(b){var c,d=a(".caldera-editor-fields-panel"),e=(a(".caldera-editor-groups-panel"),a(".caldera-group-nav")),f=a('[data-group="'+b+'"]'),g=f.find(".caldera-config-group-name"),h=f.find(".caldera-config-group-slug"),i=f.find(".caldera-config-group-desc"),j=f.find(".caldera-config-group-admin"),k=a(".active-group-name"),l=a(".active-group-slug"),m=a(".active-group-desc"),n=a(".active-group-admin"),o=a(".caldera-editor-fields-list ul"),p=f.find(".caldera-config-group-repeat"),q=a(".repeat-config-button"),r=(a(".caldera-editor-group-settings"),a(".caldera-config-group-remove"));a(".new-group-input").remove(),a(".new-field-input").remove(),e.removeClass("active"),d.show(),o.hide(),o.removeClass("active").find("li.active").removeClass("active"),o.hide(),f.addClass("active"),c=a(".caldera-editor-fields-list ul.active li"),c.length?r.hide():r.show(),a(".caldera-editor-field-config-wrapper").hide(),f.show(),k.val(g.val()),l.val(h.val()),m.val(i.val()),"1"===j.val()?n.prop("checked",!0):n.prop("checked",!1),"1"===p.val()?q.addClass("field-edit-open"):q.removeClass("field-edit-open")}a(".caldera-header-save-button").baldrick({method:"POST",request:"admin.php?page=caldera-forms",before:function(b,c){if(c.preventDefault(),!check_required_bindings())return!1;a("#save_indicator").addClass("loading"),"undefined"!=typeof tinyMCE&&tinyMCE.triggerSave();var d=a(".caldera-forms-options-form").formJSON();return d.conditions&&(d.config.conditional_groups={conditions:d.conditions}),a(b).data("cf_edit_nonce",d.cf_edit_nonce),a(b).data("_wp_http_referer",d._wp_http_referer),a(b).data("sender","ajax"),a(b).data("config",JSON.stringify(d.config)),!0},callback:function(b){if(!1===b.data){var c=a(".updated_notice_box");c.stop().animate({top:0},200,function(){setTimeout(function(){c.stop().animate({top:-75},200)},2e3)})}},complete:function(b){a(".wrapper-instance-pane .field-config").prop("disabled",!1)}}),a("body").on("click",".toggle_processor_event input",function(b){var c=a(this),d=c.closest(".wrapper-instance-pane"),e=d.find(".caldera-config-processor-setup"),f=d.find(".caldera-config-processor-notice");c.is(":checked")?(c.parent().addClass("activated"),c.parent().find(".is_active").show().attr("aria-hidden",!1).css("visibility","visible"),c.parent().find(".not_active").hide().attr("aria-hidden",!0).css("visibility","hidden")):(c.parent().removeClass("activated"),c.parent().find(".is_active").hide().attr("aria-hidden",!0).css("visibility","hidden"),c.parent().find(".not_active").show().attr("aria-hidden",!1).css("visibility","visible")),d.find(".toggle_processor_event .activated").length?(e.slideDown(100),f.slideUp(100)):(e.slideUp(100),f.slideDown(100))}),a("body").on("click",".toggle_option_tab > a",function(b){b.preventDefault();var c=a(this),d=a(c.attr("href")),e=c.parent().find("a"),f=c.closest(".caldera-editor-config-wrapper").find(".wrapper-instance-pane");e.removeClass("button-primary"),f.hide(),d.show(),c.addClass("button-primary"),a(".caldera-conditionals-usetype").trigger("change")}),a(".caldera-editor-body").on("change",".caldera-select-field-type",function(a){b(this)}),a(".caldera-editor-body").on("click",".caldera-group-nav a",function(b){b.preventDefault(),d(a(this).attr("href").substr(1))}),a(".caldera-editor-body").on("click",".caldera-editor-fields-list a",function(b){b.preventDefault();var c=a(this),d=a(c.attr("href"));a(".new-group-input").remove(),a(".new-field-input").remove(),a(".caldera-editor-fields-list li.active").removeClass("active"),c.parent().addClass("active"),a(".caldera-editor-field-config-wrapper").hide(),d.show()}),a(".caldera-editor-body").on("click",".group-config-button",function(b){var c=a(this),d=a(".caldera-editor-group-settings"),e=c.closest(".caldera-editor-fields-panel"),f=a(".caldera-config-group-remove");e.find(".caldera-field-line").length?f.hide():f.show(),c.hasClass("field-edit-open")?(d.slideUp(100),c.removeClass("field-edit-open")):(d.slideDown(100),c.addClass("field-edit-open"))}),a(".caldera-editor-body").on("keydown",".field-config",function(b){a(this).is("textarea")||13===b.which&&b.preventDefault()}),a(".caldera-editor-body").on("change",".field-label",function(b){var c=a(this).closest(".caldera-editor-field-config-wrapper").prop("id");field_line=a('[data-field="'+c+'"]'),field_title=a("#"+c+" .caldera-editor-field-title, .layout-form-field.field-edit-open .layout_field_name"),slug=a("#"+c+" .field-slug"),field_line.find("a").html('<i class="icn-field"></i> '+this.value),field_title.text(this.value),"change"===b.type&&slug.trigger("change"),rebuild_field_binding()}),a(".caldera-editor-body").on("change",".active-group-name",function(b){b.preventDefault();var c=a(".caldera-group-nav.active"),d=(c.data("group"),c.find(".caldera-config-group-name")),e=c.find("span");"focusout"!==b.type||this.value.length||(this.value="Group "+(parseInt(c.index())+1)),d.val(this.value),e.text(this.value)}),a(".caldera-editor-body").on("change",".active-group-slug",function(b){b.preventDefault();var c=a(".caldera-group-nav.active"),d=(c.data("group"),c.find(".caldera-config-group-name").val()),e=c.find(".caldera-config-group-slug"),f=(c.find("span"),this.value.split(" ").join("_").split("-").join("_").replace(/[^a-z0-9_]/gi,"").toLowerCase());"focusout"!==b.type||this.value.length||(f=d.split(" ").join("_").split("-").join("_").replace(/[^a-z0-9_]/gi,"").toLowerCase()),e.val(f),this.value=f}),a(".caldera-editor-body").on("change",".active-group-desc",function(b){b.preventDefault();var c=a(".caldera-group-nav.active");(c.data("group"),c.find(".caldera-config-group-desc")).val(this.value)}),a(".caldera-editor-body").on("change",".active-group-admin",function(b){b.preventDefault();var c=a(".caldera-group-nav.active"),d=(c.data("group"),c.find(".caldera-config-group-name").val(),c.find(".caldera-config-group-admin"));c.find("span"),this.value.split(" ").join("_").split("-").join("_").replace(/[^a-z0-9_]/gi,"").toLowerCase(),a(this).prop("checked")?(d.val(1),c.addClass("is-admin")):(d.val(0),c.removeClass("is-admin"))}),a(".caldera-editor-body").on("click",".repeat-config-button",function(b){b.preventDefault();var c=a(".caldera-group-nav.active"),d=(c.data("group"),c.find("a .group-type")),e=c.find(".caldera-config-group-repeat"),f=a(this);f.hasClass("field-edit-open")?(e.val("0"),d.removeClass("icn-repeat").addClass("icn-folder"),f.removeClass("field-edit-open")):(e.val("1"),d.addClass("icn-repeat").removeClass("icn-folder"),f.addClass("field-edit-open"))}),a(".caldera-editor-body").on("click",".delete-field",function(){var b=a(this),c=b.closest(".caldera-editor-field-config-wrapper").prop("id");confirm(b.data("confirm"))&&(a("#"+c).remove(),a('option[value="'+c+'"]').remove(),a('[data-bind="'+c+'"]').remove(),delete current_form_fields[c],a('[data-config="'+c+'"]').slideUp(200,function(){a(this).remove(),rebuild_field_binding(),a(document).trigger("field.removed")}))}),a(".caldera-editor-body").on("click",".add-new-group,.add-field",function(){var b=a(this);if(a(".new-group-input").remove(),a(".new-field-input").remove(),b.hasClass("add-field")){a('<input type="text" class="new-field-input block-input">').appendTo(a(".caldera-editor-fields-list ul.active")).focus()}else{a('<input type="text" class="new-group-input block-input">').appendTo(a(".caldera-editor-groups-panel")).focus()}}),a(".caldera-editor-body").on("change keypress",".new-group-input",function(b){if("keypress"===b.type){if(13!==b.which)return;b.preventDefault()}var c,e,f=this.value,g=a(this),h=a(".caldera-editor-groups-panel ul"),i=a(".caldera-editor-fields-list");if(f.length){c=Handlebars.compile(a("#caldera_group_line_templ").html()),e={id:f.split(" ").join("_").split("-").join("_").replace(/[^a-z0-9_]/gi,"").toLowerCase(),name:f},h.append(c(e));a('<ul data-group="'+e.id+'">').hide().appendTo(i),g.remove(),d(e.id)}else g.remove()}),a(".caldera-editor-body").on("change keypress",".new-field-input",function(b){if("keypress"===b.type){if(13!==b.which)return;b.preventDefault()}var c,d,e,f=this.value,g=a(this),h=g.parent(),i=a(".caldera-editor-field-config"),j=a(".caldera-config-group-remove");if(f.length){j.hide(),c=Handlebars.compile(a("#caldera_field_line_templ").html()),d=Handlebars.compile(a("#caldera_field_config_wrapper_templ").html()),e={id:f.split(" ").join("_").split("-").join("_").replace(/[^a-z0-9_]/gi,"").toLowerCase(),label:f,slug:f.split(" ").join("_").split("-").join("_").replace(/[^a-z0-9_]/gi,"").toLowerCase(),group:a(".caldera-group-nav.active").data("group")};var k=a(c(e));k.appendTo(h),i.append(d(e)),k.find("a").trigger("click"),g.remove()}else g.remove()}),a(".caldera-editor-body").on("change",".field-slug",function(b){this.value.length?this.value=this.value.split(" ").join("_").split("-").join("_").replace(/[^a-z0-9_]/gi,"").toLowerCase():"change"===b.type&&(this.value=a(this).closest(".caldera-editor-field-config-wrapper").find(".field-label").val().split(" ").join("_").split("-").join("_").replace(/[^a-z0-9_]/gi,"").toLowerCase())}),a(".caldera-editor-body").on("click",".caldera-add-group",function(b){var c=a(this),d=c.data("group"),e=a("#"+d+"_panel_tmpl").html();c.parent().parent().append(e)}),a(".caldera-editor-body").on("click",".caldera-config-group-remove",function(b){var c=a(".active-group-slug").val();a('[data-group="'+c+'"]').hide(0,function(){a(this).remove();var b=a(".caldera-group-nav");b.length?b.first().find("a").trigger("click"):a(".caldera-editor-fields-panel").hide()})}),a("body").on("click",".set-current-field",function(b){b.preventDefault();var c=a(this);a("#"+c.data("field")+"_type").val(c.data("type")).trigger("change"),a("#"+c.data("field")+"_lable").focus(),a("#field_setup_baldrickModalCloser").trigger("click")}),a(".caldera-editor-body").on("change record",".field-config",function(b){var d=a(this),e=d.closest(".caldera-editor-field-config-wrapper");current_form_fields&&(d.prop("id")===e.prop("id")+"_lable"&&(current_form_fields[e.prop("id")].label=this.value),d.prop("id")===e.prop("id")+"_slug"&&(current_form_fields[e.prop("id")].slug=this.value),d.prop("id")===e.prop("id")+"_type"&&(current_form_fields[e.prop("id")].type=this.value),e.length&&c(e.prop("id")))}),a(".caldera-editor-body").on("focus",".caldera-field-bind",function(b){var c=a(this),d=this.value;if(b.type&&"focusin"===b.type)return c.removeClass("bound_field").addClass("reload-binding"),rebind_field_bindings(),void(this.value=d)}),a(".caldera-editor-body").on("change",".caldera-conditional-field-set",function(b){
|
3 |
+
var c,d,e=a(this),f=e.parent().find(".compare-type"),g=e.data("condition"),h=e.data("id"),i="config["+g+"]["+h+"][conditions][group]["+e.data("row")+"]["+e.data("line")+"]",j=e.data("line"),k=a("#"+j+"_value"),l=k.find(".caldera-conditional-value-field").first(),m=[],n=this.value;if("{"!==n.substr(0,1)&&(c=a("#"+n),d=c.find(".field-button-type"),m=c.find(".caldera-config-group-toggle-options")),e.hasClass(".bind_init")&&e.addClass("bound_triggered"),l.length&&l.val().length&&k.data("value",l.val()),f.show(),m.length){var o=m.find(".toggle_option_row"),p='<select name="'+i+'[value]" class="caldera-processor-value-bind caldera-conditional-value-field" data-field="'+n+'" style="max-width: 220px; width: 220px;">';p+='<option value=""></option>',o.each(function(b,c){var d=a(c).find(".toggle_label_field"),e=d.data("option"),f="";k.data("value")&&(k.data("value").toString()!==e&&k.data("value").toString()!==a(c).find(".toggle_value_field").val()||(f=' selected="selected"')),p+='<option value="'+e+'"'+f+">"+d.val()+"</option>"}),p+="</select>"}else d&&"button"==d.val()?(f.val("is").hide(),p='<select name="'+i+'[value]" class="caldera-processor-value-bind caldera-conditional-value-field" data-field="'+n+'" style="max-width: 220px; width: 220px;">',p+='<option value="click" '+("click"===k.data("value")?'selected="selected"':"")+">Click</option>",p+='<option value="dblclick" '+("dblclick"===k.data("value")?'selected="selected"':"")+">Double Click</option>",p+="</select>"):p='<input name="'+i+'[value]" type="text" class="caldera-conditional-value-field magic-tag-enabled" value="'+(k.data("value")?k.data("value"):"")+'" style="max-width: 205px;">';k.html(p),init_magic_tags()}),a(".caldera-editor-body").on("change",".caldera-conditionals-usetype",function(b){var c=a(this);"show"===this.value||"hide"===this.value||"disable"===this.value||"use"===this.value||"not"===this.value?(a("#"+c.data("id")+"_condition_group_add").show(),a("#"+c.data("id")+"_conditional_wrap").show()):(a("#"+c.data("id")+"_condition_group_add").hide(),a("#"+c.data("id")+"_conditional_wrap").hide())}),a(".caldera-editor-body").on("click",".remove-conditional-line",function(b){b.preventDefault();var c=a(this),d=c.closest(".caldera-condition-line"),e=c.closest(".caldera-condition-group");d.remove(),e.find(".caldera-condition-line").length||e.remove()}),a(".caldera-group-nav").first().find("a").trigger("click"),a(".caldera-editor-body").on("change",".toggle_show_values",function(b){var c=a(this),d=c.closest(".caldera-config-group-toggle-options");values=d.find(".toggle_value_field"),lables=d.find(".toggle_label_field"),field_lables=d.find(".caldera-config-group-option-labels"),c.prop("checked")?(values.show().parent().show(),values.show().parent().parent().show(),lables.css("width",""),field_lables.show()):(values.hide().parent().hide(),lables.css("width",245),field_lables.hide()),lables.trigger("toggle.values"),init_magic_tags()}),a(".caldera-editor-body").on("change",".auto-populate-type",function(){a(this).closest(".wrapper-instance-pane").find(".auto-populate-options").trigger("change")}),a(".caldera-editor-body").on("change",".auto-populate-options",function(){var b=a(this),c=b.closest(".wrapper-instance-pane"),d=c.find(".caldera-config-group-toggle-options"),e=c.find(".caldera-config-group-auto-options"),f=e.find(".auto-populate-type");e.find(".auto-populate-type-panel").hide(),b.prop("checked")?(d.hide(),e.show()):(d.show(),e.hide()),e.find(".caldera-config-group-auto-"+f.val()).show()}),a("body").on("change",".pin-toggle-roles",function(){var b=a(this),c=a("#caldera-pin-rules");"1"===b.val()?c.show():c.hide()}),a("body").on("click",".magic-tag-init",function(b){a(this).prev().focus().trigger("init.magic")}),a("body").on("keyup focus select click init.magic",".magic-tag-enabled",function(b){init_magic_tags();var c=a(this),d=c.parent(),e=d.closest(".wrapper-instance-pane").find(".caldera-select-field-type").val()?d.closest(".wrapper-instance-pane").find(".caldera-select-field-type").val():"hidden",f=d.find(".magic-tags-autocomplete"),g=f.find("ul"),h=this.value,i=[],j="",k=this.selectionStart,l=this.selectionEnd;if(f.length&&f.data("focus"))return void b.preventDefault();if(c.data("tag",""),this.selectionEnd>this.selectionStart)j=this.value.substr(this.selectionStart,this.selectionEnd-this.selectionStart);else if(("select"===b.type||"keyup"===b.type)&&40!==b.which&&38!==b.which&&39!==b.which&&37!==b.which){for(k=this.selectionStart;k>0;k--){var m=h.substr(k-1,1);if(" "===m||"\n"===m||("%"===m||"}"===m)&&this.selectionStart===k)break}for(l=this.selectionStart;l<h.length;l++){var m=h.substr(l,1);if(" "===m||"\n"===m||("%"===m||"{"===m)&&this.selectionStart===l)break}j=h.substr(k,l-k)}if("focusout"!==b.type){"init"!==b.type&&j.length<3&&f.length&&f.remove(),f.length||(f=a('<div class="magic-tags-autocomplete"></div>'),g=a("<ul></ul>"),g.appendTo(f),f.insertAfter(c),f.on("mouseenter",function(){a(this).data("focus",!0)}),f.on("mouseleave",function(){a(this).data("focus",!1),setTimeout(function(){f.remove()},200),c.is(":focus")||c.trigger("focusout")})),g.empty();var n="system",o=!1;"hidden"===e||"dropdown"===e||"radio"===e||"toggle_switch"===e||"checkbox"===e?(o=!0,e="text",n="all"):"paragraph"!==e&&"html"!==e||(e="text"),c.data("type")&&(e=c.data("type")),e=e.split(","),e.push("vars");for(var p=0;p<e.length;p++)for(var q in system_values)if(void 0!==system_values[q].tags&&void 0!==system_values[q].tags[e[p]]){if(i=[q],"system"!==q&&"variable"!==q&&"field"!==q){var r=jQuery(".processor-"+q),s=c.closest(".caldera-editor-processor-config-wrapper"),t=s.prop("id");i=[];for(var u=0;u<r.length;u++)if(s.length||!0!==o){if(t===r[u].id)continue;jQuery("li."+r[u].id).index()<jQuery("li."+t).index()&&i.push(r[u].id)}else i.push(r[u].id)}for(var v=0;v<i.length;v++)if("all"===n||n===q||"variable"===q){var w=a('<li class="header">'+system_values[q].type+(v>0?" ["+(v+1)+"]":"")+"</li>"),x=0;w.appendTo(g);for(var y=0;y<system_values[q].tags[e[p]].length;y++)if(!c.data("parent")||"variable:"+c.data("parent")!==system_values[q].tags[e[p]][y]){var z=system_values[q].wrap[0]+system_values[q].tags[e[p]][y]+system_values[q].wrap[1];if(i[v]!==q&&i.length>1&&(z=system_values[q].wrap[0]+system_values[q].tags[e[p]][y]+":"+i[v]+system_values[q].wrap[1]),z.indexOf(j)>=0||"init"===b.type){x+=1;var A=z.replace(j,"<strong>"+j+"</strong>"),B=a('<li class="tag" data-tag="'+z+'">'+A+"</li>");B.on("click",function(){var b=a(this).data("tag");c.val(h.substr(0,k)+b+h.substr(l)).trigger("change").focus(),c[0].selectionStart=k+b.length-(b.indexOf("*")>0?2:0),c[0].selectionEnd=k+b.length-(b.indexOf("*")>0?1:0),l=k=c[0].selectionEnd,h+=b,c.trigger("init.magic")}),B.appendTo(g)}}0===x&&w.remove()}}}g.children().length||f.remove(),"focusout"===b.type&&setTimeout(function(){f.remove()},200)});for(var e=a(".cf-editor-template"),f=0;f<e.length;f++)compiled_templates[e[f].id]=Handlebars.compile(e[f].innerHTML);a(".caldera-select-field-type").not(".field-initialized").each(function(a,c){b(c)})});var rebuild_field_binding,rebind_field_bindings,current_form_fields={},required_errors={},add_new_grid_page,add_page_grid,init_magic_tags,core_form,compiled_templates={};init_magic_tags=function(){jQuery(".magic-tag-enabled").each(function(a,b){var c=jQuery(b);if(c.hasClass("magic-tag-init-bound")){var d=c.parent().find(".magic-tag-init");return void(c.is(":visible")?d.show():d.hide())}var e=jQuery('<span class=""></span>'),f=jQuery('<span style="position:relative;display:inline-block; width:100%;"></span>');c.is("input")&&e.css("borderBottom","none"),c.hasClass("caldera-conditional-value-field")&&f.width("auto"),c.wrap(f),e.insertAfter(c),c.addClass("magic-tag-init-bound"),c.is(":visible")?e.show():e.hide()})},rebuild_field_binding=function(){if(core_form||(core_form=jQuery(".caldera-forms-options-form")),core_form.hasClass("builder-loaded")){var a=jQuery(".caldera-editor-field-config-wrapper");system_values.field={tags:{text:[]},type:"Fields",wrap:["%","%"]};for(var b=0;b<a.length;b++){var c=a[b].id,d=jQuery("#"+c+"_lable").val(),e=jQuery("#"+c+"_slug").val(),f=jQuery("#"+c+"_type").val();void 0===system_values.field.tags[f]&&(system_values.field.tags[f]=[]),system_values.field.tags[f].push(e),"text"!==f&&system_values.field.tags.text.push(e),current_form_fields[c]={label:d,slug:e,type:f},jQuery("option.bound-field").trigger("change").each(function(a,b){var c=jQuery(b);0!==c.prop("value").indexOf("{")?c.text(jQuery("#"+c.prop("value")+"_lable").val()+" ["+jQuery("#"+c.prop("value")+"_lable").val()+"]"):c.text(c.prop("value").replace("{","").replace("}",""))}).removeClass("bound-field")}}},rebind_field_bindings=function(){var a,b,c=jQuery(".caldera-field-bind").not(".bound_field");if(c.length){c.addClass("bound_field");for(var d=0;d<c.length;d++){var e=jQuery(c[d]),f=e.val(),g=e.data("default"),h=e.data("exclude"),i=0,j=e.closest(".caldera-editor-processor-config-wrapper"),k=j.prop("id"),l="";if(g&&!e.hasClass("reload-binding")&&(f=g),e.is("select")){e.empty();var m=jQuery('<optgroup label="Fields">');for(var n in current_form_fields)e.data("type")&&e.data("type").split(",").indexOf(current_form_fields[n].type)<0||(e.data("id")!==n&&m.append('<option value="'+n+'"'+(f===n?'selected="selected"':"")+">"+current_form_fields[n].label+" ["+current_form_fields[n].slug+"]</option>"),i+=1);m.appendTo(e),0===i&&e.empty();for(var o in system_values)if(a=[],!(h&&h.split(",").indexOf(o)>=0)){if("system"!==o&&"variable"!==o)for(var p=jQuery(".processor-"+o),q=0;q<p.length;q++)k!==p[q].id&&(a.push(p[q].id),p.length>1&&(b=jQuery("li."+p[q].id+" .processor-line-number"))&&b.html("["+(q+1)+"]"));else a.push("__system__");var r=[];e.data("type")?(r=e.data("type").split(","),r.push("vars")):r=["text","vars"];for(var s=0;s<r.length;s++)if(system_values[o].tags&&system_values[o].tags[r[s]])for(var t=0;t<a.length;t++){jQuery("li."+a[t]).index()>jQuery("li."+k).index()&&"__system__"!==a[t]?e.closest(".caldera-editor-processors-panel-wrap").length&&(l=' disabled="disabled"'):l="";for(var m=jQuery('<optgroup label="'+system_values[o].type+("__system__"!==a[t]?" "+jQuery("li."+a[t]).find(".processor-line-number").html():"")+'"'+l+">"),u=0;u<system_values[o].tags[r[s]].length;u++){var v=system_values[o].tags[r[s]][u];"__system__"!==a[t]&&(v=v.replace(o,a[t])),m.append('<option value="{'+v+'}"'+(f==="{"+v+"}"?'selected="selected"':"")+l+">"+system_values[o].tags[r[s]][u]+"</option>"),i+=1}m.children().length&&m.appendTo(e)}}if(0===i){if(e.empty(),e.data("type")){e.append('<option value="">No '+e.data("type").split(",").join(" or ")+" in form</option>");var w=!0}}else e.prop("disabled",!1);e.hasClass("required")||void 0!==w||e.prepend('<option value=""></option>'),e.val(f)}}init_magic_tags(),jQuery(document).trigger("bound.fields"),jQuery(".caldera-header-save-button").prop("disabled",!1)}},jQuery(document).ready(function(a){function b(){var b=a(".layout-grid-panel"),c=0;b.each(function(b,d){var e=a(d),f=e.find(".layout-structure"),g=e.find(".row"),h=[];g.each(function(b,d){var e=a(d),f=e.children().not(".column-merge"),g=[];c+=1,f.each(function(b,d){span=a(d).attr("class").split("-"),g.push(span[2]);var e=a(d).find(".field-location");e.length&&e.each(function(d,e){a(e).val(c+":"+(b+1)).removeAttr("disabled")})}),h.push(g.join(":"))}),f.val(h.join("|"))})}function c(b,c,e){var f,g,h="fld_"+Math.round(1e7*Math.random()),i=h,j=a("#field_config_panels");b.prop("id","").prop("title",""),f=Handlebars.compile(a("#caldera_field_config_wrapper_templ").html()),g=a.extend({},{id:i,label:"",slug:""},e),g.slug="",j.append(f(g)),b.removeClass("button-small").removeClass("button").removeClass("button-primary").removeClass("ui-draggable").removeClass("layout-new-form-field").addClass("layout-form-field").attr("data-config",h).css({display:"",opacity:""}),b.find(".layout_field_name").remove(),b.find(".field-location").prop("name","config[layout_grid][fields]["+h+"]"),b.find(".settings-panel").show(),b.appendTo(c),d(),b.find(".icon-edit").trigger("click"),a("#"+h+"_lable").focus().select(),baldrickTriggers(),a(document).trigger("field.added"),e?a("#"+i+"_type").data("type",g.type).trigger("change"):a("#"+h).trigger("field.drop"),rebuild_field_binding()}function d(){a(".toggle-options").sortable({handle:".dashicons-sort"}),a("#grid-pages-panel").sortable({placeholder:"row-drop-helper",handle:".sort-handle",items:".first-row-level",axis:"y",stop:function(){b()}}),a(".layout-column").sortable({connectWith:".layout-column",appendTo:"#grid-pages-panel",helper:"clone",items:".layout-form-field",handle:".drag-handle",cursor:"move",opacity:.7,cursorAt:{left:100,top:15},start:function(a,b){b.helper.css({width:"200px",height:"35px",paddingTop:"20px"})},stop:function(a,c){c.item.removeAttr("style"),b()}}),a("h3 .layout-new-form-field").draggable({helper:"clone",appendTo:"body"}),a(".page-toggle.button").droppable({accept:".layout-form-field",over:function(b,c){a(this).trigger("click"),a(".layout-column").sortable("refresh")}}),a(".layout-column").droppable({greedy:!0,activeClass:"ui-state-dropper",hoverClass:"ui-state-hoverable",accept:".layout-new-form-field",drop:function(b,d){c(d.draggable.clone(),a(this))}}),b()}function e(){if(h){var b=a(".column-fieldinsert");b.length?(b.stop().fadeToggle(700),a(".layout-new-form-field").stop().fadeToggle(700)):cf_clear_puler()}}function f(){a(".caldera-editor-processors-panel ul").sortable({update:function(){rebuild_field_binding()}})}function g(b){var c=a(b),d=a("#"+c.val()+"-tmpl").length?a("#"+c.val()+"-tmpl").html():"",e=c.closest(".caldera-editor-processor-config-wrapper"),f=e.find(".caldera-config-processor-setup"),g=Handlebars.compile(d),h=e.find(".processor_config_string").val(),i=c.data("type");h=h.length&&i===c.val()?JSON.parse(h):processor_defaults[c.val()+"_cfg"],h||(h={}),h._id=e.prop("id"),h._name="config[processors]["+e.prop("id")+"][config]",g=a("<div>").html(g(h)),f.html(g.html()),"function"==typeof window[c.val()+"_init"]&&window[c.val()+"_init"](e.prop("id"),f),e.find(".no-conditions").length&&e.find(".toggle_option_tab").remove(),rebuild_field_binding(),baldrickTriggers(),a(".wp-baldrick").baldrick({request:ajaxurl,method:"POST",before:function(b){var c=a(b);c.data("addNode")&&!c.data("request")&&c.data("request","cf_get_default_setting")}})}add_new_grid_page=function(a){return{page_no:"pg_"+Math.round(1e7*Math.random())}},add_page_grid=function(b){var c=a(".page-toggle").length+1,e=a('<button type="button" data-name="Page '+c+'" data-page="'+b.rawData.page_no+'" class="page-toggle button">'+b.params.trigger.data("addtitle")+" "+c+"</button> "),f=a("#page-toggles");e.appendTo(f),f.show(),d(),e.trigger("click"),1===c&&f.hide(),a(document).trigger("add.page")},a(document).on("remove.page add.page load.page",function(b){var c=a(".page-toggle").length,d=a("#tab_pages");c<=1?d.hide():d.show()}),d(),a("#grid-pages-panel").on("click",".column-fieldinsert .dashicons-plus-alt",function(b){var d=a(this).closest(".column-container");c(a("#newfield-tool").clone().css("display",""),d)}),a("#grid-pages-panel").on("click",".column-split",function(b){var c=a(this).parent().parent(),e=c.attr("class").split("-"),f=a("<div>").insertAfter(c),g=Math.ceil(e[2]/2),h=Math.floor(e[2]/2);e[2]=g,c.attr("class",e.join("-")),e[2]=h,f.addClass(e.join("-")).append('<div class="layout-column column-container">'),a(this).remove(),d(),jQuery(".column-tools").remove(),jQuery(".column-merge").remove()}),a("#grid-pages-panel").on("click",".column-remove",function(c){var d=a(this).closest(".row"),e=d.find(".layout-form-field"),f=d.closest(".layout-grid-panel");if(e.length){if(!confirm(a("#row-remove-fields-message").text()))return;e.each(function(b,c){var d=a(c).data("config");a("#"+d).remove(),a('option[value="'+d+'"]').remove(),a('[data-bind="'+d+'"]').remove(),delete current_form_fields[d]})}d.slideUp(200,function(){if(a(this).remove(),b(),rebuild_field_binding(),!f.find(".row").length){f.remove();var c=a("#page-toggles .button-primary"),d=c.prev(),e=c.next();c.remove(),d.length?d.trigger("click"):e.trigger("click")}a(document).trigger("remove.page")}),jQuery(".column-tools").remove(),jQuery(".column-merge").remove()}),a(".caldera-config-editor-main-panel").on("click",".caldera-add-row",function(c){if(c.preventDefault(),!a(".page-active").length)return void a(".caldera-add-page").trigger("click");var e=a('<div style="display:none;" class="first-row-level row"><div class="col-xs-12"><div class="layout-column column-container"></div></div></div>');a(".page-active").append(e),e.slideDown(200),d(),b()}),a("#grid-pages-panel").on("click",".column-join",function(c){var d=a(this).parent().parent().parent(),e=d.prev(),f=e.attr("class").split("-"),g=d.attr("class").split("-");f[2]=parseFloat(f[2])+parseFloat(g[2]),d.find(".layout-column").contents().appendTo(e.find(".layout-column")),e.attr("class",f.join("-")),d.remove(),b(),jQuery(".column-tools").remove(),jQuery(".column-merge").remove()}),a("#grid-pages-panel").on("mouseenter",".row",function(c){var d=jQuery(this);jQuery(".column-tools,.column-merge").remove(),d.children().children().first().append('<div class="column-remove column-tools"><i class="icon-remove"></i></div>'),d.children().children().last().append('<div class="column-sort column-tools" style="text-align:right;"><i class="dashicons dashicons-menu drag-handle sort-handle"></i></div>'),d.children().children().not(":first").prepend('<div class="column-merge"><div class="column-join column-tools"><i class="icon-join"></i></div></div>');var e=d.parent().parent().parent().width()/12-1;d.children().children().each(function(b,c){var d=a(c),e=d.width()/2-5;d.prepend('<div class="column-fieldinsert column-tools"><i class="dashicons dashicons-plus-alt"></i></div>'),d.parent().hasClass("col-xs-1")||(d.prepend('<div class="column-split column-tools"><i class="dashicons dashicons-leftright"></i></div>'),d.find(".column-split").css("left",e))}),jQuery(".column-merge").draggable({axis:"x",helper:"clone",appendTo:d,grid:[e,0],drag:function(c,d){a(this).addClass("dragging"),a(".column-tools").remove(),a(".column-split").remove();var e=a(this).parent().parent(),f=d.helper,g=d.originalPosition.left>f.position().left?"left":"right",h=e.prev(),i=Math.round(e.parent().width()/12-10),j=Math.abs(d.originalPosition.left-f.position().left);if(e.parent().addClass("sizing"),j>=i){var k=h.attr("class").split("-"),l=e.attr("class").split("-");k[2]=parseFloat(k[2]),l[2]=parseFloat(l[2]),"left"===g?(k[2]--,l[2]++,k[2]>0&&k[2]<k[2]+l[2]?(h.attr("class",k.join("-")),e.attr("class",l.join("-")),d.originalPosition.left=f.position().left):a(this).draggable("option","disabled",!0)):(k[2]++,l[2]--,l[2]>0&&l[2]<l[2]+l[2]?(h.attr("class",k.join("-")),e.attr("class",l.join("-")),d.originalPosition.left=f.position().left):a(this).draggable("option","disabled",!0)),b()}},stop:function(){a(this).removeClass("dragging").parent().parent().parent().removeClass("sizing")}})}),a("#grid-pages-panel").on("mouseleave",".row",function(a){jQuery(".column-tools").remove(),jQuery(".column-merge").remove()}),a("#grid-pages-panel").on("click",".layout-form-field .icon-remove",function(){var b=a(this),c=b.parent(),d=a("#"+c.data("config"));c.slideUp(100,function(){a(this).remove()}),d.slideUp(100,function(){a(this).remove()})}),a(document).on("click",".layout-form-field .dashicons-admin-page",function(){var b=a(this),d=b.parent(),e=d.data("config"),f=a("#"+e).formJSON(),g=b.closest(".column-container"),h=d.clone().css("display",""),i={};d.hasClass("field-edit-open")&&(d.removeClass("field-edit-open"),h.removeClass("field-edit-open"),a(".caldera-editor-field-config-wrapper").hide()),f.config.fields[e]&&(i=f.config.fields[e],delete i.ID),c(h,g,i)}),a(document).on("click",".layout-form-field .icon-edit",function(){var b=a(this),c=b.parent(),d=a("#"+c.data("config")+"_type").val();a(".caldera-editor-field-config-wrapper").hide(),c.hasClass("field-edit-open")?c.removeClass("field-edit-open"):(a(".layout-form-field").removeClass("field-edit-open"),c.addClass("field-edit-open"),a("#"+c.data("config")).show()),a(document).trigger("show."+c.data("config")),a(document).trigger("show.fieldedit"),"radio"!==d&&"checkbox"!==d&&"dropdown"!==d&&"toggle_switch"!==d||a("#"+c.data("config")+"_auto").trigger("change")}),a("body").on("click",".layout-modal-edit-closer,.layout-modal-save-action",function(b){b.preventDefault();var c=a(this),d=a(".layout-form-field.edit-open"),e=c.closest(".layout-modal-container");settings=e.find(".settings-panel").first(),a(".edit-open").removeClass("edit-open"),settings.appendTo(d.find(".settings-wrapper")).hide(),e.hide()}),a(".layout-editor-body").on("change",".layout-core-pod-query",function(){a(this).parent().find(".settings-panel-row").remove(),a(".edit-open").find(".drag-handle .set-pod").html(" - "+a(this).val())}),a(".layout-editor-body").on("click",".remove-where",function(){a(this).closest(".settings-panel-row").remove()}),a(".layout-editor-body").on("click",".use-pod-container",function(){var b=a(this),c=b.prev(),d=c.val();if(d.length){a(".edit-open").find(".drag-handle .set-pod").html(" - "+c.val()),b.parent().parent().find(".spinner").css("display","inline-block");var e={action:"pq_loadpod",pod_reference:{pod:d}};a.post(ajaxurl,e,function(c){b.parent().find(".spinner").css("display","none");var d=a("#where-line-tmpl").html(),e="",f=b.closest(".settings-panel").data("container");for(var g in c)e+='<option value="'+c[g]+'">'+c[g]+"</option>";d=d.replace(/{{fields}}/g,e).replace(/{{container_id}}/g,f),b.parent().append(d)})}}),a(".caldera-editor-header").on("click",".column-sort .icon-edit",function(a){}),a(".layout-editor-body").on("tray_loaded",".layout-template-tray",function(){d()}),a(".caldera-editor-header").on("click",".caldera-editor-header-nav a",function(b){b.preventDefault();var c=a(this);a(".caldera-editor-header-nav li").removeClass("active"),a(".caldera-editor-body").hide(),a(c.attr("href")).show(),c.parent().addClass("active"),rebind_field_bindings()}),a("body").on("change",".required",function(){check_required_bindings(this)}),a("body").on("submit",".caldera-forms-options-form",function(b){a(".required.has-error").length&&b.preventDefault()}),a(".caldera-editor-body").on("click",".add-toggle-option",function(b){var c=a(this);if(c.data("bulk"))return a(c.data("bulk")).toggle(),void a(c.data("bulk")).find("textarea").focus();var d=c.closest(".caldera-editor-field-config-wrapper"),e=d.find(".toggle-options"),f=a("#field-option-row-tmpl").html(),g=Handlebars.compile(f),h="opt"+parseInt(1048576*(Math.random()+1)),i={_name:"config[fields]["+d.prop("id")+"][config]",option:{}};if(c.data("options")){for(var j=a(c.data("options")),k=j.val().split("\n"),l=!1,m=0;m<k.length;m++){var n=k[m],o=n,p=o.split("|");p.length>1&&(o=p[0],n=p[1],l=!0),i.option["opt"+parseInt(1048576*(Math.random()+m))]={value:o,label:n,default:!1}}a(c.data("options")).parent().hide(),j.val(""),!0===l?d.find(".toggle_show_values").prop("checked",!0):d.find(".toggle_show_values").prop("checked",!1),e.empty()}else i.option[h]={value:"",label:"",default:!1};a(".preset_options").val(""),e.append(g(i)),d.find(".toggle_show_values").trigger("change"),a(".toggle-options").sortable({handle:".dashicons-sort"}),k||e.find(".toggle_label_field").last().focus()}),a(".caldera-editor-body").on("change",".preset_options",function(b){var c=a(this),d=c.val(),e=a(c.data("bulk"));preset_options&&preset_options[d]&&preset_options[d].data&&("object"==typeof preset_options[d].data&&preset_options[d].data.length&&(preset_options[d].data=preset_options[d].data.join("\n")),e.val(preset_options[d].data))}),a(".caldera-editor-body").on("click",".toggle-remove-option",function(b){var c=a(this).closest(".caldera-editor-field-config-wrapper").find(".field-config").first();a(this).parent().remove(),c.trigger("change"),a(document).trigger("option.remove")}),a(".caldera-editor-body").on("click",".page-toggle",function(b){var c=a(this),d=c.parent(),e=d.find(".button");e.removeClass("button-primary"),a(".layout-grid-panel").hide().removeClass("page-active"),a("#"+c.data("page")).show().addClass("page-active"),c.addClass("button-primary"),e.each(function(b,c){a(c).html(d.data("title")+" "+(b+1))}),1===e.length&&d.hide()}),a(".caldera-editor-body").on("blur toggle.values",".toggle_label_field",function(b){var c=a(this),d=c.prev();d.val().length||d.val(c.val())}),a(document).on("change focusout",".toggle_value_field",function(){a(document).trigger("show.fieldedit")}),a(document).on("show.fieldedit option.remove",function(b){a(".toggle_value_field.has-error").removeClass("has-error");for(var c=a("#"+a(".layout-form-field.field-edit-open").data("config")),d=c.find(".toggle_value_field"),e=c.find(".notice"),f=0,g=0;g<d.length;g++){for(var h=(d[g].value,0),i=0;i<d.length;i++)d[g]!==d[i]&&d[g].value===d[i].value&&(a(d[i]).addClass("has-error"),h++);h>0&&(a(d[g]).addClass("has-error"),f++)}f>0?(e.slideDown(),b.preventDefault()):e.slideUp()});var h=!1;focus_initial_field=function(b){var c=a(".layout-grid-panel .icon-edit").first();c.length?c.trigger("click"):(a(".layout-column.column-container").first().trigger("mouseover"),h=setInterval(e,500)),a(document).off("load.page",focus_initial_field)},a(document).on("load.page",focus_initial_field),cf_clear_puler=function(){h&&(clearTimeout(h),a(document).off("mouseover",".layout-new-form-field, .column-fieldinsert",cf_clear_puler)),a(".layout-new-form-field, .column-fieldinsert").fadeIn()},a(document).on("mouseover",".layout-new-form-field, .column-fieldinsert",cf_clear_puler),rebuild_field_binding(),a(document).trigger("load.page"),a("body").on("click",".caldera-processor-nav a",function(b){b.preventDefault();var c=a(this);a(".caldera-processor-nav").removeClass("active"),a(".caldera-editor-processor-config-wrapper").hide(),a(c.attr("href")).show(),c.parent().addClass("active")}),a("body").on("click",".add-new-processor",function(b){var c=a(this),d=Handlebars.compile(a("#processor-wrapper-tmpl").html());wrap=a(".active-processors-list"),process_conf=a(".caldera-editor-processor-config"),processid=Math.round(1e8*Math.random()),new_templ=Handlebars.compile(a("#processor-line-tmpl").html()),new_proc={id:"fp_"+processid,type:c.data("type")},wrap.append(new_templ(new_proc)),process_conf.append(d(new_proc)),a("#form_processor_baldrickModalCloser").trigger("click"),a(".caldera-processor-nav a").last().trigger("click"),a("#fp_"+processid+"_type").val(c.data("type")).trigger("change"),f(),baldrickTriggers()}),a("body").on("click",".delete-processor",function(b){var c=a(this),d=c.closest(".caldera-editor-processor-config-wrapper");d.data("type"),confirm(c.data("confirm"))&&(a("."+d.prop("id")).remove(),d.remove(),a(".caldera-processor-nav a").first().trigger("click"),rebuild_field_binding())}),a("body").on("change",".caldera-select-processor-type",function(b){var c=a(this),d=c.closest(".caldera-editor-processor-config-wrapper"),e=c.find('option[value="'+c.val()+'"]').text(),f=d.find(".caldera-editor-processor-title"),h=a(".caldera-processor-nav.active a");""===e&&(e=f.data("title")),f.html(e),h.html(e+' <span class="processor-line-number"></span>').parent().addClass("processor_type_"+c.val()),g(this),rebuild_field_binding()}),a(document).on("click","#cf-shortcode-preview",function(){a(this).focus().select()}),a(document).on("change",".cf-email-preview-toggle",function(){var b=a(this),c=a(".caldera-header-email-preview-button");b.is(":checked")?c.show().attr("aria-hidden","false").css("visibility","visible"):c.hide().attr("aria-hidden","true").css("visibility","hidden")}),rebuild_field_binding(),a(".caldera-select-processor-type").each(function(a,b){g(b)}),f()}),Handlebars.registerHelper("_field",function(a){var b=this,c="",d="",e="",f=this[a.hash.slug]?' data-default="'+this[a.hash.slug]+'"':"";a.hash.required&&(c=" required"),a.hash.exclude&&(e='data-exclude="'+a.hash.exclude+'"'),a.hash.array&&(d="[]","true"!==a.hash.array&&(f='value="'+a.hash.array+'"')),out="<select "+(a.hash.type?'data-type="'+a.hash.type+'"':"")+f+" "+e+' name="'+this._name+"["+a.hash.slug+"]"+d+'" id="'+this._id+"_"+a.hash.slug+'" class="block-input field-config caldera-field-bind'+c+'">',this[a.hash.slug]?out+='<option class="bound-field" value="'+this[a.hash.slug]+'" class="bound-field"></option>':a.hash.required||(out+='<option value=""></option>');for(var g in current_form_fields){var h="";a.hash.type&¤t_form_fields[g].type!==a.hash.type||(b[a.hash.slug]&&b[a.hash.slug]===g&&(h=' selected="selected"'),out+='<option value="'+g+'"'+h+">"+current_form_fields[g].label+" ["+current_form_fields[g].slug+"]</option>")}return out+="</select>",a.hash.required&&(out+='<input class="field-config" name="'+this._name+'[_required_bounds][]" type="hidden" value="'+a.hash.slug+'">'),out}),Handlebars.registerHelper("console",function(a,b){console.log(this)});
|
assets/build/js/shortcode-insert.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
jQuery(function(a){if(a(".color-field").wpColorPicker({mode:"rgba"}),a("body").on("click","#caldera-forms-form-insert,#wp_fs_caldera-forms",function(b){b.preventDefault();var c=a(".caldera-forms-insert-modal");data=a(this).data("settings"),data&&(data.id&&a('.selected-form-shortcode[value="'+data.id+'"]').prop("checked",!0),data.modal&&(a(".set_cf_modal").prop("checked",!0),a(".modal-forms-setup").show()),data.type&&a(".modal_trigger_type").val(data.type),data.content&&a(".modal_trigger").val(data.content),data.width&&a(".modal_width").val(data.width),a(this).data("settings",{})),c.fadeIn(100)}),a("body").on("click",".caldera-modal-closer",function(b){b.preventDefault();var c=a(".caldera-forms-insert-modal");a("#calderaf_forms_shortcode_modal")[0].reset(),a(".modal-forms-setup").hide(),c.fadeOut(100)}),a("body").on("change",".set_cf_modal",function(b){a(this).is(":checked")?a(".modal-forms-setup").show():a(".modal-forms-setup").hide()}),a("body").on("click",".caldera-form-shortcode-insert",function(b){b.preventDefault();var c,d=a(".selected-form-shortcode:checked"),e=a(".set_cf_modal").prop("checked"),f=a(".modal_trigger").val(),g=a(".modal_trigger_type").val(),h=a(".modal_width").val();if(d.length){var i="caldera_form";e&&(i="caldera_form_modal"),c="["+i+' id="'+d.val()+'"',!0===e&&"button"===g&&(c+=' type="'+g+'"'),h.length&&(c+=' width="'+h+'"'),c+="]",e&&(f.length?c+=f:c+=d.parent().text(),c+="[/caldera_form_modal]"),a("#calderaf_forms_shortcode_modal")[0].reset(),a(".modal-forms-setup").hide(),d.prop("checked",!1),window.send_to_editor(c),a(".caldera-modal-closer").trigger("click")}}),"undefined"!=typeof wp&&void 0!==wp.media&&0!=a("#caldera-forms-form-insert").length){var b=wp.media;"function"==typeof wp.mce.views.register&&wp.mce.views.register("caldera_form",{template:b.template("editor-caldera-forms"),initialize:function(){this.fetch()},setLoader:function(){this.setContent('<div class="loading-placeholder"><div class="dashicons dashicons-update" style="color:#a3be5f;"></div><div class="wpview-loading"><ins style="background-color:#a3be5f;"></ins></div></div>')},fetch:function(){var b=this,c={post_id:a("#post_ID").val(),content:b.shortcode.content,atts:b.shortcode.attrs};wp.ajax.post("cf_get_form_preview",c).done(function(a){b.render(a.html)}).fail(function(a){b.render(a.html)})},edit:function(a){var b=this.shortcode.attrs.named;b.content=this.shortcode.content,jQuery("#caldera-forms-form-insert").data("settings",b).trigger("click")}})}})
|
1 |
+
jQuery(function(a){if(a(".color-field").wpColorPicker({mode:"rgba"}),a("body").on("click","#caldera-forms-form-insert,#wp_fs_caldera-forms",function(b){b.preventDefault();var c=a(".caldera-forms-insert-modal");data=a(this).data("settings"),data&&(data.id&&a('.selected-form-shortcode[value="'+data.id+'"]').prop("checked",!0),data.modal&&(a(".set_cf_modal").prop("checked",!0),a(".modal-forms-setup").show()),data.type&&a(".modal_trigger_type").val(data.type),data.content&&a(".modal_trigger").val(data.content),data.width&&a(".modal_width").val(data.width),a(this).data("settings",{})),c.fadeIn(100)}),a("body").on("click",".caldera-modal-closer",function(b){b.preventDefault();var c=a(".caldera-forms-insert-modal");a("#calderaf_forms_shortcode_modal")[0].reset(),a(".modal-forms-setup").hide(),c.fadeOut(100)}),a("body").on("change",".set_cf_modal",function(b){a(this).is(":checked")?a(".modal-forms-setup").show():a(".modal-forms-setup").hide()}),a("body").on("click",".caldera-form-shortcode-insert",function(b){b.preventDefault();var c,d=a(".selected-form-shortcode:checked"),e=a(".set_cf_modal").prop("checked"),f=a(".modal_trigger").val(),g=a(".modal_trigger_type").val(),h=a(".modal_width").val();if(d.length){var i="caldera_form";e&&(i="caldera_form_modal"),c="["+i+' id="'+d.val()+'"',!0===e&&"button"===g&&(c+=' type="'+g+'"'),h.length&&(c+=' width="'+h+'"'),c+="]",e&&(f.length?c+=f:c+=d.parent().text(),c+="[/caldera_form_modal]"),a("#calderaf_forms_shortcode_modal")[0].reset(),a(".modal-forms-setup").hide(),d.prop("checked",!1),window.send_to_editor(c),a(".caldera-modal-closer").trigger("click")}}),"undefined"!=typeof wp&&void 0!==wp.media&&0!=a("#caldera-forms-form-insert").length){var b=wp.media;"function"==typeof wp.mce.views.register&&wp.mce.views.register("caldera_form",{template:b.template("editor-caldera-forms"),initialize:function(){this.fetch()},setLoader:function(){this.setContent('<div class="loading-placeholder"><div class="dashicons dashicons-update" style="color:#a3be5f;"></div><div class="wpview-loading"><ins style="background-color:#a3be5f;"></ins></div></div>')},fetch:function(){var b=this,c={post_id:a("#post_ID").val(),content:b.shortcode.content,atts:b.shortcode.attrs};wp.ajax.post("cf_get_form_preview",c).done(function(a){b.render(a.html)}).fail(function(a){b.render(a.html)})},edit:function(a){var b=this.shortcode.attrs.named;b.content=this.shortcode.content,jQuery("#caldera-forms-form-insert").data("settings",b).trigger("click")}})}});
|
assets/css/admin.css
CHANGED
@@ -2246,4 +2246,11 @@ li.caldera-forms-toolbar-item.success {
|
|
2246 |
display: none;
|
2247 |
-webkit-animation: fadeout .5s 1;
|
2248 |
animation: fadeout .5s 1;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2249 |
}
|
2246 |
display: none;
|
2247 |
-webkit-animation: fadeout .5s 1;
|
2248 |
animation: fadeout .5s 1;
|
2249 |
+
}
|
2250 |
+
|
2251 |
+
.caldera-forms-deleted {
|
2252 |
+
color: #a3be5f;
|
2253 |
+
}
|
2254 |
+
.caldera-forms-not-deleted {
|
2255 |
+
color: red;
|
2256 |
}
|
assets/css/caldera-forms-front.css
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
/*! GENERATED SOURCE FILE caldera-forms - v1.6.3 - 2018-05-15 */.caldera-grid body{margin:0}.caldera-grid .form-group{margin-bottom:1em}@media (min-width:768px){.caldera-grid .container{width:750px}}@media (min-width:992px){.caldera-grid .container{width:970px}}@media (min-width:1200px){.caldera-grid .container{width:1170px}}.caldera-grid article,.caldera-grid aside,.caldera-grid details,.caldera-grid figcaption,.caldera-grid figure,.caldera-grid footer,.caldera-grid header,.caldera-grid hgroup,.caldera-grid main,.caldera-grid nav,.caldera-grid section,.caldera-grid summary{display:block}.caldera-grid audio,.caldera-grid canvas,.caldera-grid progress,.caldera-grid video{display:inline-block;vertical-align:baseline}.caldera-grid audio:not([controls]){display:none;height:0}.caldera-grid [hidden],.caldera-grid template{display:none}.caldera-grid a{background:0 0;text-decoration:none}.caldera-grid a:active,.caldera-grid a:hover{outline:0}.caldera-grid abbr[title]{border-bottom:1px dotted}.caldera-grid b,.caldera-grid strong{font-weight:700}.caldera-grid dfn{font-style:italic}.caldera-grid h1{font-size:2em;margin:.67em 0}.caldera-grid mark{background:#ff0;color:#000}.caldera-grid small{font-size:80%}.caldera-grid sub,.caldera-grid sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.caldera-grid sup{top:-.5em}.caldera-grid sub{bottom:-.25em}.caldera-grid img{border:0;vertical-align:middle}.caldera-grid svg:not(:root){overflow:hidden}.caldera-grid hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}.caldera-grid pre{overflow:auto}.caldera-grid code,.caldera-grid kbd,.caldera-grid pre,.caldera-grid samp{font-family:monospace,monospace;font-size:1em}.caldera-grid button,.caldera-grid input,.caldera-grid optgroup,.caldera-grid select,.caldera-grid textarea{font:inherit;margin:0}.caldera-grid button{overflow:visible}.caldera-grid button,.caldera-grid select{text-transform:none}.caldera-grid button,.caldera-grid html input[type=button],.caldera-grid input[type=reset],.caldera-grid input[type=submit]{-webkit-appearance:button;cursor:pointer}.caldera-grid button[disabled],.caldera-grid html input[disabled]{cursor:default}.caldera-grid button::-moz-focus-inner,.caldera-grid input::-moz-focus-inner{border:0;padding:0}.caldera-grid input[type=checkbox],.caldera-grid input[type=radio]{box-sizing:border-box;padding:0}.caldera-grid input[type=number]::-webkit-inner-spin-button,.caldera-grid input[type=number]::-webkit-outer-spin-button{height:auto}.caldera-grid input[type=search]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}.caldera-grid input[type=search]::-webkit-search-cancel-button,.caldera-grid input[type=search]::-webkit-search-decoration{-webkit-appearance:none}.caldera-grid fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}.caldera-grid legend{border:0;padding:0}.caldera-grid textarea{overflow:auto}.caldera-grid optgroup{font-weight:700}.caldera-grid table{border-collapse:collapse;border-spacing:0}.caldera-grid td,.caldera-grid th{padding:0}.caldera-grid *,.caldera-grid :after,.caldera-grid :before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.caldera-grid html{font-size:62.5%;-webkit-tap-highlight-color:transparent}.caldera-grid body{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:1.42857143;color:#333;background-color:#fff}.caldera-grid button,.caldera-grid input,.caldera-grid select,.caldera-grid textarea{font-family:inherit;font-size:inherit;line-height:inherit}.caldera-grid a:focus,.caldera-grid a:hover{color:#2a6496;text-decoration:underline}.caldera-grid a:focus{outline:dotted thin;outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px}.caldera-grid figure{margin:0}.caldera-grid .img-responsive{display:block;max-width:100%;height:auto}.caldera-grid .img-rounded{border-radius:6px}.caldera-grid .img-thumbnail{padding:4px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out;display:inline-block;max-width:100%;height:auto}.caldera-grid .img-circle{border-radius:50%}.caldera-grid hr{margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}.caldera-grid .sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0}.caldera-grid .container,.caldera-grid .container-fluid{margin-right:auto;margin-left:auto;padding-left:7.5px;padding-right:7.5px}@media (min-width:768px){.caldera-grid .container{width:735px}}@media (min-width:992px){.caldera-grid .container{width:955px}}@media (min-width:1200px){.caldera-grid .container{width:1155px}}.caldera-grid .row{margin-left:-7.5px;margin-right:-7.5px;max-width:100%}.caldera-grid .col-lg-1,.caldera-grid .col-lg-10,.caldera-grid .col-lg-11,.caldera-grid .col-lg-12,.caldera-grid .col-lg-2,.caldera-grid .col-lg-3,.caldera-grid .col-lg-4,.caldera-grid .col-lg-5,.caldera-grid .col-lg-6,.caldera-grid .col-lg-7,.caldera-grid .col-lg-8,.caldera-grid .col-lg-9,.caldera-grid .col-md-1,.caldera-grid .col-md-10,.caldera-grid .col-md-11,.caldera-grid .col-md-12,.caldera-grid .col-md-2,.caldera-grid .col-md-3,.caldera-grid .col-md-4,.caldera-grid .col-md-5,.caldera-grid .col-md-6,.caldera-grid .col-md-7,.caldera-grid .col-md-8,.caldera-grid .col-md-9,.caldera-grid .col-sm-1,.caldera-grid .col-sm-10,.caldera-grid .col-sm-11,.caldera-grid .col-sm-12,.caldera-grid .col-sm-2,.caldera-grid .col-sm-3,.caldera-grid .col-sm-4,.caldera-grid .col-sm-5,.caldera-grid .col-sm-6,.caldera-grid .col-sm-7,.caldera-grid .col-sm-8,.caldera-grid .col-sm-9,.caldera-grid .col-xs-1,.caldera-grid .col-xs-10,.caldera-grid .col-xs-11,.caldera-grid .col-xs-12,.caldera-grid .col-xs-2,.caldera-grid .col-xs-3,.caldera-grid .col-xs-4,.caldera-grid .col-xs-5,.caldera-grid .col-xs-6,.caldera-grid .col-xs-7,.caldera-grid .col-xs-8,.caldera-grid .col-xs-9{position:relative;padding-left:7.5px;padding-right:7.5px}.caldera-grid .col-xs-1,.caldera-grid .col-xs-10,.caldera-grid .col-xs-11,.caldera-grid .col-xs-12,.caldera-grid .col-xs-2,.caldera-grid .col-xs-3,.caldera-grid .col-xs-4,.caldera-grid .col-xs-5,.caldera-grid .col-xs-6,.caldera-grid .col-xs-7,.caldera-grid .col-xs-8,.caldera-grid .col-xs-9{float:left}.caldera-grid .col-xs-12{width:100%}.caldera-grid .col-xs-11{width:91.66666667%}.caldera-grid .col-xs-10{width:83.33333333%}.caldera-grid .col-xs-9{width:75%}.caldera-grid .col-xs-8{width:66.66666667%}.caldera-grid .col-xs-7{width:58.33333333%}.caldera-grid .col-xs-6{width:50%}.caldera-grid .col-xs-5{width:41.66666667%}.caldera-grid .col-xs-4{width:33.33333333%}.caldera-grid .col-xs-3{width:25%}.caldera-grid .col-xs-2{width:16.66666667%}.caldera-grid .col-xs-1{width:8.33333333%}.caldera-grid .col-xs-pull-12{right:100%}.caldera-grid .col-xs-pull-11{right:91.66666667%}.caldera-grid .col-xs-pull-10{right:83.33333333%}.caldera-grid .col-xs-pull-9{right:75%}.caldera-grid .col-xs-pull-8{right:66.66666667%}.caldera-grid .col-xs-pull-7{right:58.33333333%}.caldera-grid .col-xs-pull-6{right:50%}.caldera-grid .col-xs-pull-5{right:41.66666667%}.caldera-grid .col-xs-pull-4{right:33.33333333%}.caldera-grid .col-xs-pull-3{right:25%}.caldera-grid .col-xs-pull-2{right:16.66666667%}.caldera-grid .col-xs-pull-1{right:8.33333333%}.caldera-grid .col-xs-pull-0{right:0}.caldera-grid .col-xs-push-12{left:100%}.caldera-grid .col-xs-push-11{left:91.66666667%}.caldera-grid .col-xs-push-10{left:83.33333333%}.caldera-grid .col-xs-push-9{left:75%}.caldera-grid .col-xs-push-8{left:66.66666667%}.caldera-grid .col-xs-push-7{left:58.33333333%}.caldera-grid .col-xs-push-6{left:50%}.caldera-grid .col-xs-push-5{left:41.66666667%}.caldera-grid .col-xs-push-4{left:33.33333333%}.caldera-grid .col-xs-push-3{left:25%}.caldera-grid .col-xs-push-2{left:16.66666667%}.caldera-grid .col-xs-push-1{left:8.33333333%}.caldera-grid .col-xs-push-0{left:0}.caldera-grid .col-xs-offset-12{margin-left:100%}.caldera-grid .col-xs-offset-11{margin-left:91.66666667%}.caldera-grid .col-xs-offset-10{margin-left:83.33333333%}.caldera-grid .col-xs-offset-9{margin-left:75%}.caldera-grid .col-xs-offset-8{margin-left:66.66666667%}.caldera-grid .col-xs-offset-7{margin-left:58.33333333%}.caldera-grid .col-xs-offset-6{margin-left:50%}.caldera-grid .col-xs-offset-5{margin-left:41.66666667%}.caldera-grid .col-xs-offset-4{margin-left:33.33333333%}.caldera-grid .col-xs-offset-3{margin-left:25%}.caldera-grid .col-xs-offset-2{margin-left:16.66666667%}.caldera-grid .col-xs-offset-1{margin-left:8.33333333%}.caldera-grid .col-xs-offset-0{margin-left:0}@media (min-width:768px){.caldera-grid .col-sm-1,.caldera-grid .col-sm-10,.caldera-grid .col-sm-11,.caldera-grid .col-sm-12,.caldera-grid .col-sm-2,.caldera-grid .col-sm-3,.caldera-grid .col-sm-4,.caldera-grid .col-sm-5,.caldera-grid .col-sm-6,.caldera-grid .col-sm-7,.caldera-grid .col-sm-8,.caldera-grid .col-sm-9{float:left}.caldera-grid .col-sm-12{width:100%}.caldera-grid .col-sm-11{width:91.66666667%}.caldera-grid .col-sm-10{width:83.33333333%}.caldera-grid .col-sm-9{width:75%}.caldera-grid .col-sm-8{width:66.66666667%}.caldera-grid .col-sm-7{width:58.33333333%}.caldera-grid .col-sm-6{width:50%}.caldera-grid .col-sm-5{width:41.66666667%}.caldera-grid .col-sm-4{width:33.33333333%}.caldera-grid .col-sm-3{width:25%}.caldera-grid .col-sm-2{width:16.66666667%}.caldera-grid .col-sm-1{width:8.33333333%}.caldera-grid .col-sm-pull-12{right:100%}.caldera-grid .col-sm-pull-11{right:91.66666667%}.caldera-grid .col-sm-pull-10{right:83.33333333%}.caldera-grid .col-sm-pull-9{right:75%}.caldera-grid .col-sm-pull-8{right:66.66666667%}.caldera-grid .col-sm-pull-7{right:58.33333333%}.caldera-grid .col-sm-pull-6{right:50%}.caldera-grid .col-sm-pull-5{right:41.66666667%}.caldera-grid .col-sm-pull-4{right:33.33333333%}.caldera-grid .col-sm-pull-3{right:25%}.caldera-grid .col-sm-pull-2{right:16.66666667%}.caldera-grid .col-sm-pull-1{right:8.33333333%}.caldera-grid .col-sm-pull-0{right:0}.caldera-grid .col-sm-push-12{left:100%}.caldera-grid .col-sm-push-11{left:91.66666667%}.caldera-grid .col-sm-push-10{left:83.33333333%}.caldera-grid .col-sm-push-9{left:75%}.caldera-grid .col-sm-push-8{left:66.66666667%}.caldera-grid .col-sm-push-7{left:58.33333333%}.caldera-grid .col-sm-push-6{left:50%}.caldera-grid .col-sm-push-5{left:41.66666667%}.caldera-grid .col-sm-push-4{left:33.33333333%}.caldera-grid .col-sm-push-3{left:25%}.caldera-grid .col-sm-push-2{left:16.66666667%}.caldera-grid .col-sm-push-1{left:8.33333333%}.caldera-grid .col-sm-push-0{left:0}.caldera-grid .col-sm-offset-12{margin-left:100%}.caldera-grid .col-sm-offset-11{margin-left:91.66666667%}.caldera-grid .col-sm-offset-10{margin-left:83.33333333%}.caldera-grid .col-sm-offset-9{margin-left:75%}.caldera-grid .col-sm-offset-8{margin-left:66.66666667%}.caldera-grid .col-sm-offset-7{margin-left:58.33333333%}.caldera-grid .col-sm-offset-6{margin-left:50%}.caldera-grid .col-sm-offset-5{margin-left:41.66666667%}.caldera-grid .col-sm-offset-4{margin-left:33.33333333%}.caldera-grid .col-sm-offset-3{margin-left:25%}.caldera-grid .col-sm-offset-2{margin-left:16.66666667%}.caldera-grid .col-sm-offset-1{margin-left:8.33333333%}.caldera-grid .col-sm-offset-0{margin-left:0}}@media (min-width:992px){.caldera-grid .col-md-1,.caldera-grid .col-md-10,.caldera-grid .col-md-11,.caldera-grid .col-md-12,.caldera-grid .col-md-2,.caldera-grid .col-md-3,.caldera-grid .col-md-4,.caldera-grid .col-md-5,.caldera-grid .col-md-6,.caldera-grid .col-md-7,.caldera-grid .col-md-8,.caldera-grid .col-md-9{float:left}.caldera-grid .col-md-12{width:100%}.caldera-grid .col-md-11{width:91.66666667%}.caldera-grid .col-md-10{width:83.33333333%}.caldera-grid .col-md-9{width:75%}.caldera-grid .col-md-8{width:66.66666667%}.caldera-grid .col-md-7{width:58.33333333%}.caldera-grid .col-md-6{width:50%}.caldera-grid .col-md-5{width:41.66666667%}.caldera-grid .col-md-4{width:33.33333333%}.caldera-grid .col-md-3{width:25%}.caldera-grid .col-md-2{width:16.66666667%}.caldera-grid .col-md-1{width:8.33333333%}.caldera-grid .col-md-pull-12{right:100%}.caldera-grid .col-md-pull-11{right:91.66666667%}.caldera-grid .col-md-pull-10{right:83.33333333%}.caldera-grid .col-md-pull-9{right:75%}.caldera-grid .col-md-pull-8{right:66.66666667%}.caldera-grid .col-md-pull-7{right:58.33333333%}.caldera-grid .col-md-pull-6{right:50%}.caldera-grid .col-md-pull-5{right:41.66666667%}.caldera-grid .col-md-pull-4{right:33.33333333%}.caldera-grid .col-md-pull-3{right:25%}.caldera-grid .col-md-pull-2{right:16.66666667%}.caldera-grid .col-md-pull-1{right:8.33333333%}.caldera-grid .col-md-pull-0{right:0}.caldera-grid .col-md-push-12{left:100%}.caldera-grid .col-md-push-11{left:91.66666667%}.caldera-grid .col-md-push-10{left:83.33333333%}.caldera-grid .col-md-push-9{left:75%}.caldera-grid .col-md-push-8{left:66.66666667%}.caldera-grid .col-md-push-7{left:58.33333333%}.caldera-grid .col-md-push-6{left:50%}.caldera-grid .col-md-push-5{left:41.66666667%}.caldera-grid .col-md-push-4{left:33.33333333%}.caldera-grid .col-md-push-3{left:25%}.caldera-grid .col-md-push-2{left:16.66666667%}.caldera-grid .col-md-push-1{left:8.33333333%}.caldera-grid .col-md-push-0{left:0}.caldera-grid .col-md-offset-12{margin-left:100%}.caldera-grid .col-md-offset-11{margin-left:91.66666667%}.caldera-grid .col-md-offset-10{margin-left:83.33333333%}.caldera-grid .col-md-offset-9{margin-left:75%}.caldera-grid .col-md-offset-8{margin-left:66.66666667%}.caldera-grid .col-md-offset-7{margin-left:58.33333333%}.caldera-grid .col-md-offset-6{margin-left:50%}.caldera-grid .col-md-offset-5{margin-left:41.66666667%}.caldera-grid .col-md-offset-4{margin-left:33.33333333%}.caldera-grid .col-md-offset-3{margin-left:25%}.caldera-grid .col-md-offset-2{margin-left:16.66666667%}.caldera-grid .col-md-offset-1{margin-left:8.33333333%}.caldera-grid .col-md-offset-0{margin-left:0}}@-ms-viewport{width:device-width}@media (min-width:1200px){.caldera-grid .col-lg-1,.caldera-grid .col-lg-10,.caldera-grid .col-lg-11,.caldera-grid .col-lg-12,.caldera-grid .col-lg-2,.caldera-grid .col-lg-3,.caldera-grid .col-lg-4,.caldera-grid .col-lg-5,.caldera-grid .col-lg-6,.caldera-grid .col-lg-7,.caldera-grid .col-lg-8,.caldera-grid .col-lg-9{float:left}.caldera-grid .col-lg-12{width:100%}.caldera-grid .col-lg-11{width:91.66666667%}.caldera-grid .col-lg-10{width:83.33333333%}.caldera-grid .col-lg-9{width:75%}.caldera-grid .col-lg-8{width:66.66666667%}.caldera-grid .col-lg-7{width:58.33333333%}.caldera-grid .col-lg-6{width:50%}.caldera-grid .col-lg-5{width:41.66666667%}.caldera-grid .col-lg-4{width:33.33333333%}.caldera-grid .col-lg-3{width:25%}.caldera-grid .col-lg-2{width:16.66666667%}.caldera-grid .col-lg-1{width:8.33333333%}.caldera-grid .col-lg-pull-12{right:100%}.caldera-grid .col-lg-pull-11{right:91.66666667%}.caldera-grid .col-lg-pull-10{right:83.33333333%}.caldera-grid .col-lg-pull-9{right:75%}.caldera-grid .col-lg-pull-8{right:66.66666667%}.caldera-grid .col-lg-pull-7{right:58.33333333%}.caldera-grid .col-lg-pull-6{right:50%}.caldera-grid .col-lg-pull-5{right:41.66666667%}.caldera-grid .col-lg-pull-4{right:33.33333333%}.caldera-grid .col-lg-pull-3{right:25%}.caldera-grid .col-lg-pull-2{right:16.66666667%}.caldera-grid .col-lg-pull-1{right:8.33333333%}.caldera-grid .col-lg-pull-0{right:0}.caldera-grid .col-lg-push-12{left:100%}.caldera-grid .col-lg-push-11{left:91.66666667%}.caldera-grid .col-lg-push-10{left:83.33333333%}.caldera-grid .col-lg-push-9{left:75%}.caldera-grid .col-lg-push-8{left:66.66666667%}.caldera-grid .col-lg-push-7{left:58.33333333%}.caldera-grid .col-lg-push-6{left:50%}.caldera-grid .col-lg-push-5{left:41.66666667%}.caldera-grid .col-lg-push-4{left:33.33333333%}.caldera-grid .col-lg-push-3{left:25%}.caldera-grid .col-lg-push-2{left:16.66666667%}.caldera-grid .col-lg-push-1{left:8.33333333%}.caldera-grid .col-lg-push-0{left:0}.caldera-grid .col-lg-offset-12{margin-left:100%}.caldera-grid .col-lg-offset-11{margin-left:91.66666667%}.caldera-grid .col-lg-offset-10{margin-left:83.33333333%}.caldera-grid .col-lg-offset-9{margin-left:75%}.caldera-grid .col-lg-offset-8{margin-left:66.66666667%}.caldera-grid .col-lg-offset-7{margin-left:58.33333333%}.caldera-grid .col-lg-offset-6{margin-left:50%}.caldera-grid .col-lg-offset-5{margin-left:41.66666667%}.caldera-grid .col-lg-offset-4{margin-left:33.33333333%}.caldera-grid .col-lg-offset-3{margin-left:25%}.caldera-grid .col-lg-offset-2{margin-left:16.66666667%}.caldera-grid .col-lg-offset-1{margin-left:8.33333333%}.caldera-grid .col-lg-offset-0{margin-left:0}}.caldera-grid .clearfix:after,.caldera-grid .clearfix:before,.caldera-grid .container-fluid:after,.caldera-grid .container-fluid:before,.caldera-grid .container:after,.caldera-grid .container:before,.caldera-grid .row:after,.caldera-grid .row:before{content:" ";display:table}.caldera-grid .clearfix:after,.caldera-grid .container-fluid:after,.caldera-grid .container:after,.caldera-grid .row:after{clear:both}.caldera-grid .center-block{display:block;margin-left:auto;margin-right:auto}.caldera-grid .pull-right{float:right!important}.caldera-grid .pull-left{float:left!important}.caldera-grid .hide{display:none!important}.caldera-grid .show{display:block!important}.caldera-grid .hidden,.caldera-grid .visible-lg,.caldera-grid .visible-md,.caldera-grid .visible-sm,.caldera-grid .visible-xs{display:none!important}.caldera-grid .invisible{visibility:hidden}.caldera-grid .text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.caldera-grid .hidden{visibility:hidden!important}.caldera-grid .affix{position:fixed}@-ms-viewport{width:device-width}.caldera-grid .form-control{width:100%}@media (max-width:767px){.caldera-grid .visible-xs{display:block!important}.caldera-grid table.visible-xs{display:table}.caldera-grid tr.visible-xs{display:table-row!important}.caldera-grid td.visible-xs,.caldera-grid th.visible-xs{display:table-cell!important}}@media (min-width:768px) and (max-width:991px){.caldera-grid .visible-sm{display:block!important}.caldera-grid table.visible-sm{display:table}.caldera-grid tr.visible-sm{display:table-row!important}.caldera-grid td.visible-sm,.caldera-grid th.visible-sm{display:table-cell!important}}@media (min-width:992px) and (max-width:1199px){.caldera-grid .visible-md{display:block!important}.caldera-grid table.visible-md{display:table}.caldera-grid tr.visible-md{display:table-row!important}.caldera-grid td.visible-md,.caldera-grid th.visible-md{display:table-cell!important}}@media (min-width:1200px){.caldera-grid .visible-lg{display:block!important}.caldera-grid table.visible-lg{display:table}.caldera-grid tr.visible-lg{display:table-row!important}.caldera-grid td.visible-lg,.caldera-grid th.visible-lg{display:table-cell!important}.caldera-grid .hidden-lg{display:none!important}}@media (max-width:767px){.caldera-grid .hidden-xs{display:none!important}}@media (min-width:768px) and (max-width:991px){.caldera-grid .hidden-sm{display:none!important}}@media (min-width:992px) and (max-width:1199px){.caldera-grid .hidden-md{display:none!important}}.caldera-grid .visible-print{display:none!important}@media print{.caldera-grid .visible-print{display:block!important}.caldera-grid table.visible-print{display:table}.caldera-grid tr.visible-print{display:table-row!important}.caldera-grid td.visible-print,.caldera-grid th.visible-print{display:table-cell!important}.caldera-grid .hidden-print{display:none!important}}input.parsley-success,select.parsley-success,textarea.parsley-success{color:#468847;background-color:#DFF0D8;border:1px solid #D6E9C6}input.parsley-error,select.parsley-error,textarea.parsley-error{color:#B94A48;background-color:#F2DEDE;border:1px solid #EED3D7}.parsley-errors-list{margin:2px 0 3px;padding:0;list-style-type:none;font-size:.9em;line-height:.9em;opacity:0;transition:all .3s ease-in;-o-transition:all .3s ease-in;-moz-transition:all .3s ease-in;-webkit-transition:all .3s ease-in}.parsley-errors-list.filled{opacity:1}
|
2 |
.caldera-grid .alert{padding:8px;margin-bottom:18px;border-radius:2px}.caldera-grid .alert .alert-link{font-weight:700}.caldera-grid .alert-dismissable{padding-right:28px}.caldera-grid .alert-success{background-color:#dff0d8;border-color:#a3d48e;color:#3c763d}.caldera-grid .alert-success hr{border-top-color:#93cd7c}.caldera-grid .alert-success .alert-link{color:#2b542c}.caldera-grid .alert-info{background-color:#d9edf7;border-color:#85c5e5;color:#31708f}.caldera-grid .alert-info hr{border-top-color:#70bbe1}.caldera-grid .alert-info .alert-link{color:#245269}.caldera-grid .alert-warning{background-color:#f9edbe;border-color:#f0c36d;color:#333}.caldera-grid .alert-warning hr{border-top-color:#eeb956}.caldera-grid .alert-warning .alert-link{color:#1a1a1a}.caldera-grid .alert-danger,.caldera-grid .alert-error{background-color:#f2dede;border-color:#d59595;color:#a94442}.caldera-grid .alert-danger hr,.caldera-grid .alert-error hr{border-top-color:#ce8383}.caldera-grid .alert-danger .alert-link,.caldera-grid .alert-error .alert-link{color:#843534}.caldera-grid .has-error .checkbox,.caldera-grid .has-error .checkbox-inline,.caldera-grid .has-error .control-label,.caldera-grid .has-error .form-control-feedback,.caldera-grid .has-error .help-block,.caldera-grid .has-error .radio,.caldera-grid .has-error .radio-inline{color:#dd4b39}.caldera-grid .alert-danger,.caldera-grid .alert-error,.caldera-grid .alert-info,.caldera-grid .alert-success,.caldera-grid .alert-warning{text-shadow:0 1px 0 rgba(255,255,255,.5)}.caldera-grid .has-error .form-control{border-color:#dd4b39;-webkit-box-shadow:none;box-shadow:none}.caldera-grid .has-error .input-group-addon{color:#dd4b39;border-color:#dd4b39;background-color:#f2dede}.caldera-grid .has-error .form-control:focus,.caldera-grid .has-error .form-control:hover{border-color:#dd4b39}.caldera-grid.cf_processing{background:url(../images/loading.gif) center center/30px auto no-repeat rgba(0,0,0,0)}.caldera-grid.cf_processing>*{opacity:.5}
|
3 |
.caldera-grid html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}.caldera-grid body{margin:0}.caldera-grid article,.caldera-grid aside,.caldera-grid details,.caldera-grid figcaption,.caldera-grid figure,.caldera-grid footer,.caldera-grid header,.caldera-grid hgroup,.caldera-grid main,.caldera-grid menu,.caldera-grid nav,.caldera-grid section,.caldera-grid summary{display:block}.caldera-grid audio,.caldera-grid canvas,.caldera-grid progress,.caldera-grid video{display:inline-block;vertical-align:baseline}.caldera-grid audio:not([controls]){display:none;height:0}.caldera-grid [hidden],.caldera-grid template{display:none}.caldera-grid a{background-color:transparent}.caldera-grid a:active,.caldera-grid a:hover{outline:0}.caldera-grid abbr[title]{border-bottom:1px dotted}.caldera-grid b,.caldera-grid strong{font-weight:700}.caldera-grid dfn{font-style:italic}.caldera-grid h1{font-size:2em;margin:.67em 0}.caldera-grid mark{background:#ff0;color:#000}.caldera-grid small{font-size:80%}.caldera-grid sub,.caldera-grid sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.caldera-grid sup{top:-.5em}.caldera-grid sub{bottom:-.25em}.caldera-grid img{border:0}.caldera-grid svg:not(:root){overflow:hidden}.caldera-grid figure{margin:1em 40px}.caldera-grid hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}.caldera-grid pre{overflow:auto}.caldera-grid code,.caldera-grid kbd,.caldera-grid pre,.caldera-grid samp{font-family:monospace,monospace;font-size:1em}.caldera-grid button,.caldera-grid input,.caldera-grid optgroup,.caldera-grid select,.caldera-grid textarea{font:inherit;margin:0}.caldera-grid button{overflow:visible}.caldera-grid button,.caldera-grid select{text-transform:none}.caldera-grid button,.caldera-grid html input[type=button],.caldera-grid input[type=reset],.caldera-grid input[type=submit]{-webkit-appearance:button;cursor:pointer}.caldera-grid button[disabled],.caldera-grid html input[disabled]{cursor:default}.caldera-grid button::-moz-focus-inner,.caldera-grid input::-moz-focus-inner{border:0;padding:0}.caldera-grid input{line-height:normal}.caldera-grid input[type=checkbox],.caldera-grid input[type=radio]{box-sizing:border-box;padding:0}.caldera-grid input[type=number]::-webkit-inner-spin-button,.caldera-grid input[type=number]::-webkit-outer-spin-button{height:auto}.caldera-grid input[type=search]{-webkit-appearance:textfield;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.caldera-grid input[type=search]::-webkit-search-cancel-button,.caldera-grid input[type=search]::-webkit-search-decoration{-webkit-appearance:none}.caldera-grid textarea{overflow:auto}.caldera-grid optgroup{font-weight:700}.caldera-grid table{border-collapse:collapse;border-spacing:0}.caldera-grid td,.caldera-grid th{padding:0}@media print{.caldera-grid *,.caldera-grid :after,.caldera-grid :before{background:0 0!important;color:#000!important;box-shadow:none!important;text-shadow:none!important}.caldera-grid a,.caldera-grid a:visited{text-decoration:underline}.caldera-grid a[href]:after{content:" (" attr(href) ")"}.caldera-grid abbr[title]:after{content:" (" attr(title) ")"}.caldera-grid a[href^="#"]:after,.caldera-grid a[href^="javascript:"]:after{content:""}.caldera-grid blockquote,.caldera-grid pre{border:1px solid #999;page-break-inside:avoid}.caldera-grid thead{display:table-header-group}.caldera-grid img,.caldera-grid tr{page-break-inside:avoid}.caldera-grid img{max-width:100%!important}.caldera-grid h2,.caldera-grid h3,.caldera-grid p{orphans:3;widows:3}.caldera-grid h2,.caldera-grid h3{page-break-after:avoid}.caldera-grid select{background:#fff!important}.caldera-grid .navbar{display:none}.caldera-grid .btn>.caret,.caldera-grid .dropup>.btn>.caret{border-top-color:#000!important}.caldera-grid .label{border:1px solid #000}.caldera-grid .table{border-collapse:collapse!important}.caldera-grid .table td,.caldera-grid .table th{background-color:#fff!important}.caldera-grid .table-bordered td,.caldera-grid .table-bordered th{border:1px solid #ddd!important}}.caldera-grid .btn,.caldera-grid .btn-danger.active,.caldera-grid .btn-danger:active,.caldera-grid .btn-default.active,.caldera-grid .btn-default:active,.caldera-grid .btn-info.active,.caldera-grid .btn-info:active,.caldera-grid .btn-primary.active,.caldera-grid .btn-primary:active,.caldera-grid .btn-success.active,.caldera-grid .btn-success:active,.caldera-grid .btn-warning.active,.caldera-grid .btn-warning:active,.caldera-grid .form-control,.open>.dropdown-toggle.caldera-grid .btn-danger,.open>.dropdown-toggle.caldera-grid .btn-default,.open>.dropdown-toggle.caldera-grid .btn-info,.open>.dropdown-toggle.caldera-grid .btn-primary,.open>.dropdown-toggle.caldera-grid .btn-success,.open>.dropdown-toggle.caldera-grid .btn-warning{background-image:none}.caldera-grid fieldset{padding:0;margin:0;border:0;min-width:0}.caldera-grid legend{display:block;width:100%;padding:0;margin-bottom:20px;font-size:21px;line-height:inherit;color:#333;border:0;border-bottom:1px solid #e5e5e5}.caldera-grid label{display:inline-block;max-width:100%;margin-bottom:5px;font-weight:700}.caldera-grid input[type=checkbox],.caldera-grid input[type=radio]{margin:0;line-height:normal}.caldera-grid .form-control,.caldera-grid output{font-size:14px;line-height:1.42857143;color:#555;display:block}.caldera-grid input[type=file]{display:block}.caldera-grid input[type=range]{display:block;width:100%}.caldera-grid select[multiple],.caldera-grid select[size]{height:auto}.caldera-grid input[type=checkbox]:focus,.caldera-grid input[type=file]:focus,.caldera-grid input[type=radio]:focus{outline:dotted thin;outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px}.caldera-grid input[type=checkbox]{-webkit-appearance:checkbox}.caldera-grid input[type=radio]{-webkit-appearance:radio}.caldera-grid output{padding-top:7px}.caldera-grid .form-control{width:100%;height:34px;padding:6px 12px;background-color:#fff;border:1px solid #ccc;border-radius:2px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;-o-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.caldera-grid .form-control:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.caldera-grid .form-control::-moz-placeholder{color:#999;opacity:1}.caldera-grid .form-control:-ms-input-placeholder{color:#999}.caldera-grid .form-control::-webkit-input-placeholder{color:#999}.caldera-grid .has-success .checkbox,.caldera-grid .has-success .checkbox-inline,.caldera-grid .has-success .control-label,.caldera-grid .has-success .form-control-feedback,.caldera-grid .has-success .help-block,.caldera-grid .has-success .radio,.caldera-grid .has-success .radio-inline,.caldera-grid .has-success.checkbox label,.caldera-grid .has-success.checkbox-inline label,.caldera-grid .has-success.radio label,.caldera-grid .has-success.radio-inline label{color:#3c763d}.caldera-grid .form-control[disabled],.caldera-grid .form-control[readonly],fieldset[disabled] .caldera-grid .form-control{background-color:#eee;opacity:1}.caldera-grid .form-control[disabled],fieldset[disabled] .caldera-grid .form-control{cursor:not-allowed}textarea .caldera-grid .form-control{height:auto}@media screen and (-webkit-min-device-pixel-ratio:0){.caldera-grid input[type=date],.caldera-grid input[type=datetime-local],.caldera-grid input[type=month],.caldera-grid input[type=time]{line-height:34px}.caldera-grid input[type=date].input-sm,.caldera-grid input[type=datetime-local].input-sm,.caldera-grid input[type=month].input-sm,.caldera-grid input[type=time].input-sm,.input-group-sm .caldera-grid input[type=date],.input-group-sm .caldera-grid input[type=datetime-local],.input-group-sm .caldera-grid input[type=month],.input-group-sm .caldera-grid input[type=time]{line-height:30px}.caldera-grid input[type=date].input-lg,.caldera-grid input[type=datetime-local].input-lg,.caldera-grid input[type=month].input-lg,.caldera-grid input[type=time].input-lg,.input-group-lg .caldera-grid input[type=date],.input-group-lg .caldera-grid input[type=datetime-local],.input-group-lg .caldera-grid input[type=month],.input-group-lg .caldera-grid input[type=time]{line-height:46px}}.caldera-grid .form-group{margin-bottom:15px}.caldera-grid .checkbox,.caldera-grid .radio{position:relative;display:block;margin-top:10px;margin-bottom:10px}.caldera-grid .checkbox label,.caldera-grid .radio label{min-height:20px;padding-left:20px;margin-bottom:0;font-weight:400;cursor:pointer}.caldera-grid .checkbox input[type=checkbox],.caldera-grid .checkbox-inline input[type=checkbox],.caldera-grid .radio input[type=radio],.caldera-grid .radio-inline input[type=radio]{margin-left:-20px}.caldera-grid .checkbox+.checkbox,.caldera-grid .radio+.radio{margin-top:-5px}.caldera-grid .checkbox-inline,.caldera-grid .radio-inline{position:relative;display:inline-block;padding-left:20px;margin-bottom:0;vertical-align:middle;font-weight:400;cursor:pointer}.caldera-grid .checkbox-inline+.checkbox-inline,.caldera-grid .radio-inline+.radio-inline{margin-top:0;margin-left:10px}.caldera-grid .checkbox-inline.disabled,.caldera-grid .checkbox.disabled label,.caldera-grid .radio-inline.disabled,.caldera-grid .radio.disabled label,.caldera-grid input[type=checkbox].disabled,.caldera-grid input[type=checkbox][disabled],.caldera-grid input[type=radio].disabled,.caldera-grid input[type=radio][disabled],fieldset[disabled] .caldera-grid .checkbox label,fieldset[disabled] .caldera-grid .checkbox-inline,fieldset[disabled] .caldera-grid .radio label,fieldset[disabled] .caldera-grid .radio-inline,fieldset[disabled] .caldera-grid input[type=checkbox],fieldset[disabled] .caldera-grid input[type=radio]{cursor:not-allowed}.caldera-grid .form-control-static{padding-top:7px;padding-bottom:7px;margin-bottom:0;min-height:34px}.caldera-grid .form-control-static.input-lg,.caldera-grid .form-control-static.input-sm{padding-left:0;padding-right:0}.caldera-grid .input-sm{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:1px}select.caldera-grid .input-sm{height:30px;line-height:30px}select[multiple].caldera-grid .input-sm,textarea.caldera-grid .input-sm{height:auto}.caldera-grid .form-group-sm .form-control{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:1px}select.caldera-grid .form-group-sm .form-control{height:30px;line-height:30px}select[multiple].caldera-grid .form-group-sm .form-control,textarea.caldera-grid .form-group-sm .form-control{height:auto}.caldera-grid .form-group-sm .form-control-static{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;min-height:32px}.caldera-grid .input-lg{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:4px}select.caldera-grid .input-lg{height:46px;line-height:46px}select[multiple].caldera-grid .input-lg,textarea.caldera-grid .input-lg{height:auto}.caldera-grid .form-group-lg .form-control{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:4px}select.caldera-grid .form-group-lg .form-control{height:46px;line-height:46px}select[multiple].caldera-grid .form-group-lg .form-control,textarea.caldera-grid .form-group-lg .form-control{height:auto}.caldera-grid .form-group-lg .form-control-static{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;min-height:38px}.caldera-grid .has-feedback{position:relative}.caldera-grid .has-feedback .form-control{padding-right:42.5px}.caldera-grid .form-control-feedback{position:absolute;top:0;right:0;z-index:2;display:block;width:34px;height:34px;line-height:34px;text-align:center;pointer-events:none}.caldera-grid .input-lg+.form-control-feedback{width:46px;height:46px;line-height:46px}.caldera-grid .input-sm+.form-control-feedback{width:30px;height:30px;line-height:30px}.caldera-grid .has-success .form-control{border-color:#3c763d;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.caldera-grid .has-success .form-control:focus{border-color:#2b542c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168}.caldera-grid .has-success .input-group-addon{color:#3c763d;border-color:#3c763d;background-color:#dff0d8}.caldera-grid .has-warning .checkbox,.caldera-grid .has-warning .checkbox-inline,.caldera-grid .has-warning .control-label,.caldera-grid .has-warning .form-control-feedback,.caldera-grid .has-warning .help-block,.caldera-grid .has-warning .radio,.caldera-grid .has-warning .radio-inline,.caldera-grid .has-warning.checkbox label,.caldera-grid .has-warning.checkbox-inline label,.caldera-grid .has-warning.radio label,.caldera-grid .has-warning.radio-inline label{color:#8a6d3b}.caldera-grid .has-warning .form-control{border-color:#8a6d3b;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.caldera-grid .has-warning .form-control:focus{border-color:#66512c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b}.caldera-grid .has-warning .input-group-addon{color:#8a6d3b;border-color:#8a6d3b;background-color:#fcf8e3}.caldera-grid .has-error .checkbox,.caldera-grid .has-error .checkbox-inline,.caldera-grid .has-error .control-label,.caldera-grid .has-error .form-control-feedback,.caldera-grid .has-error .help-block,.caldera-grid .has-error .radio,.caldera-grid .has-error .radio-inline,.caldera-grid .has-error.checkbox label,.caldera-grid .has-error.checkbox-inline label,.caldera-grid .has-error.radio label,.caldera-grid .has-error.radio-inline label{color:#a94442}.caldera-grid .has-error .form-control{border-color:#a94442;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.caldera-grid .has-error .form-control:focus{border-color:#843534;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483}.caldera-grid .has-error .input-group-addon{color:#a94442;border-color:#a94442;background-color:#f2dede}.caldera-grid .has-feedback label~.form-control-feedback{top:25px}.caldera-grid .has-feedback label.sr-only~.form-control-feedback{top:0}.caldera-grid .help-block{display:block;margin-top:5px;margin-bottom:10px;color:#737373}@media (min-width:768px){.caldera-grid .form-inline .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.caldera-grid .form-inline .form-control{display:inline-block;width:auto;vertical-align:middle}.caldera-grid .form-inline .form-control-static{display:inline-block}.caldera-grid .form-inline .input-group{display:inline-table;vertical-align:middle}.caldera-grid .form-inline .input-group .form-control,.caldera-grid .form-inline .input-group .input-group-addon,.caldera-grid .form-inline .input-group .input-group-btn{width:auto}.caldera-grid .form-inline .input-group>.form-control{width:100%}.caldera-grid .form-inline .control-label{margin-bottom:0;vertical-align:middle}.caldera-grid .form-inline .checkbox,.caldera-grid .form-inline .radio{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.caldera-grid .form-inline .checkbox label,.caldera-grid .form-inline .radio label{padding-left:0}.caldera-grid .form-inline .checkbox input[type=checkbox],.caldera-grid .form-inline .radio input[type=radio]{position:relative;margin-left:0}.caldera-grid .form-inline .has-feedback .form-control-feedback{top:0}.caldera-grid .form-horizontal .control-label{text-align:right;margin-bottom:0;padding-top:7px}}.caldera-grid .form-horizontal .checkbox,.caldera-grid .form-horizontal .checkbox-inline,.caldera-grid .form-horizontal .radio,.caldera-grid .form-horizontal .radio-inline{margin-top:0;margin-bottom:0;padding-top:7px}.caldera-grid .form-horizontal .checkbox,.caldera-grid .form-horizontal .radio{min-height:27px}.caldera-grid .form-horizontal .form-group{margin-left:-15px;margin-right:-15px}.caldera-grid .form-horizontal .has-feedback .form-control-feedback{right:15px}@media (min-width:768px){.caldera-grid .form-horizontal .form-group-lg .control-label{padding-top:14.33px}.caldera-grid .form-horizontal .form-group-sm .control-label{padding-top:6px}}.caldera-grid .btn{display:inline-block;margin-bottom:0;font-weight:400;text-align:center;vertical-align:middle;touch-action:manipulation;cursor:pointer;border:1px solid transparent;white-space:nowrap;padding:6px 12px;font-size:14px;line-height:1.42857143;border-radius:2px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.caldera-grid .btn.active.focus,.caldera-grid .btn.active:focus,.caldera-grid .btn.focus,.caldera-grid .btn:active.focus,.caldera-grid .btn:active:focus,.caldera-grid .btn:focus{outline:dotted thin;outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px}.caldera-grid .btn.focus,.caldera-grid .btn:focus,.caldera-grid .btn:hover{color:#333;text-decoration:none}.caldera-grid .btn.active,.caldera-grid .btn:active{outline:0;background-image:none;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.caldera-grid .btn.disabled,.caldera-grid .btn[disabled],fieldset[disabled] .caldera-grid .btn{cursor:not-allowed;pointer-events:none;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none}.caldera-grid .btn-default{color:#333;background-color:#fff;border-color:#ccc}.caldera-grid .btn-default.active,.caldera-grid .btn-default.focus,.caldera-grid .btn-default:active,.caldera-grid .btn-default:focus,.caldera-grid .btn-default:hover,.open>.dropdown-toggle.caldera-grid .btn-default{color:#333;background-color:#e6e6e6;border-color:#adadad}.caldera-grid .btn-default.disabled,.caldera-grid .btn-default.disabled.active,.caldera-grid .btn-default.disabled.focus,.caldera-grid .btn-default.disabled:active,.caldera-grid .btn-default.disabled:focus,.caldera-grid .btn-default.disabled:hover,.caldera-grid .btn-default[disabled],.caldera-grid .btn-default[disabled].active,.caldera-grid .btn-default[disabled].focus,.caldera-grid .btn-default[disabled]:active,.caldera-grid .btn-default[disabled]:focus,.caldera-grid .btn-default[disabled]:hover,fieldset[disabled] .caldera-grid .btn-default,fieldset[disabled] .caldera-grid .btn-default.active,fieldset[disabled] .caldera-grid .btn-default.focus,fieldset[disabled] .caldera-grid .btn-default:active,fieldset[disabled] .caldera-grid .btn-default:focus,fieldset[disabled] .caldera-grid .btn-default:hover{background-color:#fff;border-color:#ccc}.caldera-grid .btn-default .badge{color:#fff;background-color:#333}.caldera-grid .btn-primary{color:#fff;background-color:#337ab7;border-color:#2e6da4}.caldera-grid .btn-primary.active,.caldera-grid .btn-primary.focus,.caldera-grid .btn-primary:active,.caldera-grid .btn-primary:focus,.caldera-grid .btn-primary:hover,.open>.dropdown-toggle.caldera-grid .btn-primary{color:#fff;background-color:#286090;border-color:#204d74}.caldera-grid .btn-primary.disabled,.caldera-grid .btn-primary.disabled.active,.caldera-grid .btn-primary.disabled.focus,.caldera-grid .btn-primary.disabled:active,.caldera-grid .btn-primary.disabled:focus,.caldera-grid .btn-primary.disabled:hover,.caldera-grid .btn-primary[disabled],.caldera-grid .btn-primary[disabled].active,.caldera-grid .btn-primary[disabled].focus,.caldera-grid .btn-primary[disabled]:active,.caldera-grid .btn-primary[disabled]:focus,.caldera-grid .btn-primary[disabled]:hover,fieldset[disabled] .caldera-grid .btn-primary,fieldset[disabled] .caldera-grid .btn-primary.active,fieldset[disabled] .caldera-grid .btn-primary.focus,fieldset[disabled] .caldera-grid .btn-primary:active,fieldset[disabled] .caldera-grid .btn-primary:focus,fieldset[disabled] .caldera-grid .btn-primary:hover{background-color:#337ab7;border-color:#2e6da4}.caldera-grid .btn-primary .badge{color:#337ab7;background-color:#fff}.caldera-grid .btn-success{color:#fff;background-color:#5cb85c;border-color:#4cae4c}.caldera-grid .btn-success.active,.caldera-grid .btn-success.focus,.caldera-grid .btn-success:active,.caldera-grid .btn-success:focus,.caldera-grid .btn-success:hover,.open>.dropdown-toggle.caldera-grid .btn-success{color:#fff;background-color:#449d44;border-color:#398439}.caldera-grid .btn-success.disabled,.caldera-grid .btn-success.disabled.active,.caldera-grid .btn-success.disabled.focus,.caldera-grid .btn-success.disabled:active,.caldera-grid .btn-success.disabled:focus,.caldera-grid .btn-success.disabled:hover,.caldera-grid .btn-success[disabled],.caldera-grid .btn-success[disabled].active,.caldera-grid .btn-success[disabled].focus,.caldera-grid .btn-success[disabled]:active,.caldera-grid .btn-success[disabled]:focus,.caldera-grid .btn-success[disabled]:hover,fieldset[disabled] .caldera-grid .btn-success,fieldset[disabled] .caldera-grid .btn-success.active,fieldset[disabled] .caldera-grid .btn-success.focus,fieldset[disabled] .caldera-grid .btn-success:active,fieldset[disabled] .caldera-grid .btn-success:focus,fieldset[disabled] .caldera-grid .btn-success:hover{background-color:#5cb85c;border-color:#4cae4c}.caldera-grid .btn-success .badge{color:#5cb85c;background-color:#fff}.caldera-grid .btn-info{color:#fff;background-color:#5bc0de;border-color:#46b8da}.caldera-grid .btn-info.active,.caldera-grid .btn-info.focus,.caldera-grid .btn-info:active,.caldera-grid .btn-info:focus,.caldera-grid .btn-info:hover,.open>.dropdown-toggle.caldera-grid .btn-info{color:#fff;background-color:#31b0d5;border-color:#269abc}.caldera-grid .btn-info.disabled,.caldera-grid .btn-info.disabled.active,.caldera-grid .btn-info.disabled.focus,.caldera-grid .btn-info.disabled:active,.caldera-grid .btn-info.disabled:focus,.caldera-grid .btn-info.disabled:hover,.caldera-grid .btn-info[disabled],.caldera-grid .btn-info[disabled].active,.caldera-grid .btn-info[disabled].focus,.caldera-grid .btn-info[disabled]:active,.caldera-grid .btn-info[disabled]:focus,.caldera-grid .btn-info[disabled]:hover,fieldset[disabled] .caldera-grid .btn-info,fieldset[disabled] .caldera-grid .btn-info.active,fieldset[disabled] .caldera-grid .btn-info.focus,fieldset[disabled] .caldera-grid .btn-info:active,fieldset[disabled] .caldera-grid .btn-info:focus,fieldset[disabled] .caldera-grid .btn-info:hover{background-color:#5bc0de;border-color:#46b8da}.caldera-grid .btn-info .badge{color:#5bc0de;background-color:#fff}.caldera-grid .btn-warning{color:#fff;background-color:#f0ad4e;border-color:#eea236}.caldera-grid .btn-warning.active,.caldera-grid .btn-warning.focus,.caldera-grid .btn-warning:active,.caldera-grid .btn-warning:focus,.caldera-grid .btn-warning:hover,.open>.dropdown-toggle.caldera-grid .btn-warning{color:#fff;background-color:#ec971f;border-color:#d58512}.caldera-grid .btn-warning.disabled,.caldera-grid .btn-warning.disabled.active,.caldera-grid .btn-warning.disabled.focus,.caldera-grid .btn-warning.disabled:active,.caldera-grid .btn-warning.disabled:focus,.caldera-grid .btn-warning.disabled:hover,.caldera-grid .btn-warning[disabled],.caldera-grid .btn-warning[disabled].active,.caldera-grid .btn-warning[disabled].focus,.caldera-grid .btn-warning[disabled]:active,.caldera-grid .btn-warning[disabled]:focus,.caldera-grid .btn-warning[disabled]:hover,fieldset[disabled] .caldera-grid .btn-warning,fieldset[disabled] .caldera-grid .btn-warning.active,fieldset[disabled] .caldera-grid .btn-warning.focus,fieldset[disabled] .caldera-grid .btn-warning:active,fieldset[disabled] .caldera-grid .btn-warning:focus,fieldset[disabled] .caldera-grid .btn-warning:hover{background-color:#f0ad4e;border-color:#eea236}.caldera-grid .btn-warning .badge{color:#f0ad4e;background-color:#fff}.caldera-grid .btn-danger{color:#fff;background-color:#d9534f;border-color:#d43f3a}.caldera-grid .btn-danger.active,.caldera-grid .btn-danger.focus,.caldera-grid .btn-danger:active,.caldera-grid .btn-danger:focus,.caldera-grid .btn-danger:hover,.open>.dropdown-toggle.caldera-grid .btn-danger{color:#fff;background-color:#c9302c;border-color:#ac2925}.caldera-grid .btn-danger.disabled,.caldera-grid .btn-danger.disabled.active,.caldera-grid .btn-danger.disabled.focus,.caldera-grid .btn-danger.disabled:active,.caldera-grid .btn-danger.disabled:focus,.caldera-grid .btn-danger.disabled:hover,.caldera-grid .btn-danger[disabled],.caldera-grid .btn-danger[disabled].active,.caldera-grid .btn-danger[disabled].focus,.caldera-grid .btn-danger[disabled]:active,.caldera-grid .btn-danger[disabled]:focus,.caldera-grid .btn-danger[disabled]:hover,fieldset[disabled] .caldera-grid .btn-danger,fieldset[disabled] .caldera-grid .btn-danger.active,fieldset[disabled] .caldera-grid .btn-danger.focus,fieldset[disabled] .caldera-grid .btn-danger:active,fieldset[disabled] .caldera-grid .btn-danger:focus,fieldset[disabled] .caldera-grid .btn-danger:hover{background-color:#d9534f;border-color:#d43f3a}.caldera-grid .btn-danger .badge{color:#d9534f;background-color:#fff}.caldera-grid .btn-link{color:#337ab7;font-weight:400;border-radius:0}.caldera-grid .btn-link,.caldera-grid .btn-link.active,.caldera-grid .btn-link:active,.caldera-grid .btn-link[disabled],fieldset[disabled] .caldera-grid .btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.caldera-grid .btn-link,.caldera-grid .btn-link:active,.caldera-grid .btn-link:focus,.caldera-grid .btn-link:hover{border-color:transparent}.caldera-grid .btn-link:focus,.caldera-grid .btn-link:hover{color:#23527c;text-decoration:underline;background-color:transparent}.caldera-grid .btn-link[disabled]:focus,.caldera-grid .btn-link[disabled]:hover,fieldset[disabled] .caldera-grid .btn-link:focus,fieldset[disabled] .caldera-grid .btn-link:hover{color:#777;text-decoration:none}.caldera-grid .btn-lg{padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:4px}.caldera-grid .btn-sm,.caldera-grid .btn-xs{font-size:12px;line-height:1.5;border-radius:1px}.caldera-grid .btn-sm{padding:5px 10px}.caldera-grid .btn-xs{padding:1px 5px}.caldera-grid .btn-block{display:block;width:100%}.caldera-grid .btn-block+.btn-block{margin-top:5px}.caldera-grid input[type=button].btn-block,.caldera-grid input[type=reset].btn-block,.caldera-grid input[type=submit].btn-block{width:100%}.caldera-grid textarea.form-control{padding-right:4px;height:auto}.caldera-grid .breadcrumb{padding:6px 12px;margin:0 0 20px;list-style:none;background-color:#f5f5f5;border-radius:4px}.caldera-grid .breadcrumb>li{display:inline-block;margin:0}.caldera-grid .breadcrumb>li+li:before{content:"/\00a0";padding:0 5px;color:#ccc}.caldera-grid .breadcrumb>.active,.caldera-grid .breadcrumb>.active>a{color:#777}.breadcrumb>li.active.error>a,.breadcrumb>li.error>a{color:red}.caldera-grid .cf-credit-card{padding-left:42px;background-image:url(../images/credit-card.svg);background-repeat:no-repeat!important;background-position-x:4px!important;background-position-y:3px!important}.caldera-grid .screen-reader-text{clip:rect(1px,1px,1px,1px);height:1px;overflow:hidden;position:absolute!important;width:1px;word-wrap:normal!important}
|
4 |
@font-face{font-family:cf-raty;src:url(fonts/cf-raty.eot?40481674);src:url(fonts/cf-raty.eot?40481674#iefix) format('embedded-opentype'),url(fonts/cf-raty.woff?40481674) format('woff'),url(fonts/cf-raty.ttf?40481674) format('truetype'),url(fonts/cf-raty.svg?40481674#cf-raty) format('svg');font-weight:400;font-style:normal}[class*=" raty-"]:before,[class^=raty-]:before{font-family:cf-raty;font-style:normal;font-weight:400;speak:none;font-size:2em;display:inline-block;text-decoration:inherit;width:1em;text-align:center;font-variant:normal;text-transform:none;line-height:1em}.raty-heart-on:before{content:'\e800'}.raty-heart-off:before{content:'\e801'}.raty-star-on:before{content:'\e802'}.raty-star-off:before{content:'\e803'}.raty-circle-on:before{content:'\e804'}.raty-circle-off:before{content:'\e805'}.raty-dot-off:before{content:'\e806'}.raty-dot-on:before{content:'\e807'}.raty-face-off:before{content:'\e808'}.raty-face-on:before{content:'\e809'}.raty-cancel-off:before{content:'\e80a'}.raty-cancel-on:before{content:'\e80b'}.calculation-group{background:#FFF;box-shadow:0 1px 2px rgba(0,0,0,.05);padding:6px;margin:6px 0}.preview-color-selector{background:#F0F0F0;border:1px solid #E2E2E2;display:inline;margin-left:-1px;padding:3px 12px;box-shadow:0 0 0 2px #fff inset}.miniColors-trigger{border:1px solid #999;-mz-border-radius:0 1px 1px 0;-webkit-border-radius:0 1px 1px 0;display:inline-block;height:24px;margin:0 0 -8px -1px;width:30px}.miniColors-selector{background:#FFF;border:1px solid #999;-moz-box-shadow:0 3px 0 -1px rgba(0,0,0,.05);-webkit-box-shadow:0 3px 0 -1px rgba(0,0,0,.05);box-shadow:0 3px 0 -1px rgba(0,0,0,.05);height:162px;padding:5px;position:absolute;width:187px;z-index:999999;margin-top:-1px}.miniColors-selector.black{background:#000;border-color:#000}.miniColors-colors{position:absolute;top:5px;left:5px;width:150px;height:150px;background:url(minicolor-colors.png) right no-repeat;cursor:crosshair}.miniColors-hues{position:absolute;top:5px;left:160px;width:20px;height:150px;background:url(minicolor-colors.png) left no-repeat;cursor:crosshair}.miniColors-colorPicker{position:absolute;width:9px;height:9px;border:1px solid #fff;-moz-border-radius:11px;-webkit-border-radius:11px;border-radius:11px}.miniColors-colorPicker-inner{position:absolute;top:0;left:0;width:7px;height:7px;border:1px solid #000;-moz-border-radius:9px;-webkit-border-radius:9px;border-radius:9px}.miniColors-huePicker{position:absolute;left:-3px;width:24px;height:1px;border:1px solid #fff;border-radius:2px;background:#000}.cf-color-picker .form-control::-moz-placeholder{color:#999;opacity:1}.cf-color-picker .form-control:-ms-input-placeholder{color:#999}.cf-color-picker .form-control::-webkit-input-placeholder{color:#999}.cf-color-picker .form-control[disabled],.cf-color-picker .form-control[readonly],.cf-color-picker fieldset[disabled] .form-control{cursor:not-allowed;background-color:#eee;opacity:1}.cf-color-picker .form-group{margin-bottom:15px}.cf-color-picker .input-group{position:relative;display:table;border-collapse:separate}.cf-color-picker .input-group[class*=col-]{float:none;padding-left:0;padding-right:0}.cf-color-picker .input-group .form-control{position:relative;z-index:2;float:left;width:100%;margin-bottom:0}.cf-color-picker .input-group-lg>.form-control,.cf-color-picker .input-group-lg>.input-group-addon,.cf-color-picker .input-group-lg>.input-group-btn>.btn{height:46px;padding:10px 16px;font-size:18px;line-height:1.33;border-radius:6px}.cf-color-picker .input-group-sm>.form-control,.cf-color-picker .input-group-sm>.input-group-addon,.cf-color-picker .input-group-sm>.input-group-btn>.btn{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.cf-color-picker .input-group .form-control,.cf-color-picker .input-group-addon,.cf-color-picker .input-group-btn{display:table-cell}.cf-color-picker .input-group .form-control:not(:first-child):not(:last-child),.cf-color-picker .input-group-addon:not(:first-child):not(:last-child),.cf-color-picker .input-group-btn:not(:first-child):not(:last-child){border-radius:0}.cf-color-picker .input-group-addon,.cf-color-picker .input-group-btn{width:1%;white-space:nowrap;vertical-align:middle}.cf-color-picker .input-group-addon{padding:6px 12px;font-size:14px;font-weight:400;line-height:1;color:#555;text-align:center;background-color:#eee;border:1px solid #ccc;border-radius:4px}.cf-color-picker .input-group-addon.input-sm{padding:5px 10px;font-size:12px;border-radius:3px}.cf-color-picker .input-group-addon.input-lg{padding:10px 16px;font-size:18px;border-radius:6px}.cf-color-picker .input-group .form-control:first-child,.cf-color-picker .input-group-addon:first-child,.cf-color-picker .input-group-btn:first-child>.btn,.cf-color-picker .input-group-btn:first-child>.btn-group>.btn,.cf-color-picker .input-group-btn:first-child>.dropdown-toggle,.cf-color-picker .input-group-btn:last-child>.btn-group:not(:last-child)>.btn,.cf-color-picker .input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle){border-bottom-right-radius:0;border-top-right-radius:0}.cf-color-picker .input-group-addon:first-child{border-right:0}.cf-color-picker .input-group .form-control:last-child,.cf-color-picker .input-group-addon:last-child,.cf-color-picker .input-group-btn:first-child>.btn-group:not(:first-child)>.btn,.cf-color-picker .input-group-btn:first-child>.btn:not(:first-child),.cf-color-picker .input-group-btn:last-child>.btn,.cf-color-picker .input-group-btn:last-child>.btn-group>.btn,.cf-color-picker .input-group-btn:last-child>.dropdown-toggle{border-bottom-left-radius:0;border-top-left-radius:0}.cf-color-picker .input-group-addon:last-child{border-left:0}.cf-color-picker .input-group-btn{position:relative;font-size:0;white-space:nowrap}.cf-color-picker .input-group-btn>.btn{position:relative}.cf-color-picker .input-group-btn>.btn+.btn{margin-left:-1px}.cf-color-picker .input-group-btn>.btn:active,.cf-color-picker .input-group-btn>.btn:focus,.cf-color-picker .input-group-btn>.btn:hover{z-index:2}.cf-color-picker .input-group-btn:first-child>.btn,.cf-color-picker .input-group-btn:first-child>.btn-group{margin-right:-1px}.cf-color-picker .input-group-btn:last-child>.btn,.cf-color-picker .input-group-btn:last-child>.btn-group{margin-left:-1px}.cf-color-picker .clearfix:after,.cf-color-picker .clearfix:before,.cf-color-picker .form-horizontal .form-group:after,.cf-color-picker .form-horizontal .form-group:before{content:" ";display:table}.cf-color-picker .clearfix:after,.cf-color-picker .form-horizontal .form-group:after{clear:both}.cf-color-picker .center-block{display:block;margin-left:auto;margin-right:auto}.cf-color-picker .pull-right{float:right!important}.cf-color-picker .pull-left{float:left!important}.cf-color-picker .hide{display:none!important}.cf-color-picker .show{display:block!important}.cf-color-picker .invisible{visibility:hidden}.cf-color-picker .text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.cf-color-picker .hidden{display:none!important;visibility:hidden!important}.cf-color-picker .affix{position:fixed}@-ms-viewport{width:device-width}.cf-color-picker .visible-lg,.cf-color-picker .visible-md,.cf-color-picker .visible-print,.cf-color-picker .visible-sm,.cf-color-picker .visible-xs{display:none!important}@media (max-width:767px){.cf-color-picker .visible-xs{display:block!important}.cf-color-picker table.visible-xs{display:table}.cf-color-picker tr.visible-xs{display:table-row!important}.cf-color-picker td.visible-xs,.cf-color-picker th.visible-xs{display:table-cell!important}}@media (min-width:768px) and (max-width:991px){.cf-color-picker .visible-sm{display:block!important}.cf-color-picker table.visible-sm{display:table}.cf-color-picker tr.visible-sm{display:table-row!important}.cf-color-picker td.visible-sm,.cf-color-picker th.visible-sm{display:table-cell!important}}@media (min-width:992px) and (max-width:1199px){.cf-color-picker .visible-md{display:block!important}.cf-color-picker table.visible-md{display:table}.cf-color-picker tr.visible-md{display:table-row!important}.cf-color-picker td.visible-md,.cf-color-picker th.visible-md{display:table-cell!important}}@media (min-width:1200px){.cf-color-picker .visible-lg{display:block!important}.cf-color-picker table.visible-lg{display:table}.cf-color-picker tr.visible-lg{display:table-row!important}.cf-color-picker td.visible-lg,.cf-color-picker th.visible-lg{display:table-cell!important}}@media (max-width:767px){.cf-color-picker .hidden-xs{display:none!important}}@media (min-width:768px) and (max-width:991px){.cf-color-picker .hidden-sm{display:none!important}}@media (min-width:992px) and (max-width:1199px){.cf-color-picker .hidden-md{display:none!important}}@media (min-width:1200px){.cf-color-picker .hidden-lg{display:none!important}}@media print{.cf-color-picker .visible-print{display:block!important}.cf-color-picker table.visible-print{display:table}.cf-color-picker tr.visible-print{display:table-row!important}.cf-color-picker td.visible-print,.cf-color-picker th.visible-print{display:table-cell!important}}@media print{.cf-color-picker .hidden-print{display:none!important}}.cf-color-picker .input-group{max-width:120px}
|
1 |
+
/*! GENERATED SOURCE FILE caldera-forms - v1.7.0-b.1 - 2018-05-24 */.caldera-grid body{margin:0}.caldera-grid .form-group{margin-bottom:1em}@media (min-width:768px){.caldera-grid .container{width:750px}}@media (min-width:992px){.caldera-grid .container{width:970px}}@media (min-width:1200px){.caldera-grid .container{width:1170px}}.caldera-grid article,.caldera-grid aside,.caldera-grid details,.caldera-grid figcaption,.caldera-grid figure,.caldera-grid footer,.caldera-grid header,.caldera-grid hgroup,.caldera-grid main,.caldera-grid nav,.caldera-grid section,.caldera-grid summary{display:block}.caldera-grid audio,.caldera-grid canvas,.caldera-grid progress,.caldera-grid video{display:inline-block;vertical-align:baseline}.caldera-grid audio:not([controls]){display:none;height:0}.caldera-grid [hidden],.caldera-grid template{display:none}.caldera-grid a{background:0 0;text-decoration:none}.caldera-grid a:active,.caldera-grid a:hover{outline:0}.caldera-grid abbr[title]{border-bottom:1px dotted}.caldera-grid b,.caldera-grid strong{font-weight:700}.caldera-grid dfn{font-style:italic}.caldera-grid h1{font-size:2em;margin:.67em 0}.caldera-grid mark{background:#ff0;color:#000}.caldera-grid small{font-size:80%}.caldera-grid sub,.caldera-grid sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.caldera-grid sup{top:-.5em}.caldera-grid sub{bottom:-.25em}.caldera-grid img{border:0;vertical-align:middle}.caldera-grid svg:not(:root){overflow:hidden}.caldera-grid hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}.caldera-grid pre{overflow:auto}.caldera-grid code,.caldera-grid kbd,.caldera-grid pre,.caldera-grid samp{font-family:monospace,monospace;font-size:1em}.caldera-grid button,.caldera-grid input,.caldera-grid optgroup,.caldera-grid select,.caldera-grid textarea{font:inherit;margin:0}.caldera-grid button{overflow:visible}.caldera-grid button,.caldera-grid select{text-transform:none}.caldera-grid button,.caldera-grid html input[type=button],.caldera-grid input[type=reset],.caldera-grid input[type=submit]{-webkit-appearance:button;cursor:pointer}.caldera-grid button[disabled],.caldera-grid html input[disabled]{cursor:default}.caldera-grid button::-moz-focus-inner,.caldera-grid input::-moz-focus-inner{border:0;padding:0}.caldera-grid input[type=checkbox],.caldera-grid input[type=radio]{box-sizing:border-box;padding:0}.caldera-grid input[type=number]::-webkit-inner-spin-button,.caldera-grid input[type=number]::-webkit-outer-spin-button{height:auto}.caldera-grid input[type=search]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}.caldera-grid input[type=search]::-webkit-search-cancel-button,.caldera-grid input[type=search]::-webkit-search-decoration{-webkit-appearance:none}.caldera-grid fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}.caldera-grid legend{border:0;padding:0}.caldera-grid textarea{overflow:auto}.caldera-grid optgroup{font-weight:700}.caldera-grid table{border-collapse:collapse;border-spacing:0}.caldera-grid td,.caldera-grid th{padding:0}.caldera-grid *,.caldera-grid :after,.caldera-grid :before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.caldera-grid html{font-size:62.5%;-webkit-tap-highlight-color:transparent}.caldera-grid body{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:1.42857143;color:#333;background-color:#fff}.caldera-grid button,.caldera-grid input,.caldera-grid select,.caldera-grid textarea{font-family:inherit;font-size:inherit;line-height:inherit}.caldera-grid a:focus,.caldera-grid a:hover{color:#2a6496;text-decoration:underline}.caldera-grid a:focus{outline:dotted thin;outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px}.caldera-grid figure{margin:0}.caldera-grid .img-responsive{display:block;max-width:100%;height:auto}.caldera-grid .img-rounded{border-radius:6px}.caldera-grid .img-thumbnail{padding:4px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out;display:inline-block;max-width:100%;height:auto}.caldera-grid .img-circle{border-radius:50%}.caldera-grid hr{margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}.caldera-grid .sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0}.caldera-grid .container,.caldera-grid .container-fluid{margin-right:auto;margin-left:auto;padding-left:7.5px;padding-right:7.5px}@media (min-width:768px){.caldera-grid .container{width:735px}}@media (min-width:992px){.caldera-grid .container{width:955px}}@media (min-width:1200px){.caldera-grid .container{width:1155px}}.caldera-grid .row{margin-left:-7.5px;margin-right:-7.5px;max-width:100%}.caldera-grid .col-lg-1,.caldera-grid .col-lg-10,.caldera-grid .col-lg-11,.caldera-grid .col-lg-12,.caldera-grid .col-lg-2,.caldera-grid .col-lg-3,.caldera-grid .col-lg-4,.caldera-grid .col-lg-5,.caldera-grid .col-lg-6,.caldera-grid .col-lg-7,.caldera-grid .col-lg-8,.caldera-grid .col-lg-9,.caldera-grid .col-md-1,.caldera-grid .col-md-10,.caldera-grid .col-md-11,.caldera-grid .col-md-12,.caldera-grid .col-md-2,.caldera-grid .col-md-3,.caldera-grid .col-md-4,.caldera-grid .col-md-5,.caldera-grid .col-md-6,.caldera-grid .col-md-7,.caldera-grid .col-md-8,.caldera-grid .col-md-9,.caldera-grid .col-sm-1,.caldera-grid .col-sm-10,.caldera-grid .col-sm-11,.caldera-grid .col-sm-12,.caldera-grid .col-sm-2,.caldera-grid .col-sm-3,.caldera-grid .col-sm-4,.caldera-grid .col-sm-5,.caldera-grid .col-sm-6,.caldera-grid .col-sm-7,.caldera-grid .col-sm-8,.caldera-grid .col-sm-9,.caldera-grid .col-xs-1,.caldera-grid .col-xs-10,.caldera-grid .col-xs-11,.caldera-grid .col-xs-12,.caldera-grid .col-xs-2,.caldera-grid .col-xs-3,.caldera-grid .col-xs-4,.caldera-grid .col-xs-5,.caldera-grid .col-xs-6,.caldera-grid .col-xs-7,.caldera-grid .col-xs-8,.caldera-grid .col-xs-9{position:relative;padding-left:7.5px;padding-right:7.5px}.caldera-grid .col-xs-1,.caldera-grid .col-xs-10,.caldera-grid .col-xs-11,.caldera-grid .col-xs-12,.caldera-grid .col-xs-2,.caldera-grid .col-xs-3,.caldera-grid .col-xs-4,.caldera-grid .col-xs-5,.caldera-grid .col-xs-6,.caldera-grid .col-xs-7,.caldera-grid .col-xs-8,.caldera-grid .col-xs-9{float:left}.caldera-grid .col-xs-12{width:100%}.caldera-grid .col-xs-11{width:91.66666667%}.caldera-grid .col-xs-10{width:83.33333333%}.caldera-grid .col-xs-9{width:75%}.caldera-grid .col-xs-8{width:66.66666667%}.caldera-grid .col-xs-7{width:58.33333333%}.caldera-grid .col-xs-6{width:50%}.caldera-grid .col-xs-5{width:41.66666667%}.caldera-grid .col-xs-4{width:33.33333333%}.caldera-grid .col-xs-3{width:25%}.caldera-grid .col-xs-2{width:16.66666667%}.caldera-grid .col-xs-1{width:8.33333333%}.caldera-grid .col-xs-pull-12{right:100%}.caldera-grid .col-xs-pull-11{right:91.66666667%}.caldera-grid .col-xs-pull-10{right:83.33333333%}.caldera-grid .col-xs-pull-9{right:75%}.caldera-grid .col-xs-pull-8{right:66.66666667%}.caldera-grid .col-xs-pull-7{right:58.33333333%}.caldera-grid .col-xs-pull-6{right:50%}.caldera-grid .col-xs-pull-5{right:41.66666667%}.caldera-grid .col-xs-pull-4{right:33.33333333%}.caldera-grid .col-xs-pull-3{right:25%}.caldera-grid .col-xs-pull-2{right:16.66666667%}.caldera-grid .col-xs-pull-1{right:8.33333333%}.caldera-grid .col-xs-pull-0{right:0}.caldera-grid .col-xs-push-12{left:100%}.caldera-grid .col-xs-push-11{left:91.66666667%}.caldera-grid .col-xs-push-10{left:83.33333333%}.caldera-grid .col-xs-push-9{left:75%}.caldera-grid .col-xs-push-8{left:66.66666667%}.caldera-grid .col-xs-push-7{left:58.33333333%}.caldera-grid .col-xs-push-6{left:50%}.caldera-grid .col-xs-push-5{left:41.66666667%}.caldera-grid .col-xs-push-4{left:33.33333333%}.caldera-grid .col-xs-push-3{left:25%}.caldera-grid .col-xs-push-2{left:16.66666667%}.caldera-grid .col-xs-push-1{left:8.33333333%}.caldera-grid .col-xs-push-0{left:0}.caldera-grid .col-xs-offset-12{margin-left:100%}.caldera-grid .col-xs-offset-11{margin-left:91.66666667%}.caldera-grid .col-xs-offset-10{margin-left:83.33333333%}.caldera-grid .col-xs-offset-9{margin-left:75%}.caldera-grid .col-xs-offset-8{margin-left:66.66666667%}.caldera-grid .col-xs-offset-7{margin-left:58.33333333%}.caldera-grid .col-xs-offset-6{margin-left:50%}.caldera-grid .col-xs-offset-5{margin-left:41.66666667%}.caldera-grid .col-xs-offset-4{margin-left:33.33333333%}.caldera-grid .col-xs-offset-3{margin-left:25%}.caldera-grid .col-xs-offset-2{margin-left:16.66666667%}.caldera-grid .col-xs-offset-1{margin-left:8.33333333%}.caldera-grid .col-xs-offset-0{margin-left:0}@media (min-width:768px){.caldera-grid .col-sm-1,.caldera-grid .col-sm-10,.caldera-grid .col-sm-11,.caldera-grid .col-sm-12,.caldera-grid .col-sm-2,.caldera-grid .col-sm-3,.caldera-grid .col-sm-4,.caldera-grid .col-sm-5,.caldera-grid .col-sm-6,.caldera-grid .col-sm-7,.caldera-grid .col-sm-8,.caldera-grid .col-sm-9{float:left}.caldera-grid .col-sm-12{width:100%}.caldera-grid .col-sm-11{width:91.66666667%}.caldera-grid .col-sm-10{width:83.33333333%}.caldera-grid .col-sm-9{width:75%}.caldera-grid .col-sm-8{width:66.66666667%}.caldera-grid .col-sm-7{width:58.33333333%}.caldera-grid .col-sm-6{width:50%}.caldera-grid .col-sm-5{width:41.66666667%}.caldera-grid .col-sm-4{width:33.33333333%}.caldera-grid .col-sm-3{width:25%}.caldera-grid .col-sm-2{width:16.66666667%}.caldera-grid .col-sm-1{width:8.33333333%}.caldera-grid .col-sm-pull-12{right:100%}.caldera-grid .col-sm-pull-11{right:91.66666667%}.caldera-grid .col-sm-pull-10{right:83.33333333%}.caldera-grid .col-sm-pull-9{right:75%}.caldera-grid .col-sm-pull-8{right:66.66666667%}.caldera-grid .col-sm-pull-7{right:58.33333333%}.caldera-grid .col-sm-pull-6{right:50%}.caldera-grid .col-sm-pull-5{right:41.66666667%}.caldera-grid .col-sm-pull-4{right:33.33333333%}.caldera-grid .col-sm-pull-3{right:25%}.caldera-grid .col-sm-pull-2{right:16.66666667%}.caldera-grid .col-sm-pull-1{right:8.33333333%}.caldera-grid .col-sm-pull-0{right:0}.caldera-grid .col-sm-push-12{left:100%}.caldera-grid .col-sm-push-11{left:91.66666667%}.caldera-grid .col-sm-push-10{left:83.33333333%}.caldera-grid .col-sm-push-9{left:75%}.caldera-grid .col-sm-push-8{left:66.66666667%}.caldera-grid .col-sm-push-7{left:58.33333333%}.caldera-grid .col-sm-push-6{left:50%}.caldera-grid .col-sm-push-5{left:41.66666667%}.caldera-grid .col-sm-push-4{left:33.33333333%}.caldera-grid .col-sm-push-3{left:25%}.caldera-grid .col-sm-push-2{left:16.66666667%}.caldera-grid .col-sm-push-1{left:8.33333333%}.caldera-grid .col-sm-push-0{left:0}.caldera-grid .col-sm-offset-12{margin-left:100%}.caldera-grid .col-sm-offset-11{margin-left:91.66666667%}.caldera-grid .col-sm-offset-10{margin-left:83.33333333%}.caldera-grid .col-sm-offset-9{margin-left:75%}.caldera-grid .col-sm-offset-8{margin-left:66.66666667%}.caldera-grid .col-sm-offset-7{margin-left:58.33333333%}.caldera-grid .col-sm-offset-6{margin-left:50%}.caldera-grid .col-sm-offset-5{margin-left:41.66666667%}.caldera-grid .col-sm-offset-4{margin-left:33.33333333%}.caldera-grid .col-sm-offset-3{margin-left:25%}.caldera-grid .col-sm-offset-2{margin-left:16.66666667%}.caldera-grid .col-sm-offset-1{margin-left:8.33333333%}.caldera-grid .col-sm-offset-0{margin-left:0}}@media (min-width:992px){.caldera-grid .col-md-1,.caldera-grid .col-md-10,.caldera-grid .col-md-11,.caldera-grid .col-md-12,.caldera-grid .col-md-2,.caldera-grid .col-md-3,.caldera-grid .col-md-4,.caldera-grid .col-md-5,.caldera-grid .col-md-6,.caldera-grid .col-md-7,.caldera-grid .col-md-8,.caldera-grid .col-md-9{float:left}.caldera-grid .col-md-12{width:100%}.caldera-grid .col-md-11{width:91.66666667%}.caldera-grid .col-md-10{width:83.33333333%}.caldera-grid .col-md-9{width:75%}.caldera-grid .col-md-8{width:66.66666667%}.caldera-grid .col-md-7{width:58.33333333%}.caldera-grid .col-md-6{width:50%}.caldera-grid .col-md-5{width:41.66666667%}.caldera-grid .col-md-4{width:33.33333333%}.caldera-grid .col-md-3{width:25%}.caldera-grid .col-md-2{width:16.66666667%}.caldera-grid .col-md-1{width:8.33333333%}.caldera-grid .col-md-pull-12{right:100%}.caldera-grid .col-md-pull-11{right:91.66666667%}.caldera-grid .col-md-pull-10{right:83.33333333%}.caldera-grid .col-md-pull-9{right:75%}.caldera-grid .col-md-pull-8{right:66.66666667%}.caldera-grid .col-md-pull-7{right:58.33333333%}.caldera-grid .col-md-pull-6{right:50%}.caldera-grid .col-md-pull-5{right:41.66666667%}.caldera-grid .col-md-pull-4{right:33.33333333%}.caldera-grid .col-md-pull-3{right:25%}.caldera-grid .col-md-pull-2{right:16.66666667%}.caldera-grid .col-md-pull-1{right:8.33333333%}.caldera-grid .col-md-pull-0{right:0}.caldera-grid .col-md-push-12{left:100%}.caldera-grid .col-md-push-11{left:91.66666667%}.caldera-grid .col-md-push-10{left:83.33333333%}.caldera-grid .col-md-push-9{left:75%}.caldera-grid .col-md-push-8{left:66.66666667%}.caldera-grid .col-md-push-7{left:58.33333333%}.caldera-grid .col-md-push-6{left:50%}.caldera-grid .col-md-push-5{left:41.66666667%}.caldera-grid .col-md-push-4{left:33.33333333%}.caldera-grid .col-md-push-3{left:25%}.caldera-grid .col-md-push-2{left:16.66666667%}.caldera-grid .col-md-push-1{left:8.33333333%}.caldera-grid .col-md-push-0{left:0}.caldera-grid .col-md-offset-12{margin-left:100%}.caldera-grid .col-md-offset-11{margin-left:91.66666667%}.caldera-grid .col-md-offset-10{margin-left:83.33333333%}.caldera-grid .col-md-offset-9{margin-left:75%}.caldera-grid .col-md-offset-8{margin-left:66.66666667%}.caldera-grid .col-md-offset-7{margin-left:58.33333333%}.caldera-grid .col-md-offset-6{margin-left:50%}.caldera-grid .col-md-offset-5{margin-left:41.66666667%}.caldera-grid .col-md-offset-4{margin-left:33.33333333%}.caldera-grid .col-md-offset-3{margin-left:25%}.caldera-grid .col-md-offset-2{margin-left:16.66666667%}.caldera-grid .col-md-offset-1{margin-left:8.33333333%}.caldera-grid .col-md-offset-0{margin-left:0}}@-ms-viewport{width:device-width}@media (min-width:1200px){.caldera-grid .col-lg-1,.caldera-grid .col-lg-10,.caldera-grid .col-lg-11,.caldera-grid .col-lg-12,.caldera-grid .col-lg-2,.caldera-grid .col-lg-3,.caldera-grid .col-lg-4,.caldera-grid .col-lg-5,.caldera-grid .col-lg-6,.caldera-grid .col-lg-7,.caldera-grid .col-lg-8,.caldera-grid .col-lg-9{float:left}.caldera-grid .col-lg-12{width:100%}.caldera-grid .col-lg-11{width:91.66666667%}.caldera-grid .col-lg-10{width:83.33333333%}.caldera-grid .col-lg-9{width:75%}.caldera-grid .col-lg-8{width:66.66666667%}.caldera-grid .col-lg-7{width:58.33333333%}.caldera-grid .col-lg-6{width:50%}.caldera-grid .col-lg-5{width:41.66666667%}.caldera-grid .col-lg-4{width:33.33333333%}.caldera-grid .col-lg-3{width:25%}.caldera-grid .col-lg-2{width:16.66666667%}.caldera-grid .col-lg-1{width:8.33333333%}.caldera-grid .col-lg-pull-12{right:100%}.caldera-grid .col-lg-pull-11{right:91.66666667%}.caldera-grid .col-lg-pull-10{right:83.33333333%}.caldera-grid .col-lg-pull-9{right:75%}.caldera-grid .col-lg-pull-8{right:66.66666667%}.caldera-grid .col-lg-pull-7{right:58.33333333%}.caldera-grid .col-lg-pull-6{right:50%}.caldera-grid .col-lg-pull-5{right:41.66666667%}.caldera-grid .col-lg-pull-4{right:33.33333333%}.caldera-grid .col-lg-pull-3{right:25%}.caldera-grid .col-lg-pull-2{right:16.66666667%}.caldera-grid .col-lg-pull-1{right:8.33333333%}.caldera-grid .col-lg-pull-0{right:0}.caldera-grid .col-lg-push-12{left:100%}.caldera-grid .col-lg-push-11{left:91.66666667%}.caldera-grid .col-lg-push-10{left:83.33333333%}.caldera-grid .col-lg-push-9{left:75%}.caldera-grid .col-lg-push-8{left:66.66666667%}.caldera-grid .col-lg-push-7{left:58.33333333%}.caldera-grid .col-lg-push-6{left:50%}.caldera-grid .col-lg-push-5{left:41.66666667%}.caldera-grid .col-lg-push-4{left:33.33333333%}.caldera-grid .col-lg-push-3{left:25%}.caldera-grid .col-lg-push-2{left:16.66666667%}.caldera-grid .col-lg-push-1{left:8.33333333%}.caldera-grid .col-lg-push-0{left:0}.caldera-grid .col-lg-offset-12{margin-left:100%}.caldera-grid .col-lg-offset-11{margin-left:91.66666667%}.caldera-grid .col-lg-offset-10{margin-left:83.33333333%}.caldera-grid .col-lg-offset-9{margin-left:75%}.caldera-grid .col-lg-offset-8{margin-left:66.66666667%}.caldera-grid .col-lg-offset-7{margin-left:58.33333333%}.caldera-grid .col-lg-offset-6{margin-left:50%}.caldera-grid .col-lg-offset-5{margin-left:41.66666667%}.caldera-grid .col-lg-offset-4{margin-left:33.33333333%}.caldera-grid .col-lg-offset-3{margin-left:25%}.caldera-grid .col-lg-offset-2{margin-left:16.66666667%}.caldera-grid .col-lg-offset-1{margin-left:8.33333333%}.caldera-grid .col-lg-offset-0{margin-left:0}}.caldera-grid .clearfix:after,.caldera-grid .clearfix:before,.caldera-grid .container-fluid:after,.caldera-grid .container-fluid:before,.caldera-grid .container:after,.caldera-grid .container:before,.caldera-grid .row:after,.caldera-grid .row:before{content:" ";display:table}.caldera-grid .clearfix:after,.caldera-grid .container-fluid:after,.caldera-grid .container:after,.caldera-grid .row:after{clear:both}.caldera-grid .center-block{display:block;margin-left:auto;margin-right:auto}.caldera-grid .pull-right{float:right!important}.caldera-grid .pull-left{float:left!important}.caldera-grid .hide{display:none!important}.caldera-grid .show{display:block!important}.caldera-grid .hidden,.caldera-grid .visible-lg,.caldera-grid .visible-md,.caldera-grid .visible-sm,.caldera-grid .visible-xs{display:none!important}.caldera-grid .invisible{visibility:hidden}.caldera-grid .text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.caldera-grid .hidden{visibility:hidden!important}.caldera-grid .affix{position:fixed}@-ms-viewport{width:device-width}.caldera-grid .form-control{width:100%}@media (max-width:767px){.caldera-grid .visible-xs{display:block!important}.caldera-grid table.visible-xs{display:table}.caldera-grid tr.visible-xs{display:table-row!important}.caldera-grid td.visible-xs,.caldera-grid th.visible-xs{display:table-cell!important}}@media (min-width:768px) and (max-width:991px){.caldera-grid .visible-sm{display:block!important}.caldera-grid table.visible-sm{display:table}.caldera-grid tr.visible-sm{display:table-row!important}.caldera-grid td.visible-sm,.caldera-grid th.visible-sm{display:table-cell!important}}@media (min-width:992px) and (max-width:1199px){.caldera-grid .visible-md{display:block!important}.caldera-grid table.visible-md{display:table}.caldera-grid tr.visible-md{display:table-row!important}.caldera-grid td.visible-md,.caldera-grid th.visible-md{display:table-cell!important}}@media (min-width:1200px){.caldera-grid .visible-lg{display:block!important}.caldera-grid table.visible-lg{display:table}.caldera-grid tr.visible-lg{display:table-row!important}.caldera-grid td.visible-lg,.caldera-grid th.visible-lg{display:table-cell!important}.caldera-grid .hidden-lg{display:none!important}}@media (max-width:767px){.caldera-grid .hidden-xs{display:none!important}}@media (min-width:768px) and (max-width:991px){.caldera-grid .hidden-sm{display:none!important}}@media (min-width:992px) and (max-width:1199px){.caldera-grid .hidden-md{display:none!important}}.caldera-grid .visible-print{display:none!important}@media print{.caldera-grid .visible-print{display:block!important}.caldera-grid table.visible-print{display:table}.caldera-grid tr.visible-print{display:table-row!important}.caldera-grid td.visible-print,.caldera-grid th.visible-print{display:table-cell!important}.caldera-grid .hidden-print{display:none!important}}input.parsley-success,select.parsley-success,textarea.parsley-success{color:#468847;background-color:#DFF0D8;border:1px solid #D6E9C6}input.parsley-error,select.parsley-error,textarea.parsley-error{color:#B94A48;background-color:#F2DEDE;border:1px solid #EED3D7}.parsley-errors-list{margin:2px 0 3px;padding:0;list-style-type:none;font-size:.9em;line-height:.9em;opacity:0;transition:all .3s ease-in;-o-transition:all .3s ease-in;-moz-transition:all .3s ease-in;-webkit-transition:all .3s ease-in}.parsley-errors-list.filled{opacity:1}
|
2 |
.caldera-grid .alert{padding:8px;margin-bottom:18px;border-radius:2px}.caldera-grid .alert .alert-link{font-weight:700}.caldera-grid .alert-dismissable{padding-right:28px}.caldera-grid .alert-success{background-color:#dff0d8;border-color:#a3d48e;color:#3c763d}.caldera-grid .alert-success hr{border-top-color:#93cd7c}.caldera-grid .alert-success .alert-link{color:#2b542c}.caldera-grid .alert-info{background-color:#d9edf7;border-color:#85c5e5;color:#31708f}.caldera-grid .alert-info hr{border-top-color:#70bbe1}.caldera-grid .alert-info .alert-link{color:#245269}.caldera-grid .alert-warning{background-color:#f9edbe;border-color:#f0c36d;color:#333}.caldera-grid .alert-warning hr{border-top-color:#eeb956}.caldera-grid .alert-warning .alert-link{color:#1a1a1a}.caldera-grid .alert-danger,.caldera-grid .alert-error{background-color:#f2dede;border-color:#d59595;color:#a94442}.caldera-grid .alert-danger hr,.caldera-grid .alert-error hr{border-top-color:#ce8383}.caldera-grid .alert-danger .alert-link,.caldera-grid .alert-error .alert-link{color:#843534}.caldera-grid .has-error .checkbox,.caldera-grid .has-error .checkbox-inline,.caldera-grid .has-error .control-label,.caldera-grid .has-error .form-control-feedback,.caldera-grid .has-error .help-block,.caldera-grid .has-error .radio,.caldera-grid .has-error .radio-inline{color:#dd4b39}.caldera-grid .alert-danger,.caldera-grid .alert-error,.caldera-grid .alert-info,.caldera-grid .alert-success,.caldera-grid .alert-warning{text-shadow:0 1px 0 rgba(255,255,255,.5)}.caldera-grid .has-error .form-control{border-color:#dd4b39;-webkit-box-shadow:none;box-shadow:none}.caldera-grid .has-error .input-group-addon{color:#dd4b39;border-color:#dd4b39;background-color:#f2dede}.caldera-grid .has-error .form-control:focus,.caldera-grid .has-error .form-control:hover{border-color:#dd4b39}.caldera-grid.cf_processing{background:url(../images/loading.gif) center center/30px auto no-repeat rgba(0,0,0,0)}.caldera-grid.cf_processing>*{opacity:.5}
|
3 |
.caldera-grid html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}.caldera-grid body{margin:0}.caldera-grid article,.caldera-grid aside,.caldera-grid details,.caldera-grid figcaption,.caldera-grid figure,.caldera-grid footer,.caldera-grid header,.caldera-grid hgroup,.caldera-grid main,.caldera-grid menu,.caldera-grid nav,.caldera-grid section,.caldera-grid summary{display:block}.caldera-grid audio,.caldera-grid canvas,.caldera-grid progress,.caldera-grid video{display:inline-block;vertical-align:baseline}.caldera-grid audio:not([controls]){display:none;height:0}.caldera-grid [hidden],.caldera-grid template{display:none}.caldera-grid a{background-color:transparent}.caldera-grid a:active,.caldera-grid a:hover{outline:0}.caldera-grid abbr[title]{border-bottom:1px dotted}.caldera-grid b,.caldera-grid strong{font-weight:700}.caldera-grid dfn{font-style:italic}.caldera-grid h1{font-size:2em;margin:.67em 0}.caldera-grid mark{background:#ff0;color:#000}.caldera-grid small{font-size:80%}.caldera-grid sub,.caldera-grid sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.caldera-grid sup{top:-.5em}.caldera-grid sub{bottom:-.25em}.caldera-grid img{border:0}.caldera-grid svg:not(:root){overflow:hidden}.caldera-grid figure{margin:1em 40px}.caldera-grid hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}.caldera-grid pre{overflow:auto}.caldera-grid code,.caldera-grid kbd,.caldera-grid pre,.caldera-grid samp{font-family:monospace,monospace;font-size:1em}.caldera-grid button,.caldera-grid input,.caldera-grid optgroup,.caldera-grid select,.caldera-grid textarea{font:inherit;margin:0}.caldera-grid button{overflow:visible}.caldera-grid button,.caldera-grid select{text-transform:none}.caldera-grid button,.caldera-grid html input[type=button],.caldera-grid input[type=reset],.caldera-grid input[type=submit]{-webkit-appearance:button;cursor:pointer}.caldera-grid button[disabled],.caldera-grid html input[disabled]{cursor:default}.caldera-grid button::-moz-focus-inner,.caldera-grid input::-moz-focus-inner{border:0;padding:0}.caldera-grid input{line-height:normal}.caldera-grid input[type=checkbox],.caldera-grid input[type=radio]{box-sizing:border-box;padding:0}.caldera-grid input[type=number]::-webkit-inner-spin-button,.caldera-grid input[type=number]::-webkit-outer-spin-button{height:auto}.caldera-grid input[type=search]{-webkit-appearance:textfield;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.caldera-grid input[type=search]::-webkit-search-cancel-button,.caldera-grid input[type=search]::-webkit-search-decoration{-webkit-appearance:none}.caldera-grid textarea{overflow:auto}.caldera-grid optgroup{font-weight:700}.caldera-grid table{border-collapse:collapse;border-spacing:0}.caldera-grid td,.caldera-grid th{padding:0}@media print{.caldera-grid *,.caldera-grid :after,.caldera-grid :before{background:0 0!important;color:#000!important;box-shadow:none!important;text-shadow:none!important}.caldera-grid a,.caldera-grid a:visited{text-decoration:underline}.caldera-grid a[href]:after{content:" (" attr(href) ")"}.caldera-grid abbr[title]:after{content:" (" attr(title) ")"}.caldera-grid a[href^="#"]:after,.caldera-grid a[href^="javascript:"]:after{content:""}.caldera-grid blockquote,.caldera-grid pre{border:1px solid #999;page-break-inside:avoid}.caldera-grid thead{display:table-header-group}.caldera-grid img,.caldera-grid tr{page-break-inside:avoid}.caldera-grid img{max-width:100%!important}.caldera-grid h2,.caldera-grid h3,.caldera-grid p{orphans:3;widows:3}.caldera-grid h2,.caldera-grid h3{page-break-after:avoid}.caldera-grid select{background:#fff!important}.caldera-grid .navbar{display:none}.caldera-grid .btn>.caret,.caldera-grid .dropup>.btn>.caret{border-top-color:#000!important}.caldera-grid .label{border:1px solid #000}.caldera-grid .table{border-collapse:collapse!important}.caldera-grid .table td,.caldera-grid .table th{background-color:#fff!important}.caldera-grid .table-bordered td,.caldera-grid .table-bordered th{border:1px solid #ddd!important}}.caldera-grid .btn,.caldera-grid .btn-danger.active,.caldera-grid .btn-danger:active,.caldera-grid .btn-default.active,.caldera-grid .btn-default:active,.caldera-grid .btn-info.active,.caldera-grid .btn-info:active,.caldera-grid .btn-primary.active,.caldera-grid .btn-primary:active,.caldera-grid .btn-success.active,.caldera-grid .btn-success:active,.caldera-grid .btn-warning.active,.caldera-grid .btn-warning:active,.caldera-grid .form-control,.open>.dropdown-toggle.caldera-grid .btn-danger,.open>.dropdown-toggle.caldera-grid .btn-default,.open>.dropdown-toggle.caldera-grid .btn-info,.open>.dropdown-toggle.caldera-grid .btn-primary,.open>.dropdown-toggle.caldera-grid .btn-success,.open>.dropdown-toggle.caldera-grid .btn-warning{background-image:none}.caldera-grid fieldset{padding:0;margin:0;border:0;min-width:0}.caldera-grid legend{display:block;width:100%;padding:0;margin-bottom:20px;font-size:21px;line-height:inherit;color:#333;border:0;border-bottom:1px solid #e5e5e5}.caldera-grid label{display:inline-block;max-width:100%;margin-bottom:5px;font-weight:700}.caldera-grid input[type=checkbox],.caldera-grid input[type=radio]{margin:0;line-height:normal}.caldera-grid .form-control,.caldera-grid output{font-size:14px;line-height:1.42857143;color:#555;display:block}.caldera-grid input[type=file]{display:block}.caldera-grid input[type=range]{display:block;width:100%}.caldera-grid select[multiple],.caldera-grid select[size]{height:auto}.caldera-grid input[type=checkbox]:focus,.caldera-grid input[type=file]:focus,.caldera-grid input[type=radio]:focus{outline:dotted thin;outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px}.caldera-grid input[type=checkbox]{-webkit-appearance:checkbox}.caldera-grid input[type=radio]{-webkit-appearance:radio}.caldera-grid output{padding-top:7px}.caldera-grid .form-control{width:100%;height:34px;padding:6px 12px;background-color:#fff;border:1px solid #ccc;border-radius:2px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;-o-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.caldera-grid .form-control:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.caldera-grid .form-control::-moz-placeholder{color:#999;opacity:1}.caldera-grid .form-control:-ms-input-placeholder{color:#999}.caldera-grid .form-control::-webkit-input-placeholder{color:#999}.caldera-grid .has-success .checkbox,.caldera-grid .has-success .checkbox-inline,.caldera-grid .has-success .control-label,.caldera-grid .has-success .form-control-feedback,.caldera-grid .has-success .help-block,.caldera-grid .has-success .radio,.caldera-grid .has-success .radio-inline,.caldera-grid .has-success.checkbox label,.caldera-grid .has-success.checkbox-inline label,.caldera-grid .has-success.radio label,.caldera-grid .has-success.radio-inline label{color:#3c763d}.caldera-grid .form-control[disabled],.caldera-grid .form-control[readonly],fieldset[disabled] .caldera-grid .form-control{background-color:#eee;opacity:1}.caldera-grid .form-control[disabled],fieldset[disabled] .caldera-grid .form-control{cursor:not-allowed}textarea .caldera-grid .form-control{height:auto}@media screen and (-webkit-min-device-pixel-ratio:0){.caldera-grid input[type=date],.caldera-grid input[type=datetime-local],.caldera-grid input[type=month],.caldera-grid input[type=time]{line-height:34px}.caldera-grid input[type=date].input-sm,.caldera-grid input[type=datetime-local].input-sm,.caldera-grid input[type=month].input-sm,.caldera-grid input[type=time].input-sm,.input-group-sm .caldera-grid input[type=date],.input-group-sm .caldera-grid input[type=datetime-local],.input-group-sm .caldera-grid input[type=month],.input-group-sm .caldera-grid input[type=time]{line-height:30px}.caldera-grid input[type=date].input-lg,.caldera-grid input[type=datetime-local].input-lg,.caldera-grid input[type=month].input-lg,.caldera-grid input[type=time].input-lg,.input-group-lg .caldera-grid input[type=date],.input-group-lg .caldera-grid input[type=datetime-local],.input-group-lg .caldera-grid input[type=month],.input-group-lg .caldera-grid input[type=time]{line-height:46px}}.caldera-grid .form-group{margin-bottom:15px}.caldera-grid .checkbox,.caldera-grid .radio{position:relative;display:block;margin-top:10px;margin-bottom:10px}.caldera-grid .checkbox label,.caldera-grid .radio label{min-height:20px;padding-left:20px;margin-bottom:0;font-weight:400;cursor:pointer}.caldera-grid .checkbox input[type=checkbox],.caldera-grid .checkbox-inline input[type=checkbox],.caldera-grid .radio input[type=radio],.caldera-grid .radio-inline input[type=radio]{margin-left:-20px}.caldera-grid .checkbox+.checkbox,.caldera-grid .radio+.radio{margin-top:-5px}.caldera-grid .checkbox-inline,.caldera-grid .radio-inline{position:relative;display:inline-block;padding-left:20px;margin-bottom:0;vertical-align:middle;font-weight:400;cursor:pointer}.caldera-grid .checkbox-inline+.checkbox-inline,.caldera-grid .radio-inline+.radio-inline{margin-top:0;margin-left:10px}.caldera-grid .checkbox-inline.disabled,.caldera-grid .checkbox.disabled label,.caldera-grid .radio-inline.disabled,.caldera-grid .radio.disabled label,.caldera-grid input[type=checkbox].disabled,.caldera-grid input[type=checkbox][disabled],.caldera-grid input[type=radio].disabled,.caldera-grid input[type=radio][disabled],fieldset[disabled] .caldera-grid .checkbox label,fieldset[disabled] .caldera-grid .checkbox-inline,fieldset[disabled] .caldera-grid .radio label,fieldset[disabled] .caldera-grid .radio-inline,fieldset[disabled] .caldera-grid input[type=checkbox],fieldset[disabled] .caldera-grid input[type=radio]{cursor:not-allowed}.caldera-grid .form-control-static{padding-top:7px;padding-bottom:7px;margin-bottom:0;min-height:34px}.caldera-grid .form-control-static.input-lg,.caldera-grid .form-control-static.input-sm{padding-left:0;padding-right:0}.caldera-grid .input-sm{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:1px}select.caldera-grid .input-sm{height:30px;line-height:30px}select[multiple].caldera-grid .input-sm,textarea.caldera-grid .input-sm{height:auto}.caldera-grid .form-group-sm .form-control{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:1px}select.caldera-grid .form-group-sm .form-control{height:30px;line-height:30px}select[multiple].caldera-grid .form-group-sm .form-control,textarea.caldera-grid .form-group-sm .form-control{height:auto}.caldera-grid .form-group-sm .form-control-static{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;min-height:32px}.caldera-grid .input-lg{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:4px}select.caldera-grid .input-lg{height:46px;line-height:46px}select[multiple].caldera-grid .input-lg,textarea.caldera-grid .input-lg{height:auto}.caldera-grid .form-group-lg .form-control{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:4px}select.caldera-grid .form-group-lg .form-control{height:46px;line-height:46px}select[multiple].caldera-grid .form-group-lg .form-control,textarea.caldera-grid .form-group-lg .form-control{height:auto}.caldera-grid .form-group-lg .form-control-static{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;min-height:38px}.caldera-grid .has-feedback{position:relative}.caldera-grid .has-feedback .form-control{padding-right:42.5px}.caldera-grid .form-control-feedback{position:absolute;top:0;right:0;z-index:2;display:block;width:34px;height:34px;line-height:34px;text-align:center;pointer-events:none}.caldera-grid .input-lg+.form-control-feedback{width:46px;height:46px;line-height:46px}.caldera-grid .input-sm+.form-control-feedback{width:30px;height:30px;line-height:30px}.caldera-grid .has-success .form-control{border-color:#3c763d;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.caldera-grid .has-success .form-control:focus{border-color:#2b542c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168}.caldera-grid .has-success .input-group-addon{color:#3c763d;border-color:#3c763d;background-color:#dff0d8}.caldera-grid .has-warning .checkbox,.caldera-grid .has-warning .checkbox-inline,.caldera-grid .has-warning .control-label,.caldera-grid .has-warning .form-control-feedback,.caldera-grid .has-warning .help-block,.caldera-grid .has-warning .radio,.caldera-grid .has-warning .radio-inline,.caldera-grid .has-warning.checkbox label,.caldera-grid .has-warning.checkbox-inline label,.caldera-grid .has-warning.radio label,.caldera-grid .has-warning.radio-inline label{color:#8a6d3b}.caldera-grid .has-warning .form-control{border-color:#8a6d3b;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.caldera-grid .has-warning .form-control:focus{border-color:#66512c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b}.caldera-grid .has-warning .input-group-addon{color:#8a6d3b;border-color:#8a6d3b;background-color:#fcf8e3}.caldera-grid .has-error .checkbox,.caldera-grid .has-error .checkbox-inline,.caldera-grid .has-error .control-label,.caldera-grid .has-error .form-control-feedback,.caldera-grid .has-error .help-block,.caldera-grid .has-error .radio,.caldera-grid .has-error .radio-inline,.caldera-grid .has-error.checkbox label,.caldera-grid .has-error.checkbox-inline label,.caldera-grid .has-error.radio label,.caldera-grid .has-error.radio-inline label{color:#a94442}.caldera-grid .has-error .form-control{border-color:#a94442;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.caldera-grid .has-error .form-control:focus{border-color:#843534;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483}.caldera-grid .has-error .input-group-addon{color:#a94442;border-color:#a94442;background-color:#f2dede}.caldera-grid .has-feedback label~.form-control-feedback{top:25px}.caldera-grid .has-feedback label.sr-only~.form-control-feedback{top:0}.caldera-grid .help-block{display:block;margin-top:5px;margin-bottom:10px;color:#737373}@media (min-width:768px){.caldera-grid .form-inline .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.caldera-grid .form-inline .form-control{display:inline-block;width:auto;vertical-align:middle}.caldera-grid .form-inline .form-control-static{display:inline-block}.caldera-grid .form-inline .input-group{display:inline-table;vertical-align:middle}.caldera-grid .form-inline .input-group .form-control,.caldera-grid .form-inline .input-group .input-group-addon,.caldera-grid .form-inline .input-group .input-group-btn{width:auto}.caldera-grid .form-inline .input-group>.form-control{width:100%}.caldera-grid .form-inline .control-label{margin-bottom:0;vertical-align:middle}.caldera-grid .form-inline .checkbox,.caldera-grid .form-inline .radio{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.caldera-grid .form-inline .checkbox label,.caldera-grid .form-inline .radio label{padding-left:0}.caldera-grid .form-inline .checkbox input[type=checkbox],.caldera-grid .form-inline .radio input[type=radio]{position:relative;margin-left:0}.caldera-grid .form-inline .has-feedback .form-control-feedback{top:0}.caldera-grid .form-horizontal .control-label{text-align:right;margin-bottom:0;padding-top:7px}}.caldera-grid .form-horizontal .checkbox,.caldera-grid .form-horizontal .checkbox-inline,.caldera-grid .form-horizontal .radio,.caldera-grid .form-horizontal .radio-inline{margin-top:0;margin-bottom:0;padding-top:7px}.caldera-grid .form-horizontal .checkbox,.caldera-grid .form-horizontal .radio{min-height:27px}.caldera-grid .form-horizontal .form-group{margin-left:-15px;margin-right:-15px}.caldera-grid .form-horizontal .has-feedback .form-control-feedback{right:15px}@media (min-width:768px){.caldera-grid .form-horizontal .form-group-lg .control-label{padding-top:14.33px}.caldera-grid .form-horizontal .form-group-sm .control-label{padding-top:6px}}.caldera-grid .btn{display:inline-block;margin-bottom:0;font-weight:400;text-align:center;vertical-align:middle;touch-action:manipulation;cursor:pointer;border:1px solid transparent;white-space:nowrap;padding:6px 12px;font-size:14px;line-height:1.42857143;border-radius:2px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.caldera-grid .btn.active.focus,.caldera-grid .btn.active:focus,.caldera-grid .btn.focus,.caldera-grid .btn:active.focus,.caldera-grid .btn:active:focus,.caldera-grid .btn:focus{outline:dotted thin;outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px}.caldera-grid .btn.focus,.caldera-grid .btn:focus,.caldera-grid .btn:hover{color:#333;text-decoration:none}.caldera-grid .btn.active,.caldera-grid .btn:active{outline:0;background-image:none;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.caldera-grid .btn.disabled,.caldera-grid .btn[disabled],fieldset[disabled] .caldera-grid .btn{cursor:not-allowed;pointer-events:none;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none}.caldera-grid .btn-default{color:#333;background-color:#fff;border-color:#ccc}.caldera-grid .btn-default.active,.caldera-grid .btn-default.focus,.caldera-grid .btn-default:active,.caldera-grid .btn-default:focus,.caldera-grid .btn-default:hover,.open>.dropdown-toggle.caldera-grid .btn-default{color:#333;background-color:#e6e6e6;border-color:#adadad}.caldera-grid .btn-default.disabled,.caldera-grid .btn-default.disabled.active,.caldera-grid .btn-default.disabled.focus,.caldera-grid .btn-default.disabled:active,.caldera-grid .btn-default.disabled:focus,.caldera-grid .btn-default.disabled:hover,.caldera-grid .btn-default[disabled],.caldera-grid .btn-default[disabled].active,.caldera-grid .btn-default[disabled].focus,.caldera-grid .btn-default[disabled]:active,.caldera-grid .btn-default[disabled]:focus,.caldera-grid .btn-default[disabled]:hover,fieldset[disabled] .caldera-grid .btn-default,fieldset[disabled] .caldera-grid .btn-default.active,fieldset[disabled] .caldera-grid .btn-default.focus,fieldset[disabled] .caldera-grid .btn-default:active,fieldset[disabled] .caldera-grid .btn-default:focus,fieldset[disabled] .caldera-grid .btn-default:hover{background-color:#fff;border-color:#ccc}.caldera-grid .btn-default .badge{color:#fff;background-color:#333}.caldera-grid .btn-primary{color:#fff;background-color:#337ab7;border-color:#2e6da4}.caldera-grid .btn-primary.active,.caldera-grid .btn-primary.focus,.caldera-grid .btn-primary:active,.caldera-grid .btn-primary:focus,.caldera-grid .btn-primary:hover,.open>.dropdown-toggle.caldera-grid .btn-primary{color:#fff;background-color:#286090;border-color:#204d74}.caldera-grid .btn-primary.disabled,.caldera-grid .btn-primary.disabled.active,.caldera-grid .btn-primary.disabled.focus,.caldera-grid .btn-primary.disabled:active,.caldera-grid .btn-primary.disabled:focus,.caldera-grid .btn-primary.disabled:hover,.caldera-grid .btn-primary[disabled],.caldera-grid .btn-primary[disabled].active,.caldera-grid .btn-primary[disabled].focus,.caldera-grid .btn-primary[disabled]:active,.caldera-grid .btn-primary[disabled]:focus,.caldera-grid .btn-primary[disabled]:hover,fieldset[disabled] .caldera-grid .btn-primary,fieldset[disabled] .caldera-grid .btn-primary.active,fieldset[disabled] .caldera-grid .btn-primary.focus,fieldset[disabled] .caldera-grid .btn-primary:active,fieldset[disabled] .caldera-grid .btn-primary:focus,fieldset[disabled] .caldera-grid .btn-primary:hover{background-color:#337ab7;border-color:#2e6da4}.caldera-grid .btn-primary .badge{color:#337ab7;background-color:#fff}.caldera-grid .btn-success{color:#fff;background-color:#5cb85c;border-color:#4cae4c}.caldera-grid .btn-success.active,.caldera-grid .btn-success.focus,.caldera-grid .btn-success:active,.caldera-grid .btn-success:focus,.caldera-grid .btn-success:hover,.open>.dropdown-toggle.caldera-grid .btn-success{color:#fff;background-color:#449d44;border-color:#398439}.caldera-grid .btn-success.disabled,.caldera-grid .btn-success.disabled.active,.caldera-grid .btn-success.disabled.focus,.caldera-grid .btn-success.disabled:active,.caldera-grid .btn-success.disabled:focus,.caldera-grid .btn-success.disabled:hover,.caldera-grid .btn-success[disabled],.caldera-grid .btn-success[disabled].active,.caldera-grid .btn-success[disabled].focus,.caldera-grid .btn-success[disabled]:active,.caldera-grid .btn-success[disabled]:focus,.caldera-grid .btn-success[disabled]:hover,fieldset[disabled] .caldera-grid .btn-success,fieldset[disabled] .caldera-grid .btn-success.active,fieldset[disabled] .caldera-grid .btn-success.focus,fieldset[disabled] .caldera-grid .btn-success:active,fieldset[disabled] .caldera-grid .btn-success:focus,fieldset[disabled] .caldera-grid .btn-success:hover{background-color:#5cb85c;border-color:#4cae4c}.caldera-grid .btn-success .badge{color:#5cb85c;background-color:#fff}.caldera-grid .btn-info{color:#fff;background-color:#5bc0de;border-color:#46b8da}.caldera-grid .btn-info.active,.caldera-grid .btn-info.focus,.caldera-grid .btn-info:active,.caldera-grid .btn-info:focus,.caldera-grid .btn-info:hover,.open>.dropdown-toggle.caldera-grid .btn-info{color:#fff;background-color:#31b0d5;border-color:#269abc}.caldera-grid .btn-info.disabled,.caldera-grid .btn-info.disabled.active,.caldera-grid .btn-info.disabled.focus,.caldera-grid .btn-info.disabled:active,.caldera-grid .btn-info.disabled:focus,.caldera-grid .btn-info.disabled:hover,.caldera-grid .btn-info[disabled],.caldera-grid .btn-info[disabled].active,.caldera-grid .btn-info[disabled].focus,.caldera-grid .btn-info[disabled]:active,.caldera-grid .btn-info[disabled]:focus,.caldera-grid .btn-info[disabled]:hover,fieldset[disabled] .caldera-grid .btn-info,fieldset[disabled] .caldera-grid .btn-info.active,fieldset[disabled] .caldera-grid .btn-info.focus,fieldset[disabled] .caldera-grid .btn-info:active,fieldset[disabled] .caldera-grid .btn-info:focus,fieldset[disabled] .caldera-grid .btn-info:hover{background-color:#5bc0de;border-color:#46b8da}.caldera-grid .btn-info .badge{color:#5bc0de;background-color:#fff}.caldera-grid .btn-warning{color:#fff;background-color:#f0ad4e;border-color:#eea236}.caldera-grid .btn-warning.active,.caldera-grid .btn-warning.focus,.caldera-grid .btn-warning:active,.caldera-grid .btn-warning:focus,.caldera-grid .btn-warning:hover,.open>.dropdown-toggle.caldera-grid .btn-warning{color:#fff;background-color:#ec971f;border-color:#d58512}.caldera-grid .btn-warning.disabled,.caldera-grid .btn-warning.disabled.active,.caldera-grid .btn-warning.disabled.focus,.caldera-grid .btn-warning.disabled:active,.caldera-grid .btn-warning.disabled:focus,.caldera-grid .btn-warning.disabled:hover,.caldera-grid .btn-warning[disabled],.caldera-grid .btn-warning[disabled].active,.caldera-grid .btn-warning[disabled].focus,.caldera-grid .btn-warning[disabled]:active,.caldera-grid .btn-warning[disabled]:focus,.caldera-grid .btn-warning[disabled]:hover,fieldset[disabled] .caldera-grid .btn-warning,fieldset[disabled] .caldera-grid .btn-warning.active,fieldset[disabled] .caldera-grid .btn-warning.focus,fieldset[disabled] .caldera-grid .btn-warning:active,fieldset[disabled] .caldera-grid .btn-warning:focus,fieldset[disabled] .caldera-grid .btn-warning:hover{background-color:#f0ad4e;border-color:#eea236}.caldera-grid .btn-warning .badge{color:#f0ad4e;background-color:#fff}.caldera-grid .btn-danger{color:#fff;background-color:#d9534f;border-color:#d43f3a}.caldera-grid .btn-danger.active,.caldera-grid .btn-danger.focus,.caldera-grid .btn-danger:active,.caldera-grid .btn-danger:focus,.caldera-grid .btn-danger:hover,.open>.dropdown-toggle.caldera-grid .btn-danger{color:#fff;background-color:#c9302c;border-color:#ac2925}.caldera-grid .btn-danger.disabled,.caldera-grid .btn-danger.disabled.active,.caldera-grid .btn-danger.disabled.focus,.caldera-grid .btn-danger.disabled:active,.caldera-grid .btn-danger.disabled:focus,.caldera-grid .btn-danger.disabled:hover,.caldera-grid .btn-danger[disabled],.caldera-grid .btn-danger[disabled].active,.caldera-grid .btn-danger[disabled].focus,.caldera-grid .btn-danger[disabled]:active,.caldera-grid .btn-danger[disabled]:focus,.caldera-grid .btn-danger[disabled]:hover,fieldset[disabled] .caldera-grid .btn-danger,fieldset[disabled] .caldera-grid .btn-danger.active,fieldset[disabled] .caldera-grid .btn-danger.focus,fieldset[disabled] .caldera-grid .btn-danger:active,fieldset[disabled] .caldera-grid .btn-danger:focus,fieldset[disabled] .caldera-grid .btn-danger:hover{background-color:#d9534f;border-color:#d43f3a}.caldera-grid .btn-danger .badge{color:#d9534f;background-color:#fff}.caldera-grid .btn-link{color:#337ab7;font-weight:400;border-radius:0}.caldera-grid .btn-link,.caldera-grid .btn-link.active,.caldera-grid .btn-link:active,.caldera-grid .btn-link[disabled],fieldset[disabled] .caldera-grid .btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.caldera-grid .btn-link,.caldera-grid .btn-link:active,.caldera-grid .btn-link:focus,.caldera-grid .btn-link:hover{border-color:transparent}.caldera-grid .btn-link:focus,.caldera-grid .btn-link:hover{color:#23527c;text-decoration:underline;background-color:transparent}.caldera-grid .btn-link[disabled]:focus,.caldera-grid .btn-link[disabled]:hover,fieldset[disabled] .caldera-grid .btn-link:focus,fieldset[disabled] .caldera-grid .btn-link:hover{color:#777;text-decoration:none}.caldera-grid .btn-lg{padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:4px}.caldera-grid .btn-sm,.caldera-grid .btn-xs{font-size:12px;line-height:1.5;border-radius:1px}.caldera-grid .btn-sm{padding:5px 10px}.caldera-grid .btn-xs{padding:1px 5px}.caldera-grid .btn-block{display:block;width:100%}.caldera-grid .btn-block+.btn-block{margin-top:5px}.caldera-grid input[type=button].btn-block,.caldera-grid input[type=reset].btn-block,.caldera-grid input[type=submit].btn-block{width:100%}.caldera-grid textarea.form-control{padding-right:4px;height:auto}.caldera-grid .breadcrumb{padding:6px 12px;margin:0 0 20px;list-style:none;background-color:#f5f5f5;border-radius:4px}.caldera-grid .breadcrumb>li{display:inline-block;margin:0}.caldera-grid .breadcrumb>li+li:before{content:"/\00a0";padding:0 5px;color:#ccc}.caldera-grid .breadcrumb>.active,.caldera-grid .breadcrumb>.active>a{color:#777}.breadcrumb>li.active.error>a,.breadcrumb>li.error>a{color:red}.caldera-grid .cf-credit-card{padding-left:42px;background-image:url(../images/credit-card.svg);background-repeat:no-repeat!important;background-position-x:4px!important;background-position-y:3px!important}.caldera-grid .screen-reader-text{clip:rect(1px,1px,1px,1px);height:1px;overflow:hidden;position:absolute!important;width:1px;word-wrap:normal!important}
|
4 |
@font-face{font-family:cf-raty;src:url(fonts/cf-raty.eot?40481674);src:url(fonts/cf-raty.eot?40481674#iefix) format('embedded-opentype'),url(fonts/cf-raty.woff?40481674) format('woff'),url(fonts/cf-raty.ttf?40481674) format('truetype'),url(fonts/cf-raty.svg?40481674#cf-raty) format('svg');font-weight:400;font-style:normal}[class*=" raty-"]:before,[class^=raty-]:before{font-family:cf-raty;font-style:normal;font-weight:400;speak:none;font-size:2em;display:inline-block;text-decoration:inherit;width:1em;text-align:center;font-variant:normal;text-transform:none;line-height:1em}.raty-heart-on:before{content:'\e800'}.raty-heart-off:before{content:'\e801'}.raty-star-on:before{content:'\e802'}.raty-star-off:before{content:'\e803'}.raty-circle-on:before{content:'\e804'}.raty-circle-off:before{content:'\e805'}.raty-dot-off:before{content:'\e806'}.raty-dot-on:before{content:'\e807'}.raty-face-off:before{content:'\e808'}.raty-face-on:before{content:'\e809'}.raty-cancel-off:before{content:'\e80a'}.raty-cancel-on:before{content:'\e80b'}.calculation-group{background:#FFF;box-shadow:0 1px 2px rgba(0,0,0,.05);padding:6px;margin:6px 0}.preview-color-selector{background:#F0F0F0;border:1px solid #E2E2E2;display:inline;margin-left:-1px;padding:3px 12px;box-shadow:0 0 0 2px #fff inset}.miniColors-trigger{border:1px solid #999;-mz-border-radius:0 1px 1px 0;-webkit-border-radius:0 1px 1px 0;display:inline-block;height:24px;margin:0 0 -8px -1px;width:30px}.miniColors-selector{background:#FFF;border:1px solid #999;-moz-box-shadow:0 3px 0 -1px rgba(0,0,0,.05);-webkit-box-shadow:0 3px 0 -1px rgba(0,0,0,.05);box-shadow:0 3px 0 -1px rgba(0,0,0,.05);height:162px;padding:5px;position:absolute;width:187px;z-index:999999;margin-top:-1px}.miniColors-selector.black{background:#000;border-color:#000}.miniColors-colors{position:absolute;top:5px;left:5px;width:150px;height:150px;background:url(minicolor-colors.png) right no-repeat;cursor:crosshair}.miniColors-hues{position:absolute;top:5px;left:160px;width:20px;height:150px;background:url(minicolor-colors.png) left no-repeat;cursor:crosshair}.miniColors-colorPicker{position:absolute;width:9px;height:9px;border:1px solid #fff;-moz-border-radius:11px;-webkit-border-radius:11px;border-radius:11px}.miniColors-colorPicker-inner{position:absolute;top:0;left:0;width:7px;height:7px;border:1px solid #000;-moz-border-radius:9px;-webkit-border-radius:9px;border-radius:9px}.miniColors-huePicker{position:absolute;left:-3px;width:24px;height:1px;border:1px solid #fff;border-radius:2px;background:#000}.cf-color-picker .form-control::-moz-placeholder{color:#999;opacity:1}.cf-color-picker .form-control:-ms-input-placeholder{color:#999}.cf-color-picker .form-control::-webkit-input-placeholder{color:#999}.cf-color-picker .form-control[disabled],.cf-color-picker .form-control[readonly],.cf-color-picker fieldset[disabled] .form-control{cursor:not-allowed;background-color:#eee;opacity:1}.cf-color-picker .form-group{margin-bottom:15px}.cf-color-picker .input-group{position:relative;display:table;border-collapse:separate}.cf-color-picker .input-group[class*=col-]{float:none;padding-left:0;padding-right:0}.cf-color-picker .input-group .form-control{position:relative;z-index:2;float:left;width:100%;margin-bottom:0}.cf-color-picker .input-group-lg>.form-control,.cf-color-picker .input-group-lg>.input-group-addon,.cf-color-picker .input-group-lg>.input-group-btn>.btn{height:46px;padding:10px 16px;font-size:18px;line-height:1.33;border-radius:6px}.cf-color-picker .input-group-sm>.form-control,.cf-color-picker .input-group-sm>.input-group-addon,.cf-color-picker .input-group-sm>.input-group-btn>.btn{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.cf-color-picker .input-group .form-control,.cf-color-picker .input-group-addon,.cf-color-picker .input-group-btn{display:table-cell}.cf-color-picker .input-group .form-control:not(:first-child):not(:last-child),.cf-color-picker .input-group-addon:not(:first-child):not(:last-child),.cf-color-picker .input-group-btn:not(:first-child):not(:last-child){border-radius:0}.cf-color-picker .input-group-addon,.cf-color-picker .input-group-btn{width:1%;white-space:nowrap;vertical-align:middle}.cf-color-picker .input-group-addon{padding:6px 12px;font-size:14px;font-weight:400;line-height:1;color:#555;text-align:center;background-color:#eee;border:1px solid #ccc;border-radius:4px}.cf-color-picker .input-group-addon.input-sm{padding:5px 10px;font-size:12px;border-radius:3px}.cf-color-picker .input-group-addon.input-lg{padding:10px 16px;font-size:18px;border-radius:6px}.cf-color-picker .input-group .form-control:first-child,.cf-color-picker .input-group-addon:first-child,.cf-color-picker .input-group-btn:first-child>.btn,.cf-color-picker .input-group-btn:first-child>.btn-group>.btn,.cf-color-picker .input-group-btn:first-child>.dropdown-toggle,.cf-color-picker .input-group-btn:last-child>.btn-group:not(:last-child)>.btn,.cf-color-picker .input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle){border-bottom-right-radius:0;border-top-right-radius:0}.cf-color-picker .input-group-addon:first-child{border-right:0}.cf-color-picker .input-group .form-control:last-child,.cf-color-picker .input-group-addon:last-child,.cf-color-picker .input-group-btn:first-child>.btn-group:not(:first-child)>.btn,.cf-color-picker .input-group-btn:first-child>.btn:not(:first-child),.cf-color-picker .input-group-btn:last-child>.btn,.cf-color-picker .input-group-btn:last-child>.btn-group>.btn,.cf-color-picker .input-group-btn:last-child>.dropdown-toggle{border-bottom-left-radius:0;border-top-left-radius:0}.cf-color-picker .input-group-addon:last-child{border-left:0}.cf-color-picker .input-group-btn{position:relative;font-size:0;white-space:nowrap}.cf-color-picker .input-group-btn>.btn{position:relative}.cf-color-picker .input-group-btn>.btn+.btn{margin-left:-1px}.cf-color-picker .input-group-btn>.btn:active,.cf-color-picker .input-group-btn>.btn:focus,.cf-color-picker .input-group-btn>.btn:hover{z-index:2}.cf-color-picker .input-group-btn:first-child>.btn,.cf-color-picker .input-group-btn:first-child>.btn-group{margin-right:-1px}.cf-color-picker .input-group-btn:last-child>.btn,.cf-color-picker .input-group-btn:last-child>.btn-group{margin-left:-1px}.cf-color-picker .clearfix:after,.cf-color-picker .clearfix:before,.cf-color-picker .form-horizontal .form-group:after,.cf-color-picker .form-horizontal .form-group:before{content:" ";display:table}.cf-color-picker .clearfix:after,.cf-color-picker .form-horizontal .form-group:after{clear:both}.cf-color-picker .center-block{display:block;margin-left:auto;margin-right:auto}.cf-color-picker .pull-right{float:right!important}.cf-color-picker .pull-left{float:left!important}.cf-color-picker .hide{display:none!important}.cf-color-picker .show{display:block!important}.cf-color-picker .invisible{visibility:hidden}.cf-color-picker .text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.cf-color-picker .hidden{display:none!important;visibility:hidden!important}.cf-color-picker .affix{position:fixed}@-ms-viewport{width:device-width}.cf-color-picker .visible-lg,.cf-color-picker .visible-md,.cf-color-picker .visible-print,.cf-color-picker .visible-sm,.cf-color-picker .visible-xs{display:none!important}@media (max-width:767px){.cf-color-picker .visible-xs{display:block!important}.cf-color-picker table.visible-xs{display:table}.cf-color-picker tr.visible-xs{display:table-row!important}.cf-color-picker td.visible-xs,.cf-color-picker th.visible-xs{display:table-cell!important}}@media (min-width:768px) and (max-width:991px){.cf-color-picker .visible-sm{display:block!important}.cf-color-picker table.visible-sm{display:table}.cf-color-picker tr.visible-sm{display:table-row!important}.cf-color-picker td.visible-sm,.cf-color-picker th.visible-sm{display:table-cell!important}}@media (min-width:992px) and (max-width:1199px){.cf-color-picker .visible-md{display:block!important}.cf-color-picker table.visible-md{display:table}.cf-color-picker tr.visible-md{display:table-row!important}.cf-color-picker td.visible-md,.cf-color-picker th.visible-md{display:table-cell!important}}@media (min-width:1200px){.cf-color-picker .visible-lg{display:block!important}.cf-color-picker table.visible-lg{display:table}.cf-color-picker tr.visible-lg{display:table-row!important}.cf-color-picker td.visible-lg,.cf-color-picker th.visible-lg{display:table-cell!important}}@media (max-width:767px){.cf-color-picker .hidden-xs{display:none!important}}@media (min-width:768px) and (max-width:991px){.cf-color-picker .hidden-sm{display:none!important}}@media (min-width:992px) and (max-width:1199px){.cf-color-picker .hidden-md{display:none!important}}@media (min-width:1200px){.cf-color-picker .hidden-lg{display:none!important}}@media print{.cf-color-picker .visible-print{display:block!important}.cf-color-picker table.visible-print{display:table}.cf-color-picker tr.visible-print{display:table-row!important}.cf-color-picker td.visible-print,.cf-color-picker th.visible-print{display:table-cell!important}}@media print{.cf-color-picker .hidden-print{display:none!important}}.cf-color-picker .input-group{max-width:120px}
|
assets/js/admin.js
CHANGED
@@ -2,8 +2,8 @@ var baldrickTriggers, loop_loader;
|
|
2 |
|
3 |
jQuery(document).ready(function($){
|
4 |
var adminAJAX;
|
5 |
-
if( 'object'
|
6 |
-
adminAJAX = CF_ADMIN.adminAjax
|
7 |
}else{
|
8 |
//yolo
|
9 |
adminAJAX = ajaxurl;
|
@@ -130,6 +130,74 @@ jQuery(document).ready(function($){
|
|
130 |
}
|
131 |
});
|
132 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
133 |
});
|
134 |
|
135 |
/**
|
2 |
|
3 |
jQuery(document).ready(function($){
|
4 |
var adminAJAX;
|
5 |
+
if( 'object' === typeof CF_ADMIN ){
|
6 |
+
adminAJAX = CF_ADMIN.adminAjax;
|
7 |
}else{
|
8 |
//yolo
|
9 |
adminAJAX = ajaxurl;
|
130 |
}
|
131 |
});
|
132 |
|
133 |
+
|
134 |
+
/**
|
135 |
+
* Delete all entries saved in a form form Settings tab in the form
|
136 |
+
*
|
137 |
+
* @since 1.7.0
|
138 |
+
*/
|
139 |
+
//Display controls
|
140 |
+
$('#caldera-forms-delete-all-form-entries').click(function(e) {
|
141 |
+
e.preventDefault();
|
142 |
+
$('#caldera-forms-confirm-delete-all-form-entries').slideToggle("fast");
|
143 |
+
});
|
144 |
+
//No clicked
|
145 |
+
$('#caldera-forms-no-confirm-delete-all-form-entries').click(function(e) {
|
146 |
+
e.preventDefault();
|
147 |
+
$('#caldera-forms-confirm-delete-all-form-entries').slideToggle("fast");
|
148 |
+
});
|
149 |
+
//Yes clicked
|
150 |
+
$('#caldera-forms-yes-confirm-delete-all-form-entries').click(function(e) {
|
151 |
+
e.preventDefault();
|
152 |
+
|
153 |
+
var url = CF_ADMIN.rest.delete_entries;
|
154 |
+
|
155 |
+
var $spinner = jQuery( '#caldera-forms-delete-entries-spinner' );
|
156 |
+
$spinner.css({
|
157 |
+
visibility: 'visible',
|
158 |
+
float:'none'
|
159 |
+
});
|
160 |
+
|
161 |
+
wp.apiRequest({
|
162 |
+
url: url,
|
163 |
+
method: 'GET'
|
164 |
+
}).then(function (r) {
|
165 |
+
if( r.hasOwnProperty( 'message' ) ) {
|
166 |
+
if (r.deleted === true) {
|
167 |
+
$('#caldera-forms-label-delete-all-entries').append("<div class='caldera-forms-deleted'>" + r.message + "</div>");
|
168 |
+
setTimeout(function () {
|
169 |
+
$('.caldera-forms-deleted').remove();
|
170 |
+
}, 5000);
|
171 |
+
$('#caldera-forms-confirm-delete-all-form-entries').slideToggle("fast");
|
172 |
+
} else {
|
173 |
+
$('#caldera-forms-label-delete-all-entries').append("<div class='caldera-forms-not-deleted'>" + r.message + "</div>");
|
174 |
+
setTimeout(function () {
|
175 |
+
$('.caldera-forms-not-deleted').remove();
|
176 |
+
}, 5000);
|
177 |
+
$('#caldera-forms-confirm-delete-all-form-entries').slideToggle("fast");
|
178 |
+
}
|
179 |
+
}
|
180 |
+
$spinner.css({
|
181 |
+
visibility: 'hidden',
|
182 |
+
float:'none'
|
183 |
+
});
|
184 |
+
|
185 |
+
}).fail(function (r) {
|
186 |
+
if( r.responseJSON.hasOwnProperty( 'message' ) ) {
|
187 |
+
$('#caldera-forms-label-delete-all-entries').append("<div class='caldera-forms-not-deleted'>" + r.responseJSON.message + "</div>");
|
188 |
+
setTimeout(function () {
|
189 |
+
$('.caldera-forms-not-deleted').remove();
|
190 |
+
}, 5000);
|
191 |
+
$('#caldera-forms-confirm-delete-all-form-entries').slideToggle("fast");
|
192 |
+
}
|
193 |
+
$spinner.css({
|
194 |
+
visibility: 'hidden',
|
195 |
+
float:'none'
|
196 |
+
});
|
197 |
+
});
|
198 |
+
|
199 |
+
});
|
200 |
+
|
201 |
});
|
202 |
|
203 |
/**
|
assets/js/caldera-forms-front.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
/*! GENERATED SOURCE FILE caldera-forms - v1.
|
2 |
* Simple event bindings for form state
|
3 |
*
|
4 |
* In general, access through CFState.events() not directly.
|
1 |
+
/*! GENERATED SOURCE FILE caldera-forms - v1.7.0-b.1 - 2018-05-24 *//**
|
2 |
* Simple event bindings for form state
|
3 |
*
|
4 |
* In general, access through CFState.events() not directly.
|
assets/js/edit.js
CHANGED
@@ -117,6 +117,10 @@ jQuery(document).ready(function($){
|
|
117 |
if( data_fields.conditions ){
|
118 |
data_fields.config.conditional_groups = { conditions : data_fields.conditions };
|
119 |
}
|
|
|
|
|
|
|
|
|
120 |
$(el).data('cf_edit_nonce', data_fields.cf_edit_nonce);
|
121 |
$(el).data('_wp_http_referer', data_fields._wp_http_referer);
|
122 |
$(el).data('sender', 'ajax');
|
@@ -199,7 +203,6 @@ jQuery(document).ready(function($){
|
|
199 |
|
200 |
// remove not supported stuff
|
201 |
if(fieldtype_defaults[select.val() + '_nosupport']){
|
202 |
-
|
203 |
if(fieldtype_defaults[select.val() + '_nosupport'].indexOf('hide_label') >= 0){
|
204 |
parent.find('.hide-label-field').hide().find('.field-config').prop('checked', false);
|
205 |
}
|
@@ -261,6 +264,13 @@ jQuery(document).ready(function($){
|
|
261 |
}
|
262 |
});
|
263 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
264 |
}
|
265 |
|
266 |
function build_field_preview(id){
|
117 |
if( data_fields.conditions ){
|
118 |
data_fields.config.conditional_groups = { conditions : data_fields.conditions };
|
119 |
}
|
120 |
+
|
121 |
+
Object.keys(non_editor_fields).forEach(function (key) {
|
122 |
+
data_fields[key] = non_editor_fields[key];
|
123 |
+
});
|
124 |
$(el).data('cf_edit_nonce', data_fields.cf_edit_nonce);
|
125 |
$(el).data('_wp_http_referer', data_fields._wp_http_referer);
|
126 |
$(el).data('sender', 'ajax');
|
203 |
|
204 |
// remove not supported stuff
|
205 |
if(fieldtype_defaults[select.val() + '_nosupport']){
|
|
|
206 |
if(fieldtype_defaults[select.val() + '_nosupport'].indexOf('hide_label') >= 0){
|
207 |
parent.find('.hide-label-field').hide().find('.field-config').prop('checked', false);
|
208 |
}
|
264 |
}
|
265 |
});
|
266 |
}
|
267 |
+
|
268 |
+
if (['html', 'section_break'].indexOf(select.val()) >= 0) {
|
269 |
+
var $label = parent.find('.field-label');
|
270 |
+
if(!$label.val()) {
|
271 |
+
$label.val(select.val() + '__' + parent.find('.field-id').val()).trigger('change');
|
272 |
+
}
|
273 |
+
}
|
274 |
}
|
275 |
|
276 |
function build_field_preview(id){
|
assets/js/entry-viewer-2.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
/*! GENERATED SOURCE FILE caldera-forms - v1.
|
2 |
* API Client for Caldera Forms API for a single form
|
3 |
*
|
4 |
* @since 1.5.0
|
1 |
+
/*! GENERATED SOURCE FILE caldera-forms - v1.7.0-b.1 - 2018-05-24 *//**
|
2 |
* API Client for Caldera Forms API for a single form
|
3 |
*
|
4 |
* @since 1.5.0
|
assets/js/parsley.min.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
/*! GENERATED SOURCE FILE caldera-forms - v1.
|
2 |
* Parsley.js
|
3 |
* Version 2.8.1 - built Sat, Feb 3rd 2018, 2:27 pm
|
4 |
* http://parsleyjs.org
|
1 |
+
/*! GENERATED SOURCE FILE caldera-forms - v1.7.0-b.1 - 2018-05-24 *//*!
|
2 |
* Parsley.js
|
3 |
* Version 2.8.1 - built Sat, Feb 3rd 2018, 2:27 pm
|
4 |
* http://parsleyjs.org
|
assets/js/shortcode-insert.min.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
jQuery(function(e){if(e(".color-field").wpColorPicker({mode:"rgba"}),e("body").on("click","#caldera-forms-form-insert,#wp_fs_caldera-forms",function(t){t.preventDefault();var a=e(".caldera-forms-insert-modal");data=e(this).data("settings"),data&&(data.id&&e('.selected-form-shortcode[value="'+data.id+'"]').prop("checked",!0),data.modal&&(e(".set_cf_modal").prop("checked",!0),e(".modal-forms-setup").show()),data.type&&e(".modal_trigger_type").val(data.type),data.content&&e(".modal_trigger").val(data.content),data.width&&e(".modal_width").val(data.width),e(this).data("settings",{})),a.fadeIn(100)}),e("body").on("click",".caldera-modal-closer",function(t){t.preventDefault();var a=e(".caldera-forms-insert-modal");e("#calderaf_forms_shortcode_modal")[0].reset(),e(".modal-forms-setup").hide(),a.fadeOut(100)}),e("body").on("change",".set_cf_modal",function(t){var a=e(this);a.is(":checked")?e(".modal-forms-setup").show():e(".modal-forms-setup").hide()}),e("body").on("click",".caldera-form-shortcode-insert",function(t){t.preventDefault();var a,o=e(".selected-form-shortcode:checked"),d=e(".set_cf_modal").prop("checked"),r=e(".modal_trigger").val(),c=e(".modal_trigger_type").val(),i=e(".modal_width").val();if(o.length){var s="caldera_form";d&&(s="caldera_form_modal"),a="["+s+' id="'+o.val()+'"',d===!0&&"button"===c&&(a+=' type="'+c+'"'),i.length&&(a+=' width="'+i+'"'),a+="]",d&&(a+=r.length?r:o.parent().text(),a+="[/caldera_form_modal]"),e("#calderaf_forms_shortcode_modal")[0].reset(),e(".modal-forms-setup").hide(),o.prop("checked",!1),window.send_to_editor(a),e(".caldera-modal-closer").trigger("click")}}),"undefined"!=typeof wp&&"undefined"!=typeof wp.media){var t=wp.media;"function"==typeof wp.mce.views.register&&wp.mce.views.register("caldera_form",{template:t.template("editor-caldera-forms"),initialize:function(){this.fetch()},setLoader:function(){this.setContent('<div class="loading-placeholder"><div class="dashicons dashicons-update" style="color:#a3be5f;"></div><div class="wpview-loading"><ins style="background-color:#a3be5f;"></ins></div></div>')},fetch:function(){var t=this,a={post_id:e("#post_ID").val(),content:t.shortcode.content,atts:t.shortcode.attrs};wp.ajax.post("cf_get_form_preview",a).done(function(e){t.render(e.html)}).fail(function(e){t.render(e.html)})},edit:function(e){var t=this.shortcode.attrs.named;t.content=this.shortcode.content,jQuery("#caldera-forms-form-insert").data("settings",t).trigger("click")}})}});
|
|
assets/js/vue.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
/*! GENERATED SOURCE FILE caldera-forms - v1.
|
2 |
* Vue.js v2.1.6
|
3 |
* (c) 2014-2016 Evan You
|
4 |
* Released under the MIT License.
|
1 |
+
/*! GENERATED SOURCE FILE caldera-forms - v1.7.0-b.1 - 2018-05-24 *//*!
|
2 |
* Vue.js v2.1.6
|
3 |
* (c) 2014-2016 Evan You
|
4 |
* Released under the MIT License.
|
caldera-core.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
Plugin URI: https://CalderaForms.com
|
5 |
Description: Easy to use, grid based responsive form builder for creating simple to complex forms.
|
6 |
Author: Caldera Labs
|
7 |
-
Version: 1.
|
8 |
Author URI: http://CalderaLabs.org
|
9 |
Text Domain: caldera-forms
|
10 |
GitHub Plugin URI: https://github.com/CalderaWP/caldera-forms
|
@@ -12,139 +12,199 @@
|
|
12 |
|
13 |
|
14 |
// If this file is called directly, abort.
|
15 |
-
if (
|
16 |
-
|
17 |
}
|
18 |
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
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 |
// Admin & Admin Ajax stuff.
|
92 |
-
if (
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
}
|
97 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
98 |
|
99 |
-
/**
|
100 |
-
* Get the Caldera Forms Freemius instance
|
101 |
-
*
|
102 |
-
* @since 1.6.0
|
103 |
-
*
|
104 |
-
* @return Freemius
|
105 |
-
*/
|
106 |
-
function caldera_forms_freemius() {
|
107 |
-
global $caldera_forms_freemius;
|
108 |
-
if ( ! isset( $caldera_forms_freemius ) ) {
|
109 |
-
// Include Freemius SDK.
|
110 |
-
require_once CFCORE_PATH . 'includes/freemius/start.php';
|
111 |
-
$caldera_forms_freemius = fs_dynamic_init( array(
|
112 |
-
'id' => '1767',
|
113 |
-
'slug' => 'caldera-forms',
|
114 |
-
'type' => 'plugin',
|
115 |
-
'public_key' => 'pk_d8e6325777a98c1b3e0d8cdbfad1e',
|
116 |
-
'is_premium' => false,
|
117 |
-
'has_addons' => false,
|
118 |
-
'has_paid_plans' => false,
|
119 |
-
'menu' => array(
|
120 |
-
'slug' => 'caldera-forms',
|
121 |
-
'account' => false,
|
122 |
-
'support' => false,
|
123 |
-
'contact' => false,
|
124 |
-
),
|
125 |
-
) );
|
126 |
-
/**
|
127 |
-
* Runs after Freemius loads
|
128 |
-
*
|
129 |
-
* @since 1.6.0
|
130 |
-
*
|
131 |
-
* @param Freemius $caldera_forms_freemius
|
132 |
-
*/
|
133 |
-
do_action( 'caldera_forms_freemius_init', $caldera_forms_freemius );
|
134 |
-
}
|
135 |
-
return $caldera_forms_freemius;
|
136 |
}
|
137 |
|
138 |
-
//Load freemius
|
139 |
-
caldera_forms_freemius();
|
140 |
-
|
141 |
/**
|
142 |
-
*
|
143 |
*
|
144 |
-
* @since 1.
|
145 |
*
|
146 |
* @return string
|
147 |
*/
|
148 |
-
function
|
149 |
-
|
150 |
-
|
|
|
|
|
|
|
|
|
|
|
|
4 |
Plugin URI: https://CalderaForms.com
|
5 |
Description: Easy to use, grid based responsive form builder for creating simple to complex forms.
|
6 |
Author: Caldera Labs
|
7 |
+
Version: 1.7.0-b.1
|
8 |
Author URI: http://CalderaLabs.org
|
9 |
Text Domain: caldera-forms
|
10 |
GitHub Plugin URI: https://github.com/CalderaWP/caldera-forms
|
12 |
|
13 |
|
14 |
// If this file is called directly, abort.
|
15 |
+
if (!defined('WPINC')) {
|
16 |
+
die;
|
17 |
}
|
18 |
|
19 |
+
global $wp_version;
|
20 |
+
if (!version_compare(PHP_VERSION, '5.6.0', '>=')) {
|
21 |
+
function caldera_forms_php_version_nag()
|
22 |
+
{
|
23 |
+
?>
|
24 |
+
<div class="notice notice-error">
|
25 |
+
<p>
|
26 |
+
<?php _e('Your version of PHP is incompatible with Caldera Forms and can not be used.', 'caldera-forms'); ?>
|
27 |
+
<?php printf(' <a href="https://calderaforms.com/php?utm_source=wp-admin&utm_campaign=php_deprecated&utm_source=admin-nag" target="__blank">%s</a>',
|
28 |
+
esc_html__('Learn More', 'caldera-forms')
|
29 |
+
) ?></p>
|
30 |
+
</div>
|
31 |
+
<?php
|
32 |
+
}
|
33 |
+
|
34 |
+
add_shortcode('caldera_form', 'caldera_forms_fallback_shortcode');
|
35 |
+
add_shortcode('caldera_form_modal', 'caldera_forms_fallback_shortcode');
|
36 |
+
add_action('admin_notices', 'caldera_forms_php_version_nag');
|
37 |
+
} elseif (!version_compare($wp_version, '4.7.0', '>=')) {
|
38 |
+
function caldera_forms_wp_version_nag()
|
39 |
+
{
|
40 |
+
?>
|
41 |
+
<div class="notice notice-error">
|
42 |
+
<p>
|
43 |
+
<?php _e('Your version of WordPress is incompatible with Caldera Forms and can not be used.', 'caldera-forms'); ?>
|
44 |
+
</p>
|
45 |
+
</div>
|
46 |
+
<?php
|
47 |
+
}
|
48 |
+
|
49 |
+
add_shortcode('caldera_form', 'caldera_forms_fallback_shortcode');
|
50 |
+
add_shortcode('caldera_form_modal', 'caldera_forms_fallback_shortcode');
|
51 |
+
add_action('admin_notices', 'caldera_forms_wp_version_nag');
|
52 |
+
} else {
|
53 |
+
|
54 |
+
define('CFCORE_PATH', plugin_dir_path(__FILE__));
|
55 |
+
define('CFCORE_URL', plugin_dir_url(__FILE__));
|
56 |
+
define( 'CFCORE_VER', '1.7.0-b.1' );
|
57 |
+
define('CFCORE_EXTEND_URL', 'https://api.calderaforms.com/1.0/');
|
58 |
+
define('CFCORE_BASENAME', plugin_basename(__FILE__));
|
59 |
+
|
60 |
+
/**
|
61 |
+
* Caldera Forms DB version
|
62 |
+
*
|
63 |
+
* @since 1.3.4
|
64 |
+
*
|
65 |
+
* PLEASE keep this an integer
|
66 |
+
*/
|
67 |
+
define('CF_DB', 6);
|
68 |
+
|
69 |
+
// init internals of CF
|
70 |
+
include_once CFCORE_PATH . 'classes/core.php';
|
71 |
+
|
72 |
+
add_action('init', array('Caldera_Forms', 'init_cf_internal'));
|
73 |
+
// table builder
|
74 |
+
register_activation_hook(__FILE__, array('Caldera_Forms', 'activate_caldera_forms'));
|
75 |
+
|
76 |
+
|
77 |
+
// load system
|
78 |
+
add_action('plugins_loaded', 'caldera_forms_load', 0);
|
79 |
+
function caldera_forms_load()
|
80 |
+
{
|
81 |
+
include_once CFCORE_PATH . 'classes/autoloader.php';
|
82 |
+
include_once CFCORE_PATH . 'classes/widget.php';
|
83 |
+
Caldera_Forms_Autoloader::add_root('Caldera_Forms_DB', CFCORE_PATH . 'classes/db');
|
84 |
+
Caldera_Forms_Autoloader::add_root('Caldera_Forms_Entry', CFCORE_PATH . 'classes/entry');
|
85 |
+
Caldera_Forms_Autoloader::add_root('Caldera_Forms_Email', CFCORE_PATH . 'classes/email');
|
86 |
+
Caldera_Forms_Autoloader::add_root('Caldera_Forms_Admin', CFCORE_PATH . 'classes/admin');
|
87 |
+
Caldera_Forms_Autoloader::add_root('Caldera_Forms_Render', CFCORE_PATH . 'classes/render');
|
88 |
+
Caldera_Forms_Autoloader::add_root('Caldera_Forms_Sync', CFCORE_PATH . 'classes/sync');
|
89 |
+
Caldera_Forms_Autoloader::add_root('Caldera_Forms_CSV', CFCORE_PATH . 'classes/csv');
|
90 |
+
Caldera_Forms_Autoloader::add_root('Caldera_Forms_Processor_Interface', CFCORE_PATH . 'processors/classes/interfaces');
|
91 |
+
Caldera_Forms_Autoloader::add_root('Caldera_Forms_API', CFCORE_PATH . 'classes/api');
|
92 |
+
Caldera_Forms_Autoloader::add_root('Caldera_Forms_Field', CFCORE_PATH . 'classes/field');
|
93 |
+
Caldera_Forms_Autoloader::add_root('Caldera_Forms_Magic', CFCORE_PATH . 'classes/magic');
|
94 |
+
Caldera_Forms_Autoloader::add_root('Caldera_Forms_Processor', CFCORE_PATH . 'processors/classes');
|
95 |
+
Caldera_Forms_Autoloader::add_root('Caldera_Forms_Shortcode', CFCORE_PATH . 'classes/shortcode');
|
96 |
+
Caldera_Forms_Autoloader::add_root('Caldera_Forms_CDN', CFCORE_PATH . 'classes/cdn');
|
97 |
+
Caldera_Forms_Autoloader::add_root('Caldera_Forms_Settings', CFCORE_PATH . 'classes/settings');
|
98 |
+
Caldera_Forms_Autoloader::add_root('Caldera_Forms_Import', CFCORE_PATH . 'classes/import');
|
99 |
+
Caldera_Forms_Autoloader::add_root('Caldera_Forms_Query', CFCORE_PATH . 'classes/query');
|
100 |
+
Caldera_Forms_Autoloader::add_root('Caldera_Forms', CFCORE_PATH . 'classes');
|
101 |
+
Caldera_Forms_Autoloader::register();
|
102 |
+
|
103 |
+
|
104 |
+
// includes
|
105 |
+
include_once CFCORE_PATH . 'includes/ajax.php';
|
106 |
+
include_once CFCORE_PATH . 'includes/field_processors.php';
|
107 |
+
include_once CFCORE_PATH . 'includes/custom_field_class.php';
|
108 |
+
include_once CFCORE_PATH . 'includes/filter_addon_plugins.php';
|
109 |
+
include_once CFCORE_PATH . 'includes/compat.php';
|
110 |
+
include_once CFCORE_PATH . 'processors/functions.php';
|
111 |
+
include_once CFCORE_PATH . 'includes/functions.php';
|
112 |
+
include_once CFCORE_PATH . 'ui/blocks/init.php';
|
113 |
+
include_once CFCORE_PATH . 'vendor/autoload.php';
|
114 |
+
include_once CFCORE_PATH . 'includes/cf-pro-client/cf-pro-init.php';
|
115 |
+
|
116 |
+
/**
|
117 |
+
* Runs after all of the includes and autoload setup is done in Caldera Forms core
|
118 |
+
*
|
119 |
+
* @since 1.3.5.3
|
120 |
+
*/
|
121 |
+
do_action('caldera_forms_includes_complete');
|
122 |
+
caldera_forms_freemius()->add_filter('plugin_icon', 'caldera_forms_freemius_icon_path');
|
123 |
+
}
|
124 |
+
|
125 |
+
add_action('plugins_loaded', array('Caldera_Forms', 'get_instance'));
|
126 |
+
add_action('plugins_loaded', array('Caldera_Forms_Tracking', 'get_instance'));
|
127 |
|
128 |
|
129 |
// Admin & Admin Ajax stuff.
|
130 |
+
if (is_admin() || defined('DOING_AJAX')) {
|
131 |
+
add_action('plugins_loaded', array('Caldera_Forms_Admin', 'get_instance'));
|
132 |
+
add_action('plugins_loaded', array('Caldera_Forms_Support', 'get_instance'));
|
133 |
+
include_once CFCORE_PATH . 'includes/plugin-page-banner.php';
|
134 |
+
}
|
135 |
+
|
136 |
+
|
137 |
+
/**
|
138 |
+
* Get the Caldera Forms Freemius instance
|
139 |
+
*
|
140 |
+
* @since 1.6.0
|
141 |
+
*
|
142 |
+
* @return Freemius
|
143 |
+
* @throws Freemius_Exception
|
144 |
+
*/
|
145 |
+
function caldera_forms_freemius()
|
146 |
+
{
|
147 |
+
global $caldera_forms_freemius;
|
148 |
+
if (!isset($caldera_forms_freemius)) {
|
149 |
+
// Include Freemius SDK.
|
150 |
+
require_once CFCORE_PATH . 'includes/freemius/start.php';
|
151 |
+
$caldera_forms_freemius = fs_dynamic_init(array(
|
152 |
+
'id' => '1767',
|
153 |
+
'slug' => 'caldera-forms',
|
154 |
+
'type' => 'plugin',
|
155 |
+
'public_key' => 'pk_d8e6325777a98c1b3e0d8cdbfad1e',
|
156 |
+
'is_premium' => false,
|
157 |
+
'has_addons' => false,
|
158 |
+
'has_paid_plans' => false,
|
159 |
+
'menu' => array(
|
160 |
+
'slug' => 'caldera-forms',
|
161 |
+
'account' => false,
|
162 |
+
'support' => false,
|
163 |
+
'contact' => false,
|
164 |
+
),
|
165 |
+
));
|
166 |
+
/**
|
167 |
+
* Runs after Freemius loads
|
168 |
+
*
|
169 |
+
* @since 1.6.0
|
170 |
+
*
|
171 |
+
* @param Freemius $caldera_forms_freemius
|
172 |
+
*/
|
173 |
+
do_action('caldera_forms_freemius_init', $caldera_forms_freemius);
|
174 |
+
}
|
175 |
+
return $caldera_forms_freemius;
|
176 |
+
}
|
177 |
+
|
178 |
+
//Load freemius
|
179 |
+
caldera_forms_freemius();
|
180 |
+
|
181 |
+
/**
|
182 |
+
* Get the path for the icon used by Caldera Forms
|
183 |
+
*
|
184 |
+
* @since 1.6.0
|
185 |
+
*
|
186 |
+
* @return string
|
187 |
+
*/
|
188 |
+
function caldera_forms_freemius_icon_path()
|
189 |
+
{
|
190 |
+
return CFCORE_PATH . 'assets/build/images/new-icon.png';
|
191 |
+
}
|
192 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
193 |
}
|
194 |
|
|
|
|
|
|
|
195 |
/**
|
196 |
+
* Shortcode handler to be used when Caldera Forms can not be loaded
|
197 |
*
|
198 |
+
* @since 1.7.0
|
199 |
*
|
200 |
* @return string
|
201 |
*/
|
202 |
+
function caldera_forms_fallback_shortcode()
|
203 |
+
{
|
204 |
+
if (current_user_can('edit_posts')) {
|
205 |
+
return esc_html__('Your version of WordPress or PHP is incompatible with Caldera Forms.', 'caldera-forms');
|
206 |
+
}
|
207 |
+
|
208 |
+
return esc_html__('Form could not be loaded. Contact the site administrator.', 'caldera-forms');
|
209 |
+
|
210 |
+
}
|
classes/admin.php
CHANGED
@@ -110,7 +110,7 @@ class Caldera_Forms_Admin {
|
|
110 |
|
111 |
// Add admin scritps and styles
|
112 |
add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_admin_stylescripts' ), 1 );
|
113 |
-
|
114 |
// add element & fields filters
|
115 |
add_filter('caldera_forms_get_panel_extensions', array( $this, 'get_panel_extensions'), 1);
|
116 |
add_filter('caldera_forms_entry_viewer_buttons', array( $this, 'set_viewer_buttons'),10, 4);
|
@@ -158,6 +158,8 @@ class Caldera_Forms_Admin {
|
|
158 |
|
159 |
add_action( 'caldera_forms_admin_init', array( __CLASS__ , 'init_privacy_settings' ) );
|
160 |
|
|
|
|
|
161 |
/**
|
162 |
* Runs after Caldera Forms admin is initialized
|
163 |
*
|
@@ -305,9 +307,9 @@ class Caldera_Forms_Admin {
|
|
305 |
|
306 |
echo '<label class="caldera-grid cf-form-template' . $selected_template . '">';
|
307 |
echo '<small>' . $template['name'] . '</small>';
|
308 |
-
|
309 |
echo '<input type="radio" name="template" value="' . $template_slug . '" class="cf-template-select"' . $selected_field . '>';
|
310 |
-
|
311 |
|
312 |
// check a layout exists
|
313 |
if( !empty( $template['preview'] ) ){
|
@@ -316,7 +318,7 @@ class Caldera_Forms_Admin {
|
|
316 |
}
|
317 |
if( empty( $template['template']['layout_grid'] ) || empty( $template['template']['layout_grid']['structure'] ) || empty( $template['template']['layout_grid']['fields'] ) ){
|
318 |
echo '<p class="description" style="padding: 50px 0px; text-align: center;">' . esc_html__( 'Preview not available', 'caldera-forms' ) . '</p></label>';
|
319 |
-
continue;
|
320 |
}
|
321 |
|
322 |
$struct = explode('|', $template['template']['layout_grid']['structure'] );
|
@@ -348,10 +350,10 @@ class Caldera_Forms_Admin {
|
|
348 |
echo '</div>';
|
349 |
echo '</div>';
|
350 |
}
|
351 |
-
|
352 |
echo '</div>';
|
353 |
}
|
354 |
-
|
355 |
echo '</label>';
|
356 |
// unset selection
|
357 |
$selected_field = null;
|
@@ -372,7 +374,7 @@ class Caldera_Forms_Admin {
|
|
372 |
</div>
|
373 |
|
374 |
<button type="button" class="cf-change-template-button"><span class="dashicons dashicons-arrow-left-alt"></span> <?php echo esc_html__( 'Change Template', 'caldera-forms' ); ?></button>
|
375 |
-
<button type="button" class="cf-create-form-button ajax-trigger"
|
376 |
data-action="create_form"
|
377 |
data-active-class="disabled"
|
378 |
data-load-class="disabled"
|
@@ -696,9 +698,16 @@ class Caldera_Forms_Admin {
|
|
696 |
/**
|
697 |
* Insert shortcode media button
|
698 |
*
|
|
|
699 |
*
|
|
|
|
|
|
|
700 |
*/
|
701 |
-
function shortcode_insert_button(){
|
|
|
|
|
|
|
702 |
global $post;
|
703 |
if(!empty($post)){
|
704 |
echo "<a id=\"caldera-forms-form-insert\" title=\"". esc_attr__( 'Add Form to Page', 'caldera-forms' ) . "\" class=\"button caldera-forms-insert-button\" href=\"#inst\">\n";
|
@@ -706,6 +715,8 @@ class Caldera_Forms_Admin {
|
|
706 |
echo "</a>\n";
|
707 |
}
|
708 |
}
|
|
|
|
|
709 |
function shortcode_insert_button_fs($buttons){
|
710 |
|
711 |
$buttons['caldera-forms'] = array(
|
@@ -841,7 +852,7 @@ class Caldera_Forms_Admin {
|
|
841 |
$field_labels = array();
|
842 |
$backup_labels = array();
|
843 |
$selects = array();
|
844 |
-
|
845 |
|
846 |
$fields = array();
|
847 |
if ( ! empty( $form[ 'fields' ] ) ) {
|
@@ -1197,7 +1208,7 @@ class Caldera_Forms_Admin {
|
|
1197 |
}
|
1198 |
|
1199 |
Caldera_Forms_Admin_Assets::panels();
|
1200 |
-
|
1201 |
}
|
1202 |
|
1203 |
/**
|
@@ -1474,7 +1485,7 @@ class Caldera_Forms_Admin {
|
|
1474 |
), $form );
|
1475 |
$data = $csv_data[ 'data' ];
|
1476 |
$headers = $csv_data[ 'headers' ];
|
1477 |
-
|
1478 |
fputcsv($df, $headers, $delimiter);
|
1479 |
foreach($data as $row){
|
1480 |
$csvrow = array();
|
@@ -2011,16 +2022,82 @@ class Caldera_Forms_Admin {
|
|
2011 |
*
|
2012 |
* @uses "caldera_forms_admin_init" action
|
2013 |
*/
|
2014 |
-
|
2015 |
-
|
2016 |
-
|
2017 |
-
|
2018 |
-
|
2019 |
-
|
2020 |
-
|
|
|
2021 |
}
|
2022 |
|
2023 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024 |
|
2025 |
}
|
2026 |
|
110 |
|
111 |
// Add admin scritps and styles
|
112 |
add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_admin_stylescripts' ), 1 );
|
113 |
+
|
114 |
// add element & fields filters
|
115 |
add_filter('caldera_forms_get_panel_extensions', array( $this, 'get_panel_extensions'), 1);
|
116 |
add_filter('caldera_forms_entry_viewer_buttons', array( $this, 'set_viewer_buttons'),10, 4);
|
158 |
|
159 |
add_action( 'caldera_forms_admin_init', array( __CLASS__ , 'init_privacy_settings' ) );
|
160 |
|
161 |
+
add_action( 'caldera_forms_admin_init', array( $this, 'add_suggested_privacy_content' ), 35 );
|
162 |
+
|
163 |
/**
|
164 |
* Runs after Caldera Forms admin is initialized
|
165 |
*
|
307 |
|
308 |
echo '<label class="caldera-grid cf-form-template' . $selected_template . '">';
|
309 |
echo '<small>' . $template['name'] . '</small>';
|
310 |
+
|
311 |
echo '<input type="radio" name="template" value="' . $template_slug . '" class="cf-template-select"' . $selected_field . '>';
|
312 |
+
|
313 |
|
314 |
// check a layout exists
|
315 |
if( !empty( $template['preview'] ) ){
|
318 |
}
|
319 |
if( empty( $template['template']['layout_grid'] ) || empty( $template['template']['layout_grid']['structure'] ) || empty( $template['template']['layout_grid']['fields'] ) ){
|
320 |
echo '<p class="description" style="padding: 50px 0px; text-align: center;">' . esc_html__( 'Preview not available', 'caldera-forms' ) . '</p></label>';
|
321 |
+
continue;
|
322 |
}
|
323 |
|
324 |
$struct = explode('|', $template['template']['layout_grid']['structure'] );
|
350 |
echo '</div>';
|
351 |
echo '</div>';
|
352 |
}
|
353 |
+
|
354 |
echo '</div>';
|
355 |
}
|
356 |
+
|
357 |
echo '</label>';
|
358 |
// unset selection
|
359 |
$selected_field = null;
|
374 |
</div>
|
375 |
|
376 |
<button type="button" class="cf-change-template-button"><span class="dashicons dashicons-arrow-left-alt"></span> <?php echo esc_html__( 'Change Template', 'caldera-forms' ); ?></button>
|
377 |
+
<button type="button" class="cf-create-form-button ajax-trigger"
|
378 |
data-action="create_form"
|
379 |
data-active-class="disabled"
|
380 |
data-load-class="disabled"
|
698 |
/**
|
699 |
* Insert shortcode media button
|
700 |
*
|
701 |
+
* Add shortcode insert button in classic editor
|
702 |
*
|
703 |
+
* Function is intentionally not static
|
704 |
+
*
|
705 |
+
* @since unknown
|
706 |
*/
|
707 |
+
public function shortcode_insert_button(){
|
708 |
+
if( Caldera_Forms_Admin_Assets::is_woocommerce_page() ){
|
709 |
+
return;
|
710 |
+
}
|
711 |
global $post;
|
712 |
if(!empty($post)){
|
713 |
echo "<a id=\"caldera-forms-form-insert\" title=\"". esc_attr__( 'Add Form to Page', 'caldera-forms' ) . "\" class=\"button caldera-forms-insert-button\" href=\"#inst\">\n";
|
715 |
echo "</a>\n";
|
716 |
}
|
717 |
}
|
718 |
+
|
719 |
+
|
720 |
function shortcode_insert_button_fs($buttons){
|
721 |
|
722 |
$buttons['caldera-forms'] = array(
|
852 |
$field_labels = array();
|
853 |
$backup_labels = array();
|
854 |
$selects = array();
|
855 |
+
|
856 |
|
857 |
$fields = array();
|
858 |
if ( ! empty( $form[ 'fields' ] ) ) {
|
1208 |
}
|
1209 |
|
1210 |
Caldera_Forms_Admin_Assets::panels();
|
1211 |
+
|
1212 |
}
|
1213 |
|
1214 |
/**
|
1485 |
), $form );
|
1486 |
$data = $csv_data[ 'data' ];
|
1487 |
$headers = $csv_data[ 'headers' ];
|
1488 |
+
|
1489 |
fputcsv($df, $headers, $delimiter);
|
1490 |
foreach($data as $row){
|
1491 |
$csvrow = array();
|
2022 |
*
|
2023 |
* @uses "caldera_forms_admin_init" action
|
2024 |
*/
|
2025 |
+
public static function init_privacy_settings()
|
2026 |
+
{
|
2027 |
+
if (self::is_edit()) {
|
2028 |
+
$form = Caldera_Forms_Forms::get_form(caldera_forms_very_safe_string($_GET[self::EDIT_KEY]));
|
2029 |
+
if (is_array($form) && isset($form['fields'])) {
|
2030 |
+
$privacy = new Caldera_Forms_Admin_Privacy($form);
|
2031 |
+
add_action('caldera_forms_field_wrapper_before_field_setup', array($privacy, 'add_personally_identifying_question'), 5, 3);
|
2032 |
+
}
|
2033 |
}
|
2034 |
|
2035 |
+
Caldera_Forms_Admin_Factory::menu_page('privacy', __('Privacy Settings', 'caldera-forms'), '<div id="caldera-forms-privacy-settings"></div>', [
|
2036 |
+
'scripts' => [
|
2037 |
+
'privacy',
|
2038 |
+
'admin',
|
2039 |
+
|
2040 |
+
],
|
2041 |
+
'styles' => [
|
2042 |
+
'editor-grid'
|
2043 |
+
]
|
2044 |
+
]);
|
2045 |
+
|
2046 |
+
}
|
2047 |
+
|
2048 |
+
|
2049 |
+
/**
|
2050 |
+
* Return the default suggested privacy policy content.
|
2051 |
+
*
|
2052 |
+
* @since 1.7.0
|
2053 |
+
*
|
2054 |
+
* @return string The default policy content.
|
2055 |
+
*/
|
2056 |
+
protected static function core_privacy_content() {
|
2057 |
+
return
|
2058 |
+
'<h2>' . esc_html__( 'Caldera Forms: Data Collection', 'caldera-forms') . '</h2>' .
|
2059 |
+
'<em>' . esc_html__( 'Suggested Text (if you have entry tracking enabled) -', 'caldera-forms' ) . '</em>' .
|
2060 |
+
'<p>' . esc_html__( 'Caldera Forms stores a record of all form submissions. Your data may be deleted by the site administrator. You may request a report of saved data related to your email address.', 'caldera-forms' ) . '</p>' .
|
2061 |
+
'<em>' . esc_html__( 'Suggested Text (if you do not have entry tracking enabled) -', 'caldera-forms' ) . '</em>' .
|
2062 |
+
'<p>' . esc_html__( 'Caldera Forms stores data only briefly for each submission. Uploaded media files may remain on the server' ) . '</p>' .
|
2063 |
+
'<em>' . esc_html__( 'Suggested Text (if you use add-ons that interact with third party services) -', 'caldera-forms' ) . '</em>' .
|
2064 |
+
'<p>' . esc_html__( 'Some data may be shared with other services including [list services such as MailChimp, PayPal]', 'caldera-forms' ) . '</p>';
|
2065 |
+
}
|
2066 |
+
|
2067 |
+
/**
|
2068 |
+
* Return the default suggested privacy policy content for Caldera Forms Pro.
|
2069 |
+
*
|
2070 |
+
* @since 1.7.0
|
2071 |
+
*
|
2072 |
+
* @return string The default policy content.
|
2073 |
+
*/
|
2074 |
+
protected static function pro_privacy_content() {
|
2075 |
+
return
|
2076 |
+
'<h2>' . esc_html__( 'Caldera Forms Pro: Data Collection', 'caldera-forms') . '</h2>' .
|
2077 |
+
'<p>' . esc_html__( 'This site uses a third-party service to deliver some emails.', 'caldera-forms' ) . '</p>' .
|
2078 |
+
'<p>' . esc_html__( 'This data will be stored on servers controlled by CalderaWP LLC, the makers of Caldera Forms, and operated by Linode and Amazon Web Services. Meta data about emails will be stored by SendGrid and Amazon Web Services', 'caldera-forms' ) . '</p>';
|
2079 |
+
'<p>' . esc_html__( 'If you request that personal data shared with this site is deleted, the corresponding data shared with CalderaWP will also be deleted when the request is fulfilled.', 'caldera-forms' ) . '</p>';
|
2080 |
+
}
|
2081 |
+
|
2082 |
+
|
2083 |
+
|
2084 |
+
/**
|
2085 |
+
* Add the suggested privacy policy text to the policy postbox.
|
2086 |
+
*
|
2087 |
+
* @uses "caldera_forms_admin_init" action
|
2088 |
+
*
|
2089 |
+
* @since 1.7.0
|
2090 |
+
*/
|
2091 |
+
public static function add_suggested_privacy_content() {
|
2092 |
+
if( function_exists( 'wp_add_privacy_policy_content' ) ){
|
2093 |
+
wp_add_privacy_policy_content( esc_html__( 'Caldera Forms', 'caldera-forms' ), self::core_privacy_content() );
|
2094 |
+
if ( caldera_forms_pro_is_active() ) {
|
2095 |
+
wp_add_privacy_policy_content(esc_html__('Caldera Forms Pro', 'caldera-forms'), self::pro_privacy_content());
|
2096 |
+
}
|
2097 |
+
}
|
2098 |
+
}
|
2099 |
+
|
2100 |
+
|
2101 |
|
2102 |
}
|
2103 |
|
classes/admin/assets.php
CHANGED
@@ -17,6 +17,9 @@ class Caldera_Forms_Admin_Assets {
|
|
17 |
* @since 1.5.0
|
18 |
*/
|
19 |
public static function post_editor(){
|
|
|
|
|
|
|
20 |
self::maybe_register_all_admin();
|
21 |
wp_enqueue_style( 'wp-color-picker' );
|
22 |
wp_enqueue_script( 'wp-color-picker' );
|
@@ -105,6 +108,24 @@ class Caldera_Forms_Admin_Assets {
|
|
105 |
do_action( 'caldera_forms_admin_assets_scripts_registered' );
|
106 |
}
|
107 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
108 |
/**
|
109 |
* Register all styles for Caldera Forms admin
|
110 |
*
|
@@ -229,7 +250,7 @@ class Caldera_Forms_Admin_Assets {
|
|
229 |
*
|
230 |
* @since 1.5.0
|
231 |
*/
|
232 |
-
|
233 |
$front = false;
|
234 |
if( ! did_action( 'caldera_forms_admin_assets_styles_registered' ) ){
|
235 |
Caldera_Forms_Render_Assets::register();
|
@@ -288,9 +309,10 @@ class Caldera_Forms_Admin_Assets {
|
|
288 |
$data = array_merge($data, $api_config->toArray());
|
289 |
|
290 |
if (Caldera_Forms_Admin::is_edit()) {
|
291 |
-
|
292 |
-
|
293 |
-
|
|
|
294 |
}
|
295 |
return $data;
|
296 |
}
|
17 |
* @since 1.5.0
|
18 |
*/
|
19 |
public static function post_editor(){
|
20 |
+
if( ! static::is_woocommerce_page() ){
|
21 |
+
return;
|
22 |
+
}
|
23 |
self::maybe_register_all_admin();
|
24 |
wp_enqueue_style( 'wp-color-picker' );
|
25 |
wp_enqueue_script( 'wp-color-picker' );
|
108 |
do_action( 'caldera_forms_admin_assets_scripts_registered' );
|
109 |
}
|
110 |
|
111 |
+
|
112 |
+
/**
|
113 |
+
* Checks if current page is a WooCommerce admin page
|
114 |
+
*
|
115 |
+
* Will return false if WooCommerce is not active
|
116 |
+
*
|
117 |
+
* @since 1.7.0
|
118 |
+
*
|
119 |
+
* @return bool
|
120 |
+
*/
|
121 |
+
public static function is_woocommerce_page(){
|
122 |
+
if( ! function_exists( 'wc_get_screen_ids' ) ){
|
123 |
+
return false;
|
124 |
+
}
|
125 |
+
$current_screen = get_current_screen();
|
126 |
+
return is_object( $current_screen ) && in_array( $current_screen->id, wc_get_screen_ids() );
|
127 |
+
}
|
128 |
+
|
129 |
/**
|
130 |
* Register all styles for Caldera Forms admin
|
131 |
*
|
250 |
*
|
251 |
* @since 1.5.0
|
252 |
*/
|
253 |
+
public static function maybe_register_all_admin(){
|
254 |
$front = false;
|
255 |
if( ! did_action( 'caldera_forms_admin_assets_styles_registered' ) ){
|
256 |
Caldera_Forms_Render_Assets::register();
|
309 |
$data = array_merge($data, $api_config->toArray());
|
310 |
|
311 |
if (Caldera_Forms_Admin::is_edit()) {
|
312 |
+
$form_id = trim($_GET[Caldera_Forms_Admin::EDIT_KEY]);
|
313 |
+
$data['rest']['form'] = esc_url_raw(Caldera_Forms_API_Util::url('forms/' . $form_id, true));
|
314 |
+
$data['rest']['revisions'] = esc_url_raw(Caldera_Forms_API_Util::url('forms/' . $form_id . '/revisions', true));
|
315 |
+
$data['rest']['delete_entries'] = esc_url_raw(Caldera_Forms_API_Util::url('entries/' . $form_id . '/delete', true));
|
316 |
}
|
317 |
return $data;
|
318 |
}
|
classes/admin/factory.php
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
|
4 |
+
class Caldera_Forms_Admin_Factory
|
5 |
+
{
|
6 |
+
/*
|
7 |
+
* Add a menu page
|
8 |
+
* @param string $page_postfix
|
9 |
+
* @param string $menu_label
|
10 |
+
* @param string|callable $render
|
11 |
+
* @param array $assets
|
12 |
+
* @param null|string $menu_icon
|
13 |
+
*/
|
14 |
+
public static function menu_page($page_postfix, $menu_label, $render, array $assets = [], $menu_icon = null)
|
15 |
+
{
|
16 |
+
$page = new Caldera_Forms_Admin_Page($page_postfix, $menu_label, $render, $assets, $menu_icon);
|
17 |
+
add_action('admin_menu', [$page, 'display']);
|
18 |
+
}
|
19 |
+
}
|
classes/admin/page.php
ADDED
@@ -0,0 +1,170 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
|
4 |
+
class Caldera_Forms_Admin_Page
|
5 |
+
{
|
6 |
+
|
7 |
+
/**
|
8 |
+
* Name of dashicon for menu
|
9 |
+
*
|
10 |
+
* @since 1.7.0
|
11 |
+
*
|
12 |
+
* @var string
|
13 |
+
*/
|
14 |
+
protected $assets;
|
15 |
+
|
16 |
+
/**
|
17 |
+
* Used to form menu slug `caldera-forms-$page_postfix`
|
18 |
+
*
|
19 |
+
* @since 1.7.0
|
20 |
+
*
|
21 |
+
* @var string
|
22 |
+
*/
|
23 |
+
protected $page_postfix;
|
24 |
+
|
25 |
+
/**
|
26 |
+
* String to render in admin or callback function to create that string.
|
27 |
+
*
|
28 |
+
* @since 1.7.0
|
29 |
+
*
|
30 |
+
* @var string|callable
|
31 |
+
*/
|
32 |
+
protected $render;
|
33 |
+
|
34 |
+
/**
|
35 |
+
* Name of dashicon for menu
|
36 |
+
*
|
37 |
+
* @since 1.7.0
|
38 |
+
*
|
39 |
+
* @var string
|
40 |
+
*/
|
41 |
+
protected $menu_label;
|
42 |
+
|
43 |
+
/**
|
44 |
+
* Name of dashicon for menu
|
45 |
+
*
|
46 |
+
* @since 1.7.0
|
47 |
+
*
|
48 |
+
* @var string
|
49 |
+
*/
|
50 |
+
protected $menu_icon;
|
51 |
+
|
52 |
+
/**
|
53 |
+
* Caldera_Forms_Admin_Page constructor.
|
54 |
+
*
|
55 |
+
* @since 1.7.0
|
56 |
+
*
|
57 |
+
* @param string $page_postfix Used to form menu slug `caldera-forms-$page_postfix`
|
58 |
+
* @param string $menu_label The label to use in the menu
|
59 |
+
* @param string|callable $render String to render in admin or callback function to create that string.
|
60 |
+
* @param array $assets List of handles for scripts and styles to enqueue.
|
61 |
+
* @param null|string $menu_icon Name of dashicon for menu
|
62 |
+
*/
|
63 |
+
public function __construct($page_postfix, $menu_label, $render, array $assets = [], $menu_icon = null)
|
64 |
+
{
|
65 |
+
$this->page_postfix = $this->page_prefix() . $page_postfix;
|
66 |
+
$this->menu_label = $menu_label;
|
67 |
+
$this->menu_icon = !$menu_icon ? 'admin-page' : trim(str_replace('dashicons-', '', $menu_icon));
|
68 |
+
$this->assets = wp_parse_args($assets, [
|
69 |
+
'script' => [],
|
70 |
+
'styles' => []
|
71 |
+
]);
|
72 |
+
|
73 |
+
$this->render = $render;
|
74 |
+
}
|
75 |
+
|
76 |
+
/**
|
77 |
+
* Get the page prefix for this menu
|
78 |
+
*
|
79 |
+
* @since 1.7.0
|
80 |
+
*
|
81 |
+
* @return string
|
82 |
+
*/
|
83 |
+
public function get_page_postfix()
|
84 |
+
{
|
85 |
+
return str_replace($this->page_prefix(), '', $this->page_postfix);
|
86 |
+
}
|
87 |
+
|
88 |
+
/**
|
89 |
+
* Create admin page view
|
90 |
+
*
|
91 |
+
* @since 1.7.0
|
92 |
+
*/
|
93 |
+
public function display()
|
94 |
+
{
|
95 |
+
$label = sprintf(
|
96 |
+
'<span class="caldera-forms-menu-dashicon"><span class="dashicons dashicons-%s"></span>%s</span>', esc_attr($this->menu_icon), $this->menu_label);
|
97 |
+
|
98 |
+
add_submenu_page(
|
99 |
+
\Caldera_Forms::PLUGIN_SLUG,
|
100 |
+
$this->menu_label,
|
101 |
+
$label,
|
102 |
+
'manage_options',
|
103 |
+
$this->page_postfix,
|
104 |
+
[$this, 'render']
|
105 |
+
);
|
106 |
+
}
|
107 |
+
|
108 |
+
/**
|
109 |
+
* Render admin page view
|
110 |
+
*
|
111 |
+
* @since 1.7.0
|
112 |
+
*/
|
113 |
+
public function render()
|
114 |
+
{
|
115 |
+
|
116 |
+
$this->enqueue_assets();
|
117 |
+
$handle = !empty($this->assets['scripts']) && isset($this->assets['scripts'][0]) ? $this->assets['scripts'][0] : 'admin';
|
118 |
+
caldera_forms_print_cf_forms_var($handle);
|
119 |
+
wp_enqueue_script('wp-api-request');
|
120 |
+
Caldera_Forms_Admin_Assets::set_cf_admin(Caldera_Forms_Render_Assets::make_slug($handle));
|
121 |
+
if (is_callable($this->render)) {
|
122 |
+
call_user_func($this->render);
|
123 |
+
} else {
|
124 |
+
echo $this->render;
|
125 |
+
}
|
126 |
+
|
127 |
+
/**
|
128 |
+
* Runs after the HTML for an admin client is outputted
|
129 |
+
*
|
130 |
+
* @since 1.7.0
|
131 |
+
*
|
132 |
+
* @param Caldera_Forms_Admin_Page $page
|
133 |
+
*/
|
134 |
+
do_action('caldera_forms_client_element_rendered', $this);
|
135 |
+
|
136 |
+
}
|
137 |
+
|
138 |
+
/**
|
139 |
+
* Enqueue assets for this page
|
140 |
+
*
|
141 |
+
* @since 1.7.0
|
142 |
+
*/
|
143 |
+
public function enqueue_assets()
|
144 |
+
{
|
145 |
+
|
146 |
+
if (!empty($this->assets['scripts'])) {
|
147 |
+
foreach ($this->assets['scripts'] as $handle) {
|
148 |
+
Caldera_Forms_Render_Assets::enqueue_script($handle);
|
149 |
+
}
|
150 |
+
}
|
151 |
+
|
152 |
+
if (!empty($this->assets['styles'])) {
|
153 |
+
foreach ($this->assets['styles'] as $handle) {
|
154 |
+
Caldera_Forms_Render_Assets::enqueue_style($handle);
|
155 |
+
}
|
156 |
+
}
|
157 |
+
|
158 |
+
Caldera_Forms_Admin_Assets::enqueue_style('editor-grid');
|
159 |
+
Caldera_Forms_Admin_Assets::enqueue_style('admin');
|
160 |
+
}
|
161 |
+
|
162 |
+
/**
|
163 |
+
* @return string
|
164 |
+
*/
|
165 |
+
private function page_prefix()
|
166 |
+
{
|
167 |
+
return Caldera_Forms::PLUGIN_SLUG . '-';
|
168 |
+
}
|
169 |
+
|
170 |
+
}
|
classes/admin/privacy.php
CHANGED
@@ -110,7 +110,7 @@ class Caldera_Forms_Admin_Privacy{
|
|
110 |
if ( Caldera_Forms_Fields::not_support( $field_type, 'entry_list' ) ){
|
111 |
continue;
|
112 |
}
|
113 |
-
if( in_array( $field_type, array( 'recaptcha' ) ) ){
|
114 |
continue;
|
115 |
}
|
116 |
$this->fields_to_show_personally_identifying_question[] = $field_type;
|
110 |
if ( Caldera_Forms_Fields::not_support( $field_type, 'entry_list' ) ){
|
111 |
continue;
|
112 |
}
|
113 |
+
if( in_array( $field_type, array( 'recaptcha', 'gdpr' ) ) ){
|
114 |
continue;
|
115 |
}
|
116 |
$this->fields_to_show_personally_identifying_question[] = $field_type;
|
classes/api/crud.php
CHANGED
@@ -16,7 +16,7 @@ abstract class Caldera_Forms_API_CRUD implements Caldera_Forms_API_Route {
|
|
16 |
*
|
17 |
* @since 1.5.0
|
18 |
*
|
19 |
-
* @var Caldera_Forms_API_Form
|
20 |
*/
|
21 |
protected $form;
|
22 |
|
@@ -353,21 +353,27 @@ abstract class Caldera_Forms_API_CRUD implements Caldera_Forms_API_Route {
|
|
353 |
* @param string $id Form ID
|
354 |
* @param WP_REST_Request $request Current REST API request
|
355 |
* @param bool $set_prop Optional. Set in $form property of object if true, the default. If false, return.
|
|
|
356 |
*
|
357 |
-
* @return Caldera_Forms_API_Form|
|
358 |
* @throws Exception
|
359 |
*/
|
360 |
-
protected function form_object_factory( $id, WP_REST_Request $request, $set_prop = true ){
|
361 |
-
|
|
|
362 |
if( empty( $form ) || empty( $form[ 'ID' ] ) || empty( $form[ 'name' ] ) ){
|
363 |
throw new Exception();
|
364 |
}
|
365 |
|
366 |
-
|
367 |
-
|
|
|
|
|
|
|
|
|
|
|
368 |
if ( $set_prop ) {
|
369 |
$this->form = $obj;
|
370 |
-
|
371 |
} else {
|
372 |
|
373 |
return $obj;
|
16 |
*
|
17 |
* @since 1.5.0
|
18 |
*
|
19 |
+
* @var Caldera_Forms_API_Form|Caldera_Forms_API_Privacy
|
20 |
*/
|
21 |
protected $form;
|
22 |
|
353 |
* @param string $id Form ID
|
354 |
* @param WP_REST_Request $request Current REST API request
|
355 |
* @param bool $set_prop Optional. Set in $form property of object if true, the default. If false, return.
|
356 |
+
* @param bool $privacy_context Optional. If false, a Caldera_Forms_API_Privacy is returned. If true, the default, a Caldera_Forms_API_Form is returned.
|
357 |
*
|
358 |
+
* @return Caldera_Forms_API_Form|Caldera_Forms_API_Privacy
|
359 |
* @throws Exception
|
360 |
*/
|
361 |
+
protected function form_object_factory( $id, WP_REST_Request $request, $set_prop = true, $privacy_context= false ){
|
362 |
+
$form = Caldera_Forms_Forms::get_form( $id );
|
363 |
+
|
364 |
if( empty( $form ) || empty( $form[ 'ID' ] ) || empty( $form[ 'name' ] ) ){
|
365 |
throw new Exception();
|
366 |
}
|
367 |
|
368 |
+
if ($privacy_context) {
|
369 |
+
$obj = new Caldera_Forms_API_Form($form);
|
370 |
+
}else{
|
371 |
+
$obj = new Caldera_Forms_API_Privacy($form);
|
372 |
+
}
|
373 |
+
|
374 |
+
$obj->set_request( $request );
|
375 |
if ( $set_prop ) {
|
376 |
$this->form = $obj;
|
|
|
377 |
} else {
|
378 |
|
379 |
return $obj;
|
classes/api/entries.php
CHANGED
@@ -11,6 +11,22 @@
|
|
11 |
*/
|
12 |
class Caldera_Forms_API_Entries extends Caldera_Forms_API_CRUD {
|
13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
/**
|
15 |
* Get an entry
|
16 |
*
|
@@ -102,6 +118,54 @@ class Caldera_Forms_API_Entries extends Caldera_Forms_API_CRUD {
|
|
102 |
}
|
103 |
}
|
104 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
105 |
/**
|
106 |
* Prepare entry data for a response
|
107 |
*
|
11 |
*/
|
12 |
class Caldera_Forms_API_Entries extends Caldera_Forms_API_CRUD {
|
13 |
|
14 |
+
/**
|
15 |
+
* @inheritdoc
|
16 |
+
*
|
17 |
+
* @since 1.7.0
|
18 |
+
*/
|
19 |
+
public function add_routes( $namespace ) {
|
20 |
+
parent::add_routes($namespace);
|
21 |
+
register_rest_route($namespace, $this->non_id_endpoint_url() . '/delete',
|
22 |
+
array(
|
23 |
+
'methods' => array( \WP_REST_Server::READABLE ),
|
24 |
+
'callback' => array($this, 'delete_entries'),
|
25 |
+
'permission_callback' => array($this, 'update_item_permissions_check')
|
26 |
+
)
|
27 |
+
);
|
28 |
+
}
|
29 |
+
|
30 |
/**
|
31 |
* Get an entry
|
32 |
*
|
118 |
}
|
119 |
}
|
120 |
|
121 |
+
/**
|
122 |
+
* Delete all entries of a form based on Form ID
|
123 |
+
*
|
124 |
+
* GET /cf-api/v2/entries/form-id/delete
|
125 |
+
*
|
126 |
+
* @since 1.7.0
|
127 |
+
*
|
128 |
+
* @param WP_REST_Request $request
|
129 |
+
*
|
130 |
+
* @return Caldera_Forms_API_Error|Caldera_Forms_API_Response
|
131 |
+
*/
|
132 |
+
public function delete_entries( WP_REST_Request $request ) {
|
133 |
+
$formID = sanitize_text_field( $request[ 'form_id' ] );
|
134 |
+
|
135 |
+
if( false === Caldera_Forms_Forms::is_internal_form( $formID ) ){
|
136 |
+
$data = array(
|
137 |
+
'deleted' => false,
|
138 |
+
'message' => __( 'Form not found', 'caldera-forms')
|
139 |
+
);
|
140 |
+
return new Caldera_Forms_API_Response( $data, 404, array() );
|
141 |
+
}
|
142 |
+
|
143 |
+
$entries = \calderawp\CalderaFormsQueries\CalderaFormsQueries()->selectByFormId( $formID, false );
|
144 |
+
|
145 |
+
if( null != $entries ) {
|
146 |
+
$entryIds = [];
|
147 |
+
foreach( array_column( $entries, 'entry' ) as $entry ){
|
148 |
+
$entryIds[] = $entry->id;
|
149 |
+
}
|
150 |
+
|
151 |
+
Caldera_Forms_Entry_Bulk::delete_entries( $entryIds );
|
152 |
+
$data = array(
|
153 |
+
'deleted' => true,
|
154 |
+
'message' => __( 'Entries deleted', 'caldera-forms')
|
155 |
+
);
|
156 |
+
return new Caldera_Forms_API_Response( $data, 200, array() );
|
157 |
+
|
158 |
+
} else {
|
159 |
+
$data = array(
|
160 |
+
'deleted' => false,
|
161 |
+
'message' => __( 'No entries found', 'caldera-forms')
|
162 |
+
);
|
163 |
+
return new Caldera_Forms_API_Response( $data, 404, array() );
|
164 |
+
}
|
165 |
+
|
166 |
+
}
|
167 |
+
|
168 |
+
|
169 |
/**
|
170 |
* Prepare entry data for a response
|
171 |
*
|
classes/api/form.php
CHANGED
@@ -13,7 +13,8 @@
|
|
13 |
class Caldera_Forms_API_Form implements ArrayAccess {
|
14 |
|
15 |
/**
|
16 |
-
*
|
|
|
17 |
* @since 1.5.0
|
18 |
*
|
19 |
* @var array
|
@@ -212,6 +213,37 @@ class Caldera_Forms_API_Form implements ArrayAccess {
|
|
212 |
return isset($this->form[$offset]) ? $this->form[$offset] : null;
|
213 |
}
|
214 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
215 |
|
216 |
|
217 |
}
|
13 |
class Caldera_Forms_API_Form implements ArrayAccess {
|
14 |
|
15 |
/**
|
16 |
+
* Form configuration
|
17 |
+
*
|
18 |
* @since 1.5.0
|
19 |
*
|
20 |
* @var array
|
213 |
return isset($this->form[$offset]) ? $this->form[$offset] : null;
|
214 |
}
|
215 |
|
216 |
+
/**
|
217 |
+
* Save form in database
|
218 |
+
*
|
219 |
+
* @since 1.7.0
|
220 |
+
*
|
221 |
+
* @return $this
|
222 |
+
*/
|
223 |
+
public function save_form(){
|
224 |
+
//Not using toArray() since it is different in subclass
|
225 |
+
Caldera_Forms_Forms::save_form($this->form );
|
226 |
+
return $this;
|
227 |
+
|
228 |
+
}
|
229 |
+
|
230 |
+
/**
|
231 |
+
* (re)Set form config
|
232 |
+
*
|
233 |
+
* Does not save. Use $this->save_form()
|
234 |
+
*
|
235 |
+
* @since 1.7.0
|
236 |
+
*
|
237 |
+
* @param array $form Form configuration.
|
238 |
+
*
|
239 |
+
* @return $this
|
240 |
+
*/
|
241 |
+
public function set_form(array $form )
|
242 |
+
{
|
243 |
+
$this->form = $form;
|
244 |
+
return $this;
|
245 |
+
}
|
246 |
+
|
247 |
|
248 |
|
249 |
}
|
classes/api/forms.php
CHANGED
@@ -37,8 +37,30 @@ class Caldera_Forms_API_Forms extends Caldera_Forms_API_CRUD {
|
|
37 |
)
|
38 |
);
|
39 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
}
|
41 |
|
|
|
|
|
42 |
/**
|
43 |
* @inheritdoc
|
44 |
*
|
@@ -49,10 +71,41 @@ class Caldera_Forms_API_Forms extends Caldera_Forms_API_CRUD {
|
|
49 |
$args[ 'preview' ] = array(
|
50 |
'type' => 'boolean',
|
51 |
'default' => false,
|
52 |
-
'
|
53 |
);
|
54 |
|
55 |
-
return$args;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
}
|
57 |
|
58 |
/**
|
@@ -67,6 +120,10 @@ class Caldera_Forms_API_Forms extends Caldera_Forms_API_CRUD {
|
|
67 |
* @return Caldera_Forms_API_Error|Caldera_Forms_API_Response
|
68 |
*/
|
69 |
public function get_item(WP_REST_Request $request){
|
|
|
|
|
|
|
|
|
70 |
try{
|
71 |
$this->form_object_factory( $request[ 'form_id' ], $request );
|
72 |
}catch ( Exception $e ){
|
@@ -77,6 +134,8 @@ class Caldera_Forms_API_Forms extends Caldera_Forms_API_CRUD {
|
|
77 |
return $this->preview_response();
|
78 |
}
|
79 |
|
|
|
|
|
80 |
$response_form = $this->prepare_form_for_response( $this->form, $request );
|
81 |
return new Caldera_Forms_API_Response( $response_form, 200, array( ) );
|
82 |
|
@@ -102,6 +161,60 @@ class Caldera_Forms_API_Forms extends Caldera_Forms_API_CRUD {
|
|
102 |
|
103 |
return $this->preview_response();
|
104 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
105 |
}
|
106 |
|
107 |
|
@@ -188,7 +301,7 @@ class Caldera_Forms_API_Forms extends Caldera_Forms_API_CRUD {
|
|
188 |
'full' => array(
|
189 |
'required' => false,
|
190 |
'default' => false,
|
191 |
-
)
|
192 |
);
|
193 |
}
|
194 |
|
@@ -350,10 +463,17 @@ class Caldera_Forms_API_Forms extends Caldera_Forms_API_CRUD {
|
|
350 |
* @param $field
|
351 |
*/
|
352 |
protected function prepare_field( &$field ){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
353 |
$field = array(
|
354 |
-
'id' => $field[ 'ID' ],
|
355 |
-
'label' =>
|
356 |
-
|
357 |
}
|
358 |
|
359 |
/**
|
37 |
)
|
38 |
);
|
39 |
|
40 |
+
|
41 |
+
register_rest_route( $namespace, $this->id_endpoint_url() . '/preview',
|
42 |
+
array(
|
43 |
+
'methods' => \WP_REST_Server::READABLE,
|
44 |
+
'callback' => array( $this, 'get_preview' ),
|
45 |
+
'permission_callback' => array( $this, 'get_item_permissions_check' ),
|
46 |
+
'args' => $this->get_item_args()
|
47 |
+
)
|
48 |
+
);
|
49 |
+
|
50 |
+
register_rest_route( $namespace, $this->id_endpoint_url() . '/privacy',
|
51 |
+
array(
|
52 |
+
'methods' => \WP_REST_Server::EDITABLE,
|
53 |
+
'callback' => array( $this, 'update_privacy_settings' ),
|
54 |
+
'permission_callback' => array( $this, 'update_item_permissions_check' ),
|
55 |
+
'args' => $this->get_item_args()
|
56 |
+
)
|
57 |
+
);
|
58 |
+
|
59 |
+
|
60 |
}
|
61 |
|
62 |
+
|
63 |
+
|
64 |
/**
|
65 |
* @inheritdoc
|
66 |
*
|
71 |
$args[ 'preview' ] = array(
|
72 |
'type' => 'boolean',
|
73 |
'default' => false,
|
74 |
+
'sanitize_callback' => 'rest_sanitize_boolean'
|
75 |
);
|
76 |
|
77 |
+
return $args;
|
78 |
+
}
|
79 |
+
|
80 |
+
/**
|
81 |
+
* Fields for the privacy route
|
82 |
+
*
|
83 |
+
* @since 1.70
|
84 |
+
*
|
85 |
+
* @return array
|
86 |
+
*/
|
87 |
+
protected function privacy_route_args()
|
88 |
+
{
|
89 |
+
return array(
|
90 |
+
'emailIdentifiers' => array(
|
91 |
+
'type' => 'array',
|
92 |
+
'required' => false,
|
93 |
+
'description' => esc_html__( 'Array of fields that can be used to find personally identifying information saved with this form.', 'caldera-forms' ),
|
94 |
+
'sanitize_callback' => array( 'Caldera_Forms_API_Util', 'validate_array_of_field_ids' )
|
95 |
+
),
|
96 |
+
'piiFields' => array(
|
97 |
+
'type' => 'array',
|
98 |
+
'required' => false,
|
99 |
+
'description' => esc_html__( 'Array of fields that contain personally identifying information', 'caldera-forms' ),
|
100 |
+
'sanitize_callback' => array( 'Caldera_Forms_API_Util', 'validate_array_of_field_ids' )
|
101 |
+
),
|
102 |
+
'privacyExporterEnabled' => array(
|
103 |
+
'type' => 'boolean',
|
104 |
+
'required' => false,
|
105 |
+
'description' => esc_html__( 'Array of fields that contain personally identifying information', 'caldera-forms' ),
|
106 |
+
'sanitize_callback' => 'rest_sanitize_boolean'
|
107 |
+
)
|
108 |
+
);
|
109 |
}
|
110 |
|
111 |
/**
|
120 |
* @return Caldera_Forms_API_Error|Caldera_Forms_API_Response
|
121 |
*/
|
122 |
public function get_item(WP_REST_Request $request){
|
123 |
+
if( $request->get_param( 'privacy' ) ){
|
124 |
+
return $this->get_privacy_settings( $request );
|
125 |
+
}
|
126 |
+
|
127 |
try{
|
128 |
$this->form_object_factory( $request[ 'form_id' ], $request );
|
129 |
}catch ( Exception $e ){
|
134 |
return $this->preview_response();
|
135 |
}
|
136 |
|
137 |
+
|
138 |
+
|
139 |
$response_form = $this->prepare_form_for_response( $this->form, $request );
|
140 |
return new Caldera_Forms_API_Response( $response_form, 200, array( ) );
|
141 |
|
161 |
|
162 |
return $this->preview_response();
|
163 |
|
164 |
+
}
|
165 |
+
|
166 |
+
/**
|
167 |
+
* Get privacy settings for form
|
168 |
+
*
|
169 |
+
* @since 1.7.0
|
170 |
+
*
|
171 |
+
* @param WP_REST_Request $request
|
172 |
+
* @return Caldera_Forms_API_Response|Caldera_Forms_API_Error
|
173 |
+
*/
|
174 |
+
public function get_privacy_settings( WP_REST_Request $request )
|
175 |
+
{
|
176 |
+
try{
|
177 |
+
$this->form_object_factory( $request[ 'form_id' ], $request );
|
178 |
+
}catch ( Exception $e ){
|
179 |
+
return Caldera_Forms_API_Response_Factory::error_form_not_found();
|
180 |
+
}
|
181 |
+
|
182 |
+
return new Caldera_Forms_API_Response( $this->form->toArray() );
|
183 |
+
|
184 |
+
}
|
185 |
+
|
186 |
+
/**
|
187 |
+
* Update a form's privacy settings
|
188 |
+
*
|
189 |
+
* @since 1.7.0
|
190 |
+
*
|
191 |
+
* @param WP_REST_Request $request
|
192 |
+
* @return Caldera_Forms_API_Error|Caldera_Forms_API_Response
|
193 |
+
*/
|
194 |
+
public function update_privacy_settings( WP_REST_Request $request ){
|
195 |
+
try{
|
196 |
+
$this->form_object_factory( $request[ 'form_id' ], $request );
|
197 |
+
}catch ( Exception $e ){
|
198 |
+
return Caldera_Forms_API_Response_Factory::error_form_not_found();
|
199 |
+
}
|
200 |
+
|
201 |
+
if( isset( $request[ 'emailIdentifyingFields' ] ) && is_array( $request[ 'emailIdentifyingFields' ] ) ){
|
202 |
+
$this->form->set_email_identifying_fields( $request[ 'emailIdentifyingFields' ] );
|
203 |
+
}
|
204 |
+
|
205 |
+
if( isset( $request[ 'piiFields' ] ) && is_array( $request[ 'piiFields' ] ) ){
|
206 |
+
$this->form->set_pii_fields( $request[ 'piiFields' ] );
|
207 |
+
|
208 |
+
}
|
209 |
+
|
210 |
+
//This will save settings (form)
|
211 |
+
if( true === boolval($request[ 'privacyExporterEnabled' ] ) ){
|
212 |
+
$this->form = $this->form->enable_privacy_exporter();
|
213 |
+
}else {
|
214 |
+
$this->form->disable_privacy_exporter();
|
215 |
+
}
|
216 |
+
return new Caldera_Forms_API_Response( $this->form->toArray() );
|
217 |
+
|
218 |
}
|
219 |
|
220 |
|
301 |
'full' => array(
|
302 |
'required' => false,
|
303 |
'default' => false,
|
304 |
+
),
|
305 |
);
|
306 |
}
|
307 |
|
463 |
* @param $field
|
464 |
*/
|
465 |
protected function prepare_field( &$field ){
|
466 |
+
if( ! empty( $field[ 'label' ] ) ){
|
467 |
+
$label = sanitize_text_field($field[ 'label' ]);
|
468 |
+
}elseif ( ! empty( $field[ 'name' ] ) ){
|
469 |
+
$label = sanitize_text_field($field[ 'name' ]);
|
470 |
+
}else{
|
471 |
+
$label = $field[ 'ID' ];
|
472 |
+
}
|
473 |
$field = array(
|
474 |
+
'id' => caldera_forms_very_safe_string( $field[ 'ID' ] ),
|
475 |
+
'label' => $label
|
476 |
+
);
|
477 |
}
|
478 |
|
479 |
/**
|
classes/api/privacy.php
ADDED
@@ -0,0 +1,132 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Class Caldera_Forms_API_Privacy
|
5 |
+
*
|
6 |
+
* Form config abstraction for working with privacy settings of form
|
7 |
+
*/
|
8 |
+
class Caldera_Forms_API_Privacy extends Caldera_Forms_API_Form
|
9 |
+
{
|
10 |
+
/**
|
11 |
+
* Report if this form has privacy/GDPR exporter enabled
|
12 |
+
*
|
13 |
+
* @since 1.7.0
|
14 |
+
*
|
15 |
+
* @return true
|
16 |
+
*/
|
17 |
+
public function is_privacy_exporter_enabled()
|
18 |
+
{
|
19 |
+
return Caldera_Forms_Forms::is_privacy_export_enabled( $this->form );
|
20 |
+
}
|
21 |
+
|
22 |
+
/**
|
23 |
+
* Enable privacy export for this form
|
24 |
+
*
|
25 |
+
* @since 1.7.0
|
26 |
+
*
|
27 |
+
* @return Caldera_Forms_API_Privacy
|
28 |
+
*/
|
29 |
+
public function enable_privacy_exporter()
|
30 |
+
{
|
31 |
+
$this->form = Caldera_Forms_Forms::update_privacy_export_enabled($this->form, true );
|
32 |
+
return $this->save_form();
|
33 |
+
}
|
34 |
+
|
35 |
+
/**
|
36 |
+
* Disable privacy export for this form.
|
37 |
+
*
|
38 |
+
* @return Caldera_Forms_API_Privacy
|
39 |
+
*/
|
40 |
+
public function disable_privacy_exporter()
|
41 |
+
{
|
42 |
+
$this->form = Caldera_Forms_Forms::update_privacy_export_enabled($this->form, false );
|
43 |
+
return $this->save_form();
|
44 |
+
}
|
45 |
+
|
46 |
+
/**
|
47 |
+
* Get IDs of the fields that can contain personally identifying fields
|
48 |
+
*
|
49 |
+
* @since 1.7.0
|
50 |
+
*
|
51 |
+
* @return array
|
52 |
+
*/
|
53 |
+
public function get_pii_fields()
|
54 |
+
{
|
55 |
+
return Caldera_Forms_Forms::personally_identifying_fields($this->form, true );
|
56 |
+
}
|
57 |
+
|
58 |
+
/**
|
59 |
+
* Get IDs of the fields that can contain email we can use to identify whose personally identifying info a form contains.
|
60 |
+
*
|
61 |
+
* @since 1.7.0
|
62 |
+
*
|
63 |
+
* @return array
|
64 |
+
*/
|
65 |
+
public function get_email_identifying_fields()
|
66 |
+
{
|
67 |
+
return Caldera_Forms_Forms::email_identifying_fields($this->form, true );
|
68 |
+
}
|
69 |
+
|
70 |
+
/**
|
71 |
+
* (re)set PII fields of form
|
72 |
+
*
|
73 |
+
* @since 1.7.0
|
74 |
+
*
|
75 |
+
* @param array $pii_fields New value
|
76 |
+
* @return $this
|
77 |
+
*/
|
78 |
+
public function set_pii_fields($pii_fields ){
|
79 |
+
foreach( $this->get_fields() as $field ){
|
80 |
+
$this->form[ 'fields' ][ $field[ 'ID' ] ][ 'config' ][ Caldera_Forms_Field_Util::CONFIG_PERSONAL] = (int) in_array( $field[ 'ID' ], $pii_fields );
|
81 |
+
}
|
82 |
+
$this->set_fields();
|
83 |
+
return $this;
|
84 |
+
}
|
85 |
+
|
86 |
+
/**
|
87 |
+
* (re)set email identifying field(s) of form
|
88 |
+
*
|
89 |
+
* @since 1.7.0
|
90 |
+
*
|
91 |
+
* @param array $email_fields New value
|
92 |
+
* @return $this
|
93 |
+
*/
|
94 |
+
public function set_email_identifying_fields( $email_fields )
|
95 |
+
{
|
96 |
+
foreach( $this->get_fields() as $field ){
|
97 |
+
$this->form[ 'fields' ][ $field[ 'ID' ] ][ 'config' ][ Caldera_Forms_Field_Util::CONFIG_EMAIL_IDENTIFIER ] = (int) in_array( $field[ 'ID' ], $email_fields );
|
98 |
+
}
|
99 |
+
$this->set_fields();
|
100 |
+
return $this;
|
101 |
+
}
|
102 |
+
|
103 |
+
/** @inheritdoc */
|
104 |
+
public function toArray()
|
105 |
+
{
|
106 |
+
return array(
|
107 |
+
'ID' => caldera_forms_very_safe_string($this->form[ 'ID' ]),
|
108 |
+
'name' => isset( $this->form[ 'name' ] ) ? caldera_forms_very_safe_string( $this->form[ 'name' ] ) : '',
|
109 |
+
'fields' => $this->get_fields(),
|
110 |
+
'emailIdentifyingFields' => $this->get_email_identifying_fields(),
|
111 |
+
'piiFields' => $this->get_pii_fields(),
|
112 |
+
'privacyExporterEnabled' => $this->is_privacy_exporter_enabled()
|
113 |
+
);
|
114 |
+
}
|
115 |
+
|
116 |
+
/** @inheritdoc */
|
117 |
+
public function set_fields()
|
118 |
+
{
|
119 |
+
foreach (Caldera_Forms_Forms::get_fields($this->form, true) as $field_id => $field) {
|
120 |
+
if (Caldera_Forms_Fields::not_support(Caldera_Forms_Field_Util::get_type($field, $this->form), 'entry_list')) {
|
121 |
+
continue;
|
122 |
+
}
|
123 |
+
$this->fields[$field_id] = [
|
124 |
+
'ID' => caldera_forms_very_safe_string($field_id),
|
125 |
+
'name' => isset($field['label']) ? caldera_forms_very_safe_string($field['label']) : '',
|
126 |
+
'type' => Caldera_Forms_Field_Util::get_type($field, $this->form)
|
127 |
+
];
|
128 |
+
}
|
129 |
+
}
|
130 |
+
|
131 |
+
|
132 |
+
}
|
classes/api/util.php
CHANGED
@@ -65,4 +65,30 @@ class Caldera_Forms_API_Util {
|
|
65 |
return wp_create_nonce( 'wp_rest' );
|
66 |
}
|
67 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
}
|
65 |
return wp_create_nonce( 'wp_rest' );
|
66 |
}
|
67 |
|
68 |
+
/**
|
69 |
+
* Given an array of field IDs and form config, reduce field IDs array to fields that form has
|
70 |
+
*
|
71 |
+
* @since 1.7.0
|
72 |
+
*
|
73 |
+
* @param array $field_ids
|
74 |
+
* @param array $form
|
75 |
+
* @return array
|
76 |
+
*/
|
77 |
+
public static function validate_array_of_field_ids(array $field_ids, array $form )
|
78 |
+
{
|
79 |
+
$valid_fields = [];
|
80 |
+
$form_fields = array_keys(Caldera_Forms_Forms::get_fields( $form, false ));
|
81 |
+
if (! empty( $field_ids )) {
|
82 |
+
foreach ($field_ids as $field_id) {
|
83 |
+
$field_id = trim( $field_id );
|
84 |
+
if( in_array( $field_id, $form_fields ) ){
|
85 |
+
$valid_fields[] = $field_id;
|
86 |
+
}
|
87 |
+
|
88 |
+
}
|
89 |
+
}
|
90 |
+
|
91 |
+
return $valid_fields;
|
92 |
+
}
|
93 |
+
|
94 |
}
|
classes/autoloader.php
CHANGED
@@ -123,7 +123,6 @@ class Caldera_Forms_Autoloader {
|
|
123 |
* @return string|void
|
124 |
*/
|
125 |
protected static function get_dir( $root ){
|
126 |
-
if( 'Caldera_Forms_Fields')
|
127 |
if( array_key_exists( $root, self::$roots ) ){
|
128 |
return trailingslashit( self::$roots[ $root ] );
|
129 |
}
|
123 |
* @return string|void
|
124 |
*/
|
125 |
protected static function get_dir( $root ){
|
|
|
126 |
if( array_key_exists( $root, self::$roots ) ){
|
127 |
return trailingslashit( self::$roots[ $root ] );
|
128 |
}
|
classes/core.php
CHANGED
@@ -225,6 +225,9 @@ class Caldera_Forms
|
|
225 |
add_action(Caldera_Forms_Transient::CRON_ACTION, array('Caldera_Forms_Transient', 'cron_callback'));
|
226 |
add_action('caldera_forms_submit_complete', array('Caldera_Forms_Transient', 'cron_callback'));
|
227 |
|
|
|
|
|
|
|
228 |
/**
|
229 |
* Runs after Caldera Forms core is initialized
|
230 |
*
|
225 |
add_action(Caldera_Forms_Transient::CRON_ACTION, array('Caldera_Forms_Transient', 'cron_callback'));
|
226 |
add_action('caldera_forms_submit_complete', array('Caldera_Forms_Transient', 'cron_callback'));
|
227 |
|
228 |
+
//Init GDPR exporters/erasers
|
229 |
+
add_action( 'init', [ Caldera_Forms_GDPR::class, 'register_gdpr' ] );
|
230 |
+
|
231 |
/**
|
232 |
* Runs after Caldera Forms core is initialized
|
233 |
*
|
classes/entry/factory.php
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Class Caldera_Forms_Entry_Factory
|
5 |
+
*
|
6 |
+
* Factories for entry objects
|
7 |
+
|
8 |
+
*/
|
9 |
+
class Caldera_Forms_Entry_Factory
|
10 |
+
{
|
11 |
+
|
12 |
+
/**
|
13 |
+
* Factory for Caldera_Forms_Entry_Field objects
|
14 |
+
*
|
15 |
+
* @since 1.7.0
|
16 |
+
*
|
17 |
+
* @param array|stdClass|Caldera_Forms_Entry_Field $entry_field
|
18 |
+
* @return Caldera_Forms_Entry_Field|object
|
19 |
+
*/
|
20 |
+
public static function entry_field($entry_field){
|
21 |
+
if( ! is_a( $entry_field, Caldera_Forms_Entry_Field::class ) ){
|
22 |
+
if( is_array( $entry_field )){
|
23 |
+
$entry_field = (object)$entry_field;
|
24 |
+
}
|
25 |
+
if( is_object($entry_field)){
|
26 |
+
$entry_field = new Caldera_Forms_Entry_Field($entry_field);
|
27 |
+
}
|
28 |
+
}
|
29 |
+
|
30 |
+
return $entry_field;
|
31 |
+
}
|
32 |
+
|
33 |
+
}
|
classes/entry/fields.php
ADDED
@@ -0,0 +1,132 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Class Caldera_Forms_Entry_Fields
|
5 |
+
*
|
6 |
+
* A collection of many field values, from different entries of the same form.
|
7 |
+
*/
|
8 |
+
class Caldera_Forms_Entry_Fields implements \calderawp\CalderaContainers\Interfaces\Arrayable
|
9 |
+
{
|
10 |
+
|
11 |
+
/**
|
12 |
+
* The collected fields
|
13 |
+
*
|
14 |
+
* @since 1.7.0
|
15 |
+
*
|
16 |
+
* @var Caldera_Forms_Entry_Field[] $fields
|
17 |
+
*/
|
18 |
+
protected $fields;
|
19 |
+
/**
|
20 |
+
* The form config
|
21 |
+
*
|
22 |
+
* @since 1.7.0
|
23 |
+
*
|
24 |
+
* @var array
|
25 |
+
*/
|
26 |
+
protected $form;
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Caldera_Forms_Entry_Fields constructor.
|
30 |
+
* @param array $form Form configuration
|
31 |
+
* @param Caldera_Forms_Entry_Field[] $fields
|
32 |
+
*/
|
33 |
+
public function __construct(array $form, array $fields = [] )
|
34 |
+
{
|
35 |
+
$this->form = $form;
|
36 |
+
if( ! empty( $fields ) ){
|
37 |
+
$this->set_fields_form_array( $fields );
|
38 |
+
}
|
39 |
+
}
|
40 |
+
|
41 |
+
/** @inheritdoc */
|
42 |
+
public function toArray()
|
43 |
+
{
|
44 |
+
if (empty($this->fields)) {
|
45 |
+
return [];
|
46 |
+
}
|
47 |
+
$fields = [];
|
48 |
+
/** @var Caldera_Forms_Entry_Field $field */
|
49 |
+
foreach ($this->get_fields() as $field) {
|
50 |
+
$fields[$field->field_id] = $field->to_array(false);
|
51 |
+
}
|
52 |
+
return $fields;
|
53 |
+
}
|
54 |
+
|
55 |
+
/**
|
56 |
+
* Get the collection of fields
|
57 |
+
*
|
58 |
+
* @since 1.7.0
|
59 |
+
*
|
60 |
+
* @return Caldera_Forms_Entry_Field[]
|
61 |
+
*/
|
62 |
+
public function get_fields(){
|
63 |
+
return $this->fields;
|
64 |
+
}
|
65 |
+
|
66 |
+
/**
|
67 |
+
* Check if there is an entry value for an entry ID in this collection
|
68 |
+
*
|
69 |
+
* @since 1.7.0
|
70 |
+
*
|
71 |
+
* @param string $entry_id The entry's ID
|
72 |
+
* @return bool
|
73 |
+
*/
|
74 |
+
public function has_field( $entry_id ){
|
75 |
+
return isset( $this->fields[ $entry_id ] );
|
76 |
+
}
|
77 |
+
|
78 |
+
/**
|
79 |
+
* Get total number of field values in collection
|
80 |
+
*
|
81 |
+
* @since 1.7.0
|
82 |
+
*
|
83 |
+
* @return int
|
84 |
+
*/
|
85 |
+
public function count(){
|
86 |
+
return is_array( $this->fields ) ? count( $this->fields ) : 0;
|
87 |
+
}
|
88 |
+
|
89 |
+
/**
|
90 |
+
* Add a field to collection
|
91 |
+
*
|
92 |
+
* @since 1.7.0
|
93 |
+
*
|
94 |
+
* @param Caldera_Forms_Entry_Field $field
|
95 |
+
* @return $this
|
96 |
+
*/
|
97 |
+
public function add_field( Caldera_Forms_Entry_Field $field ){
|
98 |
+
$this->fields[$field->entry_id] = $field;
|
99 |
+
return $this;
|
100 |
+
}
|
101 |
+
|
102 |
+
/**
|
103 |
+
* Get a field from collection
|
104 |
+
*
|
105 |
+
* @since 1.7.0
|
106 |
+
*
|
107 |
+
* @param string $field_id Field ID (form config, not DB id column)
|
108 |
+
* @return Caldera_Forms_Entry_Field
|
109 |
+
* @throws Exception
|
110 |
+
*/
|
111 |
+
public function get_field( $field_id ){
|
112 |
+
if( $this->has_field( $field_id ) ){
|
113 |
+
return $this->fields[ $field_id ];
|
114 |
+
}
|
115 |
+
throw new Exception( __( 'Field Not Found', 'caldera-forms' ) );
|
116 |
+
}
|
117 |
+
|
118 |
+
|
119 |
+
/**
|
120 |
+
* Populate fields property from an array
|
121 |
+
*
|
122 |
+
* @since 1.7.0
|
123 |
+
*
|
124 |
+
* @param Caldera_Forms_Entry_Field[] $fields Entry field objects to add
|
125 |
+
*/
|
126 |
+
protected function set_fields_form_array(array $fields){
|
127 |
+
foreach ( $fields as $field ){
|
128 |
+
$this->add_field( Caldera_Forms_Entry_Factory::entry_field($field) );
|
129 |
+
}
|
130 |
+
}
|
131 |
+
|
132 |
+
}
|
classes/field/util.php
CHANGED
@@ -12,10 +12,19 @@
|
|
12 |
class Caldera_Forms_Field_Util {
|
13 |
|
14 |
/**
|
15 |
-
* The index of the field config array used to indicate
|
|
|
|
|
16 |
*/
|
17 |
const CONFIG_PERSONAL = 'personally_identifying';
|
18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
/**
|
20 |
* Get a field's type
|
21 |
*
|
@@ -642,4 +651,23 @@ class Caldera_Forms_Field_Util {
|
|
642 |
|
643 |
return isset( $field[ 'config' ][ self::CONFIG_PERSONAL ] ) && rest_sanitize_boolean($field[ 'config' ][ self::CONFIG_PERSONAL ] );
|
644 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
645 |
}
|
12 |
class Caldera_Forms_Field_Util {
|
13 |
|
14 |
/**
|
15 |
+
* The index of the field config array used to indicate a field as containing personally identifying information
|
16 |
+
*
|
17 |
+
* @since 1.6.3
|
18 |
*/
|
19 |
const CONFIG_PERSONAL = 'personally_identifying';
|
20 |
|
21 |
+
/**
|
22 |
+
* The index of the field config array used to indicate a field as containing personally identifying information
|
23 |
+
*
|
24 |
+
* @since 1.7.0
|
25 |
+
*/
|
26 |
+
const CONFIG_EMAIL_IDENTIFIER = 'email_identifier';
|
27 |
+
|
28 |
/**
|
29 |
* Get a field's type
|
30 |
*
|
651 |
|
652 |
return isset( $field[ 'config' ][ self::CONFIG_PERSONAL ] ) && rest_sanitize_boolean($field[ 'config' ][ self::CONFIG_PERSONAL ] );
|
653 |
}
|
654 |
+
|
655 |
+
/**
|
656 |
+
* Check if a field is a field that we can use to lookup entry data belonging to the stored email.
|
657 |
+
*
|
658 |
+
* @since 1.7.0
|
659 |
+
*
|
660 |
+
* @param array|string $field Field config or field ID
|
661 |
+
* @param array $form Form config
|
662 |
+
*
|
663 |
+
* @return bool
|
664 |
+
*/
|
665 |
+
public static function is_email_identifying_field($field, array $form )
|
666 |
+
{
|
667 |
+
if (is_string($field)) {
|
668 |
+
$field = self::get_field($field, $form);
|
669 |
+
}
|
670 |
+
|
671 |
+
return isset( $field[ 'config' ][ self::CONFIG_EMAIL_IDENTIFIER ] ) && rest_sanitize_boolean($field[ 'config' ][ self::CONFIG_EMAIL_IDENTIFIER ] );
|
672 |
+
}
|
673 |
}
|
classes/fields.php
CHANGED
@@ -385,7 +385,21 @@ class Caldera_Forms_Fields {
|
|
385 |
),
|
386 |
'handler' => array( 'Caldera_Forms_Field_Utm', 'handler' )
|
387 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
388 |
|
|
|
389 |
//file
|
390 |
'file' => array(
|
391 |
"field" => __( 'File', 'caldera-forms' ),
|
385 |
),
|
386 |
'handler' => array( 'Caldera_Forms_Field_Utm', 'handler' )
|
387 |
),
|
388 |
+
'gdpr' => array(
|
389 |
+
"field" => __( 'Consent Field', 'caldera-forms' ),
|
390 |
+
"description" => __( 'Record consent to collect personally identifying information (PII).', 'caldera-forms' ),
|
391 |
+
"file" => CFCORE_PATH . "fields/gdpr/field.php",
|
392 |
+
"category" => __( 'Special', 'caldera-forms' ),
|
393 |
+
"setup" => array(
|
394 |
+
"template" => CFCORE_PATH . "fields/gdpr/config_template.php",
|
395 |
+
"preview" => CFCORE_PATH . "fields/gdpr/preview.php",
|
396 |
+
"not_supported" => array(
|
397 |
+
'caption',
|
398 |
+
'required',
|
399 |
+
)
|
400 |
+
),
|
401 |
|
402 |
+
),
|
403 |
//file
|
404 |
'file' => array(
|
405 |
"field" => __( 'File', 'caldera-forms' ),
|
classes/forms.php
CHANGED
@@ -885,6 +885,65 @@ class Caldera_Forms_Forms {
|
|
885 |
return $personally_identifying_fields;
|
886 |
}
|
887 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
888 |
/**
|
889 |
* Get all revisions of a forms
|
890 |
*
|
885 |
return $personally_identifying_fields;
|
886 |
}
|
887 |
|
888 |
+
/**
|
889 |
+
* Get all fields of a form that represents the email of someone who's personal information is in the form submssion.
|
890 |
+
*
|
891 |
+
* @since 1.7.0
|
892 |
+
*
|
893 |
+
* @param array $form Form config
|
894 |
+
* @param bool $ids_only Optional. If true, indexed array of field IDs is returned. If false, the default, array of field configs, keyed by field ID is returned.
|
895 |
+
* @return array
|
896 |
+
*/
|
897 |
+
public static function email_identifying_fields( array $form, $ids_only = false ){
|
898 |
+
$fields = self::get_fields( $form, false );
|
899 |
+
$matching_fields = array();
|
900 |
+
if( ! empty( $fields ) ){
|
901 |
+
foreach ( $fields as $field_id => $field ){
|
902 |
+
if( Caldera_Forms_Field_Util::is_email_identifying_field( $field, $form ) ){
|
903 |
+
$matching_fields[ $field_id ] = $field;
|
904 |
+
}
|
905 |
+
}
|
906 |
+
}
|
907 |
+
|
908 |
+
if( $ids_only ){
|
909 |
+
return array_keys( $matching_fields );
|
910 |
+
}
|
911 |
+
|
912 |
+
return $matching_fields;
|
913 |
+
}
|
914 |
+
|
915 |
+
/**
|
916 |
+
* Discover if a form has GDPR/privacy exporter enabled
|
917 |
+
*
|
918 |
+
* @since 1.7.0
|
919 |
+
*
|
920 |
+
* @param array $form Form config
|
921 |
+
* @return bool
|
922 |
+
*/
|
923 |
+
public static function is_privacy_export_enabled(array $form )
|
924 |
+
{
|
925 |
+
return ! empty( $form[ 'privacy_exporter_enabled' ] );
|
926 |
+
}
|
927 |
+
|
928 |
+
/**
|
929 |
+
* Toggle enabling of GDPR/privacy exporter enabled
|
930 |
+
*
|
931 |
+
* Note, does not save. Use Caldera_Forms_Forms::save_form( Caldera_Forms_Forms::update_privacy_export_enabled( $form, true ) ) );
|
932 |
+
*
|
933 |
+
* @since 1.7.0
|
934 |
+
*
|
935 |
+
* @param array $form Form config
|
936 |
+
* @param bool $enabled Optional. To enable or not. Default is true
|
937 |
+
*
|
938 |
+
* @return array
|
939 |
+
*/
|
940 |
+
public static function update_privacy_export_enabled(array $form, $enabled = true )
|
941 |
+
{
|
942 |
+
$form[ 'privacy_exporter_enabled' ] = (bool) $enabled;
|
943 |
+
return $form;
|
944 |
+
|
945 |
+
}
|
946 |
+
|
947 |
/**
|
948 |
* Get all revisions of a forms
|
949 |
*
|
classes/gdpr.php
ADDED
@@ -0,0 +1,342 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Class Caldera_Forms_GDPR
|
5 |
+
*
|
6 |
+
* Connects WordPress GDPR compliance tools to Caldera Forms APIs.
|
7 |
+
*/
|
8 |
+
class Caldera_Forms_GDPR
|
9 |
+
{
|
10 |
+
|
11 |
+
/**
|
12 |
+
* Forms with a GDPR exporter enabled
|
13 |
+
*
|
14 |
+
* @since 1.7.0
|
15 |
+
*
|
16 |
+
* @var array
|
17 |
+
*/
|
18 |
+
protected static $enabled_forms;
|
19 |
+
|
20 |
+
/**
|
21 |
+
* Register GDPR compliance tools
|
22 |
+
*
|
23 |
+
* @since 1.7.0
|
24 |
+
*/
|
25 |
+
public static function register_gdpr()
|
26 |
+
{
|
27 |
+
|
28 |
+
if (!empty(static::enabled_forms())) {
|
29 |
+
|
30 |
+
add_filter('wp_privacy_personal_data_erasers', function ($erasers) {
|
31 |
+
|
32 |
+
foreach (static::enabled_forms() as $form_id) {
|
33 |
+
$form = Caldera_Forms_Forms::get_form($form_id);
|
34 |
+
if (is_array($form)) {
|
35 |
+
$erasers[self::group_id($form)] = [
|
36 |
+
'eraser_friendly_name' => $form['name'],
|
37 |
+
'callback' => [__CLASS__, static::callback_name($form_id, 'eraser')],
|
38 |
+
];
|
39 |
+
}
|
40 |
+
}
|
41 |
+
return $erasers;
|
42 |
+
});
|
43 |
+
|
44 |
+
add_filter('wp_privacy_personal_data_exporters', function ($exporters) {
|
45 |
+
|
46 |
+
foreach (static::enabled_forms() as $form_id) {
|
47 |
+
$form = Caldera_Forms_Forms::get_form($form_id);
|
48 |
+
if (is_array($form)) {
|
49 |
+
$exporters[self::group_id($form)] = [
|
50 |
+
'exporter_friendly_name' => $form['name'],
|
51 |
+
'callback' => [__CLASS__, static::callback_name($form_id)],
|
52 |
+
];
|
53 |
+
}
|
54 |
+
}
|
55 |
+
|
56 |
+
return $exporters;
|
57 |
+
});
|
58 |
+
}
|
59 |
+
|
60 |
+
}
|
61 |
+
|
62 |
+
/**
|
63 |
+
* Get the name of the magic callback function used to process export/erases
|
64 |
+
*
|
65 |
+
* @since 1.7.0
|
66 |
+
*
|
67 |
+
* @param string $form_id The ID of the form to process.
|
68 |
+
* @param string $type Optional. Type of callback. Default is "exporter", options: exporter|eraser
|
69 |
+
* @return string
|
70 |
+
*/
|
71 |
+
public static function callback_name($form_id, $type = 'exporter')
|
72 |
+
{
|
73 |
+
switch ($type) {
|
74 |
+
case 'eraser':
|
75 |
+
$name = $type . $form_id;
|
76 |
+
break;
|
77 |
+
case 'exporter':
|
78 |
+
case 'default':
|
79 |
+
$name = 'exporter' . $form_id;
|
80 |
+
break;
|
81 |
+
}
|
82 |
+
return $name;
|
83 |
+
}
|
84 |
+
|
85 |
+
/**
|
86 |
+
* Get an array of forms that have a data exporter enabled
|
87 |
+
*
|
88 |
+
* @since 1.7.0
|
89 |
+
*
|
90 |
+
* @param bool $reset Optional. If true, database will be queried for results. If false, the default, database will only be queried on first call of function/
|
91 |
+
* @return array
|
92 |
+
*/
|
93 |
+
public static function enabled_forms($reset = false)
|
94 |
+
{
|
95 |
+
if (false === $reset && !empty(static::$enabled_forms)) {
|
96 |
+
return static::$enabled_forms;
|
97 |
+
}
|
98 |
+
|
99 |
+
foreach (Caldera_Forms_Forms::get_forms(false) as $form_id) {
|
100 |
+
$form = Caldera_Forms_Forms::get_form($form_id);
|
101 |
+
if (is_array($form) && Caldera_Forms_Forms::is_privacy_export_enabled($form)) {
|
102 |
+
static::$enabled_forms[] = $form_id;
|
103 |
+
}
|
104 |
+
}
|
105 |
+
|
106 |
+
return static::$enabled_forms;
|
107 |
+
}
|
108 |
+
|
109 |
+
/**
|
110 |
+
* Routes exporter and eraser callbacks to the right functions with the right form
|
111 |
+
*
|
112 |
+
* @inheritdoc
|
113 |
+
*
|
114 |
+
* @since 1.7.0
|
115 |
+
*/
|
116 |
+
public static function __callStatic($name, $arguments)
|
117 |
+
{
|
118 |
+
if (0 === strpos($name, 'exporter')) {
|
119 |
+
$form_id = str_replace('exporter', '', $name);
|
120 |
+
$form = Caldera_Forms_Forms::get_form($form_id);
|
121 |
+
return static::get_export_data($arguments[0], $form, $arguments[1]);
|
122 |
+
}
|
123 |
+
|
124 |
+
|
125 |
+
if (0 === strpos($name, 'eraser')) {
|
126 |
+
$form_id = str_replace('eraser', '', $name);
|
127 |
+
$form = Caldera_Forms_Forms::get_form($form_id);
|
128 |
+
return static::perform_erase($arguments[0], $form);
|
129 |
+
}
|
130 |
+
|
131 |
+
}
|
132 |
+
|
133 |
+
/**
|
134 |
+
* Get group ID for data set
|
135 |
+
*
|
136 |
+
* @since 1.7.0
|
137 |
+
*
|
138 |
+
* @param array $form The form configuration
|
139 |
+
* @return string
|
140 |
+
*/
|
141 |
+
public static function group_id(array $form)
|
142 |
+
{
|
143 |
+
return 'caldera-forms-' . sanitize_title_with_dashes($form['name']);
|
144 |
+
}
|
145 |
+
|
146 |
+
/**
|
147 |
+
* Get the group label
|
148 |
+
*
|
149 |
+
* @since 1.7.0
|
150 |
+
*
|
151 |
+
* @param array $form The form configuration
|
152 |
+
* @return string
|
153 |
+
*/
|
154 |
+
public static function group_label(array $form)
|
155 |
+
{
|
156 |
+
return $form['name'];
|
157 |
+
}
|
158 |
+
|
159 |
+
|
160 |
+
/**
|
161 |
+
* Process one page of export data
|
162 |
+
*
|
163 |
+
* @since 1.7.0
|
164 |
+
*
|
165 |
+
* @param string $email_address Email address to search PII by
|
166 |
+
* @param array $form The form configuration
|
167 |
+
* @param int $page Optional. Page of results to get. Default is 1.
|
168 |
+
* @return array
|
169 |
+
*/
|
170 |
+
public static function get_export_data($email_address, array $form, $page = 1)
|
171 |
+
{
|
172 |
+
if (!Caldera_Forms_Forms::is_privacy_export_enabled($form)) {
|
173 |
+
return [];
|
174 |
+
}
|
175 |
+
$results = self::get_results($email_address, $form, $page);
|
176 |
+
$export_items = [];
|
177 |
+
if (!static::done($results)) {
|
178 |
+
$pii_fields = Caldera_Forms_Forms::personally_identifying_fields($form, true);
|
179 |
+
/** @var Caldera_Forms_Entry_Field $field_value */
|
180 |
+
foreach ($results->get_fields() as $field_value) {
|
181 |
+
$entry_id = $field_value->entry_id;
|
182 |
+
$entry = Caldera_Forms::get_entry($entry_id, $form);
|
183 |
+
$data = [
|
184 |
+
[
|
185 |
+
'name' => self::find_field_name($form, $field_value->field_id),
|
186 |
+
'value' => $field_value->get_value()
|
187 |
+
],
|
188 |
+
[
|
189 |
+
'name' => __('Date', 'caldera-forms'),
|
190 |
+
'value' => $entry['date']
|
191 |
+
]
|
192 |
+
];
|
193 |
+
|
194 |
+
if (!empty($entry['user'])) {
|
195 |
+
if (!empty($entry['user']['name'])) {
|
196 |
+
$data[] = [
|
197 |
+
'name' => __('WordPress User Name', 'caldera-forms'),
|
198 |
+
'value' => $entry['user']['name']
|
199 |
+
];
|
200 |
+
}
|
201 |
+
if (!empty($entry['user']['email'])) {
|
202 |
+
$data[] = [
|
203 |
+
'name' => __('WordPress User Email', 'caldera-forms'),
|
204 |
+
'value' => $entry['user']['email']
|
205 |
+
];
|
206 |
+
}
|
207 |
+
}
|
208 |
+
|
209 |
+
if (!empty($pii_fields)) {
|
210 |
+
|
211 |
+
foreach ($pii_fields as $field_id) {
|
212 |
+
if (array_key_exists($field_id, $entry['data'])) {
|
213 |
+
$data[] = [
|
214 |
+
'name' => self::find_field_name($form, $field_id),
|
215 |
+
'value' => $entry['data'][$field_id]['value']
|
216 |
+
];
|
217 |
+
}
|
218 |
+
|
219 |
+
}
|
220 |
+
}
|
221 |
+
|
222 |
+
$export_items[] =[
|
223 |
+
'group_id' => static::group_id($form),
|
224 |
+
'group_label' => static::group_label($form, $field_value),
|
225 |
+
'item_id' => self::get_entry_id_from_result($field_value),
|
226 |
+
'data' => $data
|
227 |
+
];
|
228 |
+
}
|
229 |
+
|
230 |
+
}
|
231 |
+
|
232 |
+
return [
|
233 |
+
'data' => $export_items,
|
234 |
+
'done' => self::done($results),
|
235 |
+
];
|
236 |
+
}
|
237 |
+
|
238 |
+
/**
|
239 |
+
* Process one page of deletes
|
240 |
+
*
|
241 |
+
* @since 1.7.0
|
242 |
+
*
|
243 |
+
* @param string $email_address Email address to search PII by
|
244 |
+
* @param array $form The form configuration
|
245 |
+
*
|
246 |
+
* @return array
|
247 |
+
*/
|
248 |
+
public static function perform_erase($email_address, array $form)
|
249 |
+
{
|
250 |
+
if (!Caldera_Forms_Forms::is_privacy_export_enabled($form)) {
|
251 |
+
return [];
|
252 |
+
}
|
253 |
+
|
254 |
+
//always query for first page, because if this is page 2 of deletes, first page is already deleted
|
255 |
+
$results = self::get_results($email_address, $form, 1);
|
256 |
+
$messages = array();
|
257 |
+
$items_removed = false;
|
258 |
+
$items_retained = false;
|
259 |
+
if (!static::done($results)) {
|
260 |
+
$ids = [];
|
261 |
+
/** @var Caldera_Forms_Entry_Field $field_value */
|
262 |
+
foreach ($results->get_fields() as $field_value) {
|
263 |
+
$ids[] = static::get_entry_id_from_result($field_value);
|
264 |
+
|
265 |
+
}
|
266 |
+
Caldera_Forms_Entry_Bulk::delete_entries($ids);
|
267 |
+
$items_removed = true;
|
268 |
+
}
|
269 |
+
|
270 |
+
return [
|
271 |
+
'items_removed' => $items_removed,
|
272 |
+
'items_retained' => $items_retained,
|
273 |
+
'messages' => $messages,
|
274 |
+
'done' => static::done($results),
|
275 |
+
];
|
276 |
+
|
277 |
+
}
|
278 |
+
|
279 |
+
/**
|
280 |
+
* Get one page of results
|
281 |
+
*
|
282 |
+
* @since 1.7.0
|
283 |
+
*
|
284 |
+
* @param string $email_address Email address to search PII by.
|
285 |
+
* @param array $form The form configuration.
|
286 |
+
* @param int $page Page of results to get.
|
287 |
+
*
|
288 |
+
* @return Caldera_Forms_Entry_Fields
|
289 |
+
*/
|
290 |
+
public static function get_results($email_address, array $form, $page)
|
291 |
+
{
|
292 |
+
$pii_query = new Caldera_Forms_Query_Pii(
|
293 |
+
$form,
|
294 |
+
$email_address,
|
295 |
+
new Caldera_Forms_Query_Paginated($form, \calderawp\CalderaFormsQueries\CalderaFormsQueries())
|
296 |
+
);
|
297 |
+
$results = $pii_query->get_page($page);
|
298 |
+
return $results;
|
299 |
+
}
|
300 |
+
|
301 |
+
/**
|
302 |
+
* Given one result array, return entry ID
|
303 |
+
*
|
304 |
+
* @since 1.7.0
|
305 |
+
*
|
306 |
+
* @param Caldera_Forms_Entry_Field $result Result set
|
307 |
+
* @return string
|
308 |
+
*/
|
309 |
+
private static function get_entry_id_from_result($result)
|
310 |
+
{
|
311 |
+
return $result->entry_id;
|
312 |
+
}
|
313 |
+
|
314 |
+
/**
|
315 |
+
* Check if results are empty and therefore process is done
|
316 |
+
*
|
317 |
+
* @since 1.7.0
|
318 |
+
*
|
319 |
+
* @param $results
|
320 |
+
* @return bool
|
321 |
+
*/
|
322 |
+
protected static function done($results)
|
323 |
+
{
|
324 |
+
return 0 === $results->count();
|
325 |
+
}
|
326 |
+
|
327 |
+
/**
|
328 |
+
* Finds the name of a form field
|
329 |
+
*
|
330 |
+
* @since 1.7.0
|
331 |
+
*
|
332 |
+
* @param array $form
|
333 |
+
* @param $field_id
|
334 |
+
* @return string
|
335 |
+
*/
|
336 |
+
protected static function find_field_name(array $form, $field_id)
|
337 |
+
{
|
338 |
+
$field = Caldera_Forms_Field_Util::get_field($field_id, $form);
|
339 |
+
return is_array($field) && !empty($field['label']) ? $field['label'] : $field_id->slug;
|
340 |
+
}
|
341 |
+
|
342 |
+
}
|
classes/magic/doer.php
CHANGED
@@ -173,9 +173,6 @@ class Caldera_Forms_Magic_Doer {
|
|
173 |
public static function do_bracket_magic( $value, $form, $entry_id, $magic_caller, $referrer ){
|
174 |
global $processed_meta;
|
175 |
|
176 |
-
/**
|
177 |
-
*
|
178 |
-
*/
|
179 |
$form = self::filter_form( $form, $entry_id );
|
180 |
$magics = Caldera_Forms_Magic_Util::explode_bracket_magic( $value );
|
181 |
if ( ! empty( $magics[ 1 ] ) ) {
|
@@ -316,6 +313,7 @@ class Caldera_Forms_Magic_Doer {
|
|
316 |
case 'query_var' :
|
317 |
$magic_tag = get_query_var($magic[ 1 ]);
|
318 |
break;
|
|
|
319 |
}
|
320 |
} else {
|
321 |
switch ( $magic_tag ) {
|
@@ -379,6 +377,9 @@ class Caldera_Forms_Magic_Doer {
|
|
379 |
case 'current_url' :
|
380 |
$magic_tag = urldecode( caldera_forms_get_current_url() );
|
381 |
break;
|
|
|
|
|
|
|
382 |
}
|
383 |
|
384 |
}
|
173 |
public static function do_bracket_magic( $value, $form, $entry_id, $magic_caller, $referrer ){
|
174 |
global $processed_meta;
|
175 |
|
|
|
|
|
|
|
176 |
$form = self::filter_form( $form, $entry_id );
|
177 |
$magics = Caldera_Forms_Magic_Util::explode_bracket_magic( $value );
|
178 |
if ( ! empty( $magics[ 1 ] ) ) {
|
313 |
case 'query_var' :
|
314 |
$magic_tag = get_query_var($magic[ 1 ]);
|
315 |
break;
|
316 |
+
|
317 |
}
|
318 |
} else {
|
319 |
switch ( $magic_tag ) {
|
377 |
case 'current_url' :
|
378 |
$magic_tag = urldecode( caldera_forms_get_current_url() );
|
379 |
break;
|
380 |
+
case 'privacy_page':
|
381 |
+
$magic_tag = esc_url_raw(caldera_forms_privacy_policy_page_url());
|
382 |
+
break;
|
383 |
}
|
384 |
|
385 |
}
|
classes/query/paginated.php
ADDED
@@ -0,0 +1,250 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
use \calderawp\CalderaFormsQuery\Features\FeatureContainer as Queries;
|
3 |
+
use \calderawp\CalderaFormsQuery\Select\SelectQueryBuilder;
|
4 |
+
use \calderawp\CalderaFormsQuery\Select\EntryValues as EntryValueSelect;
|
5 |
+
|
6 |
+
/**
|
7 |
+
* Class Caldera_Forms_Query_Paginated
|
8 |
+
*
|
9 |
+
* Does paginated queries. Shows all values.
|
10 |
+
*/
|
11 |
+
class Caldera_Forms_Query_Paginated implements Caldera_Forms_Query_Paginates
|
12 |
+
{
|
13 |
+
|
14 |
+
/**
|
15 |
+
* CalderaFormsQueries FeatureContainer
|
16 |
+
*
|
17 |
+
* @since 1.7.0
|
18 |
+
*
|
19 |
+
* @var Queries|null
|
20 |
+
*/
|
21 |
+
private $queries;
|
22 |
+
|
23 |
+
/**
|
24 |
+
* Current page of results
|
25 |
+
*
|
26 |
+
* @since 1.7.0
|
27 |
+
*
|
28 |
+
* @var int
|
29 |
+
*/
|
30 |
+
private $page;
|
31 |
+
|
32 |
+
/**
|
33 |
+
* Current limit/per page value
|
34 |
+
*
|
35 |
+
* @since 1.7.0
|
36 |
+
*
|
37 |
+
* @var int
|
38 |
+
*/
|
39 |
+
private $limit;
|
40 |
+
|
41 |
+
/**
|
42 |
+
* Form configuration
|
43 |
+
*
|
44 |
+
* @since 1.7.0
|
45 |
+
*
|
46 |
+
*
|
47 |
+
* @var array
|
48 |
+
*/
|
49 |
+
private $form;
|
50 |
+
/**
|
51 |
+
* Entry IDs of this form
|
52 |
+
*
|
53 |
+
* @since 1.7.0
|
54 |
+
*
|
55 |
+
* @var array
|
56 |
+
*/
|
57 |
+
private $entry_ids;
|
58 |
+
|
59 |
+
/**
|
60 |
+
* Caldera_Forms_Query_Paginated constructor.
|
61 |
+
*
|
62 |
+
* @since 1.7.0
|
63 |
+
*
|
64 |
+
* @param array $form The form configuration
|
65 |
+
* @param Queries|null $queries Optional. Caldera Forms Query Tool feature container. Default is null.
|
66 |
+
* @param int $page Optional. Page of results to get. Default is 1.
|
67 |
+
* @param int $limit Optional. Total entries per page of results. Default is 25.
|
68 |
+
*/
|
69 |
+
public function __construct(array $form, Queries $queries = null, $page = 1, $limit = 25 )
|
70 |
+
{
|
71 |
+
$this->queries = is_null($queries) ? \calderawp\CalderaFormsQueries\CalderaFormsQueries() : $queries;
|
72 |
+
$this->form = $form;
|
73 |
+
$this->page = $this->set_page( $page );
|
74 |
+
$this->set_limit( $limit );
|
75 |
+
}
|
76 |
+
|
77 |
+
|
78 |
+
/**
|
79 |
+
* Select by entry IDs
|
80 |
+
*
|
81 |
+
* @since 1.7.0
|
82 |
+
*
|
83 |
+
* @param array $ids List of entry ids to select by
|
84 |
+
*
|
85 |
+
* @return array
|
86 |
+
*/
|
87 |
+
public function select_by_entry_ids( array $ids )
|
88 |
+
{
|
89 |
+
|
90 |
+
$entries = $this
|
91 |
+
->get_queries_container()
|
92 |
+
->collectResults(
|
93 |
+
$this
|
94 |
+
->select(
|
95 |
+
$this
|
96 |
+
->queries
|
97 |
+
->getQueries()
|
98 |
+
->entrySelect()
|
99 |
+
->in( $ids )
|
100 |
+
)
|
101 |
+
);
|
102 |
+
|
103 |
+
|
104 |
+
return $entries;
|
105 |
+
|
106 |
+
}
|
107 |
+
|
108 |
+
/** @inheritdoc */
|
109 |
+
public function select_values_for_form( EntryValueSelect $entry_value_select )
|
110 |
+
{
|
111 |
+
|
112 |
+
if (! empty( $this->get_entry_ids_of_form() )) {
|
113 |
+
$entry_value_select
|
114 |
+
->in($this->get_entry_ids_of_form(), 'entry_id')
|
115 |
+
->addPagination($this->get_page(), $this->get_limit());
|
116 |
+
$results = $this->select($entry_value_select);
|
117 |
+
}else{
|
118 |
+
$results = [];
|
119 |
+
}
|
120 |
+
$fields = new Caldera_Forms_Entry_Fields( $this->form, $results );
|
121 |
+
return $fields;
|
122 |
+
|
123 |
+
}
|
124 |
+
|
125 |
+
/** @inheritdoc */
|
126 |
+
public function get_queries_container(){
|
127 |
+
return $this
|
128 |
+
->queries;
|
129 |
+
}
|
130 |
+
/** @inheritdoc */
|
131 |
+
public function get_page()
|
132 |
+
{
|
133 |
+
return ! is_numeric( $this->page) ? 1 :$this->page;
|
134 |
+
}
|
135 |
+
|
136 |
+
/** @inheritdoc */
|
137 |
+
public function get_limit()
|
138 |
+
{
|
139 |
+
return ! is_numeric( $this->limit) ? 25 :$this->limit;
|
140 |
+
}
|
141 |
+
|
142 |
+
/** @inheritdoc */
|
143 |
+
public function set_page($page)
|
144 |
+
{
|
145 |
+
|
146 |
+
$this->page = caldera_forms_validate_number( $page, 1, 20000 );
|
147 |
+
return $this;
|
148 |
+
}
|
149 |
+
|
150 |
+
/** @inheritdoc */
|
151 |
+
public function set_limit($limit)
|
152 |
+
{
|
153 |
+
$this->limit = caldera_forms_validate_number( $limit, 25, 100 );
|
154 |
+
return $this;
|
155 |
+
}
|
156 |
+
|
157 |
+
|
158 |
+
/**
|
159 |
+
* Get entry IDs of all entries of this form
|
160 |
+
*
|
161 |
+
* Acts as lazy-setter for entry_ids property
|
162 |
+
*
|
163 |
+
* @since 1.7.0
|
164 |
+
*
|
165 |
+
* @return array
|
166 |
+
*/
|
167 |
+
protected function get_entry_ids_of_form(){
|
168 |
+
if( ! $this->entry_ids ){
|
169 |
+
$this->find_entry_ids_of_form();
|
170 |
+
}
|
171 |
+
return $this->entry_ids;
|
172 |
+
|
173 |
+
}
|
174 |
+
|
175 |
+
/**
|
176 |
+
* Finds the entry IDs of all entries of this form by querying the database
|
177 |
+
*
|
178 |
+
* Acts as setter for entry_ids property
|
179 |
+
*
|
180 |
+
* @since 1.7.0
|
181 |
+
*
|
182 |
+
* @return array
|
183 |
+
*/
|
184 |
+
protected function find_entry_ids_of_form()
|
185 |
+
{
|
186 |
+
$real_page = $this->page;
|
187 |
+
$real_limit = $this->limit;
|
188 |
+
$this->page = 1;
|
189 |
+
$this->limit = $this->find_count();
|
190 |
+
$results = $this->select_all();
|
191 |
+
$this->page = $real_page;
|
192 |
+
$this->limit = $real_limit;
|
193 |
+
if( empty( $results ) ){
|
194 |
+
$this->entry_ids = [];
|
195 |
+
}else{
|
196 |
+
foreach ( $results as $result ){
|
197 |
+
$this->entry_ids[] = intval($result->id);
|
198 |
+
}
|
199 |
+
sort($this->entry_ids );
|
200 |
+
}
|
201 |
+
return $this->entry_ids;
|
202 |
+
}
|
203 |
+
|
204 |
+
/**
|
205 |
+
* Find total number of entries for this form
|
206 |
+
*
|
207 |
+
* @since 1.7.0
|
208 |
+
*
|
209 |
+
* @return int
|
210 |
+
*/
|
211 |
+
protected function find_count()
|
212 |
+
{
|
213 |
+
return Caldera_Forms_Entry_Bulk::count($this->form[ 'ID' ] );
|
214 |
+
}
|
215 |
+
|
216 |
+
|
217 |
+
/**
|
218 |
+
* Get results of select query
|
219 |
+
*
|
220 |
+
* @since 1.7.0
|
221 |
+
*
|
222 |
+
* @param SelectQueryBuilder $query
|
223 |
+
*
|
224 |
+
* @return stdClass[]
|
225 |
+
*/
|
226 |
+
protected function select(SelectQueryBuilder $query )
|
227 |
+
{
|
228 |
+
return $this->queries->getQueries()->select( $query );
|
229 |
+
}
|
230 |
+
|
231 |
+
/**
|
232 |
+
* Queries for all entries of this form, given current pagination
|
233 |
+
*
|
234 |
+
* @since 1.7.0
|
235 |
+
*
|
236 |
+
* @return stdClass[]
|
237 |
+
*/
|
238 |
+
public function select_all()
|
239 |
+
{
|
240 |
+
$entry_select = $this->queries
|
241 |
+
->getQueries()
|
242 |
+
->entrySelect()
|
243 |
+
->is('form_id', $this->form['ID'])
|
244 |
+
->addPagination($this->get_page(), $this->get_limit());
|
245 |
+
|
246 |
+
return $this->select($entry_select);
|
247 |
+
|
248 |
+
}
|
249 |
+
|
250 |
+
}
|
classes/query/paginates.php
ADDED
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
use calderawp\CalderaFormsQuery\Features\FeatureContainer;
|
3 |
+
use \calderawp\CalderaFormsQuery\Select\EntryValues as EntryValueSelect;
|
4 |
+
|
5 |
+
/**
|
6 |
+
* Interface Caldera_Forms_Query_Paginates
|
7 |
+
*
|
8 |
+
* A common interface for classes that perform paginated queries using CalderaFormsQueries FeatureContainer
|
9 |
+
*/
|
10 |
+
interface Caldera_Forms_Query_Paginates
|
11 |
+
{
|
12 |
+
|
13 |
+
/**
|
14 |
+
* Get the page property
|
15 |
+
*
|
16 |
+
* @since 1.7.0
|
17 |
+
*
|
18 |
+
* @return int
|
19 |
+
*/
|
20 |
+
public function get_page();
|
21 |
+
|
22 |
+
/**
|
23 |
+
* Get the limit/ per page property
|
24 |
+
*
|
25 |
+
* @since 1.7.0
|
26 |
+
*
|
27 |
+
* @return int
|
28 |
+
*/
|
29 |
+
public function get_limit();
|
30 |
+
|
31 |
+
/**
|
32 |
+
* Set the page property
|
33 |
+
*
|
34 |
+
* @since 1.7.0
|
35 |
+
*
|
36 |
+
* @param int $page
|
37 |
+
* @return $this
|
38 |
+
*/
|
39 |
+
public function set_page($page);
|
40 |
+
|
41 |
+
|
42 |
+
/**
|
43 |
+
* (re)Set the limit/ per page property
|
44 |
+
*
|
45 |
+
* @since 1.7.0
|
46 |
+
*
|
47 |
+
* @param int $limit
|
48 |
+
* @return $this
|
49 |
+
*/
|
50 |
+
public function set_limit($limit);
|
51 |
+
|
52 |
+
|
53 |
+
/**
|
54 |
+
* Get CalderaFormsQueries FeatureContainer
|
55 |
+
*
|
56 |
+
* @since 1.7.0
|
57 |
+
*
|
58 |
+
* @return FeatureContainer
|
59 |
+
*/
|
60 |
+
public function get_queries_container();
|
61 |
+
|
62 |
+
|
63 |
+
/**
|
64 |
+
* Query for entry values from entries of this form
|
65 |
+
*
|
66 |
+
* @since 1.7.0
|
67 |
+
*
|
68 |
+
* @param EntryValueSelect $entry_value_select
|
69 |
+
* @return Caldera_Forms_Entry_Fields
|
70 |
+
*/
|
71 |
+
public function select_values_for_form( EntryValueSelect $entry_value_select );
|
72 |
+
}
|
classes/query/pii.php
ADDED
@@ -0,0 +1,137 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Class Caldera_Forms_Query_Pii
|
5 |
+
*
|
6 |
+
* Queries for saved values of a form that are PII for a given email.
|
7 |
+
* Decorates Caldera_Forms_Query_Paginated and reduces results to PII fields only.
|
8 |
+
*/
|
9 |
+
class Caldera_Forms_Query_Pii
|
10 |
+
{
|
11 |
+
/**
|
12 |
+
* The form configuration
|
13 |
+
*
|
14 |
+
* @since 1.7.0
|
15 |
+
*
|
16 |
+
* @var array $form
|
17 |
+
*/
|
18 |
+
protected $form;
|
19 |
+
|
20 |
+
/**
|
21 |
+
* The email address to search by
|
22 |
+
*
|
23 |
+
* @since 1.7.0
|
24 |
+
*
|
25 |
+
* @var string
|
26 |
+
*/
|
27 |
+
protected $email;
|
28 |
+
|
29 |
+
/**
|
30 |
+
* Paginated query
|
31 |
+
*
|
32 |
+
* @since 1.7.0
|
33 |
+
*
|
34 |
+
* @var Caldera_Forms_Query_Paginated
|
35 |
+
*/
|
36 |
+
protected $paginated;
|
37 |
+
|
38 |
+
/**
|
39 |
+
*
|
40 |
+
* @since 1.7.0
|
41 |
+
*
|
42 |
+
* @var int
|
43 |
+
*/
|
44 |
+
protected $limit;
|
45 |
+
|
46 |
+
/**
|
47 |
+
* Caldera_Forms_Query_Pii constructor.
|
48 |
+
*
|
49 |
+
* @since 1.7.0
|
50 |
+
*
|
51 |
+
* @param array $form The form configuration
|
52 |
+
* @param string $email Email address to search PII by
|
53 |
+
* @param Caldera_Forms_Query_Paginates $paginated
|
54 |
+
* @param int $limit Optional. Total entries per page of results. Default is 25.
|
55 |
+
*/
|
56 |
+
public function __construct(array $form, $email, Caldera_Forms_Query_Paginates $paginated, $limit = 25)
|
57 |
+
{
|
58 |
+
$this->form = $form;
|
59 |
+
$this->email = sanitize_email($email);
|
60 |
+
$this->paginated = $paginated;
|
61 |
+
$this->limit = caldera_forms_validate_number( $limit, 25, 100 );
|
62 |
+
}
|
63 |
+
|
64 |
+
/**
|
65 |
+
* Get one page of results
|
66 |
+
*
|
67 |
+
* @since 1.7.0
|
68 |
+
*
|
69 |
+
* @param int $page Which page of results?
|
70 |
+
* @return Caldera_Forms_Entry_Fields
|
71 |
+
*/
|
72 |
+
public function get_page($page)
|
73 |
+
{
|
74 |
+
return $this->find_entries($page);
|
75 |
+
|
76 |
+
}
|
77 |
+
|
78 |
+
/**
|
79 |
+
* Given an array of entry IDs, reduce to personally identifying fields only
|
80 |
+
*
|
81 |
+
* @since 1.7.0
|
82 |
+
*
|
83 |
+
* @param array $ids
|
84 |
+
* @return array
|
85 |
+
*/
|
86 |
+
public function reduce_results_to_pii(array $ids)
|
87 |
+
{
|
88 |
+
$results = [];
|
89 |
+
foreach ($ids as $entry_id) {
|
90 |
+
$entry = new Caldera_Forms_Entry($this->form, $entry_id);
|
91 |
+
$entry->get_fields();
|
92 |
+
$results[ $entry_id ] = [];
|
93 |
+
/** @var Caldera_Forms_Entry_Field $field_value */
|
94 |
+
foreach ($entry->get_fields() as $field_value) {
|
95 |
+
$results[ $entry_id ][$field_value->field_id] = [];
|
96 |
+
|
97 |
+
if (Caldera_Forms_Field_Util::is_personally_identifying($field_value->field_id, $this->form)
|
98 |
+
|| Caldera_Forms_Field_Util::is_email_identifying_field($field_value->field_id, $this->form)
|
99 |
+
) {
|
100 |
+
$results[ $entry_id ][$field_value->field_id] = $field_value->get_value();
|
101 |
+
}
|
102 |
+
|
103 |
+
|
104 |
+
}
|
105 |
+
|
106 |
+
}
|
107 |
+
|
108 |
+
return $results;
|
109 |
+
|
110 |
+
}
|
111 |
+
|
112 |
+
/**
|
113 |
+
* Finds entries belonging to this
|
114 |
+
*
|
115 |
+
* @since 1.7.0
|
116 |
+
*
|
117 |
+
* @param int $page Which page of results?
|
118 |
+
* @return array
|
119 |
+
*/
|
120 |
+
private function find_entries($page)
|
121 |
+
{
|
122 |
+
$featureContainer = \calderawp\CalderaFormsQueries\CalderaFormsQueries();
|
123 |
+
$entryValueSelect = $featureContainer
|
124 |
+
->getQueries()
|
125 |
+
->entryValuesSelect();
|
126 |
+
foreach (Caldera_Forms_Forms::email_identifying_fields($this->form) as $field) {
|
127 |
+
$entryValueSelect->is('value', $this->email);
|
128 |
+
}
|
129 |
+
|
130 |
+
return $this
|
131 |
+
->paginated
|
132 |
+
->set_page($page)
|
133 |
+
->set_limit($this->limit)
|
134 |
+
->select_values_for_form($entryValueSelect);
|
135 |
+
}
|
136 |
+
|
137 |
+
}
|
classes/render/assets.php
CHANGED
@@ -291,10 +291,11 @@ class Caldera_Forms_Render_Assets {
|
|
291 |
'state-state' => self::make_url( 'state/state' ),
|
292 |
'blocks' => self::make_url( 'blocks'),
|
293 |
'editor' => self::make_url( 'editor' ),
|
294 |
-
'pro' => self::make_url( 'pro' )
|
|
|
295 |
);
|
296 |
|
297 |
-
$script_urls[ 'fields' ] = $script_urls[ '
|
298 |
|
299 |
return $script_urls;
|
300 |
}
|
@@ -459,6 +460,9 @@ class Caldera_Forms_Render_Assets {
|
|
459 |
* @param array $depts Optional. Array of dependencies. Default is jQuery
|
460 |
*/
|
461 |
public static function enqueue_script( $script, $depts = array( 'jquery' ) ){
|
|
|
|
|
|
|
462 |
if( in_array( $script, array( 'validator', self::make_slug( 'validator' ) ) ) ){
|
463 |
$scripts = self::get_core_scripts();
|
464 |
wp_enqueue_script( self::make_slug( 'validator' ), $scripts[ 'validator' ], array(), CFCORE_VER, false );
|
@@ -551,7 +555,7 @@ class Caldera_Forms_Render_Assets {
|
|
551 |
* @return bool
|
552 |
*/
|
553 |
public static function is_client_entry_point( $slug ){
|
554 |
-
return in_array( $slug, array( 'blocks', 'pro' ) );
|
555 |
}
|
556 |
|
557 |
/**
|
@@ -634,7 +638,7 @@ class Caldera_Forms_Render_Assets {
|
|
634 |
*/
|
635 |
public static function maybe_register() {
|
636 |
if ( ! did_action( 'caldera_forms_assets_registered' ) ) {
|
637 |
-
|
638 |
}
|
639 |
}
|
640 |
|
291 |
'state-state' => self::make_url( 'state/state' ),
|
292 |
'blocks' => self::make_url( 'blocks'),
|
293 |
'editor' => self::make_url( 'editor' ),
|
294 |
+
'pro' => self::make_url( 'pro' ),
|
295 |
+
'privacy' => self::make_url( 'privacy' )
|
296 |
);
|
297 |
|
298 |
+
$script_urls[ 'fields' ] = $script_urls[ 'privacy' ];
|
299 |
|
300 |
return $script_urls;
|
301 |
}
|
460 |
* @param array $depts Optional. Array of dependencies. Default is jQuery
|
461 |
*/
|
462 |
public static function enqueue_script( $script, $depts = array( 'jquery' ) ){
|
463 |
+
if( 'editor-grid' === $script ){
|
464 |
+
return Caldera_Forms_Admin_Assets::enqueue_script( $script );
|
465 |
+
}
|
466 |
if( in_array( $script, array( 'validator', self::make_slug( 'validator' ) ) ) ){
|
467 |
$scripts = self::get_core_scripts();
|
468 |
wp_enqueue_script( self::make_slug( 'validator' ), $scripts[ 'validator' ], array(), CFCORE_VER, false );
|
555 |
* @return bool
|
556 |
*/
|
557 |
public static function is_client_entry_point( $slug ){
|
558 |
+
return in_array( $slug, array( 'blocks', 'pro', 'privacy' ) );
|
559 |
}
|
560 |
|
561 |
/**
|
638 |
*/
|
639 |
public static function maybe_register() {
|
640 |
if ( ! did_action( 'caldera_forms_assets_registered' ) ) {
|
641 |
+
self::register();
|
642 |
}
|
643 |
}
|
644 |
|
clients/blocks/README.md
DELETED
@@ -1,13 +0,0 @@
|
|
1 |
-
# Caldera Forms Blocks
|
2 |
-
This client is used for the block UI
|
3 |
-
|
4 |
-
## Blocks
|
5 |
-
|
6 |
-
### Form
|
7 |
-
This block shows a form.
|
8 |
-
|
9 |
-
## Enqueue Assets
|
10 |
-
```php
|
11 |
-
Caldera_Forms_Render_Assets::enqueue_script( 'blocks' );
|
12 |
-
Caldera_Forms_Render_Assets::enqueue_style( 'blocks' );
|
13 |
-
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
clients/blocks/build/index.min.js
CHANGED
@@ -1 +1,4297 @@
|
|
1 |
-
this.calderaForms=this.calderaForms||{},this.calderaForms.blocks=function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var r={};return e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=194)}([,,function(t,e){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(t,e,r){var n=r(41)("wks"),o=r(30),i=r(2).Symbol,u="function"==typeof i;(t.exports=function(t){return n[t]||(n[t]=u&&i[t]||(u?i:o)("Symbol."+t))}).store=n},,function(t,e){var r=t.exports={version:"2.5.5"};"number"==typeof __e&&(__e=r)},,function(t,e,r){var n=r(10);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},function(t,e,r){var n=r(9),o=r(29);t.exports=r(11)?function(t,e,r){return n.f(t,e,o(1,r))}:function(t,e,r){return t[e]=r,t}},function(t,e,r){var n=r(7),o=r(54),i=r(39),u=Object.defineProperty;e.f=r(11)?Object.defineProperty:function(t,e,r){if(n(t),e=i(e,!0),n(r),o)try{return u(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,r){t.exports=!r(17)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},function(t,e,r){var n=r(2),o=r(5),i=r(27),u=r(8),c=r(12),a=function(t,e,r){var f,s,l,p=t&a.F,h=t&a.G,v=t&a.S,d=t&a.P,m=t&a.B,y=t&a.W,g=h?o:o[e]||(o[e]={}),w=g.prototype,_=h?n:v?n[e]:(n[e]||{}).prototype;h&&(r=e);for(f in r)(s=!p&&_&&void 0!==_[f])&&c(g,f)||(l=s?_[f]:r[f],g[f]=h&&"function"!=typeof _[f]?r[f]:m&&s?i(l,n):y&&_[f]==l?function(t){var e=function(e,r,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,r)}return new t(e,r,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(l):d&&"function"==typeof l?i(Function.call,l):l,d&&((g.virtual||(g.virtual={}))[f]=l,t&a.R&&w&&!w[f]&&u(w,f,l)))};a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},,function(t,e,r){var n=r(58),o=r(37);t.exports=function(t){return n(o(t))}},,function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},,,,function(t,e){t.exports={}},function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},,function(t,e,r){var n=r(57),o=r(42);t.exports=Object.keys||function(t){return n(t,o)}},,function(t,e){t.exports=!0},function(t,e,r){var n=r(28);t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,o){return t.call(e,r,n,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var r=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+n).toString(36))}},function(t,e,r){var n=r(9).f,o=r(12),i=r(3)("toStringTag");t.exports=function(t,e,r){t&&!o(t=r?t:t.prototype,i)&&n(t,i,{configurable:!0,value:e})}},function(t,e){e.f={}.propertyIsEnumerable},,function(t,e,r){"use strict";e.__esModule=!0;var n=r(107),o=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=o.default||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}},,function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:r)(t)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,r){var n=r(10),o=r(2).document,i=n(o)&&n(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,r){var n=r(10);t.exports=function(t,e){if(!n(t))return t;var r,o;if(e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!n(o=r.call(t)))return o;if(!e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,r){var n=r(41)("keys"),o=r(30);t.exports=function(t){return n[t]||(n[t]=o(t))}},function(t,e,r){var n=r(2),o=n["__core-js_shared__"]||(n["__core-js_shared__"]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,r){"use strict";function n(t){var e,r;this.promise=new t(function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n}),this.resolve=o(e),this.reject=o(r)}var o=r(28);t.exports.f=function(t){return new n(t)}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,r){e.f=r(3)},function(t,e,r){var n=r(2),o=r(5),i=r(26),u=r(45),c=r(9).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||c(e,t,{value:u.f(t)})}},,function(t,e,r){var n=r(37);t.exports=function(t){return Object(n(t))}},,,function(t,e){},function(t,e,r){"use strict";var n=r(85)(!0);r(53)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,r=this._i;return r>=e.length?{value:void 0,done:!0}:(t=n(e,r),this._i+=t.length,{value:t,done:!1})})},function(t,e,r){"use strict";var n=r(26),o=r(13),i=r(55),u=r(8),c=r(21),a=r(86),f=r(31),s=r(90),l=r(3)("iterator"),p=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(t,e,r,v,d,m,y){a(r,e,v);var g,w,_,b=function(t){if(!p&&t in j)return j[t];switch(t){case"keys":case"values":return function(){return new r(this,t)}}return function(){return new r(this,t)}},x=e+" Iterator",O="values"==d,S=!1,j=t.prototype,E=j[l]||j["@@iterator"]||d&&j[d],P=E||b(d),F=d?O?b("entries"):P:void 0,L="Array"==e?j.entries||E:E;if(L&&(_=s(L.call(new t)))!==Object.prototype&&_.next&&(f(_,x,!0),n||"function"==typeof _[l]||u(_,l,h)),O&&E&&"values"!==E.name&&(S=!0,P=function(){return E.call(this)}),n&&!y||!p&&!S&&j[l]||u(j,l,P),c[e]=P,c[x]=h,d)if(g={values:O?P:b("values"),keys:m?P:b("keys"),entries:F},y)for(w in g)w in j||i(j,w,g[w]);else o(o.P+o.F*(p||S),e,g);return g}},function(t,e,r){t.exports=!r(11)&&!r(17)(function(){return 7!=Object.defineProperty(r(38)("div"),"a",{get:function(){return 7}}).a})},function(t,e,r){t.exports=r(8)},function(t,e,r){var n=r(7),o=r(87),i=r(42),u=r(40)("IE_PROTO"),c=function(){},a=function(){var t,e=r(38)("iframe"),n=i.length;for(e.style.display="none",r(60).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),a=t.F;n--;)delete a.prototype[i[n]];return a()};t.exports=Object.create||function(t,e){var r;return null!==t?(c.prototype=n(t),r=new c,c.prototype=null,r[u]=t):r=a(),void 0===e?r:o(r,e)}},function(t,e,r){var n=r(12),o=r(15),i=r(88)(!1),u=r(40)("IE_PROTO");t.exports=function(t,e){var r,c=o(t),a=0,f=[];for(r in c)r!=u&&n(c,r)&&f.push(r);for(;e.length>a;)n(c,r=e[a++])&&(~i(f,r)||f.push(r));return f}},function(t,e,r){var n=r(22);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},function(t,e,r){var n=r(36),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},function(t,e,r){var n=r(2).document;t.exports=n&&n.documentElement},function(t,e,r){r(91);for(var n=r(2),o=r(8),i=r(21),u=r(3)("toStringTag"),c="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),a=0;a<c.length;a++){var f=c[a],s=n[f],l=s&&s.prototype;l&&!l[u]&&o(l,u,f),i[f]=i.Array}},function(t,e,r){var n=r(22),o=r(3)("toStringTag"),i="Arguments"==n(function(){return arguments}()),u=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,r,c;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=u(e=Object(t),o))?r:i?n(e):"Object"==(c=n(e))&&"function"==typeof e.callee?"Arguments":c}},function(t,e,r){var n=r(7),o=r(28),i=r(3)("species");t.exports=function(t,e){var r,u=n(t).constructor;return void 0===u||void 0==(r=n(u)[i])?e:o(r)}},function(t,e,r){var n,o,i,u=r(27),c=r(100),a=r(60),f=r(38),s=r(2),l=s.process,p=s.setImmediate,h=s.clearImmediate,v=s.MessageChannel,d=s.Dispatch,m=0,y={},g=function(){var t=+this;if(y.hasOwnProperty(t)){var e=y[t];delete y[t],e()}},w=function(t){g.call(t.data)};p&&h||(p=function(t){for(var e=[],r=1;arguments.length>r;)e.push(arguments[r++]);return y[++m]=function(){c("function"==typeof t?t:Function(t),e)},n(m),m},h=function(t){delete y[t]},"process"==r(22)(l)?n=function(t){l.nextTick(u(g,t,1))}:d&&d.now?n=function(t){d.now(u(g,t,1))}:v?(o=new v,i=o.port2,o.port1.onmessage=w,n=u(i.postMessage,i,1)):s.addEventListener&&"function"==typeof postMessage&&!s.importScripts?(n=function(t){s.postMessage(t+"","*")},s.addEventListener("message",w,!1)):n="onreadystatechange"in f("script")?function(t){a.appendChild(f("script")).onreadystatechange=function(){a.removeChild(this),g.call(t)}}:function(t){setTimeout(u(g,t,1),0)}),t.exports={set:p,clear:h}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,r){var n=r(7),o=r(10),i=r(43);t.exports=function(t,e){if(n(t),o(e)&&e.constructor===t)return e;var r=i.f(t);return(0,r.resolve)(e),r.promise}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=r(111),i=n(o),u=r(113),c=n(u),a="function"==typeof c.default&&"symbol"==typeof i.default?function(t){return typeof t}:function(t){return t&&"function"==typeof c.default&&t.constructor===c.default&&t!==c.default.prototype?"symbol":typeof t};e.default="function"==typeof c.default&&"symbol"===a(i.default)?function(t){return void 0===t?"undefined":a(t)}:function(t){return t&&"function"==typeof c.default&&t.constructor===c.default&&t!==c.default.prototype?"symbol":void 0===t?"undefined":a(t)}},function(t,e,r){var n=r(57),o=r(42).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},,,,,,,,,,,,,,function(t,e,r){"use strict";r.d(e,"a",function(){return v}),r.d(e,"c",function(){return x}),r.d(e,"b",function(){return O});var n=r(195),o=r.n(n),i=r(198),u=r.n(i),c=r(34),a=r.n(c),f=r(67),s=r.n(f),l=wp,p=(l.apiRequest,wp.data),h=(p.registerStore,p.dispatch),v="caldera-forms/forms",d="object"===("undefined"==typeof CF_FORMS?"undefined":s()(CF_FORMS))?CF_FORMS:[],m="object"===("undefined"==typeof CF_ADMIN?"undefined":s()(CF_ADMIN))?CF_ADMIN:{},y={forms:d.forms,formPreviews:{}},g=function(t,e){return"object"===(void 0===t?"undefined":s()(t))&&(t.hasOwnProperty("ID")?e===t.ID:!!t.hasOwnProperty("formId")&&e===t.formId)},w=function(t,e){return t.forms.find(function(t){return g(t,e)})},_=function(t,e){return t.forms.findIndex(function(t){return g(t,e)})},b=[],x=function(t,e){"false"!==e&&b.includes(e)||(b.push(e),wp.apiRequest({url:""+m.api.form+e+"?preview=true",method:"GET",cache:!0}).then(function(t){h(v).addFormPreview(e,t)}))},O={reducer:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:y,e=arguments[1];switch(e.type){case"SET_FORMS":return a()({},t,{forms:e.forms});case"ADD_FORM_PREVIEW":return t.formPreviews[e.formId]=e.preview,a()({},t,{formPreviews:t.formPreviews});case"SET_FORM":var r=t.forms,n=_(t,e.form.ID);return-1<=n?r.splice(n,1,e.form):r.push(e.form),a()({},t,{forms:r})}return t},actions:{setForm:function(t){return{type:"SET_FORM",form:t}},setForms:function(t){return{type:"SET_FORMS",forms:t}},addFormPreview:function(t,e){return{type:"ADD_FORM_PREVIEW",formId:t,preview:e}}},selectors:{getForm:function(t,e){return w(t,e)},getForms:function(t){return t.forms},getFormPreview:function(t,e){return t.formPreviews.hasOwnProperty(e)?t.formPreviews[e]:""},getFormPreviews:function(t){return t.formPreviews}},resolvers:{getForm:function(){function t(t,r){return e.apply(this,arguments)}var e=u()(o.a.mark(function t(e,r){var n;return o.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,wp.apiRequest({url:""+m.api.form+r+"?preview=false",method:"GET",cache:!0});case 2:n=t.sent,h(v).setForm(n);case 4:case"end":return t.stop()}},t,this)}));return t}()}}},function(t,e,r){t.exports={default:r(84),__esModule:!0}},function(t,e,r){r(51),r(52),r(61),r(94),r(105),r(106),t.exports=r(5).Promise},function(t,e,r){var n=r(36),o=r(37);t.exports=function(t){return function(e,r){var i,u,c=String(o(e)),a=n(r),f=c.length;return a<0||a>=f?t?"":void 0:(i=c.charCodeAt(a),i<55296||i>56319||a+1===f||(u=c.charCodeAt(a+1))<56320||u>57343?t?c.charAt(a):i:t?c.slice(a,a+2):u-56320+(i-55296<<10)+65536)}}},function(t,e,r){"use strict";var n=r(56),o=r(29),i=r(31),u={};r(8)(u,r(3)("iterator"),function(){return this}),t.exports=function(t,e,r){t.prototype=n(u,{next:o(1,r)}),i(t,e+" Iterator")}},function(t,e,r){var n=r(9),o=r(7),i=r(24);t.exports=r(11)?Object.defineProperties:function(t,e){o(t);for(var r,u=i(e),c=u.length,a=0;c>a;)n.f(t,r=u[a++],e[r]);return t}},function(t,e,r){var n=r(15),o=r(59),i=r(89);t.exports=function(t){return function(e,r,u){var c,a=n(e),f=o(a.length),s=i(u,f);if(t&&r!=r){for(;f>s;)if((c=a[s++])!=c)return!0}else for(;f>s;s++)if((t||s in a)&&a[s]===r)return t||s||0;return!t&&-1}}},function(t,e,r){var n=r(36),o=Math.max,i=Math.min;t.exports=function(t,e){return t=n(t),t<0?o(t+e,0):i(t,e)}},function(t,e,r){var n=r(12),o=r(48),i=r(40)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),n(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,e,r){"use strict";var n=r(92),o=r(93),i=r(21),u=r(15);t.exports=r(53)(Array,"Array",function(t,e){this._t=u(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,o(1)):"keys"==e?o(0,r):"values"==e?o(0,t[r]):o(0,[r,t[r]])},"values"),i.Arguments=i.Array,n("keys"),n("values"),n("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,r){"use strict";var n,o,i,u,c=r(26),a=r(2),f=r(27),s=r(62),l=r(13),p=r(10),h=r(28),v=r(95),d=r(96),m=r(63),y=r(64).set,g=r(101)(),w=r(43),_=r(65),b=r(66),x=a.TypeError,O=a.process,S=a.Promise,j="process"==s(O),E=function(){},P=o=w.f,F=!!function(){try{var t=S.resolve(1),e=(t.constructor={})[r(3)("species")]=function(t){t(E,E)};return(j||"function"==typeof PromiseRejectionEvent)&&t.then(E)instanceof e}catch(t){}}(),L=function(t){var e;return!(!p(t)||"function"!=typeof(e=t.then))&&e},M=function(t,e){if(!t._n){t._n=!0;var r=t._c;g(function(){for(var n=t._v,o=1==t._s,i=0;r.length>i;)!function(e){var r,i,u,c=o?e.ok:e.fail,a=e.resolve,f=e.reject,s=e.domain;try{c?(o||(2==t._h&&k(t),t._h=1),!0===c?r=n:(s&&s.enter(),r=c(n),s&&(s.exit(),u=!0)),r===e.promise?f(x("Promise-chain cycle")):(i=L(r))?i.call(r,a,f):a(r)):f(n)}catch(t){s&&!u&&s.exit(),f(t)}}(r[i++]);t._c=[],t._n=!1,e&&!t._h&&I(t)})}},I=function(t){y.call(a,function(){var e,r,n,o=t._v,i=T(t);if(i&&(e=_(function(){j?O.emit("unhandledRejection",o,t):(r=a.onunhandledrejection)?r({promise:t,reason:o}):(n=a.console)&&n.error&&n.error("Unhandled promise rejection",o)}),t._h=j||T(t)?2:1),t._a=void 0,i&&e.e)throw e.v})},T=function(t){return 1!==t._h&&0===(t._a||t._c).length},k=function(t){y.call(a,function(){var e;j?O.emit("rejectionHandled",t):(e=a.onrejectionhandled)&&e({promise:t,reason:t._v})})},N=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),M(e,!0))},R=function(t){var e,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw x("Promise can't be resolved itself");(e=L(t))?g(function(){var n={_w:r,_d:!1};try{e.call(t,f(R,n,1),f(N,n,1))}catch(t){N.call(n,t)}}):(r._v=t,r._s=1,M(r,!1))}catch(t){N.call({_w:r,_d:!1},t)}}};F||(S=function(t){v(this,S,"Promise","_h"),h(t),n.call(this);try{t(f(R,this,1),f(N,this,1))}catch(t){N.call(this,t)}},n=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},n.prototype=r(102)(S.prototype,{then:function(t,e){var r=P(m(this,S));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=j?O.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&M(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new n;this.promise=t,this.resolve=f(R,t,1),this.reject=f(N,t,1)},w.f=P=function(t){return t===S||t===u?new i(t):o(t)}),l(l.G+l.W+l.F*!F,{Promise:S}),r(31)(S,"Promise"),r(103)("Promise"),u=r(5).Promise,l(l.S+l.F*!F,"Promise",{reject:function(t){var e=P(this);return(0,e.reject)(t),e.promise}}),l(l.S+l.F*(c||!F),"Promise",{resolve:function(t){return b(c&&this===u?S:this,t)}}),l(l.S+l.F*!(F&&r(104)(function(t){S.all(t).catch(E)})),"Promise",{all:function(t){var e=this,r=P(e),n=r.resolve,o=r.reject,i=_(function(){var r=[],i=0,u=1;d(t,!1,function(t){var c=i++,a=!1;r.push(void 0),u++,e.resolve(t).then(function(t){a||(a=!0,r[c]=t,--u||n(r))},o)}),--u||n(r)});return i.e&&o(i.v),r.promise},race:function(t){var e=this,r=P(e),n=r.reject,o=_(function(){d(t,!1,function(t){e.resolve(t).then(r.resolve,n)})});return o.e&&n(o.v),r.promise}})},function(t,e){t.exports=function(t,e,r,n){if(!(t instanceof e)||void 0!==n&&n in t)throw TypeError(r+": incorrect invocation!");return t}},function(t,e,r){var n=r(27),o=r(97),i=r(98),u=r(7),c=r(59),a=r(99),f={},s={},e=t.exports=function(t,e,r,l,p){var h,v,d,m,y=p?function(){return t}:a(t),g=n(r,l,e?2:1),w=0;if("function"!=typeof y)throw TypeError(t+" is not iterable!");if(i(y)){for(h=c(t.length);h>w;w++)if((m=e?g(u(v=t[w])[0],v[1]):g(t[w]))===f||m===s)return m}else for(d=y.call(t);!(v=d.next()).done;)if((m=o(d,g,v.value,e))===f||m===s)return m};e.BREAK=f,e.RETURN=s},function(t,e,r){var n=r(7);t.exports=function(t,e,r,o){try{return o?e(n(r)[0],r[1]):e(r)}catch(e){var i=t.return;throw void 0!==i&&n(i.call(t)),e}}},function(t,e,r){var n=r(21),o=r(3)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||i[o]===t)}},function(t,e,r){var n=r(62),o=r(3)("iterator"),i=r(21);t.exports=r(5).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[n(t)]}},function(t,e){t.exports=function(t,e,r){var n=void 0===r;switch(e.length){case 0:return n?t():t.call(r);case 1:return n?t(e[0]):t.call(r,e[0]);case 2:return n?t(e[0],e[1]):t.call(r,e[0],e[1]);case 3:return n?t(e[0],e[1],e[2]):t.call(r,e[0],e[1],e[2]);case 4:return n?t(e[0],e[1],e[2],e[3]):t.call(r,e[0],e[1],e[2],e[3])}return t.apply(r,e)}},function(t,e,r){var n=r(2),o=r(64).set,i=n.MutationObserver||n.WebKitMutationObserver,u=n.process,c=n.Promise,a="process"==r(22)(u);t.exports=function(){var t,e,r,f=function(){var n,o;for(a&&(n=u.domain)&&n.exit();t;){o=t.fn,t=t.next;try{o()}catch(n){throw t?r():e=void 0,n}}e=void 0,n&&n.enter()};if(a)r=function(){u.nextTick(f)};else if(!i||n.navigator&&n.navigator.standalone)if(c&&c.resolve){var s=c.resolve();r=function(){s.then(f)}}else r=function(){o.call(n,f)};else{var l=!0,p=document.createTextNode("");new i(f).observe(p,{characterData:!0}),r=function(){p.data=l=!l}}return function(n){var o={fn:n,next:void 0};e&&(e.next=o),t||(t=o,r()),e=o}}},function(t,e,r){var n=r(8);t.exports=function(t,e,r){for(var o in e)r&&t[o]?t[o]=e[o]:n(t,o,e[o]);return t}},function(t,e,r){"use strict";var n=r(2),o=r(5),i=r(9),u=r(11),c=r(3)("species");t.exports=function(t){var e="function"==typeof o[t]?o[t]:n[t];u&&e&&!e[c]&&i.f(e,c,{configurable:!0,get:function(){return this}})}},function(t,e,r){var n=r(3)("iterator"),o=!1;try{var i=[7][n]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var r=!1;try{var i=[7],u=i[n]();u.next=function(){return{done:r=!0}},i[n]=function(){return u},t(i)}catch(t){}return r}},function(t,e,r){"use strict";var n=r(13),o=r(5),i=r(2),u=r(63),c=r(66);n(n.P+n.R,"Promise",{finally:function(t){var e=u(this,o.Promise||i.Promise),r="function"==typeof t;return this.then(r?function(r){return c(e,t()).then(function(){return r})}:t,r?function(r){return c(e,t()).then(function(){throw r})}:t)}})},function(t,e,r){"use strict";var n=r(13),o=r(43),i=r(65);n(n.S,"Promise",{try:function(t){var e=o.f(this),r=i(t);return(r.e?e.reject:e.resolve)(r.v),e.promise}})},function(t,e,r){t.exports={default:r(108),__esModule:!0}},function(t,e,r){r(109),t.exports=r(5).Object.assign},function(t,e,r){var n=r(13);n(n.S+n.F,"Object",{assign:r(110)})},function(t,e,r){"use strict";var n=r(24),o=r(44),i=r(32),u=r(48),c=r(58),a=Object.assign;t.exports=!a||r(17)(function(){var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach(function(t){e[t]=t}),7!=a({},t)[r]||Object.keys(a({},e)).join("")!=n})?function(t,e){for(var r=u(t),a=arguments.length,f=1,s=o.f,l=i.f;a>f;)for(var p,h=c(arguments[f++]),v=s?n(h).concat(s(h)):n(h),d=v.length,m=0;d>m;)l.call(h,p=v[m++])&&(r[p]=h[p]);return r}:a},function(t,e,r){t.exports={default:r(112),__esModule:!0}},function(t,e,r){r(52),r(61),t.exports=r(45).f("iterator")},function(t,e,r){t.exports={default:r(114),__esModule:!0}},function(t,e,r){r(115),r(51),r(121),r(122),t.exports=r(5).Symbol},function(t,e,r){"use strict";var n=r(2),o=r(12),i=r(11),u=r(13),c=r(55),a=r(116).KEY,f=r(17),s=r(41),l=r(31),p=r(30),h=r(3),v=r(45),d=r(46),m=r(117),y=r(118),g=r(7),w=r(10),_=r(15),b=r(39),x=r(29),O=r(56),S=r(119),j=r(120),E=r(9),P=r(24),F=j.f,L=E.f,M=S.f,I=n.Symbol,T=n.JSON,k=T&&T.stringify,N=h("_hidden"),R=h("toPrimitive"),C={}.propertyIsEnumerable,A=s("symbol-registry"),D=s("symbols"),G=s("op-symbols"),W=Object.prototype,V="function"==typeof I,B=n.QObject,H=!B||!B.prototype||!B.prototype.findChild,q=i&&f(function(){return 7!=O(L({},"a",{get:function(){return L(this,"a",{value:7}).a}})).a})?function(t,e,r){var n=F(W,e);n&&delete W[e],L(t,e,r),n&&t!==W&&L(W,e,n)}:L,K=function(t){var e=D[t]=O(I.prototype);return e._k=t,e},J=V&&"symbol"==typeof I.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof I},U=function(t,e,r){return t===W&&U(G,e,r),g(t),e=b(e,!0),g(r),o(D,e)?(r.enumerable?(o(t,N)&&t[N][e]&&(t[N][e]=!1),r=O(r,{enumerable:x(0,!1)})):(o(t,N)||L(t,N,x(1,{})),t[N][e]=!0),q(t,e,r)):L(t,e,r)},Y=function(t,e){g(t);for(var r,n=m(e=_(e)),o=0,i=n.length;i>o;)U(t,r=n[o++],e[r]);return t},z=function(t,e){return void 0===e?O(t):Y(O(t),e)},Q=function(t){var e=C.call(this,t=b(t,!0));return!(this===W&&o(D,t)&&!o(G,t))&&(!(e||!o(this,t)||!o(D,t)||o(this,N)&&this[N][t])||e)},X=function(t,e){if(t=_(t),e=b(e,!0),t!==W||!o(D,e)||o(G,e)){var r=F(t,e);return!r||!o(D,e)||o(t,N)&&t[N][e]||(r.enumerable=!0),r}},Z=function(t){for(var e,r=M(_(t)),n=[],i=0;r.length>i;)o(D,e=r[i++])||e==N||e==a||n.push(e);return n},$=function(t){for(var e,r=t===W,n=M(r?G:_(t)),i=[],u=0;n.length>u;)!o(D,e=n[u++])||r&&!o(W,e)||i.push(D[e]);return i};V||(I=function(){if(this instanceof I)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(r){this===W&&e.call(G,r),o(this,N)&&o(this[N],t)&&(this[N][t]=!1),q(this,t,x(1,r))};return i&&H&&q(W,t,{configurable:!0,set:e}),K(t)},c(I.prototype,"toString",function(){return this._k}),j.f=X,E.f=U,r(68).f=S.f=Z,r(32).f=Q,r(44).f=$,i&&!r(26)&&c(W,"propertyIsEnumerable",Q,!0),v.f=function(t){return K(h(t))}),u(u.G+u.W+u.F*!V,{Symbol:I});for(var tt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;tt.length>et;)h(tt[et++]);for(var rt=P(h.store),nt=0;rt.length>nt;)d(rt[nt++]);u(u.S+u.F*!V,"Symbol",{for:function(t){return o(A,t+="")?A[t]:A[t]=I(t)},keyFor:function(t){if(!J(t))throw TypeError(t+" is not a symbol!");for(var e in A)if(A[e]===t)return e},useSetter:function(){H=!0},useSimple:function(){H=!1}}),u(u.S+u.F*!V,"Object",{create:z,defineProperty:U,defineProperties:Y,getOwnPropertyDescriptor:X,getOwnPropertyNames:Z,getOwnPropertySymbols:$}),T&&u(u.S+u.F*(!V||f(function(){var t=I();return"[null]"!=k([t])||"{}"!=k({a:t})||"{}"!=k(Object(t))})),"JSON",{stringify:function(t){for(var e,r,n=[t],o=1;arguments.length>o;)n.push(arguments[o++]);if(r=e=n[1],(w(e)||void 0!==t)&&!J(t))return y(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!J(e))return e}),n[1]=e,k.apply(T,n)}}),I.prototype[R]||r(8)(I.prototype,R,I.prototype.valueOf),l(I,"Symbol"),l(Math,"Math",!0),l(n.JSON,"JSON",!0)},function(t,e,r){var n=r(30)("meta"),o=r(10),i=r(12),u=r(9).f,c=0,a=Object.isExtensible||function(){return!0},f=!r(17)(function(){return a(Object.preventExtensions({}))}),s=function(t){u(t,n,{value:{i:"O"+ ++c,w:{}}})},l=function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,n)){if(!a(t))return"F";if(!e)return"E";s(t)}return t[n].i},p=function(t,e){if(!i(t,n)){if(!a(t))return!0;if(!e)return!1;s(t)}return t[n].w},h=function(t){return f&&v.NEED&&a(t)&&!i(t,n)&&s(t),t},v=t.exports={KEY:n,NEED:!1,fastKey:l,getWeak:p,onFreeze:h}},function(t,e,r){var n=r(24),o=r(44),i=r(32);t.exports=function(t){var e=n(t),r=o.f;if(r)for(var u,c=r(t),a=i.f,f=0;c.length>f;)a.call(t,u=c[f++])&&e.push(u);return e}},function(t,e,r){var n=r(22);t.exports=Array.isArray||function(t){return"Array"==n(t)}},function(t,e,r){var n=r(15),o=r(68).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(t){try{return o(t)}catch(t){return u.slice()}};t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?c(t):o(n(t))}},function(t,e,r){var n=r(32),o=r(29),i=r(15),u=r(39),c=r(12),a=r(54),f=Object.getOwnPropertyDescriptor;e.f=r(11)?f:function(t,e){if(t=i(t),e=u(e,!0),a)try{return f(t,e)}catch(t){}if(c(t,e))return o(!n.f.call(t,e),t[e])}},function(t,e,r){r(46)("asyncIterator")},function(t,e,r){r(46)("observable")},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(82),o=r(199),i=r(200),u=wp.i18n.__,c=wp.blocks.registerBlockType,a=wp.data,f=a.registerStore,s=(a.dispatch,wp.blocks.InspectorControls),l=wp.components.Placeholder,p=f(n.a,n.b);c("calderaforms/cform",{title:u("Caldera Form","caldera-forms"),icon:"feedback",category:"common",attributes:{formId:{formId:"string",default:"false"}},edit:function(t){var e=t.attributes,r=t.setAttributes,u=(t.className,t.isSelected,t.id,function(t){"false"===t||p.getState().formPreviews.hasOwnProperty(t)||Object(n.c)(p.getState(),t)}),c=function(t){r({formId:t}),u(t)};return"false"!==e.formId&&u(e.formId),wp.element.createElement("div",null,wp.element.createElement(s,null,wp.element.createElement(o.a,{onChange:c,formId:e.formId})),"false"===e.formId&&wp.element.createElement(l,{className:"caldera-forms-form-chooser-placeholder",label:"Caldera Form"},wp.element.createElement(o.a,{onChange:c,formId:e.formId})),"false"!==e.formId&&wp.element.createElement(i.a,{formId:e.formId}))},save:function(t){t.attributes,t.className;return null}})},function(t,e,r){t.exports=r(196)},function(t,e,r){var n=function(){return this}()||Function("return this")(),o=n.regeneratorRuntime&&Object.getOwnPropertyNames(n).indexOf("regeneratorRuntime")>=0,i=o&&n.regeneratorRuntime;if(n.regeneratorRuntime=void 0,t.exports=r(197),o)n.regeneratorRuntime=i;else try{delete n.regeneratorRuntime}catch(t){n.regeneratorRuntime=void 0}},function(t,e){!function(e){"use strict";function r(t,e,r,n){var i=e&&e.prototype instanceof o?e:o,u=Object.create(i.prototype),c=new h(n||[]);return u._invoke=f(t,r,c),u}function n(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}function o(){}function i(){}function u(){}function c(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function a(t){function e(r,o,i,u){var c=n(t[r],t,o);if("throw"!==c.type){var a=c.arg,f=a.value;return f&&"object"==typeof f&&g.call(f,"__await")?Promise.resolve(f.__await).then(function(t){e("next",t,i,u)},function(t){e("throw",t,i,u)}):Promise.resolve(f).then(function(t){a.value=t,i(a)},u)}u(c.arg)}function r(t,r){function n(){return new Promise(function(n,o){e(t,r,n,o)})}return o=o?o.then(n,n):n()}var o;this._invoke=r}function f(t,e,r){var o=j;return function(i,u){if(o===P)throw new Error("Generator is already running");if(o===F){if("throw"===i)throw u;return d()}for(r.method=i,r.arg=u;;){var c=r.delegate;if(c){var a=s(c,r);if(a){if(a===L)continue;return a}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===j)throw o=F,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=P;var f=n(t,e,r);if("normal"===f.type){if(o=r.done?F:E,f.arg===L)continue;return{value:f.arg,done:r.done}}"throw"===f.type&&(o=F,r.method="throw",r.arg=f.arg)}}}function s(t,e){var r=t.iterator[e.method];if(r===m){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=m,s(t,e),"throw"===e.method))return L;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return L}var o=n(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,L;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=m),e.delegate=null,L):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,L)}function l(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function p(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function h(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(l,this),this.reset(!0)}function v(t){if(t){var e=t[_];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(g.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=m,e.done=!0,e};return n.next=n}}return{next:d}}function d(){return{value:m,done:!0}}var m,y=Object.prototype,g=y.hasOwnProperty,w="function"==typeof Symbol?Symbol:{},_=w.iterator||"@@iterator",b=w.asyncIterator||"@@asyncIterator",x=w.toStringTag||"@@toStringTag",O="object"==typeof t,S=e.regeneratorRuntime;if(S)return void(O&&(t.exports=S));S=e.regeneratorRuntime=O?t.exports:{},S.wrap=r;var j="suspendedStart",E="suspendedYield",P="executing",F="completed",L={},M={};M[_]=function(){return this};var I=Object.getPrototypeOf,T=I&&I(I(v([])));T&&T!==y&&g.call(T,_)&&(M=T);var k=u.prototype=o.prototype=Object.create(M);i.prototype=k.constructor=u,u.constructor=i,u[x]=i.displayName="GeneratorFunction",S.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===i||"GeneratorFunction"===(e.displayName||e.name))},S.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,u):(t.__proto__=u,x in t||(t[x]="GeneratorFunction")),t.prototype=Object.create(k),t},S.awrap=function(t){return{__await:t}},c(a.prototype),a.prototype[b]=function(){return this},S.AsyncIterator=a,S.async=function(t,e,n,o){var i=new a(r(t,e,n,o));return S.isGeneratorFunction(e)?i:i.next().then(function(t){return t.done?t.value:i.next()})},c(k),k[x]="Generator",k[_]=function(){return this},k.toString=function(){return"[object Generator]"},S.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},S.values=v,h.prototype={constructor:h,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=m,this.done=!1,this.delegate=null,this.method="next",this.arg=m,this.tryEntries.forEach(p),!t)for(var e in this)"t"===e.charAt(0)&&g.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=m)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){function e(e,n){return i.type="throw",i.arg=t,r.next=e,n&&(r.method="next",r.arg=m),!!n}if(this.done)throw t;for(var r=this,n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],i=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var u=g.call(o,"catchLoc"),c=g.call(o,"finallyLoc");if(u&&c){if(this.prev<o.catchLoc)return e(o.catchLoc,!0);if(this.prev<o.finallyLoc)return e(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return e(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return e(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&g.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,L):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),L},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),p(r),L}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;p(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:v(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=m),L}}}(function(){return this}()||Function("return this")())},function(t,e,r){"use strict";e.__esModule=!0;var n=r(83),o=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=function(t){return function(){var e=t.apply(this,arguments);return new o.default(function(t,r){function n(i,u){try{var c=e[i](u),a=c.value}catch(t){return void r(t)}if(!c.done)return o.default.resolve(a).then(function(t){n("next",t)},function(t){n("throw",t)});t(a)}return n("next")})}}},function(t,e,r){"use strict";r.d(e,"a",function(){return l});var n=r(67),o=r.n(n),i=r(82),u=wp.components.SelectControl,c=wp.i18n.__,a=function(t){return"object"!==(void 0===t?"undefined":o()(t))?"":t.hasOwnProperty("formId")?t.formId:t.ID},f=function(t){var e=t.forms;return wp.element.createElement(u,{className:"caldera-forms-form-chooser",label:c("Choose A Form"),value:t.formId,options:e.map(function(t){return{value:a(t),label:t.name}}),onChange:function(e){t.onChange(e)}})},s=wp.data.withSelect,l=s(function(t,e){return{forms:(0,t(i.a).getForms)()}})(f)},function(t,e,r){"use strict";function n(t){return{__html:t}}r.d(e,"a",function(){return f});var o=r(82),i=r(201),u=wp.data.withSelect,c=wp.components.Spinner,a=function(t){var e="caldera-forms-form-preview-"+t.formId;return void 0!==t.preview&&t.preview.html?(Object(i.a)(t.preview.css,t.preview.js),wp.element.createElement("div",{className:e,dangerouslySetInnerHTML:n(t.preview.html)})):wp.element.createElement("div",{className:e},wp.element.createElement(c,null))},f=u(function(t,e){var r=t(o.a),n=r.getFormPreview;return{form:(0,r.getForm)(e.formId),preview:n(e.formId)}})(a)},function(t,e,r){"use strict";function n(t,e){u()(e).forEach(function(t){o("css",e[t],t)}),u()(t).forEach(function(e){o("js",t[e],e)})}function o(t,e,r){switch(t){case"css":if(-1<c.css.indexOf(r)){var n=document.createElement("link");n.rel="stylesheet",n.type="text/css",n.href=e,n.id=r,document.getElementsByTagName("head")[0].appendChild(n),c.css.push(r)}break;case"js":if(-1<c.js.indexOf(r)){var o=document.createElement("script");o.type="text/javascript",o.src=e,o.id=r,document.getElementsByTagName("body")[0].appendChild(o),c.js.push(r)}}}e.a=n;var i=r(202),u=r.n(i),c={css:[],js:[]}},function(t,e,r){t.exports={default:r(203),__esModule:!0}},function(t,e,r){r(204),t.exports=r(5).Object.keys},function(t,e,r){var n=r(48),o=r(24);r(205)("keys",function(){return function(t){return o(n(t))}})},function(t,e,r){var n=r(13),o=r(5),i=r(17);t.exports=function(t,e){var r=(o.Object||{})[t]||Object[t],u={};u[t]=e(r),n(n.S+n.F*i(function(){r(1)}),"Object",u)}}]);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
this["calderaForms"] = this["calderaForms"] || {}; this["calderaForms"]["blocks"] =
|
2 |
+
/******/ (function(modules) { // webpackBootstrap
|
3 |
+
/******/ // The module cache
|
4 |
+
/******/ var installedModules = {};
|
5 |
+
/******/
|
6 |
+
/******/ // The require function
|
7 |
+
/******/ function __webpack_require__(moduleId) {
|
8 |
+
/******/
|
9 |
+
/******/ // Check if module is in cache
|
10 |
+
/******/ if(installedModules[moduleId]) {
|
11 |
+
/******/ return installedModules[moduleId].exports;
|
12 |
+
/******/ }
|
13 |
+
/******/ // Create a new module (and put it into the cache)
|
14 |
+
/******/ var module = installedModules[moduleId] = {
|
15 |
+
/******/ i: moduleId,
|
16 |
+
/******/ l: false,
|
17 |
+
/******/ exports: {}
|
18 |
+
/******/ };
|
19 |
+
/******/
|
20 |
+
/******/ // Execute the module function
|
21 |
+
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
22 |
+
/******/
|
23 |
+
/******/ // Flag the module as loaded
|
24 |
+
/******/ module.l = true;
|
25 |
+
/******/
|
26 |
+
/******/ // Return the exports of the module
|
27 |
+
/******/ return module.exports;
|
28 |
+
/******/ }
|
29 |
+
/******/
|
30 |
+
/******/
|
31 |
+
/******/ // expose the modules object (__webpack_modules__)
|
32 |
+
/******/ __webpack_require__.m = modules;
|
33 |
+
/******/
|
34 |
+
/******/ // expose the module cache
|
35 |
+
/******/ __webpack_require__.c = installedModules;
|
36 |
+
/******/
|
37 |
+
/******/ // define getter function for harmony exports
|
38 |
+
/******/ __webpack_require__.d = function(exports, name, getter) {
|
39 |
+
/******/ if(!__webpack_require__.o(exports, name)) {
|
40 |
+
/******/ Object.defineProperty(exports, name, {
|
41 |
+
/******/ configurable: false,
|
42 |
+
/******/ enumerable: true,
|
43 |
+
/******/ get: getter
|
44 |
+
/******/ });
|
45 |
+
/******/ }
|
46 |
+
/******/ };
|
47 |
+
/******/
|
48 |
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
49 |
+
/******/ __webpack_require__.n = function(module) {
|
50 |
+
/******/ var getter = module && module.__esModule ?
|
51 |
+
/******/ function getDefault() { return module['default']; } :
|
52 |
+
/******/ function getModuleExports() { return module; };
|
53 |
+
/******/ __webpack_require__.d(getter, 'a', getter);
|
54 |
+
/******/ return getter;
|
55 |
+
/******/ };
|
56 |
+
/******/
|
57 |
+
/******/ // Object.prototype.hasOwnProperty.call
|
58 |
+
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
59 |
+
/******/
|
60 |
+
/******/ // __webpack_public_path__
|
61 |
+
/******/ __webpack_require__.p = "";
|
62 |
+
/******/
|
63 |
+
/******/ // Load entry module and return exports
|
64 |
+
/******/ return __webpack_require__(__webpack_require__.s = 473);
|
65 |
+
/******/ })
|
66 |
+
/************************************************************************/
|
67 |
+
/******/ ([
|
68 |
+
/* 0 */,
|
69 |
+
/* 1 */
|
70 |
+
/***/ (function(module, exports, __webpack_require__) {
|
71 |
+
|
72 |
+
"use strict";
|
73 |
+
|
74 |
+
|
75 |
+
exports.__esModule = true;
|
76 |
+
|
77 |
+
var _assign = __webpack_require__(85);
|
78 |
+
|
79 |
+
var _assign2 = _interopRequireDefault(_assign);
|
80 |
+
|
81 |
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
82 |
+
|
83 |
+
exports.default = _assign2.default || function (target) {
|
84 |
+
for (var i = 1; i < arguments.length; i++) {
|
85 |
+
var source = arguments[i];
|
86 |
+
|
87 |
+
for (var key in source) {
|
88 |
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
89 |
+
target[key] = source[key];
|
90 |
+
}
|
91 |
+
}
|
92 |
+
}
|
93 |
+
|
94 |
+
return target;
|
95 |
+
};
|
96 |
+
|
97 |
+
/***/ }),
|
98 |
+
/* 2 */,
|
99 |
+
/* 3 */,
|
100 |
+
/* 4 */,
|
101 |
+
/* 5 */,
|
102 |
+
/* 6 */,
|
103 |
+
/* 7 */,
|
104 |
+
/* 8 */,
|
105 |
+
/* 9 */
|
106 |
+
/***/ (function(module, exports) {
|
107 |
+
|
108 |
+
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
109 |
+
var global = module.exports = typeof window != 'undefined' && window.Math == Math
|
110 |
+
? window : typeof self != 'undefined' && self.Math == Math ? self
|
111 |
+
// eslint-disable-next-line no-new-func
|
112 |
+
: Function('return this')();
|
113 |
+
if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
|
114 |
+
|
115 |
+
|
116 |
+
/***/ }),
|
117 |
+
/* 10 */
|
118 |
+
/***/ (function(module, exports, __webpack_require__) {
|
119 |
+
|
120 |
+
var store = __webpack_require__(53)('wks');
|
121 |
+
var uid = __webpack_require__(38);
|
122 |
+
var Symbol = __webpack_require__(9).Symbol;
|
123 |
+
var USE_SYMBOL = typeof Symbol == 'function';
|
124 |
+
|
125 |
+
var $exports = module.exports = function (name) {
|
126 |
+
return store[name] || (store[name] =
|
127 |
+
USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));
|
128 |
+
};
|
129 |
+
|
130 |
+
$exports.store = store;
|
131 |
+
|
132 |
+
|
133 |
+
/***/ }),
|
134 |
+
/* 11 */,
|
135 |
+
/* 12 */
|
136 |
+
/***/ (function(module, exports) {
|
137 |
+
|
138 |
+
var core = module.exports = { version: '2.5.5' };
|
139 |
+
if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
|
140 |
+
|
141 |
+
|
142 |
+
/***/ }),
|
143 |
+
/* 13 */,
|
144 |
+
/* 14 */
|
145 |
+
/***/ (function(module, exports, __webpack_require__) {
|
146 |
+
|
147 |
+
var global = __webpack_require__(9);
|
148 |
+
var core = __webpack_require__(12);
|
149 |
+
var ctx = __webpack_require__(31);
|
150 |
+
var hide = __webpack_require__(20);
|
151 |
+
var has = __webpack_require__(22);
|
152 |
+
var PROTOTYPE = 'prototype';
|
153 |
+
|
154 |
+
var $export = function (type, name, source) {
|
155 |
+
var IS_FORCED = type & $export.F;
|
156 |
+
var IS_GLOBAL = type & $export.G;
|
157 |
+
var IS_STATIC = type & $export.S;
|
158 |
+
var IS_PROTO = type & $export.P;
|
159 |
+
var IS_BIND = type & $export.B;
|
160 |
+
var IS_WRAP = type & $export.W;
|
161 |
+
var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
|
162 |
+
var expProto = exports[PROTOTYPE];
|
163 |
+
var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE];
|
164 |
+
var key, own, out;
|
165 |
+
if (IS_GLOBAL) source = name;
|
166 |
+
for (key in source) {
|
167 |
+
// contains in native
|
168 |
+
own = !IS_FORCED && target && target[key] !== undefined;
|
169 |
+
if (own && has(exports, key)) continue;
|
170 |
+
// export native or passed
|
171 |
+
out = own ? target[key] : source[key];
|
172 |
+
// prevent global pollution for namespaces
|
173 |
+
exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]
|
174 |
+
// bind timers to global for call from export context
|
175 |
+
: IS_BIND && own ? ctx(out, global)
|
176 |
+
// wrap global constructors for prevent change them in library
|
177 |
+
: IS_WRAP && target[key] == out ? (function (C) {
|
178 |
+
var F = function (a, b, c) {
|
179 |
+
if (this instanceof C) {
|
180 |
+
switch (arguments.length) {
|
181 |
+
case 0: return new C();
|
182 |
+
case 1: return new C(a);
|
183 |
+
case 2: return new C(a, b);
|
184 |
+
} return new C(a, b, c);
|
185 |
+
} return C.apply(this, arguments);
|
186 |
+
};
|
187 |
+
F[PROTOTYPE] = C[PROTOTYPE];
|
188 |
+
return F;
|
189 |
+
// make static versions for prototype methods
|
190 |
+
})(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
|
191 |
+
// export proto methods to core.%CONSTRUCTOR%.methods.%NAME%
|
192 |
+
if (IS_PROTO) {
|
193 |
+
(exports.virtual || (exports.virtual = {}))[key] = out;
|
194 |
+
// export proto methods to core.%CONSTRUCTOR%.prototype.%NAME%
|
195 |
+
if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out);
|
196 |
+
}
|
197 |
+
}
|
198 |
+
};
|
199 |
+
// type bitmap
|
200 |
+
$export.F = 1; // forced
|
201 |
+
$export.G = 2; // global
|
202 |
+
$export.S = 4; // static
|
203 |
+
$export.P = 8; // proto
|
204 |
+
$export.B = 16; // bind
|
205 |
+
$export.W = 32; // wrap
|
206 |
+
$export.U = 64; // safe
|
207 |
+
$export.R = 128; // real proto method for `library`
|
208 |
+
module.exports = $export;
|
209 |
+
|
210 |
+
|
211 |
+
/***/ }),
|
212 |
+
/* 15 */
|
213 |
+
/***/ (function(module, exports, __webpack_require__) {
|
214 |
+
|
215 |
+
var isObject = __webpack_require__(18);
|
216 |
+
module.exports = function (it) {
|
217 |
+
if (!isObject(it)) throw TypeError(it + ' is not an object!');
|
218 |
+
return it;
|
219 |
+
};
|
220 |
+
|
221 |
+
|
222 |
+
/***/ }),
|
223 |
+
/* 16 */,
|
224 |
+
/* 17 */
|
225 |
+
/***/ (function(module, exports, __webpack_require__) {
|
226 |
+
|
227 |
+
var anObject = __webpack_require__(15);
|
228 |
+
var IE8_DOM_DEFINE = __webpack_require__(67);
|
229 |
+
var toPrimitive = __webpack_require__(49);
|
230 |
+
var dP = Object.defineProperty;
|
231 |
+
|
232 |
+
exports.f = __webpack_require__(21) ? Object.defineProperty : function defineProperty(O, P, Attributes) {
|
233 |
+
anObject(O);
|
234 |
+
P = toPrimitive(P, true);
|
235 |
+
anObject(Attributes);
|
236 |
+
if (IE8_DOM_DEFINE) try {
|
237 |
+
return dP(O, P, Attributes);
|
238 |
+
} catch (e) { /* empty */ }
|
239 |
+
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
|
240 |
+
if ('value' in Attributes) O[P] = Attributes.value;
|
241 |
+
return O;
|
242 |
+
};
|
243 |
+
|
244 |
+
|
245 |
+
/***/ }),
|
246 |
+
/* 18 */
|
247 |
+
/***/ (function(module, exports) {
|
248 |
+
|
249 |
+
module.exports = function (it) {
|
250 |
+
return typeof it === 'object' ? it !== null : typeof it === 'function';
|
251 |
+
};
|
252 |
+
|
253 |
+
|
254 |
+
/***/ }),
|
255 |
+
/* 19 */,
|
256 |
+
/* 20 */
|
257 |
+
/***/ (function(module, exports, __webpack_require__) {
|
258 |
+
|
259 |
+
var dP = __webpack_require__(17);
|
260 |
+
var createDesc = __webpack_require__(33);
|
261 |
+
module.exports = __webpack_require__(21) ? function (object, key, value) {
|
262 |
+
return dP.f(object, key, createDesc(1, value));
|
263 |
+
} : function (object, key, value) {
|
264 |
+
object[key] = value;
|
265 |
+
return object;
|
266 |
+
};
|
267 |
+
|
268 |
+
|
269 |
+
/***/ }),
|
270 |
+
/* 21 */
|
271 |
+
/***/ (function(module, exports, __webpack_require__) {
|
272 |
+
|
273 |
+
// Thank's IE8 for his funny defineProperty
|
274 |
+
module.exports = !__webpack_require__(25)(function () {
|
275 |
+
return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
|
276 |
+
});
|
277 |
+
|
278 |
+
|
279 |
+
/***/ }),
|
280 |
+
/* 22 */
|
281 |
+
/***/ (function(module, exports) {
|
282 |
+
|
283 |
+
var hasOwnProperty = {}.hasOwnProperty;
|
284 |
+
module.exports = function (it, key) {
|
285 |
+
return hasOwnProperty.call(it, key);
|
286 |
+
};
|
287 |
+
|
288 |
+
|
289 |
+
/***/ }),
|
290 |
+
/* 23 */
|
291 |
+
/***/ (function(module, exports, __webpack_require__) {
|
292 |
+
|
293 |
+
// to indexed object, toObject with fallback for non-array-like ES3 strings
|
294 |
+
var IObject = __webpack_require__(69);
|
295 |
+
var defined = __webpack_require__(50);
|
296 |
+
module.exports = function (it) {
|
297 |
+
return IObject(defined(it));
|
298 |
+
};
|
299 |
+
|
300 |
+
|
301 |
+
/***/ }),
|
302 |
+
/* 24 */,
|
303 |
+
/* 25 */
|
304 |
+
/***/ (function(module, exports) {
|
305 |
+
|
306 |
+
module.exports = function (exec) {
|
307 |
+
try {
|
308 |
+
return !!exec();
|
309 |
+
} catch (e) {
|
310 |
+
return true;
|
311 |
+
}
|
312 |
+
};
|
313 |
+
|
314 |
+
|
315 |
+
/***/ }),
|
316 |
+
/* 26 */,
|
317 |
+
/* 27 */
|
318 |
+
/***/ (function(module, exports, __webpack_require__) {
|
319 |
+
|
320 |
+
// 19.1.2.14 / 15.2.3.14 Object.keys(O)
|
321 |
+
var $keys = __webpack_require__(68);
|
322 |
+
var enumBugKeys = __webpack_require__(54);
|
323 |
+
|
324 |
+
module.exports = Object.keys || function keys(O) {
|
325 |
+
return $keys(O, enumBugKeys);
|
326 |
+
};
|
327 |
+
|
328 |
+
|
329 |
+
/***/ }),
|
330 |
+
/* 28 */
|
331 |
+
/***/ (function(module, exports) {
|
332 |
+
|
333 |
+
var toString = {}.toString;
|
334 |
+
|
335 |
+
module.exports = function (it) {
|
336 |
+
return toString.call(it).slice(8, -1);
|
337 |
+
};
|
338 |
+
|
339 |
+
|
340 |
+
/***/ }),
|
341 |
+
/* 29 */
|
342 |
+
/***/ (function(module, exports) {
|
343 |
+
|
344 |
+
module.exports = {};
|
345 |
+
|
346 |
+
|
347 |
+
/***/ }),
|
348 |
+
/* 30 */,
|
349 |
+
/* 31 */
|
350 |
+
/***/ (function(module, exports, __webpack_require__) {
|
351 |
+
|
352 |
+
// optional / simple context binding
|
353 |
+
var aFunction = __webpack_require__(37);
|
354 |
+
module.exports = function (fn, that, length) {
|
355 |
+
aFunction(fn);
|
356 |
+
if (that === undefined) return fn;
|
357 |
+
switch (length) {
|
358 |
+
case 1: return function (a) {
|
359 |
+
return fn.call(that, a);
|
360 |
+
};
|
361 |
+
case 2: return function (a, b) {
|
362 |
+
return fn.call(that, a, b);
|
363 |
+
};
|
364 |
+
case 3: return function (a, b, c) {
|
365 |
+
return fn.call(that, a, b, c);
|
366 |
+
};
|
367 |
+
}
|
368 |
+
return function (/* ...args */) {
|
369 |
+
return fn.apply(that, arguments);
|
370 |
+
};
|
371 |
+
};
|
372 |
+
|
373 |
+
|
374 |
+
/***/ }),
|
375 |
+
/* 32 */,
|
376 |
+
/* 33 */
|
377 |
+
/***/ (function(module, exports) {
|
378 |
+
|
379 |
+
module.exports = function (bitmap, value) {
|
380 |
+
return {
|
381 |
+
enumerable: !(bitmap & 1),
|
382 |
+
configurable: !(bitmap & 2),
|
383 |
+
writable: !(bitmap & 4),
|
384 |
+
value: value
|
385 |
+
};
|
386 |
+
};
|
387 |
+
|
388 |
+
|
389 |
+
/***/ }),
|
390 |
+
/* 34 */
|
391 |
+
/***/ (function(module, exports) {
|
392 |
+
|
393 |
+
exports.f = {}.propertyIsEnumerable;
|
394 |
+
|
395 |
+
|
396 |
+
/***/ }),
|
397 |
+
/* 35 */,
|
398 |
+
/* 36 */,
|
399 |
+
/* 37 */
|
400 |
+
/***/ (function(module, exports) {
|
401 |
+
|
402 |
+
module.exports = function (it) {
|
403 |
+
if (typeof it != 'function') throw TypeError(it + ' is not a function!');
|
404 |
+
return it;
|
405 |
+
};
|
406 |
+
|
407 |
+
|
408 |
+
/***/ }),
|
409 |
+
/* 38 */
|
410 |
+
/***/ (function(module, exports) {
|
411 |
+
|
412 |
+
var id = 0;
|
413 |
+
var px = Math.random();
|
414 |
+
module.exports = function (key) {
|
415 |
+
return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
|
416 |
+
};
|
417 |
+
|
418 |
+
|
419 |
+
/***/ }),
|
420 |
+
/* 39 */
|
421 |
+
/***/ (function(module, exports) {
|
422 |
+
|
423 |
+
module.exports = true;
|
424 |
+
|
425 |
+
|
426 |
+
/***/ }),
|
427 |
+
/* 40 */
|
428 |
+
/***/ (function(module, exports, __webpack_require__) {
|
429 |
+
|
430 |
+
var def = __webpack_require__(17).f;
|
431 |
+
var has = __webpack_require__(22);
|
432 |
+
var TAG = __webpack_require__(10)('toStringTag');
|
433 |
+
|
434 |
+
module.exports = function (it, tag, stat) {
|
435 |
+
if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
|
436 |
+
};
|
437 |
+
|
438 |
+
|
439 |
+
/***/ }),
|
440 |
+
/* 41 */,
|
441 |
+
/* 42 */,
|
442 |
+
/* 43 */,
|
443 |
+
/* 44 */,
|
444 |
+
/* 45 */
|
445 |
+
/***/ (function(module, exports, __webpack_require__) {
|
446 |
+
|
447 |
+
"use strict";
|
448 |
+
|
449 |
+
|
450 |
+
exports.__esModule = true;
|
451 |
+
|
452 |
+
var _iterator = __webpack_require__(106);
|
453 |
+
|
454 |
+
var _iterator2 = _interopRequireDefault(_iterator);
|
455 |
+
|
456 |
+
var _symbol = __webpack_require__(115);
|
457 |
+
|
458 |
+
var _symbol2 = _interopRequireDefault(_symbol);
|
459 |
+
|
460 |
+
var _typeof = typeof _symbol2.default === "function" && typeof _iterator2.default === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj; };
|
461 |
+
|
462 |
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
463 |
+
|
464 |
+
exports.default = typeof _symbol2.default === "function" && _typeof(_iterator2.default) === "symbol" ? function (obj) {
|
465 |
+
return typeof obj === "undefined" ? "undefined" : _typeof(obj);
|
466 |
+
} : function (obj) {
|
467 |
+
return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof(obj);
|
468 |
+
};
|
469 |
+
|
470 |
+
/***/ }),
|
471 |
+
/* 46 */,
|
472 |
+
/* 47 */,
|
473 |
+
/* 48 */
|
474 |
+
/***/ (function(module, exports, __webpack_require__) {
|
475 |
+
|
476 |
+
var isObject = __webpack_require__(18);
|
477 |
+
var document = __webpack_require__(9).document;
|
478 |
+
// typeof document.createElement is 'object' in old IE
|
479 |
+
var is = isObject(document) && isObject(document.createElement);
|
480 |
+
module.exports = function (it) {
|
481 |
+
return is ? document.createElement(it) : {};
|
482 |
+
};
|
483 |
+
|
484 |
+
|
485 |
+
/***/ }),
|
486 |
+
/* 49 */
|
487 |
+
/***/ (function(module, exports, __webpack_require__) {
|
488 |
+
|
489 |
+
// 7.1.1 ToPrimitive(input [, PreferredType])
|
490 |
+
var isObject = __webpack_require__(18);
|
491 |
+
// instead of the ES6 spec version, we didn't implement @@toPrimitive case
|
492 |
+
// and the second argument - flag - preferred type is a string
|
493 |
+
module.exports = function (it, S) {
|
494 |
+
if (!isObject(it)) return it;
|
495 |
+
var fn, val;
|
496 |
+
if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
|
497 |
+
if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;
|
498 |
+
if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
|
499 |
+
throw TypeError("Can't convert object to primitive value");
|
500 |
+
};
|
501 |
+
|
502 |
+
|
503 |
+
/***/ }),
|
504 |
+
/* 50 */
|
505 |
+
/***/ (function(module, exports) {
|
506 |
+
|
507 |
+
// 7.2.1 RequireObjectCoercible(argument)
|
508 |
+
module.exports = function (it) {
|
509 |
+
if (it == undefined) throw TypeError("Can't call method on " + it);
|
510 |
+
return it;
|
511 |
+
};
|
512 |
+
|
513 |
+
|
514 |
+
/***/ }),
|
515 |
+
/* 51 */
|
516 |
+
/***/ (function(module, exports) {
|
517 |
+
|
518 |
+
// 7.1.4 ToInteger
|
519 |
+
var ceil = Math.ceil;
|
520 |
+
var floor = Math.floor;
|
521 |
+
module.exports = function (it) {
|
522 |
+
return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
|
523 |
+
};
|
524 |
+
|
525 |
+
|
526 |
+
/***/ }),
|
527 |
+
/* 52 */
|
528 |
+
/***/ (function(module, exports, __webpack_require__) {
|
529 |
+
|
530 |
+
var shared = __webpack_require__(53)('keys');
|
531 |
+
var uid = __webpack_require__(38);
|
532 |
+
module.exports = function (key) {
|
533 |
+
return shared[key] || (shared[key] = uid(key));
|
534 |
+
};
|
535 |
+
|
536 |
+
|
537 |
+
/***/ }),
|
538 |
+
/* 53 */
|
539 |
+
/***/ (function(module, exports, __webpack_require__) {
|
540 |
+
|
541 |
+
var global = __webpack_require__(9);
|
542 |
+
var SHARED = '__core-js_shared__';
|
543 |
+
var store = global[SHARED] || (global[SHARED] = {});
|
544 |
+
module.exports = function (key) {
|
545 |
+
return store[key] || (store[key] = {});
|
546 |
+
};
|
547 |
+
|
548 |
+
|
549 |
+
/***/ }),
|
550 |
+
/* 54 */
|
551 |
+
/***/ (function(module, exports) {
|
552 |
+
|
553 |
+
// IE 8- don't enum bug keys
|
554 |
+
module.exports = (
|
555 |
+
'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
|
556 |
+
).split(',');
|
557 |
+
|
558 |
+
|
559 |
+
/***/ }),
|
560 |
+
/* 55 */
|
561 |
+
/***/ (function(module, exports) {
|
562 |
+
|
563 |
+
exports.f = Object.getOwnPropertySymbols;
|
564 |
+
|
565 |
+
|
566 |
+
/***/ }),
|
567 |
+
/* 56 */
|
568 |
+
/***/ (function(module, exports, __webpack_require__) {
|
569 |
+
|
570 |
+
// 7.1.13 ToObject(argument)
|
571 |
+
var defined = __webpack_require__(50);
|
572 |
+
module.exports = function (it) {
|
573 |
+
return Object(defined(it));
|
574 |
+
};
|
575 |
+
|
576 |
+
|
577 |
+
/***/ }),
|
578 |
+
/* 57 */
|
579 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
580 |
+
|
581 |
+
"use strict";
|
582 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return SET_FORMS; });
|
583 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return SET_FORM; });
|
584 |
+
/* unused harmony export SET_CURRENT_FORM_ID */
|
585 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ADD_FORM_PREVIEW; });
|
586 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return DEFAULT_STATE; });
|
587 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return actionFunctions; });
|
588 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__api_cfAdmin__ = __webpack_require__(86);
|
589 |
+
|
590 |
+
|
591 |
+
var SET_FORMS = 'SET_FORMS';
|
592 |
+
var SET_FORM = 'SET_FORM';
|
593 |
+
var SET_CURRENT_FORM_ID = 'SET_CURRENT_FORM_ID';
|
594 |
+
var ADD_FORM_PREVIEW = 'ADD_FORM_PREVIEW';
|
595 |
+
|
596 |
+
/**
|
597 |
+
* Intial state
|
598 |
+
*
|
599 |
+
* @since 1.6.2
|
600 |
+
*
|
601 |
+
* @type {{forms, formPreviews: {}}}
|
602 |
+
*/
|
603 |
+
var DEFAULT_STATE = {
|
604 |
+
forms: __WEBPACK_IMPORTED_MODULE_0__api_cfAdmin__["b" /* printedData */].forms,
|
605 |
+
formPreviews: {}
|
606 |
+
};
|
607 |
+
|
608 |
+
/**
|
609 |
+
* Shared redux(-like) action callbacks
|
610 |
+
*
|
611 |
+
* @type {{setForm(*=): *, setForms(*=): *, addFormPreview(*=, *=): *}}
|
612 |
+
*/
|
613 |
+
var actionFunctions = {
|
614 |
+
setForm: function setForm(form) {
|
615 |
+
return {
|
616 |
+
type: SET_FORM,
|
617 |
+
form: form
|
618 |
+
};
|
619 |
+
},
|
620 |
+
setForms: function setForms(forms) {
|
621 |
+
return {
|
622 |
+
type: SET_FORMS,
|
623 |
+
forms: forms
|
624 |
+
};
|
625 |
+
},
|
626 |
+
addFormPreview: function addFormPreview(formId, preview) {
|
627 |
+
return {
|
628 |
+
type: ADD_FORM_PREVIEW,
|
629 |
+
formId: formId,
|
630 |
+
preview: preview
|
631 |
+
};
|
632 |
+
}
|
633 |
+
};
|
634 |
+
|
635 |
+
/***/ }),
|
636 |
+
/* 58 */
|
637 |
+
/***/ (function(module, exports, __webpack_require__) {
|
638 |
+
|
639 |
+
exports.f = __webpack_require__(10);
|
640 |
+
|
641 |
+
|
642 |
+
/***/ }),
|
643 |
+
/* 59 */
|
644 |
+
/***/ (function(module, exports, __webpack_require__) {
|
645 |
+
|
646 |
+
var global = __webpack_require__(9);
|
647 |
+
var core = __webpack_require__(12);
|
648 |
+
var LIBRARY = __webpack_require__(39);
|
649 |
+
var wksExt = __webpack_require__(58);
|
650 |
+
var defineProperty = __webpack_require__(17).f;
|
651 |
+
module.exports = function (name) {
|
652 |
+
var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {});
|
653 |
+
if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) });
|
654 |
+
};
|
655 |
+
|
656 |
+
|
657 |
+
/***/ }),
|
658 |
+
/* 60 */
|
659 |
+
/***/ (function(module, exports, __webpack_require__) {
|
660 |
+
|
661 |
+
"use strict";
|
662 |
+
|
663 |
+
// 25.4.1.5 NewPromiseCapability(C)
|
664 |
+
var aFunction = __webpack_require__(37);
|
665 |
+
|
666 |
+
function PromiseCapability(C) {
|
667 |
+
var resolve, reject;
|
668 |
+
this.promise = new C(function ($$resolve, $$reject) {
|
669 |
+
if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');
|
670 |
+
resolve = $$resolve;
|
671 |
+
reject = $$reject;
|
672 |
+
});
|
673 |
+
this.resolve = aFunction(resolve);
|
674 |
+
this.reject = aFunction(reject);
|
675 |
+
}
|
676 |
+
|
677 |
+
module.exports.f = function (C) {
|
678 |
+
return new PromiseCapability(C);
|
679 |
+
};
|
680 |
+
|
681 |
+
|
682 |
+
/***/ }),
|
683 |
+
/* 61 */,
|
684 |
+
/* 62 */,
|
685 |
+
/* 63 */
|
686 |
+
/***/ (function(module, exports, __webpack_require__) {
|
687 |
+
|
688 |
+
// 7.1.15 ToLength
|
689 |
+
var toInteger = __webpack_require__(51);
|
690 |
+
var min = Math.min;
|
691 |
+
module.exports = function (it) {
|
692 |
+
return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
|
693 |
+
};
|
694 |
+
|
695 |
+
|
696 |
+
/***/ }),
|
697 |
+
/* 64 */
|
698 |
+
/***/ (function(module, exports, __webpack_require__) {
|
699 |
+
|
700 |
+
"use strict";
|
701 |
+
|
702 |
+
var $at = __webpack_require__(108)(true);
|
703 |
+
|
704 |
+
// 21.1.3.27 String.prototype[@@iterator]()
|
705 |
+
__webpack_require__(70)(String, 'String', function (iterated) {
|
706 |
+
this._t = String(iterated); // target
|
707 |
+
this._i = 0; // next index
|
708 |
+
// 21.1.5.2.1 %StringIteratorPrototype%.next()
|
709 |
+
}, function () {
|
710 |
+
var O = this._t;
|
711 |
+
var index = this._i;
|
712 |
+
var point;
|
713 |
+
if (index >= O.length) return { value: undefined, done: true };
|
714 |
+
point = $at(O, index);
|
715 |
+
this._i += point.length;
|
716 |
+
return { value: point, done: false };
|
717 |
+
});
|
718 |
+
|
719 |
+
|
720 |
+
/***/ }),
|
721 |
+
/* 65 */
|
722 |
+
/***/ (function(module, exports, __webpack_require__) {
|
723 |
+
|
724 |
+
// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
|
725 |
+
var anObject = __webpack_require__(15);
|
726 |
+
var dPs = __webpack_require__(110);
|
727 |
+
var enumBugKeys = __webpack_require__(54);
|
728 |
+
var IE_PROTO = __webpack_require__(52)('IE_PROTO');
|
729 |
+
var Empty = function () { /* empty */ };
|
730 |
+
var PROTOTYPE = 'prototype';
|
731 |
+
|
732 |
+
// Create object with fake `null` prototype: use iframe Object with cleared prototype
|
733 |
+
var createDict = function () {
|
734 |
+
// Thrash, waste and sodomy: IE GC bug
|
735 |
+
var iframe = __webpack_require__(48)('iframe');
|
736 |
+
var i = enumBugKeys.length;
|
737 |
+
var lt = '<';
|
738 |
+
var gt = '>';
|
739 |
+
var iframeDocument;
|
740 |
+
iframe.style.display = 'none';
|
741 |
+
__webpack_require__(72).appendChild(iframe);
|
742 |
+
iframe.src = 'javascript:'; // eslint-disable-line no-script-url
|
743 |
+
// createDict = iframe.contentWindow.Object;
|
744 |
+
// html.removeChild(iframe);
|
745 |
+
iframeDocument = iframe.contentWindow.document;
|
746 |
+
iframeDocument.open();
|
747 |
+
iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
|
748 |
+
iframeDocument.close();
|
749 |
+
createDict = iframeDocument.F;
|
750 |
+
while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
|
751 |
+
return createDict();
|
752 |
+
};
|
753 |
+
|
754 |
+
module.exports = Object.create || function create(O, Properties) {
|
755 |
+
var result;
|
756 |
+
if (O !== null) {
|
757 |
+
Empty[PROTOTYPE] = anObject(O);
|
758 |
+
result = new Empty();
|
759 |
+
Empty[PROTOTYPE] = null;
|
760 |
+
// add "__proto__" for Object.getPrototypeOf polyfill
|
761 |
+
result[IE_PROTO] = O;
|
762 |
+
} else result = createDict();
|
763 |
+
return Properties === undefined ? result : dPs(result, Properties);
|
764 |
+
};
|
765 |
+
|
766 |
+
|
767 |
+
/***/ }),
|
768 |
+
/* 66 */,
|
769 |
+
/* 67 */
|
770 |
+
/***/ (function(module, exports, __webpack_require__) {
|
771 |
+
|
772 |
+
module.exports = !__webpack_require__(21) && !__webpack_require__(25)(function () {
|
773 |
+
return Object.defineProperty(__webpack_require__(48)('div'), 'a', { get: function () { return 7; } }).a != 7;
|
774 |
+
});
|
775 |
+
|
776 |
+
|
777 |
+
/***/ }),
|
778 |
+
/* 68 */
|
779 |
+
/***/ (function(module, exports, __webpack_require__) {
|
780 |
+
|
781 |
+
var has = __webpack_require__(22);
|
782 |
+
var toIObject = __webpack_require__(23);
|
783 |
+
var arrayIndexOf = __webpack_require__(104)(false);
|
784 |
+
var IE_PROTO = __webpack_require__(52)('IE_PROTO');
|
785 |
+
|
786 |
+
module.exports = function (object, names) {
|
787 |
+
var O = toIObject(object);
|
788 |
+
var i = 0;
|
789 |
+
var result = [];
|
790 |
+
var key;
|
791 |
+
for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);
|
792 |
+
// Don't enum bug & hidden keys
|
793 |
+
while (names.length > i) if (has(O, key = names[i++])) {
|
794 |
+
~arrayIndexOf(result, key) || result.push(key);
|
795 |
+
}
|
796 |
+
return result;
|
797 |
+
};
|
798 |
+
|
799 |
+
|
800 |
+
/***/ }),
|
801 |
+
/* 69 */
|
802 |
+
/***/ (function(module, exports, __webpack_require__) {
|
803 |
+
|
804 |
+
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
805 |
+
var cof = __webpack_require__(28);
|
806 |
+
// eslint-disable-next-line no-prototype-builtins
|
807 |
+
module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
|
808 |
+
return cof(it) == 'String' ? it.split('') : Object(it);
|
809 |
+
};
|
810 |
+
|
811 |
+
|
812 |
+
/***/ }),
|
813 |
+
/* 70 */
|
814 |
+
/***/ (function(module, exports, __webpack_require__) {
|
815 |
+
|
816 |
+
"use strict";
|
817 |
+
|
818 |
+
var LIBRARY = __webpack_require__(39);
|
819 |
+
var $export = __webpack_require__(14);
|
820 |
+
var redefine = __webpack_require__(71);
|
821 |
+
var hide = __webpack_require__(20);
|
822 |
+
var Iterators = __webpack_require__(29);
|
823 |
+
var $iterCreate = __webpack_require__(109);
|
824 |
+
var setToStringTag = __webpack_require__(40);
|
825 |
+
var getPrototypeOf = __webpack_require__(111);
|
826 |
+
var ITERATOR = __webpack_require__(10)('iterator');
|
827 |
+
var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`
|
828 |
+
var FF_ITERATOR = '@@iterator';
|
829 |
+
var KEYS = 'keys';
|
830 |
+
var VALUES = 'values';
|
831 |
+
|
832 |
+
var returnThis = function () { return this; };
|
833 |
+
|
834 |
+
module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {
|
835 |
+
$iterCreate(Constructor, NAME, next);
|
836 |
+
var getMethod = function (kind) {
|
837 |
+
if (!BUGGY && kind in proto) return proto[kind];
|
838 |
+
switch (kind) {
|
839 |
+
case KEYS: return function keys() { return new Constructor(this, kind); };
|
840 |
+
case VALUES: return function values() { return new Constructor(this, kind); };
|
841 |
+
} return function entries() { return new Constructor(this, kind); };
|
842 |
+
};
|
843 |
+
var TAG = NAME + ' Iterator';
|
844 |
+
var DEF_VALUES = DEFAULT == VALUES;
|
845 |
+
var VALUES_BUG = false;
|
846 |
+
var proto = Base.prototype;
|
847 |
+
var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];
|
848 |
+
var $default = $native || getMethod(DEFAULT);
|
849 |
+
var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;
|
850 |
+
var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;
|
851 |
+
var methods, key, IteratorPrototype;
|
852 |
+
// Fix native
|
853 |
+
if ($anyNative) {
|
854 |
+
IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));
|
855 |
+
if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {
|
856 |
+
// Set @@toStringTag to native iterators
|
857 |
+
setToStringTag(IteratorPrototype, TAG, true);
|
858 |
+
// fix for some old engines
|
859 |
+
if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis);
|
860 |
+
}
|
861 |
+
}
|
862 |
+
// fix Array#{values, @@iterator}.name in V8 / FF
|
863 |
+
if (DEF_VALUES && $native && $native.name !== VALUES) {
|
864 |
+
VALUES_BUG = true;
|
865 |
+
$default = function values() { return $native.call(this); };
|
866 |
+
}
|
867 |
+
// Define iterator
|
868 |
+
if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {
|
869 |
+
hide(proto, ITERATOR, $default);
|
870 |
+
}
|
871 |
+
// Plug for library
|
872 |
+
Iterators[NAME] = $default;
|
873 |
+
Iterators[TAG] = returnThis;
|
874 |
+
if (DEFAULT) {
|
875 |
+
methods = {
|
876 |
+
values: DEF_VALUES ? $default : getMethod(VALUES),
|
877 |
+
keys: IS_SET ? $default : getMethod(KEYS),
|
878 |
+
entries: $entries
|
879 |
+
};
|
880 |
+
if (FORCED) for (key in methods) {
|
881 |
+
if (!(key in proto)) redefine(proto, key, methods[key]);
|
882 |
+
} else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);
|
883 |
+
}
|
884 |
+
return methods;
|
885 |
+
};
|
886 |
+
|
887 |
+
|
888 |
+
/***/ }),
|
889 |
+
/* 71 */
|
890 |
+
/***/ (function(module, exports, __webpack_require__) {
|
891 |
+
|
892 |
+
module.exports = __webpack_require__(20);
|
893 |
+
|
894 |
+
|
895 |
+
/***/ }),
|
896 |
+
/* 72 */
|
897 |
+
/***/ (function(module, exports, __webpack_require__) {
|
898 |
+
|
899 |
+
var document = __webpack_require__(9).document;
|
900 |
+
module.exports = document && document.documentElement;
|
901 |
+
|
902 |
+
|
903 |
+
/***/ }),
|
904 |
+
/* 73 */
|
905 |
+
/***/ (function(module, exports, __webpack_require__) {
|
906 |
+
|
907 |
+
__webpack_require__(112);
|
908 |
+
var global = __webpack_require__(9);
|
909 |
+
var hide = __webpack_require__(20);
|
910 |
+
var Iterators = __webpack_require__(29);
|
911 |
+
var TO_STRING_TAG = __webpack_require__(10)('toStringTag');
|
912 |
+
|
913 |
+
var DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' +
|
914 |
+
'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' +
|
915 |
+
'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' +
|
916 |
+
'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' +
|
917 |
+
'TextTrackList,TouchList').split(',');
|
918 |
+
|
919 |
+
for (var i = 0; i < DOMIterables.length; i++) {
|
920 |
+
var NAME = DOMIterables[i];
|
921 |
+
var Collection = global[NAME];
|
922 |
+
var proto = Collection && Collection.prototype;
|
923 |
+
if (proto && !proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);
|
924 |
+
Iterators[NAME] = Iterators.Array;
|
925 |
+
}
|
926 |
+
|
927 |
+
|
928 |
+
/***/ }),
|
929 |
+
/* 74 */
|
930 |
+
/***/ (function(module, exports, __webpack_require__) {
|
931 |
+
|
932 |
+
// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
|
933 |
+
var $keys = __webpack_require__(68);
|
934 |
+
var hiddenKeys = __webpack_require__(54).concat('length', 'prototype');
|
935 |
+
|
936 |
+
exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
937 |
+
return $keys(O, hiddenKeys);
|
938 |
+
};
|
939 |
+
|
940 |
+
|
941 |
+
/***/ }),
|
942 |
+
/* 75 */
|
943 |
+
/***/ (function(module, exports) {
|
944 |
+
|
945 |
+
|
946 |
+
|
947 |
+
/***/ }),
|
948 |
+
/* 76 */
|
949 |
+
/***/ (function(module, exports, __webpack_require__) {
|
950 |
+
|
951 |
+
// getting tag from 19.1.3.6 Object.prototype.toString()
|
952 |
+
var cof = __webpack_require__(28);
|
953 |
+
var TAG = __webpack_require__(10)('toStringTag');
|
954 |
+
// ES3 wrong here
|
955 |
+
var ARG = cof(function () { return arguments; }()) == 'Arguments';
|
956 |
+
|
957 |
+
// fallback for IE11 Script Access Denied error
|
958 |
+
var tryGet = function (it, key) {
|
959 |
+
try {
|
960 |
+
return it[key];
|
961 |
+
} catch (e) { /* empty */ }
|
962 |
+
};
|
963 |
+
|
964 |
+
module.exports = function (it) {
|
965 |
+
var O, T, B;
|
966 |
+
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
967 |
+
// @@toStringTag case
|
968 |
+
: typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T
|
969 |
+
// builtinTag case
|
970 |
+
: ARG ? cof(O)
|
971 |
+
// ES3 arguments fallback
|
972 |
+
: (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;
|
973 |
+
};
|
974 |
+
|
975 |
+
|
976 |
+
/***/ }),
|
977 |
+
/* 77 */
|
978 |
+
/***/ (function(module, exports, __webpack_require__) {
|
979 |
+
|
980 |
+
// 7.3.20 SpeciesConstructor(O, defaultConstructor)
|
981 |
+
var anObject = __webpack_require__(15);
|
982 |
+
var aFunction = __webpack_require__(37);
|
983 |
+
var SPECIES = __webpack_require__(10)('species');
|
984 |
+
module.exports = function (O, D) {
|
985 |
+
var C = anObject(O).constructor;
|
986 |
+
var S;
|
987 |
+
return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? D : aFunction(S);
|
988 |
+
};
|
989 |
+
|
990 |
+
|
991 |
+
/***/ }),
|
992 |
+
/* 78 */
|
993 |
+
/***/ (function(module, exports, __webpack_require__) {
|
994 |
+
|
995 |
+
var ctx = __webpack_require__(31);
|
996 |
+
var invoke = __webpack_require__(129);
|
997 |
+
var html = __webpack_require__(72);
|
998 |
+
var cel = __webpack_require__(48);
|
999 |
+
var global = __webpack_require__(9);
|
1000 |
+
var process = global.process;
|
1001 |
+
var setTask = global.setImmediate;
|
1002 |
+
var clearTask = global.clearImmediate;
|
1003 |
+
var MessageChannel = global.MessageChannel;
|
1004 |
+
var Dispatch = global.Dispatch;
|
1005 |
+
var counter = 0;
|
1006 |
+
var queue = {};
|
1007 |
+
var ONREADYSTATECHANGE = 'onreadystatechange';
|
1008 |
+
var defer, channel, port;
|
1009 |
+
var run = function () {
|
1010 |
+
var id = +this;
|
1011 |
+
// eslint-disable-next-line no-prototype-builtins
|
1012 |
+
if (queue.hasOwnProperty(id)) {
|
1013 |
+
var fn = queue[id];
|
1014 |
+
delete queue[id];
|
1015 |
+
fn();
|
1016 |
+
}
|
1017 |
+
};
|
1018 |
+
var listener = function (event) {
|
1019 |
+
run.call(event.data);
|
1020 |
+
};
|
1021 |
+
// Node.js 0.9+ & IE10+ has setImmediate, otherwise:
|
1022 |
+
if (!setTask || !clearTask) {
|
1023 |
+
setTask = function setImmediate(fn) {
|
1024 |
+
var args = [];
|
1025 |
+
var i = 1;
|
1026 |
+
while (arguments.length > i) args.push(arguments[i++]);
|
1027 |
+
queue[++counter] = function () {
|
1028 |
+
// eslint-disable-next-line no-new-func
|
1029 |
+
invoke(typeof fn == 'function' ? fn : Function(fn), args);
|
1030 |
+
};
|
1031 |
+
defer(counter);
|
1032 |
+
return counter;
|
1033 |
+
};
|
1034 |
+
clearTask = function clearImmediate(id) {
|
1035 |
+
delete queue[id];
|
1036 |
+
};
|
1037 |
+
// Node.js 0.8-
|
1038 |
+
if (__webpack_require__(28)(process) == 'process') {
|
1039 |
+
defer = function (id) {
|
1040 |
+
process.nextTick(ctx(run, id, 1));
|
1041 |
+
};
|
1042 |
+
// Sphere (JS game engine) Dispatch API
|
1043 |
+
} else if (Dispatch && Dispatch.now) {
|
1044 |
+
defer = function (id) {
|
1045 |
+
Dispatch.now(ctx(run, id, 1));
|
1046 |
+
};
|
1047 |
+
// Browsers with MessageChannel, includes WebWorkers
|
1048 |
+
} else if (MessageChannel) {
|
1049 |
+
channel = new MessageChannel();
|
1050 |
+
port = channel.port2;
|
1051 |
+
channel.port1.onmessage = listener;
|
1052 |
+
defer = ctx(port.postMessage, port, 1);
|
1053 |
+
// Browsers with postMessage, skip WebWorkers
|
1054 |
+
// IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
|
1055 |
+
} else if (global.addEventListener && typeof postMessage == 'function' && !global.importScripts) {
|
1056 |
+
defer = function (id) {
|
1057 |
+
global.postMessage(id + '', '*');
|
1058 |
+
};
|
1059 |
+
global.addEventListener('message', listener, false);
|
1060 |
+
// IE8-
|
1061 |
+
} else if (ONREADYSTATECHANGE in cel('script')) {
|
1062 |
+
defer = function (id) {
|
1063 |
+
html.appendChild(cel('script'))[ONREADYSTATECHANGE] = function () {
|
1064 |
+
html.removeChild(this);
|
1065 |
+
run.call(id);
|
1066 |
+
};
|
1067 |
+
};
|
1068 |
+
// Rest old browsers
|
1069 |
+
} else {
|
1070 |
+
defer = function (id) {
|
1071 |
+
setTimeout(ctx(run, id, 1), 0);
|
1072 |
+
};
|
1073 |
+
}
|
1074 |
+
}
|
1075 |
+
module.exports = {
|
1076 |
+
set: setTask,
|
1077 |
+
clear: clearTask
|
1078 |
+
};
|
1079 |
+
|
1080 |
+
|
1081 |
+
/***/ }),
|
1082 |
+
/* 79 */
|
1083 |
+
/***/ (function(module, exports) {
|
1084 |
+
|
1085 |
+
module.exports = function (exec) {
|
1086 |
+
try {
|
1087 |
+
return { e: false, v: exec() };
|
1088 |
+
} catch (e) {
|
1089 |
+
return { e: true, v: e };
|
1090 |
+
}
|
1091 |
+
};
|
1092 |
+
|
1093 |
+
|
1094 |
+
/***/ }),
|
1095 |
+
/* 80 */
|
1096 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1097 |
+
|
1098 |
+
var anObject = __webpack_require__(15);
|
1099 |
+
var isObject = __webpack_require__(18);
|
1100 |
+
var newPromiseCapability = __webpack_require__(60);
|
1101 |
+
|
1102 |
+
module.exports = function (C, x) {
|
1103 |
+
anObject(C);
|
1104 |
+
if (isObject(x) && x.constructor === C) return x;
|
1105 |
+
var promiseCapability = newPromiseCapability.f(C);
|
1106 |
+
var resolve = promiseCapability.resolve;
|
1107 |
+
resolve(x);
|
1108 |
+
return promiseCapability.promise;
|
1109 |
+
};
|
1110 |
+
|
1111 |
+
|
1112 |
+
/***/ }),
|
1113 |
+
/* 81 */,
|
1114 |
+
/* 82 */,
|
1115 |
+
/* 83 */,
|
1116 |
+
/* 84 */,
|
1117 |
+
/* 85 */
|
1118 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1119 |
+
|
1120 |
+
module.exports = { "default": __webpack_require__(101), __esModule: true };
|
1121 |
+
|
1122 |
+
/***/ }),
|
1123 |
+
/* 86 */
|
1124 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1125 |
+
|
1126 |
+
"use strict";
|
1127 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return printedData; });
|
1128 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return cfAdmin; });
|
1129 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof__ = __webpack_require__(45);
|
1130 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof__);
|
1131 |
+
|
1132 |
+
/** Wrappers around objects added via wp_localize_script() **/
|
1133 |
+
|
1134 |
+
var printedData = 'object' === (typeof CF_FORMS === 'undefined' ? 'undefined' : __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof___default()(CF_FORMS)) ? CF_FORMS : [];
|
1135 |
+
var cfAdmin = 'object' === (typeof CF_ADMIN === 'undefined' ? 'undefined' : __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof___default()(CF_ADMIN)) ? CF_ADMIN : {};
|
1136 |
+
|
1137 |
+
/***/ }),
|
1138 |
+
/* 87 */
|
1139 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1140 |
+
|
1141 |
+
var pIE = __webpack_require__(34);
|
1142 |
+
var createDesc = __webpack_require__(33);
|
1143 |
+
var toIObject = __webpack_require__(23);
|
1144 |
+
var toPrimitive = __webpack_require__(49);
|
1145 |
+
var has = __webpack_require__(22);
|
1146 |
+
var IE8_DOM_DEFINE = __webpack_require__(67);
|
1147 |
+
var gOPD = Object.getOwnPropertyDescriptor;
|
1148 |
+
|
1149 |
+
exports.f = __webpack_require__(21) ? gOPD : function getOwnPropertyDescriptor(O, P) {
|
1150 |
+
O = toIObject(O);
|
1151 |
+
P = toPrimitive(P, true);
|
1152 |
+
if (IE8_DOM_DEFINE) try {
|
1153 |
+
return gOPD(O, P);
|
1154 |
+
} catch (e) { /* empty */ }
|
1155 |
+
if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);
|
1156 |
+
};
|
1157 |
+
|
1158 |
+
|
1159 |
+
/***/ }),
|
1160 |
+
/* 88 */
|
1161 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1162 |
+
|
1163 |
+
"use strict";
|
1164 |
+
/* unused harmony export formHasId */
|
1165 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return findFormById; });
|
1166 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return findFormIndexById; });
|
1167 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof__ = __webpack_require__(45);
|
1168 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof__);
|
1169 |
+
|
1170 |
+
/**
|
1171 |
+
* Check if a form has the provided ID
|
1172 |
+
*
|
1173 |
+
* @since 1.6.2
|
1174 |
+
*
|
1175 |
+
* @param {Object} form Form config
|
1176 |
+
* @param {String} formId
|
1177 |
+
* @return {boolean}
|
1178 |
+
*/
|
1179 |
+
var formHasId = function formHasId(form, formId) {
|
1180 |
+
if ('object' !== (typeof form === 'undefined' ? 'undefined' : __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof___default()(form))) {
|
1181 |
+
return false;
|
1182 |
+
}
|
1183 |
+
if (form.hasOwnProperty('ID')) {
|
1184 |
+
return formId === form.ID;
|
1185 |
+
}
|
1186 |
+
if (form.hasOwnProperty('formId')) {
|
1187 |
+
return formId === form.formId;
|
1188 |
+
}
|
1189 |
+
return false;
|
1190 |
+
};
|
1191 |
+
|
1192 |
+
/**
|
1193 |
+
* Find form in state by Id
|
1194 |
+
*
|
1195 |
+
* @since 1.6.2
|
1196 |
+
*
|
1197 |
+
* @param {Object} state
|
1198 |
+
* @param {String} formId
|
1199 |
+
*/
|
1200 |
+
var findFormById = function findFormById(state, formId) {
|
1201 |
+
return state.forms.find(function (form) {
|
1202 |
+
return formHasId(form, formId);
|
1203 |
+
});
|
1204 |
+
};
|
1205 |
+
|
1206 |
+
/**
|
1207 |
+
* Find form index in state by Id
|
1208 |
+
*
|
1209 |
+
* @since 1.6.2
|
1210 |
+
*
|
1211 |
+
* @param {Object} state
|
1212 |
+
* @param {String} formId
|
1213 |
+
*/
|
1214 |
+
var findFormIndexById = function findFormIndexById(state, formId) {
|
1215 |
+
return state.forms.findIndex(function (form) {
|
1216 |
+
return formHasId(form, formId);
|
1217 |
+
});
|
1218 |
+
};
|
1219 |
+
|
1220 |
+
/***/ }),
|
1221 |
+
/* 89 */
|
1222 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1223 |
+
|
1224 |
+
// call something on iterator step with safe closing on error
|
1225 |
+
var anObject = __webpack_require__(15);
|
1226 |
+
module.exports = function (iterator, fn, value, entries) {
|
1227 |
+
try {
|
1228 |
+
return entries ? fn(anObject(value)[0], value[1]) : fn(value);
|
1229 |
+
// 7.4.6 IteratorClose(iterator, completion)
|
1230 |
+
} catch (e) {
|
1231 |
+
var ret = iterator['return'];
|
1232 |
+
if (ret !== undefined) anObject(ret.call(iterator));
|
1233 |
+
throw e;
|
1234 |
+
}
|
1235 |
+
};
|
1236 |
+
|
1237 |
+
|
1238 |
+
/***/ }),
|
1239 |
+
/* 90 */
|
1240 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1241 |
+
|
1242 |
+
// check on default Array iterator
|
1243 |
+
var Iterators = __webpack_require__(29);
|
1244 |
+
var ITERATOR = __webpack_require__(10)('iterator');
|
1245 |
+
var ArrayProto = Array.prototype;
|
1246 |
+
|
1247 |
+
module.exports = function (it) {
|
1248 |
+
return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
|
1249 |
+
};
|
1250 |
+
|
1251 |
+
|
1252 |
+
/***/ }),
|
1253 |
+
/* 91 */
|
1254 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1255 |
+
|
1256 |
+
var classof = __webpack_require__(76);
|
1257 |
+
var ITERATOR = __webpack_require__(10)('iterator');
|
1258 |
+
var Iterators = __webpack_require__(29);
|
1259 |
+
module.exports = __webpack_require__(12).getIteratorMethod = function (it) {
|
1260 |
+
if (it != undefined) return it[ITERATOR]
|
1261 |
+
|| it['@@iterator']
|
1262 |
+
|| Iterators[classof(it)];
|
1263 |
+
};
|
1264 |
+
|
1265 |
+
|
1266 |
+
/***/ }),
|
1267 |
+
/* 92 */
|
1268 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1269 |
+
|
1270 |
+
var ITERATOR = __webpack_require__(10)('iterator');
|
1271 |
+
var SAFE_CLOSING = false;
|
1272 |
+
|
1273 |
+
try {
|
1274 |
+
var riter = [7][ITERATOR]();
|
1275 |
+
riter['return'] = function () { SAFE_CLOSING = true; };
|
1276 |
+
// eslint-disable-next-line no-throw-literal
|
1277 |
+
Array.from(riter, function () { throw 2; });
|
1278 |
+
} catch (e) { /* empty */ }
|
1279 |
+
|
1280 |
+
module.exports = function (exec, skipClosing) {
|
1281 |
+
if (!skipClosing && !SAFE_CLOSING) return false;
|
1282 |
+
var safe = false;
|
1283 |
+
try {
|
1284 |
+
var arr = [7];
|
1285 |
+
var iter = arr[ITERATOR]();
|
1286 |
+
iter.next = function () { return { done: safe = true }; };
|
1287 |
+
arr[ITERATOR] = function () { return iter; };
|
1288 |
+
exec(arr);
|
1289 |
+
} catch (e) { /* empty */ }
|
1290 |
+
return safe;
|
1291 |
+
};
|
1292 |
+
|
1293 |
+
|
1294 |
+
/***/ }),
|
1295 |
+
/* 93 */,
|
1296 |
+
/* 94 */,
|
1297 |
+
/* 95 */,
|
1298 |
+
/* 96 */,
|
1299 |
+
/* 97 */,
|
1300 |
+
/* 98 */,
|
1301 |
+
/* 99 */,
|
1302 |
+
/* 100 */,
|
1303 |
+
/* 101 */
|
1304 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1305 |
+
|
1306 |
+
__webpack_require__(102);
|
1307 |
+
module.exports = __webpack_require__(12).Object.assign;
|
1308 |
+
|
1309 |
+
|
1310 |
+
/***/ }),
|
1311 |
+
/* 102 */
|
1312 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1313 |
+
|
1314 |
+
// 19.1.3.1 Object.assign(target, source)
|
1315 |
+
var $export = __webpack_require__(14);
|
1316 |
+
|
1317 |
+
$export($export.S + $export.F, 'Object', { assign: __webpack_require__(103) });
|
1318 |
+
|
1319 |
+
|
1320 |
+
/***/ }),
|
1321 |
+
/* 103 */
|
1322 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1323 |
+
|
1324 |
+
"use strict";
|
1325 |
+
|
1326 |
+
// 19.1.2.1 Object.assign(target, source, ...)
|
1327 |
+
var getKeys = __webpack_require__(27);
|
1328 |
+
var gOPS = __webpack_require__(55);
|
1329 |
+
var pIE = __webpack_require__(34);
|
1330 |
+
var toObject = __webpack_require__(56);
|
1331 |
+
var IObject = __webpack_require__(69);
|
1332 |
+
var $assign = Object.assign;
|
1333 |
+
|
1334 |
+
// should work with symbols and should have deterministic property order (V8 bug)
|
1335 |
+
module.exports = !$assign || __webpack_require__(25)(function () {
|
1336 |
+
var A = {};
|
1337 |
+
var B = {};
|
1338 |
+
// eslint-disable-next-line no-undef
|
1339 |
+
var S = Symbol();
|
1340 |
+
var K = 'abcdefghijklmnopqrst';
|
1341 |
+
A[S] = 7;
|
1342 |
+
K.split('').forEach(function (k) { B[k] = k; });
|
1343 |
+
return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;
|
1344 |
+
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars
|
1345 |
+
var T = toObject(target);
|
1346 |
+
var aLen = arguments.length;
|
1347 |
+
var index = 1;
|
1348 |
+
var getSymbols = gOPS.f;
|
1349 |
+
var isEnum = pIE.f;
|
1350 |
+
while (aLen > index) {
|
1351 |
+
var S = IObject(arguments[index++]);
|
1352 |
+
var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);
|
1353 |
+
var length = keys.length;
|
1354 |
+
var j = 0;
|
1355 |
+
var key;
|
1356 |
+
while (length > j) if (isEnum.call(S, key = keys[j++])) T[key] = S[key];
|
1357 |
+
} return T;
|
1358 |
+
} : $assign;
|
1359 |
+
|
1360 |
+
|
1361 |
+
/***/ }),
|
1362 |
+
/* 104 */
|
1363 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1364 |
+
|
1365 |
+
// false -> Array#indexOf
|
1366 |
+
// true -> Array#includes
|
1367 |
+
var toIObject = __webpack_require__(23);
|
1368 |
+
var toLength = __webpack_require__(63);
|
1369 |
+
var toAbsoluteIndex = __webpack_require__(105);
|
1370 |
+
module.exports = function (IS_INCLUDES) {
|
1371 |
+
return function ($this, el, fromIndex) {
|
1372 |
+
var O = toIObject($this);
|
1373 |
+
var length = toLength(O.length);
|
1374 |
+
var index = toAbsoluteIndex(fromIndex, length);
|
1375 |
+
var value;
|
1376 |
+
// Array#includes uses SameValueZero equality algorithm
|
1377 |
+
// eslint-disable-next-line no-self-compare
|
1378 |
+
if (IS_INCLUDES && el != el) while (length > index) {
|
1379 |
+
value = O[index++];
|
1380 |
+
// eslint-disable-next-line no-self-compare
|
1381 |
+
if (value != value) return true;
|
1382 |
+
// Array#indexOf ignores holes, Array#includes - not
|
1383 |
+
} else for (;length > index; index++) if (IS_INCLUDES || index in O) {
|
1384 |
+
if (O[index] === el) return IS_INCLUDES || index || 0;
|
1385 |
+
} return !IS_INCLUDES && -1;
|
1386 |
+
};
|
1387 |
+
};
|
1388 |
+
|
1389 |
+
|
1390 |
+
/***/ }),
|
1391 |
+
/* 105 */
|
1392 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1393 |
+
|
1394 |
+
var toInteger = __webpack_require__(51);
|
1395 |
+
var max = Math.max;
|
1396 |
+
var min = Math.min;
|
1397 |
+
module.exports = function (index, length) {
|
1398 |
+
index = toInteger(index);
|
1399 |
+
return index < 0 ? max(index + length, 0) : min(index, length);
|
1400 |
+
};
|
1401 |
+
|
1402 |
+
|
1403 |
+
/***/ }),
|
1404 |
+
/* 106 */
|
1405 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1406 |
+
|
1407 |
+
module.exports = { "default": __webpack_require__(107), __esModule: true };
|
1408 |
+
|
1409 |
+
/***/ }),
|
1410 |
+
/* 107 */
|
1411 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1412 |
+
|
1413 |
+
__webpack_require__(64);
|
1414 |
+
__webpack_require__(73);
|
1415 |
+
module.exports = __webpack_require__(58).f('iterator');
|
1416 |
+
|
1417 |
+
|
1418 |
+
/***/ }),
|
1419 |
+
/* 108 */
|
1420 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1421 |
+
|
1422 |
+
var toInteger = __webpack_require__(51);
|
1423 |
+
var defined = __webpack_require__(50);
|
1424 |
+
// true -> String#at
|
1425 |
+
// false -> String#codePointAt
|
1426 |
+
module.exports = function (TO_STRING) {
|
1427 |
+
return function (that, pos) {
|
1428 |
+
var s = String(defined(that));
|
1429 |
+
var i = toInteger(pos);
|
1430 |
+
var l = s.length;
|
1431 |
+
var a, b;
|
1432 |
+
if (i < 0 || i >= l) return TO_STRING ? '' : undefined;
|
1433 |
+
a = s.charCodeAt(i);
|
1434 |
+
return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff
|
1435 |
+
? TO_STRING ? s.charAt(i) : a
|
1436 |
+
: TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;
|
1437 |
+
};
|
1438 |
+
};
|
1439 |
+
|
1440 |
+
|
1441 |
+
/***/ }),
|
1442 |
+
/* 109 */
|
1443 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1444 |
+
|
1445 |
+
"use strict";
|
1446 |
+
|
1447 |
+
var create = __webpack_require__(65);
|
1448 |
+
var descriptor = __webpack_require__(33);
|
1449 |
+
var setToStringTag = __webpack_require__(40);
|
1450 |
+
var IteratorPrototype = {};
|
1451 |
+
|
1452 |
+
// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
|
1453 |
+
__webpack_require__(20)(IteratorPrototype, __webpack_require__(10)('iterator'), function () { return this; });
|
1454 |
+
|
1455 |
+
module.exports = function (Constructor, NAME, next) {
|
1456 |
+
Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });
|
1457 |
+
setToStringTag(Constructor, NAME + ' Iterator');
|
1458 |
+
};
|
1459 |
+
|
1460 |
+
|
1461 |
+
/***/ }),
|
1462 |
+
/* 110 */
|
1463 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1464 |
+
|
1465 |
+
var dP = __webpack_require__(17);
|
1466 |
+
var anObject = __webpack_require__(15);
|
1467 |
+
var getKeys = __webpack_require__(27);
|
1468 |
+
|
1469 |
+
module.exports = __webpack_require__(21) ? Object.defineProperties : function defineProperties(O, Properties) {
|
1470 |
+
anObject(O);
|
1471 |
+
var keys = getKeys(Properties);
|
1472 |
+
var length = keys.length;
|
1473 |
+
var i = 0;
|
1474 |
+
var P;
|
1475 |
+
while (length > i) dP.f(O, P = keys[i++], Properties[P]);
|
1476 |
+
return O;
|
1477 |
+
};
|
1478 |
+
|
1479 |
+
|
1480 |
+
/***/ }),
|
1481 |
+
/* 111 */
|
1482 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1483 |
+
|
1484 |
+
// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
|
1485 |
+
var has = __webpack_require__(22);
|
1486 |
+
var toObject = __webpack_require__(56);
|
1487 |
+
var IE_PROTO = __webpack_require__(52)('IE_PROTO');
|
1488 |
+
var ObjectProto = Object.prototype;
|
1489 |
+
|
1490 |
+
module.exports = Object.getPrototypeOf || function (O) {
|
1491 |
+
O = toObject(O);
|
1492 |
+
if (has(O, IE_PROTO)) return O[IE_PROTO];
|
1493 |
+
if (typeof O.constructor == 'function' && O instanceof O.constructor) {
|
1494 |
+
return O.constructor.prototype;
|
1495 |
+
} return O instanceof Object ? ObjectProto : null;
|
1496 |
+
};
|
1497 |
+
|
1498 |
+
|
1499 |
+
/***/ }),
|
1500 |
+
/* 112 */
|
1501 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1502 |
+
|
1503 |
+
"use strict";
|
1504 |
+
|
1505 |
+
var addToUnscopables = __webpack_require__(113);
|
1506 |
+
var step = __webpack_require__(114);
|
1507 |
+
var Iterators = __webpack_require__(29);
|
1508 |
+
var toIObject = __webpack_require__(23);
|
1509 |
+
|
1510 |
+
// 22.1.3.4 Array.prototype.entries()
|
1511 |
+
// 22.1.3.13 Array.prototype.keys()
|
1512 |
+
// 22.1.3.29 Array.prototype.values()
|
1513 |
+
// 22.1.3.30 Array.prototype[@@iterator]()
|
1514 |
+
module.exports = __webpack_require__(70)(Array, 'Array', function (iterated, kind) {
|
1515 |
+
this._t = toIObject(iterated); // target
|
1516 |
+
this._i = 0; // next index
|
1517 |
+
this._k = kind; // kind
|
1518 |
+
// 22.1.5.2.1 %ArrayIteratorPrototype%.next()
|
1519 |
+
}, function () {
|
1520 |
+
var O = this._t;
|
1521 |
+
var kind = this._k;
|
1522 |
+
var index = this._i++;
|
1523 |
+
if (!O || index >= O.length) {
|
1524 |
+
this._t = undefined;
|
1525 |
+
return step(1);
|
1526 |
+
}
|
1527 |
+
if (kind == 'keys') return step(0, index);
|
1528 |
+
if (kind == 'values') return step(0, O[index]);
|
1529 |
+
return step(0, [index, O[index]]);
|
1530 |
+
}, 'values');
|
1531 |
+
|
1532 |
+
// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)
|
1533 |
+
Iterators.Arguments = Iterators.Array;
|
1534 |
+
|
1535 |
+
addToUnscopables('keys');
|
1536 |
+
addToUnscopables('values');
|
1537 |
+
addToUnscopables('entries');
|
1538 |
+
|
1539 |
+
|
1540 |
+
/***/ }),
|
1541 |
+
/* 113 */
|
1542 |
+
/***/ (function(module, exports) {
|
1543 |
+
|
1544 |
+
module.exports = function () { /* empty */ };
|
1545 |
+
|
1546 |
+
|
1547 |
+
/***/ }),
|
1548 |
+
/* 114 */
|
1549 |
+
/***/ (function(module, exports) {
|
1550 |
+
|
1551 |
+
module.exports = function (done, value) {
|
1552 |
+
return { value: value, done: !!done };
|
1553 |
+
};
|
1554 |
+
|
1555 |
+
|
1556 |
+
/***/ }),
|
1557 |
+
/* 115 */
|
1558 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1559 |
+
|
1560 |
+
module.exports = { "default": __webpack_require__(116), __esModule: true };
|
1561 |
+
|
1562 |
+
/***/ }),
|
1563 |
+
/* 116 */
|
1564 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1565 |
+
|
1566 |
+
__webpack_require__(117);
|
1567 |
+
__webpack_require__(75);
|
1568 |
+
__webpack_require__(122);
|
1569 |
+
__webpack_require__(123);
|
1570 |
+
module.exports = __webpack_require__(12).Symbol;
|
1571 |
+
|
1572 |
+
|
1573 |
+
/***/ }),
|
1574 |
+
/* 117 */
|
1575 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1576 |
+
|
1577 |
+
"use strict";
|
1578 |
+
|
1579 |
+
// ECMAScript 6 symbols shim
|
1580 |
+
var global = __webpack_require__(9);
|
1581 |
+
var has = __webpack_require__(22);
|
1582 |
+
var DESCRIPTORS = __webpack_require__(21);
|
1583 |
+
var $export = __webpack_require__(14);
|
1584 |
+
var redefine = __webpack_require__(71);
|
1585 |
+
var META = __webpack_require__(118).KEY;
|
1586 |
+
var $fails = __webpack_require__(25);
|
1587 |
+
var shared = __webpack_require__(53);
|
1588 |
+
var setToStringTag = __webpack_require__(40);
|
1589 |
+
var uid = __webpack_require__(38);
|
1590 |
+
var wks = __webpack_require__(10);
|
1591 |
+
var wksExt = __webpack_require__(58);
|
1592 |
+
var wksDefine = __webpack_require__(59);
|
1593 |
+
var enumKeys = __webpack_require__(119);
|
1594 |
+
var isArray = __webpack_require__(120);
|
1595 |
+
var anObject = __webpack_require__(15);
|
1596 |
+
var isObject = __webpack_require__(18);
|
1597 |
+
var toIObject = __webpack_require__(23);
|
1598 |
+
var toPrimitive = __webpack_require__(49);
|
1599 |
+
var createDesc = __webpack_require__(33);
|
1600 |
+
var _create = __webpack_require__(65);
|
1601 |
+
var gOPNExt = __webpack_require__(121);
|
1602 |
+
var $GOPD = __webpack_require__(87);
|
1603 |
+
var $DP = __webpack_require__(17);
|
1604 |
+
var $keys = __webpack_require__(27);
|
1605 |
+
var gOPD = $GOPD.f;
|
1606 |
+
var dP = $DP.f;
|
1607 |
+
var gOPN = gOPNExt.f;
|
1608 |
+
var $Symbol = global.Symbol;
|
1609 |
+
var $JSON = global.JSON;
|
1610 |
+
var _stringify = $JSON && $JSON.stringify;
|
1611 |
+
var PROTOTYPE = 'prototype';
|
1612 |
+
var HIDDEN = wks('_hidden');
|
1613 |
+
var TO_PRIMITIVE = wks('toPrimitive');
|
1614 |
+
var isEnum = {}.propertyIsEnumerable;
|
1615 |
+
var SymbolRegistry = shared('symbol-registry');
|
1616 |
+
var AllSymbols = shared('symbols');
|
1617 |
+
var OPSymbols = shared('op-symbols');
|
1618 |
+
var ObjectProto = Object[PROTOTYPE];
|
1619 |
+
var USE_NATIVE = typeof $Symbol == 'function';
|
1620 |
+
var QObject = global.QObject;
|
1621 |
+
// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
|
1622 |
+
var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
|
1623 |
+
|
1624 |
+
// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
|
1625 |
+
var setSymbolDesc = DESCRIPTORS && $fails(function () {
|
1626 |
+
return _create(dP({}, 'a', {
|
1627 |
+
get: function () { return dP(this, 'a', { value: 7 }).a; }
|
1628 |
+
})).a != 7;
|
1629 |
+
}) ? function (it, key, D) {
|
1630 |
+
var protoDesc = gOPD(ObjectProto, key);
|
1631 |
+
if (protoDesc) delete ObjectProto[key];
|
1632 |
+
dP(it, key, D);
|
1633 |
+
if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc);
|
1634 |
+
} : dP;
|
1635 |
+
|
1636 |
+
var wrap = function (tag) {
|
1637 |
+
var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]);
|
1638 |
+
sym._k = tag;
|
1639 |
+
return sym;
|
1640 |
+
};
|
1641 |
+
|
1642 |
+
var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) {
|
1643 |
+
return typeof it == 'symbol';
|
1644 |
+
} : function (it) {
|
1645 |
+
return it instanceof $Symbol;
|
1646 |
+
};
|
1647 |
+
|
1648 |
+
var $defineProperty = function defineProperty(it, key, D) {
|
1649 |
+
if (it === ObjectProto) $defineProperty(OPSymbols, key, D);
|
1650 |
+
anObject(it);
|
1651 |
+
key = toPrimitive(key, true);
|
1652 |
+
anObject(D);
|
1653 |
+
if (has(AllSymbols, key)) {
|
1654 |
+
if (!D.enumerable) {
|
1655 |
+
if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {}));
|
1656 |
+
it[HIDDEN][key] = true;
|
1657 |
+
} else {
|
1658 |
+
if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false;
|
1659 |
+
D = _create(D, { enumerable: createDesc(0, false) });
|
1660 |
+
} return setSymbolDesc(it, key, D);
|
1661 |
+
} return dP(it, key, D);
|
1662 |
+
};
|
1663 |
+
var $defineProperties = function defineProperties(it, P) {
|
1664 |
+
anObject(it);
|
1665 |
+
var keys = enumKeys(P = toIObject(P));
|
1666 |
+
var i = 0;
|
1667 |
+
var l = keys.length;
|
1668 |
+
var key;
|
1669 |
+
while (l > i) $defineProperty(it, key = keys[i++], P[key]);
|
1670 |
+
return it;
|
1671 |
+
};
|
1672 |
+
var $create = function create(it, P) {
|
1673 |
+
return P === undefined ? _create(it) : $defineProperties(_create(it), P);
|
1674 |
+
};
|
1675 |
+
var $propertyIsEnumerable = function propertyIsEnumerable(key) {
|
1676 |
+
var E = isEnum.call(this, key = toPrimitive(key, true));
|
1677 |
+
if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false;
|
1678 |
+
return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;
|
1679 |
+
};
|
1680 |
+
var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) {
|
1681 |
+
it = toIObject(it);
|
1682 |
+
key = toPrimitive(key, true);
|
1683 |
+
if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return;
|
1684 |
+
var D = gOPD(it, key);
|
1685 |
+
if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true;
|
1686 |
+
return D;
|
1687 |
+
};
|
1688 |
+
var $getOwnPropertyNames = function getOwnPropertyNames(it) {
|
1689 |
+
var names = gOPN(toIObject(it));
|
1690 |
+
var result = [];
|
1691 |
+
var i = 0;
|
1692 |
+
var key;
|
1693 |
+
while (names.length > i) {
|
1694 |
+
if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key);
|
1695 |
+
} return result;
|
1696 |
+
};
|
1697 |
+
var $getOwnPropertySymbols = function getOwnPropertySymbols(it) {
|
1698 |
+
var IS_OP = it === ObjectProto;
|
1699 |
+
var names = gOPN(IS_OP ? OPSymbols : toIObject(it));
|
1700 |
+
var result = [];
|
1701 |
+
var i = 0;
|
1702 |
+
var key;
|
1703 |
+
while (names.length > i) {
|
1704 |
+
if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]);
|
1705 |
+
} return result;
|
1706 |
+
};
|
1707 |
+
|
1708 |
+
// 19.4.1.1 Symbol([description])
|
1709 |
+
if (!USE_NATIVE) {
|
1710 |
+
$Symbol = function Symbol() {
|
1711 |
+
if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!');
|
1712 |
+
var tag = uid(arguments.length > 0 ? arguments[0] : undefined);
|
1713 |
+
var $set = function (value) {
|
1714 |
+
if (this === ObjectProto) $set.call(OPSymbols, value);
|
1715 |
+
if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
|
1716 |
+
setSymbolDesc(this, tag, createDesc(1, value));
|
1717 |
+
};
|
1718 |
+
if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set });
|
1719 |
+
return wrap(tag);
|
1720 |
+
};
|
1721 |
+
redefine($Symbol[PROTOTYPE], 'toString', function toString() {
|
1722 |
+
return this._k;
|
1723 |
+
});
|
1724 |
+
|
1725 |
+
$GOPD.f = $getOwnPropertyDescriptor;
|
1726 |
+
$DP.f = $defineProperty;
|
1727 |
+
__webpack_require__(74).f = gOPNExt.f = $getOwnPropertyNames;
|
1728 |
+
__webpack_require__(34).f = $propertyIsEnumerable;
|
1729 |
+
__webpack_require__(55).f = $getOwnPropertySymbols;
|
1730 |
+
|
1731 |
+
if (DESCRIPTORS && !__webpack_require__(39)) {
|
1732 |
+
redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);
|
1733 |
+
}
|
1734 |
+
|
1735 |
+
wksExt.f = function (name) {
|
1736 |
+
return wrap(wks(name));
|
1737 |
+
};
|
1738 |
+
}
|
1739 |
+
|
1740 |
+
$export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol });
|
1741 |
+
|
1742 |
+
for (var es6Symbols = (
|
1743 |
+
// 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14
|
1744 |
+
'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'
|
1745 |
+
).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]);
|
1746 |
+
|
1747 |
+
for (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]);
|
1748 |
+
|
1749 |
+
$export($export.S + $export.F * !USE_NATIVE, 'Symbol', {
|
1750 |
+
// 19.4.2.1 Symbol.for(key)
|
1751 |
+
'for': function (key) {
|
1752 |
+
return has(SymbolRegistry, key += '')
|
1753 |
+
? SymbolRegistry[key]
|
1754 |
+
: SymbolRegistry[key] = $Symbol(key);
|
1755 |
+
},
|
1756 |
+
// 19.4.2.5 Symbol.keyFor(sym)
|
1757 |
+
keyFor: function keyFor(sym) {
|
1758 |
+
if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!');
|
1759 |
+
for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key;
|
1760 |
+
},
|
1761 |
+
useSetter: function () { setter = true; },
|
1762 |
+
useSimple: function () { setter = false; }
|
1763 |
+
});
|
1764 |
+
|
1765 |
+
$export($export.S + $export.F * !USE_NATIVE, 'Object', {
|
1766 |
+
// 19.1.2.2 Object.create(O [, Properties])
|
1767 |
+
create: $create,
|
1768 |
+
// 19.1.2.4 Object.defineProperty(O, P, Attributes)
|
1769 |
+
defineProperty: $defineProperty,
|
1770 |
+
// 19.1.2.3 Object.defineProperties(O, Properties)
|
1771 |
+
defineProperties: $defineProperties,
|
1772 |
+
// 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
|
1773 |
+
getOwnPropertyDescriptor: $getOwnPropertyDescriptor,
|
1774 |
+
// 19.1.2.7 Object.getOwnPropertyNames(O)
|
1775 |
+
getOwnPropertyNames: $getOwnPropertyNames,
|
1776 |
+
// 19.1.2.8 Object.getOwnPropertySymbols(O)
|
1777 |
+
getOwnPropertySymbols: $getOwnPropertySymbols
|
1778 |
+
});
|
1779 |
+
|
1780 |
+
// 24.3.2 JSON.stringify(value [, replacer [, space]])
|
1781 |
+
$JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () {
|
1782 |
+
var S = $Symbol();
|
1783 |
+
// MS Edge converts symbol values to JSON as {}
|
1784 |
+
// WebKit converts symbol values to JSON as null
|
1785 |
+
// V8 throws on boxed symbols
|
1786 |
+
return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}';
|
1787 |
+
})), 'JSON', {
|
1788 |
+
stringify: function stringify(it) {
|
1789 |
+
var args = [it];
|
1790 |
+
var i = 1;
|
1791 |
+
var replacer, $replacer;
|
1792 |
+
while (arguments.length > i) args.push(arguments[i++]);
|
1793 |
+
$replacer = replacer = args[1];
|
1794 |
+
if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
|
1795 |
+
if (!isArray(replacer)) replacer = function (key, value) {
|
1796 |
+
if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
|
1797 |
+
if (!isSymbol(value)) return value;
|
1798 |
+
};
|
1799 |
+
args[1] = replacer;
|
1800 |
+
return _stringify.apply($JSON, args);
|
1801 |
+
}
|
1802 |
+
});
|
1803 |
+
|
1804 |
+
// 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)
|
1805 |
+
$Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__(20)($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);
|
1806 |
+
// 19.4.3.5 Symbol.prototype[@@toStringTag]
|
1807 |
+
setToStringTag($Symbol, 'Symbol');
|
1808 |
+
// 20.2.1.9 Math[@@toStringTag]
|
1809 |
+
setToStringTag(Math, 'Math', true);
|
1810 |
+
// 24.3.3 JSON[@@toStringTag]
|
1811 |
+
setToStringTag(global.JSON, 'JSON', true);
|
1812 |
+
|
1813 |
+
|
1814 |
+
/***/ }),
|
1815 |
+
/* 118 */
|
1816 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1817 |
+
|
1818 |
+
var META = __webpack_require__(38)('meta');
|
1819 |
+
var isObject = __webpack_require__(18);
|
1820 |
+
var has = __webpack_require__(22);
|
1821 |
+
var setDesc = __webpack_require__(17).f;
|
1822 |
+
var id = 0;
|
1823 |
+
var isExtensible = Object.isExtensible || function () {
|
1824 |
+
return true;
|
1825 |
+
};
|
1826 |
+
var FREEZE = !__webpack_require__(25)(function () {
|
1827 |
+
return isExtensible(Object.preventExtensions({}));
|
1828 |
+
});
|
1829 |
+
var setMeta = function (it) {
|
1830 |
+
setDesc(it, META, { value: {
|
1831 |
+
i: 'O' + ++id, // object ID
|
1832 |
+
w: {} // weak collections IDs
|
1833 |
+
} });
|
1834 |
+
};
|
1835 |
+
var fastKey = function (it, create) {
|
1836 |
+
// return primitive with prefix
|
1837 |
+
if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
|
1838 |
+
if (!has(it, META)) {
|
1839 |
+
// can't set metadata to uncaught frozen object
|
1840 |
+
if (!isExtensible(it)) return 'F';
|
1841 |
+
// not necessary to add metadata
|
1842 |
+
if (!create) return 'E';
|
1843 |
+
// add missing metadata
|
1844 |
+
setMeta(it);
|
1845 |
+
// return object ID
|
1846 |
+
} return it[META].i;
|
1847 |
+
};
|
1848 |
+
var getWeak = function (it, create) {
|
1849 |
+
if (!has(it, META)) {
|
1850 |
+
// can't set metadata to uncaught frozen object
|
1851 |
+
if (!isExtensible(it)) return true;
|
1852 |
+
// not necessary to add metadata
|
1853 |
+
if (!create) return false;
|
1854 |
+
// add missing metadata
|
1855 |
+
setMeta(it);
|
1856 |
+
// return hash weak collections IDs
|
1857 |
+
} return it[META].w;
|
1858 |
+
};
|
1859 |
+
// add metadata on freeze-family methods calling
|
1860 |
+
var onFreeze = function (it) {
|
1861 |
+
if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it);
|
1862 |
+
return it;
|
1863 |
+
};
|
1864 |
+
var meta = module.exports = {
|
1865 |
+
KEY: META,
|
1866 |
+
NEED: false,
|
1867 |
+
fastKey: fastKey,
|
1868 |
+
getWeak: getWeak,
|
1869 |
+
onFreeze: onFreeze
|
1870 |
+
};
|
1871 |
+
|
1872 |
+
|
1873 |
+
/***/ }),
|
1874 |
+
/* 119 */
|
1875 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1876 |
+
|
1877 |
+
// all enumerable object keys, includes symbols
|
1878 |
+
var getKeys = __webpack_require__(27);
|
1879 |
+
var gOPS = __webpack_require__(55);
|
1880 |
+
var pIE = __webpack_require__(34);
|
1881 |
+
module.exports = function (it) {
|
1882 |
+
var result = getKeys(it);
|
1883 |
+
var getSymbols = gOPS.f;
|
1884 |
+
if (getSymbols) {
|
1885 |
+
var symbols = getSymbols(it);
|
1886 |
+
var isEnum = pIE.f;
|
1887 |
+
var i = 0;
|
1888 |
+
var key;
|
1889 |
+
while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key);
|
1890 |
+
} return result;
|
1891 |
+
};
|
1892 |
+
|
1893 |
+
|
1894 |
+
/***/ }),
|
1895 |
+
/* 120 */
|
1896 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1897 |
+
|
1898 |
+
// 7.2.2 IsArray(argument)
|
1899 |
+
var cof = __webpack_require__(28);
|
1900 |
+
module.exports = Array.isArray || function isArray(arg) {
|
1901 |
+
return cof(arg) == 'Array';
|
1902 |
+
};
|
1903 |
+
|
1904 |
+
|
1905 |
+
/***/ }),
|
1906 |
+
/* 121 */
|
1907 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1908 |
+
|
1909 |
+
// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
|
1910 |
+
var toIObject = __webpack_require__(23);
|
1911 |
+
var gOPN = __webpack_require__(74).f;
|
1912 |
+
var toString = {}.toString;
|
1913 |
+
|
1914 |
+
var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
|
1915 |
+
? Object.getOwnPropertyNames(window) : [];
|
1916 |
+
|
1917 |
+
var getWindowNames = function (it) {
|
1918 |
+
try {
|
1919 |
+
return gOPN(it);
|
1920 |
+
} catch (e) {
|
1921 |
+
return windowNames.slice();
|
1922 |
+
}
|
1923 |
+
};
|
1924 |
+
|
1925 |
+
module.exports.f = function getOwnPropertyNames(it) {
|
1926 |
+
return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it));
|
1927 |
+
};
|
1928 |
+
|
1929 |
+
|
1930 |
+
/***/ }),
|
1931 |
+
/* 122 */
|
1932 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1933 |
+
|
1934 |
+
__webpack_require__(59)('asyncIterator');
|
1935 |
+
|
1936 |
+
|
1937 |
+
/***/ }),
|
1938 |
+
/* 123 */
|
1939 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1940 |
+
|
1941 |
+
__webpack_require__(59)('observable');
|
1942 |
+
|
1943 |
+
|
1944 |
+
/***/ }),
|
1945 |
+
/* 124 */
|
1946 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1947 |
+
|
1948 |
+
module.exports = { "default": __webpack_require__(125), __esModule: true };
|
1949 |
+
|
1950 |
+
/***/ }),
|
1951 |
+
/* 125 */
|
1952 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1953 |
+
|
1954 |
+
__webpack_require__(75);
|
1955 |
+
__webpack_require__(64);
|
1956 |
+
__webpack_require__(73);
|
1957 |
+
__webpack_require__(126);
|
1958 |
+
__webpack_require__(133);
|
1959 |
+
__webpack_require__(134);
|
1960 |
+
module.exports = __webpack_require__(12).Promise;
|
1961 |
+
|
1962 |
+
|
1963 |
+
/***/ }),
|
1964 |
+
/* 126 */
|
1965 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1966 |
+
|
1967 |
+
"use strict";
|
1968 |
+
|
1969 |
+
var LIBRARY = __webpack_require__(39);
|
1970 |
+
var global = __webpack_require__(9);
|
1971 |
+
var ctx = __webpack_require__(31);
|
1972 |
+
var classof = __webpack_require__(76);
|
1973 |
+
var $export = __webpack_require__(14);
|
1974 |
+
var isObject = __webpack_require__(18);
|
1975 |
+
var aFunction = __webpack_require__(37);
|
1976 |
+
var anInstance = __webpack_require__(127);
|
1977 |
+
var forOf = __webpack_require__(128);
|
1978 |
+
var speciesConstructor = __webpack_require__(77);
|
1979 |
+
var task = __webpack_require__(78).set;
|
1980 |
+
var microtask = __webpack_require__(130)();
|
1981 |
+
var newPromiseCapabilityModule = __webpack_require__(60);
|
1982 |
+
var perform = __webpack_require__(79);
|
1983 |
+
var promiseResolve = __webpack_require__(80);
|
1984 |
+
var PROMISE = 'Promise';
|
1985 |
+
var TypeError = global.TypeError;
|
1986 |
+
var process = global.process;
|
1987 |
+
var $Promise = global[PROMISE];
|
1988 |
+
var isNode = classof(process) == 'process';
|
1989 |
+
var empty = function () { /* empty */ };
|
1990 |
+
var Internal, newGenericPromiseCapability, OwnPromiseCapability, Wrapper;
|
1991 |
+
var newPromiseCapability = newGenericPromiseCapability = newPromiseCapabilityModule.f;
|
1992 |
+
|
1993 |
+
var USE_NATIVE = !!function () {
|
1994 |
+
try {
|
1995 |
+
// correct subclassing with @@species support
|
1996 |
+
var promise = $Promise.resolve(1);
|
1997 |
+
var FakePromise = (promise.constructor = {})[__webpack_require__(10)('species')] = function (exec) {
|
1998 |
+
exec(empty, empty);
|
1999 |
+
};
|
2000 |
+
// unhandled rejections tracking support, NodeJS Promise without it fails @@species test
|
2001 |
+
return (isNode || typeof PromiseRejectionEvent == 'function') && promise.then(empty) instanceof FakePromise;
|
2002 |
+
} catch (e) { /* empty */ }
|
2003 |
+
}();
|
2004 |
+
|
2005 |
+
// helpers
|
2006 |
+
var isThenable = function (it) {
|
2007 |
+
var then;
|
2008 |
+
return isObject(it) && typeof (then = it.then) == 'function' ? then : false;
|
2009 |
+
};
|
2010 |
+
var notify = function (promise, isReject) {
|
2011 |
+
if (promise._n) return;
|
2012 |
+
promise._n = true;
|
2013 |
+
var chain = promise._c;
|
2014 |
+
microtask(function () {
|
2015 |
+
var value = promise._v;
|
2016 |
+
var ok = promise._s == 1;
|
2017 |
+
var i = 0;
|
2018 |
+
var run = function (reaction) {
|
2019 |
+
var handler = ok ? reaction.ok : reaction.fail;
|
2020 |
+
var resolve = reaction.resolve;
|
2021 |
+
var reject = reaction.reject;
|
2022 |
+
var domain = reaction.domain;
|
2023 |
+
var result, then, exited;
|
2024 |
+
try {
|
2025 |
+
if (handler) {
|
2026 |
+
if (!ok) {
|
2027 |
+
if (promise._h == 2) onHandleUnhandled(promise);
|
2028 |
+
promise._h = 1;
|
2029 |
+
}
|
2030 |
+
if (handler === true) result = value;
|
2031 |
+
else {
|
2032 |
+
if (domain) domain.enter();
|
2033 |
+
result = handler(value); // may throw
|
2034 |
+
if (domain) {
|
2035 |
+
domain.exit();
|
2036 |
+
exited = true;
|
2037 |
+
}
|
2038 |
+
}
|
2039 |
+
if (result === reaction.promise) {
|
2040 |
+
reject(TypeError('Promise-chain cycle'));
|
2041 |
+
} else if (then = isThenable(result)) {
|
2042 |
+
then.call(result, resolve, reject);
|
2043 |
+
} else resolve(result);
|
2044 |
+
} else reject(value);
|
2045 |
+
} catch (e) {
|
2046 |
+
if (domain && !exited) domain.exit();
|
2047 |
+
reject(e);
|
2048 |
+
}
|
2049 |
+
};
|
2050 |
+
while (chain.length > i) run(chain[i++]); // variable length - can't use forEach
|
2051 |
+
promise._c = [];
|
2052 |
+
promise._n = false;
|
2053 |
+
if (isReject && !promise._h) onUnhandled(promise);
|
2054 |
+
});
|
2055 |
+
};
|
2056 |
+
var onUnhandled = function (promise) {
|
2057 |
+
task.call(global, function () {
|
2058 |
+
var value = promise._v;
|
2059 |
+
var unhandled = isUnhandled(promise);
|
2060 |
+
var result, handler, console;
|
2061 |
+
if (unhandled) {
|
2062 |
+
result = perform(function () {
|
2063 |
+
if (isNode) {
|
2064 |
+
process.emit('unhandledRejection', value, promise);
|
2065 |
+
} else if (handler = global.onunhandledrejection) {
|
2066 |
+
handler({ promise: promise, reason: value });
|
2067 |
+
} else if ((console = global.console) && console.error) {
|
2068 |
+
console.error('Unhandled promise rejection', value);
|
2069 |
+
}
|
2070 |
+
});
|
2071 |
+
// Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
|
2072 |
+
promise._h = isNode || isUnhandled(promise) ? 2 : 1;
|
2073 |
+
} promise._a = undefined;
|
2074 |
+
if (unhandled && result.e) throw result.v;
|
2075 |
+
});
|
2076 |
+
};
|
2077 |
+
var isUnhandled = function (promise) {
|
2078 |
+
return promise._h !== 1 && (promise._a || promise._c).length === 0;
|
2079 |
+
};
|
2080 |
+
var onHandleUnhandled = function (promise) {
|
2081 |
+
task.call(global, function () {
|
2082 |
+
var handler;
|
2083 |
+
if (isNode) {
|
2084 |
+
process.emit('rejectionHandled', promise);
|
2085 |
+
} else if (handler = global.onrejectionhandled) {
|
2086 |
+
handler({ promise: promise, reason: promise._v });
|
2087 |
+
}
|
2088 |
+
});
|
2089 |
+
};
|
2090 |
+
var $reject = function (value) {
|
2091 |
+
var promise = this;
|
2092 |
+
if (promise._d) return;
|
2093 |
+
promise._d = true;
|
2094 |
+
promise = promise._w || promise; // unwrap
|
2095 |
+
promise._v = value;
|
2096 |
+
promise._s = 2;
|
2097 |
+
if (!promise._a) promise._a = promise._c.slice();
|
2098 |
+
notify(promise, true);
|
2099 |
+
};
|
2100 |
+
var $resolve = function (value) {
|
2101 |
+
var promise = this;
|
2102 |
+
var then;
|
2103 |
+
if (promise._d) return;
|
2104 |
+
promise._d = true;
|
2105 |
+
promise = promise._w || promise; // unwrap
|
2106 |
+
try {
|
2107 |
+
if (promise === value) throw TypeError("Promise can't be resolved itself");
|
2108 |
+
if (then = isThenable(value)) {
|
2109 |
+
microtask(function () {
|
2110 |
+
var wrapper = { _w: promise, _d: false }; // wrap
|
2111 |
+
try {
|
2112 |
+
then.call(value, ctx($resolve, wrapper, 1), ctx($reject, wrapper, 1));
|
2113 |
+
} catch (e) {
|
2114 |
+
$reject.call(wrapper, e);
|
2115 |
+
}
|
2116 |
+
});
|
2117 |
+
} else {
|
2118 |
+
promise._v = value;
|
2119 |
+
promise._s = 1;
|
2120 |
+
notify(promise, false);
|
2121 |
+
}
|
2122 |
+
} catch (e) {
|
2123 |
+
$reject.call({ _w: promise, _d: false }, e); // wrap
|
2124 |
+
}
|
2125 |
+
};
|
2126 |
+
|
2127 |
+
// constructor polyfill
|
2128 |
+
if (!USE_NATIVE) {
|
2129 |
+
// 25.4.3.1 Promise(executor)
|
2130 |
+
$Promise = function Promise(executor) {
|
2131 |
+
anInstance(this, $Promise, PROMISE, '_h');
|
2132 |
+
aFunction(executor);
|
2133 |
+
Internal.call(this);
|
2134 |
+
try {
|
2135 |
+
executor(ctx($resolve, this, 1), ctx($reject, this, 1));
|
2136 |
+
} catch (err) {
|
2137 |
+
$reject.call(this, err);
|
2138 |
+
}
|
2139 |
+
};
|
2140 |
+
// eslint-disable-next-line no-unused-vars
|
2141 |
+
Internal = function Promise(executor) {
|
2142 |
+
this._c = []; // <- awaiting reactions
|
2143 |
+
this._a = undefined; // <- checked in isUnhandled reactions
|
2144 |
+
this._s = 0; // <- state
|
2145 |
+
this._d = false; // <- done
|
2146 |
+
this._v = undefined; // <- value
|
2147 |
+
this._h = 0; // <- rejection state, 0 - default, 1 - handled, 2 - unhandled
|
2148 |
+
this._n = false; // <- notify
|
2149 |
+
};
|
2150 |
+
Internal.prototype = __webpack_require__(131)($Promise.prototype, {
|
2151 |
+
// 25.4.5.3 Promise.prototype.then(onFulfilled, onRejected)
|
2152 |
+
then: function then(onFulfilled, onRejected) {
|
2153 |
+
var reaction = newPromiseCapability(speciesConstructor(this, $Promise));
|
2154 |
+
reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true;
|
2155 |
+
reaction.fail = typeof onRejected == 'function' && onRejected;
|
2156 |
+
reaction.domain = isNode ? process.domain : undefined;
|
2157 |
+
this._c.push(reaction);
|
2158 |
+
if (this._a) this._a.push(reaction);
|
2159 |
+
if (this._s) notify(this, false);
|
2160 |
+
return reaction.promise;
|
2161 |
+
},
|
2162 |
+
// 25.4.5.1 Promise.prototype.catch(onRejected)
|
2163 |
+
'catch': function (onRejected) {
|
2164 |
+
return this.then(undefined, onRejected);
|
2165 |
+
}
|
2166 |
+
});
|
2167 |
+
OwnPromiseCapability = function () {
|
2168 |
+
var promise = new Internal();
|
2169 |
+
this.promise = promise;
|
2170 |
+
this.resolve = ctx($resolve, promise, 1);
|
2171 |
+
this.reject = ctx($reject, promise, 1);
|
2172 |
+
};
|
2173 |
+
newPromiseCapabilityModule.f = newPromiseCapability = function (C) {
|
2174 |
+
return C === $Promise || C === Wrapper
|
2175 |
+
? new OwnPromiseCapability(C)
|
2176 |
+
: newGenericPromiseCapability(C);
|
2177 |
+
};
|
2178 |
+
}
|
2179 |
+
|
2180 |
+
$export($export.G + $export.W + $export.F * !USE_NATIVE, { Promise: $Promise });
|
2181 |
+
__webpack_require__(40)($Promise, PROMISE);
|
2182 |
+
__webpack_require__(132)(PROMISE);
|
2183 |
+
Wrapper = __webpack_require__(12)[PROMISE];
|
2184 |
+
|
2185 |
+
// statics
|
2186 |
+
$export($export.S + $export.F * !USE_NATIVE, PROMISE, {
|
2187 |
+
// 25.4.4.5 Promise.reject(r)
|
2188 |
+
reject: function reject(r) {
|
2189 |
+
var capability = newPromiseCapability(this);
|
2190 |
+
var $$reject = capability.reject;
|
2191 |
+
$$reject(r);
|
2192 |
+
return capability.promise;
|
2193 |
+
}
|
2194 |
+
});
|
2195 |
+
$export($export.S + $export.F * (LIBRARY || !USE_NATIVE), PROMISE, {
|
2196 |
+
// 25.4.4.6 Promise.resolve(x)
|
2197 |
+
resolve: function resolve(x) {
|
2198 |
+
return promiseResolve(LIBRARY && this === Wrapper ? $Promise : this, x);
|
2199 |
+
}
|
2200 |
+
});
|
2201 |
+
$export($export.S + $export.F * !(USE_NATIVE && __webpack_require__(92)(function (iter) {
|
2202 |
+
$Promise.all(iter)['catch'](empty);
|
2203 |
+
})), PROMISE, {
|
2204 |
+
// 25.4.4.1 Promise.all(iterable)
|
2205 |
+
all: function all(iterable) {
|
2206 |
+
var C = this;
|
2207 |
+
var capability = newPromiseCapability(C);
|
2208 |
+
var resolve = capability.resolve;
|
2209 |
+
var reject = capability.reject;
|
2210 |
+
var result = perform(function () {
|
2211 |
+
var values = [];
|
2212 |
+
var index = 0;
|
2213 |
+
var remaining = 1;
|
2214 |
+
forOf(iterable, false, function (promise) {
|
2215 |
+
var $index = index++;
|
2216 |
+
var alreadyCalled = false;
|
2217 |
+
values.push(undefined);
|
2218 |
+
remaining++;
|
2219 |
+
C.resolve(promise).then(function (value) {
|
2220 |
+
if (alreadyCalled) return;
|
2221 |
+
alreadyCalled = true;
|
2222 |
+
values[$index] = value;
|
2223 |
+
--remaining || resolve(values);
|
2224 |
+
}, reject);
|
2225 |
+
});
|
2226 |
+
--remaining || resolve(values);
|
2227 |
+
});
|
2228 |
+
if (result.e) reject(result.v);
|
2229 |
+
return capability.promise;
|
2230 |
+
},
|
2231 |
+
// 25.4.4.4 Promise.race(iterable)
|
2232 |
+
race: function race(iterable) {
|
2233 |
+
var C = this;
|
2234 |
+
var capability = newPromiseCapability(C);
|
2235 |
+
var reject = capability.reject;
|
2236 |
+
var result = perform(function () {
|
2237 |
+
forOf(iterable, false, function (promise) {
|
2238 |
+
C.resolve(promise).then(capability.resolve, reject);
|
2239 |
+
});
|
2240 |
+
});
|
2241 |
+
if (result.e) reject(result.v);
|
2242 |
+
return capability.promise;
|
2243 |
+
}
|
2244 |
+
});
|
2245 |
+
|
2246 |
+
|
2247 |
+
/***/ }),
|
2248 |
+
/* 127 */
|
2249 |
+
/***/ (function(module, exports) {
|
2250 |
+
|
2251 |
+
module.exports = function (it, Constructor, name, forbiddenField) {
|
2252 |
+
if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) {
|
2253 |
+
throw TypeError(name + ': incorrect invocation!');
|
2254 |
+
} return it;
|
2255 |
+
};
|
2256 |
+
|
2257 |
+
|
2258 |
+
/***/ }),
|
2259 |
+
/* 128 */
|
2260 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2261 |
+
|
2262 |
+
var ctx = __webpack_require__(31);
|
2263 |
+
var call = __webpack_require__(89);
|
2264 |
+
var isArrayIter = __webpack_require__(90);
|
2265 |
+
var anObject = __webpack_require__(15);
|
2266 |
+
var toLength = __webpack_require__(63);
|
2267 |
+
var getIterFn = __webpack_require__(91);
|
2268 |
+
var BREAK = {};
|
2269 |
+
var RETURN = {};
|
2270 |
+
var exports = module.exports = function (iterable, entries, fn, that, ITERATOR) {
|
2271 |
+
var iterFn = ITERATOR ? function () { return iterable; } : getIterFn(iterable);
|
2272 |
+
var f = ctx(fn, that, entries ? 2 : 1);
|
2273 |
+
var index = 0;
|
2274 |
+
var length, step, iterator, result;
|
2275 |
+
if (typeof iterFn != 'function') throw TypeError(iterable + ' is not iterable!');
|
2276 |
+
// fast case for arrays with default iterator
|
2277 |
+
if (isArrayIter(iterFn)) for (length = toLength(iterable.length); length > index; index++) {
|
2278 |
+
result = entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);
|
2279 |
+
if (result === BREAK || result === RETURN) return result;
|
2280 |
+
} else for (iterator = iterFn.call(iterable); !(step = iterator.next()).done;) {
|
2281 |
+
result = call(iterator, f, step.value, entries);
|
2282 |
+
if (result === BREAK || result === RETURN) return result;
|
2283 |
+
}
|
2284 |
+
};
|
2285 |
+
exports.BREAK = BREAK;
|
2286 |
+
exports.RETURN = RETURN;
|
2287 |
+
|
2288 |
+
|
2289 |
+
/***/ }),
|
2290 |
+
/* 129 */
|
2291 |
+
/***/ (function(module, exports) {
|
2292 |
+
|
2293 |
+
// fast apply, http://jsperf.lnkit.com/fast-apply/5
|
2294 |
+
module.exports = function (fn, args, that) {
|
2295 |
+
var un = that === undefined;
|
2296 |
+
switch (args.length) {
|
2297 |
+
case 0: return un ? fn()
|
2298 |
+
: fn.call(that);
|
2299 |
+
case 1: return un ? fn(args[0])
|
2300 |
+
: fn.call(that, args[0]);
|
2301 |
+
case 2: return un ? fn(args[0], args[1])
|
2302 |
+
: fn.call(that, args[0], args[1]);
|
2303 |
+
case 3: return un ? fn(args[0], args[1], args[2])
|
2304 |
+
: fn.call(that, args[0], args[1], args[2]);
|
2305 |
+
case 4: return un ? fn(args[0], args[1], args[2], args[3])
|
2306 |
+
: fn.call(that, args[0], args[1], args[2], args[3]);
|
2307 |
+
} return fn.apply(that, args);
|
2308 |
+
};
|
2309 |
+
|
2310 |
+
|
2311 |
+
/***/ }),
|
2312 |
+
/* 130 */
|
2313 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2314 |
+
|
2315 |
+
var global = __webpack_require__(9);
|
2316 |
+
var macrotask = __webpack_require__(78).set;
|
2317 |
+
var Observer = global.MutationObserver || global.WebKitMutationObserver;
|
2318 |
+
var process = global.process;
|
2319 |
+
var Promise = global.Promise;
|
2320 |
+
var isNode = __webpack_require__(28)(process) == 'process';
|
2321 |
+
|
2322 |
+
module.exports = function () {
|
2323 |
+
var head, last, notify;
|
2324 |
+
|
2325 |
+
var flush = function () {
|
2326 |
+
var parent, fn;
|
2327 |
+
if (isNode && (parent = process.domain)) parent.exit();
|
2328 |
+
while (head) {
|
2329 |
+
fn = head.fn;
|
2330 |
+
head = head.next;
|
2331 |
+
try {
|
2332 |
+
fn();
|
2333 |
+
} catch (e) {
|
2334 |
+
if (head) notify();
|
2335 |
+
else last = undefined;
|
2336 |
+
throw e;
|
2337 |
+
}
|
2338 |
+
} last = undefined;
|
2339 |
+
if (parent) parent.enter();
|
2340 |
+
};
|
2341 |
+
|
2342 |
+
// Node.js
|
2343 |
+
if (isNode) {
|
2344 |
+
notify = function () {
|
2345 |
+
process.nextTick(flush);
|
2346 |
+
};
|
2347 |
+
// browsers with MutationObserver, except iOS Safari - https://github.com/zloirock/core-js/issues/339
|
2348 |
+
} else if (Observer && !(global.navigator && global.navigator.standalone)) {
|
2349 |
+
var toggle = true;
|
2350 |
+
var node = document.createTextNode('');
|
2351 |
+
new Observer(flush).observe(node, { characterData: true }); // eslint-disable-line no-new
|
2352 |
+
notify = function () {
|
2353 |
+
node.data = toggle = !toggle;
|
2354 |
+
};
|
2355 |
+
// environments with maybe non-completely correct, but existent Promise
|
2356 |
+
} else if (Promise && Promise.resolve) {
|
2357 |
+
var promise = Promise.resolve();
|
2358 |
+
notify = function () {
|
2359 |
+
promise.then(flush);
|
2360 |
+
};
|
2361 |
+
// for other environments - macrotask based on:
|
2362 |
+
// - setImmediate
|
2363 |
+
// - MessageChannel
|
2364 |
+
// - window.postMessag
|
2365 |
+
// - onreadystatechange
|
2366 |
+
// - setTimeout
|
2367 |
+
} else {
|
2368 |
+
notify = function () {
|
2369 |
+
// strange IE + webpack dev server bug - use .call(global)
|
2370 |
+
macrotask.call(global, flush);
|
2371 |
+
};
|
2372 |
+
}
|
2373 |
+
|
2374 |
+
return function (fn) {
|
2375 |
+
var task = { fn: fn, next: undefined };
|
2376 |
+
if (last) last.next = task;
|
2377 |
+
if (!head) {
|
2378 |
+
head = task;
|
2379 |
+
notify();
|
2380 |
+
} last = task;
|
2381 |
+
};
|
2382 |
+
};
|
2383 |
+
|
2384 |
+
|
2385 |
+
/***/ }),
|
2386 |
+
/* 131 */
|
2387 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2388 |
+
|
2389 |
+
var hide = __webpack_require__(20);
|
2390 |
+
module.exports = function (target, src, safe) {
|
2391 |
+
for (var key in src) {
|
2392 |
+
if (safe && target[key]) target[key] = src[key];
|
2393 |
+
else hide(target, key, src[key]);
|
2394 |
+
} return target;
|
2395 |
+
};
|
2396 |
+
|
2397 |
+
|
2398 |
+
/***/ }),
|
2399 |
+
/* 132 */
|
2400 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2401 |
+
|
2402 |
+
"use strict";
|
2403 |
+
|
2404 |
+
var global = __webpack_require__(9);
|
2405 |
+
var core = __webpack_require__(12);
|
2406 |
+
var dP = __webpack_require__(17);
|
2407 |
+
var DESCRIPTORS = __webpack_require__(21);
|
2408 |
+
var SPECIES = __webpack_require__(10)('species');
|
2409 |
+
|
2410 |
+
module.exports = function (KEY) {
|
2411 |
+
var C = typeof core[KEY] == 'function' ? core[KEY] : global[KEY];
|
2412 |
+
if (DESCRIPTORS && C && !C[SPECIES]) dP.f(C, SPECIES, {
|
2413 |
+
configurable: true,
|
2414 |
+
get: function () { return this; }
|
2415 |
+
});
|
2416 |
+
};
|
2417 |
+
|
2418 |
+
|
2419 |
+
/***/ }),
|
2420 |
+
/* 133 */
|
2421 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2422 |
+
|
2423 |
+
"use strict";
|
2424 |
+
// https://github.com/tc39/proposal-promise-finally
|
2425 |
+
|
2426 |
+
var $export = __webpack_require__(14);
|
2427 |
+
var core = __webpack_require__(12);
|
2428 |
+
var global = __webpack_require__(9);
|
2429 |
+
var speciesConstructor = __webpack_require__(77);
|
2430 |
+
var promiseResolve = __webpack_require__(80);
|
2431 |
+
|
2432 |
+
$export($export.P + $export.R, 'Promise', { 'finally': function (onFinally) {
|
2433 |
+
var C = speciesConstructor(this, core.Promise || global.Promise);
|
2434 |
+
var isFunction = typeof onFinally == 'function';
|
2435 |
+
return this.then(
|
2436 |
+
isFunction ? function (x) {
|
2437 |
+
return promiseResolve(C, onFinally()).then(function () { return x; });
|
2438 |
+
} : onFinally,
|
2439 |
+
isFunction ? function (e) {
|
2440 |
+
return promiseResolve(C, onFinally()).then(function () { throw e; });
|
2441 |
+
} : onFinally
|
2442 |
+
);
|
2443 |
+
} });
|
2444 |
+
|
2445 |
+
|
2446 |
+
/***/ }),
|
2447 |
+
/* 134 */
|
2448 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2449 |
+
|
2450 |
+
"use strict";
|
2451 |
+
|
2452 |
+
// https://github.com/tc39/proposal-promise-try
|
2453 |
+
var $export = __webpack_require__(14);
|
2454 |
+
var newPromiseCapability = __webpack_require__(60);
|
2455 |
+
var perform = __webpack_require__(79);
|
2456 |
+
|
2457 |
+
$export($export.S, 'Promise', { 'try': function (callbackfn) {
|
2458 |
+
var promiseCapability = newPromiseCapability.f(this);
|
2459 |
+
var result = perform(callbackfn);
|
2460 |
+
(result.e ? promiseCapability.reject : promiseCapability.resolve)(result.v);
|
2461 |
+
return promiseCapability.promise;
|
2462 |
+
} });
|
2463 |
+
|
2464 |
+
|
2465 |
+
/***/ }),
|
2466 |
+
/* 135 */,
|
2467 |
+
/* 136 */,
|
2468 |
+
/* 137 */,
|
2469 |
+
/* 138 */,
|
2470 |
+
/* 139 */,
|
2471 |
+
/* 140 */,
|
2472 |
+
/* 141 */,
|
2473 |
+
/* 142 */,
|
2474 |
+
/* 143 */,
|
2475 |
+
/* 144 */,
|
2476 |
+
/* 145 */,
|
2477 |
+
/* 146 */,
|
2478 |
+
/* 147 */,
|
2479 |
+
/* 148 */,
|
2480 |
+
/* 149 */,
|
2481 |
+
/* 150 */
|
2482 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
2483 |
+
|
2484 |
+
"use strict";
|
2485 |
+
/* harmony export (immutable) */ __webpack_exports__["a"] = setFormInState;
|
2486 |
+
/* harmony export (immutable) */ __webpack_exports__["b"] = setFormsInState;
|
2487 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
|
2488 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
|
2489 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__functions__ = __webpack_require__(88);
|
2490 |
+
|
2491 |
+
|
2492 |
+
|
2493 |
+
/**
|
2494 |
+
* Add one form to state
|
2495 |
+
*
|
2496 |
+
* @since 1.7.0
|
2497 |
+
*
|
2498 |
+
* @param {Object} state
|
2499 |
+
* @param {Object} action
|
2500 |
+
*
|
2501 |
+
* @returns {{forms: *}}
|
2502 |
+
*/
|
2503 |
+
function setFormInState(state, action) {
|
2504 |
+
var forms = state.forms;
|
2505 |
+
var index = Object(__WEBPACK_IMPORTED_MODULE_1__functions__["b" /* findFormIndexById */])(state, action.form.ID);
|
2506 |
+
if (-1 <= index) {
|
2507 |
+
forms.splice(index, 1, action.form);
|
2508 |
+
} else {
|
2509 |
+
forms.push(action.form);
|
2510 |
+
}
|
2511 |
+
return __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, state, {
|
2512 |
+
forms: forms
|
2513 |
+
});
|
2514 |
+
};
|
2515 |
+
|
2516 |
+
/**
|
2517 |
+
* Add forms to State
|
2518 |
+
*
|
2519 |
+
* @since 1.7.0
|
2520 |
+
*
|
2521 |
+
* @param {Object} state
|
2522 |
+
* @param {Object} action
|
2523 |
+
* @returns {{forms: *}}
|
2524 |
+
*/
|
2525 |
+
function setFormsInState(state, action) {
|
2526 |
+
return __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, state, {
|
2527 |
+
forms: action.forms
|
2528 |
+
});
|
2529 |
+
};
|
2530 |
+
|
2531 |
+
/***/ }),
|
2532 |
+
/* 151 */
|
2533 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2534 |
+
|
2535 |
+
module.exports = __webpack_require__(175);
|
2536 |
+
|
2537 |
+
|
2538 |
+
/***/ }),
|
2539 |
+
/* 152 */
|
2540 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2541 |
+
|
2542 |
+
"use strict";
|
2543 |
+
|
2544 |
+
|
2545 |
+
exports.__esModule = true;
|
2546 |
+
|
2547 |
+
var _promise = __webpack_require__(124);
|
2548 |
+
|
2549 |
+
var _promise2 = _interopRequireDefault(_promise);
|
2550 |
+
|
2551 |
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
2552 |
+
|
2553 |
+
exports.default = function (fn) {
|
2554 |
+
return function () {
|
2555 |
+
var gen = fn.apply(this, arguments);
|
2556 |
+
return new _promise2.default(function (resolve, reject) {
|
2557 |
+
function step(key, arg) {
|
2558 |
+
try {
|
2559 |
+
var info = gen[key](arg);
|
2560 |
+
var value = info.value;
|
2561 |
+
} catch (error) {
|
2562 |
+
reject(error);
|
2563 |
+
return;
|
2564 |
+
}
|
2565 |
+
|
2566 |
+
if (info.done) {
|
2567 |
+
resolve(value);
|
2568 |
+
} else {
|
2569 |
+
return _promise2.default.resolve(value).then(function (value) {
|
2570 |
+
step("next", value);
|
2571 |
+
}, function (err) {
|
2572 |
+
step("throw", err);
|
2573 |
+
});
|
2574 |
+
}
|
2575 |
+
}
|
2576 |
+
|
2577 |
+
return step("next");
|
2578 |
+
});
|
2579 |
+
};
|
2580 |
+
};
|
2581 |
+
|
2582 |
+
/***/ }),
|
2583 |
+
/* 153 */,
|
2584 |
+
/* 154 */,
|
2585 |
+
/* 155 */,
|
2586 |
+
/* 156 */,
|
2587 |
+
/* 157 */,
|
2588 |
+
/* 158 */,
|
2589 |
+
/* 159 */,
|
2590 |
+
/* 160 */,
|
2591 |
+
/* 161 */,
|
2592 |
+
/* 162 */,
|
2593 |
+
/* 163 */
|
2594 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2595 |
+
|
2596 |
+
module.exports = { "default": __webpack_require__(188), __esModule: true };
|
2597 |
+
|
2598 |
+
/***/ }),
|
2599 |
+
/* 164 */,
|
2600 |
+
/* 165 */,
|
2601 |
+
/* 166 */,
|
2602 |
+
/* 167 */,
|
2603 |
+
/* 168 */,
|
2604 |
+
/* 169 */,
|
2605 |
+
/* 170 */,
|
2606 |
+
/* 171 */,
|
2607 |
+
/* 172 */,
|
2608 |
+
/* 173 */,
|
2609 |
+
/* 174 */
|
2610 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
2611 |
+
|
2612 |
+
"use strict";
|
2613 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return requestForm; });
|
2614 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return requestPrivacySettings; });
|
2615 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return requestUpdatePrivacySettings; });
|
2616 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator__ = __webpack_require__(151);
|
2617 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator__);
|
2618 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_asyncToGenerator__ = __webpack_require__(152);
|
2619 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_asyncToGenerator___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_asyncToGenerator__);
|
2620 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__cfAdmin__ = __webpack_require__(86);
|
2621 |
+
|
2622 |
+
|
2623 |
+
|
2624 |
+
|
2625 |
+
/**
|
2626 |
+
* Request a form from API
|
2627 |
+
*
|
2628 |
+
* @since 1.7.0
|
2629 |
+
*
|
2630 |
+
* @param {String} formId
|
2631 |
+
* @returns {Promise<*>}
|
2632 |
+
*/
|
2633 |
+
var requestForm = function () {
|
2634 |
+
var _ref = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_asyncToGenerator___default()( /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default.a.mark(function _callee(formId) {
|
2635 |
+
var form;
|
2636 |
+
return __WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default.a.wrap(function _callee$(_context) {
|
2637 |
+
while (1) {
|
2638 |
+
switch (_context.prev = _context.next) {
|
2639 |
+
case 0:
|
2640 |
+
_context.next = 2;
|
2641 |
+
return wp.apiRequest({
|
2642 |
+
url: '' + __WEBPACK_IMPORTED_MODULE_2__cfAdmin__["a" /* cfAdmin */].api.form + formId + '?preview=false',
|
2643 |
+
method: 'GET',
|
2644 |
+
cache: true
|
2645 |
+
|
2646 |
+
});
|
2647 |
+
|
2648 |
+
case 2:
|
2649 |
+
form = _context.sent;
|
2650 |
+
return _context.abrupt('return', form);
|
2651 |
+
|
2652 |
+
case 4:
|
2653 |
+
case 'end':
|
2654 |
+
return _context.stop();
|
2655 |
+
}
|
2656 |
+
}
|
2657 |
+
}, _callee, this);
|
2658 |
+
}));
|
2659 |
+
|
2660 |
+
return function requestForm(_x) {
|
2661 |
+
return _ref.apply(this, arguments);
|
2662 |
+
};
|
2663 |
+
}();;
|
2664 |
+
|
2665 |
+
/**
|
2666 |
+
* Request a form's privacy settings from API
|
2667 |
+
*
|
2668 |
+
* @since 1.7.0
|
2669 |
+
*
|
2670 |
+
* @param {String} formId
|
2671 |
+
* @returns {Promise<*>}
|
2672 |
+
*/
|
2673 |
+
var requestPrivacySettings = function () {
|
2674 |
+
var _ref2 = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_asyncToGenerator___default()( /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default.a.mark(function _callee2(formId) {
|
2675 |
+
var form;
|
2676 |
+
return __WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default.a.wrap(function _callee2$(_context2) {
|
2677 |
+
while (1) {
|
2678 |
+
switch (_context2.prev = _context2.next) {
|
2679 |
+
case 0:
|
2680 |
+
_context2.next = 2;
|
2681 |
+
return wp.apiRequest({
|
2682 |
+
url: '' + __WEBPACK_IMPORTED_MODULE_2__cfAdmin__["a" /* cfAdmin */].api.form + formId + '?privacy=true',
|
2683 |
+
method: 'GET',
|
2684 |
+
cache: true
|
2685 |
+
|
2686 |
+
});
|
2687 |
+
|
2688 |
+
case 2:
|
2689 |
+
form = _context2.sent;
|
2690 |
+
return _context2.abrupt('return', form);
|
2691 |
+
|
2692 |
+
case 4:
|
2693 |
+
case 'end':
|
2694 |
+
return _context2.stop();
|
2695 |
+
}
|
2696 |
+
}
|
2697 |
+
}, _callee2, this);
|
2698 |
+
}));
|
2699 |
+
|
2700 |
+
return function requestPrivacySettings(_x2) {
|
2701 |
+
return _ref2.apply(this, arguments);
|
2702 |
+
};
|
2703 |
+
}();;
|
2704 |
+
|
2705 |
+
/**
|
2706 |
+
* Update a form's privacy settings via API
|
2707 |
+
*
|
2708 |
+
* @since 1.7.0
|
2709 |
+
*
|
2710 |
+
* @param {Object} settings
|
2711 |
+
* @param {String} formId
|
2712 |
+
* @returns {Promise<*>}
|
2713 |
+
*/
|
2714 |
+
var requestUpdatePrivacySettings = function () {
|
2715 |
+
var _ref3 = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_asyncToGenerator___default()( /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default.a.mark(function _callee3(settings, formId) {
|
2716 |
+
var form;
|
2717 |
+
return __WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default.a.wrap(function _callee3$(_context3) {
|
2718 |
+
while (1) {
|
2719 |
+
switch (_context3.prev = _context3.next) {
|
2720 |
+
case 0:
|
2721 |
+
_context3.next = 2;
|
2722 |
+
return wp.apiRequest({
|
2723 |
+
url: '' + __WEBPACK_IMPORTED_MODULE_2__cfAdmin__["a" /* cfAdmin */].api.form + formId + '/privacy',
|
2724 |
+
method: 'POST',
|
2725 |
+
data: settings
|
2726 |
+
});
|
2727 |
+
|
2728 |
+
case 2:
|
2729 |
+
form = _context3.sent;
|
2730 |
+
return _context3.abrupt('return', form);
|
2731 |
+
|
2732 |
+
case 4:
|
2733 |
+
case 'end':
|
2734 |
+
return _context3.stop();
|
2735 |
+
}
|
2736 |
+
}
|
2737 |
+
}, _callee3, this);
|
2738 |
+
}));
|
2739 |
+
|
2740 |
+
return function requestUpdatePrivacySettings(_x3, _x4) {
|
2741 |
+
return _ref3.apply(this, arguments);
|
2742 |
+
};
|
2743 |
+
}();;
|
2744 |
+
|
2745 |
+
/***/ }),
|
2746 |
+
/* 175 */
|
2747 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2748 |
+
|
2749 |
+
/**
|
2750 |
+
* Copyright (c) 2014-present, Facebook, Inc.
|
2751 |
+
*
|
2752 |
+
* This source code is licensed under the MIT license found in the
|
2753 |
+
* LICENSE file in the root directory of this source tree.
|
2754 |
+
*/
|
2755 |
+
|
2756 |
+
// This method of obtaining a reference to the global object needs to be
|
2757 |
+
// kept identical to the way it is obtained in runtime.js
|
2758 |
+
var g = (function() { return this })() || Function("return this")();
|
2759 |
+
|
2760 |
+
// Use `getOwnPropertyNames` because not all browsers support calling
|
2761 |
+
// `hasOwnProperty` on the global `self` object in a worker. See #183.
|
2762 |
+
var hadRuntime = g.regeneratorRuntime &&
|
2763 |
+
Object.getOwnPropertyNames(g).indexOf("regeneratorRuntime") >= 0;
|
2764 |
+
|
2765 |
+
// Save the old regeneratorRuntime in case it needs to be restored later.
|
2766 |
+
var oldRuntime = hadRuntime && g.regeneratorRuntime;
|
2767 |
+
|
2768 |
+
// Force reevalutation of runtime.js.
|
2769 |
+
g.regeneratorRuntime = undefined;
|
2770 |
+
|
2771 |
+
module.exports = __webpack_require__(176);
|
2772 |
+
|
2773 |
+
if (hadRuntime) {
|
2774 |
+
// Restore the original runtime.
|
2775 |
+
g.regeneratorRuntime = oldRuntime;
|
2776 |
+
} else {
|
2777 |
+
// Remove the global property added by runtime.js.
|
2778 |
+
try {
|
2779 |
+
delete g.regeneratorRuntime;
|
2780 |
+
} catch(e) {
|
2781 |
+
g.regeneratorRuntime = undefined;
|
2782 |
+
}
|
2783 |
+
}
|
2784 |
+
|
2785 |
+
|
2786 |
+
/***/ }),
|
2787 |
+
/* 176 */
|
2788 |
+
/***/ (function(module, exports) {
|
2789 |
+
|
2790 |
+
/**
|
2791 |
+
* Copyright (c) 2014-present, Facebook, Inc.
|
2792 |
+
*
|
2793 |
+
* This source code is licensed under the MIT license found in the
|
2794 |
+
* LICENSE file in the root directory of this source tree.
|
2795 |
+
*/
|
2796 |
+
|
2797 |
+
!(function(global) {
|
2798 |
+
"use strict";
|
2799 |
+
|
2800 |
+
var Op = Object.prototype;
|
2801 |
+
var hasOwn = Op.hasOwnProperty;
|
2802 |
+
var undefined; // More compressible than void 0.
|
2803 |
+
var $Symbol = typeof Symbol === "function" ? Symbol : {};
|
2804 |
+
var iteratorSymbol = $Symbol.iterator || "@@iterator";
|
2805 |
+
var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
|
2806 |
+
var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
2807 |
+
|
2808 |
+
var inModule = typeof module === "object";
|
2809 |
+
var runtime = global.regeneratorRuntime;
|
2810 |
+
if (runtime) {
|
2811 |
+
if (inModule) {
|
2812 |
+
// If regeneratorRuntime is defined globally and we're in a module,
|
2813 |
+
// make the exports object identical to regeneratorRuntime.
|
2814 |
+
module.exports = runtime;
|
2815 |
+
}
|
2816 |
+
// Don't bother evaluating the rest of this file if the runtime was
|
2817 |
+
// already defined globally.
|
2818 |
+
return;
|
2819 |
+
}
|
2820 |
+
|
2821 |
+
// Define the runtime globally (as expected by generated code) as either
|
2822 |
+
// module.exports (if we're in a module) or a new, empty object.
|
2823 |
+
runtime = global.regeneratorRuntime = inModule ? module.exports : {};
|
2824 |
+
|
2825 |
+
function wrap(innerFn, outerFn, self, tryLocsList) {
|
2826 |
+
// If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
|
2827 |
+
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
|
2828 |
+
var generator = Object.create(protoGenerator.prototype);
|
2829 |
+
var context = new Context(tryLocsList || []);
|
2830 |
+
|
2831 |
+
// The ._invoke method unifies the implementations of the .next,
|
2832 |
+
// .throw, and .return methods.
|
2833 |
+
generator._invoke = makeInvokeMethod(innerFn, self, context);
|
2834 |
+
|
2835 |
+
return generator;
|
2836 |
+
}
|
2837 |
+
runtime.wrap = wrap;
|
2838 |
+
|
2839 |
+
// Try/catch helper to minimize deoptimizations. Returns a completion
|
2840 |
+
// record like context.tryEntries[i].completion. This interface could
|
2841 |
+
// have been (and was previously) designed to take a closure to be
|
2842 |
+
// invoked without arguments, but in all the cases we care about we
|
2843 |
+
// already have an existing method we want to call, so there's no need
|
2844 |
+
// to create a new function object. We can even get away with assuming
|
2845 |
+
// the method takes exactly one argument, since that happens to be true
|
2846 |
+
// in every case, so we don't have to touch the arguments object. The
|
2847 |
+
// only additional allocation required is the completion record, which
|
2848 |
+
// has a stable shape and so hopefully should be cheap to allocate.
|
2849 |
+
function tryCatch(fn, obj, arg) {
|
2850 |
+
try {
|
2851 |
+
return { type: "normal", arg: fn.call(obj, arg) };
|
2852 |
+
} catch (err) {
|
2853 |
+
return { type: "throw", arg: err };
|
2854 |
+
}
|
2855 |
+
}
|
2856 |
+
|
2857 |
+
var GenStateSuspendedStart = "suspendedStart";
|
2858 |
+
var GenStateSuspendedYield = "suspendedYield";
|
2859 |
+
var GenStateExecuting = "executing";
|
2860 |
+
var GenStateCompleted = "completed";
|
2861 |
+
|
2862 |
+
// Returning this object from the innerFn has the same effect as
|
2863 |
+
// breaking out of the dispatch switch statement.
|
2864 |
+
var ContinueSentinel = {};
|
2865 |
+
|
2866 |
+
// Dummy constructor functions that we use as the .constructor and
|
2867 |
+
// .constructor.prototype properties for functions that return Generator
|
2868 |
+
// objects. For full spec compliance, you may wish to configure your
|
2869 |
+
// minifier not to mangle the names of these two functions.
|
2870 |
+
function Generator() {}
|
2871 |
+
function GeneratorFunction() {}
|
2872 |
+
function GeneratorFunctionPrototype() {}
|
2873 |
+
|
2874 |
+
// This is a polyfill for %IteratorPrototype% for environments that
|
2875 |
+
// don't natively support it.
|
2876 |
+
var IteratorPrototype = {};
|
2877 |
+
IteratorPrototype[iteratorSymbol] = function () {
|
2878 |
+
return this;
|
2879 |
+
};
|
2880 |
+
|
2881 |
+
var getProto = Object.getPrototypeOf;
|
2882 |
+
var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
2883 |
+
if (NativeIteratorPrototype &&
|
2884 |
+
NativeIteratorPrototype !== Op &&
|
2885 |
+
hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
|
2886 |
+
// This environment has a native %IteratorPrototype%; use it instead
|
2887 |
+
// of the polyfill.
|
2888 |
+
IteratorPrototype = NativeIteratorPrototype;
|
2889 |
+
}
|
2890 |
+
|
2891 |
+
var Gp = GeneratorFunctionPrototype.prototype =
|
2892 |
+
Generator.prototype = Object.create(IteratorPrototype);
|
2893 |
+
GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
|
2894 |
+
GeneratorFunctionPrototype.constructor = GeneratorFunction;
|
2895 |
+
GeneratorFunctionPrototype[toStringTagSymbol] =
|
2896 |
+
GeneratorFunction.displayName = "GeneratorFunction";
|
2897 |
+
|
2898 |
+
// Helper for defining the .next, .throw, and .return methods of the
|
2899 |
+
// Iterator interface in terms of a single ._invoke method.
|
2900 |
+
function defineIteratorMethods(prototype) {
|
2901 |
+
["next", "throw", "return"].forEach(function(method) {
|
2902 |
+
prototype[method] = function(arg) {
|
2903 |
+
return this._invoke(method, arg);
|
2904 |
+
};
|
2905 |
+
});
|
2906 |
+
}
|
2907 |
+
|
2908 |
+
runtime.isGeneratorFunction = function(genFun) {
|
2909 |
+
var ctor = typeof genFun === "function" && genFun.constructor;
|
2910 |
+
return ctor
|
2911 |
+
? ctor === GeneratorFunction ||
|
2912 |
+
// For the native GeneratorFunction constructor, the best we can
|
2913 |
+
// do is to check its .name property.
|
2914 |
+
(ctor.displayName || ctor.name) === "GeneratorFunction"
|
2915 |
+
: false;
|
2916 |
+
};
|
2917 |
+
|
2918 |
+
runtime.mark = function(genFun) {
|
2919 |
+
if (Object.setPrototypeOf) {
|
2920 |
+
Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
|
2921 |
+
} else {
|
2922 |
+
genFun.__proto__ = GeneratorFunctionPrototype;
|
2923 |
+
if (!(toStringTagSymbol in genFun)) {
|
2924 |
+
genFun[toStringTagSymbol] = "GeneratorFunction";
|
2925 |
+
}
|
2926 |
+
}
|
2927 |
+
genFun.prototype = Object.create(Gp);
|
2928 |
+
return genFun;
|
2929 |
+
};
|
2930 |
+
|
2931 |
+
// Within the body of any async function, `await x` is transformed to
|
2932 |
+
// `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
|
2933 |
+
// `hasOwn.call(value, "__await")` to determine if the yielded value is
|
2934 |
+
// meant to be awaited.
|
2935 |
+
runtime.awrap = function(arg) {
|
2936 |
+
return { __await: arg };
|
2937 |
+
};
|
2938 |
+
|
2939 |
+
function AsyncIterator(generator) {
|
2940 |
+
function invoke(method, arg, resolve, reject) {
|
2941 |
+
var record = tryCatch(generator[method], generator, arg);
|
2942 |
+
if (record.type === "throw") {
|
2943 |
+
reject(record.arg);
|
2944 |
+
} else {
|
2945 |
+
var result = record.arg;
|
2946 |
+
var value = result.value;
|
2947 |
+
if (value &&
|
2948 |
+
typeof value === "object" &&
|
2949 |
+
hasOwn.call(value, "__await")) {
|
2950 |
+
return Promise.resolve(value.__await).then(function(value) {
|
2951 |
+
invoke("next", value, resolve, reject);
|
2952 |
+
}, function(err) {
|
2953 |
+
invoke("throw", err, resolve, reject);
|
2954 |
+
});
|
2955 |
+
}
|
2956 |
+
|
2957 |
+
return Promise.resolve(value).then(function(unwrapped) {
|
2958 |
+
// When a yielded Promise is resolved, its final value becomes
|
2959 |
+
// the .value of the Promise<{value,done}> result for the
|
2960 |
+
// current iteration. If the Promise is rejected, however, the
|
2961 |
+
// result for this iteration will be rejected with the same
|
2962 |
+
// reason. Note that rejections of yielded Promises are not
|
2963 |
+
// thrown back into the generator function, as is the case
|
2964 |
+
// when an awaited Promise is rejected. This difference in
|
2965 |
+
// behavior between yield and await is important, because it
|
2966 |
+
// allows the consumer to decide what to do with the yielded
|
2967 |
+
// rejection (swallow it and continue, manually .throw it back
|
2968 |
+
// into the generator, abandon iteration, whatever). With
|
2969 |
+
// await, by contrast, there is no opportunity to examine the
|
2970 |
+
// rejection reason outside the generator function, so the
|
2971 |
+
// only option is to throw it from the await expression, and
|
2972 |
+
// let the generator function handle the exception.
|
2973 |
+
result.value = unwrapped;
|
2974 |
+
resolve(result);
|
2975 |
+
}, reject);
|
2976 |
+
}
|
2977 |
+
}
|
2978 |
+
|
2979 |
+
var previousPromise;
|
2980 |
+
|
2981 |
+
function enqueue(method, arg) {
|
2982 |
+
function callInvokeWithMethodAndArg() {
|
2983 |
+
return new Promise(function(resolve, reject) {
|
2984 |
+
invoke(method, arg, resolve, reject);
|
2985 |
+
});
|
2986 |
+
}
|
2987 |
+
|
2988 |
+
return previousPromise =
|
2989 |
+
// If enqueue has been called before, then we want to wait until
|
2990 |
+
// all previous Promises have been resolved before calling invoke,
|
2991 |
+
// so that results are always delivered in the correct order. If
|
2992 |
+
// enqueue has not been called before, then it is important to
|
2993 |
+
// call invoke immediately, without waiting on a callback to fire,
|
2994 |
+
// so that the async generator function has the opportunity to do
|
2995 |
+
// any necessary setup in a predictable way. This predictability
|
2996 |
+
// is why the Promise constructor synchronously invokes its
|
2997 |
+
// executor callback, and why async functions synchronously
|
2998 |
+
// execute code before the first await. Since we implement simple
|
2999 |
+
// async functions in terms of async generators, it is especially
|
3000 |
+
// important to get this right, even though it requires care.
|
3001 |
+
previousPromise ? previousPromise.then(
|
3002 |
+
callInvokeWithMethodAndArg,
|
3003 |
+
// Avoid propagating failures to Promises returned by later
|
3004 |
+
// invocations of the iterator.
|
3005 |
+
callInvokeWithMethodAndArg
|
3006 |
+
) : callInvokeWithMethodAndArg();
|
3007 |
+
}
|
3008 |
+
|
3009 |
+
// Define the unified helper method that is used to implement .next,
|
3010 |
+
// .throw, and .return (see defineIteratorMethods).
|
3011 |
+
this._invoke = enqueue;
|
3012 |
+
}
|
3013 |
+
|
3014 |
+
defineIteratorMethods(AsyncIterator.prototype);
|
3015 |
+
AsyncIterator.prototype[asyncIteratorSymbol] = function () {
|
3016 |
+
return this;
|
3017 |
+
};
|
3018 |
+
runtime.AsyncIterator = AsyncIterator;
|
3019 |
+
|
3020 |
+
// Note that simple async functions are implemented on top of
|
3021 |
+
// AsyncIterator objects; they just return a Promise for the value of
|
3022 |
+
// the final result produced by the iterator.
|
3023 |
+
runtime.async = function(innerFn, outerFn, self, tryLocsList) {
|
3024 |
+
var iter = new AsyncIterator(
|
3025 |
+
wrap(innerFn, outerFn, self, tryLocsList)
|
3026 |
+
);
|
3027 |
+
|
3028 |
+
return runtime.isGeneratorFunction(outerFn)
|
3029 |
+
? iter // If outerFn is a generator, return the full iterator.
|
3030 |
+
: iter.next().then(function(result) {
|
3031 |
+
return result.done ? result.value : iter.next();
|
3032 |
+
});
|
3033 |
+
};
|
3034 |
+
|
3035 |
+
function makeInvokeMethod(innerFn, self, context) {
|
3036 |
+
var state = GenStateSuspendedStart;
|
3037 |
+
|
3038 |
+
return function invoke(method, arg) {
|
3039 |
+
if (state === GenStateExecuting) {
|
3040 |
+
throw new Error("Generator is already running");
|
3041 |
+
}
|
3042 |
+
|
3043 |
+
if (state === GenStateCompleted) {
|
3044 |
+
if (method === "throw") {
|
3045 |
+
throw arg;
|
3046 |
+
}
|
3047 |
+
|
3048 |
+
// Be forgiving, per 25.3.3.3.3 of the spec:
|
3049 |
+
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
|
3050 |
+
return doneResult();
|
3051 |
+
}
|
3052 |
+
|
3053 |
+
context.method = method;
|
3054 |
+
context.arg = arg;
|
3055 |
+
|
3056 |
+
while (true) {
|
3057 |
+
var delegate = context.delegate;
|
3058 |
+
if (delegate) {
|
3059 |
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
3060 |
+
if (delegateResult) {
|
3061 |
+
if (delegateResult === ContinueSentinel) continue;
|
3062 |
+
return delegateResult;
|
3063 |
+
}
|
3064 |
+
}
|
3065 |
+
|
3066 |
+
if (context.method === "next") {
|
3067 |
+
// Setting context._sent for legacy support of Babel's
|
3068 |
+
// function.sent implementation.
|
3069 |
+
context.sent = context._sent = context.arg;
|
3070 |
+
|
3071 |
+
} else if (context.method === "throw") {
|
3072 |
+
if (state === GenStateSuspendedStart) {
|
3073 |
+
state = GenStateCompleted;
|
3074 |
+
throw context.arg;
|
3075 |
+
}
|
3076 |
+
|
3077 |
+
context.dispatchException(context.arg);
|
3078 |
+
|
3079 |
+
} else if (context.method === "return") {
|
3080 |
+
context.abrupt("return", context.arg);
|
3081 |
+
}
|
3082 |
+
|
3083 |
+
state = GenStateExecuting;
|
3084 |
+
|
3085 |
+
var record = tryCatch(innerFn, self, context);
|
3086 |
+
if (record.type === "normal") {
|
3087 |
+
// If an exception is thrown from innerFn, we leave state ===
|
3088 |
+
// GenStateExecuting and loop back for another invocation.
|
3089 |
+
state = context.done
|
3090 |
+
? GenStateCompleted
|
3091 |
+
: GenStateSuspendedYield;
|
3092 |
+
|
3093 |
+
if (record.arg === ContinueSentinel) {
|
3094 |
+
continue;
|
3095 |
+
}
|
3096 |
+
|
3097 |
+
return {
|
3098 |
+
value: record.arg,
|
3099 |
+
done: context.done
|
3100 |
+
};
|
3101 |
+
|
3102 |
+
} else if (record.type === "throw") {
|
3103 |
+
state = GenStateCompleted;
|
3104 |
+
// Dispatch the exception by looping back around to the
|
3105 |
+
// context.dispatchException(context.arg) call above.
|
3106 |
+
context.method = "throw";
|
3107 |
+
context.arg = record.arg;
|
3108 |
+
}
|
3109 |
+
}
|
3110 |
+
};
|
3111 |
+
}
|
3112 |
+
|
3113 |
+
// Call delegate.iterator[context.method](context.arg) and handle the
|
3114 |
+
// result, either by returning a { value, done } result from the
|
3115 |
+
// delegate iterator, or by modifying context.method and context.arg,
|
3116 |
+
// setting context.delegate to null, and returning the ContinueSentinel.
|
3117 |
+
function maybeInvokeDelegate(delegate, context) {
|
3118 |
+
var method = delegate.iterator[context.method];
|
3119 |
+
if (method === undefined) {
|
3120 |
+
// A .throw or .return when the delegate iterator has no .throw
|
3121 |
+
// method always terminates the yield* loop.
|
3122 |
+
context.delegate = null;
|
3123 |
+
|
3124 |
+
if (context.method === "throw") {
|
3125 |
+
if (delegate.iterator.return) {
|
3126 |
+
// If the delegate iterator has a return method, give it a
|
3127 |
+
// chance to clean up.
|
3128 |
+
context.method = "return";
|
3129 |
+
context.arg = undefined;
|
3130 |
+
maybeInvokeDelegate(delegate, context);
|
3131 |
+
|
3132 |
+
if (context.method === "throw") {
|
3133 |
+
// If maybeInvokeDelegate(context) changed context.method from
|
3134 |
+
// "return" to "throw", let that override the TypeError below.
|
3135 |
+
return ContinueSentinel;
|
3136 |
+
}
|
3137 |
+
}
|
3138 |
+
|
3139 |
+
context.method = "throw";
|
3140 |
+
context.arg = new TypeError(
|
3141 |
+
"The iterator does not provide a 'throw' method");
|
3142 |
+
}
|
3143 |
+
|
3144 |
+
return ContinueSentinel;
|
3145 |
+
}
|
3146 |
+
|
3147 |
+
var record = tryCatch(method, delegate.iterator, context.arg);
|
3148 |
+
|
3149 |
+
if (record.type === "throw") {
|
3150 |
+
context.method = "throw";
|
3151 |
+
context.arg = record.arg;
|
3152 |
+
context.delegate = null;
|
3153 |
+
return ContinueSentinel;
|
3154 |
+
}
|
3155 |
+
|
3156 |
+
var info = record.arg;
|
3157 |
+
|
3158 |
+
if (! info) {
|
3159 |
+
context.method = "throw";
|
3160 |
+
context.arg = new TypeError("iterator result is not an object");
|
3161 |
+
context.delegate = null;
|
3162 |
+
return ContinueSentinel;
|
3163 |
+
}
|
3164 |
+
|
3165 |
+
if (info.done) {
|
3166 |
+
// Assign the result of the finished delegate to the temporary
|
3167 |
+
// variable specified by delegate.resultName (see delegateYield).
|
3168 |
+
context[delegate.resultName] = info.value;
|
3169 |
+
|
3170 |
+
// Resume execution at the desired location (see delegateYield).
|
3171 |
+
context.next = delegate.nextLoc;
|
3172 |
+
|
3173 |
+
// If context.method was "throw" but the delegate handled the
|
3174 |
+
// exception, let the outer generator proceed normally. If
|
3175 |
+
// context.method was "next", forget context.arg since it has been
|
3176 |
+
// "consumed" by the delegate iterator. If context.method was
|
3177 |
+
// "return", allow the original .return call to continue in the
|
3178 |
+
// outer generator.
|
3179 |
+
if (context.method !== "return") {
|
3180 |
+
context.method = "next";
|
3181 |
+
context.arg = undefined;
|
3182 |
+
}
|
3183 |
+
|
3184 |
+
} else {
|
3185 |
+
// Re-yield the result returned by the delegate method.
|
3186 |
+
return info;
|
3187 |
+
}
|
3188 |
+
|
3189 |
+
// The delegate iterator is finished, so forget it and continue with
|
3190 |
+
// the outer generator.
|
3191 |
+
context.delegate = null;
|
3192 |
+
return ContinueSentinel;
|
3193 |
+
}
|
3194 |
+
|
3195 |
+
// Define Generator.prototype.{next,throw,return} in terms of the
|
3196 |
+
// unified ._invoke helper method.
|
3197 |
+
defineIteratorMethods(Gp);
|
3198 |
+
|
3199 |
+
Gp[toStringTagSymbol] = "Generator";
|
3200 |
+
|
3201 |
+
// A Generator should always return itself as the iterator object when the
|
3202 |
+
// @@iterator function is called on it. Some browsers' implementations of the
|
3203 |
+
// iterator prototype chain incorrectly implement this, causing the Generator
|
3204 |
+
// object to not be returned from this call. This ensures that doesn't happen.
|
3205 |
+
// See https://github.com/facebook/regenerator/issues/274 for more details.
|
3206 |
+
Gp[iteratorSymbol] = function() {
|
3207 |
+
return this;
|
3208 |
+
};
|
3209 |
+
|
3210 |
+
Gp.toString = function() {
|
3211 |
+
return "[object Generator]";
|
3212 |
+
};
|
3213 |
+
|
3214 |
+
function pushTryEntry(locs) {
|
3215 |
+
var entry = { tryLoc: locs[0] };
|
3216 |
+
|
3217 |
+
if (1 in locs) {
|
3218 |
+
entry.catchLoc = locs[1];
|
3219 |
+
}
|
3220 |
+
|
3221 |
+
if (2 in locs) {
|
3222 |
+
entry.finallyLoc = locs[2];
|
3223 |
+
entry.afterLoc = locs[3];
|
3224 |
+
}
|
3225 |
+
|
3226 |
+
this.tryEntries.push(entry);
|
3227 |
+
}
|
3228 |
+
|
3229 |
+
function resetTryEntry(entry) {
|
3230 |
+
var record = entry.completion || {};
|
3231 |
+
record.type = "normal";
|
3232 |
+
delete record.arg;
|
3233 |
+
entry.completion = record;
|
3234 |
+
}
|
3235 |
+
|
3236 |
+
function Context(tryLocsList) {
|
3237 |
+
// The root entry object (effectively a try statement without a catch
|
3238 |
+
// or a finally block) gives us a place to store values thrown from
|
3239 |
+
// locations where there is no enclosing try statement.
|
3240 |
+
this.tryEntries = [{ tryLoc: "root" }];
|
3241 |
+
tryLocsList.forEach(pushTryEntry, this);
|
3242 |
+
this.reset(true);
|
3243 |
+
}
|
3244 |
+
|
3245 |
+
runtime.keys = function(object) {
|
3246 |
+
var keys = [];
|
3247 |
+
for (var key in object) {
|
3248 |
+
keys.push(key);
|
3249 |
+
}
|
3250 |
+
keys.reverse();
|
3251 |
+
|
3252 |
+
// Rather than returning an object with a next method, we keep
|
3253 |
+
// things simple and return the next function itself.
|
3254 |
+
return function next() {
|
3255 |
+
while (keys.length) {
|
3256 |
+
var key = keys.pop();
|
3257 |
+
if (key in object) {
|
3258 |
+
next.value = key;
|
3259 |
+
next.done = false;
|
3260 |
+
return next;
|
3261 |
+
}
|
3262 |
+
}
|
3263 |
+
|
3264 |
+
// To avoid creating an additional object, we just hang the .value
|
3265 |
+
// and .done properties off the next function object itself. This
|
3266 |
+
// also ensures that the minifier will not anonymize the function.
|
3267 |
+
next.done = true;
|
3268 |
+
return next;
|
3269 |
+
};
|
3270 |
+
};
|
3271 |
+
|
3272 |
+
function values(iterable) {
|
3273 |
+
if (iterable) {
|
3274 |
+
var iteratorMethod = iterable[iteratorSymbol];
|
3275 |
+
if (iteratorMethod) {
|
3276 |
+
return iteratorMethod.call(iterable);
|
3277 |
+
}
|
3278 |
+
|
3279 |
+
if (typeof iterable.next === "function") {
|
3280 |
+
return iterable;
|
3281 |
+
}
|
3282 |
+
|
3283 |
+
if (!isNaN(iterable.length)) {
|
3284 |
+
var i = -1, next = function next() {
|
3285 |
+
while (++i < iterable.length) {
|
3286 |
+
if (hasOwn.call(iterable, i)) {
|
3287 |
+
next.value = iterable[i];
|
3288 |
+
next.done = false;
|
3289 |
+
return next;
|
3290 |
+
}
|
3291 |
+
}
|
3292 |
+
|
3293 |
+
next.value = undefined;
|
3294 |
+
next.done = true;
|
3295 |
+
|
3296 |
+
return next;
|
3297 |
+
};
|
3298 |
+
|
3299 |
+
return next.next = next;
|
3300 |
+
}
|
3301 |
+
}
|
3302 |
+
|
3303 |
+
// Return an iterator with no values.
|
3304 |
+
return { next: doneResult };
|
3305 |
+
}
|
3306 |
+
runtime.values = values;
|
3307 |
+
|
3308 |
+
function doneResult() {
|
3309 |
+
return { value: undefined, done: true };
|
3310 |
+
}
|
3311 |
+
|
3312 |
+
Context.prototype = {
|
3313 |
+
constructor: Context,
|
3314 |
+
|
3315 |
+
reset: function(skipTempReset) {
|
3316 |
+
this.prev = 0;
|
3317 |
+
this.next = 0;
|
3318 |
+
// Resetting context._sent for legacy support of Babel's
|
3319 |
+
// function.sent implementation.
|
3320 |
+
this.sent = this._sent = undefined;
|
3321 |
+
this.done = false;
|
3322 |
+
this.delegate = null;
|
3323 |
+
|
3324 |
+
this.method = "next";
|
3325 |
+
this.arg = undefined;
|
3326 |
+
|
3327 |
+
this.tryEntries.forEach(resetTryEntry);
|
3328 |
+
|
3329 |
+
if (!skipTempReset) {
|
3330 |
+
for (var name in this) {
|
3331 |
+
// Not sure about the optimal order of these conditions:
|
3332 |
+
if (name.charAt(0) === "t" &&
|
3333 |
+
hasOwn.call(this, name) &&
|
3334 |
+
!isNaN(+name.slice(1))) {
|
3335 |
+
this[name] = undefined;
|
3336 |
+
}
|
3337 |
+
}
|
3338 |
+
}
|
3339 |
+
},
|
3340 |
+
|
3341 |
+
stop: function() {
|
3342 |
+
this.done = true;
|
3343 |
+
|
3344 |
+
var rootEntry = this.tryEntries[0];
|
3345 |
+
var rootRecord = rootEntry.completion;
|
3346 |
+
if (rootRecord.type === "throw") {
|
3347 |
+
throw rootRecord.arg;
|
3348 |
+
}
|
3349 |
+
|
3350 |
+
return this.rval;
|
3351 |
+
},
|
3352 |
+
|
3353 |
+
dispatchException: function(exception) {
|
3354 |
+
if (this.done) {
|
3355 |
+
throw exception;
|
3356 |
+
}
|
3357 |
+
|
3358 |
+
var context = this;
|
3359 |
+
function handle(loc, caught) {
|
3360 |
+
record.type = "throw";
|
3361 |
+
record.arg = exception;
|
3362 |
+
context.next = loc;
|
3363 |
+
|
3364 |
+
if (caught) {
|
3365 |
+
// If the dispatched exception was caught by a catch block,
|
3366 |
+
// then let that catch block handle the exception normally.
|
3367 |
+
context.method = "next";
|
3368 |
+
context.arg = undefined;
|
3369 |
+
}
|
3370 |
+
|
3371 |
+
return !! caught;
|
3372 |
+
}
|
3373 |
+
|
3374 |
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
3375 |
+
var entry = this.tryEntries[i];
|
3376 |
+
var record = entry.completion;
|
3377 |
+
|
3378 |
+
if (entry.tryLoc === "root") {
|
3379 |
+
// Exception thrown outside of any try block that could handle
|
3380 |
+
// it, so set the completion value of the entire function to
|
3381 |
+
// throw the exception.
|
3382 |
+
return handle("end");
|
3383 |
+
}
|
3384 |
+
|
3385 |
+
if (entry.tryLoc <= this.prev) {
|
3386 |
+
var hasCatch = hasOwn.call(entry, "catchLoc");
|
3387 |
+
var hasFinally = hasOwn.call(entry, "finallyLoc");
|
3388 |
+
|
3389 |
+
if (hasCatch && hasFinally) {
|
3390 |
+
if (this.prev < entry.catchLoc) {
|
3391 |
+
return handle(entry.catchLoc, true);
|
3392 |
+
} else if (this.prev < entry.finallyLoc) {
|
3393 |
+
return handle(entry.finallyLoc);
|
3394 |
+
}
|
3395 |
+
|
3396 |
+
} else if (hasCatch) {
|
3397 |
+
if (this.prev < entry.catchLoc) {
|
3398 |
+
return handle(entry.catchLoc, true);
|
3399 |
+
}
|
3400 |
+
|
3401 |
+
} else if (hasFinally) {
|
3402 |
+
if (this.prev < entry.finallyLoc) {
|
3403 |
+
return handle(entry.finallyLoc);
|
3404 |
+
}
|
3405 |
+
|
3406 |
+
} else {
|
3407 |
+
throw new Error("try statement without catch or finally");
|
3408 |
+
}
|
3409 |
+
}
|
3410 |
+
}
|
3411 |
+
},
|
3412 |
+
|
3413 |
+
abrupt: function(type, arg) {
|
3414 |
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
3415 |
+
var entry = this.tryEntries[i];
|
3416 |
+
if (entry.tryLoc <= this.prev &&
|
3417 |
+
hasOwn.call(entry, "finallyLoc") &&
|
3418 |
+
this.prev < entry.finallyLoc) {
|
3419 |
+
var finallyEntry = entry;
|
3420 |
+
break;
|
3421 |
+
}
|
3422 |
+
}
|
3423 |
+
|
3424 |
+
if (finallyEntry &&
|
3425 |
+
(type === "break" ||
|
3426 |
+
type === "continue") &&
|
3427 |
+
finallyEntry.tryLoc <= arg &&
|
3428 |
+
arg <= finallyEntry.finallyLoc) {
|
3429 |
+
// Ignore the finally entry if control is not jumping to a
|
3430 |
+
// location outside the try/catch block.
|
3431 |
+
finallyEntry = null;
|
3432 |
+
}
|
3433 |
+
|
3434 |
+
var record = finallyEntry ? finallyEntry.completion : {};
|
3435 |
+
record.type = type;
|
3436 |
+
record.arg = arg;
|
3437 |
+
|
3438 |
+
if (finallyEntry) {
|
3439 |
+
this.method = "next";
|
3440 |
+
this.next = finallyEntry.finallyLoc;
|
3441 |
+
return ContinueSentinel;
|
3442 |
+
}
|
3443 |
+
|
3444 |
+
return this.complete(record);
|
3445 |
+
},
|
3446 |
+
|
3447 |
+
complete: function(record, afterLoc) {
|
3448 |
+
if (record.type === "throw") {
|
3449 |
+
throw record.arg;
|
3450 |
+
}
|
3451 |
+
|
3452 |
+
if (record.type === "break" ||
|
3453 |
+
record.type === "continue") {
|
3454 |
+
this.next = record.arg;
|
3455 |
+
} else if (record.type === "return") {
|
3456 |
+
this.rval = this.arg = record.arg;
|
3457 |
+
this.method = "return";
|
3458 |
+
this.next = "end";
|
3459 |
+
} else if (record.type === "normal" && afterLoc) {
|
3460 |
+
this.next = afterLoc;
|
3461 |
+
}
|
3462 |
+
|
3463 |
+
return ContinueSentinel;
|
3464 |
+
},
|
3465 |
+
|
3466 |
+
finish: function(finallyLoc) {
|
3467 |
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
3468 |
+
var entry = this.tryEntries[i];
|
3469 |
+
if (entry.finallyLoc === finallyLoc) {
|
3470 |
+
this.complete(entry.completion, entry.afterLoc);
|
3471 |
+
resetTryEntry(entry);
|
3472 |
+
return ContinueSentinel;
|
3473 |
+
}
|
3474 |
+
}
|
3475 |
+
},
|
3476 |
+
|
3477 |
+
"catch": function(tryLoc) {
|
3478 |
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
3479 |
+
var entry = this.tryEntries[i];
|
3480 |
+
if (entry.tryLoc === tryLoc) {
|
3481 |
+
var record = entry.completion;
|
3482 |
+
if (record.type === "throw") {
|
3483 |
+
var thrown = record.arg;
|
3484 |
+
resetTryEntry(entry);
|
3485 |
+
}
|
3486 |
+
return thrown;
|
3487 |
+
}
|
3488 |
+
}
|
3489 |
+
|
3490 |
+
// The context.catch method must only be called with a location
|
3491 |
+
// argument that corresponds to a known catch block.
|
3492 |
+
throw new Error("illegal catch attempt");
|
3493 |
+
},
|
3494 |
+
|
3495 |
+
delegateYield: function(iterable, resultName, nextLoc) {
|
3496 |
+
this.delegate = {
|
3497 |
+
iterator: values(iterable),
|
3498 |
+
resultName: resultName,
|
3499 |
+
nextLoc: nextLoc
|
3500 |
+
};
|
3501 |
+
|
3502 |
+
if (this.method === "next") {
|
3503 |
+
// Deliberately forget the last sent value so that we don't
|
3504 |
+
// accidentally pass it on to the delegate.
|
3505 |
+
this.arg = undefined;
|
3506 |
+
}
|
3507 |
+
|
3508 |
+
return ContinueSentinel;
|
3509 |
+
}
|
3510 |
+
};
|
3511 |
+
})(
|
3512 |
+
// In sloppy mode, unbound `this` refers to the global object, fallback to
|
3513 |
+
// Function constructor if we're in global strict mode. That is sadly a form
|
3514 |
+
// of indirect eval which violates Content Security Policy.
|
3515 |
+
(function() { return this })() || Function("return this")()
|
3516 |
+
);
|
3517 |
+
|
3518 |
+
|
3519 |
+
/***/ }),
|
3520 |
+
/* 177 */,
|
3521 |
+
/* 178 */,
|
3522 |
+
/* 179 */,
|
3523 |
+
/* 180 */,
|
3524 |
+
/* 181 */,
|
3525 |
+
/* 182 */,
|
3526 |
+
/* 183 */,
|
3527 |
+
/* 184 */,
|
3528 |
+
/* 185 */,
|
3529 |
+
/* 186 */,
|
3530 |
+
/* 187 */,
|
3531 |
+
/* 188 */
|
3532 |
+
/***/ (function(module, exports, __webpack_require__) {
|
3533 |
+
|
3534 |
+
__webpack_require__(189);
|
3535 |
+
module.exports = __webpack_require__(12).Object.keys;
|
3536 |
+
|
3537 |
+
|
3538 |
+
/***/ }),
|
3539 |
+
/* 189 */
|
3540 |
+
/***/ (function(module, exports, __webpack_require__) {
|
3541 |
+
|
3542 |
+
// 19.1.2.14 Object.keys(O)
|
3543 |
+
var toObject = __webpack_require__(56);
|
3544 |
+
var $keys = __webpack_require__(27);
|
3545 |
+
|
3546 |
+
__webpack_require__(190)('keys', function () {
|
3547 |
+
return function keys(it) {
|
3548 |
+
return $keys(toObject(it));
|
3549 |
+
};
|
3550 |
+
});
|
3551 |
+
|
3552 |
+
|
3553 |
+
/***/ }),
|
3554 |
+
/* 190 */
|
3555 |
+
/***/ (function(module, exports, __webpack_require__) {
|
3556 |
+
|
3557 |
+
// most Object methods by ES6 should accept primitives
|
3558 |
+
var $export = __webpack_require__(14);
|
3559 |
+
var core = __webpack_require__(12);
|
3560 |
+
var fails = __webpack_require__(25);
|
3561 |
+
module.exports = function (KEY, exec) {
|
3562 |
+
var fn = (core.Object || {})[KEY] || Object[KEY];
|
3563 |
+
var exp = {};
|
3564 |
+
exp[KEY] = exec(fn);
|
3565 |
+
$export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp);
|
3566 |
+
};
|
3567 |
+
|
3568 |
+
|
3569 |
+
/***/ }),
|
3570 |
+
/* 191 */
|
3571 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
3572 |
+
|
3573 |
+
"use strict";
|
3574 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CALDERA_FORMS_STORE_NAME; });
|
3575 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return requestFormPreview; });
|
3576 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return STORE; });
|
3577 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator__ = __webpack_require__(151);
|
3578 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator__);
|
3579 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_asyncToGenerator__ = __webpack_require__(152);
|
3580 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_asyncToGenerator___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_asyncToGenerator__);
|
3581 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_extends__ = __webpack_require__(1);
|
3582 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_extends__);
|
3583 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__state_actions_form__ = __webpack_require__(57);
|
3584 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__state_actions_mutations__ = __webpack_require__(150);
|
3585 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__state_actions_functions__ = __webpack_require__(88);
|
3586 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__state_api_cfAdmin__ = __webpack_require__(86);
|
3587 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__state_api__ = __webpack_require__(174);
|
3588 |
+
|
3589 |
+
|
3590 |
+
|
3591 |
+
var _wp = wp,
|
3592 |
+
apiRequest = _wp.apiRequest;
|
3593 |
+
var _wp$data = wp.data,
|
3594 |
+
registerStore = _wp$data.registerStore,
|
3595 |
+
dispatch = _wp$data.dispatch;
|
3596 |
+
|
3597 |
+
var CALDERA_FORMS_STORE_NAME = 'caldera-forms/forms';
|
3598 |
+
|
3599 |
+
|
3600 |
+
|
3601 |
+
|
3602 |
+
|
3603 |
+
|
3604 |
+
|
3605 |
+
|
3606 |
+
|
3607 |
+
|
3608 |
+
|
3609 |
+
//Track requests for previews to prevent multiple while pending
|
3610 |
+
var requestingPreviews = [];
|
3611 |
+
/**
|
3612 |
+
* Request form preview HTML from server
|
3613 |
+
*
|
3614 |
+
* @since 1.6.2
|
3615 |
+
*
|
3616 |
+
* @param {Object} state
|
3617 |
+
* @param {String} formId
|
3618 |
+
*/
|
3619 |
+
var requestFormPreview = function requestFormPreview(state, formId) {
|
3620 |
+
if ('false' !== formId && requestingPreviews.includes(formId)) {
|
3621 |
+
return;
|
3622 |
+
}
|
3623 |
+
requestingPreviews.push(formId);
|
3624 |
+
|
3625 |
+
wp.apiRequest({
|
3626 |
+
url: "" + __WEBPACK_IMPORTED_MODULE_6__state_api_cfAdmin__["a" /* cfAdmin */].api.form + formId + "?preview=true",
|
3627 |
+
method: 'GET',
|
3628 |
+
cache: true
|
3629 |
+
|
3630 |
+
}).then(function (r) {
|
3631 |
+
dispatch(CALDERA_FORMS_STORE_NAME).addFormPreview(formId, r);
|
3632 |
+
});
|
3633 |
+
};
|
3634 |
+
|
3635 |
+
/**
|
3636 |
+
* Caldera Forms Redux-store
|
3637 |
+
*
|
3638 |
+
* @since 1.6.2
|
3639 |
+
*
|
3640 |
+
* @type {{reducer: (function(*=, *)), actions: {setForm: (function(*=)), setForms: (function(*=)), addFormPreview: (function(*=, *=))}, selectors: {getForm: (function(*=, *=)), getForms: (function(*)), getFormPreview: (function(*, *=)), getFormPreviews: (function(*))}, resolvers: {getForm: (function(*, *): Promise)}}}
|
3641 |
+
*/
|
3642 |
+
var STORE = {
|
3643 |
+
reducer: function reducer() {
|
3644 |
+
var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : __WEBPACK_IMPORTED_MODULE_3__state_actions_form__["b" /* DEFAULT_STATE */];
|
3645 |
+
var action = arguments[1];
|
3646 |
+
|
3647 |
+
switch (action.type) {
|
3648 |
+
case __WEBPACK_IMPORTED_MODULE_3__state_actions_form__["d" /* SET_FORMS */]:
|
3649 |
+
return Object(__WEBPACK_IMPORTED_MODULE_4__state_actions_mutations__["b" /* setFormsInState */])(state, action);
|
3650 |
+
case __WEBPACK_IMPORTED_MODULE_3__state_actions_form__["a" /* ADD_FORM_PREVIEW */]:
|
3651 |
+
state.formPreviews[action.formId] = action.preview;
|
3652 |
+
return __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_extends___default()({}, state, {
|
3653 |
+
formPreviews: state.formPreviews
|
3654 |
+
});
|
3655 |
+
case __WEBPACK_IMPORTED_MODULE_3__state_actions_form__["c" /* SET_FORM */]:
|
3656 |
+
return Object(__WEBPACK_IMPORTED_MODULE_4__state_actions_mutations__["a" /* setFormInState */])(state, action);
|
3657 |
+
|
3658 |
+
}
|
3659 |
+
|
3660 |
+
return state;
|
3661 |
+
},
|
3662 |
+
|
3663 |
+
|
3664 |
+
actions: __WEBPACK_IMPORTED_MODULE_3__state_actions_form__["e" /* actionFunctions */],
|
3665 |
+
selectors: {
|
3666 |
+
getForm: function getForm(state, formId) {
|
3667 |
+
return Object(__WEBPACK_IMPORTED_MODULE_5__state_actions_functions__["a" /* findFormById */])(state, formId);
|
3668 |
+
},
|
3669 |
+
getForms: function getForms(state) {
|
3670 |
+
return state.forms;
|
3671 |
+
},
|
3672 |
+
getFormPreview: function getFormPreview(state, formId) {
|
3673 |
+
return state.formPreviews.hasOwnProperty(formId) ? state.formPreviews[formId] : '';
|
3674 |
+
},
|
3675 |
+
getFormPreviews: function getFormPreviews(state) {
|
3676 |
+
return state.formPreviews;
|
3677 |
+
}
|
3678 |
+
},
|
3679 |
+
resolvers: {
|
3680 |
+
getForm: function () {
|
3681 |
+
var _ref = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_asyncToGenerator___default()( /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default.a.mark(function _callee(state, formId) {
|
3682 |
+
var form;
|
3683 |
+
return __WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default.a.wrap(function _callee$(_context) {
|
3684 |
+
while (1) {
|
3685 |
+
switch (_context.prev = _context.next) {
|
3686 |
+
case 0:
|
3687 |
+
_context.next = 2;
|
3688 |
+
return Object(__WEBPACK_IMPORTED_MODULE_7__state_api__["a" /* requestForm */])(formId);
|
3689 |
+
|
3690 |
+
case 2:
|
3691 |
+
form = _context.sent;
|
3692 |
+
|
3693 |
+
dispatch(CALDERA_FORMS_STORE_NAME).setForm(form);
|
3694 |
+
|
3695 |
+
case 4:
|
3696 |
+
case "end":
|
3697 |
+
return _context.stop();
|
3698 |
+
}
|
3699 |
+
}
|
3700 |
+
}, _callee, this);
|
3701 |
+
}));
|
3702 |
+
|
3703 |
+
function getForm(_x2, _x3) {
|
3704 |
+
return _ref.apply(this, arguments);
|
3705 |
+
}
|
3706 |
+
|
3707 |
+
return getForm;
|
3708 |
+
}()
|
3709 |
+
}
|
3710 |
+
|
3711 |
+
};
|
3712 |
+
|
3713 |
+
/***/ }),
|
3714 |
+
/* 192 */,
|
3715 |
+
/* 193 */,
|
3716 |
+
/* 194 */,
|
3717 |
+
/* 195 */,
|
3718 |
+
/* 196 */,
|
3719 |
+
/* 197 */,
|
3720 |
+
/* 198 */,
|
3721 |
+
/* 199 */,
|
3722 |
+
/* 200 */,
|
3723 |
+
/* 201 */,
|
3724 |
+
/* 202 */,
|
3725 |
+
/* 203 */,
|
3726 |
+
/* 204 */,
|
3727 |
+
/* 205 */,
|
3728 |
+
/* 206 */,
|
3729 |
+
/* 207 */,
|
3730 |
+
/* 208 */,
|
3731 |
+
/* 209 */,
|
3732 |
+
/* 210 */,
|
3733 |
+
/* 211 */,
|
3734 |
+
/* 212 */,
|
3735 |
+
/* 213 */,
|
3736 |
+
/* 214 */,
|
3737 |
+
/* 215 */,
|
3738 |
+
/* 216 */,
|
3739 |
+
/* 217 */,
|
3740 |
+
/* 218 */,
|
3741 |
+
/* 219 */,
|
3742 |
+
/* 220 */,
|
3743 |
+
/* 221 */,
|
3744 |
+
/* 222 */,
|
3745 |
+
/* 223 */,
|
3746 |
+
/* 224 */,
|
3747 |
+
/* 225 */,
|
3748 |
+
/* 226 */,
|
3749 |
+
/* 227 */,
|
3750 |
+
/* 228 */,
|
3751 |
+
/* 229 */,
|
3752 |
+
/* 230 */,
|
3753 |
+
/* 231 */,
|
3754 |
+
/* 232 */,
|
3755 |
+
/* 233 */,
|
3756 |
+
/* 234 */,
|
3757 |
+
/* 235 */,
|
3758 |
+
/* 236 */,
|
3759 |
+
/* 237 */,
|
3760 |
+
/* 238 */,
|
3761 |
+
/* 239 */,
|
3762 |
+
/* 240 */,
|
3763 |
+
/* 241 */,
|
3764 |
+
/* 242 */,
|
3765 |
+
/* 243 */,
|
3766 |
+
/* 244 */,
|
3767 |
+
/* 245 */,
|
3768 |
+
/* 246 */,
|
3769 |
+
/* 247 */,
|
3770 |
+
/* 248 */,
|
3771 |
+
/* 249 */,
|
3772 |
+
/* 250 */,
|
3773 |
+
/* 251 */,
|
3774 |
+
/* 252 */,
|
3775 |
+
/* 253 */,
|
3776 |
+
/* 254 */,
|
3777 |
+
/* 255 */,
|
3778 |
+
/* 256 */,
|
3779 |
+
/* 257 */,
|
3780 |
+
/* 258 */,
|
3781 |
+
/* 259 */,
|
3782 |
+
/* 260 */,
|
3783 |
+
/* 261 */,
|
3784 |
+
/* 262 */,
|
3785 |
+
/* 263 */,
|
3786 |
+
/* 264 */,
|
3787 |
+
/* 265 */,
|
3788 |
+
/* 266 */,
|
3789 |
+
/* 267 */,
|
3790 |
+
/* 268 */,
|
3791 |
+
/* 269 */,
|
3792 |
+
/* 270 */,
|
3793 |
+
/* 271 */,
|
3794 |
+
/* 272 */,
|
3795 |
+
/* 273 */,
|
3796 |
+
/* 274 */,
|
3797 |
+
/* 275 */,
|
3798 |
+
/* 276 */,
|
3799 |
+
/* 277 */,
|
3800 |
+
/* 278 */,
|
3801 |
+
/* 279 */,
|
3802 |
+
/* 280 */,
|
3803 |
+
/* 281 */,
|
3804 |
+
/* 282 */,
|
3805 |
+
/* 283 */,
|
3806 |
+
/* 284 */,
|
3807 |
+
/* 285 */,
|
3808 |
+
/* 286 */,
|
3809 |
+
/* 287 */,
|
3810 |
+
/* 288 */,
|
3811 |
+
/* 289 */,
|
3812 |
+
/* 290 */,
|
3813 |
+
/* 291 */,
|
3814 |
+
/* 292 */,
|
3815 |
+
/* 293 */,
|
3816 |
+
/* 294 */,
|
3817 |
+
/* 295 */,
|
3818 |
+
/* 296 */,
|
3819 |
+
/* 297 */,
|
3820 |
+
/* 298 */,
|
3821 |
+
/* 299 */,
|
3822 |
+
/* 300 */,
|
3823 |
+
/* 301 */,
|
3824 |
+
/* 302 */,
|
3825 |
+
/* 303 */,
|
3826 |
+
/* 304 */,
|
3827 |
+
/* 305 */,
|
3828 |
+
/* 306 */,
|
3829 |
+
/* 307 */,
|
3830 |
+
/* 308 */,
|
3831 |
+
/* 309 */,
|
3832 |
+
/* 310 */,
|
3833 |
+
/* 311 */,
|
3834 |
+
/* 312 */,
|
3835 |
+
/* 313 */,
|
3836 |
+
/* 314 */,
|
3837 |
+
/* 315 */,
|
3838 |
+
/* 316 */,
|
3839 |
+
/* 317 */,
|
3840 |
+
/* 318 */,
|
3841 |
+
/* 319 */,
|
3842 |
+
/* 320 */,
|
3843 |
+
/* 321 */,
|
3844 |
+
/* 322 */,
|
3845 |
+
/* 323 */,
|
3846 |
+
/* 324 */,
|
3847 |
+
/* 325 */,
|
3848 |
+
/* 326 */,
|
3849 |
+
/* 327 */,
|
3850 |
+
/* 328 */,
|
3851 |
+
/* 329 */,
|
3852 |
+
/* 330 */,
|
3853 |
+
/* 331 */,
|
3854 |
+
/* 332 */,
|
3855 |
+
/* 333 */,
|
3856 |
+
/* 334 */,
|
3857 |
+
/* 335 */,
|
3858 |
+
/* 336 */,
|
3859 |
+
/* 337 */,
|
3860 |
+
/* 338 */,
|
3861 |
+
/* 339 */,
|
3862 |
+
/* 340 */,
|
3863 |
+
/* 341 */,
|
3864 |
+
/* 342 */,
|
3865 |
+
/* 343 */,
|
3866 |
+
/* 344 */,
|
3867 |
+
/* 345 */,
|
3868 |
+
/* 346 */,
|
3869 |
+
/* 347 */,
|
3870 |
+
/* 348 */,
|
3871 |
+
/* 349 */,
|
3872 |
+
/* 350 */,
|
3873 |
+
/* 351 */,
|
3874 |
+
/* 352 */,
|
3875 |
+
/* 353 */,
|
3876 |
+
/* 354 */,
|
3877 |
+
/* 355 */,
|
3878 |
+
/* 356 */,
|
3879 |
+
/* 357 */,
|
3880 |
+
/* 358 */,
|
3881 |
+
/* 359 */,
|
3882 |
+
/* 360 */,
|
3883 |
+
/* 361 */,
|
3884 |
+
/* 362 */,
|
3885 |
+
/* 363 */,
|
3886 |
+
/* 364 */,
|
3887 |
+
/* 365 */,
|
3888 |
+
/* 366 */,
|
3889 |
+
/* 367 */,
|
3890 |
+
/* 368 */,
|
3891 |
+
/* 369 */,
|
3892 |
+
/* 370 */,
|
3893 |
+
/* 371 */,
|
3894 |
+
/* 372 */,
|
3895 |
+
/* 373 */,
|
3896 |
+
/* 374 */,
|
3897 |
+
/* 375 */,
|
3898 |
+
/* 376 */,
|
3899 |
+
/* 377 */,
|
3900 |
+
/* 378 */,
|
3901 |
+
/* 379 */,
|
3902 |
+
/* 380 */,
|
3903 |
+
/* 381 */,
|
3904 |
+
/* 382 */,
|
3905 |
+
/* 383 */,
|
3906 |
+
/* 384 */,
|
3907 |
+
/* 385 */,
|
3908 |
+
/* 386 */,
|
3909 |
+
/* 387 */,
|
3910 |
+
/* 388 */,
|
3911 |
+
/* 389 */,
|
3912 |
+
/* 390 */,
|
3913 |
+
/* 391 */,
|
3914 |
+
/* 392 */,
|
3915 |
+
/* 393 */,
|
3916 |
+
/* 394 */,
|
3917 |
+
/* 395 */,
|
3918 |
+
/* 396 */,
|
3919 |
+
/* 397 */,
|
3920 |
+
/* 398 */,
|
3921 |
+
/* 399 */,
|
3922 |
+
/* 400 */,
|
3923 |
+
/* 401 */,
|
3924 |
+
/* 402 */,
|
3925 |
+
/* 403 */,
|
3926 |
+
/* 404 */,
|
3927 |
+
/* 405 */,
|
3928 |
+
/* 406 */,
|
3929 |
+
/* 407 */,
|
3930 |
+
/* 408 */,
|
3931 |
+
/* 409 */,
|
3932 |
+
/* 410 */,
|
3933 |
+
/* 411 */,
|
3934 |
+
/* 412 */,
|
3935 |
+
/* 413 */,
|
3936 |
+
/* 414 */,
|
3937 |
+
/* 415 */,
|
3938 |
+
/* 416 */,
|
3939 |
+
/* 417 */,
|
3940 |
+
/* 418 */,
|
3941 |
+
/* 419 */,
|
3942 |
+
/* 420 */,
|
3943 |
+
/* 421 */,
|
3944 |
+
/* 422 */,
|
3945 |
+
/* 423 */,
|
3946 |
+
/* 424 */,
|
3947 |
+
/* 425 */,
|
3948 |
+
/* 426 */,
|
3949 |
+
/* 427 */,
|
3950 |
+
/* 428 */,
|
3951 |
+
/* 429 */,
|
3952 |
+
/* 430 */,
|
3953 |
+
/* 431 */,
|
3954 |
+
/* 432 */,
|
3955 |
+
/* 433 */,
|
3956 |
+
/* 434 */,
|
3957 |
+
/* 435 */,
|
3958 |
+
/* 436 */,
|
3959 |
+
/* 437 */,
|
3960 |
+
/* 438 */,
|
3961 |
+
/* 439 */,
|
3962 |
+
/* 440 */,
|
3963 |
+
/* 441 */,
|
3964 |
+
/* 442 */,
|
3965 |
+
/* 443 */,
|
3966 |
+
/* 444 */,
|
3967 |
+
/* 445 */,
|
3968 |
+
/* 446 */,
|
3969 |
+
/* 447 */,
|
3970 |
+
/* 448 */,
|
3971 |
+
/* 449 */,
|
3972 |
+
/* 450 */,
|
3973 |
+
/* 451 */,
|
3974 |
+
/* 452 */,
|
3975 |
+
/* 453 */,
|
3976 |
+
/* 454 */,
|
3977 |
+
/* 455 */,
|
3978 |
+
/* 456 */,
|
3979 |
+
/* 457 */,
|
3980 |
+
/* 458 */,
|
3981 |
+
/* 459 */,
|
3982 |
+
/* 460 */,
|
3983 |
+
/* 461 */,
|
3984 |
+
/* 462 */,
|
3985 |
+
/* 463 */,
|
3986 |
+
/* 464 */,
|
3987 |
+
/* 465 */,
|
3988 |
+
/* 466 */,
|
3989 |
+
/* 467 */,
|
3990 |
+
/* 468 */,
|
3991 |
+
/* 469 */,
|
3992 |
+
/* 470 */,
|
3993 |
+
/* 471 */,
|
3994 |
+
/* 472 */,
|
3995 |
+
/* 473 */
|
3996 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
3997 |
+
|
3998 |
+
"use strict";
|
3999 |
+
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
4000 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__store__ = __webpack_require__(191);
|
4001 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__components_formChooser__ = __webpack_require__(474);
|
4002 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__components_FormPreview__ = __webpack_require__(475);
|
4003 |
+
|
4004 |
+
//Import WordPress APIs
|
4005 |
+
var __ = wp.i18n.__;
|
4006 |
+
var registerBlockType = wp.blocks.registerBlockType;
|
4007 |
+
//Setup store;
|
4008 |
+
|
4009 |
+
|
4010 |
+
var _wp$data = wp.data,
|
4011 |
+
registerStore = _wp$data.registerStore,
|
4012 |
+
dispatch = _wp$data.dispatch;
|
4013 |
+
|
4014 |
+
var InspectorControls = wp.blocks.InspectorControls;
|
4015 |
+
var Placeholder = wp.components.Placeholder;
|
4016 |
+
|
4017 |
+
var formStore = registerStore(__WEBPACK_IMPORTED_MODULE_0__store__["a" /* CALDERA_FORMS_STORE_NAME */], __WEBPACK_IMPORTED_MODULE_0__store__["b" /* STORE */]);
|
4018 |
+
//Import CF components
|
4019 |
+
|
4020 |
+
|
4021 |
+
//Create block
|
4022 |
+
registerBlockType('calderaforms/cform', {
|
4023 |
+
title: __('Caldera Form', 'caldera-forms'),
|
4024 |
+
icon: 'feedback',
|
4025 |
+
category: 'common',
|
4026 |
+
attributes: {
|
4027 |
+
formId: {
|
4028 |
+
formId: 'string',
|
4029 |
+
default: 'false'
|
4030 |
+
}
|
4031 |
+
},
|
4032 |
+
edit: function edit(_ref) {
|
4033 |
+
var attributes = _ref.attributes,
|
4034 |
+
setAttributes = _ref.setAttributes,
|
4035 |
+
className = _ref.className,
|
4036 |
+
isSelected = _ref.isSelected,
|
4037 |
+
id = _ref.id;
|
4038 |
+
|
4039 |
+
/**
|
4040 |
+
* Utility function to load preview inside block
|
4041 |
+
*
|
4042 |
+
* @since 1.6.2
|
4043 |
+
*
|
4044 |
+
* @param {String} formId
|
4045 |
+
*/
|
4046 |
+
var loadPreview = function loadPreview(formId) {
|
4047 |
+
if ('false' !== formId && !formStore.getState().formPreviews.hasOwnProperty(formId)) {
|
4048 |
+
Object(__WEBPACK_IMPORTED_MODULE_0__store__["c" /* requestFormPreview */])(formStore.getState(), formId);
|
4049 |
+
}
|
4050 |
+
};
|
4051 |
+
|
4052 |
+
/**
|
4053 |
+
* Change handler for when form in block changes
|
4054 |
+
*
|
4055 |
+
* @since 1.6.2
|
4056 |
+
*
|
4057 |
+
* @param {String} newFormId
|
4058 |
+
*/
|
4059 |
+
var setCurrentForm = function setCurrentForm(newFormId) {
|
4060 |
+
setAttributes({ formId: newFormId });
|
4061 |
+
loadPreview(newFormId);
|
4062 |
+
};
|
4063 |
+
|
4064 |
+
//Preload preview
|
4065 |
+
if ('false' !== attributes.formId) {
|
4066 |
+
loadPreview(attributes.formId);
|
4067 |
+
}
|
4068 |
+
|
4069 |
+
return wp.element.createElement(
|
4070 |
+
"div",
|
4071 |
+
null,
|
4072 |
+
wp.element.createElement(
|
4073 |
+
InspectorControls,
|
4074 |
+
null,
|
4075 |
+
wp.element.createElement(__WEBPACK_IMPORTED_MODULE_1__components_formChooser__["a" /* FormChooserWithSelect */], {
|
4076 |
+
onChange: setCurrentForm,
|
4077 |
+
formId: attributes.formId
|
4078 |
+
})
|
4079 |
+
),
|
4080 |
+
'false' === attributes.formId && wp.element.createElement(
|
4081 |
+
Placeholder,
|
4082 |
+
{
|
4083 |
+
className: 'caldera-forms-form-chooser-placeholder',
|
4084 |
+
label: 'Caldera Form' },
|
4085 |
+
wp.element.createElement(__WEBPACK_IMPORTED_MODULE_1__components_formChooser__["a" /* FormChooserWithSelect */], {
|
4086 |
+
onChange: setCurrentForm,
|
4087 |
+
formId: attributes.formId
|
4088 |
+
})
|
4089 |
+
),
|
4090 |
+
'false' !== attributes.formId && wp.element.createElement(__WEBPACK_IMPORTED_MODULE_2__components_FormPreview__["a" /* FormPreviewWithSelect */], {
|
4091 |
+
formId: attributes.formId
|
4092 |
+
})
|
4093 |
+
);
|
4094 |
+
},
|
4095 |
+
|
4096 |
+
save: function save() {
|
4097 |
+
return null;
|
4098 |
+
}
|
4099 |
+
});
|
4100 |
+
|
4101 |
+
/***/ }),
|
4102 |
+
/* 474 */
|
4103 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
4104 |
+
|
4105 |
+
"use strict";
|
4106 |
+
/* unused harmony export FormChooser */
|
4107 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return FormChooserWithSelect; });
|
4108 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof__ = __webpack_require__(45);
|
4109 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof__);
|
4110 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__store__ = __webpack_require__(191);
|
4111 |
+
|
4112 |
+
var SelectControl = wp.components.SelectControl;
|
4113 |
+
|
4114 |
+
var __ = wp.i18n.__;
|
4115 |
+
|
4116 |
+
/**
|
4117 |
+
* Get ID of form
|
4118 |
+
*
|
4119 |
+
* @since 1.6.2
|
4120 |
+
*
|
4121 |
+
* @param {Object} form Form config
|
4122 |
+
* @return {*}
|
4123 |
+
*/
|
4124 |
+
|
4125 |
+
var getFormId = function getFormId(form) {
|
4126 |
+
if ('object' !== (typeof form === 'undefined' ? 'undefined' : __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof___default()(form))) {
|
4127 |
+
return '';
|
4128 |
+
}
|
4129 |
+
return form.hasOwnProperty('formId') ? form.formId : form.ID;
|
4130 |
+
};
|
4131 |
+
/**
|
4132 |
+
* Basic component to choose forms with
|
4133 |
+
*
|
4134 |
+
* @param props
|
4135 |
+
* @return {XML}
|
4136 |
+
* @constructor
|
4137 |
+
*/
|
4138 |
+
var FormChooser = function FormChooser(props) {
|
4139 |
+
var opts = props.forms;
|
4140 |
+
return wp.element.createElement(SelectControl, {
|
4141 |
+
className: 'caldera-forms-form-chooser',
|
4142 |
+
label: __('Choose A Form'),
|
4143 |
+
value: props.formId,
|
4144 |
+
options: opts.map(function (form) {
|
4145 |
+
return {
|
4146 |
+
value: getFormId(form),
|
4147 |
+
label: form.name
|
4148 |
+
};
|
4149 |
+
}),
|
4150 |
+
onChange: function onChange(newValue) {
|
4151 |
+
props.onChange(newValue);
|
4152 |
+
}
|
4153 |
+
});
|
4154 |
+
};
|
4155 |
+
|
4156 |
+
//Import wp.data's HOC
|
4157 |
+
var withSelect = wp.data.withSelect;
|
4158 |
+
|
4159 |
+
/**
|
4160 |
+
* Form chooser wrapped in form selector
|
4161 |
+
*/
|
4162 |
+
|
4163 |
+
var FormChooserWithSelect = withSelect(function (select, ownProps) {
|
4164 |
+
var _select = select(__WEBPACK_IMPORTED_MODULE_1__store__["a" /* CALDERA_FORMS_STORE_NAME */]),
|
4165 |
+
getForms = _select.getForms;
|
4166 |
+
|
4167 |
+
return {
|
4168 |
+
forms: getForms()
|
4169 |
+
};
|
4170 |
+
})(FormChooser);
|
4171 |
+
|
4172 |
+
/***/ }),
|
4173 |
+
/* 475 */
|
4174 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
4175 |
+
|
4176 |
+
"use strict";
|
4177 |
+
/* unused harmony export FormPreview */
|
4178 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return FormPreviewWithSelect; });
|
4179 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__store__ = __webpack_require__(191);
|
4180 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__functions_appendAssets__ = __webpack_require__(476);
|
4181 |
+
|
4182 |
+
|
4183 |
+
var withSelect = wp.data.withSelect;
|
4184 |
+
|
4185 |
+
var Spinner = wp.components.Spinner;
|
4186 |
+
|
4187 |
+
function createMarkup(previewHtml) {
|
4188 |
+
return { __html: previewHtml };
|
4189 |
+
}
|
4190 |
+
|
4191 |
+
/**
|
4192 |
+
* Render a form preview
|
4193 |
+
*
|
4194 |
+
* @since 1.6.2
|
4195 |
+
*
|
4196 |
+
* @param props
|
4197 |
+
* @return {XML}
|
4198 |
+
* @constructor
|
4199 |
+
*/
|
4200 |
+
var FormPreview = function FormPreview(props) {
|
4201 |
+
var className = 'caldera-forms-form-preview-' + props.formId;
|
4202 |
+
if (undefined !== props.preview && props.preview.html) {
|
4203 |
+
|
4204 |
+
Object(__WEBPACK_IMPORTED_MODULE_1__functions_appendAssets__["a" /* appendAssets */])(props.preview.css, props.preview.js);
|
4205 |
+
return wp.element.createElement("div", { className: className, dangerouslySetInnerHTML: createMarkup(props.preview.html) });
|
4206 |
+
} else {
|
4207 |
+
return wp.element.createElement(
|
4208 |
+
"div",
|
4209 |
+
{ className: className },
|
4210 |
+
wp.element.createElement(Spinner, null)
|
4211 |
+
);
|
4212 |
+
}
|
4213 |
+
};
|
4214 |
+
|
4215 |
+
/**
|
4216 |
+
* Wrap with data selectors
|
4217 |
+
*/
|
4218 |
+
var FormPreviewWithSelect = withSelect(function (select, ownProps) {
|
4219 |
+
var _select = select(__WEBPACK_IMPORTED_MODULE_0__store__["a" /* CALDERA_FORMS_STORE_NAME */]),
|
4220 |
+
getFormPreview = _select.getFormPreview,
|
4221 |
+
getForm = _select.getForm;
|
4222 |
+
|
4223 |
+
return {
|
4224 |
+
form: getForm(ownProps.formId),
|
4225 |
+
preview: getFormPreview(ownProps.formId)
|
4226 |
+
};
|
4227 |
+
})(FormPreview);
|
4228 |
+
|
4229 |
+
/***/ }),
|
4230 |
+
/* 476 */
|
4231 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
4232 |
+
|
4233 |
+
"use strict";
|
4234 |
+
/* harmony export (immutable) */ __webpack_exports__["a"] = appendAssets;
|
4235 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_keys__ = __webpack_require__(163);
|
4236 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_keys___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_keys__);
|
4237 |
+
|
4238 |
+
var assetsAppended = {
|
4239 |
+
css: [],
|
4240 |
+
js: []
|
4241 |
+
};
|
4242 |
+
|
4243 |
+
/**
|
4244 |
+
* Append CSS/JS files to DOM so forms look right
|
4245 |
+
*
|
4246 |
+
* @since 1.7.0
|
4247 |
+
* @param {Array} js
|
4248 |
+
* @param {Array} css
|
4249 |
+
*/
|
4250 |
+
function appendAssets(js, css) {
|
4251 |
+
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_keys___default()(css).forEach(function (key) {
|
4252 |
+
appendAsset('css', css[key], key);
|
4253 |
+
});
|
4254 |
+
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_keys___default()(js).forEach(function (key) {
|
4255 |
+
appendAsset('js', js[key], key);
|
4256 |
+
});
|
4257 |
+
}
|
4258 |
+
/**
|
4259 |
+
* Append CSS or JavaScript as needed if not already done
|
4260 |
+
*
|
4261 |
+
* @since 1.7.0
|
4262 |
+
*
|
4263 |
+
* @param {String} type
|
4264 |
+
* @param {String} url
|
4265 |
+
* @param {String} identifier
|
4266 |
+
*/
|
4267 |
+
function appendAsset(type, url, identifier) {
|
4268 |
+
|
4269 |
+
switch (type) {
|
4270 |
+
case 'css':
|
4271 |
+
if (-1 < assetsAppended.css.indexOf(identifier)) {
|
4272 |
+
var fileref = document.createElement("link");
|
4273 |
+
fileref.rel = "stylesheet";
|
4274 |
+
fileref.type = "text/css";
|
4275 |
+
fileref.href = url;
|
4276 |
+
fileref.id = identifier;
|
4277 |
+
document.getElementsByTagName("head")[0].appendChild(fileref);
|
4278 |
+
assetsAppended.css.push(identifier);
|
4279 |
+
}
|
4280 |
+
|
4281 |
+
break;
|
4282 |
+
case 'js':
|
4283 |
+
|
4284 |
+
if (-1 < assetsAppended.js.indexOf(identifier)) {
|
4285 |
+
var _fileref = document.createElement("script");
|
4286 |
+
_fileref.type = "text/javascript";
|
4287 |
+
_fileref.src = url;
|
4288 |
+
_fileref.id = identifier;
|
4289 |
+
document.getElementsByTagName("body")[0].appendChild(_fileref);
|
4290 |
+
assetsAppended.js.push(identifier);
|
4291 |
+
}
|
4292 |
+
}
|
4293 |
+
}
|
4294 |
+
|
4295 |
+
/***/ })
|
4296 |
+
/******/ ]);
|
4297 |
+
//# sourceMappingURL=index.min.js.map
|
clients/blocks/components/FormChooser.js
DELETED
@@ -1,60 +0,0 @@
|
|
1 |
-
const SelectControl = wp.components.SelectControl;
|
2 |
-
import {CALDERA_FORMS_STORE_NAME} from "../store";
|
3 |
-
const { __ } = wp.i18n;
|
4 |
-
|
5 |
-
/**
|
6 |
-
* Get ID of form
|
7 |
-
*
|
8 |
-
* @since 1.6.2
|
9 |
-
*
|
10 |
-
* @param {Object} form Form config
|
11 |
-
* @return {*}
|
12 |
-
*/
|
13 |
-
const getFormId = (form) => {
|
14 |
-
if( 'object' !== typeof form ){
|
15 |
-
return '';
|
16 |
-
}
|
17 |
-
return form.hasOwnProperty('formId' ) ? form.formId : form.ID;
|
18 |
-
};
|
19 |
-
/**
|
20 |
-
* Basic component to choose forms with
|
21 |
-
*
|
22 |
-
* @param props
|
23 |
-
* @return {XML}
|
24 |
-
* @constructor
|
25 |
-
*/
|
26 |
-
export const FormChooser = (props) => {
|
27 |
-
const opts = props.forms;
|
28 |
-
return (
|
29 |
-
<SelectControl
|
30 |
-
className={'caldera-forms-form-chooser'}
|
31 |
-
label={ __( 'Choose A Form' ) }
|
32 |
-
value={ props.formId }
|
33 |
-
options={ opts.map( (form) => ( {
|
34 |
-
value: getFormId(form),
|
35 |
-
label: form.name,
|
36 |
-
} ) ) }
|
37 |
-
onChange={ (newValue) => {props.onChange(newValue)} }
|
38 |
-
/>
|
39 |
-
)
|
40 |
-
};
|
41 |
-
|
42 |
-
//Import wp.data's HOC
|
43 |
-
const { withSelect } = wp.data;
|
44 |
-
|
45 |
-
/**
|
46 |
-
* Form chooser wrapped in form selector
|
47 |
-
*/
|
48 |
-
export const FormChooserWithSelect = withSelect( (select, ownProps ) => {
|
49 |
-
const { getForms } = select( CALDERA_FORMS_STORE_NAME);
|
50 |
-
return {
|
51 |
-
forms: getForms()
|
52 |
-
};
|
53 |
-
} )( FormChooser );
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
clients/blocks/components/FormPreview.js
DELETED
@@ -1,41 +0,0 @@
|
|
1 |
-
import {CALDERA_FORMS_STORE_NAME} from "../store";
|
2 |
-
import {appendAssets} from "../../functions/appendAssets";
|
3 |
-
const { withSelect } = wp.data;
|
4 |
-
const Spinner = wp.components.Spinner;
|
5 |
-
|
6 |
-
function createMarkup(previewHtml) {
|
7 |
-
return {__html: previewHtml};
|
8 |
-
}
|
9 |
-
|
10 |
-
/**
|
11 |
-
* Render a form preview
|
12 |
-
*
|
13 |
-
* @since 1.6.2
|
14 |
-
*
|
15 |
-
* @param props
|
16 |
-
* @return {XML}
|
17 |
-
* @constructor
|
18 |
-
*/
|
19 |
-
export const FormPreview = (props) => {
|
20 |
-
const className = 'caldera-forms-form-preview-' + props.formId;
|
21 |
-
if (undefined !== props.preview && props.preview.html ) {
|
22 |
-
|
23 |
-
appendAssets(props.preview.css, props.preview.js);
|
24 |
-
return <div className={className} dangerouslySetInnerHTML={createMarkup(props.preview.html)}/>;
|
25 |
-
} else {
|
26 |
-
return <div className={className}><Spinner /></div>;
|
27 |
-
}
|
28 |
-
};
|
29 |
-
|
30 |
-
|
31 |
-
/**
|
32 |
-
* Wrap with data selectors
|
33 |
-
*/
|
34 |
-
export const FormPreviewWithSelect = withSelect( (select, ownProps ) => {
|
35 |
-
const { getFormPreview,getForm } = select( CALDERA_FORMS_STORE_NAME);
|
36 |
-
return {
|
37 |
-
form: getForm(ownProps.formId),
|
38 |
-
preview: getFormPreview(ownProps.formId),
|
39 |
-
};
|
40 |
-
} )( FormPreview );
|
41 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
clients/blocks/index.js
DELETED
@@ -1,88 +0,0 @@
|
|
1 |
-
|
2 |
-
//Import WordPress APIs
|
3 |
-
const { __ } = wp.i18n;
|
4 |
-
const { registerBlockType } = wp.blocks;
|
5 |
-
//Setup store;
|
6 |
-
import {CALDERA_FORMS_STORE_NAME,STORE,SET_CURRENT_FORM_ID,requestFormPreview} from "./store";
|
7 |
-
const { registerStore, dispatch } = wp.data;
|
8 |
-
const InspectorControls = wp.blocks.InspectorControls;
|
9 |
-
const {Placeholder} = wp.components;
|
10 |
-
const formStore = registerStore(CALDERA_FORMS_STORE_NAME,STORE);
|
11 |
-
//Import CF components
|
12 |
-
import {FormChooserWithSelect} from "./components/formChooser";
|
13 |
-
import {FormPreviewWithSelect} from "./components/FormPreview";
|
14 |
-
//Create block
|
15 |
-
registerBlockType( 'calderaforms/cform', {
|
16 |
-
title: __( 'Caldera Form', 'caldera-forms' ),
|
17 |
-
icon: 'feedback',
|
18 |
-
category: 'common',
|
19 |
-
attributes: {
|
20 |
-
formId: {
|
21 |
-
formId: 'string',
|
22 |
-
default: 'false',
|
23 |
-
}
|
24 |
-
},
|
25 |
-
edit({ attributes, setAttributes, className, isSelected, id } ) {
|
26 |
-
/**
|
27 |
-
* Utility function to load preview inside block
|
28 |
-
*
|
29 |
-
* @since 1.6.2
|
30 |
-
*
|
31 |
-
* @param {String} formId
|
32 |
-
*/
|
33 |
-
const loadPreview = function (formId) {
|
34 |
-
if ('false' !== formId && !formStore.getState().formPreviews.hasOwnProperty(formId)) {
|
35 |
-
requestFormPreview(formStore.getState(), formId);
|
36 |
-
}
|
37 |
-
};
|
38 |
-
|
39 |
-
/**
|
40 |
-
* Change handler for when form in block changes
|
41 |
-
*
|
42 |
-
* @since 1.6.2
|
43 |
-
*
|
44 |
-
* @param {String} newFormId
|
45 |
-
*/
|
46 |
-
const setCurrentForm = (newFormId) => {
|
47 |
-
setAttributes({formId:newFormId});
|
48 |
-
loadPreview(newFormId);
|
49 |
-
};
|
50 |
-
|
51 |
-
//Preload preview
|
52 |
-
if( 'false' !== attributes.formId ){
|
53 |
-
loadPreview(attributes.formId);
|
54 |
-
}
|
55 |
-
|
56 |
-
return (
|
57 |
-
<div>
|
58 |
-
<InspectorControls>
|
59 |
-
<FormChooserWithSelect
|
60 |
-
onChange={setCurrentForm}
|
61 |
-
formId={attributes.formId}
|
62 |
-
/>
|
63 |
-
</InspectorControls>
|
64 |
-
|
65 |
-
{'false' === attributes.formId &&
|
66 |
-
<Placeholder
|
67 |
-
className={ 'caldera-forms-form-chooser-placeholder' }
|
68 |
-
label={ 'Caldera Form' } >
|
69 |
-
<FormChooserWithSelect
|
70 |
-
onChange={setCurrentForm}
|
71 |
-
formId={attributes.formId}
|
72 |
-
/>
|
73 |
-
|
74 |
-
</Placeholder>
|
75 |
-
}
|
76 |
-
|
77 |
-
{'false' !== attributes.formId &&
|
78 |
-
<FormPreviewWithSelect
|
79 |
-
formId={attributes.formId}
|
80 |
-
/>
|
81 |
-
}
|
82 |
-
</div>
|
83 |
-
);
|
84 |
-
},
|
85 |
-
save: function( { attributes, className } ) {
|
86 |
-
return null;
|
87 |
-
},
|
88 |
-
} );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
clients/blocks/store.js
DELETED
@@ -1,189 +0,0 @@
|
|
1 |
-
const { apiRequest } = wp;
|
2 |
-
const { registerStore, dispatch } = wp.data;
|
3 |
-
export const CALDERA_FORMS_STORE_NAME = 'caldera-forms/forms';
|
4 |
-
export const SET_FORMS = 'SET_FORMS';
|
5 |
-
export const SET_FORM = 'SET_FORM';
|
6 |
-
export const SET_CURRENT_FORM_ID = 'SET_CURRENT_FORM_ID';
|
7 |
-
export const ADD_FORM_PREVIEW = 'ADD_FORM_PREVIEW';
|
8 |
-
let printedData = 'object' === typeof CF_FORMS ? CF_FORMS : [];
|
9 |
-
let cfAdmin = 'object' === typeof CF_ADMIN ? CF_ADMIN : {};
|
10 |
-
|
11 |
-
/**
|
12 |
-
* Intial state
|
13 |
-
*
|
14 |
-
* @since 1.6.2
|
15 |
-
*
|
16 |
-
* @type {{forms, formPreviews: {}}}
|
17 |
-
*/
|
18 |
-
const DEFAULT_STATE = {
|
19 |
-
forms: printedData.forms,
|
20 |
-
formPreviews :{},
|
21 |
-
};
|
22 |
-
|
23 |
-
/**
|
24 |
-
* Check if a form has the provided ID
|
25 |
-
*
|
26 |
-
* @since 1.6.2
|
27 |
-
*
|
28 |
-
* @param {Object} form Form config
|
29 |
-
* @param {String} formId
|
30 |
-
* @return {boolean}
|
31 |
-
*/
|
32 |
-
const formHasId = ( form, formId ) => {
|
33 |
-
if( 'object' !== typeof form ){
|
34 |
-
return false;
|
35 |
-
}
|
36 |
-
if( form.hasOwnProperty('ID') ){
|
37 |
-
return formId === form.ID;
|
38 |
-
}
|
39 |
-
if( form.hasOwnProperty('formId') ){
|
40 |
-
return formId === form.formId;
|
41 |
-
}
|
42 |
-
return false;
|
43 |
-
};
|
44 |
-
|
45 |
-
/**
|
46 |
-
* Find form in state by Id
|
47 |
-
*
|
48 |
-
* @since 1.6.2
|
49 |
-
*
|
50 |
-
* @param {Object} state
|
51 |
-
* @param {String} formId
|
52 |
-
*/
|
53 |
-
const findFormById = (state, formId) => {
|
54 |
-
return state.forms.find(form => {
|
55 |
-
return formHasId(form,formId);
|
56 |
-
});
|
57 |
-
};
|
58 |
-
|
59 |
-
/**
|
60 |
-
* Find form index in state by Id
|
61 |
-
*
|
62 |
-
* @since 1.6.2
|
63 |
-
*
|
64 |
-
* @param {Object} state
|
65 |
-
* @param {String} formId
|
66 |
-
*/
|
67 |
-
const findFormIndexById = (state, formId) => {
|
68 |
-
return state.forms.findIndex(form => {
|
69 |
-
return formHasId(form,formId);
|
70 |
-
});
|
71 |
-
};
|
72 |
-
|
73 |
-
//Track requests for previews to prevent multiple while pending
|
74 |
-
let requestingPreviews = [];
|
75 |
-
/**
|
76 |
-
* Request form preview HTML from server
|
77 |
-
*
|
78 |
-
* @since 1.6.2
|
79 |
-
*
|
80 |
-
* @param {Object} state
|
81 |
-
* @param {String} formId
|
82 |
-
*/
|
83 |
-
export const requestFormPreview = (state,formId) => {
|
84 |
-
if( 'false' !== formId && requestingPreviews.includes(formId)){
|
85 |
-
return;
|
86 |
-
}
|
87 |
-
requestingPreviews.push(formId);
|
88 |
-
|
89 |
-
wp.apiRequest({
|
90 |
-
url: `${cfAdmin.api.form}${formId}?preview=true`,
|
91 |
-
method: 'GET',
|
92 |
-
cache: true
|
93 |
-
|
94 |
-
}).then( (r) => {
|
95 |
-
dispatch(CALDERA_FORMS_STORE_NAME).addFormPreview(formId, r);
|
96 |
-
} );
|
97 |
-
};
|
98 |
-
|
99 |
-
/**
|
100 |
-
* Caldera Forms Redux-store
|
101 |
-
*
|
102 |
-
* @since 1.6.2
|
103 |
-
*
|
104 |
-
* @type {{reducer: (function(*=, *)), actions: {setForm: (function(*=)), setForms: (function(*=)), addFormPreview: (function(*=, *=))}, selectors: {getForm: (function(*=, *=)), getForms: (function(*)), getFormPreview: (function(*, *=)), getFormPreviews: (function(*))}, resolvers: {getForm: (function(*, *): Promise)}}}
|
105 |
-
*/
|
106 |
-
export const STORE = {
|
107 |
-
reducer( state = DEFAULT_STATE, action ) {
|
108 |
-
switch ( action.type ) {
|
109 |
-
case SET_FORMS:
|
110 |
-
return {
|
111 |
-
...state,
|
112 |
-
forms: action.forms
|
113 |
-
};
|
114 |
-
case ADD_FORM_PREVIEW:
|
115 |
-
state.formPreviews[action.formId] = action.preview;
|
116 |
-
|
117 |
-
return {
|
118 |
-
...state,
|
119 |
-
formPreviews:state.formPreviews
|
120 |
-
};
|
121 |
-
case SET_FORM :
|
122 |
-
let forms = state.forms;
|
123 |
-
const index = findFormIndexById(state, action.form.ID );
|
124 |
-
if(-1 <= index){
|
125 |
-
forms.splice(index,1,action.form);
|
126 |
-
}else{
|
127 |
-
forms.push(action.form);
|
128 |
-
}
|
129 |
-
return {
|
130 |
-
...state,
|
131 |
-
forms: forms
|
132 |
-
};
|
133 |
-
|
134 |
-
}
|
135 |
-
|
136 |
-
return state;
|
137 |
-
},
|
138 |
-
|
139 |
-
actions: {
|
140 |
-
setForm(form){
|
141 |
-
return {
|
142 |
-
type: SET_FORM,
|
143 |
-
form: form
|
144 |
-
}
|
145 |
-
},
|
146 |
-
setForms( forms ) {
|
147 |
-
return {
|
148 |
-
type: SET_FORMS,
|
149 |
-
forms:forms
|
150 |
-
};
|
151 |
-
},
|
152 |
-
addFormPreview(formId,preview){
|
153 |
-
return {
|
154 |
-
type: ADD_FORM_PREVIEW,
|
155 |
-
formId: formId,
|
156 |
-
preview:preview
|
157 |
-
}
|
158 |
-
},
|
159 |
-
},
|
160 |
-
selectors: {
|
161 |
-
getForm( state, formId ) {
|
162 |
-
return findFormById(state, formId);
|
163 |
-
},
|
164 |
-
getForms( state ){
|
165 |
-
return state.forms;
|
166 |
-
},
|
167 |
-
getFormPreview( state,formId ){
|
168 |
-
return state.formPreviews.hasOwnProperty( formId )
|
169 |
-
?state.formPreviews[ formId ]
|
170 |
-
: '';
|
171 |
-
|
172 |
-
},
|
173 |
-
getFormPreviews(state){
|
174 |
-
return state.formPreviews;
|
175 |
-
}
|
176 |
-
},
|
177 |
-
resolvers: {
|
178 |
-
async getForm( state, formId ) {
|
179 |
-
const form = await wp.apiRequest({
|
180 |
-
url: `${cfAdmin.api.form}${formId}?preview=false`,
|
181 |
-
method: 'GET',
|
182 |
-
cache: true
|
183 |
-
|
184 |
-
} );
|
185 |
-
dispatch( CALDERA_FORMS_STORE_NAME ).setForm( form );
|
186 |
-
},
|
187 |
-
},
|
188 |
-
|
189 |
-
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
clients/functions/CalderaFormsButtonPulse.js
DELETED
@@ -1,59 +0,0 @@
|
|
1 |
-
//-- Do NOT use ES6 syntax here, since this is used in editor, which does not use babel --//
|
2 |
-
/**
|
3 |
-
* Makes arbitrary button pulse
|
4 |
-
*
|
5 |
-
* @since 1.5.0.9
|
6 |
-
*
|
7 |
-
* @param $btn The button as a jQuery object
|
8 |
-
* @constructor
|
9 |
-
*/
|
10 |
-
export default function CalderaFormsButtonPulse( $btn ){
|
11 |
-
|
12 |
-
var pulseEffect,
|
13 |
-
pulseLoop,
|
14 |
-
stopped = false;
|
15 |
-
|
16 |
-
/**
|
17 |
-
* Animates the pulse effect
|
18 |
-
*
|
19 |
-
* @since 1.5.0.9
|
20 |
-
*/
|
21 |
-
pulseEffect = function() {
|
22 |
-
$btn.animate({
|
23 |
-
opacity: 0.25
|
24 |
-
}, 500 , function() {
|
25 |
-
$btn.animate({
|
26 |
-
opacity: 1
|
27 |
-
}, 500 );
|
28 |
-
});
|
29 |
-
|
30 |
-
};
|
31 |
-
|
32 |
-
/**
|
33 |
-
* Starts the pulse effect loop
|
34 |
-
*
|
35 |
-
* @since 1.5.0.9
|
36 |
-
*/
|
37 |
-
this.startPulse = function() {
|
38 |
-
if( false === stopped ){
|
39 |
-
pulseLoop = setInterval( function(){
|
40 |
-
pulseEffect();
|
41 |
-
}, 1000 );
|
42 |
-
}
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
};
|
47 |
-
|
48 |
-
/**
|
49 |
-
* Ends the pulse effect loop
|
50 |
-
*
|
51 |
-
* @since 1.5.0.9
|
52 |
-
*/
|
53 |
-
this.stopPulse = function() {
|
54 |
-
stopped = true;
|
55 |
-
clearInterval(pulseLoop);
|
56 |
-
|
57 |
-
};
|
58 |
-
|
59 |
-
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
clients/functions/README.md
DELETED
@@ -1,12 +0,0 @@
|
|
1 |
-
# Shared Functions
|
2 |
-
|
3 |
-
This directory provides functions at solve cross-concerns.
|
4 |
-
|
5 |
-
- Each file SHOULD export one function.
|
6 |
-
|
7 |
-
## Naming
|
8 |
-
- Use the camelcase name of the function.
|
9 |
-
- Capitalize the first name of function if it is a constructor function.
|
10 |
-
- If you call the function with the new keyword, then it's probably a constructor functions.
|
11 |
-
- Josh likes constructor functions that encapsulated a chunk of UI that are provided all dependencies through the constructor.
|
12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
clients/functions/appendAssets.js
DELETED
@@ -1,58 +0,0 @@
|
|
1 |
-
const assetsAppended = {
|
2 |
-
css: [],
|
3 |
-
js: [],
|
4 |
-
};
|
5 |
-
|
6 |
-
/**
|
7 |
-
* Append CSS/JS files to DOM so forms look right
|
8 |
-
*
|
9 |
-
* @since 1.7.0
|
10 |
-
* @param {Array} js
|
11 |
-
* @param {Array} css
|
12 |
-
*/
|
13 |
-
export function appendAssets(js,css) {
|
14 |
-
Object.keys(css).forEach( key => {
|
15 |
-
appendAsset('css',css[key],key);
|
16 |
-
});
|
17 |
-
Object.keys(js).forEach( key => {
|
18 |
-
appendAsset('js',js[key],key);
|
19 |
-
});}
|
20 |
-
/**
|
21 |
-
* Append CSS or JavaScript as needed if not already done
|
22 |
-
*
|
23 |
-
* @since 1.7.0
|
24 |
-
*
|
25 |
-
* @param {String} type
|
26 |
-
* @param {String} url
|
27 |
-
* @param {String} identifier
|
28 |
-
*/
|
29 |
-
function appendAsset(type, url, identifier)
|
30 |
-
{
|
31 |
-
|
32 |
-
switch( type ){
|
33 |
-
case 'css' :
|
34 |
-
if ( -1 < assetsAppended.css.indexOf( identifier ) ) {
|
35 |
-
const fileref = document.createElement("link");
|
36 |
-
fileref.rel = "stylesheet";
|
37 |
-
fileref.type = "text/css";
|
38 |
-
fileref.href = url;
|
39 |
-
fileref.id = identifier;
|
40 |
-
document.getElementsByTagName("head")[0].appendChild(fileref);
|
41 |
-
assetsAppended.css.push(identifier);
|
42 |
-
|
43 |
-
}
|
44 |
-
|
45 |
-
break;
|
46 |
-
case 'js' :
|
47 |
-
|
48 |
-
if ( -1 < assetsAppended.js.indexOf( identifier ) ) {
|
49 |
-
const fileref = document.createElement("script");
|
50 |
-
fileref.type = "text/javascript";
|
51 |
-
fileref.src = url;
|
52 |
-
fileref.id = identifier;
|
53 |
-
document.getElementsByTagName("body")[0].appendChild(fileref);
|
54 |
-
assetsAppended.js.push(identifier);
|
55 |
-
}
|
56 |
-
}
|
57 |
-
|
58 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
clients/functions/bindBaldrickTriggers.js
DELETED
@@ -1,37 +0,0 @@
|
|
1 |
-
export function bindBaldrickTriggers($,adminAJAX) {
|
2 |
-
return function () {
|
3 |
-
$('.ajax-trigger').baldrick({
|
4 |
-
request: adminAJAX,
|
5 |
-
method: 'POST',
|
6 |
-
before: function (el, e) {
|
7 |
-
var clicked = $(el);
|
8 |
-
// check for a nonce
|
9 |
-
|
10 |
-
var nonce = $('#cf_toolbar_actions'),
|
11 |
-
referer = nonce.parent().find('[name="_wp_http_referer"]');
|
12 |
-
|
13 |
-
if (nonce.length && referer.length) {
|
14 |
-
clicked.data('cf_toolbar_actions', nonce.val());
|
15 |
-
clicked.data('_wp_http_referer', referer.val());
|
16 |
-
}
|
17 |
-
|
18 |
-
if (clicked.data('trigger')) {
|
19 |
-
e.preventDefault();
|
20 |
-
var trigger = $(clicked.data('trigger'));
|
21 |
-
|
22 |
-
trigger.trigger(( trigger.data('event') ? trigger.data('event') : 'click' ));
|
23 |
-
return false;
|
24 |
-
}
|
25 |
-
},
|
26 |
-
complete: function () {
|
27 |
-
// check for init function
|
28 |
-
$('.init_field_type[data-type]').each(function (k, v) {
|
29 |
-
var ftype = $(v);
|
30 |
-
if (typeof window[ftype.data('type') + '_init'] === 'function') {
|
31 |
-
window[ftype.data('type') + '_init'](ftype.prop('id'), ftype[0]);
|
32 |
-
}
|
33 |
-
});
|
34 |
-
}
|
35 |
-
});
|
36 |
-
};
|
37 |
-
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
clients/privacy/build/index.min.js
ADDED
@@ -0,0 +1,47194 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
this["calderaForms"] = this["calderaForms"] || {}; this["calderaForms"]["privacy"] =
|
2 |
+
/******/ (function(modules) { // webpackBootstrap
|
3 |
+
/******/ // The module cache
|
4 |
+
/******/ var installedModules = {};
|
5 |
+
/******/
|
6 |
+
/******/ // The require function
|
7 |
+
/******/ function __webpack_require__(moduleId) {
|
8 |
+
/******/
|
9 |
+
/******/ // Check if module is in cache
|
10 |
+
/******/ if(installedModules[moduleId]) {
|
11 |
+
/******/ return installedModules[moduleId].exports;
|
12 |
+
/******/ }
|
13 |
+
/******/ // Create a new module (and put it into the cache)
|
14 |
+
/******/ var module = installedModules[moduleId] = {
|
15 |
+
/******/ i: moduleId,
|
16 |
+
/******/ l: false,
|
17 |
+
/******/ exports: {}
|
18 |
+
/******/ };
|
19 |
+
/******/
|
20 |
+
/******/ // Execute the module function
|
21 |
+
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
22 |
+
/******/
|
23 |
+
/******/ // Flag the module as loaded
|
24 |
+
/******/ module.l = true;
|
25 |
+
/******/
|
26 |
+
/******/ // Return the exports of the module
|
27 |
+
/******/ return module.exports;
|
28 |
+
/******/ }
|
29 |
+
/******/
|
30 |
+
/******/
|
31 |
+
/******/ // expose the modules object (__webpack_modules__)
|
32 |
+
/******/ __webpack_require__.m = modules;
|
33 |
+
/******/
|
34 |
+
/******/ // expose the module cache
|
35 |
+
/******/ __webpack_require__.c = installedModules;
|
36 |
+
/******/
|
37 |
+
/******/ // define getter function for harmony exports
|
38 |
+
/******/ __webpack_require__.d = function(exports, name, getter) {
|
39 |
+
/******/ if(!__webpack_require__.o(exports, name)) {
|
40 |
+
/******/ Object.defineProperty(exports, name, {
|
41 |
+
/******/ configurable: false,
|
42 |
+
/******/ enumerable: true,
|
43 |
+
/******/ get: getter
|
44 |
+
/******/ });
|
45 |
+
/******/ }
|
46 |
+
/******/ };
|
47 |
+
/******/
|
48 |
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
49 |
+
/******/ __webpack_require__.n = function(module) {
|
50 |
+
/******/ var getter = module && module.__esModule ?
|
51 |
+
/******/ function getDefault() { return module['default']; } :
|
52 |
+
/******/ function getModuleExports() { return module; };
|
53 |
+
/******/ __webpack_require__.d(getter, 'a', getter);
|
54 |
+
/******/ return getter;
|
55 |
+
/******/ };
|
56 |
+
/******/
|
57 |
+
/******/ // Object.prototype.hasOwnProperty.call
|
58 |
+
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
59 |
+
/******/
|
60 |
+
/******/ // __webpack_public_path__
|
61 |
+
/******/ __webpack_require__.p = "";
|
62 |
+
/******/
|
63 |
+
/******/ // Load entry module and return exports
|
64 |
+
/******/ return __webpack_require__(__webpack_require__.s = 308);
|
65 |
+
/******/ })
|
66 |
+
/************************************************************************/
|
67 |
+
/******/ ([
|
68 |
+
/* 0 */
|
69 |
+
/***/ (function(module, exports, __webpack_require__) {
|
70 |
+
|
71 |
+
"use strict";
|
72 |
+
|
73 |
+
|
74 |
+
if (false) {
|
75 |
+
module.exports = require('./cjs/react.production.min.js');
|
76 |
+
} else {
|
77 |
+
module.exports = __webpack_require__(309);
|
78 |
+
}
|
79 |
+
|
80 |
+
|
81 |
+
/***/ }),
|
82 |
+
/* 1 */
|
83 |
+
/***/ (function(module, exports, __webpack_require__) {
|
84 |
+
|
85 |
+
"use strict";
|
86 |
+
|
87 |
+
|
88 |
+
exports.__esModule = true;
|
89 |
+
|
90 |
+
var _assign = __webpack_require__(85);
|
91 |
+
|
92 |
+
var _assign2 = _interopRequireDefault(_assign);
|
93 |
+
|
94 |
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
95 |
+
|
96 |
+
exports.default = _assign2.default || function (target) {
|
97 |
+
for (var i = 1; i < arguments.length; i++) {
|
98 |
+
var source = arguments[i];
|
99 |
+
|
100 |
+
for (var key in source) {
|
101 |
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
102 |
+
target[key] = source[key];
|
103 |
+
}
|
104 |
+
}
|
105 |
+
}
|
106 |
+
|
107 |
+
return target;
|
108 |
+
};
|
109 |
+
|
110 |
+
/***/ }),
|
111 |
+
/* 2 */
|
112 |
+
/***/ (function(module, exports, __webpack_require__) {
|
113 |
+
|
114 |
+
"use strict";
|
115 |
+
|
116 |
+
|
117 |
+
exports.__esModule = true;
|
118 |
+
|
119 |
+
exports.default = function (instance, Constructor) {
|
120 |
+
if (!(instance instanceof Constructor)) {
|
121 |
+
throw new TypeError("Cannot call a class as a function");
|
122 |
+
}
|
123 |
+
};
|
124 |
+
|
125 |
+
/***/ }),
|
126 |
+
/* 3 */
|
127 |
+
/***/ (function(module, exports, __webpack_require__) {
|
128 |
+
|
129 |
+
"use strict";
|
130 |
+
|
131 |
+
|
132 |
+
exports.__esModule = true;
|
133 |
+
|
134 |
+
var _typeof2 = __webpack_require__(45);
|
135 |
+
|
136 |
+
var _typeof3 = _interopRequireDefault(_typeof2);
|
137 |
+
|
138 |
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
139 |
+
|
140 |
+
exports.default = function (self, call) {
|
141 |
+
if (!self) {
|
142 |
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
143 |
+
}
|
144 |
+
|
145 |
+
return call && ((typeof call === "undefined" ? "undefined" : (0, _typeof3.default)(call)) === "object" || typeof call === "function") ? call : self;
|
146 |
+
};
|
147 |
+
|
148 |
+
/***/ }),
|
149 |
+
/* 4 */
|
150 |
+
/***/ (function(module, exports, __webpack_require__) {
|
151 |
+
|
152 |
+
"use strict";
|
153 |
+
|
154 |
+
|
155 |
+
exports.__esModule = true;
|
156 |
+
|
157 |
+
var _setPrototypeOf = __webpack_require__(351);
|
158 |
+
|
159 |
+
var _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf);
|
160 |
+
|
161 |
+
var _create = __webpack_require__(355);
|
162 |
+
|
163 |
+
var _create2 = _interopRequireDefault(_create);
|
164 |
+
|
165 |
+
var _typeof2 = __webpack_require__(45);
|
166 |
+
|
167 |
+
var _typeof3 = _interopRequireDefault(_typeof2);
|
168 |
+
|
169 |
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
170 |
+
|
171 |
+
exports.default = function (subClass, superClass) {
|
172 |
+
if (typeof superClass !== "function" && superClass !== null) {
|
173 |
+
throw new TypeError("Super expression must either be null or a function, not " + (typeof superClass === "undefined" ? "undefined" : (0, _typeof3.default)(superClass)));
|
174 |
+
}
|
175 |
+
|
176 |
+
subClass.prototype = (0, _create2.default)(superClass && superClass.prototype, {
|
177 |
+
constructor: {
|
178 |
+
value: subClass,
|
179 |
+
enumerable: false,
|
180 |
+
writable: true,
|
181 |
+
configurable: true
|
182 |
+
}
|
183 |
+
});
|
184 |
+
if (superClass) _setPrototypeOf2.default ? (0, _setPrototypeOf2.default)(subClass, superClass) : subClass.__proto__ = superClass;
|
185 |
+
};
|
186 |
+
|
187 |
+
/***/ }),
|
188 |
+
/* 5 */
|
189 |
+
/***/ (function(module, exports, __webpack_require__) {
|
190 |
+
|
191 |
+
/**
|
192 |
+
* Copyright (c) 2013-present, Facebook, Inc.
|
193 |
+
*
|
194 |
+
* This source code is licensed under the MIT license found in the
|
195 |
+
* LICENSE file in the root directory of this source tree.
|
196 |
+
*/
|
197 |
+
|
198 |
+
if (true) {
|
199 |
+
var REACT_ELEMENT_TYPE = (typeof Symbol === 'function' &&
|
200 |
+
Symbol.for &&
|
201 |
+
Symbol.for('react.element')) ||
|
202 |
+
0xeac7;
|
203 |
+
|
204 |
+
var isValidElement = function(object) {
|
205 |
+
return typeof object === 'object' &&
|
206 |
+
object !== null &&
|
207 |
+
object.$$typeof === REACT_ELEMENT_TYPE;
|
208 |
+
};
|
209 |
+
|
210 |
+
// By explicitly using `prop-types` you are opting into new development behavior.
|
211 |
+
// http://fb.me/prop-types-in-prod
|
212 |
+
var throwOnDirectAccess = true;
|
213 |
+
module.exports = __webpack_require__(314)(isValidElement, throwOnDirectAccess);
|
214 |
+
} else {
|
215 |
+
// By explicitly using `prop-types` you are opting into new production behavior.
|
216 |
+
// http://fb.me/prop-types-in-prod
|
217 |
+
module.exports = require('./factoryWithThrowingShims')();
|
218 |
+
}
|
219 |
+
|
220 |
+
|
221 |
+
/***/ }),
|
222 |
+
/* 6 */
|
223 |
+
/***/ (function(module, exports, __webpack_require__) {
|
224 |
+
|
225 |
+
"use strict";
|
226 |
+
|
227 |
+
|
228 |
+
exports.__esModule = true;
|
229 |
+
|
230 |
+
exports.default = function (obj, keys) {
|
231 |
+
var target = {};
|
232 |
+
|
233 |
+
for (var i in obj) {
|
234 |
+
if (keys.indexOf(i) >= 0) continue;
|
235 |
+
if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;
|
236 |
+
target[i] = obj[i];
|
237 |
+
}
|
238 |
+
|
239 |
+
return target;
|
240 |
+
};
|
241 |
+
|
242 |
+
/***/ }),
|
243 |
+
/* 7 */
|
244 |
+
/***/ (function(module, exports, __webpack_require__) {
|
245 |
+
|
246 |
+
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
|
247 |
+
Copyright (c) 2016 Jed Watson.
|
248 |
+
Licensed under the MIT License (MIT), see
|
249 |
+
http://jedwatson.github.io/classnames
|
250 |
+
*/
|
251 |
+
/* global define */
|
252 |
+
|
253 |
+
(function () {
|
254 |
+
'use strict';
|
255 |
+
|
256 |
+
var hasOwn = {}.hasOwnProperty;
|
257 |
+
|
258 |
+
function classNames () {
|
259 |
+
var classes = [];
|
260 |
+
|
261 |
+
for (var i = 0; i < arguments.length; i++) {
|
262 |
+
var arg = arguments[i];
|
263 |
+
if (!arg) continue;
|
264 |
+
|
265 |
+
var argType = typeof arg;
|
266 |
+
|
267 |
+
if (argType === 'string' || argType === 'number') {
|
268 |
+
classes.push(arg);
|
269 |
+
} else if (Array.isArray(arg)) {
|
270 |
+
classes.push(classNames.apply(null, arg));
|
271 |
+
} else if (argType === 'object') {
|
272 |
+
for (var key in arg) {
|
273 |
+
if (hasOwn.call(arg, key) && arg[key]) {
|
274 |
+
classes.push(key);
|
275 |
+
}
|
276 |
+
}
|
277 |
+
}
|
278 |
+
}
|
279 |
+
|
280 |
+
return classes.join(' ');
|
281 |
+
}
|
282 |
+
|
283 |
+
if (typeof module !== 'undefined' && module.exports) {
|
284 |
+
module.exports = classNames;
|
285 |
+
} else if (true) {
|
286 |
+
// register as 'classnames', consistent with npm package name
|
287 |
+
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () {
|
288 |
+
return classNames;
|
289 |
+
}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
|
290 |
+
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
|
291 |
+
} else {
|
292 |
+
window.classNames = classNames;
|
293 |
+
}
|
294 |
+
}());
|
295 |
+
|
296 |
+
|
297 |
+
/***/ }),
|
298 |
+
/* 8 */
|
299 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
300 |
+
|
301 |
+
"use strict";
|
302 |
+
/* harmony export (immutable) */ __webpack_exports__["e"] = prefix;
|
303 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return bsClass; });
|
304 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return bsStyles; });
|
305 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return bsSizes; });
|
306 |
+
/* harmony export (immutable) */ __webpack_exports__["d"] = getClassSet;
|
307 |
+
/* harmony export (immutable) */ __webpack_exports__["f"] = splitBsProps;
|
308 |
+
/* harmony export (immutable) */ __webpack_exports__["g"] = splitBsPropsAndOmit;
|
309 |
+
/* unused harmony export addStyle */
|
310 |
+
/* unused harmony export _curry */
|
311 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_entries__ = __webpack_require__(218);
|
312 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_entries___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_entries__);
|
313 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends__ = __webpack_require__(1);
|
314 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends__);
|
315 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_invariant__ = __webpack_require__(100);
|
316 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_invariant___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_invariant__);
|
317 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types__ = __webpack_require__(5);
|
318 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_prop_types__);
|
319 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__StyleConfig__ = __webpack_require__(32);
|
320 |
+
|
321 |
+
|
322 |
+
// TODO: The publicly exposed parts of this should be in lib/BootstrapUtils.
|
323 |
+
|
324 |
+
|
325 |
+
|
326 |
+
|
327 |
+
|
328 |
+
|
329 |
+
function curry(fn) {
|
330 |
+
return function () {
|
331 |
+
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
|
332 |
+
args[_key] = arguments[_key];
|
333 |
+
}
|
334 |
+
|
335 |
+
var last = args[args.length - 1];
|
336 |
+
if (typeof last === 'function') {
|
337 |
+
return fn.apply(undefined, args);
|
338 |
+
}
|
339 |
+
return function (Component) {
|
340 |
+
return fn.apply(undefined, args.concat([Component]));
|
341 |
+
};
|
342 |
+
};
|
343 |
+
}
|
344 |
+
|
345 |
+
function prefix(props, variant) {
|
346 |
+
var bsClass = (props.bsClass || '').trim();
|
347 |
+
!(bsClass != null) ? true ? __WEBPACK_IMPORTED_MODULE_2_invariant___default()(false, 'A `bsClass` prop is required for this component') : invariant(false) : void 0;
|
348 |
+
return bsClass + (variant ? '-' + variant : '');
|
349 |
+
}
|
350 |
+
|
351 |
+
var bsClass = curry(function (defaultClass, Component) {
|
352 |
+
var propTypes = Component.propTypes || (Component.propTypes = {});
|
353 |
+
var defaultProps = Component.defaultProps || (Component.defaultProps = {});
|
354 |
+
|
355 |
+
propTypes.bsClass = __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.string;
|
356 |
+
defaultProps.bsClass = defaultClass;
|
357 |
+
|
358 |
+
return Component;
|
359 |
+
});
|
360 |
+
|
361 |
+
var bsStyles = curry(function (styles, defaultStyle, Component) {
|
362 |
+
if (typeof defaultStyle !== 'string') {
|
363 |
+
Component = defaultStyle;
|
364 |
+
defaultStyle = undefined;
|
365 |
+
}
|
366 |
+
|
367 |
+
var existing = Component.STYLES || [];
|
368 |
+
var propTypes = Component.propTypes || {};
|
369 |
+
|
370 |
+
styles.forEach(function (style) {
|
371 |
+
if (existing.indexOf(style) === -1) {
|
372 |
+
existing.push(style);
|
373 |
+
}
|
374 |
+
});
|
375 |
+
|
376 |
+
var propType = __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOf(existing);
|
377 |
+
|
378 |
+
// expose the values on the propType function for documentation
|
379 |
+
Component.STYLES = existing;
|
380 |
+
propType._values = existing;
|
381 |
+
|
382 |
+
Component.propTypes = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, propTypes, {
|
383 |
+
bsStyle: propType
|
384 |
+
});
|
385 |
+
|
386 |
+
if (defaultStyle !== undefined) {
|
387 |
+
var defaultProps = Component.defaultProps || (Component.defaultProps = {});
|
388 |
+
defaultProps.bsStyle = defaultStyle;
|
389 |
+
}
|
390 |
+
|
391 |
+
return Component;
|
392 |
+
});
|
393 |
+
|
394 |
+
var bsSizes = curry(function (sizes, defaultSize, Component) {
|
395 |
+
if (typeof defaultSize !== 'string') {
|
396 |
+
Component = defaultSize;
|
397 |
+
defaultSize = undefined;
|
398 |
+
}
|
399 |
+
|
400 |
+
var existing = Component.SIZES || [];
|
401 |
+
var propTypes = Component.propTypes || {};
|
402 |
+
|
403 |
+
sizes.forEach(function (size) {
|
404 |
+
if (existing.indexOf(size) === -1) {
|
405 |
+
existing.push(size);
|
406 |
+
}
|
407 |
+
});
|
408 |
+
|
409 |
+
var values = [];
|
410 |
+
existing.forEach(function (size) {
|
411 |
+
var mappedSize = __WEBPACK_IMPORTED_MODULE_4__StyleConfig__["b" /* SIZE_MAP */][size];
|
412 |
+
if (mappedSize && mappedSize !== size) {
|
413 |
+
values.push(mappedSize);
|
414 |
+
}
|
415 |
+
|
416 |
+
values.push(size);
|
417 |
+
});
|
418 |
+
|
419 |
+
var propType = __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOf(values);
|
420 |
+
propType._values = values;
|
421 |
+
|
422 |
+
// expose the values on the propType function for documentation
|
423 |
+
Component.SIZES = existing;
|
424 |
+
|
425 |
+
Component.propTypes = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({}, propTypes, {
|
426 |
+
bsSize: propType
|
427 |
+
});
|
428 |
+
|
429 |
+
if (defaultSize !== undefined) {
|
430 |
+
if (!Component.defaultProps) {
|
431 |
+
Component.defaultProps = {};
|
432 |
+
}
|
433 |
+
Component.defaultProps.bsSize = defaultSize;
|
434 |
+
}
|
435 |
+
|
436 |
+
return Component;
|
437 |
+
});
|
438 |
+
|
439 |
+
function getClassSet(props) {
|
440 |
+
var _classes;
|
441 |
+
|
442 |
+
var classes = (_classes = {}, _classes[prefix(props)] = true, _classes);
|
443 |
+
|
444 |
+
if (props.bsSize) {
|
445 |
+
var bsSize = __WEBPACK_IMPORTED_MODULE_4__StyleConfig__["b" /* SIZE_MAP */][props.bsSize] || props.bsSize;
|
446 |
+
classes[prefix(props, bsSize)] = true;
|
447 |
+
}
|
448 |
+
|
449 |
+
if (props.bsStyle) {
|
450 |
+
classes[prefix(props, props.bsStyle)] = true;
|
451 |
+
}
|
452 |
+
|
453 |
+
return classes;
|
454 |
+
}
|
455 |
+
|
456 |
+
function getBsProps(props) {
|
457 |
+
return {
|
458 |
+
bsClass: props.bsClass,
|
459 |
+
bsSize: props.bsSize,
|
460 |
+
bsStyle: props.bsStyle,
|
461 |
+
bsRole: props.bsRole
|
462 |
+
};
|
463 |
+
}
|
464 |
+
|
465 |
+
function isBsProp(propName) {
|
466 |
+
return propName === 'bsClass' || propName === 'bsSize' || propName === 'bsStyle' || propName === 'bsRole';
|
467 |
+
}
|
468 |
+
|
469 |
+
function splitBsProps(props) {
|
470 |
+
var elementProps = {};
|
471 |
+
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_entries___default()(props).forEach(function (_ref) {
|
472 |
+
var propName = _ref[0],
|
473 |
+
propValue = _ref[1];
|
474 |
+
|
475 |
+
if (!isBsProp(propName)) {
|
476 |
+
elementProps[propName] = propValue;
|
477 |
+
}
|
478 |
+
});
|
479 |
+
|
480 |
+
return [getBsProps(props), elementProps];
|
481 |
+
}
|
482 |
+
|
483 |
+
function splitBsPropsAndOmit(props, omittedPropNames) {
|
484 |
+
var isOmittedProp = {};
|
485 |
+
omittedPropNames.forEach(function (propName) {
|
486 |
+
isOmittedProp[propName] = true;
|
487 |
+
});
|
488 |
+
|
489 |
+
var elementProps = {};
|
490 |
+
__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_entries___default()(props).forEach(function (_ref2) {
|
491 |
+
var propName = _ref2[0],
|
492 |
+
propValue = _ref2[1];
|
493 |
+
|
494 |
+
if (!isBsProp(propName) && !isOmittedProp[propName]) {
|
495 |
+
elementProps[propName] = propValue;
|
496 |
+
}
|
497 |
+
});
|
498 |
+
|
499 |
+
return [getBsProps(props), elementProps];
|
500 |
+
}
|
501 |
+
|
502 |
+
/**
|
503 |
+
* Add a style variant to a Component. Mutates the propTypes of the component
|
504 |
+
* in order to validate the new variant.
|
505 |
+
*/
|
506 |
+
function addStyle(Component) {
|
507 |
+
for (var _len2 = arguments.length, styleVariant = Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
508 |
+
styleVariant[_key2 - 1] = arguments[_key2];
|
509 |
+
}
|
510 |
+
|
511 |
+
bsStyles(styleVariant, Component);
|
512 |
+
}
|
513 |
+
|
514 |
+
var _curry = curry;
|
515 |
+
|
516 |
+
/***/ }),
|
517 |
+
/* 9 */
|
518 |
+
/***/ (function(module, exports) {
|
519 |
+
|
520 |
+
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
521 |
+
var global = module.exports = typeof window != 'undefined' && window.Math == Math
|
522 |
+
? window : typeof self != 'undefined' && self.Math == Math ? self
|
523 |
+
// eslint-disable-next-line no-new-func
|
524 |
+
: Function('return this')();
|
525 |
+
if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
|
526 |
+
|
527 |
+
|
528 |
+
/***/ }),
|
529 |
+
/* 10 */
|
530 |
+
/***/ (function(module, exports, __webpack_require__) {
|
531 |
+
|
532 |
+
var store = __webpack_require__(53)('wks');
|
533 |
+
var uid = __webpack_require__(38);
|
534 |
+
var Symbol = __webpack_require__(9).Symbol;
|
535 |
+
var USE_SYMBOL = typeof Symbol == 'function';
|
536 |
+
|
537 |
+
var $exports = module.exports = function (name) {
|
538 |
+
return store[name] || (store[name] =
|
539 |
+
USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));
|
540 |
+
};
|
541 |
+
|
542 |
+
$exports.store = store;
|
543 |
+
|
544 |
+
|
545 |
+
/***/ }),
|
546 |
+
/* 11 */,
|
547 |
+
/* 12 */
|
548 |
+
/***/ (function(module, exports) {
|
549 |
+
|
550 |
+
var core = module.exports = { version: '2.5.5' };
|
551 |
+
if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
|
552 |
+
|
553 |
+
|
554 |
+
/***/ }),
|
555 |
+
/* 13 */,
|
556 |
+
/* 14 */
|
557 |
+
/***/ (function(module, exports, __webpack_require__) {
|
558 |
+
|
559 |
+
var global = __webpack_require__(9);
|
560 |
+
var core = __webpack_require__(12);
|
561 |
+
var ctx = __webpack_require__(31);
|
562 |
+
var hide = __webpack_require__(20);
|
563 |
+
var has = __webpack_require__(22);
|
564 |
+
var PROTOTYPE = 'prototype';
|
565 |
+
|
566 |
+
var $export = function (type, name, source) {
|
567 |
+
var IS_FORCED = type & $export.F;
|
568 |
+
var IS_GLOBAL = type & $export.G;
|
569 |
+
var IS_STATIC = type & $export.S;
|
570 |
+
var IS_PROTO = type & $export.P;
|
571 |
+
var IS_BIND = type & $export.B;
|
572 |
+
var IS_WRAP = type & $export.W;
|
573 |
+
var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
|
574 |
+
var expProto = exports[PROTOTYPE];
|
575 |
+
var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE];
|
576 |
+
var key, own, out;
|
577 |
+
if (IS_GLOBAL) source = name;
|
578 |
+
for (key in source) {
|
579 |
+
// contains in native
|
580 |
+
own = !IS_FORCED && target && target[key] !== undefined;
|
581 |
+
if (own && has(exports, key)) continue;
|
582 |
+
// export native or passed
|
583 |
+
out = own ? target[key] : source[key];
|
584 |
+
// prevent global pollution for namespaces
|
585 |
+
exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]
|
586 |
+
// bind timers to global for call from export context
|
587 |
+
: IS_BIND && own ? ctx(out, global)
|
588 |
+
// wrap global constructors for prevent change them in library
|
589 |
+
: IS_WRAP && target[key] == out ? (function (C) {
|
590 |
+
var F = function (a, b, c) {
|
591 |
+
if (this instanceof C) {
|
592 |
+
switch (arguments.length) {
|
593 |
+
case 0: return new C();
|
594 |
+
case 1: return new C(a);
|
595 |
+
case 2: return new C(a, b);
|
596 |
+
} return new C(a, b, c);
|
597 |
+
} return C.apply(this, arguments);
|
598 |
+
};
|
599 |
+
F[PROTOTYPE] = C[PROTOTYPE];
|
600 |
+
return F;
|
601 |
+
// make static versions for prototype methods
|
602 |
+
})(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
|
603 |
+
// export proto methods to core.%CONSTRUCTOR%.methods.%NAME%
|
604 |
+
if (IS_PROTO) {
|
605 |
+
(exports.virtual || (exports.virtual = {}))[key] = out;
|
606 |
+
// export proto methods to core.%CONSTRUCTOR%.prototype.%NAME%
|
607 |
+
if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out);
|
608 |
+
}
|
609 |
+
}
|
610 |
+
};
|
611 |
+
// type bitmap
|
612 |
+
$export.F = 1; // forced
|
613 |
+
$export.G = 2; // global
|
614 |
+
$export.S = 4; // static
|
615 |
+
$export.P = 8; // proto
|
616 |
+
$export.B = 16; // bind
|
617 |
+
$export.W = 32; // wrap
|
618 |
+
$export.U = 64; // safe
|
619 |
+
$export.R = 128; // real proto method for `library`
|
620 |
+
module.exports = $export;
|
621 |
+
|
622 |
+
|
623 |
+
/***/ }),
|
624 |
+
/* 15 */
|
625 |
+
/***/ (function(module, exports, __webpack_require__) {
|
626 |
+
|
627 |
+
var isObject = __webpack_require__(18);
|
628 |
+
module.exports = function (it) {
|
629 |
+
if (!isObject(it)) throw TypeError(it + ' is not an object!');
|
630 |
+
return it;
|
631 |
+
};
|
632 |
+
|
633 |
+
|
634 |
+
/***/ }),
|
635 |
+
/* 16 */
|
636 |
+
/***/ (function(module, exports, __webpack_require__) {
|
637 |
+
|
638 |
+
"use strict";
|
639 |
+
|
640 |
+
|
641 |
+
Object.defineProperty(exports, "__esModule", {
|
642 |
+
value: true
|
643 |
+
});
|
644 |
+
|
645 |
+
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
646 |
+
|
647 |
+
var _react = __webpack_require__(0);
|
648 |
+
|
649 |
+
var _react2 = _interopRequireDefault(_react);
|
650 |
+
|
651 |
+
var _createChainableTypeChecker = __webpack_require__(153);
|
652 |
+
|
653 |
+
var _createChainableTypeChecker2 = _interopRequireDefault(_createChainableTypeChecker);
|
654 |
+
|
655 |
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
656 |
+
|
657 |
+
function elementType(props, propName, componentName, location, propFullName) {
|
658 |
+
var propValue = props[propName];
|
659 |
+
var propType = typeof propValue === 'undefined' ? 'undefined' : _typeof(propValue);
|
660 |
+
|
661 |
+
if (_react2.default.isValidElement(propValue)) {
|
662 |
+
return new Error('Invalid ' + location + ' `' + propFullName + '` of type ReactElement ' + ('supplied to `' + componentName + '`, expected an element type (a string ') + 'or a ReactClass).');
|
663 |
+
}
|
664 |
+
|
665 |
+
if (propType !== 'function' && propType !== 'string') {
|
666 |
+
return new Error('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected an element type (a string ') + 'or a ReactClass).');
|
667 |
+
}
|
668 |
+
|
669 |
+
return null;
|
670 |
+
}
|
671 |
+
|
672 |
+
exports.default = (0, _createChainableTypeChecker2.default)(elementType);
|
673 |
+
module.exports = exports['default'];
|
674 |
+
|
675 |
+
/***/ }),
|
676 |
+
/* 17 */
|
677 |
+
/***/ (function(module, exports, __webpack_require__) {
|
678 |
+
|
679 |
+
var anObject = __webpack_require__(15);
|
680 |
+
var IE8_DOM_DEFINE = __webpack_require__(67);
|
681 |
+
var toPrimitive = __webpack_require__(49);
|
682 |
+
var dP = Object.defineProperty;
|
683 |
+
|
684 |
+
exports.f = __webpack_require__(21) ? Object.defineProperty : function defineProperty(O, P, Attributes) {
|
685 |
+
anObject(O);
|
686 |
+
P = toPrimitive(P, true);
|
687 |
+
anObject(Attributes);
|
688 |
+
if (IE8_DOM_DEFINE) try {
|
689 |
+
return dP(O, P, Attributes);
|
690 |
+
} catch (e) { /* empty */ }
|
691 |
+
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
|
692 |
+
if ('value' in Attributes) O[P] = Attributes.value;
|
693 |
+
return O;
|
694 |
+
};
|
695 |
+
|
696 |
+
|
697 |
+
/***/ }),
|
698 |
+
/* 18 */
|
699 |
+
/***/ (function(module, exports) {
|
700 |
+
|
701 |
+
module.exports = function (it) {
|
702 |
+
return typeof it === 'object' ? it !== null : typeof it === 'function';
|
703 |
+
};
|
704 |
+
|
705 |
+
|
706 |
+
/***/ }),
|
707 |
+
/* 19 */,
|
708 |
+
/* 20 */
|
709 |
+
/***/ (function(module, exports, __webpack_require__) {
|
710 |
+
|
711 |
+
var dP = __webpack_require__(17);
|
712 |
+
var createDesc = __webpack_require__(33);
|
713 |
+
module.exports = __webpack_require__(21) ? function (object, key, value) {
|
714 |
+
return dP.f(object, key, createDesc(1, value));
|
715 |
+
} : function (object, key, value) {
|
716 |
+
object[key] = value;
|
717 |
+
return object;
|
718 |
+
};
|
719 |
+
|
720 |
+
|
721 |
+
/***/ }),
|
722 |
+
/* 21 */
|
723 |
+
/***/ (function(module, exports, __webpack_require__) {
|
724 |
+
|
725 |
+
// Thank's IE8 for his funny defineProperty
|
726 |
+
module.exports = !__webpack_require__(25)(function () {
|
727 |
+
return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
|
728 |
+
});
|
729 |
+
|
730 |
+
|
731 |
+
/***/ }),
|
732 |
+
/* 22 */
|
733 |
+
/***/ (function(module, exports) {
|
734 |
+
|
735 |
+
var hasOwnProperty = {}.hasOwnProperty;
|
736 |
+
module.exports = function (it, key) {
|
737 |
+
return hasOwnProperty.call(it, key);
|
738 |
+
};
|
739 |
+
|
740 |
+
|
741 |
+
/***/ }),
|
742 |
+
/* 23 */
|
743 |
+
/***/ (function(module, exports, __webpack_require__) {
|
744 |
+
|
745 |
+
// to indexed object, toObject with fallback for non-array-like ES3 strings
|
746 |
+
var IObject = __webpack_require__(69);
|
747 |
+
var defined = __webpack_require__(50);
|
748 |
+
module.exports = function (it) {
|
749 |
+
return IObject(defined(it));
|
750 |
+
};
|
751 |
+
|
752 |
+
|
753 |
+
/***/ }),
|
754 |
+
/* 24 */,
|
755 |
+
/* 25 */
|
756 |
+
/***/ (function(module, exports) {
|
757 |
+
|
758 |
+
module.exports = function (exec) {
|
759 |
+
try {
|
760 |
+
return !!exec();
|
761 |
+
} catch (e) {
|
762 |
+
return true;
|
763 |
+
}
|
764 |
+
};
|
765 |
+
|
766 |
+
|
767 |
+
/***/ }),
|
768 |
+
/* 26 */
|
769 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
770 |
+
|
771 |
+
"use strict";
|
772 |
+
/**
|
773 |
+
* Safe chained function
|
774 |
+
*
|
775 |
+
* Will only create a new function if needed,
|
776 |
+
* otherwise will pass back existing functions or null.
|
777 |
+
*
|
778 |
+
* @param {function} functions to chain
|
779 |
+
* @returns {function|null}
|
780 |
+
*/
|
781 |
+
function createChainedFunction() {
|
782 |
+
for (var _len = arguments.length, funcs = Array(_len), _key = 0; _key < _len; _key++) {
|
783 |
+
funcs[_key] = arguments[_key];
|
784 |
+
}
|
785 |
+
|
786 |
+
return funcs.filter(function (f) {
|
787 |
+
return f != null;
|
788 |
+
}).reduce(function (acc, f) {
|
789 |
+
if (typeof f !== 'function') {
|
790 |
+
throw new Error('Invalid Argument Type, must only provide functions, undefined, or null.');
|
791 |
+
}
|
792 |
+
|
793 |
+
if (acc === null) {
|
794 |
+
return f;
|
795 |
+
}
|
796 |
+
|
797 |
+
return function chainedFunction() {
|
798 |
+
for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
799 |
+
args[_key2] = arguments[_key2];
|
800 |
+
}
|
801 |
+
|
802 |
+
acc.apply(this, args);
|
803 |
+
f.apply(this, args);
|
804 |
+
};
|
805 |
+
}, null);
|
806 |
+
}
|
807 |
+
|
808 |
+
/* harmony default export */ __webpack_exports__["a"] = (createChainedFunction);
|
809 |
+
|
810 |
+
/***/ }),
|
811 |
+
/* 27 */
|
812 |
+
/***/ (function(module, exports, __webpack_require__) {
|
813 |
+
|
814 |
+
// 19.1.2.14 / 15.2.3.14 Object.keys(O)
|
815 |
+
var $keys = __webpack_require__(68);
|
816 |
+
var enumBugKeys = __webpack_require__(54);
|
817 |
+
|
818 |
+
module.exports = Object.keys || function keys(O) {
|
819 |
+
return $keys(O, enumBugKeys);
|
820 |
+
};
|
821 |
+
|
822 |
+
|
823 |
+
/***/ }),
|
824 |
+
/* 28 */
|
825 |
+
/***/ (function(module, exports) {
|
826 |
+
|
827 |
+
var toString = {}.toString;
|
828 |
+
|
829 |
+
module.exports = function (it) {
|
830 |
+
return toString.call(it).slice(8, -1);
|
831 |
+
};
|
832 |
+
|
833 |
+
|
834 |
+
/***/ }),
|
835 |
+
/* 29 */
|
836 |
+
/***/ (function(module, exports) {
|
837 |
+
|
838 |
+
module.exports = {};
|
839 |
+
|
840 |
+
|
841 |
+
/***/ }),
|
842 |
+
/* 30 */
|
843 |
+
/***/ (function(module, exports) {
|
844 |
+
|
845 |
+
var g;
|
846 |
+
|
847 |
+
// This works in non-strict mode
|
848 |
+
g = (function() {
|
849 |
+
return this;
|
850 |
+
})();
|
851 |
+
|
852 |
+
try {
|
853 |
+
// This works if eval is allowed (see CSP)
|
854 |
+
g = g || Function("return this")() || (1,eval)("this");
|
855 |
+
} catch(e) {
|
856 |
+
// This works if the window reference is available
|
857 |
+
if(typeof window === "object")
|
858 |
+
g = window;
|
859 |
+
}
|
860 |
+
|
861 |
+
// g can still be undefined, but nothing to do about it...
|
862 |
+
// We return undefined, instead of nothing here, so it's
|
863 |
+
// easier to handle this case. if(!global) { ...}
|
864 |
+
|
865 |
+
module.exports = g;
|
866 |
+
|
867 |
+
|
868 |
+
/***/ }),
|
869 |
+
/* 31 */
|
870 |
+
/***/ (function(module, exports, __webpack_require__) {
|
871 |
+
|
872 |
+
// optional / simple context binding
|
873 |
+
var aFunction = __webpack_require__(37);
|
874 |
+
module.exports = function (fn, that, length) {
|
875 |
+
aFunction(fn);
|
876 |
+
if (that === undefined) return fn;
|
877 |
+
switch (length) {
|
878 |
+
case 1: return function (a) {
|
879 |
+
return fn.call(that, a);
|
880 |
+
};
|
881 |
+
case 2: return function (a, b) {
|
882 |
+
return fn.call(that, a, b);
|
883 |
+
};
|
884 |
+
case 3: return function (a, b, c) {
|
885 |
+
return fn.call(that, a, b, c);
|
886 |
+
};
|
887 |
+
}
|
888 |
+
return function (/* ...args */) {
|
889 |
+
return fn.apply(that, arguments);
|
890 |
+
};
|
891 |
+
};
|
892 |
+
|
893 |
+
|
894 |
+
/***/ }),
|
895 |
+
/* 32 */
|
896 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
897 |
+
|
898 |
+
"use strict";
|
899 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return Size; });
|
900 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return SIZE_MAP; });
|
901 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return DEVICE_SIZES; });
|
902 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return State; });
|
903 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return Style; });
|
904 |
+
var Size = {
|
905 |
+
LARGE: 'large',
|
906 |
+
SMALL: 'small',
|
907 |
+
XSMALL: 'xsmall'
|
908 |
+
};
|
909 |
+
|
910 |
+
var SIZE_MAP = {
|
911 |
+
large: 'lg',
|
912 |
+
medium: 'md',
|
913 |
+
small: 'sm',
|
914 |
+
xsmall: 'xs',
|
915 |
+
lg: 'lg',
|
916 |
+
md: 'md',
|
917 |
+
sm: 'sm',
|
918 |
+
xs: 'xs'
|
919 |
+
};
|
920 |
+
|
921 |
+
var DEVICE_SIZES = ['lg', 'md', 'sm', 'xs'];
|
922 |
+
|
923 |
+
var State = {
|
924 |
+
SUCCESS: 'success',
|
925 |
+
WARNING: 'warning',
|
926 |
+
DANGER: 'danger',
|
927 |
+
INFO: 'info'
|
928 |
+
};
|
929 |
+
|
930 |
+
var Style = {
|
931 |
+
DEFAULT: 'default',
|
932 |
+
PRIMARY: 'primary',
|
933 |
+
LINK: 'link',
|
934 |
+
INVERSE: 'inverse'
|
935 |
+
};
|
936 |
+
|
937 |
+
/***/ }),
|
938 |
+
/* 33 */
|
939 |
+
/***/ (function(module, exports) {
|
940 |
+
|
941 |
+
module.exports = function (bitmap, value) {
|
942 |
+
return {
|
943 |
+
enumerable: !(bitmap & 1),
|
944 |
+
configurable: !(bitmap & 2),
|
945 |
+
writable: !(bitmap & 4),
|
946 |
+
value: value
|
947 |
+
};
|
948 |
+
};
|
949 |
+
|
950 |
+
|
951 |
+
/***/ }),
|
952 |
+
/* 34 */
|
953 |
+
/***/ (function(module, exports) {
|
954 |
+
|
955 |
+
exports.f = {}.propertyIsEnumerable;
|
956 |
+
|
957 |
+
|
958 |
+
/***/ }),
|
959 |
+
/* 35 */
|
960 |
+
/***/ (function(module, exports, __webpack_require__) {
|
961 |
+
|
962 |
+
"use strict";
|
963 |
+
|
964 |
+
|
965 |
+
function checkDCE() {
|
966 |
+
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
|
967 |
+
if (
|
968 |
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||
|
969 |
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'
|
970 |
+
) {
|
971 |
+
return;
|
972 |
+
}
|
973 |
+
if (true) {
|
974 |
+
// This branch is unreachable because this function is only called
|
975 |
+
// in production, but the condition is true only in development.
|
976 |
+
// Therefore if the branch is still here, dead code elimination wasn't
|
977 |
+
// properly applied.
|
978 |
+
// Don't change the message. React DevTools relies on it. Also make sure
|
979 |
+
// this message doesn't occur elsewhere in this function, or it will cause
|
980 |
+
// a false positive.
|
981 |
+
throw new Error('^_^');
|
982 |
+
}
|
983 |
+
try {
|
984 |
+
// Verify that the code above has been dead code eliminated (DCE'd).
|
985 |
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
|
986 |
+
} catch (err) {
|
987 |
+
// DevTools shouldn't crash React, no matter what.
|
988 |
+
// We should still report in case we break this code.
|
989 |
+
console.error(err);
|
990 |
+
}
|
991 |
+
}
|
992 |
+
|
993 |
+
if (false) {
|
994 |
+
// DCE check should happen before ReactDOM bundle executes so that
|
995 |
+
// DevTools can report bad minification during injection.
|
996 |
+
checkDCE();
|
997 |
+
module.exports = require('./cjs/react-dom.production.min.js');
|
998 |
+
} else {
|
999 |
+
module.exports = __webpack_require__(336);
|
1000 |
+
}
|
1001 |
+
|
1002 |
+
|
1003 |
+
/***/ }),
|
1004 |
+
/* 36 */,
|
1005 |
+
/* 37 */
|
1006 |
+
/***/ (function(module, exports) {
|
1007 |
+
|
1008 |
+
module.exports = function (it) {
|
1009 |
+
if (typeof it != 'function') throw TypeError(it + ' is not a function!');
|
1010 |
+
return it;
|
1011 |
+
};
|
1012 |
+
|
1013 |
+
|
1014 |
+
/***/ }),
|
1015 |
+
/* 38 */
|
1016 |
+
/***/ (function(module, exports) {
|
1017 |
+
|
1018 |
+
var id = 0;
|
1019 |
+
var px = Math.random();
|
1020 |
+
module.exports = function (key) {
|
1021 |
+
return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
|
1022 |
+
};
|
1023 |
+
|
1024 |
+
|
1025 |
+
/***/ }),
|
1026 |
+
/* 39 */
|
1027 |
+
/***/ (function(module, exports) {
|
1028 |
+
|
1029 |
+
module.exports = true;
|
1030 |
+
|
1031 |
+
|
1032 |
+
/***/ }),
|
1033 |
+
/* 40 */
|
1034 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1035 |
+
|
1036 |
+
var def = __webpack_require__(17).f;
|
1037 |
+
var has = __webpack_require__(22);
|
1038 |
+
var TAG = __webpack_require__(10)('toStringTag');
|
1039 |
+
|
1040 |
+
module.exports = function (it, tag, stat) {
|
1041 |
+
if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
|
1042 |
+
};
|
1043 |
+
|
1044 |
+
|
1045 |
+
/***/ }),
|
1046 |
+
/* 41 */
|
1047 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1048 |
+
|
1049 |
+
"use strict";
|
1050 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
|
1051 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
|
1052 |
+
// TODO: This module should be ElementChildren, and should use named exports.
|
1053 |
+
|
1054 |
+
|
1055 |
+
|
1056 |
+
/**
|
1057 |
+
* Iterates through children that are typically specified as `props.children`,
|
1058 |
+
* but only maps over children that are "valid components".
|
1059 |
+
*
|
1060 |
+
* The mapFunction provided index will be normalised to the components mapped,
|
1061 |
+
* so an invalid component would not increase the index.
|
1062 |
+
*
|
1063 |
+
* @param {?*} children Children tree container.
|
1064 |
+
* @param {function(*, int)} func.
|
1065 |
+
* @param {*} context Context for func.
|
1066 |
+
* @return {object} Object containing the ordered map of results.
|
1067 |
+
*/
|
1068 |
+
function map(children, func, context) {
|
1069 |
+
var index = 0;
|
1070 |
+
|
1071 |
+
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.map(children, function (child) {
|
1072 |
+
if (!__WEBPACK_IMPORTED_MODULE_0_react___default.a.isValidElement(child)) {
|
1073 |
+
return child;
|
1074 |
+
}
|
1075 |
+
|
1076 |
+
return func.call(context, child, index++);
|
1077 |
+
});
|
1078 |
+
}
|
1079 |
+
|
1080 |
+
/**
|
1081 |
+
* Iterates through children that are "valid components".
|
1082 |
+
*
|
1083 |
+
* The provided forEachFunc(child, index) will be called for each
|
1084 |
+
* leaf child with the index reflecting the position relative to "valid components".
|
1085 |
+
*
|
1086 |
+
* @param {?*} children Children tree container.
|
1087 |
+
* @param {function(*, int)} func.
|
1088 |
+
* @param {*} context Context for context.
|
1089 |
+
*/
|
1090 |
+
function forEach(children, func, context) {
|
1091 |
+
var index = 0;
|
1092 |
+
|
1093 |
+
__WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.forEach(children, function (child) {
|
1094 |
+
if (!__WEBPACK_IMPORTED_MODULE_0_react___default.a.isValidElement(child)) {
|
1095 |
+
return;
|
1096 |
+
}
|
1097 |
+
|
1098 |
+
func.call(context, child, index++);
|
1099 |
+
});
|
1100 |
+
}
|
1101 |
+
|
1102 |
+
/**
|
1103 |
+
* Count the number of "valid components" in the Children container.
|
1104 |
+
*
|
1105 |
+
* @param {?*} children Children tree container.
|
1106 |
+
* @returns {number}
|
1107 |
+
*/
|
1108 |
+
function count(children) {
|
1109 |
+
var result = 0;
|
1110 |
+
|
1111 |
+
__WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.forEach(children, function (child) {
|
1112 |
+
if (!__WEBPACK_IMPORTED_MODULE_0_react___default.a.isValidElement(child)) {
|
1113 |
+
return;
|
1114 |
+
}
|
1115 |
+
|
1116 |
+
++result;
|
1117 |
+
});
|
1118 |
+
|
1119 |
+
return result;
|
1120 |
+
}
|
1121 |
+
|
1122 |
+
/**
|
1123 |
+
* Finds children that are typically specified as `props.children`,
|
1124 |
+
* but only iterates over children that are "valid components".
|
1125 |
+
*
|
1126 |
+
* The provided forEachFunc(child, index) will be called for each
|
1127 |
+
* leaf child with the index reflecting the position relative to "valid components".
|
1128 |
+
*
|
1129 |
+
* @param {?*} children Children tree container.
|
1130 |
+
* @param {function(*, int)} func.
|
1131 |
+
* @param {*} context Context for func.
|
1132 |
+
* @returns {array} of children that meet the func return statement
|
1133 |
+
*/
|
1134 |
+
function filter(children, func, context) {
|
1135 |
+
var index = 0;
|
1136 |
+
var result = [];
|
1137 |
+
|
1138 |
+
__WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.forEach(children, function (child) {
|
1139 |
+
if (!__WEBPACK_IMPORTED_MODULE_0_react___default.a.isValidElement(child)) {
|
1140 |
+
return;
|
1141 |
+
}
|
1142 |
+
|
1143 |
+
if (func.call(context, child, index++)) {
|
1144 |
+
result.push(child);
|
1145 |
+
}
|
1146 |
+
});
|
1147 |
+
|
1148 |
+
return result;
|
1149 |
+
}
|
1150 |
+
|
1151 |
+
function find(children, func, context) {
|
1152 |
+
var index = 0;
|
1153 |
+
var result = void 0;
|
1154 |
+
|
1155 |
+
__WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.forEach(children, function (child) {
|
1156 |
+
if (result) {
|
1157 |
+
return;
|
1158 |
+
}
|
1159 |
+
if (!__WEBPACK_IMPORTED_MODULE_0_react___default.a.isValidElement(child)) {
|
1160 |
+
return;
|
1161 |
+
}
|
1162 |
+
|
1163 |
+
if (func.call(context, child, index++)) {
|
1164 |
+
result = child;
|
1165 |
+
}
|
1166 |
+
});
|
1167 |
+
|
1168 |
+
return result;
|
1169 |
+
}
|
1170 |
+
|
1171 |
+
function every(children, func, context) {
|
1172 |
+
var index = 0;
|
1173 |
+
var result = true;
|
1174 |
+
|
1175 |
+
__WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.forEach(children, function (child) {
|
1176 |
+
if (!result) {
|
1177 |
+
return;
|
1178 |
+
}
|
1179 |
+
if (!__WEBPACK_IMPORTED_MODULE_0_react___default.a.isValidElement(child)) {
|
1180 |
+
return;
|
1181 |
+
}
|
1182 |
+
|
1183 |
+
if (!func.call(context, child, index++)) {
|
1184 |
+
result = false;
|
1185 |
+
}
|
1186 |
+
});
|
1187 |
+
|
1188 |
+
return result;
|
1189 |
+
}
|
1190 |
+
|
1191 |
+
function some(children, func, context) {
|
1192 |
+
var index = 0;
|
1193 |
+
var result = false;
|
1194 |
+
|
1195 |
+
__WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.forEach(children, function (child) {
|
1196 |
+
if (result) {
|
1197 |
+
return;
|
1198 |
+
}
|
1199 |
+
if (!__WEBPACK_IMPORTED_MODULE_0_react___default.a.isValidElement(child)) {
|
1200 |
+
return;
|
1201 |
+
}
|
1202 |
+
|
1203 |
+
if (func.call(context, child, index++)) {
|
1204 |
+
result = true;
|
1205 |
+
}
|
1206 |
+
});
|
1207 |
+
|
1208 |
+
return result;
|
1209 |
+
}
|
1210 |
+
|
1211 |
+
function toArray(children) {
|
1212 |
+
var result = [];
|
1213 |
+
|
1214 |
+
__WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.forEach(children, function (child) {
|
1215 |
+
if (!__WEBPACK_IMPORTED_MODULE_0_react___default.a.isValidElement(child)) {
|
1216 |
+
return;
|
1217 |
+
}
|
1218 |
+
|
1219 |
+
result.push(child);
|
1220 |
+
});
|
1221 |
+
|
1222 |
+
return result;
|
1223 |
+
}
|
1224 |
+
|
1225 |
+
/* harmony default export */ __webpack_exports__["a"] = ({
|
1226 |
+
map: map,
|
1227 |
+
forEach: forEach,
|
1228 |
+
count: count,
|
1229 |
+
find: find,
|
1230 |
+
filter: filter,
|
1231 |
+
every: every,
|
1232 |
+
some: some,
|
1233 |
+
toArray: toArray
|
1234 |
+
});
|
1235 |
+
|
1236 |
+
/***/ }),
|
1237 |
+
/* 42 */,
|
1238 |
+
/* 43 */,
|
1239 |
+
/* 44 */
|
1240 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1241 |
+
|
1242 |
+
"use strict";
|
1243 |
+
/**
|
1244 |
+
* Copyright 2014-2015, Facebook, Inc.
|
1245 |
+
* All rights reserved.
|
1246 |
+
*
|
1247 |
+
* This source code is licensed under the BSD-style license found in the
|
1248 |
+
* LICENSE file in the root directory of this source tree. An additional grant
|
1249 |
+
* of patent rights can be found in the PATENTS file in the same directory.
|
1250 |
+
*/
|
1251 |
+
|
1252 |
+
|
1253 |
+
|
1254 |
+
/**
|
1255 |
+
* Similar to invariant but only logs a warning if the condition is not met.
|
1256 |
+
* This can be used to log issues in development environments in critical
|
1257 |
+
* paths. Removing the logging code for production environments will keep the
|
1258 |
+
* same logic and follow the same code paths.
|
1259 |
+
*/
|
1260 |
+
|
1261 |
+
var warning = function() {};
|
1262 |
+
|
1263 |
+
if (true) {
|
1264 |
+
warning = function(condition, format, args) {
|
1265 |
+
var len = arguments.length;
|
1266 |
+
args = new Array(len > 2 ? len - 2 : 0);
|
1267 |
+
for (var key = 2; key < len; key++) {
|
1268 |
+
args[key - 2] = arguments[key];
|
1269 |
+
}
|
1270 |
+
if (format === undefined) {
|
1271 |
+
throw new Error(
|
1272 |
+
'`warning(condition, format, ...args)` requires a warning ' +
|
1273 |
+
'message argument'
|
1274 |
+
);
|
1275 |
+
}
|
1276 |
+
|
1277 |
+
if (format.length < 10 || (/^[s\W]*$/).test(format)) {
|
1278 |
+
throw new Error(
|
1279 |
+
'The warning format should be able to uniquely identify this ' +
|
1280 |
+
'warning. Please, use a more descriptive format than: ' + format
|
1281 |
+
);
|
1282 |
+
}
|
1283 |
+
|
1284 |
+
if (!condition) {
|
1285 |
+
var argIndex = 0;
|
1286 |
+
var message = 'Warning: ' +
|
1287 |
+
format.replace(/%s/g, function() {
|
1288 |
+
return args[argIndex++];
|
1289 |
+
});
|
1290 |
+
if (typeof console !== 'undefined') {
|
1291 |
+
console.error(message);
|
1292 |
+
}
|
1293 |
+
try {
|
1294 |
+
// This error was thrown as a convenience so that you can use this stack
|
1295 |
+
// to find the callsite that caused this warning to fire.
|
1296 |
+
throw new Error(message);
|
1297 |
+
} catch(x) {}
|
1298 |
+
}
|
1299 |
+
};
|
1300 |
+
}
|
1301 |
+
|
1302 |
+
module.exports = warning;
|
1303 |
+
|
1304 |
+
|
1305 |
+
/***/ }),
|
1306 |
+
/* 45 */
|
1307 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1308 |
+
|
1309 |
+
"use strict";
|
1310 |
+
|
1311 |
+
|
1312 |
+
exports.__esModule = true;
|
1313 |
+
|
1314 |
+
var _iterator = __webpack_require__(106);
|
1315 |
+
|
1316 |
+
var _iterator2 = _interopRequireDefault(_iterator);
|
1317 |
+
|
1318 |
+
var _symbol = __webpack_require__(115);
|
1319 |
+
|
1320 |
+
var _symbol2 = _interopRequireDefault(_symbol);
|
1321 |
+
|
1322 |
+
var _typeof = typeof _symbol2.default === "function" && typeof _iterator2.default === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj; };
|
1323 |
+
|
1324 |
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
1325 |
+
|
1326 |
+
exports.default = typeof _symbol2.default === "function" && _typeof(_iterator2.default) === "symbol" ? function (obj) {
|
1327 |
+
return typeof obj === "undefined" ? "undefined" : _typeof(obj);
|
1328 |
+
} : function (obj) {
|
1329 |
+
return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof(obj);
|
1330 |
+
};
|
1331 |
+
|
1332 |
+
/***/ }),
|
1333 |
+
/* 46 */,
|
1334 |
+
/* 47 */,
|
1335 |
+
/* 48 */
|
1336 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1337 |
+
|
1338 |
+
var isObject = __webpack_require__(18);
|
1339 |
+
var document = __webpack_require__(9).document;
|
1340 |
+
// typeof document.createElement is 'object' in old IE
|
1341 |
+
var is = isObject(document) && isObject(document.createElement);
|
1342 |
+
module.exports = function (it) {
|
1343 |
+
return is ? document.createElement(it) : {};
|
1344 |
+
};
|
1345 |
+
|
1346 |
+
|
1347 |
+
/***/ }),
|
1348 |
+
/* 49 */
|
1349 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1350 |
+
|
1351 |
+
// 7.1.1 ToPrimitive(input [, PreferredType])
|
1352 |
+
var isObject = __webpack_require__(18);
|
1353 |
+
// instead of the ES6 spec version, we didn't implement @@toPrimitive case
|
1354 |
+
// and the second argument - flag - preferred type is a string
|
1355 |
+
module.exports = function (it, S) {
|
1356 |
+
if (!isObject(it)) return it;
|
1357 |
+
var fn, val;
|
1358 |
+
if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
|
1359 |
+
if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;
|
1360 |
+
if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
|
1361 |
+
throw TypeError("Can't convert object to primitive value");
|
1362 |
+
};
|
1363 |
+
|
1364 |
+
|
1365 |
+
/***/ }),
|
1366 |
+
/* 50 */
|
1367 |
+
/***/ (function(module, exports) {
|
1368 |
+
|
1369 |
+
// 7.2.1 RequireObjectCoercible(argument)
|
1370 |
+
module.exports = function (it) {
|
1371 |
+
if (it == undefined) throw TypeError("Can't call method on " + it);
|
1372 |
+
return it;
|
1373 |
+
};
|
1374 |
+
|
1375 |
+
|
1376 |
+
/***/ }),
|
1377 |
+
/* 51 */
|
1378 |
+
/***/ (function(module, exports) {
|
1379 |
+
|
1380 |
+
// 7.1.4 ToInteger
|
1381 |
+
var ceil = Math.ceil;
|
1382 |
+
var floor = Math.floor;
|
1383 |
+
module.exports = function (it) {
|
1384 |
+
return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
|
1385 |
+
};
|
1386 |
+
|
1387 |
+
|
1388 |
+
/***/ }),
|
1389 |
+
/* 52 */
|
1390 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1391 |
+
|
1392 |
+
var shared = __webpack_require__(53)('keys');
|
1393 |
+
var uid = __webpack_require__(38);
|
1394 |
+
module.exports = function (key) {
|
1395 |
+
return shared[key] || (shared[key] = uid(key));
|
1396 |
+
};
|
1397 |
+
|
1398 |
+
|
1399 |
+
/***/ }),
|
1400 |
+
/* 53 */
|
1401 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1402 |
+
|
1403 |
+
var global = __webpack_require__(9);
|
1404 |
+
var SHARED = '__core-js_shared__';
|
1405 |
+
var store = global[SHARED] || (global[SHARED] = {});
|
1406 |
+
module.exports = function (key) {
|
1407 |
+
return store[key] || (store[key] = {});
|
1408 |
+
};
|
1409 |
+
|
1410 |
+
|
1411 |
+
/***/ }),
|
1412 |
+
/* 54 */
|
1413 |
+
/***/ (function(module, exports) {
|
1414 |
+
|
1415 |
+
// IE 8- don't enum bug keys
|
1416 |
+
module.exports = (
|
1417 |
+
'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
|
1418 |
+
).split(',');
|
1419 |
+
|
1420 |
+
|
1421 |
+
/***/ }),
|
1422 |
+
/* 55 */
|
1423 |
+
/***/ (function(module, exports) {
|
1424 |
+
|
1425 |
+
exports.f = Object.getOwnPropertySymbols;
|
1426 |
+
|
1427 |
+
|
1428 |
+
/***/ }),
|
1429 |
+
/* 56 */
|
1430 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1431 |
+
|
1432 |
+
// 7.1.13 ToObject(argument)
|
1433 |
+
var defined = __webpack_require__(50);
|
1434 |
+
module.exports = function (it) {
|
1435 |
+
return Object(defined(it));
|
1436 |
+
};
|
1437 |
+
|
1438 |
+
|
1439 |
+
/***/ }),
|
1440 |
+
/* 57 */
|
1441 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1442 |
+
|
1443 |
+
"use strict";
|
1444 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return SET_FORMS; });
|
1445 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return SET_FORM; });
|
1446 |
+
/* unused harmony export SET_CURRENT_FORM_ID */
|
1447 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ADD_FORM_PREVIEW; });
|
1448 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return DEFAULT_STATE; });
|
1449 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return actionFunctions; });
|
1450 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__api_cfAdmin__ = __webpack_require__(86);
|
1451 |
+
|
1452 |
+
|
1453 |
+
var SET_FORMS = 'SET_FORMS';
|
1454 |
+
var SET_FORM = 'SET_FORM';
|
1455 |
+
var SET_CURRENT_FORM_ID = 'SET_CURRENT_FORM_ID';
|
1456 |
+
var ADD_FORM_PREVIEW = 'ADD_FORM_PREVIEW';
|
1457 |
+
|
1458 |
+
/**
|
1459 |
+
* Intial state
|
1460 |
+
*
|
1461 |
+
* @since 1.6.2
|
1462 |
+
*
|
1463 |
+
* @type {{forms, formPreviews: {}}}
|
1464 |
+
*/
|
1465 |
+
var DEFAULT_STATE = {
|
1466 |
+
forms: __WEBPACK_IMPORTED_MODULE_0__api_cfAdmin__["b" /* printedData */].forms,
|
1467 |
+
formPreviews: {}
|
1468 |
+
};
|
1469 |
+
|
1470 |
+
/**
|
1471 |
+
* Shared redux(-like) action callbacks
|
1472 |
+
*
|
1473 |
+
* @type {{setForm(*=): *, setForms(*=): *, addFormPreview(*=, *=): *}}
|
1474 |
+
*/
|
1475 |
+
var actionFunctions = {
|
1476 |
+
setForm: function setForm(form) {
|
1477 |
+
return {
|
1478 |
+
type: SET_FORM,
|
1479 |
+
form: form
|
1480 |
+
};
|
1481 |
+
},
|
1482 |
+
setForms: function setForms(forms) {
|
1483 |
+
return {
|
1484 |
+
type: SET_FORMS,
|
1485 |
+
forms: forms
|
1486 |
+
};
|
1487 |
+
},
|
1488 |
+
addFormPreview: function addFormPreview(formId, preview) {
|
1489 |
+
return {
|
1490 |
+
type: ADD_FORM_PREVIEW,
|
1491 |
+
formId: formId,
|
1492 |
+
preview: preview
|
1493 |
+
};
|
1494 |
+
}
|
1495 |
+
};
|
1496 |
+
|
1497 |
+
/***/ }),
|
1498 |
+
/* 58 */
|
1499 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1500 |
+
|
1501 |
+
exports.f = __webpack_require__(10);
|
1502 |
+
|
1503 |
+
|
1504 |
+
/***/ }),
|
1505 |
+
/* 59 */
|
1506 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1507 |
+
|
1508 |
+
var global = __webpack_require__(9);
|
1509 |
+
var core = __webpack_require__(12);
|
1510 |
+
var LIBRARY = __webpack_require__(39);
|
1511 |
+
var wksExt = __webpack_require__(58);
|
1512 |
+
var defineProperty = __webpack_require__(17).f;
|
1513 |
+
module.exports = function (name) {
|
1514 |
+
var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {});
|
1515 |
+
if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) });
|
1516 |
+
};
|
1517 |
+
|
1518 |
+
|
1519 |
+
/***/ }),
|
1520 |
+
/* 60 */
|
1521 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1522 |
+
|
1523 |
+
"use strict";
|
1524 |
+
|
1525 |
+
// 25.4.1.5 NewPromiseCapability(C)
|
1526 |
+
var aFunction = __webpack_require__(37);
|
1527 |
+
|
1528 |
+
function PromiseCapability(C) {
|
1529 |
+
var resolve, reject;
|
1530 |
+
this.promise = new C(function ($$resolve, $$reject) {
|
1531 |
+
if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');
|
1532 |
+
resolve = $$resolve;
|
1533 |
+
reject = $$reject;
|
1534 |
+
});
|
1535 |
+
this.resolve = aFunction(resolve);
|
1536 |
+
this.reject = aFunction(reject);
|
1537 |
+
}
|
1538 |
+
|
1539 |
+
module.exports.f = function (C) {
|
1540 |
+
return new PromiseCapability(C);
|
1541 |
+
};
|
1542 |
+
|
1543 |
+
|
1544 |
+
/***/ }),
|
1545 |
+
/* 61 */
|
1546 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1547 |
+
|
1548 |
+
"use strict";
|
1549 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
|
1550 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
|
1551 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(6);
|
1552 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__);
|
1553 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(2);
|
1554 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__);
|
1555 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(3);
|
1556 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__);
|
1557 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(4);
|
1558 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__);
|
1559 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react__ = __webpack_require__(0);
|
1560 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react__);
|
1561 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types__ = __webpack_require__(5);
|
1562 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_prop_types__);
|
1563 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types_extra_lib_elementType__ = __webpack_require__(16);
|
1564 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_prop_types_extra_lib_elementType___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_prop_types_extra_lib_elementType__);
|
1565 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__utils_createChainedFunction__ = __webpack_require__(26);
|
1566 |
+
|
1567 |
+
|
1568 |
+
|
1569 |
+
|
1570 |
+
|
1571 |
+
|
1572 |
+
|
1573 |
+
|
1574 |
+
|
1575 |
+
|
1576 |
+
|
1577 |
+
var propTypes = {
|
1578 |
+
href: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string,
|
1579 |
+
onClick: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,
|
1580 |
+
onKeyDown: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,
|
1581 |
+
disabled: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool,
|
1582 |
+
role: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string,
|
1583 |
+
tabIndex: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string]),
|
1584 |
+
/**
|
1585 |
+
* this is sort of silly but needed for Button
|
1586 |
+
*/
|
1587 |
+
componentClass: __WEBPACK_IMPORTED_MODULE_7_prop_types_extra_lib_elementType___default.a
|
1588 |
+
};
|
1589 |
+
|
1590 |
+
var defaultProps = {
|
1591 |
+
componentClass: 'a'
|
1592 |
+
};
|
1593 |
+
|
1594 |
+
function isTrivialHref(href) {
|
1595 |
+
return !href || href.trim() === '#';
|
1596 |
+
}
|
1597 |
+
|
1598 |
+
/**
|
1599 |
+
* There are situations due to browser quirks or Bootstrap CSS where
|
1600 |
+
* an anchor tag is needed, when semantically a button tag is the
|
1601 |
+
* better choice. SafeAnchor ensures that when an anchor is used like a
|
1602 |
+
* button its accessible. It also emulates input `disabled` behavior for
|
1603 |
+
* links, which is usually desirable for Buttons, NavItems, MenuItems, etc.
|
1604 |
+
*/
|
1605 |
+
|
1606 |
+
var SafeAnchor = function (_React$Component) {
|
1607 |
+
__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default()(SafeAnchor, _React$Component);
|
1608 |
+
|
1609 |
+
function SafeAnchor(props, context) {
|
1610 |
+
__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()(this, SafeAnchor);
|
1611 |
+
|
1612 |
+
var _this = __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.call(this, props, context));
|
1613 |
+
|
1614 |
+
_this.handleClick = _this.handleClick.bind(_this);
|
1615 |
+
_this.handleKeyDown = _this.handleKeyDown.bind(_this);
|
1616 |
+
return _this;
|
1617 |
+
}
|
1618 |
+
|
1619 |
+
SafeAnchor.prototype.handleClick = function handleClick(event) {
|
1620 |
+
var _props = this.props,
|
1621 |
+
disabled = _props.disabled,
|
1622 |
+
href = _props.href,
|
1623 |
+
onClick = _props.onClick;
|
1624 |
+
|
1625 |
+
|
1626 |
+
if (disabled || isTrivialHref(href)) {
|
1627 |
+
event.preventDefault();
|
1628 |
+
}
|
1629 |
+
|
1630 |
+
if (disabled) {
|
1631 |
+
event.stopPropagation();
|
1632 |
+
return;
|
1633 |
+
}
|
1634 |
+
|
1635 |
+
if (onClick) {
|
1636 |
+
onClick(event);
|
1637 |
+
}
|
1638 |
+
};
|
1639 |
+
|
1640 |
+
SafeAnchor.prototype.handleKeyDown = function handleKeyDown(event) {
|
1641 |
+
if (event.key === ' ') {
|
1642 |
+
event.preventDefault();
|
1643 |
+
this.handleClick(event);
|
1644 |
+
}
|
1645 |
+
};
|
1646 |
+
|
1647 |
+
SafeAnchor.prototype.render = function render() {
|
1648 |
+
var _props2 = this.props,
|
1649 |
+
Component = _props2.componentClass,
|
1650 |
+
disabled = _props2.disabled,
|
1651 |
+
onKeyDown = _props2.onKeyDown,
|
1652 |
+
props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props2, ['componentClass', 'disabled', 'onKeyDown']);
|
1653 |
+
|
1654 |
+
if (isTrivialHref(props.href)) {
|
1655 |
+
props.role = props.role || 'button';
|
1656 |
+
// we want to make sure there is a href attribute on the node
|
1657 |
+
// otherwise, the cursor incorrectly styled (except with role='button')
|
1658 |
+
props.href = props.href || '#';
|
1659 |
+
}
|
1660 |
+
|
1661 |
+
if (disabled) {
|
1662 |
+
props.tabIndex = -1;
|
1663 |
+
props.style = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({ pointerEvents: 'none' }, props.style);
|
1664 |
+
}
|
1665 |
+
|
1666 |
+
return __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(Component, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, props, {
|
1667 |
+
onClick: this.handleClick,
|
1668 |
+
onKeyDown: Object(__WEBPACK_IMPORTED_MODULE_8__utils_createChainedFunction__["a" /* default */])(this.handleKeyDown, onKeyDown)
|
1669 |
+
}));
|
1670 |
+
};
|
1671 |
+
|
1672 |
+
return SafeAnchor;
|
1673 |
+
}(__WEBPACK_IMPORTED_MODULE_5_react___default.a.Component);
|
1674 |
+
|
1675 |
+
SafeAnchor.propTypes = propTypes;
|
1676 |
+
SafeAnchor.defaultProps = defaultProps;
|
1677 |
+
|
1678 |
+
/* harmony default export */ __webpack_exports__["a"] = (SafeAnchor);
|
1679 |
+
|
1680 |
+
/***/ }),
|
1681 |
+
/* 62 */,
|
1682 |
+
/* 63 */
|
1683 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1684 |
+
|
1685 |
+
// 7.1.15 ToLength
|
1686 |
+
var toInteger = __webpack_require__(51);
|
1687 |
+
var min = Math.min;
|
1688 |
+
module.exports = function (it) {
|
1689 |
+
return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
|
1690 |
+
};
|
1691 |
+
|
1692 |
+
|
1693 |
+
/***/ }),
|
1694 |
+
/* 64 */
|
1695 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1696 |
+
|
1697 |
+
"use strict";
|
1698 |
+
|
1699 |
+
var $at = __webpack_require__(108)(true);
|
1700 |
+
|
1701 |
+
// 21.1.3.27 String.prototype[@@iterator]()
|
1702 |
+
__webpack_require__(70)(String, 'String', function (iterated) {
|
1703 |
+
this._t = String(iterated); // target
|
1704 |
+
this._i = 0; // next index
|
1705 |
+
// 21.1.5.2.1 %StringIteratorPrototype%.next()
|
1706 |
+
}, function () {
|
1707 |
+
var O = this._t;
|
1708 |
+
var index = this._i;
|
1709 |
+
var point;
|
1710 |
+
if (index >= O.length) return { value: undefined, done: true };
|
1711 |
+
point = $at(O, index);
|
1712 |
+
this._i += point.length;
|
1713 |
+
return { value: point, done: false };
|
1714 |
+
});
|
1715 |
+
|
1716 |
+
|
1717 |
+
/***/ }),
|
1718 |
+
/* 65 */
|
1719 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1720 |
+
|
1721 |
+
// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
|
1722 |
+
var anObject = __webpack_require__(15);
|
1723 |
+
var dPs = __webpack_require__(110);
|
1724 |
+
var enumBugKeys = __webpack_require__(54);
|
1725 |
+
var IE_PROTO = __webpack_require__(52)('IE_PROTO');
|
1726 |
+
var Empty = function () { /* empty */ };
|
1727 |
+
var PROTOTYPE = 'prototype';
|
1728 |
+
|
1729 |
+
// Create object with fake `null` prototype: use iframe Object with cleared prototype
|
1730 |
+
var createDict = function () {
|
1731 |
+
// Thrash, waste and sodomy: IE GC bug
|
1732 |
+
var iframe = __webpack_require__(48)('iframe');
|
1733 |
+
var i = enumBugKeys.length;
|
1734 |
+
var lt = '<';
|
1735 |
+
var gt = '>';
|
1736 |
+
var iframeDocument;
|
1737 |
+
iframe.style.display = 'none';
|
1738 |
+
__webpack_require__(72).appendChild(iframe);
|
1739 |
+
iframe.src = 'javascript:'; // eslint-disable-line no-script-url
|
1740 |
+
// createDict = iframe.contentWindow.Object;
|
1741 |
+
// html.removeChild(iframe);
|
1742 |
+
iframeDocument = iframe.contentWindow.document;
|
1743 |
+
iframeDocument.open();
|
1744 |
+
iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
|
1745 |
+
iframeDocument.close();
|
1746 |
+
createDict = iframeDocument.F;
|
1747 |
+
while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
|
1748 |
+
return createDict();
|
1749 |
+
};
|
1750 |
+
|
1751 |
+
module.exports = Object.create || function create(O, Properties) {
|
1752 |
+
var result;
|
1753 |
+
if (O !== null) {
|
1754 |
+
Empty[PROTOTYPE] = anObject(O);
|
1755 |
+
result = new Empty();
|
1756 |
+
Empty[PROTOTYPE] = null;
|
1757 |
+
// add "__proto__" for Object.getPrototypeOf polyfill
|
1758 |
+
result[IE_PROTO] = O;
|
1759 |
+
} else result = createDict();
|
1760 |
+
return Properties === undefined ? result : dPs(result, Properties);
|
1761 |
+
};
|
1762 |
+
|
1763 |
+
|
1764 |
+
/***/ }),
|
1765 |
+
/* 66 */,
|
1766 |
+
/* 67 */
|
1767 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1768 |
+
|
1769 |
+
module.exports = !__webpack_require__(21) && !__webpack_require__(25)(function () {
|
1770 |
+
return Object.defineProperty(__webpack_require__(48)('div'), 'a', { get: function () { return 7; } }).a != 7;
|
1771 |
+
});
|
1772 |
+
|
1773 |
+
|
1774 |
+
/***/ }),
|
1775 |
+
/* 68 */
|
1776 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1777 |
+
|
1778 |
+
var has = __webpack_require__(22);
|
1779 |
+
var toIObject = __webpack_require__(23);
|
1780 |
+
var arrayIndexOf = __webpack_require__(104)(false);
|
1781 |
+
var IE_PROTO = __webpack_require__(52)('IE_PROTO');
|
1782 |
+
|
1783 |
+
module.exports = function (object, names) {
|
1784 |
+
var O = toIObject(object);
|
1785 |
+
var i = 0;
|
1786 |
+
var result = [];
|
1787 |
+
var key;
|
1788 |
+
for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);
|
1789 |
+
// Don't enum bug & hidden keys
|
1790 |
+
while (names.length > i) if (has(O, key = names[i++])) {
|
1791 |
+
~arrayIndexOf(result, key) || result.push(key);
|
1792 |
+
}
|
1793 |
+
return result;
|
1794 |
+
};
|
1795 |
+
|
1796 |
+
|
1797 |
+
/***/ }),
|
1798 |
+
/* 69 */
|
1799 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1800 |
+
|
1801 |
+
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
1802 |
+
var cof = __webpack_require__(28);
|
1803 |
+
// eslint-disable-next-line no-prototype-builtins
|
1804 |
+
module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
|
1805 |
+
return cof(it) == 'String' ? it.split('') : Object(it);
|
1806 |
+
};
|
1807 |
+
|
1808 |
+
|
1809 |
+
/***/ }),
|
1810 |
+
/* 70 */
|
1811 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1812 |
+
|
1813 |
+
"use strict";
|
1814 |
+
|
1815 |
+
var LIBRARY = __webpack_require__(39);
|
1816 |
+
var $export = __webpack_require__(14);
|
1817 |
+
var redefine = __webpack_require__(71);
|
1818 |
+
var hide = __webpack_require__(20);
|
1819 |
+
var Iterators = __webpack_require__(29);
|
1820 |
+
var $iterCreate = __webpack_require__(109);
|
1821 |
+
var setToStringTag = __webpack_require__(40);
|
1822 |
+
var getPrototypeOf = __webpack_require__(111);
|
1823 |
+
var ITERATOR = __webpack_require__(10)('iterator');
|
1824 |
+
var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`
|
1825 |
+
var FF_ITERATOR = '@@iterator';
|
1826 |
+
var KEYS = 'keys';
|
1827 |
+
var VALUES = 'values';
|
1828 |
+
|
1829 |
+
var returnThis = function () { return this; };
|
1830 |
+
|
1831 |
+
module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {
|
1832 |
+
$iterCreate(Constructor, NAME, next);
|
1833 |
+
var getMethod = function (kind) {
|
1834 |
+
if (!BUGGY && kind in proto) return proto[kind];
|
1835 |
+
switch (kind) {
|
1836 |
+
case KEYS: return function keys() { return new Constructor(this, kind); };
|
1837 |
+
case VALUES: return function values() { return new Constructor(this, kind); };
|
1838 |
+
} return function entries() { return new Constructor(this, kind); };
|
1839 |
+
};
|
1840 |
+
var TAG = NAME + ' Iterator';
|
1841 |
+
var DEF_VALUES = DEFAULT == VALUES;
|
1842 |
+
var VALUES_BUG = false;
|
1843 |
+
var proto = Base.prototype;
|
1844 |
+
var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];
|
1845 |
+
var $default = $native || getMethod(DEFAULT);
|
1846 |
+
var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;
|
1847 |
+
var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;
|
1848 |
+
var methods, key, IteratorPrototype;
|
1849 |
+
// Fix native
|
1850 |
+
if ($anyNative) {
|
1851 |
+
IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));
|
1852 |
+
if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {
|
1853 |
+
// Set @@toStringTag to native iterators
|
1854 |
+
setToStringTag(IteratorPrototype, TAG, true);
|
1855 |
+
// fix for some old engines
|
1856 |
+
if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis);
|
1857 |
+
}
|
1858 |
+
}
|
1859 |
+
// fix Array#{values, @@iterator}.name in V8 / FF
|
1860 |
+
if (DEF_VALUES && $native && $native.name !== VALUES) {
|
1861 |
+
VALUES_BUG = true;
|
1862 |
+
$default = function values() { return $native.call(this); };
|
1863 |
+
}
|
1864 |
+
// Define iterator
|
1865 |
+
if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {
|
1866 |
+
hide(proto, ITERATOR, $default);
|
1867 |
+
}
|
1868 |
+
// Plug for library
|
1869 |
+
Iterators[NAME] = $default;
|
1870 |
+
Iterators[TAG] = returnThis;
|
1871 |
+
if (DEFAULT) {
|
1872 |
+
methods = {
|
1873 |
+
values: DEF_VALUES ? $default : getMethod(VALUES),
|
1874 |
+
keys: IS_SET ? $default : getMethod(KEYS),
|
1875 |
+
entries: $entries
|
1876 |
+
};
|
1877 |
+
if (FORCED) for (key in methods) {
|
1878 |
+
if (!(key in proto)) redefine(proto, key, methods[key]);
|
1879 |
+
} else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);
|
1880 |
+
}
|
1881 |
+
return methods;
|
1882 |
+
};
|
1883 |
+
|
1884 |
+
|
1885 |
+
/***/ }),
|
1886 |
+
/* 71 */
|
1887 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1888 |
+
|
1889 |
+
module.exports = __webpack_require__(20);
|
1890 |
+
|
1891 |
+
|
1892 |
+
/***/ }),
|
1893 |
+
/* 72 */
|
1894 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1895 |
+
|
1896 |
+
var document = __webpack_require__(9).document;
|
1897 |
+
module.exports = document && document.documentElement;
|
1898 |
+
|
1899 |
+
|
1900 |
+
/***/ }),
|
1901 |
+
/* 73 */
|
1902 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1903 |
+
|
1904 |
+
__webpack_require__(112);
|
1905 |
+
var global = __webpack_require__(9);
|
1906 |
+
var hide = __webpack_require__(20);
|
1907 |
+
var Iterators = __webpack_require__(29);
|
1908 |
+
var TO_STRING_TAG = __webpack_require__(10)('toStringTag');
|
1909 |
+
|
1910 |
+
var DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' +
|
1911 |
+
'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' +
|
1912 |
+
'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' +
|
1913 |
+
'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' +
|
1914 |
+
'TextTrackList,TouchList').split(',');
|
1915 |
+
|
1916 |
+
for (var i = 0; i < DOMIterables.length; i++) {
|
1917 |
+
var NAME = DOMIterables[i];
|
1918 |
+
var Collection = global[NAME];
|
1919 |
+
var proto = Collection && Collection.prototype;
|
1920 |
+
if (proto && !proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);
|
1921 |
+
Iterators[NAME] = Iterators.Array;
|
1922 |
+
}
|
1923 |
+
|
1924 |
+
|
1925 |
+
/***/ }),
|
1926 |
+
/* 74 */
|
1927 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1928 |
+
|
1929 |
+
// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
|
1930 |
+
var $keys = __webpack_require__(68);
|
1931 |
+
var hiddenKeys = __webpack_require__(54).concat('length', 'prototype');
|
1932 |
+
|
1933 |
+
exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
1934 |
+
return $keys(O, hiddenKeys);
|
1935 |
+
};
|
1936 |
+
|
1937 |
+
|
1938 |
+
/***/ }),
|
1939 |
+
/* 75 */
|
1940 |
+
/***/ (function(module, exports) {
|
1941 |
+
|
1942 |
+
|
1943 |
+
|
1944 |
+
/***/ }),
|
1945 |
+
/* 76 */
|
1946 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1947 |
+
|
1948 |
+
// getting tag from 19.1.3.6 Object.prototype.toString()
|
1949 |
+
var cof = __webpack_require__(28);
|
1950 |
+
var TAG = __webpack_require__(10)('toStringTag');
|
1951 |
+
// ES3 wrong here
|
1952 |
+
var ARG = cof(function () { return arguments; }()) == 'Arguments';
|
1953 |
+
|
1954 |
+
// fallback for IE11 Script Access Denied error
|
1955 |
+
var tryGet = function (it, key) {
|
1956 |
+
try {
|
1957 |
+
return it[key];
|
1958 |
+
} catch (e) { /* empty */ }
|
1959 |
+
};
|
1960 |
+
|
1961 |
+
module.exports = function (it) {
|
1962 |
+
var O, T, B;
|
1963 |
+
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
1964 |
+
// @@toStringTag case
|
1965 |
+
: typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T
|
1966 |
+
// builtinTag case
|
1967 |
+
: ARG ? cof(O)
|
1968 |
+
// ES3 arguments fallback
|
1969 |
+
: (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;
|
1970 |
+
};
|
1971 |
+
|
1972 |
+
|
1973 |
+
/***/ }),
|
1974 |
+
/* 77 */
|
1975 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1976 |
+
|
1977 |
+
// 7.3.20 SpeciesConstructor(O, defaultConstructor)
|
1978 |
+
var anObject = __webpack_require__(15);
|
1979 |
+
var aFunction = __webpack_require__(37);
|
1980 |
+
var SPECIES = __webpack_require__(10)('species');
|
1981 |
+
module.exports = function (O, D) {
|
1982 |
+
var C = anObject(O).constructor;
|
1983 |
+
var S;
|
1984 |
+
return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? D : aFunction(S);
|
1985 |
+
};
|
1986 |
+
|
1987 |
+
|
1988 |
+
/***/ }),
|
1989 |
+
/* 78 */
|
1990 |
+
/***/ (function(module, exports, __webpack_require__) {
|
1991 |
+
|
1992 |
+
var ctx = __webpack_require__(31);
|
1993 |
+
var invoke = __webpack_require__(129);
|
1994 |
+
var html = __webpack_require__(72);
|
1995 |
+
var cel = __webpack_require__(48);
|
1996 |
+
var global = __webpack_require__(9);
|
1997 |
+
var process = global.process;
|
1998 |
+
var setTask = global.setImmediate;
|
1999 |
+
var clearTask = global.clearImmediate;
|
2000 |
+
var MessageChannel = global.MessageChannel;
|
2001 |
+
var Dispatch = global.Dispatch;
|
2002 |
+
var counter = 0;
|
2003 |
+
var queue = {};
|
2004 |
+
var ONREADYSTATECHANGE = 'onreadystatechange';
|
2005 |
+
var defer, channel, port;
|
2006 |
+
var run = function () {
|
2007 |
+
var id = +this;
|
2008 |
+
// eslint-disable-next-line no-prototype-builtins
|
2009 |
+
if (queue.hasOwnProperty(id)) {
|
2010 |
+
var fn = queue[id];
|
2011 |
+
delete queue[id];
|
2012 |
+
fn();
|
2013 |
+
}
|
2014 |
+
};
|
2015 |
+
var listener = function (event) {
|
2016 |
+
run.call(event.data);
|
2017 |
+
};
|
2018 |
+
// Node.js 0.9+ & IE10+ has setImmediate, otherwise:
|
2019 |
+
if (!setTask || !clearTask) {
|
2020 |
+
setTask = function setImmediate(fn) {
|
2021 |
+
var args = [];
|
2022 |
+
var i = 1;
|
2023 |
+
while (arguments.length > i) args.push(arguments[i++]);
|
2024 |
+
queue[++counter] = function () {
|
2025 |
+
// eslint-disable-next-line no-new-func
|
2026 |
+
invoke(typeof fn == 'function' ? fn : Function(fn), args);
|
2027 |
+
};
|
2028 |
+
defer(counter);
|
2029 |
+
return counter;
|
2030 |
+
};
|
2031 |
+
clearTask = function clearImmediate(id) {
|
2032 |
+
delete queue[id];
|
2033 |
+
};
|
2034 |
+
// Node.js 0.8-
|
2035 |
+
if (__webpack_require__(28)(process) == 'process') {
|
2036 |
+
defer = function (id) {
|
2037 |
+
process.nextTick(ctx(run, id, 1));
|
2038 |
+
};
|
2039 |
+
// Sphere (JS game engine) Dispatch API
|
2040 |
+
} else if (Dispatch && Dispatch.now) {
|
2041 |
+
defer = function (id) {
|
2042 |
+
Dispatch.now(ctx(run, id, 1));
|
2043 |
+
};
|
2044 |
+
// Browsers with MessageChannel, includes WebWorkers
|
2045 |
+
} else if (MessageChannel) {
|
2046 |
+
channel = new MessageChannel();
|
2047 |
+
port = channel.port2;
|
2048 |
+
channel.port1.onmessage = listener;
|
2049 |
+
defer = ctx(port.postMessage, port, 1);
|
2050 |
+
// Browsers with postMessage, skip WebWorkers
|
2051 |
+
// IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
|
2052 |
+
} else if (global.addEventListener && typeof postMessage == 'function' && !global.importScripts) {
|
2053 |
+
defer = function (id) {
|
2054 |
+
global.postMessage(id + '', '*');
|
2055 |
+
};
|
2056 |
+
global.addEventListener('message', listener, false);
|
2057 |
+
// IE8-
|
2058 |
+
} else if (ONREADYSTATECHANGE in cel('script')) {
|
2059 |
+
defer = function (id) {
|
2060 |
+
html.appendChild(cel('script'))[ONREADYSTATECHANGE] = function () {
|
2061 |
+
html.removeChild(this);
|
2062 |
+
run.call(id);
|
2063 |
+
};
|
2064 |
+
};
|
2065 |
+
// Rest old browsers
|
2066 |
+
} else {
|
2067 |
+
defer = function (id) {
|
2068 |
+
setTimeout(ctx(run, id, 1), 0);
|
2069 |
+
};
|
2070 |
+
}
|
2071 |
+
}
|
2072 |
+
module.exports = {
|
2073 |
+
set: setTask,
|
2074 |
+
clear: clearTask
|
2075 |
+
};
|
2076 |
+
|
2077 |
+
|
2078 |
+
/***/ }),
|
2079 |
+
/* 79 */
|
2080 |
+
/***/ (function(module, exports) {
|
2081 |
+
|
2082 |
+
module.exports = function (exec) {
|
2083 |
+
try {
|
2084 |
+
return { e: false, v: exec() };
|
2085 |
+
} catch (e) {
|
2086 |
+
return { e: true, v: e };
|
2087 |
+
}
|
2088 |
+
};
|
2089 |
+
|
2090 |
+
|
2091 |
+
/***/ }),
|
2092 |
+
/* 80 */
|
2093 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2094 |
+
|
2095 |
+
var anObject = __webpack_require__(15);
|
2096 |
+
var isObject = __webpack_require__(18);
|
2097 |
+
var newPromiseCapability = __webpack_require__(60);
|
2098 |
+
|
2099 |
+
module.exports = function (C, x) {
|
2100 |
+
anObject(C);
|
2101 |
+
if (isObject(x) && x.constructor === C) return x;
|
2102 |
+
var promiseCapability = newPromiseCapability.f(C);
|
2103 |
+
var resolve = promiseCapability.resolve;
|
2104 |
+
resolve(x);
|
2105 |
+
return promiseCapability.promise;
|
2106 |
+
};
|
2107 |
+
|
2108 |
+
|
2109 |
+
/***/ }),
|
2110 |
+
/* 81 */
|
2111 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2112 |
+
|
2113 |
+
"use strict";
|
2114 |
+
|
2115 |
+
|
2116 |
+
Object.defineProperty(exports, "__esModule", {
|
2117 |
+
value: true
|
2118 |
+
});
|
2119 |
+
exports.default = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
|
2120 |
+
module.exports = exports['default'];
|
2121 |
+
|
2122 |
+
/***/ }),
|
2123 |
+
/* 82 */,
|
2124 |
+
/* 83 */
|
2125 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2126 |
+
|
2127 |
+
"use strict";
|
2128 |
+
|
2129 |
+
|
2130 |
+
exports.__esModule = true;
|
2131 |
+
|
2132 |
+
var _createUncontrollable = __webpack_require__(358);
|
2133 |
+
|
2134 |
+
var _createUncontrollable2 = _interopRequireDefault(_createUncontrollable);
|
2135 |
+
|
2136 |
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
2137 |
+
|
2138 |
+
var mixin = {
|
2139 |
+
shouldComponentUpdate: function shouldComponentUpdate() {
|
2140 |
+
//let the forceUpdate trigger the update
|
2141 |
+
return !this._notifying;
|
2142 |
+
}
|
2143 |
+
};
|
2144 |
+
|
2145 |
+
function set(component, propName, handler, value, args) {
|
2146 |
+
if (handler) {
|
2147 |
+
component._notifying = true;
|
2148 |
+
handler.call.apply(handler, [component, value].concat(args));
|
2149 |
+
component._notifying = false;
|
2150 |
+
}
|
2151 |
+
|
2152 |
+
component._values[propName] = value;
|
2153 |
+
|
2154 |
+
if (!component.unmounted) component.forceUpdate();
|
2155 |
+
}
|
2156 |
+
|
2157 |
+
exports.default = (0, _createUncontrollable2.default)(mixin, set);
|
2158 |
+
module.exports = exports['default'];
|
2159 |
+
|
2160 |
+
/***/ }),
|
2161 |
+
/* 84 */,
|
2162 |
+
/* 85 */
|
2163 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2164 |
+
|
2165 |
+
module.exports = { "default": __webpack_require__(101), __esModule: true };
|
2166 |
+
|
2167 |
+
/***/ }),
|
2168 |
+
/* 86 */
|
2169 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
2170 |
+
|
2171 |
+
"use strict";
|
2172 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return printedData; });
|
2173 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return cfAdmin; });
|
2174 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof__ = __webpack_require__(45);
|
2175 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof__);
|
2176 |
+
|
2177 |
+
/** Wrappers around objects added via wp_localize_script() **/
|
2178 |
+
|
2179 |
+
var printedData = 'object' === (typeof CF_FORMS === 'undefined' ? 'undefined' : __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof___default()(CF_FORMS)) ? CF_FORMS : [];
|
2180 |
+
var cfAdmin = 'object' === (typeof CF_ADMIN === 'undefined' ? 'undefined' : __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof___default()(CF_ADMIN)) ? CF_ADMIN : {};
|
2181 |
+
|
2182 |
+
/***/ }),
|
2183 |
+
/* 87 */
|
2184 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2185 |
+
|
2186 |
+
var pIE = __webpack_require__(34);
|
2187 |
+
var createDesc = __webpack_require__(33);
|
2188 |
+
var toIObject = __webpack_require__(23);
|
2189 |
+
var toPrimitive = __webpack_require__(49);
|
2190 |
+
var has = __webpack_require__(22);
|
2191 |
+
var IE8_DOM_DEFINE = __webpack_require__(67);
|
2192 |
+
var gOPD = Object.getOwnPropertyDescriptor;
|
2193 |
+
|
2194 |
+
exports.f = __webpack_require__(21) ? gOPD : function getOwnPropertyDescriptor(O, P) {
|
2195 |
+
O = toIObject(O);
|
2196 |
+
P = toPrimitive(P, true);
|
2197 |
+
if (IE8_DOM_DEFINE) try {
|
2198 |
+
return gOPD(O, P);
|
2199 |
+
} catch (e) { /* empty */ }
|
2200 |
+
if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);
|
2201 |
+
};
|
2202 |
+
|
2203 |
+
|
2204 |
+
/***/ }),
|
2205 |
+
/* 88 */
|
2206 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
2207 |
+
|
2208 |
+
"use strict";
|
2209 |
+
/* unused harmony export formHasId */
|
2210 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return findFormById; });
|
2211 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return findFormIndexById; });
|
2212 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof__ = __webpack_require__(45);
|
2213 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof__);
|
2214 |
+
|
2215 |
+
/**
|
2216 |
+
* Check if a form has the provided ID
|
2217 |
+
*
|
2218 |
+
* @since 1.6.2
|
2219 |
+
*
|
2220 |
+
* @param {Object} form Form config
|
2221 |
+
* @param {String} formId
|
2222 |
+
* @return {boolean}
|
2223 |
+
*/
|
2224 |
+
var formHasId = function formHasId(form, formId) {
|
2225 |
+
if ('object' !== (typeof form === 'undefined' ? 'undefined' : __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof___default()(form))) {
|
2226 |
+
return false;
|
2227 |
+
}
|
2228 |
+
if (form.hasOwnProperty('ID')) {
|
2229 |
+
return formId === form.ID;
|
2230 |
+
}
|
2231 |
+
if (form.hasOwnProperty('formId')) {
|
2232 |
+
return formId === form.formId;
|
2233 |
+
}
|
2234 |
+
return false;
|
2235 |
+
};
|
2236 |
+
|
2237 |
+
/**
|
2238 |
+
* Find form in state by Id
|
2239 |
+
*
|
2240 |
+
* @since 1.6.2
|
2241 |
+
*
|
2242 |
+
* @param {Object} state
|
2243 |
+
* @param {String} formId
|
2244 |
+
*/
|
2245 |
+
var findFormById = function findFormById(state, formId) {
|
2246 |
+
return state.forms.find(function (form) {
|
2247 |
+
return formHasId(form, formId);
|
2248 |
+
});
|
2249 |
+
};
|
2250 |
+
|
2251 |
+
/**
|
2252 |
+
* Find form index in state by Id
|
2253 |
+
*
|
2254 |
+
* @since 1.6.2
|
2255 |
+
*
|
2256 |
+
* @param {Object} state
|
2257 |
+
* @param {String} formId
|
2258 |
+
*/
|
2259 |
+
var findFormIndexById = function findFormIndexById(state, formId) {
|
2260 |
+
return state.forms.findIndex(function (form) {
|
2261 |
+
return formHasId(form, formId);
|
2262 |
+
});
|
2263 |
+
};
|
2264 |
+
|
2265 |
+
/***/ }),
|
2266 |
+
/* 89 */
|
2267 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2268 |
+
|
2269 |
+
// call something on iterator step with safe closing on error
|
2270 |
+
var anObject = __webpack_require__(15);
|
2271 |
+
module.exports = function (iterator, fn, value, entries) {
|
2272 |
+
try {
|
2273 |
+
return entries ? fn(anObject(value)[0], value[1]) : fn(value);
|
2274 |
+
// 7.4.6 IteratorClose(iterator, completion)
|
2275 |
+
} catch (e) {
|
2276 |
+
var ret = iterator['return'];
|
2277 |
+
if (ret !== undefined) anObject(ret.call(iterator));
|
2278 |
+
throw e;
|
2279 |
+
}
|
2280 |
+
};
|
2281 |
+
|
2282 |
+
|
2283 |
+
/***/ }),
|
2284 |
+
/* 90 */
|
2285 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2286 |
+
|
2287 |
+
// check on default Array iterator
|
2288 |
+
var Iterators = __webpack_require__(29);
|
2289 |
+
var ITERATOR = __webpack_require__(10)('iterator');
|
2290 |
+
var ArrayProto = Array.prototype;
|
2291 |
+
|
2292 |
+
module.exports = function (it) {
|
2293 |
+
return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
|
2294 |
+
};
|
2295 |
+
|
2296 |
+
|
2297 |
+
/***/ }),
|
2298 |
+
/* 91 */
|
2299 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2300 |
+
|
2301 |
+
var classof = __webpack_require__(76);
|
2302 |
+
var ITERATOR = __webpack_require__(10)('iterator');
|
2303 |
+
var Iterators = __webpack_require__(29);
|
2304 |
+
module.exports = __webpack_require__(12).getIteratorMethod = function (it) {
|
2305 |
+
if (it != undefined) return it[ITERATOR]
|
2306 |
+
|| it['@@iterator']
|
2307 |
+
|| Iterators[classof(it)];
|
2308 |
+
};
|
2309 |
+
|
2310 |
+
|
2311 |
+
/***/ }),
|
2312 |
+
/* 92 */
|
2313 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2314 |
+
|
2315 |
+
var ITERATOR = __webpack_require__(10)('iterator');
|
2316 |
+
var SAFE_CLOSING = false;
|
2317 |
+
|
2318 |
+
try {
|
2319 |
+
var riter = [7][ITERATOR]();
|
2320 |
+
riter['return'] = function () { SAFE_CLOSING = true; };
|
2321 |
+
// eslint-disable-next-line no-throw-literal
|
2322 |
+
Array.from(riter, function () { throw 2; });
|
2323 |
+
} catch (e) { /* empty */ }
|
2324 |
+
|
2325 |
+
module.exports = function (exec, skipClosing) {
|
2326 |
+
if (!skipClosing && !SAFE_CLOSING) return false;
|
2327 |
+
var safe = false;
|
2328 |
+
try {
|
2329 |
+
var arr = [7];
|
2330 |
+
var iter = arr[ITERATOR]();
|
2331 |
+
iter.next = function () { return { done: safe = true }; };
|
2332 |
+
arr[ITERATOR] = function () { return iter; };
|
2333 |
+
exec(arr);
|
2334 |
+
} catch (e) { /* empty */ }
|
2335 |
+
return safe;
|
2336 |
+
};
|
2337 |
+
|
2338 |
+
|
2339 |
+
/***/ }),
|
2340 |
+
/* 93 */
|
2341 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2342 |
+
|
2343 |
+
module.exports = { "default": __webpack_require__(363), __esModule: true };
|
2344 |
+
|
2345 |
+
/***/ }),
|
2346 |
+
/* 94 */
|
2347 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2348 |
+
|
2349 |
+
"use strict";
|
2350 |
+
|
2351 |
+
|
2352 |
+
Object.defineProperty(exports, "__esModule", {
|
2353 |
+
value: true
|
2354 |
+
});
|
2355 |
+
exports.default = ownerDocument;
|
2356 |
+
function ownerDocument(node) {
|
2357 |
+
return node && node.ownerDocument || document;
|
2358 |
+
}
|
2359 |
+
module.exports = exports["default"];
|
2360 |
+
|
2361 |
+
/***/ }),
|
2362 |
+
/* 95 */
|
2363 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2364 |
+
|
2365 |
+
"use strict";
|
2366 |
+
|
2367 |
+
|
2368 |
+
Object.defineProperty(exports, "__esModule", {
|
2369 |
+
value: true
|
2370 |
+
});
|
2371 |
+
|
2372 |
+
var _inDOM = __webpack_require__(81);
|
2373 |
+
|
2374 |
+
var _inDOM2 = _interopRequireDefault(_inDOM);
|
2375 |
+
|
2376 |
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
2377 |
+
|
2378 |
+
exports.default = function () {
|
2379 |
+
// HTML DOM and SVG DOM may have different support levels,
|
2380 |
+
// so we need to check on context instead of a document root element.
|
2381 |
+
return _inDOM2.default ? function (context, node) {
|
2382 |
+
if (context.contains) {
|
2383 |
+
return context.contains(node);
|
2384 |
+
} else if (context.compareDocumentPosition) {
|
2385 |
+
return context === node || !!(context.compareDocumentPosition(node) & 16);
|
2386 |
+
} else {
|
2387 |
+
return fallback(context, node);
|
2388 |
+
}
|
2389 |
+
} : fallback;
|
2390 |
+
}();
|
2391 |
+
|
2392 |
+
function fallback(context, node) {
|
2393 |
+
if (node) do {
|
2394 |
+
if (node === context) return true;
|
2395 |
+
} while (node = node.parentNode);
|
2396 |
+
|
2397 |
+
return false;
|
2398 |
+
}
|
2399 |
+
module.exports = exports['default'];
|
2400 |
+
|
2401 |
+
/***/ }),
|
2402 |
+
/* 96 */
|
2403 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2404 |
+
|
2405 |
+
"use strict";
|
2406 |
+
|
2407 |
+
|
2408 |
+
exports.__esModule = true;
|
2409 |
+
|
2410 |
+
exports.default = function (componentOrElement) {
|
2411 |
+
return (0, _ownerDocument2.default)(_reactDom2.default.findDOMNode(componentOrElement));
|
2412 |
+
};
|
2413 |
+
|
2414 |
+
var _reactDom = __webpack_require__(35);
|
2415 |
+
|
2416 |
+
var _reactDom2 = _interopRequireDefault(_reactDom);
|
2417 |
+
|
2418 |
+
var _ownerDocument = __webpack_require__(94);
|
2419 |
+
|
2420 |
+
var _ownerDocument2 = _interopRequireDefault(_ownerDocument);
|
2421 |
+
|
2422 |
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
2423 |
+
|
2424 |
+
module.exports = exports['default'];
|
2425 |
+
|
2426 |
+
/***/ }),
|
2427 |
+
/* 97 */,
|
2428 |
+
/* 98 */,
|
2429 |
+
/* 99 */,
|
2430 |
+
/* 100 */
|
2431 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2432 |
+
|
2433 |
+
"use strict";
|
2434 |
+
/**
|
2435 |
+
* Copyright (c) 2013-present, Facebook, Inc.
|
2436 |
+
*
|
2437 |
+
* This source code is licensed under the MIT license found in the
|
2438 |
+
* LICENSE file in the root directory of this source tree.
|
2439 |
+
*/
|
2440 |
+
|
2441 |
+
|
2442 |
+
|
2443 |
+
/**
|
2444 |
+
* Use invariant() to assert state which your program assumes to be true.
|
2445 |
+
*
|
2446 |
+
* Provide sprintf-style format (only %s is supported) and arguments
|
2447 |
+
* to provide information about what broke and what you were
|
2448 |
+
* expecting.
|
2449 |
+
*
|
2450 |
+
* The invariant message will be stripped in production, but the invariant
|
2451 |
+
* will remain to ensure logic does not differ in production.
|
2452 |
+
*/
|
2453 |
+
|
2454 |
+
var invariant = function(condition, format, a, b, c, d, e, f) {
|
2455 |
+
if (true) {
|
2456 |
+
if (format === undefined) {
|
2457 |
+
throw new Error('invariant requires an error message argument');
|
2458 |
+
}
|
2459 |
+
}
|
2460 |
+
|
2461 |
+
if (!condition) {
|
2462 |
+
var error;
|
2463 |
+
if (format === undefined) {
|
2464 |
+
error = new Error(
|
2465 |
+
'Minified exception occurred; use the non-minified dev environment ' +
|
2466 |
+
'for the full error message and additional helpful warnings.'
|
2467 |
+
);
|
2468 |
+
} else {
|
2469 |
+
var args = [a, b, c, d, e, f];
|
2470 |
+
var argIndex = 0;
|
2471 |
+
error = new Error(
|
2472 |
+
format.replace(/%s/g, function() { return args[argIndex++]; })
|
2473 |
+
);
|
2474 |
+
error.name = 'Invariant Violation';
|
2475 |
+
}
|
2476 |
+
|
2477 |
+
error.framesToPop = 1; // we don't care about invariant's own frame
|
2478 |
+
throw error;
|
2479 |
+
}
|
2480 |
+
};
|
2481 |
+
|
2482 |
+
module.exports = invariant;
|
2483 |
+
|
2484 |
+
|
2485 |
+
/***/ }),
|
2486 |
+
/* 101 */
|
2487 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2488 |
+
|
2489 |
+
__webpack_require__(102);
|
2490 |
+
module.exports = __webpack_require__(12).Object.assign;
|
2491 |
+
|
2492 |
+
|
2493 |
+
/***/ }),
|
2494 |
+
/* 102 */
|
2495 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2496 |
+
|
2497 |
+
// 19.1.3.1 Object.assign(target, source)
|
2498 |
+
var $export = __webpack_require__(14);
|
2499 |
+
|
2500 |
+
$export($export.S + $export.F, 'Object', { assign: __webpack_require__(103) });
|
2501 |
+
|
2502 |
+
|
2503 |
+
/***/ }),
|
2504 |
+
/* 103 */
|
2505 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2506 |
+
|
2507 |
+
"use strict";
|
2508 |
+
|
2509 |
+
// 19.1.2.1 Object.assign(target, source, ...)
|
2510 |
+
var getKeys = __webpack_require__(27);
|
2511 |
+
var gOPS = __webpack_require__(55);
|
2512 |
+
var pIE = __webpack_require__(34);
|
2513 |
+
var toObject = __webpack_require__(56);
|
2514 |
+
var IObject = __webpack_require__(69);
|
2515 |
+
var $assign = Object.assign;
|
2516 |
+
|
2517 |
+
// should work with symbols and should have deterministic property order (V8 bug)
|
2518 |
+
module.exports = !$assign || __webpack_require__(25)(function () {
|
2519 |
+
var A = {};
|
2520 |
+
var B = {};
|
2521 |
+
// eslint-disable-next-line no-undef
|
2522 |
+
var S = Symbol();
|
2523 |
+
var K = 'abcdefghijklmnopqrst';
|
2524 |
+
A[S] = 7;
|
2525 |
+
K.split('').forEach(function (k) { B[k] = k; });
|
2526 |
+
return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;
|
2527 |
+
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars
|
2528 |
+
var T = toObject(target);
|
2529 |
+
var aLen = arguments.length;
|
2530 |
+
var index = 1;
|
2531 |
+
var getSymbols = gOPS.f;
|
2532 |
+
var isEnum = pIE.f;
|
2533 |
+
while (aLen > index) {
|
2534 |
+
var S = IObject(arguments[index++]);
|
2535 |
+
var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);
|
2536 |
+
var length = keys.length;
|
2537 |
+
var j = 0;
|
2538 |
+
var key;
|
2539 |
+
while (length > j) if (isEnum.call(S, key = keys[j++])) T[key] = S[key];
|
2540 |
+
} return T;
|
2541 |
+
} : $assign;
|
2542 |
+
|
2543 |
+
|
2544 |
+
/***/ }),
|
2545 |
+
/* 104 */
|
2546 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2547 |
+
|
2548 |
+
// false -> Array#indexOf
|
2549 |
+
// true -> Array#includes
|
2550 |
+
var toIObject = __webpack_require__(23);
|
2551 |
+
var toLength = __webpack_require__(63);
|
2552 |
+
var toAbsoluteIndex = __webpack_require__(105);
|
2553 |
+
module.exports = function (IS_INCLUDES) {
|
2554 |
+
return function ($this, el, fromIndex) {
|
2555 |
+
var O = toIObject($this);
|
2556 |
+
var length = toLength(O.length);
|
2557 |
+
var index = toAbsoluteIndex(fromIndex, length);
|
2558 |
+
var value;
|
2559 |
+
// Array#includes uses SameValueZero equality algorithm
|
2560 |
+
// eslint-disable-next-line no-self-compare
|
2561 |
+
if (IS_INCLUDES && el != el) while (length > index) {
|
2562 |
+
value = O[index++];
|
2563 |
+
// eslint-disable-next-line no-self-compare
|
2564 |
+
if (value != value) return true;
|
2565 |
+
// Array#indexOf ignores holes, Array#includes - not
|
2566 |
+
} else for (;length > index; index++) if (IS_INCLUDES || index in O) {
|
2567 |
+
if (O[index] === el) return IS_INCLUDES || index || 0;
|
2568 |
+
} return !IS_INCLUDES && -1;
|
2569 |
+
};
|
2570 |
+
};
|
2571 |
+
|
2572 |
+
|
2573 |
+
/***/ }),
|
2574 |
+
/* 105 */
|
2575 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2576 |
+
|
2577 |
+
var toInteger = __webpack_require__(51);
|
2578 |
+
var max = Math.max;
|
2579 |
+
var min = Math.min;
|
2580 |
+
module.exports = function (index, length) {
|
2581 |
+
index = toInteger(index);
|
2582 |
+
return index < 0 ? max(index + length, 0) : min(index, length);
|
2583 |
+
};
|
2584 |
+
|
2585 |
+
|
2586 |
+
/***/ }),
|
2587 |
+
/* 106 */
|
2588 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2589 |
+
|
2590 |
+
module.exports = { "default": __webpack_require__(107), __esModule: true };
|
2591 |
+
|
2592 |
+
/***/ }),
|
2593 |
+
/* 107 */
|
2594 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2595 |
+
|
2596 |
+
__webpack_require__(64);
|
2597 |
+
__webpack_require__(73);
|
2598 |
+
module.exports = __webpack_require__(58).f('iterator');
|
2599 |
+
|
2600 |
+
|
2601 |
+
/***/ }),
|
2602 |
+
/* 108 */
|
2603 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2604 |
+
|
2605 |
+
var toInteger = __webpack_require__(51);
|
2606 |
+
var defined = __webpack_require__(50);
|
2607 |
+
// true -> String#at
|
2608 |
+
// false -> String#codePointAt
|
2609 |
+
module.exports = function (TO_STRING) {
|
2610 |
+
return function (that, pos) {
|
2611 |
+
var s = String(defined(that));
|
2612 |
+
var i = toInteger(pos);
|
2613 |
+
var l = s.length;
|
2614 |
+
var a, b;
|
2615 |
+
if (i < 0 || i >= l) return TO_STRING ? '' : undefined;
|
2616 |
+
a = s.charCodeAt(i);
|
2617 |
+
return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff
|
2618 |
+
? TO_STRING ? s.charAt(i) : a
|
2619 |
+
: TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;
|
2620 |
+
};
|
2621 |
+
};
|
2622 |
+
|
2623 |
+
|
2624 |
+
/***/ }),
|
2625 |
+
/* 109 */
|
2626 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2627 |
+
|
2628 |
+
"use strict";
|
2629 |
+
|
2630 |
+
var create = __webpack_require__(65);
|
2631 |
+
var descriptor = __webpack_require__(33);
|
2632 |
+
var setToStringTag = __webpack_require__(40);
|
2633 |
+
var IteratorPrototype = {};
|
2634 |
+
|
2635 |
+
// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
|
2636 |
+
__webpack_require__(20)(IteratorPrototype, __webpack_require__(10)('iterator'), function () { return this; });
|
2637 |
+
|
2638 |
+
module.exports = function (Constructor, NAME, next) {
|
2639 |
+
Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });
|
2640 |
+
setToStringTag(Constructor, NAME + ' Iterator');
|
2641 |
+
};
|
2642 |
+
|
2643 |
+
|
2644 |
+
/***/ }),
|
2645 |
+
/* 110 */
|
2646 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2647 |
+
|
2648 |
+
var dP = __webpack_require__(17);
|
2649 |
+
var anObject = __webpack_require__(15);
|
2650 |
+
var getKeys = __webpack_require__(27);
|
2651 |
+
|
2652 |
+
module.exports = __webpack_require__(21) ? Object.defineProperties : function defineProperties(O, Properties) {
|
2653 |
+
anObject(O);
|
2654 |
+
var keys = getKeys(Properties);
|
2655 |
+
var length = keys.length;
|
2656 |
+
var i = 0;
|
2657 |
+
var P;
|
2658 |
+
while (length > i) dP.f(O, P = keys[i++], Properties[P]);
|
2659 |
+
return O;
|
2660 |
+
};
|
2661 |
+
|
2662 |
+
|
2663 |
+
/***/ }),
|
2664 |
+
/* 111 */
|
2665 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2666 |
+
|
2667 |
+
// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
|
2668 |
+
var has = __webpack_require__(22);
|
2669 |
+
var toObject = __webpack_require__(56);
|
2670 |
+
var IE_PROTO = __webpack_require__(52)('IE_PROTO');
|
2671 |
+
var ObjectProto = Object.prototype;
|
2672 |
+
|
2673 |
+
module.exports = Object.getPrototypeOf || function (O) {
|
2674 |
+
O = toObject(O);
|
2675 |
+
if (has(O, IE_PROTO)) return O[IE_PROTO];
|
2676 |
+
if (typeof O.constructor == 'function' && O instanceof O.constructor) {
|
2677 |
+
return O.constructor.prototype;
|
2678 |
+
} return O instanceof Object ? ObjectProto : null;
|
2679 |
+
};
|
2680 |
+
|
2681 |
+
|
2682 |
+
/***/ }),
|
2683 |
+
/* 112 */
|
2684 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2685 |
+
|
2686 |
+
"use strict";
|
2687 |
+
|
2688 |
+
var addToUnscopables = __webpack_require__(113);
|
2689 |
+
var step = __webpack_require__(114);
|
2690 |
+
var Iterators = __webpack_require__(29);
|
2691 |
+
var toIObject = __webpack_require__(23);
|
2692 |
+
|
2693 |
+
// 22.1.3.4 Array.prototype.entries()
|
2694 |
+
// 22.1.3.13 Array.prototype.keys()
|
2695 |
+
// 22.1.3.29 Array.prototype.values()
|
2696 |
+
// 22.1.3.30 Array.prototype[@@iterator]()
|
2697 |
+
module.exports = __webpack_require__(70)(Array, 'Array', function (iterated, kind) {
|
2698 |
+
this._t = toIObject(iterated); // target
|
2699 |
+
this._i = 0; // next index
|
2700 |
+
this._k = kind; // kind
|
2701 |
+
// 22.1.5.2.1 %ArrayIteratorPrototype%.next()
|
2702 |
+
}, function () {
|
2703 |
+
var O = this._t;
|
2704 |
+
var kind = this._k;
|
2705 |
+
var index = this._i++;
|
2706 |
+
if (!O || index >= O.length) {
|
2707 |
+
this._t = undefined;
|
2708 |
+
return step(1);
|
2709 |
+
}
|
2710 |
+
if (kind == 'keys') return step(0, index);
|
2711 |
+
if (kind == 'values') return step(0, O[index]);
|
2712 |
+
return step(0, [index, O[index]]);
|
2713 |
+
}, 'values');
|
2714 |
+
|
2715 |
+
// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)
|
2716 |
+
Iterators.Arguments = Iterators.Array;
|
2717 |
+
|
2718 |
+
addToUnscopables('keys');
|
2719 |
+
addToUnscopables('values');
|
2720 |
+
addToUnscopables('entries');
|
2721 |
+
|
2722 |
+
|
2723 |
+
/***/ }),
|
2724 |
+
/* 113 */
|
2725 |
+
/***/ (function(module, exports) {
|
2726 |
+
|
2727 |
+
module.exports = function () { /* empty */ };
|
2728 |
+
|
2729 |
+
|
2730 |
+
/***/ }),
|
2731 |
+
/* 114 */
|
2732 |
+
/***/ (function(module, exports) {
|
2733 |
+
|
2734 |
+
module.exports = function (done, value) {
|
2735 |
+
return { value: value, done: !!done };
|
2736 |
+
};
|
2737 |
+
|
2738 |
+
|
2739 |
+
/***/ }),
|
2740 |
+
/* 115 */
|
2741 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2742 |
+
|
2743 |
+
module.exports = { "default": __webpack_require__(116), __esModule: true };
|
2744 |
+
|
2745 |
+
/***/ }),
|
2746 |
+
/* 116 */
|
2747 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2748 |
+
|
2749 |
+
__webpack_require__(117);
|
2750 |
+
__webpack_require__(75);
|
2751 |
+
__webpack_require__(122);
|
2752 |
+
__webpack_require__(123);
|
2753 |
+
module.exports = __webpack_require__(12).Symbol;
|
2754 |
+
|
2755 |
+
|
2756 |
+
/***/ }),
|
2757 |
+
/* 117 */
|
2758 |
+
/***/ (function(module, exports, __webpack_require__) {
|
2759 |
+
|
2760 |
+
"use strict";
|
2761 |
+
|
2762 |
+
// ECMAScript 6 symbols shim
|
2763 |
+
var global = __webpack_require__(9);
|
2764 |
+
var has = __webpack_require__(22);
|
2765 |
+
var DESCRIPTORS = __webpack_require__(21);
|
2766 |
+
var $export = __webpack_require__(14);
|
2767 |
+
var redefine = __webpack_require__(71);
|
2768 |
+
var META = __webpack_require__(118).KEY;
|
2769 |
+
var $fails = __webpack_require__(25);
|
2770 |
+
var shared = __webpack_require__(53);
|
2771 |
+
var setToStringTag = __webpack_require__(40);
|
2772 |
+
var uid = __webpack_require__(38);
|
2773 |
+
var wks = __webpack_require__(10);
|
2774 |
+
var wksExt = __webpack_require__(58);
|
2775 |
+
var wksDefine = __webpack_require__(59);
|
2776 |
+
var enumKeys = __webpack_require__(119);
|
2777 |
+
var isArray = __webpack_require__(120);
|
2778 |
+
var anObject = __webpack_require__(15);
|
2779 |
+
var isObject = __webpack_require__(18);
|
2780 |
+
var toIObject = __webpack_require__(23);
|
2781 |
+
var toPrimitive = __webpack_require__(49);
|
2782 |
+
var createDesc = __webpack_require__(33);
|
2783 |
+
var _create = __webpack_require__(65);
|
2784 |
+
var gOPNExt = __webpack_require__(121);
|
2785 |
+
var $GOPD = __webpack_require__(87);
|
2786 |
+
var $DP = __webpack_require__(17);
|
2787 |
+
var $keys = __webpack_require__(27);
|
2788 |
+
var gOPD = $GOPD.f;
|
2789 |
+
var dP = $DP.f;
|
2790 |
+
var gOPN = gOPNExt.f;
|
2791 |
+
var $Symbol = global.Symbol;
|
2792 |
+
var $JSON = global.JSON;
|
2793 |
+
var _stringify = $JSON && $JSON.stringify;
|
2794 |
+
var PROTOTYPE = 'prototype';
|
2795 |
+
var HIDDEN = wks('_hidden');
|
2796 |
+
var TO_PRIMITIVE = wks('toPrimitive');
|
2797 |
+
var isEnum = {}.propertyIsEnumerable;
|
2798 |
+
var SymbolRegistry = shared('symbol-registry');
|
2799 |
+
var AllSymbols = shared('symbols');
|
2800 |
+
var OPSymbols = shared('op-symbols');
|
2801 |
+
var ObjectProto = Object[PROTOTYPE];
|
2802 |
+
var USE_NATIVE = typeof $Symbol == 'function';
|
2803 |
+
var QObject = global.QObject;
|
2804 |
+
// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
|
2805 |
+
var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
|
2806 |
+
|
2807 |
+
// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
|
2808 |
+
var setSymbolDesc = DESCRIPTORS && $fails(function () {
|
2809 |
+
return _create(dP({}, 'a', {
|
2810 |
+
get: function () { return dP(this, 'a', { value: 7 }).a; }
|
2811 |
+
})).a != 7;
|
2812 |
+
}) ? function (it, key, D) {
|
2813 |
+
var protoDesc = gOPD(ObjectProto, key);
|
2814 |
+
if (protoDesc) delete ObjectProto[key];
|
2815 |
+
dP(it, key, D);
|
2816 |
+
if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc);
|
2817 |
+
} : dP;
|
2818 |
+
|
2819 |
+
var wrap = function (tag) {
|
2820 |
+
var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]);
|
2821 |
+
sym._k = tag;
|
2822 |
+
return sym;
|
2823 |
+
};
|
2824 |
+
|
2825 |
+
var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) {
|
2826 |
+
return typeof it == 'symbol';
|
2827 |
+
} : function (it) {
|
2828 |
+
return it instanceof $Symbol;
|
2829 |
+
};
|
2830 |
+
|
2831 |
+
var $defineProperty = function defineProperty(it, key, D) {
|
2832 |
+
if (it === ObjectProto) $defineProperty(OPSymbols, key, D);
|
2833 |
+
anObject(it);
|
2834 |
+
key = toPrimitive(key, true);
|
2835 |
+
anObject(D);
|
2836 |
+
if (has(AllSymbols, key)) {
|
2837 |
+
if (!D.enumerable) {
|
2838 |
+
if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {}));
|
2839 |
+
it[HIDDEN][key] = true;
|
2840 |
+
} else {
|
2841 |
+
if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false;
|
2842 |
+
D = _create(D, { enumerable: createDesc(0, false) });
|
2843 |
+
} return setSymbolDesc(it, key, D);
|
2844 |
+
} return dP(it, key, D);
|
2845 |
+
};
|
2846 |
+
var $defineProperties = function defineProperties(it, P) {
|
2847 |
+
anObject(it);
|
2848 |
+
var keys = enumKeys(P = toIObject(P));
|
2849 |
+
var i = 0;
|
2850 |
+
var l = keys.length;
|
2851 |
+
var key;
|
2852 |
+
while (l > i) $defineProperty(it, key = keys[i++], P[key]);
|
2853 |
+
return it;
|
2854 |
+
};
|
2855 |
+
var $create = function create(it, P) {
|
2856 |
+
return P === undefined ? _create(it) : $defineProperties(_create(it), P);
|
2857 |
+
};
|
2858 |
+
var $propertyIsEnumerable = function propertyIsEnumerable(key) {
|
2859 |
+
var E = isEnum.call(this, key = toPrimitive(key, true));
|
2860 |
+
if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false;
|
2861 |
+
return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;
|
2862 |
+
};
|
2863 |
+
var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) {
|
2864 |
+
it = toIObject(it);
|
2865 |
+
key = toPrimitive(key, true);
|
2866 |
+
if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return;
|
2867 |
+
var D = gOPD(it, key);
|
2868 |
+
if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true;
|
2869 |
+
return D;
|
2870 |
+
};
|
2871 |
+
var $getOwnPropertyNames = function getOwnPropertyNames(it) {
|
2872 |
+
var names = gOPN(toIObject(it));
|
2873 |
+
var result = [];
|
2874 |
+
var i = 0;
|
2875 |
+
var key;
|
2876 |
+
while (names.length > i) {
|
2877 |
+
if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key);
|
2878 |
+
} return result;
|
2879 |
+
};
|
2880 |
+
var $getOwnPropertySymbols = function getOwnPropertySymbols(it) {
|
2881 |
+
var IS_OP = it === ObjectProto;
|
2882 |
+
var names = gOPN(IS_OP ? OPSymbols : toIObject(it));
|
2883 |
+
var result = [];
|
2884 |
+
var i = 0;
|
2885 |
+
var key;
|
2886 |
+
while (names.length > i) {
|
2887 |
+
if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]);
|
2888 |
+
} return result;
|
2889 |
+
};
|
2890 |
+
|
2891 |
+
// 19.4.1.1 Symbol([description])
|
2892 |
+
if (!USE_NATIVE) {
|
2893 |
+
$Symbol = function Symbol() {
|
2894 |
+
if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!');
|
2895 |
+
var tag = uid(arguments.length > 0 ? arguments[0] : undefined);
|
2896 |
+
var $set = function (value) {
|
2897 |
+
if (this === ObjectProto) $set.call(OPSymbols, value);
|
2898 |
+
if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
|
2899 |
+
setSymbolDesc(this, tag, createDesc(1, value));
|
2900 |
+
};
|
2901 |
+
if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set });
|
2902 |
+
return wrap(tag);
|
2903 |
+
};
|
2904 |
+
redefine($Symbol[PROTOTYPE], 'toString', function toString() {
|
2905 |
+
return this._k;
|
2906 |
+
});
|
2907 |
+
|
2908 |
+
$GOPD.f = $getOwnPropertyDescriptor;
|
2909 |
+
$DP.f = $defineProperty;
|
2910 |
+
__webpack_require__(74).f = gOPNExt.f = $getOwnPropertyNames;
|
2911 |
+
__webpack_require__(34).f = $propertyIsEnumerable;
|
2912 |
+
__webpack_require__(55).f = $getOwnPropertySymbols;
|
2913 |
+
|
2914 |
+
if (DESCRIPTORS && !__webpack_require__(39)) {
|
2915 |
+
redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);
|
2916 |
+
}
|
2917 |
+
|
2918 |
+
wksExt.f = function (name) {
|
2919 |
+
return wrap(wks(name));
|
2920 |
+
};
|
2921 |
+
}
|
2922 |
+
|
2923 |
+
$export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol });
|
2924 |
+
|
2925 |
+
for (var es6Symbols = (
|
2926 |
+
// 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14
|
2927 |
+
'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'
|
2928 |
+
).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]);
|
2929 |
+
|
2930 |
+
for (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]);
|
2931 |
+
|
2932 |
+
$export($export.S + $export.F * !USE_NATIVE, 'Symbol', {
|
2933 |
+
// 19.4.2.1 Symbol.for(key)
|
2934 |
+
'for': function (key) {
|
2935 |
+
return has(SymbolRegistry, key += '')
|
2936 |
+
? SymbolRegistry[key]
|
2937 |
+
: SymbolRegistry[key] = $Symbol(key);
|
2938 |
+
},
|
2939 |
+
// 19.4.2.5 Symbol.keyFor(sym)
|
2940 |
+
keyFor: function keyFor(sym) {
|
2941 |
+
if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!');
|
2942 |
+
for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key;
|
2943 |
+
},
|
2944 |
+
useSetter: function () { setter = true; },
|
2945 |
+
useSimple: function () { setter = false; }
|
2946 |
+
});
|
2947 |
+
|
2948 |
+
$export($export.S + $export.F * !USE_NATIVE, 'Object', {
|
2949 |
+
// 19.1.2.2 Object.create(O [, Properties])
|
2950 |
+
create: $create,
|
2951 |
+
// 19.1.2.4 Object.defineProperty(O, P, Attributes)
|
2952 |
+
defineProperty: $defineProperty,
|
2953 |
+
// 19.1.2.3 Object.defineProperties(O, Properties)
|
2954 |
+
defineProperties: $defineProperties,
|
2955 |
+
// 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
|
2956 |
+
getOwnPropertyDescriptor: $getOwnPropertyDescriptor,
|
2957 |
+
// 19.1.2.7 Object.getOwnPropertyNames(O)
|
2958 |
+
getOwnPropertyNames: $getOwnPropertyNames,
|
2959 |
+
// 19.1.2.8 Object.getOwnPropertySymbols(O)
|
2960 |
+
getOwnPropertySymbols: $getOwnPropertySymbols
|
2961 |
+
});
|
2962 |
+
|
2963 |
+
// 24.3.2 JSON.stringify(value [, replacer [, space]])
|
2964 |
+
$JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () {
|
2965 |
+
var S = $Symbol();
|
2966 |
+
// MS Edge converts symbol values to JSON as {}
|
2967 |
+
// WebKit converts symbol values to JSON as null
|
2968 |
+
// V8 throws on boxed symbols
|
2969 |
+
return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}';
|
2970 |
+
})), 'JSON', {
|
2971 |
+
stringify: function stringify(it) {
|
2972 |
+
var args = [it];
|
2973 |
+
var i = 1;
|
2974 |
+
var replacer, $replacer;
|
2975 |
+
while (arguments.length > i) args.push(arguments[i++]);
|
2976 |
+
$replacer = replacer = args[1];
|
2977 |
+
if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
|
2978 |
+
if (!isArray(replacer)) replacer = function (key, value) {
|
2979 |
+
if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
|
2980 |
+
if (!isSymbol(value)) return value;
|
2981 |
+
};
|
2982 |
+
args[1] = replacer;
|
2983 |
+
return _stringify.apply($JSON, args);
|
2984 |
+
}
|
2985 |
+
});
|
2986 |
+
|
2987 |
+
// 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)
|
2988 |
+
$Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__(20)($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);
|
2989 |
+
// 19.4.3.5 Symbol.prototype[@@toStringTag]
|
2990 |
+
setToStringTag($Symbol, 'Symbol');
|
2991 |
+
// 20.2.1.9 Math[@@toStringTag]
|
2992 |
+
setToStringTag(Math, 'Math', true);
|
2993 |
+
// 24.3.3 JSON[@@toStringTag]
|
2994 |
+
setToStringTag(global.JSON, 'JSON', true);
|
2995 |
+
|
2996 |
+
|
2997 |
+
/***/ }),
|
2998 |
+
/* 118 */
|
2999 |
+
/***/ (function(module, exports, __webpack_require__) {
|
3000 |
+
|
3001 |
+
var META = __webpack_require__(38)('meta');
|
3002 |
+
var isObject = __webpack_require__(18);
|
3003 |
+
var has = __webpack_require__(22);
|
3004 |
+
var setDesc = __webpack_require__(17).f;
|
3005 |
+
var id = 0;
|
3006 |
+
var isExtensible = Object.isExtensible || function () {
|
3007 |
+
return true;
|
3008 |
+
};
|
3009 |
+
var FREEZE = !__webpack_require__(25)(function () {
|
3010 |
+
return isExtensible(Object.preventExtensions({}));
|
3011 |
+
});
|
3012 |
+
var setMeta = function (it) {
|
3013 |
+
setDesc(it, META, { value: {
|
3014 |
+
i: 'O' + ++id, // object ID
|
3015 |
+
w: {} // weak collections IDs
|
3016 |
+
} });
|
3017 |
+
};
|
3018 |
+
var fastKey = function (it, create) {
|
3019 |
+
// return primitive with prefix
|
3020 |
+
if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
|
3021 |
+
if (!has(it, META)) {
|
3022 |
+
// can't set metadata to uncaught frozen object
|
3023 |
+
if (!isExtensible(it)) return 'F';
|
3024 |
+
// not necessary to add metadata
|
3025 |
+
if (!create) return 'E';
|
3026 |
+
// add missing metadata
|
3027 |
+
setMeta(it);
|
3028 |
+
// return object ID
|
3029 |
+
} return it[META].i;
|
3030 |
+
};
|
3031 |
+
var getWeak = function (it, create) {
|
3032 |
+
if (!has(it, META)) {
|
3033 |
+
// can't set metadata to uncaught frozen object
|
3034 |
+
if (!isExtensible(it)) return true;
|
3035 |
+
// not necessary to add metadata
|
3036 |
+
if (!create) return false;
|
3037 |
+
// add missing metadata
|
3038 |
+
setMeta(it);
|
3039 |
+
// return hash weak collections IDs
|
3040 |
+
} return it[META].w;
|
3041 |
+
};
|
3042 |
+
// add metadata on freeze-family methods calling
|
3043 |
+
var onFreeze = function (it) {
|
3044 |
+
if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it);
|
3045 |
+
return it;
|
3046 |
+
};
|
3047 |
+
var meta = module.exports = {
|
3048 |
+
KEY: META,
|
3049 |
+
NEED: false,
|
3050 |
+
fastKey: fastKey,
|
3051 |
+
getWeak: getWeak,
|
3052 |
+
onFreeze: onFreeze
|
3053 |
+
};
|
3054 |
+
|
3055 |
+
|
3056 |
+
/***/ }),
|
3057 |
+
/* 119 */
|
3058 |
+
/***/ (function(module, exports, __webpack_require__) {
|
3059 |
+
|
3060 |
+
// all enumerable object keys, includes symbols
|
3061 |
+
var getKeys = __webpack_require__(27);
|
3062 |
+
var gOPS = __webpack_require__(55);
|
3063 |
+
var pIE = __webpack_require__(34);
|
3064 |
+
module.exports = function (it) {
|
3065 |
+
var result = getKeys(it);
|
3066 |
+
var getSymbols = gOPS.f;
|
3067 |
+
if (getSymbols) {
|
3068 |
+
var symbols = getSymbols(it);
|
3069 |
+
var isEnum = pIE.f;
|
3070 |
+
var i = 0;
|
3071 |
+
var key;
|
3072 |
+
while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key);
|
3073 |
+
} return result;
|
3074 |
+
};
|
3075 |
+
|
3076 |
+
|
3077 |
+
/***/ }),
|
3078 |
+
/* 120 */
|
3079 |
+
/***/ (function(module, exports, __webpack_require__) {
|
3080 |
+
|
3081 |
+
// 7.2.2 IsArray(argument)
|
3082 |
+
var cof = __webpack_require__(28);
|
3083 |
+
module.exports = Array.isArray || function isArray(arg) {
|
3084 |
+
return cof(arg) == 'Array';
|
3085 |
+
};
|
3086 |
+
|
3087 |
+
|
3088 |
+
/***/ }),
|
3089 |
+
/* 121 */
|
3090 |
+
/***/ (function(module, exports, __webpack_require__) {
|
3091 |
+
|
3092 |
+
// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
|
3093 |
+
var toIObject = __webpack_require__(23);
|
3094 |
+
var gOPN = __webpack_require__(74).f;
|
3095 |
+
var toString = {}.toString;
|
3096 |
+
|
3097 |
+
var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
|
3098 |
+
? Object.getOwnPropertyNames(window) : [];
|
3099 |
+
|
3100 |
+
var getWindowNames = function (it) {
|
3101 |
+
try {
|
3102 |
+
return gOPN(it);
|
3103 |
+
} catch (e) {
|
3104 |
+
return windowNames.slice();
|
3105 |
+
}
|
3106 |
+
};
|
3107 |
+
|
3108 |
+
module.exports.f = function getOwnPropertyNames(it) {
|
3109 |
+
return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it));
|
3110 |
+
};
|
3111 |
+
|
3112 |
+
|
3113 |
+
/***/ }),
|
3114 |
+
/* 122 */
|
3115 |
+
/***/ (function(module, exports, __webpack_require__) {
|
3116 |
+
|
3117 |
+
__webpack_require__(59)('asyncIterator');
|
3118 |
+
|
3119 |
+
|
3120 |
+
/***/ }),
|
3121 |
+
/* 123 */
|
3122 |
+
/***/ (function(module, exports, __webpack_require__) {
|
3123 |
+
|
3124 |
+
__webpack_require__(59)('observable');
|
3125 |
+
|
3126 |
+
|
3127 |
+
/***/ }),
|
3128 |
+
/* 124 */
|
3129 |
+
/***/ (function(module, exports, __webpack_require__) {
|
3130 |
+
|
3131 |
+
module.exports = { "default": __webpack_require__(125), __esModule: true };
|
3132 |
+
|
3133 |
+
/***/ }),
|
3134 |
+
/* 125 */
|
3135 |
+
/***/ (function(module, exports, __webpack_require__) {
|
3136 |
+
|
3137 |
+
__webpack_require__(75);
|
3138 |
+
__webpack_require__(64);
|
3139 |
+
__webpack_require__(73);
|
3140 |
+
__webpack_require__(126);
|
3141 |
+
__webpack_require__(133);
|
3142 |
+
__webpack_require__(134);
|
3143 |
+
module.exports = __webpack_require__(12).Promise;
|
3144 |
+
|
3145 |
+
|
3146 |
+
/***/ }),
|
3147 |
+
/* 126 */
|
3148 |
+
/***/ (function(module, exports, __webpack_require__) {
|
3149 |
+
|
3150 |
+
"use strict";
|
3151 |
+
|
3152 |
+
var LIBRARY = __webpack_require__(39);
|
3153 |
+
var global = __webpack_require__(9);
|
3154 |
+
var ctx = __webpack_require__(31);
|
3155 |
+
var classof = __webpack_require__(76);
|
3156 |
+
var $export = __webpack_require__(14);
|
3157 |
+
var isObject = __webpack_require__(18);
|
3158 |
+
var aFunction = __webpack_require__(37);
|
3159 |
+
var anInstance = __webpack_require__(127);
|
3160 |
+
var forOf = __webpack_require__(128);
|
3161 |
+
var speciesConstructor = __webpack_require__(77);
|
3162 |
+
var task = __webpack_require__(78).set;
|
3163 |
+
var microtask = __webpack_require__(130)();
|
3164 |
+
var newPromiseCapabilityModule = __webpack_require__(60);
|
3165 |
+
var perform = __webpack_require__(79);
|
3166 |
+
var promiseResolve = __webpack_require__(80);
|
3167 |
+
var PROMISE = 'Promise';
|
3168 |
+
var TypeError = global.TypeError;
|
3169 |
+
var process = global.process;
|
3170 |
+
var $Promise = global[PROMISE];
|
3171 |
+
var isNode = classof(process) == 'process';
|
3172 |
+
var empty = function () { /* empty */ };
|
3173 |
+
var Internal, newGenericPromiseCapability, OwnPromiseCapability, Wrapper;
|
3174 |
+
var newPromiseCapability = newGenericPromiseCapability = newPromiseCapabilityModule.f;
|
3175 |
+
|
3176 |
+
var USE_NATIVE = !!function () {
|
3177 |
+
try {
|
3178 |
+
// correct subclassing with @@species support
|
3179 |
+
var promise = $Promise.resolve(1);
|
3180 |
+
var FakePromise = (promise.constructor = {})[__webpack_require__(10)('species')] = function (exec) {
|
3181 |
+
exec(empty, empty);
|
3182 |
+
};
|
3183 |
+
// unhandled rejections tracking support, NodeJS Promise without it fails @@species test
|
3184 |
+
return (isNode || typeof PromiseRejectionEvent == 'function') && promise.then(empty) instanceof FakePromise;
|
3185 |
+
} catch (e) { /* empty */ }
|
3186 |
+
}();
|
3187 |
+
|
3188 |
+
// helpers
|
3189 |
+
var isThenable = function (it) {
|
3190 |
+
var then;
|
3191 |
+
return isObject(it) && typeof (then = it.then) == 'function' ? then : false;
|
3192 |
+
};
|
3193 |
+
var notify = function (promise, isReject) {
|
3194 |
+
if (promise._n) return;
|
3195 |
+
promise._n = true;
|
3196 |
+
var chain = promise._c;
|
3197 |
+
microtask(function () {
|
3198 |
+
var value = promise._v;
|
3199 |
+
var ok = promise._s == 1;
|
3200 |
+
var i = 0;
|
3201 |
+
var run = function (reaction) {
|
3202 |
+
var handler = ok ? reaction.ok : reaction.fail;
|
3203 |
+
var resolve = reaction.resolve;
|
3204 |
+
var reject = reaction.reject;
|
3205 |
+
var domain = reaction.domain;
|
3206 |
+
var result, then, exited;
|
3207 |
+
try {
|
3208 |
+
if (handler) {
|
3209 |
+
if (!ok) {
|
3210 |
+
if (promise._h == 2) onHandleUnhandled(promise);
|
3211 |
+
promise._h = 1;
|
3212 |
+
}
|
3213 |
+
if (handler === true) result = value;
|
3214 |
+
else {
|
3215 |
+
if (domain) domain.enter();
|
3216 |
+
result = handler(value); // may throw
|
3217 |
+
if (domain) {
|
3218 |
+
domain.exit();
|
3219 |
+
exited = true;
|
3220 |
+
}
|
3221 |
+
}
|
3222 |
+
if (result === reaction.promise) {
|
3223 |
+
reject(TypeError('Promise-chain cycle'));
|
3224 |
+
} else if (then = isThenable(result)) {
|
3225 |
+
then.call(result, resolve, reject);
|
3226 |
+
} else resolve(result);
|
3227 |
+
} else reject(value);
|
3228 |
+
} catch (e) {
|
3229 |
+
if (domain && !exited) domain.exit();
|
3230 |
+
reject(e);
|
3231 |
+
}
|
3232 |
+
};
|
3233 |
+
while (chain.length > i) run(chain[i++]); // variable length - can't use forEach
|
3234 |
+
promise._c = [];
|
3235 |
+
promise._n = false;
|
3236 |
+
if (isReject && !promise._h) onUnhandled(promise);
|
3237 |
+
});
|
3238 |
+
};
|
3239 |
+
var onUnhandled = function (promise) {
|
3240 |
+
task.call(global, function () {
|
3241 |
+
var value = promise._v;
|
3242 |
+
var unhandled = isUnhandled(promise);
|
3243 |
+
var result, handler, console;
|
3244 |
+
if (unhandled) {
|
3245 |
+
result = perform(function () {
|
3246 |
+
if (isNode) {
|
3247 |
+
process.emit('unhandledRejection', value, promise);
|
3248 |
+
} else if (handler = global.onunhandledrejection) {
|
3249 |
+
handler({ promise: promise, reason: value });
|
3250 |
+
} else if ((console = global.console) && console.error) {
|
3251 |
+
console.error('Unhandled promise rejection', value);
|
3252 |
+
}
|
3253 |
+
});
|
3254 |
+
// Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
|
3255 |
+
promise._h = isNode || isUnhandled(promise) ? 2 : 1;
|
3256 |
+
} promise._a = undefined;
|
3257 |
+
if (unhandled && result.e) throw result.v;
|
3258 |
+
});
|
3259 |
+
};
|
3260 |
+
var isUnhandled = function (promise) {
|
3261 |
+
return promise._h !== 1 && (promise._a || promise._c).length === 0;
|
3262 |
+
};
|
3263 |
+
var onHandleUnhandled = function (promise) {
|
3264 |
+
task.call(global, function () {
|
3265 |
+
var handler;
|
3266 |
+
if (isNode) {
|
3267 |
+
process.emit('rejectionHandled', promise);
|
3268 |
+
} else if (handler = global.onrejectionhandled) {
|
3269 |
+
handler({ promise: promise, reason: promise._v });
|
3270 |
+
}
|
3271 |
+
});
|
3272 |
+
};
|
3273 |
+
var $reject = function (value) {
|
3274 |
+
var promise = this;
|
3275 |
+
if (promise._d) return;
|
3276 |
+
promise._d = true;
|
3277 |
+
promise = promise._w || promise; // unwrap
|
3278 |
+
promise._v = value;
|
3279 |
+
promise._s = 2;
|
3280 |
+
if (!promise._a) promise._a = promise._c.slice();
|
3281 |
+
notify(promise, true);
|
3282 |
+
};
|
3283 |
+
var $resolve = function (value) {
|
3284 |
+
var promise = this;
|
3285 |
+
var then;
|
3286 |
+
if (promise._d) return;
|
3287 |
+
promise._d = true;
|
3288 |
+
promise = promise._w || promise; // unwrap
|
3289 |
+
try {
|
3290 |
+
if (promise === value) throw TypeError("Promise can't be resolved itself");
|
3291 |
+
if (then = isThenable(value)) {
|
3292 |
+
microtask(function () {
|
3293 |
+
var wrapper = { _w: promise, _d: false }; // wrap
|
3294 |
+
try {
|
3295 |
+
then.call(value, ctx($resolve, wrapper, 1), ctx($reject, wrapper, 1));
|
3296 |
+
} catch (e) {
|
3297 |
+
$reject.call(wrapper, e);
|
3298 |
+
}
|
3299 |
+
});
|
3300 |
+
} else {
|
3301 |
+
promise._v = value;
|
3302 |
+
promise._s = 1;
|
3303 |
+
notify(promise, false);
|
3304 |
+
}
|
3305 |
+
} catch (e) {
|
3306 |
+
$reject.call({ _w: promise, _d: false }, e); // wrap
|
3307 |
+
}
|
3308 |
+
};
|
3309 |
+
|
3310 |
+
// constructor polyfill
|
3311 |
+
if (!USE_NATIVE) {
|
3312 |
+
// 25.4.3.1 Promise(executor)
|
3313 |
+
$Promise = function Promise(executor) {
|
3314 |
+
anInstance(this, $Promise, PROMISE, '_h');
|
3315 |
+
aFunction(executor);
|
3316 |
+
Internal.call(this);
|
3317 |
+
try {
|
3318 |
+
executor(ctx($resolve, this, 1), ctx($reject, this, 1));
|
3319 |
+
} catch (err) {
|
3320 |
+
$reject.call(this, err);
|
3321 |
+
}
|
3322 |
+
};
|
3323 |
+
// eslint-disable-next-line no-unused-vars
|
3324 |
+
Internal = function Promise(executor) {
|
3325 |
+
this._c = []; // <- awaiting reactions
|
3326 |
+
this._a = undefined; // <- checked in isUnhandled reactions
|
3327 |
+
this._s = 0; // <- state
|
3328 |
+
this._d = false; // <- done
|
3329 |
+
this._v = undefined; // <- value
|
3330 |
+
this._h = 0; // <- rejection state, 0 - default, 1 - handled, 2 - unhandled
|
3331 |
+
this._n = false; // <- notify
|
3332 |
+
};
|
3333 |
+
Internal.prototype = __webpack_require__(131)($Promise.prototype, {
|
3334 |
+
// 25.4.5.3 Promise.prototype.then(onFulfilled, onRejected)
|
3335 |
+
then: function then(onFulfilled, onRejected) {
|
3336 |
+
var reaction = newPromiseCapability(speciesConstructor(this, $Promise));
|
3337 |
+
reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true;
|
3338 |
+
reaction.fail = typeof onRejected == 'function' && onRejected;
|
3339 |
+
reaction.domain = isNode ? process.domain : undefined;
|
3340 |
+
this._c.push(reaction);
|
3341 |
+
if (this._a) this._a.push(reaction);
|
3342 |
+
if (this._s) notify(this, false);
|
3343 |
+
return reaction.promise;
|
3344 |
+
},
|
3345 |
+
// 25.4.5.1 Promise.prototype.catch(onRejected)
|
3346 |
+
'catch': function (onRejected) {
|
3347 |
+
return this.then(undefined, onRejected);
|
3348 |
+
}
|
3349 |
+
});
|
3350 |
+
OwnPromiseCapability = function () {
|
3351 |
+
var promise = new Internal();
|
3352 |
+
this.promise = promise;
|
3353 |
+
this.resolve = ctx($resolve, promise, 1);
|
3354 |
+
this.reject = ctx($reject, promise, 1);
|
3355 |
+
};
|
3356 |
+
newPromiseCapabilityModule.f = newPromiseCapability = function (C) {
|
3357 |
+
return C === $Promise || C === Wrapper
|
3358 |
+
? new OwnPromiseCapability(C)
|
3359 |
+
: newGenericPromiseCapability(C);
|
3360 |
+
};
|
3361 |
+
}
|
3362 |
+
|
3363 |
+
$export($export.G + $export.W + $export.F * !USE_NATIVE, { Promise: $Promise });
|
3364 |
+
__webpack_require__(40)($Promise, PROMISE);
|
3365 |
+
__webpack_require__(132)(PROMISE);
|
3366 |
+
Wrapper = __webpack_require__(12)[PROMISE];
|
3367 |
+
|
3368 |
+
// statics
|
3369 |
+
$export($export.S + $export.F * !USE_NATIVE, PROMISE, {
|
3370 |
+
// 25.4.4.5 Promise.reject(r)
|
3371 |
+
reject: function reject(r) {
|
3372 |
+
var capability = newPromiseCapability(this);
|
3373 |
+
var $$reject = capability.reject;
|
3374 |
+
$$reject(r);
|
3375 |
+
return capability.promise;
|
3376 |
+
}
|
3377 |
+
});
|
3378 |
+
$export($export.S + $export.F * (LIBRARY || !USE_NATIVE), PROMISE, {
|
3379 |
+
// 25.4.4.6 Promise.resolve(x)
|
3380 |
+
resolve: function resolve(x) {
|
3381 |
+
return promiseResolve(LIBRARY && this === Wrapper ? $Promise : this, x);
|
3382 |
+
}
|
3383 |
+
});
|
3384 |
+
$export($export.S + $export.F * !(USE_NATIVE && __webpack_require__(92)(function (iter) {
|
3385 |
+
$Promise.all(iter)['catch'](empty);
|
3386 |
+
})), PROMISE, {
|
3387 |
+
// 25.4.4.1 Promise.all(iterable)
|
3388 |
+
all: function all(iterable) {
|
3389 |
+
var C = this;
|
3390 |
+
var capability = newPromiseCapability(C);
|
3391 |
+
var resolve = capability.resolve;
|
3392 |
+
var reject = capability.reject;
|
3393 |
+
var result = perform(function () {
|
3394 |
+
var values = [];
|
3395 |
+
var index = 0;
|
3396 |
+
var remaining = 1;
|
3397 |
+
forOf(iterable, false, function (promise) {
|
3398 |
+
var $index = index++;
|
3399 |
+
var alreadyCalled = false;
|
3400 |
+
values.push(undefined);
|
3401 |
+
remaining++;
|
3402 |
+
C.resolve(promise).then(function (value) {
|
3403 |
+
if (alreadyCalled) return;
|
3404 |
+
alreadyCalled = true;
|
3405 |
+
values[$index] = value;
|
3406 |
+
--remaining || resolve(values);
|
3407 |
+
}, reject);
|
3408 |
+
});
|
3409 |
+
--remaining || resolve(values);
|
3410 |
+
});
|
3411 |
+
if (result.e) reject(result.v);
|
3412 |
+
return capability.promise;
|
3413 |
+
},
|
3414 |
+
// 25.4.4.4 Promise.race(iterable)
|
3415 |
+
race: function race(iterable) {
|
3416 |
+
var C = this;
|
3417 |
+
var capability = newPromiseCapability(C);
|
3418 |
+
var reject = capability.reject;
|
3419 |
+
var result = perform(function () {
|
3420 |
+
forOf(iterable, false, function (promise) {
|
3421 |
+
C.resolve(promise).then(capability.resolve, reject);
|
3422 |
+
});
|
3423 |
+
});
|
3424 |
+
if (result.e) reject(result.v);
|
3425 |
+
return capability.promise;
|
3426 |
+
}
|
3427 |
+
});
|
3428 |
+
|
3429 |
+
|
3430 |
+
/***/ }),
|
3431 |
+
/* 127 */
|
3432 |
+
/***/ (function(module, exports) {
|
3433 |
+
|
3434 |
+
module.exports = function (it, Constructor, name, forbiddenField) {
|
3435 |
+
if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) {
|
3436 |
+
throw TypeError(name + ': incorrect invocation!');
|
3437 |
+
} return it;
|
3438 |
+
};
|
3439 |
+
|
3440 |
+
|
3441 |
+
/***/ }),
|
3442 |
+
/* 128 */
|
3443 |
+
/***/ (function(module, exports, __webpack_require__) {
|
3444 |
+
|
3445 |
+
var ctx = __webpack_require__(31);
|
3446 |
+
var call = __webpack_require__(89);
|
3447 |
+
var isArrayIter = __webpack_require__(90);
|
3448 |
+
var anObject = __webpack_require__(15);
|
3449 |
+
var toLength = __webpack_require__(63);
|
3450 |
+
var getIterFn = __webpack_require__(91);
|
3451 |
+
var BREAK = {};
|
3452 |
+
var RETURN = {};
|
3453 |
+
var exports = module.exports = function (iterable, entries, fn, that, ITERATOR) {
|
3454 |
+
var iterFn = ITERATOR ? function () { return iterable; } : getIterFn(iterable);
|
3455 |
+
var f = ctx(fn, that, entries ? 2 : 1);
|
3456 |
+
var index = 0;
|
3457 |
+
var length, step, iterator, result;
|
3458 |
+
if (typeof iterFn != 'function') throw TypeError(iterable + ' is not iterable!');
|
3459 |
+
// fast case for arrays with default iterator
|
3460 |
+
if (isArrayIter(iterFn)) for (length = toLength(iterable.length); length > index; index++) {
|
3461 |
+
result = entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);
|
3462 |
+
if (result === BREAK || result === RETURN) return result;
|
3463 |
+
} else for (iterator = iterFn.call(iterable); !(step = iterator.next()).done;) {
|
3464 |
+
result = call(iterator, f, step.value, entries);
|
3465 |
+
if (result === BREAK || result === RETURN) return result;
|
3466 |
+
}
|
3467 |
+
};
|
3468 |
+
exports.BREAK = BREAK;
|
3469 |
+
exports.RETURN = RETURN;
|
3470 |
+
|
3471 |
+
|
3472 |
+
/***/ }),
|
3473 |
+
/* 129 */
|
3474 |
+
/***/ (function(module, exports) {
|
3475 |
+
|
3476 |
+
// fast apply, http://jsperf.lnkit.com/fast-apply/5
|
3477 |
+
module.exports = function (fn, args, that) {
|
3478 |
+
var un = that === undefined;
|
3479 |
+
switch (args.length) {
|
3480 |
+
case 0: return un ? fn()
|
3481 |
+
: fn.call(that);
|
3482 |
+
case 1: return un ? fn(args[0])
|
3483 |
+
: fn.call(that, args[0]);
|
3484 |
+
case 2: return un ? fn(args[0], args[1])
|
3485 |
+
: fn.call(that, args[0], args[1]);
|
3486 |
+
case 3: return un ? fn(args[0], args[1], args[2])
|
3487 |
+
: fn.call(that, args[0], args[1], args[2]);
|
3488 |
+
case 4: return un ? fn(args[0], args[1], args[2], args[3])
|
3489 |
+
: fn.call(that, args[0], args[1], args[2], args[3]);
|
3490 |
+
} return fn.apply(that, args);
|
3491 |
+
};
|
3492 |
+
|
3493 |
+
|
3494 |
+
/***/ }),
|
3495 |
+
/* 130 */
|
3496 |
+
/***/ (function(module, exports, __webpack_require__) {
|
3497 |
+
|
3498 |
+
var global = __webpack_require__(9);
|
3499 |
+
var macrotask = __webpack_require__(78).set;
|
3500 |
+
var Observer = global.MutationObserver || global.WebKitMutationObserver;
|
3501 |
+
var process = global.process;
|
3502 |
+
var Promise = global.Promise;
|
3503 |
+
var isNode = __webpack_require__(28)(process) == 'process';
|
3504 |
+
|
3505 |
+
module.exports = function () {
|
3506 |
+
var head, last, notify;
|
3507 |
+
|
3508 |
+
var flush = function () {
|
3509 |
+
var parent, fn;
|
3510 |
+
if (isNode && (parent = process.domain)) parent.exit();
|
3511 |
+
while (head) {
|
3512 |
+
fn = head.fn;
|
3513 |
+
head = head.next;
|
3514 |
+
try {
|
3515 |
+
fn();
|
3516 |
+
} catch (e) {
|
3517 |
+
if (head) notify();
|
3518 |
+
else last = undefined;
|
3519 |
+
throw e;
|
3520 |
+
}
|
3521 |
+
} last = undefined;
|
3522 |
+
if (parent) parent.enter();
|
3523 |
+
};
|
3524 |
+
|
3525 |
+
// Node.js
|
3526 |
+
if (isNode) {
|
3527 |
+
notify = function () {
|
3528 |
+
process.nextTick(flush);
|
3529 |
+
};
|
3530 |
+
// browsers with MutationObserver, except iOS Safari - https://github.com/zloirock/core-js/issues/339
|
3531 |
+
} else if (Observer && !(global.navigator && global.navigator.standalone)) {
|
3532 |
+
var toggle = true;
|
3533 |
+
var node = document.createTextNode('');
|
3534 |
+
new Observer(flush).observe(node, { characterData: true }); // eslint-disable-line no-new
|
3535 |
+
notify = function () {
|
3536 |
+
node.data = toggle = !toggle;
|
3537 |
+
};
|
3538 |
+
// environments with maybe non-completely correct, but existent Promise
|
3539 |
+
} else if (Promise && Promise.resolve) {
|
3540 |
+
var promise = Promise.resolve();
|
3541 |
+
notify = function () {
|
3542 |
+
promise.then(flush);
|
3543 |
+
};
|
3544 |
+
// for other environments - macrotask based on:
|
3545 |
+
// - setImmediate
|
3546 |
+
// - MessageChannel
|
3547 |
+
// - window.postMessag
|
3548 |
+
// - onreadystatechange
|
3549 |
+
// - setTimeout
|
3550 |
+
} else {
|
3551 |
+
notify = function () {
|
3552 |
+
// strange IE + webpack dev server bug - use .call(global)
|
3553 |
+
macrotask.call(global, flush);
|
3554 |
+
};
|
3555 |
+
}
|
3556 |
+
|
3557 |
+
return function (fn) {
|
3558 |
+
var task = { fn: fn, next: undefined };
|
3559 |
+
if (last) last.next = task;
|
3560 |
+
if (!head) {
|
3561 |
+
head = task;
|
3562 |
+
notify();
|
3563 |
+
} last = task;
|
3564 |
+
};
|
3565 |
+
};
|
3566 |
+
|
3567 |
+
|
3568 |
+
/***/ }),
|
3569 |
+
/* 131 */
|
3570 |
+
/***/ (function(module, exports, __webpack_require__) {
|
3571 |
+
|
3572 |
+
var hide = __webpack_require__(20);
|
3573 |
+
module.exports = function (target, src, safe) {
|
3574 |
+
for (var key in src) {
|
3575 |
+
if (safe && target[key]) target[key] = src[key];
|
3576 |
+
else hide(target, key, src[key]);
|
3577 |
+
} return target;
|
3578 |
+
};
|
3579 |
+
|
3580 |
+
|
3581 |
+
/***/ }),
|
3582 |
+
/* 132 */
|
3583 |
+
/***/ (function(module, exports, __webpack_require__) {
|
3584 |
+
|
3585 |
+
"use strict";
|
3586 |
+
|
3587 |
+
var global = __webpack_require__(9);
|
3588 |
+
var core = __webpack_require__(12);
|
3589 |
+
var dP = __webpack_require__(17);
|
3590 |
+
var DESCRIPTORS = __webpack_require__(21);
|
3591 |
+
var SPECIES = __webpack_require__(10)('species');
|
3592 |
+
|
3593 |
+
module.exports = function (KEY) {
|
3594 |
+
var C = typeof core[KEY] == 'function' ? core[KEY] : global[KEY];
|
3595 |
+
if (DESCRIPTORS && C && !C[SPECIES]) dP.f(C, SPECIES, {
|
3596 |
+
configurable: true,
|
3597 |
+
get: function () { return this; }
|
3598 |
+
});
|
3599 |
+
};
|
3600 |
+
|
3601 |
+
|
3602 |
+
/***/ }),
|
3603 |
+
/* 133 */
|
3604 |
+
/***/ (function(module, exports, __webpack_require__) {
|
3605 |
+
|
3606 |
+
"use strict";
|
3607 |
+
// https://github.com/tc39/proposal-promise-finally
|
3608 |
+
|
3609 |
+
var $export = __webpack_require__(14);
|
3610 |
+
var core = __webpack_require__(12);
|
3611 |
+
var global = __webpack_require__(9);
|
3612 |
+
var speciesConstructor = __webpack_require__(77);
|
3613 |
+
var promiseResolve = __webpack_require__(80);
|
3614 |
+
|
3615 |
+
$export($export.P + $export.R, 'Promise', { 'finally': function (onFinally) {
|
3616 |
+
var C = speciesConstructor(this, core.Promise || global.Promise);
|
3617 |
+
var isFunction = typeof onFinally == 'function';
|
3618 |
+
return this.then(
|
3619 |
+
isFunction ? function (x) {
|
3620 |
+
return promiseResolve(C, onFinally()).then(function () { return x; });
|
3621 |
+
} : onFinally,
|
3622 |
+
isFunction ? function (e) {
|
3623 |
+
return promiseResolve(C, onFinally()).then(function () { throw e; });
|
3624 |
+
} : onFinally
|
3625 |
+
);
|
3626 |
+
} });
|
3627 |
+
|
3628 |
+
|
3629 |
+
/***/ }),
|
3630 |
+
/* 134 */
|
3631 |
+
/***/ (function(module, exports, __webpack_require__) {
|
3632 |
+
|
3633 |
+
"use strict";
|
3634 |
+
|
3635 |
+
// https://github.com/tc39/proposal-promise-try
|
3636 |
+
var $export = __webpack_require__(14);
|
3637 |
+
var newPromiseCapability = __webpack_require__(60);
|
3638 |
+
var perform = __webpack_require__(79);
|
3639 |
+
|
3640 |
+
$export($export.S, 'Promise', { 'try': function (callbackfn) {
|
3641 |
+
var promiseCapability = newPromiseCapability.f(this);
|
3642 |
+
var result = perform(callbackfn);
|
3643 |
+
(result.e ? promiseCapability.reject : promiseCapability.resolve)(result.v);
|
3644 |
+
return promiseCapability.promise;
|
3645 |
+
} });
|
3646 |
+
|
3647 |
+
|
3648 |
+
/***/ }),
|
3649 |
+
/* 135 */
|
3650 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
3651 |
+
|
3652 |
+
"use strict";
|
3653 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Accordion__ = __webpack_require__(350);
|
3654 |
+
/* unused harmony reexport Accordion */
|
3655 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Alert__ = __webpack_require__(362);
|
3656 |
+
/* unused harmony reexport Alert */
|
3657 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Badge__ = __webpack_require__(365);
|
3658 |
+
/* unused harmony reexport Badge */
|
3659 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__Breadcrumb__ = __webpack_require__(366);
|
3660 |
+
/* unused harmony reexport Breadcrumb */
|
3661 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__BreadcrumbItem__ = __webpack_require__(221);
|
3662 |
+
/* unused harmony reexport BreadcrumbItem */
|
3663 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__Button__ = __webpack_require__(136);
|
3664 |
+
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_5__Button__["a"]; });
|
3665 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__ButtonGroup__ = __webpack_require__(178);
|
3666 |
+
/* unused harmony reexport ButtonGroup */
|
3667 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__ButtonToolbar__ = __webpack_require__(367);
|
3668 |
+
/* unused harmony reexport ButtonToolbar */
|
3669 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__Carousel__ = __webpack_require__(368);
|
3670 |
+
/* unused harmony reexport Carousel */
|
3671 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__CarouselItem__ = __webpack_require__(222);
|
3672 |
+
/* unused harmony reexport CarouselItem */
|
3673 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__Checkbox__ = __webpack_require__(378);
|
3674 |
+
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_10__Checkbox__["a"]; });
|
3675 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__Clearfix__ = __webpack_require__(379);
|
3676 |
+
/* unused harmony reexport Clearfix */
|
3677 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__CloseButton__ = __webpack_require__(177);
|
3678 |
+
/* unused harmony reexport CloseButton */
|
3679 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__ControlLabel__ = __webpack_require__(380);
|
3680 |
+
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return __WEBPACK_IMPORTED_MODULE_13__ControlLabel__["a"]; });
|
3681 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__Col__ = __webpack_require__(381);
|
3682 |
+
/* unused harmony reexport Col */
|
3683 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__Collapse__ = __webpack_require__(181);
|
3684 |
+
/* unused harmony reexport Collapse */
|
3685 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__Dropdown__ = __webpack_require__(155);
|
3686 |
+
/* unused harmony reexport Dropdown */
|
3687 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_17__DropdownButton__ = __webpack_require__(388);
|
3688 |
+
/* unused harmony reexport DropdownButton */
|
3689 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_18__Fade__ = __webpack_require__(158);
|
3690 |
+
/* unused harmony reexport Fade */
|
3691 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_19__Form__ = __webpack_require__(389);
|
3692 |
+
/* unused harmony reexport Form */
|
3693 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_20__FormControl__ = __webpack_require__(390);
|
3694 |
+
/* unused harmony reexport FormControl */
|
3695 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_21__FormGroup__ = __webpack_require__(393);
|
3696 |
+
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return __WEBPACK_IMPORTED_MODULE_21__FormGroup__["a"]; });
|
3697 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_22__Glyphicon__ = __webpack_require__(180);
|
3698 |
+
/* unused harmony reexport Glyphicon */
|
3699 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_23__Grid__ = __webpack_require__(230);
|
3700 |
+
/* unused harmony reexport Grid */
|
3701 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_24__HelpBlock__ = __webpack_require__(394);
|
3702 |
+
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return __WEBPACK_IMPORTED_MODULE_24__HelpBlock__["a"]; });
|
3703 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_25__Image__ = __webpack_require__(395);
|
3704 |
+
/* unused harmony reexport Image */
|
3705 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_26__InputGroup__ = __webpack_require__(396);
|
3706 |
+
/* unused harmony reexport InputGroup */
|
3707 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_27__Jumbotron__ = __webpack_require__(399);
|
3708 |
+
/* unused harmony reexport Jumbotron */
|
3709 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_28__Label__ = __webpack_require__(400);
|
3710 |
+
/* unused harmony reexport Label */
|
3711 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_29__ListGroup__ = __webpack_require__(401);
|
3712 |
+
/* unused harmony reexport ListGroup */
|
3713 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_30__ListGroupItem__ = __webpack_require__(231);
|
3714 |
+
/* unused harmony reexport ListGroupItem */
|
3715 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_31__Media__ = __webpack_require__(159);
|
3716 |
+
/* unused harmony reexport Media */
|
3717 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_32__MenuItem__ = __webpack_require__(408);
|
3718 |
+
/* unused harmony reexport MenuItem */
|
3719 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_33__Modal__ = __webpack_require__(409);
|
3720 |
+
/* unused harmony reexport Modal */
|
3721 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_34__ModalBody__ = __webpack_require__(236);
|
3722 |
+
/* unused harmony reexport ModalBody */
|
3723 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_35__ModalFooter__ = __webpack_require__(237);
|
3724 |
+
/* unused harmony reexport ModalFooter */
|
3725 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_36__ModalHeader__ = __webpack_require__(238);
|
3726 |
+
/* unused harmony reexport ModalHeader */
|
3727 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_37__ModalTitle__ = __webpack_require__(239);
|
3728 |
+
/* unused harmony reexport ModalTitle */
|
3729 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_38__Nav__ = __webpack_require__(240);
|
3730 |
+
/* unused harmony reexport Nav */
|
3731 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_39__Navbar__ = __webpack_require__(425);
|
3732 |
+
/* unused harmony reexport Navbar */
|
3733 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_40__NavbarBrand__ = __webpack_require__(241);
|
3734 |
+
/* unused harmony reexport NavbarBrand */
|
3735 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_41__NavDropdown__ = __webpack_require__(429);
|
3736 |
+
/* unused harmony reexport NavDropdown */
|
3737 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_42__NavItem__ = __webpack_require__(242);
|
3738 |
+
/* unused harmony reexport NavItem */
|
3739 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_43__Overlay__ = __webpack_require__(243);
|
3740 |
+
/* unused harmony reexport Overlay */
|
3741 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_44__OverlayTrigger__ = __webpack_require__(436);
|
3742 |
+
/* unused harmony reexport OverlayTrigger */
|
3743 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_45__PageHeader__ = __webpack_require__(437);
|
3744 |
+
/* unused harmony reexport PageHeader */
|
3745 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_46__PageItem__ = __webpack_require__(438);
|
3746 |
+
/* unused harmony reexport PageItem */
|
3747 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_47__Pager__ = __webpack_require__(440);
|
3748 |
+
/* unused harmony reexport Pager */
|
3749 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_48__Pagination__ = __webpack_require__(441);
|
3750 |
+
/* unused harmony reexport Pagination */
|
3751 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_49__Panel__ = __webpack_require__(443);
|
3752 |
+
/* unused harmony reexport Panel */
|
3753 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_50__PanelGroup__ = __webpack_require__(217);
|
3754 |
+
/* unused harmony reexport PanelGroup */
|
3755 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_51__Popover__ = __webpack_require__(449);
|
3756 |
+
/* unused harmony reexport Popover */
|
3757 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_52__ProgressBar__ = __webpack_require__(450);
|
3758 |
+
/* unused harmony reexport ProgressBar */
|
3759 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_53__Radio__ = __webpack_require__(451);
|
3760 |
+
/* unused harmony reexport Radio */
|
3761 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_54__ResponsiveEmbed__ = __webpack_require__(452);
|
3762 |
+
/* unused harmony reexport ResponsiveEmbed */
|
3763 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_55__Row__ = __webpack_require__(453);
|
3764 |
+
/* unused harmony reexport Row */
|
3765 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_56__SafeAnchor__ = __webpack_require__(61);
|
3766 |
+
/* unused harmony reexport SafeAnchor */
|
3767 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_57__SplitButton__ = __webpack_require__(454);
|
3768 |
+
/* unused harmony reexport SplitButton */
|
3769 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_58__Tab__ = __webpack_require__(456);
|
3770 |
+
/* unused harmony reexport Tab */
|
3771 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_59__TabContainer__ = __webpack_require__(186);
|
3772 |
+
/* unused harmony reexport TabContainer */
|
3773 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_60__TabContent__ = __webpack_require__(187);
|
3774 |
+
/* unused harmony reexport TabContent */
|
3775 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_61__Table__ = __webpack_require__(457);
|
3776 |
+
/* unused harmony reexport Table */
|
3777 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_62__TabPane__ = __webpack_require__(249);
|
3778 |
+
/* unused harmony reexport TabPane */
|
3779 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_63__Tabs__ = __webpack_require__(458);
|
3780 |
+
/* unused harmony reexport Tabs */
|
3781 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_64__Thumbnail__ = __webpack_require__(459);
|
3782 |
+
/* unused harmony reexport Thumbnail */
|
3783 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_65__ToggleButton__ = __webpack_require__(250);
|
3784 |
+
/* unused harmony reexport ToggleButton */
|
3785 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_66__ToggleButtonGroup__ = __webpack_require__(460);
|
3786 |
+
/* unused harmony reexport ToggleButtonGroup */
|
3787 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_67__Tooltip__ = __webpack_require__(461);
|
3788 |
+
/* unused harmony reexport Tooltip */
|
3789 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_68__Well__ = __webpack_require__(462);
|
3790 |
+
/* unused harmony reexport Well */
|
3791 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_69__utils__ = __webpack_require__(463);
|
3792 |
+
/* unused harmony reexport utils */
|
3793 |
+
|
3794 |
+
|
3795 |
+
|
3796 |
+
|
3797 |
+
|
3798 |
+
|
3799 |
+
|
3800 |
+
|
3801 |
+
|
3802 |
+
|
3803 |
+
|
3804 |
+
|
3805 |
+
|
3806 |
+
|
3807 |
+
|
3808 |
+
|
3809 |
+
|
3810 |
+
|
3811 |
+
|
3812 |
+
|
3813 |
+
|
3814 |
+
|
3815 |
+
|
3816 |
+
|
3817 |
+
|
3818 |
+
|
3819 |
+
|
3820 |
+
|
3821 |
+
|
3822 |
+
|
3823 |
+
|
3824 |
+
|
3825 |
+
|
3826 |
+
|
3827 |
+
|
3828 |
+
|
3829 |
+
|
3830 |
+
|
3831 |
+
|
3832 |
+
|
3833 |
+
|
3834 |
+
|
3835 |
+
|
3836 |
+
|
3837 |
+
|
3838 |
+
|
3839 |
+
|
3840 |
+
|
3841 |
+
|
3842 |
+
|
3843 |
+
|
3844 |
+
|
3845 |
+
|
3846 |
+
|
3847 |
+
|
3848 |
+
|
3849 |
+
|
3850 |
+
|
3851 |
+
|
3852 |
+
|
3853 |
+
|
3854 |
+
|
3855 |
+
|
3856 |
+
|
3857 |
+
|
3858 |
+
|
3859 |
+
|
3860 |
+
|
3861 |
+
|
3862 |
+
|
3863 |
+
|
3864 |
+
|
3865 |
+
|
3866 |
+
|
3867 |
+
|
3868 |
+
|
3869 |
+
|
3870 |
+
|
3871 |
+
|
3872 |
+
|
3873 |
+
|
3874 |
+
|
3875 |
+
|
3876 |
+
|
3877 |
+
|
3878 |
+
|
3879 |
+
|
3880 |
+
|
3881 |
+
|
3882 |
+
|
3883 |
+
|
3884 |
+
|
3885 |
+
|
3886 |
+
|
3887 |
+
|
3888 |
+
|
3889 |
+
|
3890 |
+
|
3891 |
+
|
3892 |
+
|
3893 |
+
|
3894 |
+
|
3895 |
+
|
3896 |
+
|
3897 |
+
|
3898 |
+
|
3899 |
+
|
3900 |
+
|
3901 |
+
|
3902 |
+
|
3903 |
+
|
3904 |
+
|
3905 |
+
|
3906 |
+
|
3907 |
+
|
3908 |
+
|
3909 |
+
|
3910 |
+
|
3911 |
+
|
3912 |
+
|
3913 |
+
|
3914 |
+
|
3915 |
+
|
3916 |
+
|
3917 |
+
|
3918 |
+
|
3919 |
+
|
3920 |
+
|
3921 |
+
|
3922 |
+
|
3923 |
+
|
3924 |
+
|
3925 |
+
|
3926 |
+
|
3927 |
+
|
3928 |
+
|
3929 |
+
|
3930 |
+
|
3931 |
+
|
3932 |
+
|
3933 |
+
|
3934 |
+
/***/ }),
|
3935 |
+
/* 136 */
|
3936 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
3937 |
+
|
3938 |
+
"use strict";
|
3939 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_values__ = __webpack_require__(93);
|
3940 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_values___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_values__);
|
3941 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(6);
|
3942 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__);
|
3943 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_extends__ = __webpack_require__(1);
|
3944 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_extends__);
|
3945 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_classCallCheck__ = __webpack_require__(2);
|
3946 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_classCallCheck__);
|
3947 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(3);
|
3948 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn__);
|
3949 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits__ = __webpack_require__(4);
|
3950 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits__);
|
3951 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_classnames__ = __webpack_require__(7);
|
3952 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_classnames__);
|
3953 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_react__ = __webpack_require__(0);
|
3954 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_react__);
|
3955 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_prop_types__ = __webpack_require__(5);
|
3956 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_prop_types__);
|
3957 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_prop_types_extra_lib_elementType__ = __webpack_require__(16);
|
3958 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_prop_types_extra_lib_elementType___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_prop_types_extra_lib_elementType__);
|
3959 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__utils_bootstrapUtils__ = __webpack_require__(8);
|
3960 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__utils_StyleConfig__ = __webpack_require__(32);
|
3961 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__SafeAnchor__ = __webpack_require__(61);
|
3962 |
+
|
3963 |
+
|
3964 |
+
|
3965 |
+
|
3966 |
+
|
3967 |
+
|
3968 |
+
|
3969 |
+
|
3970 |
+
|
3971 |
+
|
3972 |
+
|
3973 |
+
|
3974 |
+
|
3975 |
+
|
3976 |
+
|
3977 |
+
|
3978 |
+
var propTypes = {
|
3979 |
+
active: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.bool,
|
3980 |
+
disabled: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.bool,
|
3981 |
+
block: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.bool,
|
3982 |
+
onClick: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.func,
|
3983 |
+
componentClass: __WEBPACK_IMPORTED_MODULE_9_prop_types_extra_lib_elementType___default.a,
|
3984 |
+
href: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.string,
|
3985 |
+
/**
|
3986 |
+
* Defines HTML button type attribute
|
3987 |
+
* @defaultValue 'button'
|
3988 |
+
*/
|
3989 |
+
type: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.oneOf(['button', 'reset', 'submit'])
|
3990 |
+
};
|
3991 |
+
|
3992 |
+
var defaultProps = {
|
3993 |
+
active: false,
|
3994 |
+
block: false,
|
3995 |
+
disabled: false
|
3996 |
+
};
|
3997 |
+
|
3998 |
+
var Button = function (_React$Component) {
|
3999 |
+
__WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits___default()(Button, _React$Component);
|
4000 |
+
|
4001 |
+
function Button() {
|
4002 |
+
__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_classCallCheck___default()(this, Button);
|
4003 |
+
|
4004 |
+
return __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.apply(this, arguments));
|
4005 |
+
}
|
4006 |
+
|
4007 |
+
Button.prototype.renderAnchor = function renderAnchor(elementProps, className) {
|
4008 |
+
return __WEBPACK_IMPORTED_MODULE_7_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_12__SafeAnchor__["a" /* default */], __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_extends___default()({}, elementProps, {
|
4009 |
+
className: __WEBPACK_IMPORTED_MODULE_6_classnames___default()(className, elementProps.disabled && 'disabled')
|
4010 |
+
}));
|
4011 |
+
};
|
4012 |
+
|
4013 |
+
Button.prototype.renderButton = function renderButton(_ref, className) {
|
4014 |
+
var componentClass = _ref.componentClass,
|
4015 |
+
elementProps = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_ref, ['componentClass']);
|
4016 |
+
|
4017 |
+
var Component = componentClass || 'button';
|
4018 |
+
|
4019 |
+
return __WEBPACK_IMPORTED_MODULE_7_react___default.a.createElement(Component, __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_extends___default()({}, elementProps, {
|
4020 |
+
type: elementProps.type || 'button',
|
4021 |
+
className: className
|
4022 |
+
}));
|
4023 |
+
};
|
4024 |
+
|
4025 |
+
Button.prototype.render = function render() {
|
4026 |
+
var _extends2;
|
4027 |
+
|
4028 |
+
var _props = this.props,
|
4029 |
+
active = _props.active,
|
4030 |
+
block = _props.block,
|
4031 |
+
className = _props.className,
|
4032 |
+
props = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default()(_props, ['active', 'block', 'className']);
|
4033 |
+
|
4034 |
+
var _splitBsProps = Object(__WEBPACK_IMPORTED_MODULE_10__utils_bootstrapUtils__["f" /* splitBsProps */])(props),
|
4035 |
+
bsProps = _splitBsProps[0],
|
4036 |
+
elementProps = _splitBsProps[1];
|
4037 |
+
|
4038 |
+
var classes = __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_extends___default()({}, Object(__WEBPACK_IMPORTED_MODULE_10__utils_bootstrapUtils__["d" /* getClassSet */])(bsProps), (_extends2 = {
|
4039 |
+
active: active
|
4040 |
+
}, _extends2[Object(__WEBPACK_IMPORTED_MODULE_10__utils_bootstrapUtils__["e" /* prefix */])(bsProps, 'block')] = block, _extends2));
|
4041 |
+
var fullClassName = __WEBPACK_IMPORTED_MODULE_6_classnames___default()(className, classes);
|
4042 |
+
|
4043 |
+
if (elementProps.href) {
|
4044 |
+
return this.renderAnchor(elementProps, fullClassName);
|
4045 |
+
}
|
4046 |
+
|
4047 |
+
return this.renderButton(elementProps, fullClassName);
|
4048 |
+
};
|
4049 |
+
|
4050 |
+
return Button;
|
4051 |
+
}(__WEBPACK_IMPORTED_MODULE_7_react___default.a.Component);
|
4052 |
+
|
4053 |
+
Button.propTypes = propTypes;
|
4054 |
+
Button.defaultProps = defaultProps;
|
4055 |
+
|
4056 |
+
/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_10__utils_bootstrapUtils__["a" /* bsClass */])('btn', Object(__WEBPACK_IMPORTED_MODULE_10__utils_bootstrapUtils__["b" /* bsSizes */])([__WEBPACK_IMPORTED_MODULE_11__utils_StyleConfig__["c" /* Size */].LARGE, __WEBPACK_IMPORTED_MODULE_11__utils_StyleConfig__["c" /* Size */].SMALL, __WEBPACK_IMPORTED_MODULE_11__utils_StyleConfig__["c" /* Size */].XSMALL], Object(__WEBPACK_IMPORTED_MODULE_10__utils_bootstrapUtils__["c" /* bsStyles */])([].concat(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_values___default()(__WEBPACK_IMPORTED_MODULE_11__utils_StyleConfig__["d" /* State */]), [__WEBPACK_IMPORTED_MODULE_11__utils_StyleConfig__["e" /* Style */].DEFAULT, __WEBPACK_IMPORTED_MODULE_11__utils_StyleConfig__["e" /* Style */].PRIMARY, __WEBPACK_IMPORTED_MODULE_11__utils_StyleConfig__["e" /* Style */].LINK]), __WEBPACK_IMPORTED_MODULE_11__utils_StyleConfig__["e" /* Style */].DEFAULT, Button))));
|
4057 |
+
|
4058 |
+
/***/ }),
|
4059 |
+
/* 137 */
|
4060 |
+
/***/ (function(module, exports, __webpack_require__) {
|
4061 |
+
|
4062 |
+
"use strict";
|
4063 |
+
|
4064 |
+
|
4065 |
+
Object.defineProperty(exports, "__esModule", {
|
4066 |
+
value: true
|
4067 |
+
});
|
4068 |
+
exports.default = style;
|
4069 |
+
|
4070 |
+
var _camelizeStyle = __webpack_require__(223);
|
4071 |
+
|
4072 |
+
var _camelizeStyle2 = _interopRequireDefault(_camelizeStyle);
|
4073 |
+
|
4074 |
+
var _hyphenateStyle = __webpack_require__(373);
|
4075 |
+
|
4076 |
+
var _hyphenateStyle2 = _interopRequireDefault(_hyphenateStyle);
|
4077 |
+
|
4078 |
+
var _getComputedStyle2 = __webpack_require__(375);
|
4079 |
+
|
4080 |
+
var _getComputedStyle3 = _interopRequireDefault(_getComputedStyle2);
|
4081 |
+
|
4082 |
+
var _removeStyle = __webpack_require__(376);
|
4083 |
+
|
4084 |
+
var _removeStyle2 = _interopRequireDefault(_removeStyle);
|
4085 |
+
|
4086 |
+
var _properties = __webpack_require__(179);
|
4087 |
+
|
4088 |
+
var _isTransform = __webpack_require__(377);
|
4089 |
+
|
4090 |
+
var _isTransform2 = _interopRequireDefault(_isTransform);
|
4091 |
+
|
4092 |
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
4093 |
+
|
4094 |
+
function style(node, property, value) {
|
4095 |
+
var css = '';
|
4096 |
+
var transforms = '';
|
4097 |
+
var props = property;
|
4098 |
+
|
4099 |
+
if (typeof property === 'string') {
|
4100 |
+
if (value === undefined) {
|
4101 |
+
return node.style[(0, _camelizeStyle2.default)(property)] || (0, _getComputedStyle3.default)(node).getPropertyValue((0, _hyphenateStyle2.default)(property));
|
4102 |
+
} else {
|
4103 |
+
(props = {})[property] = value;
|
4104 |
+
}
|
4105 |
+
}
|
4106 |
+
|
4107 |
+
Object.keys(props).forEach(function (key) {
|
4108 |
+
var value = props[key];
|
4109 |
+
if (!value && value !== 0) {
|
4110 |
+
(0, _removeStyle2.default)(node, (0, _hyphenateStyle2.default)(key));
|
4111 |
+
} else if ((0, _isTransform2.default)(key)) {
|
4112 |
+
transforms += key + '(' + value + ') ';
|
4113 |
+
} else {
|
4114 |
+
css += (0, _hyphenateStyle2.default)(key) + ': ' + value + ';';
|
4115 |
+
}
|
4116 |
+
});
|
4117 |
+
|
4118 |
+
if (transforms) {
|
4119 |
+
css += _properties.transform + ': ' + transforms + ';';
|
4120 |
+
}
|
4121 |
+
|
4122 |
+
node.style.cssText += ';' + css;
|
4123 |
+
}
|
4124 |
+
module.exports = exports['default'];
|
4125 |
+
|
4126 |
+
/***/ }),
|
4127 |
+
/* 138 */,
|
4128 |
+
/* 139 */,
|
4129 |
+
/* 140 */,
|
4130 |
+
/* 141 */,
|
4131 |
+
/* 142 */,
|
4132 |
+
/* 143 */,
|
4133 |
+
/* 144 */,
|
4134 |
+
/* 145 */
|
4135 |
+
/***/ (function(module, exports, __webpack_require__) {
|
4136 |
+
|
4137 |
+
"use strict";
|
4138 |
+
/**
|
4139 |
+
* Copyright (c) 2013-present, Facebook, Inc.
|
4140 |
+
*
|
4141 |
+
* This source code is licensed under the MIT license found in the
|
4142 |
+
* LICENSE file in the root directory of this source tree.
|
4143 |
+
*
|
4144 |
+
*/
|
4145 |
+
|
4146 |
+
|
4147 |
+
|
4148 |
+
/**
|
4149 |
+
* Use invariant() to assert state which your program assumes to be true.
|
4150 |
+
*
|
4151 |
+
* Provide sprintf-style format (only %s is supported) and arguments
|
4152 |
+
* to provide information about what broke and what you were
|
4153 |
+
* expecting.
|
4154 |
+
*
|
4155 |
+
* The invariant message will be stripped in production, but the invariant
|
4156 |
+
* will remain to ensure logic does not differ in production.
|
4157 |
+
*/
|
4158 |
+
|
4159 |
+
var validateFormat = function validateFormat(format) {};
|
4160 |
+
|
4161 |
+
if (true) {
|
4162 |
+
validateFormat = function validateFormat(format) {
|
4163 |
+
if (format === undefined) {
|
4164 |
+
throw new Error('invariant requires an error message argument');
|
4165 |
+
}
|
4166 |
+
};
|
4167 |
+
}
|
4168 |
+
|
4169 |
+
function invariant(condition, format, a, b, c, d, e, f) {
|
4170 |
+
validateFormat(format);
|
4171 |
+
|
4172 |
+
if (!condition) {
|
4173 |
+
var error;
|
4174 |
+
if (format === undefined) {
|
4175 |
+
error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');
|
4176 |
+
} else {
|
4177 |
+
var args = [a, b, c, d, e, f];
|
4178 |
+
var argIndex = 0;
|
4179 |
+
error = new Error(format.replace(/%s/g, function () {
|
4180 |
+
return args[argIndex++];
|
4181 |
+
}));
|
4182 |
+
error.name = 'Invariant Violation';
|
4183 |
+
}
|
4184 |
+
|
4185 |
+
error.framesToPop = 1; // we don't care about invariant's own frame
|
4186 |
+
throw error;
|
4187 |
+
}
|
4188 |
+
}
|
4189 |
+
|
4190 |
+
module.exports = invariant;
|
4191 |
+
|
4192 |
+
/***/ }),
|
4193 |
+
/* 146 */
|
4194 |
+
/***/ (function(module, exports, __webpack_require__) {
|
4195 |
+
|
4196 |
+
"use strict";
|
4197 |
+
/**
|
4198 |
+
* Copyright (c) 2014-present, Facebook, Inc.
|
4199 |
+
*
|
4200 |
+
* This source code is licensed under the MIT license found in the
|
4201 |
+
* LICENSE file in the root directory of this source tree.
|
4202 |
+
*
|
4203 |
+
*/
|
4204 |
+
|
4205 |
+
|
4206 |
+
|
4207 |
+
var emptyFunction = __webpack_require__(147);
|
4208 |
+
|
4209 |
+
/**
|
4210 |
+
* Similar to invariant but only logs a warning if the condition is not met.
|
4211 |
+
* This can be used to log issues in development environments in critical
|
4212 |
+
* paths. Removing the logging code for production environments will keep the
|
4213 |
+
* same logic and follow the same code paths.
|
4214 |
+
*/
|
4215 |
+
|
4216 |
+
var warning = emptyFunction;
|
4217 |
+
|
4218 |
+
if (true) {
|
4219 |
+
var printWarning = function printWarning(format) {
|
4220 |
+
for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
4221 |
+
args[_key - 1] = arguments[_key];
|
4222 |
+
}
|
4223 |
+
|
4224 |
+
var argIndex = 0;
|
4225 |
+
var message = 'Warning: ' + format.replace(/%s/g, function () {
|
4226 |
+
return args[argIndex++];
|
4227 |
+
});
|
4228 |
+
if (typeof console !== 'undefined') {
|
4229 |
+
console.error(message);
|
4230 |
+
}
|
4231 |
+
try {
|
4232 |
+
// --- Welcome to debugging React ---
|
4233 |
+
// This error was thrown as a convenience so that you can use this stack
|
4234 |
+
// to find the callsite that caused this warning to fire.
|
4235 |
+
throw new Error(message);
|
4236 |
+
} catch (x) {}
|
4237 |
+
};
|
4238 |
+
|
4239 |
+
warning = function warning(condition, format) {
|
4240 |
+
if (format === undefined) {
|
4241 |
+
throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');
|
4242 |
+
}
|
4243 |
+
|
4244 |
+
if (format.indexOf('Failed Composite propType: ') === 0) {
|
4245 |
+
return; // Ignore CompositeComponent proptype check.
|
4246 |
+
}
|
4247 |
+
|
4248 |
+
if (!condition) {
|
4249 |
+
for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
|
4250 |
+
args[_key2 - 2] = arguments[_key2];
|
4251 |
+
}
|
4252 |
+
|
4253 |
+
printWarning.apply(undefined, [format].concat(args));
|
4254 |
+
}
|
4255 |
+
};
|
4256 |
+
}
|
4257 |
+
|
4258 |
+
module.exports = warning;
|
4259 |
+
|
4260 |
+
/***/ }),
|
4261 |
+
/* 147 */
|
4262 |
+
/***/ (function(module, exports, __webpack_require__) {
|
4263 |
+
|
4264 |
+
"use strict";
|
4265 |
+
|
4266 |
+
|
4267 |
+
/**
|
4268 |
+
* Copyright (c) 2013-present, Facebook, Inc.
|
4269 |
+
*
|
4270 |
+
* This source code is licensed under the MIT license found in the
|
4271 |
+
* LICENSE file in the root directory of this source tree.
|
4272 |
+
*
|
4273 |
+
*
|
4274 |
+
*/
|
4275 |
+
|
4276 |
+
function makeEmptyFunction(arg) {
|
4277 |
+
return function () {
|
4278 |
+
return arg;
|
4279 |
+
};
|
4280 |
+
}
|
4281 |
+
|
4282 |
+
/**
|
4283 |
+
* This function accepts and discards inputs; it has no side effects. This is
|
4284 |
+
* primarily useful idiomatically for overridable function endpoints which
|
4285 |
+
* always need to be callable, since JS lacks a null-call idiom ala Cocoa.
|
4286 |
+
*/
|
4287 |
+
var emptyFunction = function emptyFunction() {};
|
4288 |
+
|
4289 |
+
emptyFunction.thatReturns = makeEmptyFunction;
|
4290 |
+
emptyFunction.thatReturnsFalse = makeEmptyFunction(false);
|
4291 |
+
emptyFunction.thatReturnsTrue = makeEmptyFunction(true);
|
4292 |
+
emptyFunction.thatReturnsNull = makeEmptyFunction(null);
|
4293 |
+
emptyFunction.thatReturnsThis = function () {
|
4294 |
+
return this;
|
4295 |
+
};
|
4296 |
+
emptyFunction.thatReturnsArgument = function (arg) {
|
4297 |
+
return arg;
|
4298 |
+
};
|
4299 |
+
|
4300 |
+
module.exports = emptyFunction;
|
4301 |
+
|
4302 |
+
/***/ }),
|
4303 |
+
/* 148 */
|
4304 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
4305 |
+
|
4306 |
+
"use strict";
|
4307 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return createStore; });
|
4308 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return combineReducers; });
|
4309 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return bindActionCreators; });
|
4310 |
+
/* unused harmony export applyMiddleware */
|
4311 |
+
/* unused harmony export compose */
|
4312 |
+
/* unused harmony export __DO_NOT_USE__ActionTypes */
|
4313 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_symbol_observable__ = __webpack_require__(310);
|
4314 |
+
|
4315 |
+
|
4316 |
+
/**
|
4317 |
+
* These are private action types reserved by Redux.
|
4318 |
+
* For any unknown actions, you must return the current state.
|
4319 |
+
* If the current state is undefined, you must return the initial state.
|
4320 |
+
* Do not reference these action types directly in your code.
|
4321 |
+
*/
|
4322 |
+
var ActionTypes = {
|
4323 |
+
INIT: '@@redux/INIT' + Math.random().toString(36).substring(7).split('').join('.'),
|
4324 |
+
REPLACE: '@@redux/REPLACE' + Math.random().toString(36).substring(7).split('').join('.')
|
4325 |
+
};
|
4326 |
+
|
4327 |
+
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
|
4328 |
+
return typeof obj;
|
4329 |
+
} : function (obj) {
|
4330 |
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
4331 |
+
};
|
4332 |
+
|
4333 |
+
var _extends = Object.assign || function (target) {
|
4334 |
+
for (var i = 1; i < arguments.length; i++) {
|
4335 |
+
var source = arguments[i];
|
4336 |
+
|
4337 |
+
for (var key in source) {
|
4338 |
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
4339 |
+
target[key] = source[key];
|
4340 |
+
}
|
4341 |
+
}
|
4342 |
+
}
|
4343 |
+
|
4344 |
+
return target;
|
4345 |
+
};
|
4346 |
+
|
4347 |
+
/**
|
4348 |
+
* @param {any} obj The object to inspect.
|
4349 |
+
* @returns {boolean} True if the argument appears to be a plain object.
|
4350 |
+
*/
|
4351 |
+
function isPlainObject(obj) {
|
4352 |
+
if ((typeof obj === 'undefined' ? 'undefined' : _typeof(obj)) !== 'object' || obj === null) return false;
|
4353 |
+
|
4354 |
+
var proto = obj;
|
4355 |
+
while (Object.getPrototypeOf(proto) !== null) {
|
4356 |
+
proto = Object.getPrototypeOf(proto);
|
4357 |
+
}
|
4358 |
+
|
4359 |
+
return Object.getPrototypeOf(obj) === proto;
|
4360 |
+
}
|
4361 |
+
|
4362 |
+
/**
|
4363 |
+
* Creates a Redux store that holds the state tree.
|
4364 |
+
* The only way to change the data in the store is to call `dispatch()` on it.
|
4365 |
+
*
|
4366 |
+
* There should only be a single store in your app. To specify how different
|
4367 |
+
* parts of the state tree respond to actions, you may combine several reducers
|
4368 |
+
* into a single reducer function by using `combineReducers`.
|
4369 |
+
*
|
4370 |
+
* @param {Function} reducer A function that returns the next state tree, given
|
4371 |
+
* the current state tree and the action to handle.
|
4372 |
+
*
|
4373 |
+
* @param {any} [preloadedState] The initial state. You may optionally specify it
|
4374 |
+
* to hydrate the state from the server in universal apps, or to restore a
|
4375 |
+
* previously serialized user session.
|
4376 |
+
* If you use `combineReducers` to produce the root reducer function, this must be
|
4377 |
+
* an object with the same shape as `combineReducers` keys.
|
4378 |
+
*
|
4379 |
+
* @param {Function} [enhancer] The store enhancer. You may optionally specify it
|
4380 |
+
* to enhance the store with third-party capabilities such as middleware,
|
4381 |
+
* time travel, persistence, etc. The only store enhancer that ships with Redux
|
4382 |
+
* is `applyMiddleware()`.
|
4383 |
+
*
|
4384 |
+
* @returns {Store} A Redux store that lets you read the state, dispatch actions
|
4385 |
+
* and subscribe to changes.
|
4386 |
+
*/
|
4387 |
+
function createStore(reducer, preloadedState, enhancer) {
|
4388 |
+
var _ref2;
|
4389 |
+
|
4390 |
+
if (typeof preloadedState === 'function' && typeof enhancer === 'undefined') {
|
4391 |
+
enhancer = preloadedState;
|
4392 |
+
preloadedState = undefined;
|
4393 |
+
}
|
4394 |
+
|
4395 |
+
if (typeof enhancer !== 'undefined') {
|
4396 |
+
if (typeof enhancer !== 'function') {
|
4397 |
+
throw new Error('Expected the enhancer to be a function.');
|
4398 |
+
}
|
4399 |
+
|
4400 |
+
return enhancer(createStore)(reducer, preloadedState);
|
4401 |
+
}
|
4402 |
+
|
4403 |
+
if (typeof reducer !== 'function') {
|
4404 |
+
throw new Error('Expected the reducer to be a function.');
|
4405 |
+
}
|
4406 |
+
|
4407 |
+
var currentReducer = reducer;
|
4408 |
+
var currentState = preloadedState;
|
4409 |
+
var currentListeners = [];
|
4410 |
+
var nextListeners = currentListeners;
|
4411 |
+
var isDispatching = false;
|
4412 |
+
|
4413 |
+
function ensureCanMutateNextListeners() {
|
4414 |
+
if (nextListeners === currentListeners) {
|
4415 |
+
nextListeners = currentListeners.slice();
|
4416 |
+
}
|
4417 |
+
}
|
4418 |
+
|
4419 |
+
/**
|
4420 |
+
* Reads the state tree managed by the store.
|
4421 |
+
*
|
4422 |
+
* @returns {any} The current state tree of your application.
|
4423 |
+
*/
|
4424 |
+
function getState() {
|
4425 |
+
if (isDispatching) {
|
4426 |
+
throw new Error('You may not call store.getState() while the reducer is executing. ' + 'The reducer has already received the state as an argument. ' + 'Pass it down from the top reducer instead of reading it from the store.');
|
4427 |
+
}
|
4428 |
+
|
4429 |
+
return currentState;
|
4430 |
+
}
|
4431 |
+
|
4432 |
+
/**
|
4433 |
+
* Adds a change listener. It will be called any time an action is dispatched,
|
4434 |
+
* and some part of the state tree may potentially have changed. You may then
|
4435 |
+
* call `getState()` to read the current state tree inside the callback.
|
4436 |
+
*
|
4437 |
+
* You may call `dispatch()` from a change listener, with the following
|
4438 |
+
* caveats:
|
4439 |
+
*
|
4440 |
+
* 1. The subscriptions are snapshotted just before every `dispatch()` call.
|
4441 |
+
* If you subscribe or unsubscribe while the listeners are being invoked, this
|
4442 |
+
* will not have any effect on the `dispatch()` that is currently in progress.
|
4443 |
+
* However, the next `dispatch()` call, whether nested or not, will use a more
|
4444 |
+
* recent snapshot of the subscription list.
|
4445 |
+
*
|
4446 |
+
* 2. The listener should not expect to see all state changes, as the state
|
4447 |
+
* might have been updated multiple times during a nested `dispatch()` before
|
4448 |
+
* the listener is called. It is, however, guaranteed that all subscribers
|
4449 |
+
* registered before the `dispatch()` started will be called with the latest
|
4450 |
+
* state by the time it exits.
|
4451 |
+
*
|
4452 |
+
* @param {Function} listener A callback to be invoked on every dispatch.
|
4453 |
+
* @returns {Function} A function to remove this change listener.
|
4454 |
+
*/
|
4455 |
+
function subscribe(listener) {
|
4456 |
+
if (typeof listener !== 'function') {
|
4457 |
+
throw new Error('Expected the listener to be a function.');
|
4458 |
+
}
|
4459 |
+
|
4460 |
+
if (isDispatching) {
|
4461 |
+
throw new Error('You may not call store.subscribe() while the reducer is executing. ' + 'If you would like to be notified after the store has been updated, subscribe from a ' + 'component and invoke store.getState() in the callback to access the latest state. ' + 'See https://redux.js.org/api-reference/store#subscribe(listener) for more details.');
|
4462 |
+
}
|
4463 |
+
|
4464 |
+
var isSubscribed = true;
|
4465 |
+
|
4466 |
+
ensureCanMutateNextListeners();
|
4467 |
+
nextListeners.push(listener);
|
4468 |
+
|
4469 |
+
return function unsubscribe() {
|
4470 |
+
if (!isSubscribed) {
|
4471 |
+
return;
|
4472 |
+
}
|
4473 |
+
|
4474 |
+
if (isDispatching) {
|
4475 |
+
throw new Error('You may not unsubscribe from a store listener while the reducer is executing. ' + 'See https://redux.js.org/api-reference/store#subscribe(listener) for more details.');
|
4476 |
+
}
|
4477 |
+
|
4478 |
+
isSubscribed = false;
|
4479 |
+
|
4480 |
+
ensureCanMutateNextListeners();
|
4481 |
+
var index = nextListeners.indexOf(listener);
|
4482 |
+
nextListeners.splice(index, 1);
|
4483 |
+
};
|
4484 |
+
}
|
4485 |
+
|
4486 |
+
/**
|
4487 |
+
* Dispatches an action. It is the only way to trigger a state change.
|
4488 |
+
*
|
4489 |
+
* The `reducer` function, used to create the store, will be called with the
|
4490 |
+
* current state tree and the given `action`. Its return value will
|
4491 |
+
* be considered the **next** state of the tree, and the change listeners
|
4492 |
+
* will be notified.
|
4493 |
+
*
|
4494 |
+
* The base implementation only supports plain object actions. If you want to
|
4495 |
+
* dispatch a Promise, an Observable, a thunk, or something else, you need to
|
4496 |
+
* wrap your store creating function into the corresponding middleware. For
|
4497 |
+
* example, see the documentation for the `redux-thunk` package. Even the
|
4498 |
+
* middleware will eventually dispatch plain object actions using this method.
|
4499 |
+
*
|
4500 |
+
* @param {Object} action A plain object representing “what changed”. It is
|
4501 |
+
* a good idea to keep actions serializable so you can record and replay user
|
4502 |
+
* sessions, or use the time travelling `redux-devtools`. An action must have
|
4503 |
+
* a `type` property which may not be `undefined`. It is a good idea to use
|
4504 |
+
* string constants for action types.
|
4505 |
+
*
|
4506 |
+
* @returns {Object} For convenience, the same action object you dispatched.
|
4507 |
+
*
|
4508 |
+
* Note that, if you use a custom middleware, it may wrap `dispatch()` to
|
4509 |
+
* return something else (for example, a Promise you can await).
|
4510 |
+
*/
|
4511 |
+
function dispatch(action) {
|
4512 |
+
if (!isPlainObject(action)) {
|
4513 |
+
throw new Error('Actions must be plain objects. ' + 'Use custom middleware for async actions.');
|
4514 |
+
}
|
4515 |
+
|
4516 |
+
if (typeof action.type === 'undefined') {
|
4517 |
+
throw new Error('Actions may not have an undefined "type" property. ' + 'Have you misspelled a constant?');
|
4518 |
+
}
|
4519 |
+
|
4520 |
+
if (isDispatching) {
|
4521 |
+
throw new Error('Reducers may not dispatch actions.');
|
4522 |
+
}
|
4523 |
+
|
4524 |
+
try {
|
4525 |
+
isDispatching = true;
|
4526 |
+
currentState = currentReducer(currentState, action);
|
4527 |
+
} finally {
|
4528 |
+
isDispatching = false;
|
4529 |
+
}
|
4530 |
+
|
4531 |
+
var listeners = currentListeners = nextListeners;
|
4532 |
+
for (var i = 0; i < listeners.length; i++) {
|
4533 |
+
var listener = listeners[i];
|
4534 |
+
listener();
|
4535 |
+
}
|
4536 |
+
|
4537 |
+
return action;
|
4538 |
+
}
|
4539 |
+
|
4540 |
+
/**
|
4541 |
+
* Replaces the reducer currently used by the store to calculate the state.
|
4542 |
+
*
|
4543 |
+
* You might need this if your app implements code splitting and you want to
|
4544 |
+
* load some of the reducers dynamically. You might also need this if you
|
4545 |
+
* implement a hot reloading mechanism for Redux.
|
4546 |
+
*
|
4547 |
+
* @param {Function} nextReducer The reducer for the store to use instead.
|
4548 |
+
* @returns {void}
|
4549 |
+
*/
|
4550 |
+
function replaceReducer(nextReducer) {
|
4551 |
+
if (typeof nextReducer !== 'function') {
|
4552 |
+
throw new Error('Expected the nextReducer to be a function.');
|
4553 |
+
}
|
4554 |
+
|
4555 |
+
currentReducer = nextReducer;
|
4556 |
+
dispatch({ type: ActionTypes.REPLACE });
|
4557 |
+
}
|
4558 |
+
|
4559 |
+
/**
|
4560 |
+
* Interoperability point for observable/reactive libraries.
|
4561 |
+
* @returns {observable} A minimal observable of state changes.
|
4562 |
+
* For more information, see the observable proposal:
|
4563 |
+
* https://github.com/tc39/proposal-observable
|
4564 |
+
*/
|
4565 |
+
function observable() {
|
4566 |
+
var _ref;
|
4567 |
+
|
4568 |
+
var outerSubscribe = subscribe;
|
4569 |
+
return _ref = {
|
4570 |
+
/**
|
4571 |
+
* The minimal observable subscription method.
|
4572 |
+
* @param {Object} observer Any object that can be used as an observer.
|
4573 |
+
* The observer object should have a `next` method.
|
4574 |
+
* @returns {subscription} An object with an `unsubscribe` method that can
|
4575 |
+
* be used to unsubscribe the observable from the store, and prevent further
|
4576 |
+
* emission of values from the observable.
|
4577 |
+
*/
|
4578 |
+
subscribe: function subscribe(observer) {
|
4579 |
+
if ((typeof observer === 'undefined' ? 'undefined' : _typeof(observer)) !== 'object' || observer === null) {
|
4580 |
+
throw new TypeError('Expected the observer to be an object.');
|
4581 |
+
}
|
4582 |
+
|
4583 |
+
function observeState() {
|
4584 |
+
if (observer.next) {
|
4585 |
+
observer.next(getState());
|
4586 |
+
}
|
4587 |
+
}
|
4588 |
+
|
4589 |
+
observeState();
|
4590 |
+
var unsubscribe = outerSubscribe(observeState);
|
4591 |
+
return { unsubscribe: unsubscribe };
|
4592 |
+
}
|
4593 |
+
}, _ref[__WEBPACK_IMPORTED_MODULE_0_symbol_observable__["a" /* default */]] = function () {
|
4594 |
+
return this;
|
4595 |
+
}, _ref;
|
4596 |
+
}
|
4597 |
+
|
4598 |
+
// When a store is created, an "INIT" action is dispatched so that every
|
4599 |
+
// reducer returns their initial state. This effectively populates
|
4600 |
+
// the initial state tree.
|
4601 |
+
dispatch({ type: ActionTypes.INIT });
|
4602 |
+
|
4603 |
+
return _ref2 = {
|
4604 |
+
dispatch: dispatch,
|
4605 |
+
subscribe: subscribe,
|
4606 |
+
getState: getState,
|
4607 |
+
replaceReducer: replaceReducer
|
4608 |
+
}, _ref2[__WEBPACK_IMPORTED_MODULE_0_symbol_observable__["a" /* default */]] = observable, _ref2;
|
4609 |
+
}
|
4610 |
+
|
4611 |
+
/**
|
4612 |
+
* Prints a warning in the console if it exists.
|
4613 |
+
*
|
4614 |
+
* @param {String} message The warning message.
|
4615 |
+
* @returns {void}
|
4616 |
+
*/
|
4617 |
+
function warning(message) {
|
4618 |
+
/* eslint-disable no-console */
|
4619 |
+
if (typeof console !== 'undefined' && typeof console.error === 'function') {
|
4620 |
+
console.error(message);
|
4621 |
+
}
|
4622 |
+
/* eslint-enable no-console */
|
4623 |
+
try {
|
4624 |
+
// This error was thrown as a convenience so that if you enable
|
4625 |
+
// "break on all exceptions" in your console,
|
4626 |
+
// it would pause the execution at this line.
|
4627 |
+
throw new Error(message);
|
4628 |
+
} catch (e) {} // eslint-disable-line no-empty
|
4629 |
+
}
|
4630 |
+
|
4631 |
+
function getUndefinedStateErrorMessage(key, action) {
|
4632 |
+
var actionType = action && action.type;
|
4633 |
+
var actionDescription = actionType && 'action "' + String(actionType) + '"' || 'an action';
|
4634 |
+
|
4635 |
+
return 'Given ' + actionDescription + ', reducer "' + key + '" returned undefined. ' + 'To ignore an action, you must explicitly return the previous state. ' + 'If you want this reducer to hold no value, you can return null instead of undefined.';
|
4636 |
+
}
|
4637 |
+
|
4638 |
+
function getUnexpectedStateShapeWarningMessage(inputState, reducers, action, unexpectedKeyCache) {
|
4639 |
+
var reducerKeys = Object.keys(reducers);
|
4640 |
+
var argumentName = action && action.type === ActionTypes.INIT ? 'preloadedState argument passed to createStore' : 'previous state received by the reducer';
|
4641 |
+
|
4642 |
+
if (reducerKeys.length === 0) {
|
4643 |
+
return 'Store does not have a valid reducer. Make sure the argument passed ' + 'to combineReducers is an object whose values are reducers.';
|
4644 |
+
}
|
4645 |
+
|
4646 |
+
if (!isPlainObject(inputState)) {
|
4647 |
+
return 'The ' + argumentName + ' has unexpected type of "' + {}.toString.call(inputState).match(/\s([a-z|A-Z]+)/)[1] + '". Expected argument to be an object with the following ' + ('keys: "' + reducerKeys.join('", "') + '"');
|
4648 |
+
}
|
4649 |
+
|
4650 |
+
var unexpectedKeys = Object.keys(inputState).filter(function (key) {
|
4651 |
+
return !reducers.hasOwnProperty(key) && !unexpectedKeyCache[key];
|
4652 |
+
});
|
4653 |
+
|
4654 |
+
unexpectedKeys.forEach(function (key) {
|
4655 |
+
unexpectedKeyCache[key] = true;
|
4656 |
+
});
|
4657 |
+
|
4658 |
+
if (action && action.type === ActionTypes.REPLACE) return;
|
4659 |
+
|
4660 |
+
if (unexpectedKeys.length > 0) {
|
4661 |
+
return 'Unexpected ' + (unexpectedKeys.length > 1 ? 'keys' : 'key') + ' ' + ('"' + unexpectedKeys.join('", "') + '" found in ' + argumentName + '. ') + 'Expected to find one of the known reducer keys instead: ' + ('"' + reducerKeys.join('", "') + '". Unexpected keys will be ignored.');
|
4662 |
+
}
|
4663 |
+
}
|
4664 |
+
|
4665 |
+
function assertReducerShape(reducers) {
|
4666 |
+
Object.keys(reducers).forEach(function (key) {
|
4667 |
+
var reducer = reducers[key];
|
4668 |
+
var initialState = reducer(undefined, { type: ActionTypes.INIT });
|
4669 |
+
|
4670 |
+
if (typeof initialState === 'undefined') {
|
4671 |
+
throw new Error('Reducer "' + key + '" returned undefined during initialization. ' + 'If the state passed to the reducer is undefined, you must ' + 'explicitly return the initial state. The initial state may ' + 'not be undefined. If you don\'t want to set a value for this reducer, ' + 'you can use null instead of undefined.');
|
4672 |
+
}
|
4673 |
+
|
4674 |
+
var type = '@@redux/PROBE_UNKNOWN_ACTION_' + Math.random().toString(36).substring(7).split('').join('.');
|
4675 |
+
if (typeof reducer(undefined, { type: type }) === 'undefined') {
|
4676 |
+
throw new Error('Reducer "' + key + '" returned undefined when probed with a random type. ' + ('Don\'t try to handle ' + ActionTypes.INIT + ' or other actions in "redux/*" ') + 'namespace. They are considered private. Instead, you must return the ' + 'current state for any unknown actions, unless it is undefined, ' + 'in which case you must return the initial state, regardless of the ' + 'action type. The initial state may not be undefined, but can be null.');
|
4677 |
+
}
|
4678 |
+
});
|
4679 |
+
}
|
4680 |
+
|
4681 |
+
/**
|
4682 |
+
* Turns an object whose values are different reducer functions, into a single
|
4683 |
+
* reducer function. It will call every child reducer, and gather their results
|
4684 |
+
* into a single state object, whose keys correspond to the keys of the passed
|
4685 |
+
* reducer functions.
|
4686 |
+
*
|
4687 |
+
* @param {Object} reducers An object whose values correspond to different
|
4688 |
+
* reducer functions that need to be combined into one. One handy way to obtain
|
4689 |
+
* it is to use ES6 `import * as reducers` syntax. The reducers may never return
|
4690 |
+
* undefined for any action. Instead, they should return their initial state
|
4691 |
+
* if the state passed to them was undefined, and the current state for any
|
4692 |
+
* unrecognized action.
|
4693 |
+
*
|
4694 |
+
* @returns {Function} A reducer function that invokes every reducer inside the
|
4695 |
+
* passed object, and builds a state object with the same shape.
|
4696 |
+
*/
|
4697 |
+
function combineReducers(reducers) {
|
4698 |
+
var reducerKeys = Object.keys(reducers);
|
4699 |
+
var finalReducers = {};
|
4700 |
+
for (var i = 0; i < reducerKeys.length; i++) {
|
4701 |
+
var key = reducerKeys[i];
|
4702 |
+
|
4703 |
+
if (true) {
|
4704 |
+
if (typeof reducers[key] === 'undefined') {
|
4705 |
+
warning('No reducer provided for key "' + key + '"');
|
4706 |
+
}
|
4707 |
+
}
|
4708 |
+
|
4709 |
+
if (typeof reducers[key] === 'function') {
|
4710 |
+
finalReducers[key] = reducers[key];
|
4711 |
+
}
|
4712 |
+
}
|
4713 |
+
var finalReducerKeys = Object.keys(finalReducers);
|
4714 |
+
|
4715 |
+
var unexpectedKeyCache = void 0;
|
4716 |
+
if (true) {
|
4717 |
+
unexpectedKeyCache = {};
|
4718 |
+
}
|
4719 |
+
|
4720 |
+
var shapeAssertionError = void 0;
|
4721 |
+
try {
|
4722 |
+
assertReducerShape(finalReducers);
|
4723 |
+
} catch (e) {
|
4724 |
+
shapeAssertionError = e;
|
4725 |
+
}
|
4726 |
+
|
4727 |
+
return function combination() {
|
4728 |
+
var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
4729 |
+
var action = arguments[1];
|
4730 |
+
|
4731 |
+
if (shapeAssertionError) {
|
4732 |
+
throw shapeAssertionError;
|
4733 |
+
}
|
4734 |
+
|
4735 |
+
if (true) {
|
4736 |
+
var warningMessage = getUnexpectedStateShapeWarningMessage(state, finalReducers, action, unexpectedKeyCache);
|
4737 |
+
if (warningMessage) {
|
4738 |
+
warning(warningMessage);
|
4739 |
+
}
|
4740 |
+
}
|
4741 |
+
|
4742 |
+
var hasChanged = false;
|
4743 |
+
var nextState = {};
|
4744 |
+
for (var _i = 0; _i < finalReducerKeys.length; _i++) {
|
4745 |
+
var _key = finalReducerKeys[_i];
|
4746 |
+
var reducer = finalReducers[_key];
|
4747 |
+
var previousStateForKey = state[_key];
|
4748 |
+
var nextStateForKey = reducer(previousStateForKey, action);
|
4749 |
+
if (typeof nextStateForKey === 'undefined') {
|
4750 |
+
var errorMessage = getUndefinedStateErrorMessage(_key, action);
|
4751 |
+
throw new Error(errorMessage);
|
4752 |
+
}
|
4753 |
+
nextState[_key] = nextStateForKey;
|
4754 |
+
hasChanged = hasChanged || nextStateForKey !== previousStateForKey;
|
4755 |
+
}
|
4756 |
+
return hasChanged ? nextState : state;
|
4757 |
+
};
|
4758 |
+
}
|
4759 |
+
|
4760 |
+
function bindActionCreator(actionCreator, dispatch) {
|
4761 |
+
return function () {
|
4762 |
+
return dispatch(actionCreator.apply(this, arguments));
|
4763 |
+
};
|
4764 |
+
}
|
4765 |
+
|
4766 |
+
/**
|
4767 |
+
* Turns an object whose values are action creators, into an object with the
|
4768 |
+
* same keys, but with every function wrapped into a `dispatch` call so they
|
4769 |
+
* may be invoked directly. This is just a convenience method, as you can call
|
4770 |
+
* `store.dispatch(MyActionCreators.doSomething())` yourself just fine.
|
4771 |
+
*
|
4772 |
+
* For convenience, you can also pass a single function as the first argument,
|
4773 |
+
* and get a function in return.
|
4774 |
+
*
|
4775 |
+
* @param {Function|Object} actionCreators An object whose values are action
|
4776 |
+
* creator functions. One handy way to obtain it is to use ES6 `import * as`
|
4777 |
+
* syntax. You may also pass a single function.
|
4778 |
+
*
|
4779 |
+
* @param {Function} dispatch The `dispatch` function available on your Redux
|
4780 |
+
* store.
|
4781 |
+
*
|
4782 |
+
* @returns {Function|Object} The object mimicking the original object, but with
|
4783 |
+
* every action creator wrapped into the `dispatch` call. If you passed a
|
4784 |
+
* function as `actionCreators`, the return value will also be a single
|
4785 |
+
* function.
|
4786 |
+
*/
|
4787 |
+
function bindActionCreators(actionCreators, dispatch) {
|
4788 |
+
if (typeof actionCreators === 'function') {
|
4789 |
+
return bindActionCreator(actionCreators, dispatch);
|
4790 |
+
}
|
4791 |
+
|
4792 |
+
if ((typeof actionCreators === 'undefined' ? 'undefined' : _typeof(actionCreators)) !== 'object' || actionCreators === null) {
|
4793 |
+
throw new Error('bindActionCreators expected an object or a function, instead received ' + (actionCreators === null ? 'null' : typeof actionCreators === 'undefined' ? 'undefined' : _typeof(actionCreators)) + '. ' + 'Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');
|
4794 |
+
}
|
4795 |
+
|
4796 |
+
var keys = Object.keys(actionCreators);
|
4797 |
+
var boundActionCreators = {};
|
4798 |
+
for (var i = 0; i < keys.length; i++) {
|
4799 |
+
var key = keys[i];
|
4800 |
+
var actionCreator = actionCreators[key];
|
4801 |
+
if (typeof actionCreator === 'function') {
|
4802 |
+
boundActionCreators[key] = bindActionCreator(actionCreator, dispatch);
|
4803 |
+
}
|
4804 |
+
}
|
4805 |
+
return boundActionCreators;
|
4806 |
+
}
|
4807 |
+
|
4808 |
+
/**
|
4809 |
+
* Composes single-argument functions from right to left. The rightmost
|
4810 |
+
* function can take multiple arguments as it provides the signature for
|
4811 |
+
* the resulting composite function.
|
4812 |
+
*
|
4813 |
+
* @param {...Function} funcs The functions to compose.
|
4814 |
+
* @returns {Function} A function obtained by composing the argument functions
|
4815 |
+
* from right to left. For example, compose(f, g, h) is identical to doing
|
4816 |
+
* (...args) => f(g(h(...args))).
|
4817 |
+
*/
|
4818 |
+
|
4819 |
+
function compose() {
|
4820 |
+
for (var _len = arguments.length, funcs = Array(_len), _key = 0; _key < _len; _key++) {
|
4821 |
+
funcs[_key] = arguments[_key];
|
4822 |
+
}
|
4823 |
+
|
4824 |
+
if (funcs.length === 0) {
|
4825 |
+
return function (arg) {
|
4826 |
+
return arg;
|
4827 |
+
};
|
4828 |
+
}
|
4829 |
+
|
4830 |
+
if (funcs.length === 1) {
|
4831 |
+
return funcs[0];
|
4832 |
+
}
|
4833 |
+
|
4834 |
+
return funcs.reduce(function (a, b) {
|
4835 |
+
return function () {
|
4836 |
+
return a(b.apply(undefined, arguments));
|
4837 |
+
};
|
4838 |
+
});
|
4839 |
+
}
|
4840 |
+
|
4841 |
+
/**
|
4842 |
+
* Creates a store enhancer that applies middleware to the dispatch method
|
4843 |
+
* of the Redux store. This is handy for a variety of tasks, such as expressing
|
4844 |
+
* asynchronous actions in a concise manner, or logging every action payload.
|
4845 |
+
*
|
4846 |
+
* See `redux-thunk` package as an example of the Redux middleware.
|
4847 |
+
*
|
4848 |
+
* Because middleware is potentially asynchronous, this should be the first
|
4849 |
+
* store enhancer in the composition chain.
|
4850 |
+
*
|
4851 |
+
* Note that each middleware will be given the `dispatch` and `getState` functions
|
4852 |
+
* as named arguments.
|
4853 |
+
*
|
4854 |
+
* @param {...Function} middlewares The middleware chain to be applied.
|
4855 |
+
* @returns {Function} A store enhancer applying the middleware.
|
4856 |
+
*/
|
4857 |
+
function applyMiddleware() {
|
4858 |
+
for (var _len = arguments.length, middlewares = Array(_len), _key = 0; _key < _len; _key++) {
|
4859 |
+
middlewares[_key] = arguments[_key];
|
4860 |
+
}
|
4861 |
+
|
4862 |
+
return function (createStore) {
|
4863 |
+
return function () {
|
4864 |
+
for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
4865 |
+
args[_key2] = arguments[_key2];
|
4866 |
+
}
|
4867 |
+
|
4868 |
+
var store = createStore.apply(undefined, args);
|
4869 |
+
var _dispatch = function dispatch() {
|
4870 |
+
throw new Error('Dispatching while constructing your middleware is not allowed. ' + 'Other middleware would not be applied to this dispatch.');
|
4871 |
+
};
|
4872 |
+
|
4873 |
+
var middlewareAPI = {
|
4874 |
+
getState: store.getState,
|
4875 |
+
dispatch: function dispatch() {
|
4876 |
+
return _dispatch.apply(undefined, arguments);
|
4877 |
+
}
|
4878 |
+
};
|
4879 |
+
var chain = middlewares.map(function (middleware) {
|
4880 |
+
return middleware(middlewareAPI);
|
4881 |
+
});
|
4882 |
+
_dispatch = compose.apply(undefined, chain)(store.dispatch);
|
4883 |
+
|
4884 |
+
return _extends({}, store, {
|
4885 |
+
dispatch: _dispatch
|
4886 |
+
});
|
4887 |
+
};
|
4888 |
+
};
|
4889 |
+
}
|
4890 |
+
|
4891 |
+
/*
|
4892 |
+
* This is a dummy function to check if the function name has been altered by minification.
|
4893 |
+
* If the function has been minified and NODE_ENV !== 'production', warn the user.
|
4894 |
+
*/
|
4895 |
+
function isCrushed() {}
|
4896 |
+
|
4897 |
+
if ("development" !== 'production' && typeof isCrushed.name === 'string' && isCrushed.name !== 'isCrushed') {
|
4898 |
+
warning("You are currently using minified code outside of NODE_ENV === 'production'. " + 'This means that you are running a slower development build of Redux. ' + 'You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify ' + 'or DefinePlugin for webpack (http://stackoverflow.com/questions/30030031) ' + 'to ensure you have the correct code for your production build.');
|
4899 |
+
}
|
4900 |
+
|
4901 |
+
|
4902 |
+
|
4903 |
+
|
4904 |
+
/***/ }),
|
4905 |
+
/* 149 */
|
4906 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
4907 |
+
|
4908 |
+
"use strict";
|
4909 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return SET_EDIT_FORM; });
|
4910 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return UNSET_EDIT_FORM; });
|
4911 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return setForm; });
|
4912 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return setEditForm; });
|
4913 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return unsetEditForm; });
|
4914 |
+
/* unused harmony export setForms */
|
4915 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return SET_FORM_PRIVACY_SETTINGS; });
|
4916 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return setFormPrivacyForm; });
|
4917 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__state_actions_form__ = __webpack_require__(57);
|
4918 |
+
|
4919 |
+
var SET_EDIT_FORM = 'SET_EDIT_FORM';
|
4920 |
+
var UNSET_EDIT_FORM = 'UNSET_EDIT_FORM';
|
4921 |
+
|
4922 |
+
/**
|
4923 |
+
* Set a form in state.
|
4924 |
+
*
|
4925 |
+
* Designed for use with "form" reducer
|
4926 |
+
*
|
4927 |
+
* @since 1.7.0
|
4928 |
+
*
|
4929 |
+
* @param {Object} forms
|
4930 |
+
* @param {String} formId
|
4931 |
+
* @returns {*|{type, form}}
|
4932 |
+
*/
|
4933 |
+
var setForm = function setForm(form, formId) {
|
4934 |
+
return __WEBPACK_IMPORTED_MODULE_0__state_actions_form__["e" /* actionFunctions */].setForm(form, formId);
|
4935 |
+
};
|
4936 |
+
|
4937 |
+
/**
|
4938 |
+
*
|
4939 |
+
* Designed for use with "form" reducer
|
4940 |
+
*
|
4941 |
+
* @since 1.7.0
|
4942 |
+
*
|
4943 |
+
* @param {String} formId
|
4944 |
+
* @returns {{type: string, formId: *}}
|
4945 |
+
*/
|
4946 |
+
var setEditForm = function setEditForm(formId) {
|
4947 |
+
return {
|
4948 |
+
type: SET_EDIT_FORM,
|
4949 |
+
formId: formId
|
4950 |
+
};
|
4951 |
+
};
|
4952 |
+
|
4953 |
+
/**
|
4954 |
+
* Unset the form currently being edited.
|
4955 |
+
*
|
4956 |
+
* Designed for use with "form" reducer
|
4957 |
+
*
|
4958 |
+
* @since 1.7.0
|
4959 |
+
*
|
4960 |
+
* @returns {{type: string}}
|
4961 |
+
*/
|
4962 |
+
var unsetEditForm = function unsetEditForm() {
|
4963 |
+
return {
|
4964 |
+
type: UNSET_EDIT_FORM
|
4965 |
+
};
|
4966 |
+
};
|
4967 |
+
|
4968 |
+
/**
|
4969 |
+
*
|
4970 |
+
* @param {Object} forms
|
4971 |
+
* @returns {*|{type, forms}}
|
4972 |
+
*/
|
4973 |
+
var setForms = function setForms(forms) {
|
4974 |
+
return __WEBPACK_IMPORTED_MODULE_0__state_actions_form__["e" /* actionFunctions */].setForms(forms);
|
4975 |
+
};
|
4976 |
+
|
4977 |
+
var SET_FORM_PRIVACY_SETTINGS = 'SET_FORM_PRIVACY_SETTINGS';
|
4978 |
+
var setFormPrivacyForm = function setFormPrivacyForm(settings) {
|
4979 |
+
return {
|
4980 |
+
type: SET_FORM_PRIVACY_SETTINGS,
|
4981 |
+
form: settings
|
4982 |
+
};
|
4983 |
+
};
|
4984 |
+
|
4985 |
+
/***/ }),
|
4986 |
+
/* 150 */
|
4987 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
4988 |
+
|
4989 |
+
"use strict";
|
4990 |
+
/* harmony export (immutable) */ __webpack_exports__["a"] = setFormInState;
|
4991 |
+
/* harmony export (immutable) */ __webpack_exports__["b"] = setFormsInState;
|
4992 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
|
4993 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
|
4994 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__functions__ = __webpack_require__(88);
|
4995 |
+
|
4996 |
+
|
4997 |
+
|
4998 |
+
/**
|
4999 |
+
* Add one form to state
|
5000 |
+
*
|
5001 |
+
* @since 1.7.0
|
5002 |
+
*
|
5003 |
+
* @param {Object} state
|
5004 |
+
* @param {Object} action
|
5005 |
+
*
|
5006 |
+
* @returns {{forms: *}}
|
5007 |
+
*/
|
5008 |
+
function setFormInState(state, action) {
|
5009 |
+
var forms = state.forms;
|
5010 |
+
var index = Object(__WEBPACK_IMPORTED_MODULE_1__functions__["b" /* findFormIndexById */])(state, action.form.ID);
|
5011 |
+
if (-1 <= index) {
|
5012 |
+
forms.splice(index, 1, action.form);
|
5013 |
+
} else {
|
5014 |
+
forms.push(action.form);
|
5015 |
+
}
|
5016 |
+
return __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, state, {
|
5017 |
+
forms: forms
|
5018 |
+
});
|
5019 |
+
};
|
5020 |
+
|
5021 |
+
/**
|
5022 |
+
* Add forms to State
|
5023 |
+
*
|
5024 |
+
* @since 1.7.0
|
5025 |
+
*
|
5026 |
+
* @param {Object} state
|
5027 |
+
* @param {Object} action
|
5028 |
+
* @returns {{forms: *}}
|
5029 |
+
*/
|
5030 |
+
function setFormsInState(state, action) {
|
5031 |
+
return __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, state, {
|
5032 |
+
forms: action.forms
|
5033 |
+
});
|
5034 |
+
};
|
5035 |
+
|
5036 |
+
/***/ }),
|
5037 |
+
/* 151 */
|
5038 |
+
/***/ (function(module, exports, __webpack_require__) {
|
5039 |
+
|
5040 |
+
module.exports = __webpack_require__(175);
|
5041 |
+
|
5042 |
+
|
5043 |
+
/***/ }),
|
5044 |
+
/* 152 */
|
5045 |
+
/***/ (function(module, exports, __webpack_require__) {
|
5046 |
+
|
5047 |
+
"use strict";
|
5048 |
+
|
5049 |
+
|
5050 |
+
exports.__esModule = true;
|
5051 |
+
|
5052 |
+
var _promise = __webpack_require__(124);
|
5053 |
+
|
5054 |
+
var _promise2 = _interopRequireDefault(_promise);
|
5055 |
+
|
5056 |
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
5057 |
+
|
5058 |
+
exports.default = function (fn) {
|
5059 |
+
return function () {
|
5060 |
+
var gen = fn.apply(this, arguments);
|
5061 |
+
return new _promise2.default(function (resolve, reject) {
|
5062 |
+
function step(key, arg) {
|
5063 |
+
try {
|
5064 |
+
var info = gen[key](arg);
|
5065 |
+
var value = info.value;
|
5066 |
+
} catch (error) {
|
5067 |
+
reject(error);
|
5068 |
+
return;
|
5069 |
+
}
|
5070 |
+
|
5071 |
+
if (info.done) {
|
5072 |
+
resolve(value);
|
5073 |
+
} else {
|
5074 |
+
return _promise2.default.resolve(value).then(function (value) {
|
5075 |
+
step("next", value);
|
5076 |
+
}, function (err) {
|
5077 |
+
step("throw", err);
|
5078 |
+
});
|
5079 |
+
}
|
5080 |
+
}
|
5081 |
+
|
5082 |
+
return step("next");
|
5083 |
+
});
|
5084 |
+
};
|
5085 |
+
};
|
5086 |
+
|
5087 |
+
/***/ }),
|
5088 |
+
/* 153 */
|
5089 |
+
/***/ (function(module, exports, __webpack_require__) {
|
5090 |
+
|
5091 |
+
"use strict";
|
5092 |
+
|
5093 |
+
|
5094 |
+
Object.defineProperty(exports, "__esModule", {
|
5095 |
+
value: true
|
5096 |
+
});
|
5097 |
+
exports.default = createChainableTypeChecker;
|
5098 |
+
/**
|
5099 |
+
* Copyright 2013-present, Facebook, Inc.
|
5100 |
+
* All rights reserved.
|
5101 |
+
*
|
5102 |
+
* This source code is licensed under the BSD-style license found in the
|
5103 |
+
* LICENSE file in the root directory of this source tree. An additional grant
|
5104 |
+
* of patent rights can be found in the PATENTS file in the same directory.
|
5105 |
+
*/
|
5106 |
+
|
5107 |
+
// Mostly taken from ReactPropTypes.
|
5108 |
+
|
5109 |
+
function createChainableTypeChecker(validate) {
|
5110 |
+
function checkType(isRequired, props, propName, componentName, location, propFullName) {
|
5111 |
+
var componentNameSafe = componentName || '<<anonymous>>';
|
5112 |
+
var propFullNameSafe = propFullName || propName;
|
5113 |
+
|
5114 |
+
if (props[propName] == null) {
|
5115 |
+
if (isRequired) {
|
5116 |
+
return new Error('Required ' + location + ' `' + propFullNameSafe + '` was not specified ' + ('in `' + componentNameSafe + '`.'));
|
5117 |
+
}
|
5118 |
+
|
5119 |
+
return null;
|
5120 |
+
}
|
5121 |
+
|
5122 |
+
for (var _len = arguments.length, args = Array(_len > 6 ? _len - 6 : 0), _key = 6; _key < _len; _key++) {
|
5123 |
+
args[_key - 6] = arguments[_key];
|
5124 |
+
}
|
5125 |
+
|
5126 |
+
return validate.apply(undefined, [props, propName, componentNameSafe, location, propFullNameSafe].concat(args));
|
5127 |
+
}
|
5128 |
+
|
5129 |
+
var chainedCheckType = checkType.bind(null, false);
|
5130 |
+
chainedCheckType.isRequired = checkType.bind(null, true);
|
5131 |
+
|
5132 |
+
return chainedCheckType;
|
5133 |
+
}
|
5134 |
+
module.exports = exports['default'];
|
5135 |
+
|
5136 |
+
/***/ }),
|
5137 |
+
/* 154 */
|
5138 |
+
/***/ (function(module, exports, __webpack_require__) {
|
5139 |
+
|
5140 |
+
"use strict";
|
5141 |
+
|
5142 |
+
|
5143 |
+
Object.defineProperty(exports, "__esModule", {
|
5144 |
+
value: true
|
5145 |
+
});
|
5146 |
+
exports.default = all;
|
5147 |
+
|
5148 |
+
var _createChainableTypeChecker = __webpack_require__(153);
|
5149 |
+
|
5150 |
+
var _createChainableTypeChecker2 = _interopRequireDefault(_createChainableTypeChecker);
|
5151 |
+
|
5152 |
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
5153 |
+
|
5154 |
+
function all() {
|
5155 |
+
for (var _len = arguments.length, validators = Array(_len), _key = 0; _key < _len; _key++) {
|
5156 |
+
validators[_key] = arguments[_key];
|
5157 |
+
}
|
5158 |
+
|
5159 |
+
function allPropTypes() {
|
5160 |
+
for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
5161 |
+
args[_key2] = arguments[_key2];
|
5162 |
+
}
|
5163 |
+
|
5164 |
+
var error = null;
|
5165 |
+
|
5166 |
+
validators.forEach(function (validator) {
|
5167 |
+
if (error != null) {
|
5168 |
+
return;
|
5169 |
+
}
|
5170 |
+
|
5171 |
+
var result = validator.apply(undefined, args);
|
5172 |
+
if (result != null) {
|
5173 |
+
error = result;
|
5174 |
+
}
|
5175 |
+
});
|
5176 |
+
|
5177 |
+
return error;
|
5178 |
+
}
|
5179 |
+
|
5180 |
+
return (0, _createChainableTypeChecker2.default)(allPropTypes);
|
5181 |
+
}
|
5182 |
+
module.exports = exports['default'];
|
5183 |
+
|
5184 |
+
/***/ }),
|
5185 |
+
/* 155 */
|
5186 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
5187 |
+
|
5188 |
+
"use strict";
|
5189 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(1);
|
5190 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
|
5191 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(6);
|
5192 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_objectWithoutProperties__);
|
5193 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__(2);
|
5194 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__);
|
5195 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(3);
|
5196 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_possibleConstructorReturn__);
|
5197 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__ = __webpack_require__(4);
|
5198 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_inherits__);
|
5199 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(7);
|
5200 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__);
|
5201 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_dom_helpers_activeElement__ = __webpack_require__(226);
|
5202 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_dom_helpers_activeElement___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_dom_helpers_activeElement__);
|
5203 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_dom_helpers_query_contains__ = __webpack_require__(95);
|
5204 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_dom_helpers_query_contains___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_dom_helpers_query_contains__);
|
5205 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_keycode__ = __webpack_require__(182);
|
5206 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_keycode___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_keycode__);
|
5207 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_react__ = __webpack_require__(0);
|
5208 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_react__);
|
5209 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_prop_types__ = __webpack_require__(5);
|
5210 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_prop_types__);
|
5211 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_react_dom__ = __webpack_require__(35);
|
5212 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_11_react_dom__);
|
5213 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_prop_types_extra_lib_all__ = __webpack_require__(154);
|
5214 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_prop_types_extra_lib_all___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_12_prop_types_extra_lib_all__);
|
5215 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_prop_types_extra_lib_elementType__ = __webpack_require__(16);
|
5216 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_prop_types_extra_lib_elementType___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_13_prop_types_extra_lib_elementType__);
|
5217 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_prop_types_extra_lib_isRequiredForA11y__ = __webpack_require__(156);
|
5218 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_prop_types_extra_lib_isRequiredForA11y___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_14_prop_types_extra_lib_isRequiredForA11y__);
|
5219 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15_uncontrollable__ = __webpack_require__(83);
|
5220 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15_uncontrollable___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_15_uncontrollable__);
|
5221 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_16_warning__ = __webpack_require__(44);
|
5222 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_16_warning___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_16_warning__);
|
5223 |
+
/* harmony impo
|