From 77259c167c54916ffa92fa1c634ce3ec7197dc4b Mon Sep 17 00:00:00 2001 From: Sven Wagener Date: Thu, 10 Oct 2019 16:36:24 +0200 Subject: [PATCH] Added pot file and made build for release 1.0.8 --- README.md | 2 - composer.json | 2 +- package.json | 2 +- src/assets/dist/css/admin-evaluations.css | 2 +- src/assets/dist/css/admin-evaluations.min.css | 2 +- src/assets/dist/css/admin-form-builder.css | 2 +- .../dist/css/admin-form-builder.min.css | 4 +- src/assets/dist/css/admin-icons.css | 2 +- src/assets/dist/css/admin-icons.min.css | 2 +- src/assets/dist/css/admin-settings.css | 2 +- src/assets/dist/css/admin-settings.min.css | 2 +- .../dist/css/admin-tooltip-descriptions.css | 2 +- .../css/admin-tooltip-descriptions.min.css | 2 +- src/assets/dist/css/clipboard.css | 2 +- src/assets/dist/css/clipboard.min.css | 2 +- src/assets/dist/css/frontend.css | 2 +- src/assets/dist/css/frontend.min.css | 2 +- src/assets/dist/css/template-tag-fields.css | 2 +- .../dist/css/template-tag-fields.min.css | 2 +- .../dist/js/admin-api-element-mapping.js | 2 +- .../dist/js/admin-api-element-mapping.min.js | 2 +- .../dist/js/admin-email-notifications.js | 2 +- .../dist/js/admin-email-notifications.min.js | 2 +- src/assets/dist/js/admin-evaluations.js | 2 +- src/assets/dist/js/admin-evaluations.min.js | 2 +- src/assets/dist/js/admin-fixed-sidebar.js | 2 +- src/assets/dist/js/admin-fixed-sidebar.min.js | 2 +- src/assets/dist/js/admin-form-builder.js | 2 +- src/assets/dist/js/admin-form-builder.min.js | 2 +- .../dist/js/admin-member-invitations.js | 2 +- .../dist/js/admin-member-invitations.min.js | 2 +- src/assets/dist/js/admin-settings.js | 2 +- src/assets/dist/js/admin-settings.min.js | 2 +- .../dist/js/admin-tooltip-descriptions.js | 2 +- .../dist/js/admin-tooltip-descriptions.min.js | 2 +- src/assets/dist/js/admin-unload.js | 2 +- src/assets/dist/js/admin-unload.min.js | 2 +- src/assets/dist/js/clipboard.js | 2 +- src/assets/dist/js/clipboard.min.js | 2 +- src/assets/dist/js/template-tag-fields.js | 2 +- src/assets/dist/js/template-tag-fields.min.js | 2 +- src/assets/dist/js/util.js | 2 +- src/assets/dist/js/util.min.js | 2 +- src/assets/src/languages/torro-forms.pot | 4499 +++++++++++++++++ src/readme.txt | 7 +- src/torro-forms.php | 2 +- 46 files changed, 4547 insertions(+), 49 deletions(-) create mode 100644 src/assets/src/languages/torro-forms.pot diff --git a/README.md b/README.md index 7c773e12a..72c416adb 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,5 @@ [![WordPress plugin](https://img.shields.io/wordpress/plugin/v/torro-forms.svg?maxAge=2592000)](https://wordpress.org/plugins/torro-forms/) [![WordPress](https://img.shields.io/wordpress/v/torro-forms.svg?maxAge=2592000)](https://wordpress.org/plugins/torro-forms/) -[![Build Status](https://api.travis-ci.org/awsmug/torro-forms.png?branch=master)](https://travis-ci.org/awsmug/torro-forms) -[![Test Coverage](https://codeclimate.com/github/awsmug/torro-forms/badges/coverage.svg)](https://codeclimate.com/github/awsmug/torro-forms/coverage) [![Latest Stable Version](https://poser.pugx.org/awsmug/torro-forms/version)](https://packagist.org/packages/awsmug/torro-forms) [![License](https://poser.pugx.org/awsmug/torro-forms/license)](https://packagist.org/packages/awsmug/torro-forms) diff --git a/composer.json b/composer.json index ebf5d6df6..d502a1888 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "awsmug/torro-forms", "description": "Torro Forms is an extendable WordPress form builder with Drag & Drop functionality, chart evaluation and more - with WordPress look and feel.", - "version": "1.0.7", + "version": "1.0.8", "license": "GPL-2.0-or-later", "type": "wordpress-plugin", "keywords": [ diff --git a/package.json b/package.json index 5cc1ef525..aaf72f20c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "torro-forms", - "version": "1.0.7", + "version": "1.0.8", "description": "Torro Forms is an extendable WordPress form builder with Drag & Drop functionality, chart evaluation and more - with WordPress look and feel.", "keywords": [ "wordpress", diff --git a/src/assets/dist/css/admin-evaluations.css b/src/assets/dist/css/admin-evaluations.css index 4efb798bd..791da149d 100644 --- a/src/assets/dist/css/admin-evaluations.css +++ b/src/assets/dist/css/admin-evaluations.css @@ -1,5 +1,5 @@ /*! - * Torro Forms Version 1.0.7 (https://torro-forms.com) + * Torro Forms Version 1.0.8 (https://torro-forms.com) * Licensed under GNU General Public License v2 (or later) (http://www.gnu.org/licenses/gpl-2.0.html) */ /* ---------------------------------------------------------------------------- diff --git a/src/assets/dist/css/admin-evaluations.min.css b/src/assets/dist/css/admin-evaluations.min.css index da5a381e6..83adc66dc 100644 --- a/src/assets/dist/css/admin-evaluations.min.css +++ b/src/assets/dist/css/admin-evaluations.min.css @@ -1,5 +1,5 @@ /*! - * Torro Forms Version 1.0.7 (https://torro-forms.com) + * Torro Forms Version 1.0.8 (https://torro-forms.com) * Licensed under GNU General Public License v2 (or later) (http://www.gnu.org/licenses/gpl-2.0.html) */ .torro-evaluations-subtabs,.torro-evaluations-tab{border-bottom:1px solid #eee}.torro-evaluations-subtab[aria-selected=true],.torro-evaluations-tab[aria-selected=true]{color:#555;font-weight:700;text-decoration:none}.torro-evaluations-box.postbox .inside{padding:0;margin:0}.torro-evaluations-box.postbox .inside:after{display:table;clear:both;content:""}.torro-evaluations-content,.torro-evaluations-tabs{position:relative;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;min-height:1px;margin:0}.torro-evaluations-tab{display:block;padding:11px 12px}@media screen and (min-width:783px){.torro-evaluations-tabs{float:left;width:20%}.torro-evaluations-content{float:left;width:80%}.torro-evaluations-tab{border-right:1px solid #eee}.torro-evaluations-tab[aria-selected=true]{border-right:1px solid #fff}}.torro-evaluations-tab-panel[aria-hidden=true]{display:none}.torro-evaluations-description-wrap,.torro-evaluations-results,.torro-evaluations-shortcode{padding:11px 12px}.torro-evaluations-description-wrap p.description{margin:0}.torro-evaluations-subcontent,.torro-evaluations-subtabs{position:relative;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;min-height:1px;margin:0}.torro-evaluations-subtab{display:inline-block;padding:11px 12px}.torro-evaluations-subtab-panel[aria-hidden=true]{display:none}.postbox h2{padding:8px 12px;margin:0;font-size:14px;line-height:1.4}.js .postbox .toggle-indicator:before{display:inline-block;content:"\f142";font:400 20px/1 dashicons;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;text-decoration:none!important;speak:none} \ No newline at end of file diff --git a/src/assets/dist/css/admin-form-builder.css b/src/assets/dist/css/admin-form-builder.css index 2a37f7cd0..913a069c2 100644 --- a/src/assets/dist/css/admin-form-builder.css +++ b/src/assets/dist/css/admin-form-builder.css @@ -1,5 +1,5 @@ /*! - * Torro Forms Version 1.0.7 (https://torro-forms.com) + * Torro Forms Version 1.0.8 (https://torro-forms.com) * Licensed under GNU General Public License v2 (or later) (http://www.gnu.org/licenses/gpl-2.0.html) */ /* ---------------------------------------------------------------------------- diff --git a/src/assets/dist/css/admin-form-builder.min.css b/src/assets/dist/css/admin-form-builder.min.css index 6245a82cc..cc093f445 100644 --- a/src/assets/dist/css/admin-form-builder.min.css +++ b/src/assets/dist/css/admin-form-builder.min.css @@ -1,5 +1,5 @@ /*! - * Torro Forms Version 1.0.7 (https://torro-forms.com) + * Torro Forms Version 1.0.8 (https://torro-forms.com) * Licensed under GNU General Public License v2 (or later) (http://www.gnu.org/licenses/gpl-2.0.html) */ -.torro-form-canvas{margin-top:15px;margin-bottom:15px}.torro-form-canvas-content,.torro-form-canvas-footer,.torro-form-canvas-header{padding:12px;margin:0;background-color:#fff;border-color:#e5e5e5;border-style:solid}.torro-form-canvas-header{padding:0;font-size:13px;font-weight:600;line-height:1.4;border-width:1px}.torro-form-canvas-content{background-color:#fafafa;border-width:1px}.torro-form-canvas-footer,.torro-form-canvas-header+.torro-form-canvas-content{-webkit-box-shadow:0 1px 1px rgba(0,0,0,.04);box-shadow:0 1px 1px rgba(0,0,0,.04);border-width:0 1px 1px}.torro-form-canvas-header.torro-form-canvas-tabs{display:block;font-size:13px;line-height:1.1}.torro-form-canvas-header.torro-form-canvas-tabs:after{display:table;clear:both;content:""}.torro-form-canvas-header.torro-form-canvas-tabs .torro-form-canvas-tab{display:block;float:left;height:38px;padding:5px 12px;margin-left:0;color:#000;font-weight:400;text-decoration:none;-webkit-appearance:none;background-color:transparent;border:none;border-bottom:3px solid transparent;cursor:pointer}.torro-form-canvas-header.torro-form-canvas-tabs .torro-form-canvas-tab.add-button.is-active,.torro-form-canvas-header.torro-form-canvas-tabs .torro-form-canvas-tab[aria-selected=true]{font-weight:600;border-bottom-color:#00a0d2}.torro-form-canvas-header.torro-form-canvas-tabs .torro-form-canvas-tab[disabled]{color:#b4b9be;cursor:not-allowed}.torro-form-canvas-panel[aria-hidden=true]{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px)}.drag-drop-area{position:relative}.drag-drop-area .add-element-content{display:none}.drag-drop-area.is-empty{min-height:150px;border:4px dashed #b4b9be}.drag-drop-area.is-empty>div{position:absolute;top:50%;left:50%;width:80%;font-size:1.3em;line-height:1.4em;transform:translate(-50%,-50%)}.drag-drop-area.is-empty>div.content{text-align:center}.drag-drop-area.is-empty>div.loader-content{font-style:italic}.drag-drop-area.is-empty .add-element-content{display:block}.drag-drop-area.is-empty .spinner{float:none;height:1.4em;margin:0 10px}.add-element-toggle-wrap .add-element-toggle{width:100%;height:auto;padding:8px;color:#000}.add-element-content-wrap{display:none;padding:1em}.add-element-content-wrap.is-expanded{display:block}.torro-element-types{align-items:stretch;flex-wrap:wrap;justify-content:flex-start;display:flex;padding:1em .5em;margin:0;overflow:hidden;clear:both}.torro-element-type{flex-basis:350px;display:block;margin:0 .5em 1em;background-color:#fff;border:1px solid #e5e5e5;cursor:pointer}.torro-element-type .torro-element-type-content,.torro-element-type .torro-element-type-header{padding:3px 6px}.torro-element-type .torro-element-type-header{overflow:hidden;clear:both}.torro-element-type .torro-element-type-header .torro-element-type-header-icon{display:block;float:left;width:24px;height:24px;color:#00a0d2}.torro-element-type .torro-element-type-header .torro-element-type-header-title{display:block;float:left;margin:0 15px;overflow:hidden;line-height:24px}.torro-element-type .torro-element-type-header-title{font-weight:600;text-overflow:ellipsis;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.torro-element-type .torro-element-type-content{min-height:50px;border-top:1px solid #e5e5e5}.torro-element-type .torro-element-type-content p{margin:0}.torro-element-type:focus,.torro-element-type:hover{background-color:#eee}.torro-element-type.is-selected{border:2px solid #00a0d2;cursor:default}.torro-element{margin-bottom:1em;background-color:#fff;border:1px solid #e5e5e5}.torro-element .form-table th{padding:0 0 12px;font-weight:400}.torro-element .form-table td{padding:0 0 12px}.torro-element-content-footer,.torro-element-header{padding:6px 12px}.torro-element-header{overflow:hidden;clear:both;font-size:13px}.torro-element-header.ui-sortable-handle{cursor:move}.torro-element-header .torro-element-header-icon{display:block;float:left;width:24px;height:24px;margin:4px;color:#00a0d2}.torro-element-header .torro-element-header-title{display:block;float:left;margin:0 15px;overflow:hidden;font-weight:700;line-height:32px}.torro-element-header .torro-element-expand-button{display:block;float:right}.torro-element-header-title{text-overflow:ellipsis;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.torro-element-expand-button{padding:0;margin:0;color:#555d66;-webkit-appearance:none;appearance:none;background:0 0;border:0;cursor:pointer}.torro-element-expand-button .torro-element-expand-button-icon:before{position:relative;display:block;padding:0;content:"\f140";font:400 20px/1 dashicons;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:32px;text-align:center;text-decoration:none!important;text-indent:0;background:0 0;border:none;speak:none}.torro-element-expand-button:focus,.torro-element-expand-button:hover{color:#444}.torro-element-expand-button[aria-expanded=true] .torro-element-expand-button-icon:before{content:"\f142"}.torro-element-content{display:none}.torro-element-content.is-expanded{display:block}.torro-element-content-footer,.torro-element-content-main{border-top:1px solid #e5e5e5}.torro-element-content-tabs{display:block;font-size:13x;line-height:1.1}.torro-element-content-tabs:after{display:table;clear:both;content:""}.torro-element-content-tabs .torro-element-content-tab{display:block;float:left;height:38px;padding:5px 12px;margin-left:0;color:#000;font-weight:400;text-decoration:none;-webkit-appearance:none;background-color:transparent;border:none;border-bottom:3px solid transparent;cursor:pointer}.torro-element-content-tabs .torro-element-content-tab:focus{outline:0}.torro-element-content-tabs .torro-element-content-tab[aria-selected=true]{font-weight:600;border-bottom-color:#00a0d2}.torro-element-content-panel{padding:10px 12px;border-top:1px solid #e5e5e5}.torro-element-content-panel[aria-hidden=true]{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px)}.torro-element-placeholder{display:block;height:44px;margin-bottom:1em}.plugin-lib-repeatable-torrochoices-wrap .plugin-lib-repeatable-item{margin-bottom:.8em}.torro-element-choice-move{display:inline-block}.torro-element-choice-move.ui-sortable-handle{cursor:move}.torro-element-choice-placeholder{display:block;height:28px;margin-bottom:.8em}.torro-notice{padding:1px 12px;background-color:#fff;-webkit-box-shadow:0 1px 1px 0 rgba(0,0,0,.1);box-shadow:0 1px 1px 0 rgba(0,0,0,.1);border-left-style:solid;border-left-width:4px}.torro-dialog,.torro-dialog .ui-button{background-color:#fff;border:1px solid #ccc}.torro-notice ul{padding-left:20px;list-style:disc}.torro-dialog{z-index:9999;width:300px;text-align:center;-webkit-box-shadow:5px 5px 5px rgba(0,0,0,.5);box-shadow:5px 5px 5px rgba(0,0,0,.5)}.torro-dialog .ui-dialog-titlebar{display:none}.torro-dialog .ui-dialog-content{padding:10px;font-size:13px}.torro-dialog .ui-button{width:40%;margin:0 10px 10px}.torro-metabox-tab-wrapper{display:block;margin:-6px -12px 1em;font-size:13px;line-height:1.1;border-bottom:1px solid #e5e5e5}.torro-metabox-tab-wrapper:not(.wp-clearfix):after{display:table;clear:both;content:""}.torro-metabox-tab{display:block;float:left;height:40px;padding:0 12px;margin-left:0;color:#000;font-weight:400;line-height:40px;text-decoration:none;border-bottom:3px solid transparent;cursor:pointer}.postbox .form-table td,.postbox .form-table th{padding:0 0 20px;font-size:13px}.torro-metabox-tab[aria-selected=true]{font-weight:600;border-bottom-color:#00a0d2}.torro-metabox-tab:focus,.torro-metabox-tab:hover{color:#000}.torro-metabox-tab:focus{box-shadow:none}.torro-metabox-tab-panel[aria-hidden=true]{display:none}.postbox .form-table th{font-weight:400}@media screen and (min-width:783px){.postbox .form-table th{width:30%}}.postbox .form-table td p.description{font-size:13px}.torro-required-indicator{color:#00a0d2;font-weight:700}#minor-publishing-actions #duplicate-action{padding-top:1em;clear:both} \ No newline at end of file +.drag-drop-area.is-empty>div.content,.torro-dialog{text-align:center}.torro-form-canvas{margin-top:15px;margin-bottom:15px}.torro-form-canvas-content,.torro-form-canvas-footer,.torro-form-canvas-header{padding:12px;margin:0;background-color:#fff;border-color:#e5e5e5;border-style:solid}.torro-form-canvas-header{padding:0;font-size:13px;font-weight:600;line-height:1.4;border-width:1px}.torro-form-canvas-content{background-color:#fafafa;border-width:1px}.torro-form-canvas-footer,.torro-form-canvas-header+.torro-form-canvas-content{-webkit-box-shadow:0 1px 1px rgba(0,0,0,.04);box-shadow:0 1px 1px rgba(0,0,0,.04);border-width:0 1px 1px}.torro-form-canvas-header.torro-form-canvas-tabs{display:block;font-size:13px;line-height:1.1}.torro-form-canvas-header.torro-form-canvas-tabs:after{display:table;clear:both;content:""}.torro-form-canvas-header.torro-form-canvas-tabs .torro-form-canvas-tab{display:block;float:left;height:38px;padding:5px 12px;margin-left:0;color:#000;font-weight:400;text-decoration:none;-webkit-appearance:none;background-color:transparent;border:none;border-bottom:3px solid transparent;cursor:pointer}.torro-form-canvas-header.torro-form-canvas-tabs .torro-form-canvas-tab.add-button.is-active,.torro-form-canvas-header.torro-form-canvas-tabs .torro-form-canvas-tab[aria-selected=true]{font-weight:600;border-bottom-color:#00a0d2}.torro-form-canvas-header.torro-form-canvas-tabs .torro-form-canvas-tab[disabled]{color:#b4b9be;cursor:not-allowed}.torro-form-canvas-panel[aria-hidden=true]{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px)}.drag-drop-area{position:relative}.drag-drop-area .add-element-content{display:none}.drag-drop-area.is-empty{min-height:150px;border:4px dashed #b4b9be}.drag-drop-area.is-empty>div{position:absolute;top:50%;left:50%;width:80%;font-size:1.3em;line-height:1.4em;transform:translate(-50%,-50%)}.drag-drop-area.is-empty>div.loader-content{font-style:italic}.drag-drop-area.is-empty .add-element-content{display:block}.drag-drop-area.is-empty .spinner{float:none;height:1.4em;margin:0 10px}.add-element-toggle-wrap .add-element-toggle{width:100%;height:auto;padding:8px;color:#000}.add-element-content-wrap{display:none;padding:1em}.add-element-content-wrap.is-expanded{display:block}.torro-element-types{align-items:stretch;flex-wrap:wrap;justify-content:flex-start;display:flex;padding:1em .5em;margin:0;overflow:hidden;clear:both}.torro-element-type{flex-basis:350px;display:block;margin:0 .5em 1em;background-color:#fff;border:1px solid #e5e5e5;cursor:pointer}.torro-element-type .torro-element-type-content,.torro-element-type .torro-element-type-header{padding:3px 6px}.torro-element-type .torro-element-type-header{overflow:hidden;clear:both}.torro-element-type .torro-element-type-header .torro-element-type-header-icon{display:block;float:left;width:24px;height:24px;color:#00a0d2}.torro-element-type .torro-element-type-header .torro-element-type-header-title{display:block;float:left;margin:0 15px;overflow:hidden;line-height:24px}.torro-element-type .torro-element-type-header-title{font-weight:600;text-overflow:ellipsis;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.torro-element-type .torro-element-type-content{min-height:50px;border-top:1px solid #e5e5e5}.torro-element-type .torro-element-type-content p{margin:0}.torro-element-type:focus,.torro-element-type:hover{background-color:#eee}.torro-element-type.is-selected{border:2px solid #00a0d2;cursor:default}.torro-element{margin-bottom:1em;background-color:#fff;border:1px solid #e5e5e5}.torro-element .form-table th{padding:0 0 12px;font-weight:400}.torro-element .form-table td{padding:0 0 12px}.torro-element-content-footer,.torro-element-header{padding:6px 12px}.torro-element-header{overflow:hidden;clear:both;font-size:13px}.torro-element-header.ui-sortable-handle{cursor:move}.torro-element-header .torro-element-header-icon{display:block;float:left;width:24px;height:24px;margin:4px;color:#00a0d2}.torro-element-header .torro-element-header-title{display:block;float:left;margin:0 15px;overflow:hidden;font-weight:700;line-height:32px}.torro-element-header .torro-element-expand-button{display:block;float:right}.torro-element-header-title{text-overflow:ellipsis;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.torro-element-expand-button{padding:0;margin:0;color:#555d66;-webkit-appearance:none;appearance:none;background:0 0;border:0;cursor:pointer}.torro-element-expand-button .torro-element-expand-button-icon:before{position:relative;display:block;padding:0;content:"\f140";font:400 20px/1 dashicons;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:32px;text-align:center;text-decoration:none!important;text-indent:0;background:0 0;border:none;speak:none}.torro-element-expand-button:focus,.torro-element-expand-button:hover{color:#444}.torro-element-expand-button[aria-expanded=true] .torro-element-expand-button-icon:before{content:"\f142"}.torro-element-content{display:none}.torro-element-content.is-expanded{display:block}.torro-element-content-footer,.torro-element-content-main{border-top:1px solid #e5e5e5}.torro-element-content-tabs{display:block;font-size:13x;line-height:1.1}.torro-element-content-tabs:after{display:table;clear:both;content:""}.torro-element-content-tabs .torro-element-content-tab{display:block;float:left;height:38px;padding:5px 12px;margin-left:0;color:#000;font-weight:400;text-decoration:none;-webkit-appearance:none;background-color:transparent;border:none;border-bottom:3px solid transparent;cursor:pointer}.torro-element-content-tabs .torro-element-content-tab:focus{outline:0}.torro-element-content-tabs .torro-element-content-tab[aria-selected=true]{font-weight:600;border-bottom-color:#00a0d2}.torro-element-content-panel{padding:10px 12px;border-top:1px solid #e5e5e5}.torro-element-content-panel[aria-hidden=true]{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px)}.torro-element-placeholder{display:block;height:44px;margin-bottom:1em}.plugin-lib-repeatable-torrochoices-wrap .plugin-lib-repeatable-item{margin-bottom:.8em}.torro-element-choice-move{display:inline-block}.torro-element-choice-move.ui-sortable-handle{cursor:move}.torro-element-choice-placeholder{display:block;height:28px;margin-bottom:.8em}.torro-notice{padding:1px 12px;background-color:#fff;-webkit-box-shadow:0 1px 1px 0 rgba(0,0,0,.1);box-shadow:0 1px 1px 0 rgba(0,0,0,.1);border-left-style:solid;border-left-width:4px}.torro-dialog,.torro-dialog .ui-button{background-color:#fff;border:1px solid #ccc}.torro-notice ul{padding-left:20px;list-style:disc}.torro-dialog{z-index:9999;width:300px;-webkit-box-shadow:5px 5px 5px rgba(0,0,0,.5);box-shadow:5px 5px 5px rgba(0,0,0,.5)}.torro-dialog .ui-dialog-titlebar{display:none}.torro-dialog .ui-dialog-content{padding:10px;font-size:13px}.torro-dialog .ui-button{width:40%;margin:0 10px 10px}.torro-metabox-tab-wrapper{display:block;margin:-6px -12px 1em;font-size:13px;line-height:1.1;border-bottom:1px solid #e5e5e5}.torro-metabox-tab-wrapper:not(.wp-clearfix):after{display:table;clear:both;content:""}.torro-metabox-tab{display:block;float:left;height:40px;padding:0 12px;margin-left:0;color:#000;font-weight:400;line-height:40px;text-decoration:none;border-bottom:3px solid transparent;cursor:pointer}.postbox .form-table td,.postbox .form-table th{padding:0 0 20px;font-size:13px}.torro-metabox-tab[aria-selected=true]{font-weight:600;border-bottom-color:#00a0d2}.torro-metabox-tab:focus,.torro-metabox-tab:hover{color:#000}.torro-metabox-tab:focus{box-shadow:none}.torro-metabox-tab-panel[aria-hidden=true]{display:none}.postbox .form-table th{font-weight:400}@media screen and (min-width:783px){.postbox .form-table th{width:30%}}.postbox .form-table td p.description{font-size:13px}.torro-required-indicator{color:#00a0d2;font-weight:700}#minor-publishing-actions #duplicate-action{padding-top:1em;clear:both} \ No newline at end of file diff --git a/src/assets/dist/css/admin-icons.css b/src/assets/dist/css/admin-icons.css index 715151b3a..42f5598d9 100644 --- a/src/assets/dist/css/admin-icons.css +++ b/src/assets/dist/css/admin-icons.css @@ -1,5 +1,5 @@ /*! - * Torro Forms Version 1.0.7 (https://torro-forms.com) + * Torro Forms Version 1.0.8 (https://torro-forms.com) * Licensed under GNU General Public License v2 (or later) (http://www.gnu.org/licenses/gpl-2.0.html) */ .torro-icon { diff --git a/src/assets/dist/css/admin-icons.min.css b/src/assets/dist/css/admin-icons.min.css index 2f86ec658..464b19de2 100644 --- a/src/assets/dist/css/admin-icons.min.css +++ b/src/assets/dist/css/admin-icons.min.css @@ -1,5 +1,5 @@ /*! - * Torro Forms Version 1.0.7 (https://torro-forms.com) + * Torro Forms Version 1.0.8 (https://torro-forms.com) * Licensed under GNU General Public License v2 (or later) (http://www.gnu.org/licenses/gpl-2.0.html) */ .torro-icon{position:relative;top:-.0625em;display:inline-block;width:1rem;height:1rem;vertical-align:baseline;fill:currentColor} \ No newline at end of file diff --git a/src/assets/dist/css/admin-settings.css b/src/assets/dist/css/admin-settings.css index 528f299b2..a54846d02 100644 --- a/src/assets/dist/css/admin-settings.css +++ b/src/assets/dist/css/admin-settings.css @@ -1,5 +1,5 @@ /*! - * Torro Forms Version 1.0.7 (https://torro-forms.com) + * Torro Forms Version 1.0.8 (https://torro-forms.com) * Licensed under GNU General Public License v2 (or later) (http://www.gnu.org/licenses/gpl-2.0.html) */ .nav-tab-wrapper, diff --git a/src/assets/dist/css/admin-settings.min.css b/src/assets/dist/css/admin-settings.min.css index 8d86889df..9f2632d7c 100644 --- a/src/assets/dist/css/admin-settings.min.css +++ b/src/assets/dist/css/admin-settings.min.css @@ -1,5 +1,5 @@ /*! - * Torro Forms Version 1.0.7 (https://torro-forms.com) + * Torro Forms Version 1.0.8 (https://torro-forms.com) * Licensed under GNU General Public License v2 (or later) (http://www.gnu.org/licenses/gpl-2.0.html) */ .nav-tab-wrapper,.wrap h2.nav-tab-wrapper,h1.nav-tab-wrapper{margin:0 0 15px}.torro-subtab-wrapper{display:block;margin-left:5px}.torro-subtab{display:inline-block;padding:5px}.torro-subtab[aria-selected=true]{color:#555;font-weight:700;text-decoration:none}.torro-subtab-panel[aria-hidden=true]{display:none}input[type=radio].plugin-lib-radio-control,input[type=checkbox].plugin-lib-multibox-control{margin-left:20px}input[type=radio].plugin-lib-radio-control:first-of-type,input[type=checkbox].plugin-lib-multibox-control:first-of-type{margin-left:0}.welcome-to-torro{min-height:80px;padding:20px 20px 20px 298px;margin-bottom:15px;color:#fff;background-color:#d50c0c;background-image:url(../img/logo.png);background-repeat:no-repeat;background-position:10px -9px;border:1px solid #ccc}.welcome-to-torro h3{margin-top:20px;color:#fff;font-size:20px}.torro-required-indicator{color:#00a0d2;font-weight:700} \ No newline at end of file diff --git a/src/assets/dist/css/admin-tooltip-descriptions.css b/src/assets/dist/css/admin-tooltip-descriptions.css index 3a47d6620..eb5c926a8 100644 --- a/src/assets/dist/css/admin-tooltip-descriptions.css +++ b/src/assets/dist/css/admin-tooltip-descriptions.css @@ -1,5 +1,5 @@ /*! - * Torro Forms Version 1.0.7 (https://torro-forms.com) + * Torro Forms Version 1.0.8 (https://torro-forms.com) * Licensed under GNU General Public License v2 (or later) (http://www.gnu.org/licenses/gpl-2.0.html) */ .torro-tooltip-wrap { diff --git a/src/assets/dist/css/admin-tooltip-descriptions.min.css b/src/assets/dist/css/admin-tooltip-descriptions.min.css index 158bccf64..5bc9349ff 100644 --- a/src/assets/dist/css/admin-tooltip-descriptions.min.css +++ b/src/assets/dist/css/admin-tooltip-descriptions.min.css @@ -1,5 +1,5 @@ /*! - * Torro Forms Version 1.0.7 (https://torro-forms.com) + * Torro Forms Version 1.0.8 (https://torro-forms.com) * Licensed under GNU General Public License v2 (or later) (http://www.gnu.org/licenses/gpl-2.0.html) */ .torro-tooltip-wrap{position:relative;display:inline}.torro-tooltip-button{padding:0;color:#666;line-height:1;vertical-align:middle;cursor:help}.torro-tooltip-description,p.description.torro-tooltip-description{position:absolute;top:-9999px;left:-9999px;z-index:10;width:1px;overflow:hidden;color:#fff;text-align:center;background:#333;border-radius:3px}.torro-tooltip-button:focus+.torro-tooltip-description,.torro-tooltip-button:focus+p.description.torro-tooltip-description,.torro-tooltip-button:hover+.torro-tooltip-description,.torro-tooltip-button:hover+p.description.torro-tooltip-description{top:100%;left:0;width:250px;padding:.5em 1em}.js .has-torro-tooltip-description .content-wrap>.description:not(.torro-tooltip-description){position:absolute;top:-9999px;left:-9999px;width:1px;overflow:hidden} \ No newline at end of file diff --git a/src/assets/dist/css/clipboard.css b/src/assets/dist/css/clipboard.css index fba289837..d6bf32378 100644 --- a/src/assets/dist/css/clipboard.css +++ b/src/assets/dist/css/clipboard.css @@ -1,5 +1,5 @@ /*! - * Torro Forms Version 1.0.7 (https://torro-forms.com) + * Torro Forms Version 1.0.8 (https://torro-forms.com) * Licensed under GNU General Public License v2 (or later) (http://www.gnu.org/licenses/gpl-2.0.html) */ input.clipboard-field { diff --git a/src/assets/dist/css/clipboard.min.css b/src/assets/dist/css/clipboard.min.css index e8edbbeed..ec11fbeb8 100644 --- a/src/assets/dist/css/clipboard.min.css +++ b/src/assets/dist/css/clipboard.min.css @@ -1,5 +1,5 @@ /*! - * Torro Forms Version 1.0.7 (https://torro-forms.com) + * Torro Forms Version 1.0.8 (https://torro-forms.com) * Licensed under GNU General Public License v2 (or later) (http://www.gnu.org/licenses/gpl-2.0.html) */ input.clipboard-field{height:28px;direction:ltr;font-family:Consolas,Monaco,monospace;font-size:12px;background-color:#f7f7f7;unicode-bidi:embed}button.button.clipboard-button{width:29px;height:27px;padding:3px;margin-top:1px;margin-left:1px}button.button.clipboard-button img{width:14px;height:auto}.no-clipboard .clipboard-button{display:none} \ No newline at end of file diff --git a/src/assets/dist/css/frontend.css b/src/assets/dist/css/frontend.css index 3cb327fbc..4cda04a44 100644 --- a/src/assets/dist/css/frontend.css +++ b/src/assets/dist/css/frontend.css @@ -1,5 +1,5 @@ /*! - * Torro Forms Version 1.0.7 (https://torro-forms.com) + * Torro Forms Version 1.0.8 (https://torro-forms.com) * Licensed under GNU General Public License v2 (or later) (http://www.gnu.org/licenses/gpl-2.0.html) */ .torro-element-wrap { diff --git a/src/assets/dist/css/frontend.min.css b/src/assets/dist/css/frontend.min.css index acee425ea..d68207e9f 100644 --- a/src/assets/dist/css/frontend.min.css +++ b/src/assets/dist/css/frontend.min.css @@ -1,5 +1,5 @@ /*! - * Torro Forms Version 1.0.7 (https://torro-forms.com) + * Torro Forms Version 1.0.8 (https://torro-forms.com) * Licensed under GNU General Public License v2 (or later) (http://www.gnu.org/licenses/gpl-2.0.html) */ .torro-element-wrap{margin-bottom:2em}.torro-element-label{margin-bottom:.5em}.torro-toggle input[type=radio]+label,.torro-toggle input[type=checkbox]+label{display:inline-block}.torro-pager{display:block;clear:both}.torro-pager .next,.torro-pager .prev{display:inline-block}.torro-pager .prev>button{float:left}.torro-pager .next>button{float:right}.torro-required-indicator{font-weight:700}.torro-element-wrap input[type=radio][aria-invalid=true],.torro-element-wrap input[type=range][aria-invalid=true],.torro-element-wrap input[type=date][aria-invalid=true],.torro-element-wrap input[type=month][aria-invalid=true],.torro-element-wrap input[type=week][aria-invalid=true],.torro-element-wrap input[type=time][aria-invalid=true],.torro-element-wrap input[type=datetime][aria-invalid=true],.torro-element-wrap input[type=datetime-local][aria-invalid=true],.torro-element-wrap input[type=color][aria-invalid=true],.torro-element-wrap input[type=checkbox][aria-invalid=true],.torro-element-wrap input[type=text][aria-invalid=true],.torro-element-wrap input[type=email][aria-invalid=true],.torro-element-wrap input[type=url][aria-invalid=true],.torro-element-wrap input[type=password][aria-invalid=true],.torro-element-wrap input[type=search][aria-invalid=true],.torro-element-wrap input[type=number][aria-invalid=true],.torro-element-wrap input[type=tel][aria-invalid=true],.torro-element-wrap select[aria-invalid=true],.torro-element-wrap textarea[aria-invalid=true]{border-color:#dc3232}.torro-element-errors{color:#dc3232}.torro-notice{padding:.5em 1em;margin-bottom:2em;background-color:#fff;box-shadow:0 1px 1px 0 rgba(0,0,0,.1);border-left:4px solid #fff}.torro-notice.torro-success-notice{background-color:#d4ffd8;border-left-color:#46b450}.torro-notice.torro-info-notice{background-color:#d1f4ff;border-left-color:#00a0d2}.torro-notice.torro-warning-notice{background-color:#fff3d2;border-left-color:#ffb900}.torro-notice.torro-error-notice{background-color:#ffdcdc;border-left-color:#dc3232}.torro-notice>p:last-child,.torro-notice>ul:last-child{margin-bottom:0}.torro-evaluations-results{padding:2em;margin:0 0 2em;border:1px solid #ccc}.torro-evaluations-results .torro-evaluations-subcontent,.torro-evaluations-results .torro-evaluations-subtabs{position:relative;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;min-height:1px;margin:0}.torro-evaluations-results .torro-evaluations-subtabs{border-bottom:1px solid #eee}.torro-evaluations-results .torro-evaluations-subtab{display:inline-block;padding:11px 12px}.torro-evaluations-results .torro-evaluations-subtab[aria-selected=true]{color:#555;font-weight:700;text-decoration:none}#torro-email-wrap,.torro-evaluations-results .torro-evaluations-subtab-panel[aria-hidden=true]{display:none} \ No newline at end of file diff --git a/src/assets/dist/css/template-tag-fields.css b/src/assets/dist/css/template-tag-fields.css index 1d24c0f15..3f4d906b0 100644 --- a/src/assets/dist/css/template-tag-fields.css +++ b/src/assets/dist/css/template-tag-fields.css @@ -1,5 +1,5 @@ /*! - * Torro Forms Version 1.0.7 (https://torro-forms.com) + * Torro Forms Version 1.0.8 (https://torro-forms.com) * Licensed under GNU General Public License v2 (or later) (http://www.gnu.org/licenses/gpl-2.0.html) */ .template-tag-list-wrap { diff --git a/src/assets/dist/css/template-tag-fields.min.css b/src/assets/dist/css/template-tag-fields.min.css index 9635b5242..edb6689f6 100644 --- a/src/assets/dist/css/template-tag-fields.min.css +++ b/src/assets/dist/css/template-tag-fields.min.css @@ -1,5 +1,5 @@ /*! - * Torro Forms Version 1.0.7 (https://torro-forms.com) + * Torro Forms Version 1.0.8 (https://torro-forms.com) * Licensed under GNU General Public License v2 (or later) (http://www.gnu.org/licenses/gpl-2.0.html) */ .template-tag-list-wrap{position:relative;display:inline}.wp-editor-wrap .wp-editor-tools .template-tag-list-wrap{display:block;float:left}.template-tag-list{position:absolute;left:0;z-index:1000;display:block;width:200px;max-height:250px;min-height:100px;margin:0;overflow-y:scroll;font-size:11px;line-height:20px;background-color:#fff;border:1px solid #e3e3e3}.template-tag-list-toggle[aria-expanded=false]+.template-tag-list{display:none}.template-tag-list button,.template-tag-list li,.template-tag-list span,.template-tag-list ul{display:block;margin:0}.template-tag-list .template-tag-list-group>span{padding:8px 12px;background-color:#e3e3e3}.template-tag-list .template-tag-button{width:100%;padding:4px 12px;text-align:left;-webkit-appearance:none;appearance:none;background-color:#fff;border:0;border-bottom:1px solid #e3e3e3}.template-tag-list .template-tag-button:focus,.template-tag-list .template-tag-button:hover{color:#fff;background-color:#0073aa}.template-tag-list .template-tag:last-child .template-tag-button{border-bottom:0} \ No newline at end of file diff --git a/src/assets/dist/js/admin-api-element-mapping.js b/src/assets/dist/js/admin-api-element-mapping.js index 536f9c5fc..611308d33 100644 --- a/src/assets/dist/js/admin-api-element-mapping.js +++ b/src/assets/dist/js/admin-api-element-mapping.js @@ -1,5 +1,5 @@ /*! - * Torro Forms Version 1.0.7 (https://torro-forms.com) + * Torro Forms Version 1.0.8 (https://torro-forms.com) * Licensed under GNU General Public License v2 (or later) (http://www.gnu.org/licenses/gpl-2.0.html) */ ( function( torro, $, elementMappings ) { diff --git a/src/assets/dist/js/admin-api-element-mapping.min.js b/src/assets/dist/js/admin-api-element-mapping.min.js index 4d8c3cd73..06878fff7 100644 --- a/src/assets/dist/js/admin-api-element-mapping.min.js +++ b/src/assets/dist/js/admin-api-element-mapping.min.js @@ -1,5 +1,5 @@ /*! - * Torro Forms Version 1.0.7 (https://torro-forms.com) + * Torro Forms Version 1.0.8 (https://torro-forms.com) * Licensed under GNU General Public License v2 (or later) (http://www.gnu.org/licenses/gpl-2.0.html) */ !function(o,n,r){"use strict";var i,t;for(t in r)i=r[t],console.log(i)}(window.torro,window.jQuery,window.torroAPIElementMappings||[]); \ No newline at end of file diff --git a/src/assets/dist/js/admin-email-notifications.js b/src/assets/dist/js/admin-email-notifications.js index ae81e968a..6906dd1d1 100644 --- a/src/assets/dist/js/admin-email-notifications.js +++ b/src/assets/dist/js/admin-email-notifications.js @@ -1,5 +1,5 @@ /*! - * Torro Forms Version 1.0.7 (https://torro-forms.com) + * Torro Forms Version 1.0.8 (https://torro-forms.com) * Licensed under GNU General Public License v2 (or later) (http://www.gnu.org/licenses/gpl-2.0.html) */ ( function( torro, fieldsAPI, $, data ) { diff --git a/src/assets/dist/js/admin-email-notifications.min.js b/src/assets/dist/js/admin-email-notifications.min.js index f6fbd4a53..e450b7919 100644 --- a/src/assets/dist/js/admin-email-notifications.min.js +++ b/src/assets/dist/js/admin-email-notifications.min.js @@ -1,5 +1,5 @@ /*! - * Torro Forms Version 1.0.7 (https://torro-forms.com) + * Torro Forms Version 1.0.8 (https://torro-forms.com) * Licensed under GNU General Public License v2 (or later) (http://www.gnu.org/licenses/gpl-2.0.html) */ !function(e,t,a,l){"use strict";function i(e,t){var a=l.templateTagSlug.replace("%element_id%",e.get("id")),i=l.templateTagGroup,n=t.find(".template-tag-"+a);n&&(n.remove(),t.find(".template-tag-list-group-"+i+" > ul > li").length||t.find(".template-tag-list-group-"+i).remove())}function n(e,t){var i={slug:l.templateTagSlug.replace("%element_id%",e.get("id")),group:l.templateTagGroup,label:l.templateTagLabel.replace("%element_label%",e.get("label")),description:l.templateTagDescription.replace("%element_label%",e.get("label"))},n={slug:l.templateTagGroup,label:l.templateTagGroupLabel},p=a(l.templateTagTemplate.replace(/%slug%/g,i.slug).replace(/%group%/g,i.group).replace(/%label%/g,i.label).replace(/%description%/g,i.description)),o=t.find(".template-tag-list-group-"+i.group+" > ul");o.length||(o=a(l.templateTagGroupTemplate.replace(/%slug%/g,n.slug).replace(/%label%/g,n.label)),t.append(o),o=o.children("ul")),o.append(p),e.on("change:label",function(e,t){var a=l.templateTagLabel.replace("%element_label%",t);p.html(p.html().replace(i.label,a)),i.label=a})}function p(e,t){var a,l=t.parents(".template-tag-list-wrap").prev('input[type="email"]');l.length?(a=e.element_settings.findWhere({name:"input_type"}),a&&("email_address"===a.get("value")&&n(e,t),a.on("change:value",function(a,l){"email_address"===l?n(e,t):i(e,t)}))):n(e,t)}var o=e.Builder.getInstance(),g={};o.on("addElement",function(e){g[e.get("id")]=e,a(".plugin-lib-repeatable-group-email_notifications__notifications-wrap .template-tag-list").each(function(){p(e,a(this))})}),o.on("removeElement",function(e){g[e.get("id")]&&delete g[e.get("id")],a(".plugin-lib-repeatable-group-email_notifications__notifications-wrap .template-tag-list").each(function(){i(e,a(this))})}),a(document).ready(function(){var e,l=a("#torro_module_actions-field-manager-instance");l&&(l=l.val(),e=t.FieldManager.instances[l].get(l+"_email-notifications--notifications"),e&&e.on("addItem",function(e,t){a("#"+t.id+" .template-tag-list").each(function(){var e,t=Object.keys(g);for(e=0;e=e-p?a.css({position:"fixed",top:c+p,bottom:"auto"}):a.css({position:"relative",top:"auto",bottom:"auto"}):t>d?t+u>=o(document).height()-n+p?a.css({position:"fixed",top:"auto",bottom:t+u-o(document).height()+n-p}):t+u>=e+s?a.css({position:"fixed",top:"auto",bottom:p}):a.css({position:"relative",top:"auto",bottom:"auto"}):t+c>=o(document).height()-n-s-p?a.css({position:"fixed",top:"auto",bottom:t+u-o(document).height()+n-p}):t+c>=e?a.css({position:"fixed",top:c+p,bottom:"auto"}):a.css({position:"relative",top:"auto",bottom:"auto"}),d=t}function i(){s=a.height(),e=a.offset().top,n=o(document).height()-o("#poststuff").offset().top-o("#poststuff").outerHeight(),u=o(window).height(),c=0,o("body").hasClass("admin-bar")&&(c=document.documentElement.clientWidth<=782?46:32),t()}var s,e,n,u,c,a=o("#postbox-container-1 #side-sortables"),p=20,d=0;a.length&&(i(),o(window).on("resize",i),o(window).on("scroll",t))}(window.jQuery); \ No newline at end of file diff --git a/src/assets/dist/js/admin-form-builder.js b/src/assets/dist/js/admin-form-builder.js index 077be125a..9c4fc3a58 100644 --- a/src/assets/dist/js/admin-form-builder.js +++ b/src/assets/dist/js/admin-form-builder.js @@ -1,5 +1,5 @@ /*! - * Torro Forms Version 1.0.7 (https://torro-forms.com) + * Torro Forms Version 1.0.8 (https://torro-forms.com) * Licensed under GNU General Public License v2 (or later) (http://www.gnu.org/licenses/gpl-2.0.html) */ window.torro = window.torro || {}; diff --git a/src/assets/dist/js/admin-form-builder.min.js b/src/assets/dist/js/admin-form-builder.min.js index f68caf821..76351804a 100644 --- a/src/assets/dist/js/admin-form-builder.min.js +++ b/src/assets/dist/js/admin-form-builder.min.js @@ -1,5 +1,5 @@ /*! - * Torro Forms Version 1.0.7 (https://torro-forms.com) + * Torro Forms Version 1.0.8 (https://torro-forms.com) * Licensed under GNU General Public License v2 (or later) (http://www.gnu.org/licenses/gpl-2.0.html) */ window.torro=window.torro||{},function(e,t,i,n){"use strict";function s(e){a++,r["builder"+a]=[],this.instanceNumber=a,this.$el=t(e)}var o,a=0,l=[],r={};i.extend(s.prototype,{elementTypes:void 0,form:void 0,formView:void 0,init:function(){return this.$el.length?void e.api.init().done(i.bind(function(){(new e.api.collections.ElementTypes).fetch({data:{context:"edit"},context:this,success:function(s){this.elementTypes=e.Builder.ElementTypes.fromApiCollection(s),"auto-draft"!==t("#original_post_status").val()?new e.api.models.Form({id:parseInt(t("#post_ID").val(),10)}).fetch({data:{context:"edit",_embed:!0},context:this,success:function(e){t(document).ready(i.bind(function(){var t;l.push(this.instanceCount),this.setupInitialData(e.attributes),this.setupViews();for(t in r["builder"+this.instanceCount])r["builder"+this.instanceCount][t](this);delete r["builder"+this.instanceCount]},this))},error:function(){t(document).ready(i.bind(function(){this.fail(n.couldNotLoadData)},this))}}):t(document).ready(i.bind(function(){var e;l.push(this.instanceCount),this.setupInitialData(),this.setupViews();for(e in r["builder"+this.instanceCount])r["builder"+this.instanceCount][e](this);delete r["builder"+this.instanceCount]},this))},error:function(){t(document).ready(i.bind(function(){this.fail(n.couldNotLoadData)},this))}})},this)).fail(i.bind(function(){t(document).ready(i.bind(function(){this.fail(n.couldNotLoadData)},this))},this)):void console.error(n.couldNotInitCanvas)},setupInitialData:function(t){var n,s,o,a,r,d;if(i.contains(l,this.instanceCount))if(t){if(this.form=new e.Builder.FormModel(t),t._embedded.containers&&t._embedded.containers[0]&&(this.form.containers.add(t._embedded.containers[0]),t._embedded.elements&&t._embedded.elements[0])){for(r={},d=0;d");s.html(e),t("body").append(s),s.dialog({dialogClass:"wp-dialog torro-dialog",modal:!0,autoOpen:!0,closeOnEscape:!0,minHeight:80,buttons:[{text:n.yes,click:function(){i(),t(this).dialog("close"),t(this).remove()}},{text:n.no,click:function(){t(this).dialog("close"),t(this).remove()}}]})},e.Builder.i18n=n}(window.torro,window.jQuery,window._,window.torroBuilderI18n),function(e,t){"use strict";function i(e){this.attributes=e}t.extend(i.prototype,{getSlug:function(){return this.attributes.slug},getTitle:function(){return this.attributes.title},getDescription:function(){return this.attributes.description},getIconCssClass:function(){return this.attributes.icon_css_class},getIconSvgId:function(){return this.attributes.icon_svg_id},getIconUrl:function(){return this.attributes.icon_url},isNonInput:function(){return this.attributes.non_input},isEvaluable:function(){return this.attributes.evaluable},isMultiField:function(){return this.attributes.multifield},getSections:function(){return this.attributes.sections},getFields:function(){return this.attributes.fields}}),e.ElementType=i}(window.torro.Builder,window._),function(e,t){"use strict";function i(e){var t;this.types={};for(t in e)this.types[e[t].getSlug()]=e[t]}t.extend(i.prototype,{get:function(e){if(!t.isUndefined(this.types[e]))return this.types[e]},getAll:function(){return this.types}}),i.fromApiCollection=function(n){var s=[];return n.each(function(i){var n=t.extend({},i.attributes);n._links&&delete n._links,n._embedded&&delete n._embedded,s.push(new e.ElementType(n))}),new i(s)},e.ElementTypes=i}(window.torro.Builder,window._),function(e,t,i,n){"use strict";var s,o=n.media.view.Frame;s=o.extend({className:"media-frame",template:e.template("add-element-frame"),regions:["menu","title","content","toolbar"],events:{"click div.media-frame-title h1":"toggleMenu"},initialize:function(){o.prototype.initialize.apply(this,arguments),t.defaults(this.options,{title:"",buttonLabel:"",modal:!0,collection:[],state:"element-type-library"}),this.$el.addClass("wp-core-ui"),this.options.modal&&(this.modal=new n.media.view.Modal({controller:this,title:this.options.title}),this.modal.content(this)),this.on("attach",t.bind(this.views.ready,this.views),this),this.on("attach",this.showMenu,this),this.createCollection(),this.createStates(),this.bindHandlers(),this.title.mode("default")},render:function(){return!this.state()&&this.options.state&&this.setState(this.options.state),o.prototype.render.apply(this,arguments)},createCollection:function(){var n,s=this.options.collection;s instanceof i.Collection||(n=[],s instanceof e.Builder.ElementTypes?t.each(s.getAll(),function(e){n.push(e.attributes)}):s&&(n=s),this.options.collection=new i.Collection(n))},createStates:function(){this.states.add([new e.Builder.AddElement.State.ElementTypeLibrary({title:this.options.title,collection:this.options.collection,priority:20})])},bindHandlers:function(){this.on("menu:create:default",this.createMenu,this),this.on("title:create:default",this.createTitle,this),this.on("content:create:select-element-type",this.createContent,this),this.on("toolbar:create:insert-element",this.createToolbar,this),this.on("title:render",function(e){e.$el.append('')})},createMenu:function(e){e.view=new n.media.view.Menu({controller:this})},toggleMenu:function(){this.$el.find(".media-menu").toggleClass("visible")},createTitle:function(e){e.view=new n.media.View({controller:this,tagName:"h1"})},createContent:function(t){t.view=new e.Builder.AddElement.View.ElementTypesBrowser({controller:this,collection:this.options.collection})},createToolbar:function(t){var i=this;t.view=new e.Builder.AddElement.View.InsertElementToolbar({controller:this,items:{insert:{style:"primary",text:this.options.buttonLabel,priority:80,requires:{selected:!0},click:function(){var e=i.state(),t=e.get("selected");i.close(),e.trigger("insert",t).reset()}}}})},showMenu:function(){this.$el.removeClass("hide-menu")}}),t.each(["open","close","attach","detach","escape"],function(e){s.prototype[e]=function(){return this.modal&&this.modal[e].apply(this.modal,arguments),this}}),e.Builder.AddElement.View.Frame=s}(window.torro,window._,window.Backbone,window.wp),function(e,t,i){"use strict";var n,s=i.media.controller.State;n=s.extend({defaults:{id:"element-type-library",title:e.Builder.i18n.selectElementType,menu:"default",content:"select-element-type",toolbar:"insert-element"},initialize:function(){this.get("collection")||this.set("collection",new t.Collection([])),this.set("selected",null)},reset:function(){this.set("selected",null)}}),e.Builder.AddElement.State.ElementTypeLibrary=n}(window.torro,window.Backbone,window.wp),function(e,t,i,n,s){"use strict";var o,a=s.media.View;o=a.extend({tagName:"div",className:"element-types-browser",template:e.template("element-types-browser"),events:{"click .torro-element-type":"setSelected","keyup .torro-element-type":"setSelected"},initialize:function(){a.prototype.initialize.apply(this,arguments),i.defaults(this.options,{collection:[]}),this.options.collection instanceof n.Collection||(this.options.collection=new n.Collection(this.options.collection)),this.controller.state().on("change:selected",this.listenToSelected,this)},prepare:function(){var e={elementTypes:this.options.collection.toJSON(),selectedElementType:this.controller.state().get("selected")};return e},setSelected:function(e){"keyup"===e.type&&32!==e.keyCode||e.currentTarget&&e.currentTarget.dataset.slug&&this.controller.state().set("selected",e.currentTarget.dataset.slug)},listenToSelected:function(e,i){this.$el.find(".torro-element-type").each(function(){var e=t(this);e.toggleClass("is-selected",e.data("slug")===i)})}}),e.Builder.AddElement.View.ElementTypesBrowser=o}(window.torro,window.jQuery,window._,window.Backbone,window.wp),function(e,t,i){"use strict";var n,s=i.media.view.Toolbar;n=s.extend({initialize:function(){i.media.view.Toolbar.prototype.initialize.apply(this,arguments),this.controller.state().on("change:selected",this.refresh,this)},refresh:function(){var e=this.controller.state().get("selected");t.each(this._views,function(t){var i=!1;t.model&&t.options&&t.options.requires&&(!t.options.requires||!t.options.requires.selected||e&&e.length||(i=!0),t.model.set("disabled",i))})}}),e.Builder.AddElement.View.InsertElementToolbar=n}(window.torro,window._,window.wp),function(e,t,i,n){"use strict";e.BaseModel=n.Model.extend({links:{},constructor:function(e,s){var o=e||{},a=this.idAttribute||n.Model.prototype.idAttribute||"id";o._links&&(this.links=o._links),o=i.omit(o,["_links","_embedded"]),o[a]||(o[a]=t.generateTempId()),n.Model.apply(this,[o,s])},sync:function(e,t,n){return"create"===e&&t.has(t.idAttribute)&&(n.attrs||(n.attrs=t.toJSON(n)),n.attrs=i.omit(n.attrs,t.idAttribute)),!1},isNew:function(){return!this.has(this.idAttribute)||t.isTempId(this.get(this.idAttribute))}})}(window.torro.Builder,window.torro,window._,window.Backbone),function(e,t,i,n){"use strict";e.BaseCollection=n.Collection.extend({model:e.BaseModel,defaultProps:{},constructor:function(e,s){var o=i.defaults(s&&s.props||{},this.defaultProps);this.props=new n.Model(o),this.urlEndpoint&&(this.url=t.api.root+t.api.versionString+this.urlEndpoint),n.Collection.apply(this,arguments)},sync:function(){return!1}})}(window.torro.Builder,window.torro,window._,window.Backbone),function(e,t){"use strict";e.ContainerModel=e.BaseModel.extend({defaults:function(){return t.extend(t.clone({id:0,form_id:0,label:"",sort:0}),this.collection.getDefaultAttributes())},elements:void 0,constructor:function(t,i){t=t||{},e.BaseModel.apply(this,[t,i]),this.elements=new e.ElementCollection([],{props:{container_id:this.get("id")},comparator:"sort"})}})}(window.torro.Builder,window._),function(e,t){"use strict";e.ElementChoiceModel=e.BaseModel.extend({defaults:function(){return t.extend(t.clone({id:0,element_id:0,field:"",value:"",sort:0}),this.collection.getDefaultAttributes())}})}(window.torro.Builder,window._),function(e,t){"use strict";e.ElementModel=e.BaseModel.extend({defaults:function(){return t.extend(t.clone({id:0,container_id:0,label:"",sort:0,type:"textfield"}),this.collection.getDefaultAttributes())},element_type:null,element_choices:null,element_settings:void 0,active_section:void 0,constructor:function(t,i){e.BaseModel.apply(this,[t,i]),this.element_choices=new e.ElementChoiceCollection([],{props:{element_id:this.get("id")},comparator:"sort"}),this.element_settings=new e.ElementSettingCollection([],{props:{element_id:this.get("id")}}),this.listenTypeChanged(this,this.get("type")),this.on("change:type",this.listenTypeChanged,this)},setElementSetting:function(e){var t,i;return e.attributes&&(e=e.attributes),!!(t=this.element_settings.findWhere({name:e.name}))&&(i=this.element_settings.indexOf(t),this.element_settings.remove(t),this.element_settings.add(e,{at:i}),!0)},setActiveSection:function(e){e!==this.active_section&&(this.active_section=e,this.trigger("changeActiveSection",this,this.active_section))},getActiveSection:function(){return this.active_section},listenTypeChanged:function(i,n){var s,o,a,l={};i.element_type=e.getInstance().elementTypes.get(n),i.element_type&&(this.trigger("changeElementType",i,i.element_type),s=i.element_type.getSections(),s.length&&i.setActiveSection(s[0].slug),o=i.element_type.getFields().filter(function(e){return!e.is_label&&!e.is_choices}),a=o.map(function(e){return e.slug}),i.element_settings.each(function(e){a.includes(e.name)&&(l[e.name]=e.attributes)}),i.element_settings.reset(),t.each(o,function(e){l[e.slug]?i.element_settings.add(l[e.slug]):i.element_settings.create({name:e.slug,value:e.default||null})}))}})}(window.torro.Builder,window._),function(e,t){"use strict";e.ElementSettingModel=e.BaseModel.extend({defaults:function(){return t.extend(t.clone({id:0,element_id:0,name:"",value:""}),this.collection.getDefaultAttributes())}})}(window.torro.Builder,window._),function(e){"use strict";e.FormModel=e.BaseModel.extend({defaults:{id:0,title:"",slug:"",author:0,status:"draft",timestamp:0,timestamp_modified:0},containers:void 0,constructor:function(t,i){var n;e.BaseModel.apply(this,[t,i]),n={form_id:this.get("id")},this.containers=new e.ContainerCollection([],{props:n,comparator:"sort"})}})}(window.torro.Builder),function(e,t){"use strict";e.ContainerCollection=e.BaseCollection.extend({model:e.ContainerModel,urlEndpoint:"containers",defaultProps:{selected:!1,form_id:0},getDefaultAttributes:function(){var t,i=e.i18n.defaultContainerLabel,n=this.length+1,s=this.length;return this.length&&(t=this.at(this.length-1),t&&(s=t.get("sort")+1,t.get("label")===i.replace("%s",s)&&(n=s+1))),{form_id:this.props.get("form_id"),label:i.replace("%s",n),sort:s}},initialize:function(){this.on("add",t.bind(this.maybeUpdateSelectedOnAdd,this)),this.on("remove",t.bind(this.maybeUpdateSelectedOnRemove,this))},maybeUpdateSelectedOnAdd:function(e){e&&this.props.set("selected",e.get("id"))},maybeUpdateSelectedOnRemove:function(e,t,i){var n=i.index?i.index-1:i.index;e&&this.props.get("selected")===e.get("id")&&(this.length?this.props.set("selected",this.at(n).get("id")):this.props.set("selected",!1))}})}(window.torro.Builder,window._),function(e){"use strict";e.ElementChoiceCollection=e.BaseCollection.extend({model:e.ElementChoiceModel,urlEndpoint:"element_choices",defaultProps:{element_id:0},getDefaultAttributes:function(){return{element_id:this.props.get("element_id"),sort:this.length}}})}(window.torro.Builder),function(e){"use strict";e.ElementCollection=e.BaseCollection.extend({model:e.ElementModel,urlEndpoint:"elements",defaultProps:{active:[],container_id:0},getDefaultAttributes:function(){return{container_id:this.props.get("container_id"),sort:this.length}},toggleActive:function(e){var t=this.props.get("active"),i=t.indexOf(e);i>-1?t.splice(i,1):t.push(e),this.props.set("active",t),this.props.trigger("toggleActive",this,t,{})}})}(window.torro.Builder),function(e){"use strict";e.ElementSettingCollection=e.BaseCollection.extend({model:e.ElementSettingModel,urlEndpoint:"element_settings",defaultProps:{element_id:0},getDefaultAttributes:function(){return{element_id:this.props.get("element_id"),sort:this.length}}})}(window.torro.Builder),function(e){"use strict";e.FormCollection=e.BaseCollection.extend({model:e.FormModel,urlEndpoint:"forms"})}(window.torro.Builder),function(e,t,i){"use strict";function n(i,n){var s=i.get("id"),o=i.get("id")===i.collection.props.get("selected");this.container=i,this.options=n||{},this.tabTemplate=e.template("container-tab"),this.panelTemplate=e.template("container-panel"),this.footerPanelTemplate=e.template("container-footer-panel"),this.$tab=t("